aws-cdk-lib 2.139.0__py3-none-any.whl → 2.140.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.0.jsii.tgz → aws-cdk-lib@2.140.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 +2818 -146
- aws_cdk/aws_cloudfront/__init__.py +51 -9
- aws_cdk/aws_codecommit/__init__.py +72 -46
- aws_cdk/aws_connectcampaigns/__init__.py +34 -4
- aws_cdk/aws_datasync/__init__.py +47 -21
- aws_cdk/aws_dms/__init__.py +0 -269
- aws_cdk/aws_ec2/__init__.py +149 -44
- 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_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_gamelift/__init__.py +1846 -70
- aws_cdk/aws_globalaccelerator/__init__.py +20 -16
- aws_cdk/aws_iam/__init__.py +2 -2
- aws_cdk/aws_kinesis/__init__.py +21 -0
- aws_cdk/aws_kinesisvideo/__init__.py +6 -4
- aws_cdk/aws_kms/__init__.py +22 -1
- aws_cdk/aws_lambda/__init__.py +0 -9
- aws_cdk/aws_medialive/__init__.py +444 -3
- aws_cdk/aws_paymentcryptography/__init__.py +1075 -0
- aws_cdk/aws_personalize/__init__.py +8 -2
- aws_cdk/aws_qbusiness/__init__.py +5257 -0
- aws_cdk/aws_quicksight/__init__.py +9996 -1446
- aws_cdk/aws_rds/__init__.py +42 -0
- 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_transfer/__init__.py +102 -37
- 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.0.dist-info → aws_cdk_lib-2.140.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.139.0.dist-info → aws_cdk_lib-2.140.0.dist-info}/RECORD +47 -44
- {aws_cdk_lib-2.139.0.dist-info → aws_cdk_lib-2.140.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.139.0.dist-info → aws_cdk_lib-2.140.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.139.0.dist-info → aws_cdk_lib-2.140.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.139.0.dist-info → aws_cdk_lib-2.140.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,
|
|
@@ -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: Enables detection of prompts (e.g., beep after after a voicemail greeting).
|
|
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
|
+
'''Enables detection of prompts (e.g., beep after after a voicemail greeting).
|
|
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
|
aws_cdk/aws_datasync/__init__.py
CHANGED
|
@@ -4750,7 +4750,7 @@ class CfnLocationObjectStorage(
|
|
|
4750
4750
|
:param access_key: Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
|
|
4751
4751
|
:param bucket_name: Specifies the name of the object storage bucket involved in the transfer.
|
|
4752
4752
|
:param secret_key: Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
|
|
4753
|
-
:param server_certificate: Specifies a
|
|
4753
|
+
:param server_certificate: Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single ``.pem`` file with a full certificate chain (for example, ``file:///home/user/.ssh/object_storage_certificates.pem`` ). The certificate chain might include: - The object storage system's certificate - All intermediate certificates (if there are any) - The root certificate of the signing CA You can concatenate your certificates into a ``.pem`` file (which can be up to 32768 bytes before base64 encoding). The following example ``cat`` command creates an ``object_storage_certificates.pem`` file that includes three certificates: ``cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem`` To use this parameter, configure ``ServerProtocol`` to ``HTTPS`` .
|
|
4754
4754
|
:param server_hostname: Specifies the domain name or IP address of the object storage server. A DataSync agent uses this hostname to mount the object storage server in a network.
|
|
4755
4755
|
:param server_port: Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
|
|
4756
4756
|
:param server_protocol: Specifies the protocol that your object storage server uses to communicate.
|
|
@@ -4890,7 +4890,7 @@ class CfnLocationObjectStorage(
|
|
|
4890
4890
|
@builtins.property
|
|
4891
4891
|
@jsii.member(jsii_name="serverCertificate")
|
|
4892
4892
|
def server_certificate(self) -> typing.Optional[builtins.str]:
|
|
4893
|
-
'''Specifies a
|
|
4893
|
+
'''Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).'''
|
|
4894
4894
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "serverCertificate"))
|
|
4895
4895
|
|
|
4896
4896
|
@server_certificate.setter
|
|
@@ -5003,7 +5003,7 @@ class CfnLocationObjectStorageProps:
|
|
|
5003
5003
|
:param access_key: Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
|
|
5004
5004
|
:param bucket_name: Specifies the name of the object storage bucket involved in the transfer.
|
|
5005
5005
|
:param secret_key: Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
|
|
5006
|
-
:param server_certificate: Specifies a
|
|
5006
|
+
:param server_certificate: Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single ``.pem`` file with a full certificate chain (for example, ``file:///home/user/.ssh/object_storage_certificates.pem`` ). The certificate chain might include: - The object storage system's certificate - All intermediate certificates (if there are any) - The root certificate of the signing CA You can concatenate your certificates into a ``.pem`` file (which can be up to 32768 bytes before base64 encoding). The following example ``cat`` command creates an ``object_storage_certificates.pem`` file that includes three certificates: ``cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem`` To use this parameter, configure ``ServerProtocol`` to ``HTTPS`` .
|
|
5007
5007
|
:param server_hostname: Specifies the domain name or IP address of the object storage server. A DataSync agent uses this hostname to mount the object storage server in a network.
|
|
5008
5008
|
:param server_port: Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
|
|
5009
5009
|
:param server_protocol: Specifies the protocol that your object storage server uses to communicate.
|
|
@@ -5110,14 +5110,19 @@ class CfnLocationObjectStorageProps:
|
|
|
5110
5110
|
|
|
5111
5111
|
@builtins.property
|
|
5112
5112
|
def server_certificate(self) -> typing.Optional[builtins.str]:
|
|
5113
|
-
'''Specifies a
|
|
5113
|
+
'''Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).
|
|
5114
5114
|
|
|
5115
|
-
|
|
5116
|
-
- Any intermediate certificates
|
|
5117
|
-
- base64 encoding
|
|
5118
|
-
- A ``.pem`` extension
|
|
5115
|
+
You must specify a single ``.pem`` file with a full certificate chain (for example, ``file:///home/user/.ssh/object_storage_certificates.pem`` ).
|
|
5119
5116
|
|
|
5120
|
-
The
|
|
5117
|
+
The certificate chain might include:
|
|
5118
|
+
|
|
5119
|
+
- The object storage system's certificate
|
|
5120
|
+
- All intermediate certificates (if there are any)
|
|
5121
|
+
- The root certificate of the signing CA
|
|
5122
|
+
|
|
5123
|
+
You can concatenate your certificates into a ``.pem`` file (which can be up to 32768 bytes before base64 encoding). The following example ``cat`` command creates an ``object_storage_certificates.pem`` file that includes three certificates:
|
|
5124
|
+
|
|
5125
|
+
``cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem``
|
|
5121
5126
|
|
|
5122
5127
|
To use this parameter, configure ``ServerProtocol`` to ``HTTPS`` .
|
|
5123
5128
|
|
|
@@ -6755,7 +6760,8 @@ class CfnTask(
|
|
|
6755
6760
|
verify_mode="verifyMode"
|
|
6756
6761
|
),
|
|
6757
6762
|
schedule=datasync.CfnTask.TaskScheduleProperty(
|
|
6758
|
-
schedule_expression="scheduleExpression"
|
|
6763
|
+
schedule_expression="scheduleExpression",
|
|
6764
|
+
status="status"
|
|
6759
6765
|
),
|
|
6760
6766
|
tags=[CfnTag(
|
|
6761
6767
|
key="key",
|
|
@@ -8412,15 +8418,21 @@ class CfnTask(
|
|
|
8412
8418
|
@jsii.data_type(
|
|
8413
8419
|
jsii_type="aws-cdk-lib.aws_datasync.CfnTask.TaskScheduleProperty",
|
|
8414
8420
|
jsii_struct_bases=[],
|
|
8415
|
-
name_mapping={"schedule_expression": "scheduleExpression"},
|
|
8421
|
+
name_mapping={"schedule_expression": "scheduleExpression", "status": "status"},
|
|
8416
8422
|
)
|
|
8417
8423
|
class TaskScheduleProperty:
|
|
8418
|
-
def __init__(
|
|
8424
|
+
def __init__(
|
|
8425
|
+
self,
|
|
8426
|
+
*,
|
|
8427
|
+
schedule_expression: typing.Optional[builtins.str] = None,
|
|
8428
|
+
status: typing.Optional[builtins.str] = None,
|
|
8429
|
+
) -> None:
|
|
8419
8430
|
'''Specifies the schedule you want your task to use for repeated executions.
|
|
8420
8431
|
|
|
8421
8432
|
For more information, see `Schedule Expressions for Rules <https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html>`_ .
|
|
8422
8433
|
|
|
8423
8434
|
:param schedule_expression: A cron expression that specifies when AWS DataSync initiates a scheduled transfer from a source to a destination location.
|
|
8435
|
+
:param status: Specifies status of a schedule.
|
|
8424
8436
|
|
|
8425
8437
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskschedule.html
|
|
8426
8438
|
:exampleMetadata: fixture=_generated
|
|
@@ -8432,25 +8444,37 @@ class CfnTask(
|
|
|
8432
8444
|
from aws_cdk import aws_datasync as datasync
|
|
8433
8445
|
|
|
8434
8446
|
task_schedule_property = datasync.CfnTask.TaskScheduleProperty(
|
|
8435
|
-
schedule_expression="scheduleExpression"
|
|
8447
|
+
schedule_expression="scheduleExpression",
|
|
8448
|
+
status="status"
|
|
8436
8449
|
)
|
|
8437
8450
|
'''
|
|
8438
8451
|
if __debug__:
|
|
8439
8452
|
type_hints = typing.get_type_hints(_typecheckingstub__bdd1c8daa067909640e521c94ab235dbc0cbd0298c594a9205908838932a520f)
|
|
8440
8453
|
check_type(argname="argument schedule_expression", value=schedule_expression, expected_type=type_hints["schedule_expression"])
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8454
|
+
check_type(argname="argument status", value=status, expected_type=type_hints["status"])
|
|
8455
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
8456
|
+
if schedule_expression is not None:
|
|
8457
|
+
self._values["schedule_expression"] = schedule_expression
|
|
8458
|
+
if status is not None:
|
|
8459
|
+
self._values["status"] = status
|
|
8444
8460
|
|
|
8445
8461
|
@builtins.property
|
|
8446
|
-
def schedule_expression(self) -> builtins.str:
|
|
8462
|
+
def schedule_expression(self) -> typing.Optional[builtins.str]:
|
|
8447
8463
|
'''A cron expression that specifies when AWS DataSync initiates a scheduled transfer from a source to a destination location.
|
|
8448
8464
|
|
|
8449
8465
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskschedule.html#cfn-datasync-task-taskschedule-scheduleexpression
|
|
8450
8466
|
'''
|
|
8451
8467
|
result = self._values.get("schedule_expression")
|
|
8452
|
-
|
|
8453
|
-
|
|
8468
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
8469
|
+
|
|
8470
|
+
@builtins.property
|
|
8471
|
+
def status(self) -> typing.Optional[builtins.str]:
|
|
8472
|
+
'''Specifies status of a schedule.
|
|
8473
|
+
|
|
8474
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-taskschedule.html#cfn-datasync-task-taskschedule-status
|
|
8475
|
+
'''
|
|
8476
|
+
result = self._values.get("status")
|
|
8477
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
8454
8478
|
|
|
8455
8479
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
8456
8480
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -8683,7 +8707,8 @@ class CfnTaskProps:
|
|
|
8683
8707
|
verify_mode="verifyMode"
|
|
8684
8708
|
),
|
|
8685
8709
|
schedule=datasync.CfnTask.TaskScheduleProperty(
|
|
8686
|
-
schedule_expression="scheduleExpression"
|
|
8710
|
+
schedule_expression="scheduleExpression",
|
|
8711
|
+
status="status"
|
|
8687
8712
|
),
|
|
8688
8713
|
tags=[CfnTag(
|
|
8689
8714
|
key="key",
|
|
@@ -10333,7 +10358,8 @@ def _typecheckingstub__b009bd11595c3338d0fb505588fdbb9ccbeb567f140029bfcac0b3469
|
|
|
10333
10358
|
|
|
10334
10359
|
def _typecheckingstub__bdd1c8daa067909640e521c94ab235dbc0cbd0298c594a9205908838932a520f(
|
|
10335
10360
|
*,
|
|
10336
|
-
schedule_expression: builtins.str,
|
|
10361
|
+
schedule_expression: typing.Optional[builtins.str] = None,
|
|
10362
|
+
status: typing.Optional[builtins.str] = None,
|
|
10337
10363
|
) -> None:
|
|
10338
10364
|
"""Type checking stubs"""
|
|
10339
10365
|
pass
|