aws-cdk-lib 2.139.1__py3-none-any.whl → 2.141.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +8 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.139.1.jsii.tgz → aws-cdk-lib@2.141.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +70 -56
- aws_cdk/aws_apigateway/__init__.py +126 -53
- aws_cdk/aws_applicationautoscaling/__init__.py +1 -4
- aws_cdk/aws_arczonalshift/__init__.py +49 -44
- aws_cdk/aws_bedrock/__init__.py +2829 -147
- aws_cdk/aws_cloudfront/__init__.py +51 -9
- aws_cdk/aws_cloudtrail/__init__.py +13 -4
- aws_cdk/aws_codecommit/__init__.py +72 -46
- aws_cdk/aws_connectcampaigns/__init__.py +34 -4
- aws_cdk/aws_datasync/__init__.py +96 -75
- aws_cdk/aws_dms/__init__.py +0 -269
- aws_cdk/aws_dynamodb/__init__.py +410 -0
- aws_cdk/aws_ec2/__init__.py +239 -84
- aws_cdk/aws_ecr/__init__.py +32 -7
- aws_cdk/aws_ecs/__init__.py +2 -4
- aws_cdk/aws_efs/__init__.py +16 -2
- aws_cdk/aws_eks/__init__.py +57 -0
- aws_cdk/aws_entityresolution/__init__.py +6 -2
- aws_cdk/aws_events/__init__.py +115 -0
- aws_cdk/aws_events_targets/__init__.py +15 -0
- aws_cdk/aws_fis/__init__.py +2 -1
- aws_cdk/aws_fms/__init__.py +7 -7
- aws_cdk/aws_gamelift/__init__.py +1984 -107
- aws_cdk/aws_globalaccelerator/__init__.py +20 -16
- aws_cdk/aws_iam/__init__.py +2 -2
- aws_cdk/aws_ivs/__init__.py +1 -3
- aws_cdk/aws_kinesis/__init__.py +21 -0
- aws_cdk/aws_kinesisvideo/__init__.py +6 -4
- aws_cdk/aws_kms/__init__.py +33 -6
- aws_cdk/aws_lambda/__init__.py +0 -9
- aws_cdk/aws_location/__init__.py +8 -4
- aws_cdk/aws_medialive/__init__.py +444 -3
- aws_cdk/aws_oam/__init__.py +45 -11
- aws_cdk/aws_omics/__init__.py +4 -4
- aws_cdk/aws_paymentcryptography/__init__.py +1155 -0
- aws_cdk/aws_personalize/__init__.py +8 -2
- aws_cdk/aws_pinpoint/__init__.py +7 -5
- aws_cdk/aws_qbusiness/__init__.py +5583 -0
- aws_cdk/aws_quicksight/__init__.py +10063 -1450
- aws_cdk/aws_rds/__init__.py +77 -5
- aws_cdk/aws_redshiftserverless/__init__.py +13 -9
- aws_cdk/aws_route53/__init__.py +350 -0
- aws_cdk/aws_route53profiles/__init__.py +1048 -0
- aws_cdk/aws_s3/__init__.py +1 -1
- aws_cdk/aws_sagemaker/__init__.py +30 -30
- aws_cdk/aws_ses/__init__.py +9 -9
- aws_cdk/aws_transfer/__init__.py +102 -37
- aws_cdk/aws_voiceid/__init__.py +2 -2
- aws_cdk/aws_workspacesweb/__init__.py +92 -6
- aws_cdk/custom_resources/__init__.py +23 -2
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/RECORD +60 -57
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/top_level.txt +0 -0
|
@@ -542,6 +542,17 @@ It will auto-generate the name of the function and deploy it to the `live` stage
|
|
|
542
542
|
|
|
543
543
|
Additionally, you can load the function's code from a file using the `FunctionCode.fromFile()` method.
|
|
544
544
|
|
|
545
|
+
If you set `autoPublish` to false, the function will not be automatically published to the LIVE stage when it’s created.
|
|
546
|
+
|
|
547
|
+
``ts
|
|
548
|
+
new cloudfront.Function(this, 'Function', {
|
|
549
|
+
code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),
|
|
550
|
+
runtime: cloudfront.FunctionRuntime.JS_2_0,
|
|
551
|
+
autoPublish: false
|
|
552
|
+
});
|
|
553
|
+
|
|
554
|
+
```
|
|
555
|
+
|
|
545
556
|
### Key Value Store
|
|
546
557
|
|
|
547
558
|
A CloudFront Key Value Store can be created and optionally have data imported from a JSON file
|
|
@@ -549,8 +560,8 @@ by default.
|
|
|
549
560
|
|
|
550
561
|
To create an empty Key Value Store:
|
|
551
562
|
|
|
552
|
-
```
|
|
553
|
-
store = cloudfront.KeyValueStore(
|
|
563
|
+
```ts
|
|
564
|
+
const store = new cloudfront.KeyValueStore(this, 'KeyValueStore');
|
|
554
565
|
```
|
|
555
566
|
|
|
556
567
|
To also include an initial set of values, the `source` property can be specified, either from a
|
|
@@ -4796,7 +4807,7 @@ class CfnDistribution(
|
|
|
4796
4807
|
|
|
4797
4808
|
For the current quota (formerly known as limit) on the number of cache behaviors that you can add to a distribution, see `Quotas <https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html>`_ in the *Amazon CloudFront Developer Guide* .
|
|
4798
4809
|
|
|
4799
|
-
If you don't want to specify any cache behaviors, include only an empty ``CacheBehaviors`` element. For more information, see `CacheBehaviors <https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehaviors.html>`_ .
|
|
4810
|
+
If you don't want to specify any cache behaviors, include only an empty ``CacheBehaviors`` element. Don't specify an empty individual ``CacheBehavior`` element, because this is invalid. For more information, see `CacheBehaviors <https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehaviors.html>`_ .
|
|
4800
4811
|
|
|
4801
4812
|
To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty ``CacheBehaviors`` element.
|
|
4802
4813
|
|
|
@@ -16569,6 +16580,7 @@ class FunctionEventType(enum.Enum):
|
|
|
16569
16580
|
jsii_struct_bases=[],
|
|
16570
16581
|
name_mapping={
|
|
16571
16582
|
"code": "code",
|
|
16583
|
+
"auto_publish": "autoPublish",
|
|
16572
16584
|
"comment": "comment",
|
|
16573
16585
|
"function_name": "functionName",
|
|
16574
16586
|
"key_value_store": "keyValueStore",
|
|
@@ -16580,6 +16592,7 @@ class FunctionProps:
|
|
|
16580
16592
|
self,
|
|
16581
16593
|
*,
|
|
16582
16594
|
code: FunctionCode,
|
|
16595
|
+
auto_publish: typing.Optional[builtins.bool] = None,
|
|
16583
16596
|
comment: typing.Optional[builtins.str] = None,
|
|
16584
16597
|
function_name: typing.Optional[builtins.str] = None,
|
|
16585
16598
|
key_value_store: typing.Optional["IKeyValueStore"] = None,
|
|
@@ -16588,6 +16601,7 @@ class FunctionProps:
|
|
|
16588
16601
|
'''Properties for creating a CloudFront Function.
|
|
16589
16602
|
|
|
16590
16603
|
:param code: The source code of the function.
|
|
16604
|
+
:param auto_publish: A flag that determines whether to automatically publish the function to the LIVE stage when it’s created. Default: - true
|
|
16591
16605
|
:param comment: A comment to describe the function. Default: - same as ``functionName``
|
|
16592
16606
|
:param function_name: A name to identify the function. Default: - generated from the ``id``
|
|
16593
16607
|
:param key_value_store: The Key Value Store to associate with this function. In order to associate a Key Value Store, the ``runtime`` must be ``cloudfront-js-2.0`` or newer. Default: - no key value store is associated
|
|
@@ -16616,6 +16630,7 @@ class FunctionProps:
|
|
|
16616
16630
|
if __debug__:
|
|
16617
16631
|
type_hints = typing.get_type_hints(_typecheckingstub__8243b62a44e046850892a519da42366ef0e5b346474e3be3ebcb455dd6aa04df)
|
|
16618
16632
|
check_type(argname="argument code", value=code, expected_type=type_hints["code"])
|
|
16633
|
+
check_type(argname="argument auto_publish", value=auto_publish, expected_type=type_hints["auto_publish"])
|
|
16619
16634
|
check_type(argname="argument comment", value=comment, expected_type=type_hints["comment"])
|
|
16620
16635
|
check_type(argname="argument function_name", value=function_name, expected_type=type_hints["function_name"])
|
|
16621
16636
|
check_type(argname="argument key_value_store", value=key_value_store, expected_type=type_hints["key_value_store"])
|
|
@@ -16623,6 +16638,8 @@ class FunctionProps:
|
|
|
16623
16638
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
16624
16639
|
"code": code,
|
|
16625
16640
|
}
|
|
16641
|
+
if auto_publish is not None:
|
|
16642
|
+
self._values["auto_publish"] = auto_publish
|
|
16626
16643
|
if comment is not None:
|
|
16627
16644
|
self._values["comment"] = comment
|
|
16628
16645
|
if function_name is not None:
|
|
@@ -16639,6 +16656,15 @@ class FunctionProps:
|
|
|
16639
16656
|
assert result is not None, "Required property 'code' is missing"
|
|
16640
16657
|
return typing.cast(FunctionCode, result)
|
|
16641
16658
|
|
|
16659
|
+
@builtins.property
|
|
16660
|
+
def auto_publish(self) -> typing.Optional[builtins.bool]:
|
|
16661
|
+
'''A flag that determines whether to automatically publish the function to the LIVE stage when it’s created.
|
|
16662
|
+
|
|
16663
|
+
:default: - true
|
|
16664
|
+
'''
|
|
16665
|
+
result = self._values.get("auto_publish")
|
|
16666
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
16667
|
+
|
|
16642
16668
|
@builtins.property
|
|
16643
16669
|
def comment(self) -> typing.Optional[builtins.str]:
|
|
16644
16670
|
'''A comment to describe the function.
|
|
@@ -17915,12 +17941,23 @@ class KeyValueStore(
|
|
|
17915
17941
|
|
|
17916
17942
|
Example::
|
|
17917
17943
|
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
|
|
17921
|
-
|
|
17922
|
-
|
|
17923
|
-
|
|
17944
|
+
store_asset = cloudfront.KeyValueStore(self, "KeyValueStoreAsset",
|
|
17945
|
+
key_value_store_name="KeyValueStoreAsset",
|
|
17946
|
+
source=cloudfront.ImportSource.from_asset("path-to-data.json")
|
|
17947
|
+
)
|
|
17948
|
+
|
|
17949
|
+
store_inline = cloudfront.KeyValueStore(self, "KeyValueStoreInline",
|
|
17950
|
+
key_value_store_name="KeyValueStoreInline",
|
|
17951
|
+
source=cloudfront.ImportSource.from_inline(JSON.stringify({
|
|
17952
|
+
"data": [{
|
|
17953
|
+
"key": "key1",
|
|
17954
|
+
"value": "value1"
|
|
17955
|
+
}, {
|
|
17956
|
+
"key": "key2",
|
|
17957
|
+
"value": "value2"
|
|
17958
|
+
}
|
|
17959
|
+
]
|
|
17960
|
+
}))
|
|
17924
17961
|
)
|
|
17925
17962
|
'''
|
|
17926
17963
|
|
|
@@ -23788,6 +23825,7 @@ class Function(
|
|
|
23788
23825
|
id: builtins.str,
|
|
23789
23826
|
*,
|
|
23790
23827
|
code: FunctionCode,
|
|
23828
|
+
auto_publish: typing.Optional[builtins.bool] = None,
|
|
23791
23829
|
comment: typing.Optional[builtins.str] = None,
|
|
23792
23830
|
function_name: typing.Optional[builtins.str] = None,
|
|
23793
23831
|
key_value_store: typing.Optional[IKeyValueStore] = None,
|
|
@@ -23797,6 +23835,7 @@ class Function(
|
|
|
23797
23835
|
:param scope: -
|
|
23798
23836
|
:param id: -
|
|
23799
23837
|
:param code: The source code of the function.
|
|
23838
|
+
:param auto_publish: A flag that determines whether to automatically publish the function to the LIVE stage when it’s created. Default: - true
|
|
23800
23839
|
:param comment: A comment to describe the function. Default: - same as ``functionName``
|
|
23801
23840
|
:param function_name: A name to identify the function. Default: - generated from the ``id``
|
|
23802
23841
|
:param key_value_store: The Key Value Store to associate with this function. In order to associate a Key Value Store, the ``runtime`` must be ``cloudfront-js-2.0`` or newer. Default: - no key value store is associated
|
|
@@ -23808,6 +23847,7 @@ class Function(
|
|
|
23808
23847
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
23809
23848
|
props = FunctionProps(
|
|
23810
23849
|
code=code,
|
|
23850
|
+
auto_publish=auto_publish,
|
|
23811
23851
|
comment=comment,
|
|
23812
23852
|
function_name=function_name,
|
|
23813
23853
|
key_value_store=key_value_store,
|
|
@@ -25537,6 +25577,7 @@ def _typecheckingstub__4e3494c015ce98060d9db266d49711978f619c5ef5558a3e89c5b5c6a
|
|
|
25537
25577
|
def _typecheckingstub__8243b62a44e046850892a519da42366ef0e5b346474e3be3ebcb455dd6aa04df(
|
|
25538
25578
|
*,
|
|
25539
25579
|
code: FunctionCode,
|
|
25580
|
+
auto_publish: typing.Optional[builtins.bool] = None,
|
|
25540
25581
|
comment: typing.Optional[builtins.str] = None,
|
|
25541
25582
|
function_name: typing.Optional[builtins.str] = None,
|
|
25542
25583
|
key_value_store: typing.Optional[IKeyValueStore] = None,
|
|
@@ -26290,6 +26331,7 @@ def _typecheckingstub__036fe4f21793a85724c37ca1ffc5912522571664ab980383ee3babc48
|
|
|
26290
26331
|
id: builtins.str,
|
|
26291
26332
|
*,
|
|
26292
26333
|
code: FunctionCode,
|
|
26334
|
+
auto_publish: typing.Optional[builtins.bool] = None,
|
|
26293
26335
|
comment: typing.Optional[builtins.str] = None,
|
|
26294
26336
|
function_name: typing.Optional[builtins.str] = None,
|
|
26295
26337
|
key_value_store: typing.Optional[IKeyValueStore] = None,
|
|
@@ -3383,9 +3383,18 @@ class CfnTrail(
|
|
|
3383
3383
|
type: builtins.str,
|
|
3384
3384
|
values: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3385
3385
|
) -> None:
|
|
3386
|
-
'''
|
|
3386
|
+
'''Data events provide information about the resource operations performed on or within a resource itself.
|
|
3387
|
+
|
|
3388
|
+
These are also known as data plane operations. You can specify up to 250 data resources for a trail.
|
|
3389
|
+
|
|
3390
|
+
Configure the ``DataResource`` to specify the resource type and resource ARNs for which you want to log data events.
|
|
3391
|
+
|
|
3392
|
+
You can specify the following resource types in your event selectors for your trail:
|
|
3393
|
+
|
|
3394
|
+
- ``AWS::DynamoDB::Table``
|
|
3395
|
+
- ``AWS::Lambda::Function``
|
|
3396
|
+
- ``AWS::S3::Object``
|
|
3387
3397
|
|
|
3388
|
-
Data events provide information about the resource operations performed on or within a resource itself. These are also known as data plane operations. You can specify up to 250 data resources for a trail.
|
|
3389
3398
|
.. epigraph::
|
|
3390
3399
|
|
|
3391
3400
|
The total number of allowed data resources is 250. This number can be distributed between 1 and 5 event selectors, but the total cannot exceed 250 across all selectors for the trail.
|
|
@@ -3406,7 +3415,7 @@ class CfnTrail(
|
|
|
3406
3415
|
- The ``Invoke`` API operation on *MyOtherLambdaFunction* is an Lambda API. Because the CloudTrail user did not specify logging data events for all Lambda functions, the ``Invoke`` operation for *MyOtherLambdaFunction* does not match the function specified for the trail. The trail doesn’t log the event.
|
|
3407
3416
|
|
|
3408
3417
|
:param type: The resource type in which you want to log data events. You can specify the following *basic* event selector resource types: - ``AWS::DynamoDB::Table`` - ``AWS::Lambda::Function`` - ``AWS::S3::Object`` Additional resource types are available through *advanced* event selectors. For more information about these additional resource types, see `AdvancedFieldSelector <https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedFieldSelector.html>`_ .
|
|
3409
|
-
:param values: An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified
|
|
3418
|
+
:param values: An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified resource type. - To log data events for all objects in all S3 buckets in your AWS account , specify the prefix as ``arn:aws:s3`` . .. epigraph:: This also enables logging of data event activity performed by any user or role in your AWS account , even if that activity is performed on a bucket that belongs to another AWS account . - To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as ``arn:aws:s3:::bucket-1/`` . The trail logs data events for all objects in this S3 bucket. - To log data events for specific objects, specify the S3 bucket and object prefix such as ``arn:aws:s3:::bucket-1/example-images`` . The trail logs data events for objects in this S3 bucket that match the prefix. - To log data events for all Lambda functions in your AWS account , specify the prefix as ``arn:aws:lambda`` . .. epigraph:: This also enables logging of ``Invoke`` activity performed by any user or role in your AWS account , even if that activity is performed on a function that belongs to another AWS account . - To log data events for a specific Lambda function, specify the function ARN. .. epigraph:: Lambda function ARNs are exact. For example, if you specify a function ARN *arn:aws:lambda:us-west-2:111111111111:function:helloworld* , data events will only be logged for *arn:aws:lambda:us-west-2:111111111111:function:helloworld* . They will not be logged for *arn:aws:lambda:us-west-2:111111111111:function:helloworld2* . - To log data events for all DynamoDB tables in your AWS account , specify the prefix as ``arn:aws:dynamodb`` .
|
|
3410
3419
|
|
|
3411
3420
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-dataresource.html
|
|
3412
3421
|
:exampleMetadata: fixture=_generated
|
|
@@ -3454,7 +3463,7 @@ class CfnTrail(
|
|
|
3454
3463
|
|
|
3455
3464
|
@builtins.property
|
|
3456
3465
|
def values(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
3457
|
-
'''An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified
|
|
3466
|
+
'''An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified resource type.
|
|
3458
3467
|
|
|
3459
3468
|
- To log data events for all objects in all S3 buckets in your AWS account , specify the prefix as ``arn:aws:s3`` .
|
|
3460
3469
|
|
|
@@ -42,6 +42,26 @@ repo = codecommit.Repository(self, "Repository",
|
|
|
42
42
|
)
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
+
## Use a customer managed key
|
|
46
|
+
|
|
47
|
+
CodeCommit repositories are automatically encrypted with an AWS managed key. To use
|
|
48
|
+
a customer managed key, specify the `kmsKey` property.
|
|
49
|
+
|
|
50
|
+
For more information, see
|
|
51
|
+
[AWS Key Management Service and encryption for AWS CodeCommit repositories](https://docs.aws.amazon.com/cdk/latest/guide/reference.html#versioning).
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
import aws_cdk.aws_kms as kms
|
|
55
|
+
|
|
56
|
+
# kms_key: kms.IKey
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
repo = codecommit.Repository(self, "Repository",
|
|
60
|
+
repository_name="MyRepositoryName",
|
|
61
|
+
kms_key=kms_key
|
|
62
|
+
)
|
|
63
|
+
```
|
|
64
|
+
|
|
45
65
|
## Events
|
|
46
66
|
|
|
47
67
|
CodeCommit repositories emit Amazon CloudWatch events for certain activities.
|
|
@@ -131,6 +151,7 @@ from ..aws_events import (
|
|
|
131
151
|
Rule as _Rule_334ed2b5,
|
|
132
152
|
)
|
|
133
153
|
from ..aws_iam import Grant as _Grant_a7ae64f8, IGrantable as _IGrantable_71c4f5de
|
|
154
|
+
from ..aws_kms import IKey as _IKey_5f11635f
|
|
134
155
|
from ..aws_s3_assets import Asset as _Asset_ac2a7e61
|
|
135
156
|
|
|
136
157
|
|
|
@@ -2451,6 +2472,7 @@ class Repository(
|
|
|
2451
2472
|
repository_name: builtins.str,
|
|
2452
2473
|
code: typing.Optional[Code] = None,
|
|
2453
2474
|
description: typing.Optional[builtins.str] = None,
|
|
2475
|
+
kms_key: typing.Optional[_IKey_5f11635f] = None,
|
|
2454
2476
|
) -> None:
|
|
2455
2477
|
'''
|
|
2456
2478
|
:param scope: -
|
|
@@ -2458,13 +2480,17 @@ class Repository(
|
|
|
2458
2480
|
:param repository_name: Name of the repository. This property is required for all CodeCommit repositories.
|
|
2459
2481
|
:param code: The contents with which to initialize the repository after it has been created. Default: - No initialization (create empty repo)
|
|
2460
2482
|
:param description: A description of the repository. Use the description to identify the purpose of the repository. Default: - No description.
|
|
2483
|
+
:param kms_key: The customer managed key used to encrypt and decrypt the data in repository. Default: - Use an AWS managed key
|
|
2461
2484
|
'''
|
|
2462
2485
|
if __debug__:
|
|
2463
2486
|
type_hints = typing.get_type_hints(_typecheckingstub__fc18226d2621b909e0802baaec299567def39762c6bf07510ef197899ff96a91)
|
|
2464
2487
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
2465
2488
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
2466
2489
|
props = RepositoryProps(
|
|
2467
|
-
repository_name=repository_name,
|
|
2490
|
+
repository_name=repository_name,
|
|
2491
|
+
code=code,
|
|
2492
|
+
description=description,
|
|
2493
|
+
kms_key=kms_key,
|
|
2468
2494
|
)
|
|
2469
2495
|
|
|
2470
2496
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -3383,6 +3409,7 @@ class RepositoryNotifyOnOptions(_NotificationRuleOptions_dff73281):
|
|
|
3383
3409
|
"repository_name": "repositoryName",
|
|
3384
3410
|
"code": "code",
|
|
3385
3411
|
"description": "description",
|
|
3412
|
+
"kms_key": "kmsKey",
|
|
3386
3413
|
},
|
|
3387
3414
|
)
|
|
3388
3415
|
class RepositoryProps:
|
|
@@ -3392,63 +3419,48 @@ class RepositoryProps:
|
|
|
3392
3419
|
repository_name: builtins.str,
|
|
3393
3420
|
code: typing.Optional[Code] = None,
|
|
3394
3421
|
description: typing.Optional[builtins.str] = None,
|
|
3422
|
+
kms_key: typing.Optional[_IKey_5f11635f] = None,
|
|
3395
3423
|
) -> None:
|
|
3396
3424
|
'''
|
|
3397
3425
|
:param repository_name: Name of the repository. This property is required for all CodeCommit repositories.
|
|
3398
3426
|
:param code: The contents with which to initialize the repository after it has been created. Default: - No initialization (create empty repo)
|
|
3399
3427
|
:param description: A description of the repository. Use the description to identify the purpose of the repository. Default: - No description.
|
|
3428
|
+
:param kms_key: The customer managed key used to encrypt and decrypt the data in repository. Default: - Use an AWS managed key
|
|
3400
3429
|
|
|
3401
|
-
:exampleMetadata:
|
|
3430
|
+
:exampleMetadata: infused
|
|
3402
3431
|
|
|
3403
3432
|
Example::
|
|
3404
3433
|
|
|
3405
|
-
#
|
|
3406
|
-
repo = codecommit.Repository(stack, "TemplateRepo",
|
|
3407
|
-
repository_name="template-repo"
|
|
3408
|
-
)
|
|
3409
|
-
source_output = codepipeline.Artifact("SourceArtifact")
|
|
3410
|
-
source = cpactions.CodeCommitSourceAction(
|
|
3411
|
-
action_name="Source",
|
|
3412
|
-
repository=repo,
|
|
3413
|
-
output=source_output,
|
|
3414
|
-
trigger=cpactions.CodeCommitTrigger.POLL
|
|
3415
|
-
)
|
|
3416
|
-
source_stage = {
|
|
3417
|
-
"stage_name": "Source",
|
|
3418
|
-
"actions": [source]
|
|
3419
|
-
}
|
|
3434
|
+
# project: codebuild.PipelineProject
|
|
3420
3435
|
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3436
|
+
repository = codecommit.Repository(self, "MyRepository",
|
|
3437
|
+
repository_name="MyRepository"
|
|
3438
|
+
)
|
|
3439
|
+
project = codebuild.PipelineProject(self, "MyProject")
|
|
3424
3440
|
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
"
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
),
|
|
3440
|
-
cpactions.CloudFormationExecuteChangeSetAction(
|
|
3441
|
-
action_name="ExecuteChanges",
|
|
3442
|
-
stack_name=stack_name,
|
|
3443
|
-
change_set_name=change_set_name,
|
|
3444
|
-
run_order=3
|
|
3445
|
-
)
|
|
3446
|
-
]
|
|
3447
|
-
}
|
|
3441
|
+
source_output = codepipeline.Artifact()
|
|
3442
|
+
source_action = codepipeline_actions.CodeCommitSourceAction(
|
|
3443
|
+
action_name="CodeCommit",
|
|
3444
|
+
repository=repository,
|
|
3445
|
+
output=source_output
|
|
3446
|
+
)
|
|
3447
|
+
build_action = codepipeline_actions.CodeBuildAction(
|
|
3448
|
+
action_name="CodeBuild",
|
|
3449
|
+
project=project,
|
|
3450
|
+
input=source_output,
|
|
3451
|
+
outputs=[codepipeline.Artifact()], # optional
|
|
3452
|
+
execute_batch_build=True, # optional, defaults to false
|
|
3453
|
+
combine_batch_build_artifacts=True
|
|
3454
|
+
)
|
|
3448
3455
|
|
|
3449
|
-
codepipeline.Pipeline(
|
|
3450
|
-
|
|
3451
|
-
|
|
3456
|
+
codepipeline.Pipeline(self, "MyPipeline",
|
|
3457
|
+
stages=[codepipeline.StageProps(
|
|
3458
|
+
stage_name="Source",
|
|
3459
|
+
actions=[source_action]
|
|
3460
|
+
), codepipeline.StageProps(
|
|
3461
|
+
stage_name="Build",
|
|
3462
|
+
actions=[build_action]
|
|
3463
|
+
)
|
|
3452
3464
|
]
|
|
3453
3465
|
)
|
|
3454
3466
|
'''
|
|
@@ -3457,6 +3469,7 @@ class RepositoryProps:
|
|
|
3457
3469
|
check_type(argname="argument repository_name", value=repository_name, expected_type=type_hints["repository_name"])
|
|
3458
3470
|
check_type(argname="argument code", value=code, expected_type=type_hints["code"])
|
|
3459
3471
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
3472
|
+
check_type(argname="argument kms_key", value=kms_key, expected_type=type_hints["kms_key"])
|
|
3460
3473
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3461
3474
|
"repository_name": repository_name,
|
|
3462
3475
|
}
|
|
@@ -3464,6 +3477,8 @@ class RepositoryProps:
|
|
|
3464
3477
|
self._values["code"] = code
|
|
3465
3478
|
if description is not None:
|
|
3466
3479
|
self._values["description"] = description
|
|
3480
|
+
if kms_key is not None:
|
|
3481
|
+
self._values["kms_key"] = kms_key
|
|
3467
3482
|
|
|
3468
3483
|
@builtins.property
|
|
3469
3484
|
def repository_name(self) -> builtins.str:
|
|
@@ -3496,6 +3511,15 @@ class RepositoryProps:
|
|
|
3496
3511
|
result = self._values.get("description")
|
|
3497
3512
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
3498
3513
|
|
|
3514
|
+
@builtins.property
|
|
3515
|
+
def kms_key(self) -> typing.Optional[_IKey_5f11635f]:
|
|
3516
|
+
'''The customer managed key used to encrypt and decrypt the data in repository.
|
|
3517
|
+
|
|
3518
|
+
:default: - Use an AWS managed key
|
|
3519
|
+
'''
|
|
3520
|
+
result = self._values.get("kms_key")
|
|
3521
|
+
return typing.cast(typing.Optional[_IKey_5f11635f], result)
|
|
3522
|
+
|
|
3499
3523
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3500
3524
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3501
3525
|
|
|
@@ -4001,6 +4025,7 @@ def _typecheckingstub__fc18226d2621b909e0802baaec299567def39762c6bf07510ef197899
|
|
|
4001
4025
|
repository_name: builtins.str,
|
|
4002
4026
|
code: typing.Optional[Code] = None,
|
|
4003
4027
|
description: typing.Optional[builtins.str] = None,
|
|
4028
|
+
kms_key: typing.Optional[_IKey_5f11635f] = None,
|
|
4004
4029
|
) -> None:
|
|
4005
4030
|
"""Type checking stubs"""
|
|
4006
4031
|
pass
|
|
@@ -4287,6 +4312,7 @@ def _typecheckingstub__0f5b7aba6edb1a65dfbcce23930da17cf0e6a0d64372346382ade8dd1
|
|
|
4287
4312
|
repository_name: builtins.str,
|
|
4288
4313
|
code: typing.Optional[Code] = None,
|
|
4289
4314
|
description: typing.Optional[builtins.str] = None,
|
|
4315
|
+
kms_key: typing.Optional[_IKey_5f11635f] = None,
|
|
4290
4316
|
) -> None:
|
|
4291
4317
|
"""Type checking stubs"""
|
|
4292
4318
|
pass
|
|
@@ -97,7 +97,10 @@ class CfnCampaign(
|
|
|
97
97
|
|
|
98
98
|
# the properties below are optional
|
|
99
99
|
answer_machine_detection_config=connectcampaigns.CfnCampaign.AnswerMachineDetectionConfigProperty(
|
|
100
|
-
enable_answer_machine_detection=False
|
|
100
|
+
enable_answer_machine_detection=False,
|
|
101
|
+
|
|
102
|
+
# the properties below are optional
|
|
103
|
+
await_answer_machine_prompt=False
|
|
101
104
|
),
|
|
102
105
|
connect_queue_arn="connectQueueArn",
|
|
103
106
|
connect_source_phone_number="connectSourcePhoneNumber"
|
|
@@ -330,6 +333,7 @@ class CfnCampaign(
|
|
|
330
333
|
jsii_struct_bases=[],
|
|
331
334
|
name_mapping={
|
|
332
335
|
"enable_answer_machine_detection": "enableAnswerMachineDetection",
|
|
336
|
+
"await_answer_machine_prompt": "awaitAnswerMachinePrompt",
|
|
333
337
|
},
|
|
334
338
|
)
|
|
335
339
|
class AnswerMachineDetectionConfigProperty:
|
|
@@ -337,10 +341,12 @@ class CfnCampaign(
|
|
|
337
341
|
self,
|
|
338
342
|
*,
|
|
339
343
|
enable_answer_machine_detection: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
344
|
+
await_answer_machine_prompt: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
340
345
|
) -> None:
|
|
341
346
|
'''Contains information about answering machine detection.
|
|
342
347
|
|
|
343
348
|
:param enable_answer_machine_detection: Whether answering machine detection is enabled.
|
|
349
|
+
:param await_answer_machine_prompt: Whether waiting for answer machine prompt is enabled.
|
|
344
350
|
|
|
345
351
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaigns-campaign-answermachinedetectionconfig.html
|
|
346
352
|
:exampleMetadata: fixture=_generated
|
|
@@ -352,15 +358,21 @@ class CfnCampaign(
|
|
|
352
358
|
from aws_cdk import aws_connectcampaigns as connectcampaigns
|
|
353
359
|
|
|
354
360
|
answer_machine_detection_config_property = connectcampaigns.CfnCampaign.AnswerMachineDetectionConfigProperty(
|
|
355
|
-
enable_answer_machine_detection=False
|
|
361
|
+
enable_answer_machine_detection=False,
|
|
362
|
+
|
|
363
|
+
# the properties below are optional
|
|
364
|
+
await_answer_machine_prompt=False
|
|
356
365
|
)
|
|
357
366
|
'''
|
|
358
367
|
if __debug__:
|
|
359
368
|
type_hints = typing.get_type_hints(_typecheckingstub__17ddf057c50900b164cfd172d5d737d25a962fc39676bd1cbafcac6a1d8d60b3)
|
|
360
369
|
check_type(argname="argument enable_answer_machine_detection", value=enable_answer_machine_detection, expected_type=type_hints["enable_answer_machine_detection"])
|
|
370
|
+
check_type(argname="argument await_answer_machine_prompt", value=await_answer_machine_prompt, expected_type=type_hints["await_answer_machine_prompt"])
|
|
361
371
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
362
372
|
"enable_answer_machine_detection": enable_answer_machine_detection,
|
|
363
373
|
}
|
|
374
|
+
if await_answer_machine_prompt is not None:
|
|
375
|
+
self._values["await_answer_machine_prompt"] = await_answer_machine_prompt
|
|
364
376
|
|
|
365
377
|
@builtins.property
|
|
366
378
|
def enable_answer_machine_detection(
|
|
@@ -374,6 +386,17 @@ class CfnCampaign(
|
|
|
374
386
|
assert result is not None, "Required property 'enable_answer_machine_detection' is missing"
|
|
375
387
|
return typing.cast(typing.Union[builtins.bool, _IResolvable_da3f097b], result)
|
|
376
388
|
|
|
389
|
+
@builtins.property
|
|
390
|
+
def await_answer_machine_prompt(
|
|
391
|
+
self,
|
|
392
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
393
|
+
'''Whether waiting for answer machine prompt is enabled.
|
|
394
|
+
|
|
395
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaigns-campaign-answermachinedetectionconfig.html#cfn-connectcampaigns-campaign-answermachinedetectionconfig-awaitanswermachineprompt
|
|
396
|
+
'''
|
|
397
|
+
result = self._values.get("await_answer_machine_prompt")
|
|
398
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
399
|
+
|
|
377
400
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
378
401
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
379
402
|
|
|
@@ -532,7 +555,10 @@ class CfnCampaign(
|
|
|
532
555
|
|
|
533
556
|
# the properties below are optional
|
|
534
557
|
answer_machine_detection_config=connectcampaigns.CfnCampaign.AnswerMachineDetectionConfigProperty(
|
|
535
|
-
enable_answer_machine_detection=False
|
|
558
|
+
enable_answer_machine_detection=False,
|
|
559
|
+
|
|
560
|
+
# the properties below are optional
|
|
561
|
+
await_answer_machine_prompt=False
|
|
536
562
|
),
|
|
537
563
|
connect_queue_arn="connectQueueArn",
|
|
538
564
|
connect_source_phone_number="connectSourcePhoneNumber"
|
|
@@ -822,7 +848,10 @@ class CfnCampaignProps:
|
|
|
822
848
|
|
|
823
849
|
# the properties below are optional
|
|
824
850
|
answer_machine_detection_config=connectcampaigns.CfnCampaign.AnswerMachineDetectionConfigProperty(
|
|
825
|
-
enable_answer_machine_detection=False
|
|
851
|
+
enable_answer_machine_detection=False,
|
|
852
|
+
|
|
853
|
+
# the properties below are optional
|
|
854
|
+
await_answer_machine_prompt=False
|
|
826
855
|
),
|
|
827
856
|
connect_queue_arn="connectQueueArn",
|
|
828
857
|
connect_source_phone_number="connectSourcePhoneNumber"
|
|
@@ -990,6 +1019,7 @@ def _typecheckingstub__b7faa72a8ef60a3f20de3f7930f17119c963b501852653dace484b2b5
|
|
|
990
1019
|
def _typecheckingstub__17ddf057c50900b164cfd172d5d737d25a962fc39676bd1cbafcac6a1d8d60b3(
|
|
991
1020
|
*,
|
|
992
1021
|
enable_answer_machine_detection: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
1022
|
+
await_answer_machine_prompt: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
993
1023
|
) -> None:
|
|
994
1024
|
"""Type checking stubs"""
|
|
995
1025
|
pass
|