aws-cdk-lib 2.134.0__py3-none-any.whl → 2.136.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 +5 -0
- aws_cdk/_jsii/__init__.py +4 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.134.0.jsii.tgz → aws-cdk-lib@2.136.0.jsii.tgz} +0 -0
- aws_cdk/alexa_ask/__init__.py +3 -0
- aws_cdk/assertions/__init__.py +3 -0
- aws_cdk/aws_accessanalyzer/__init__.py +3 -0
- aws_cdk/aws_acmpca/__init__.py +3 -0
- aws_cdk/aws_amazonmq/__init__.py +3 -0
- aws_cdk/aws_amplify/__init__.py +3 -0
- aws_cdk/aws_amplifyuibuilder/__init__.py +3 -0
- aws_cdk/aws_apigateway/__init__.py +3 -0
- aws_cdk/aws_apigatewayv2/__init__.py +3 -0
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +3 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +3 -0
- aws_cdk/aws_appconfig/__init__.py +3 -0
- aws_cdk/aws_appflow/__init__.py +3 -0
- aws_cdk/aws_appintegrations/__init__.py +30 -21
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -1
- aws_cdk/aws_applicationinsights/__init__.py +3 -0
- aws_cdk/aws_appmesh/__init__.py +4 -1
- aws_cdk/aws_apprunner/__init__.py +3 -0
- aws_cdk/aws_appstream/__init__.py +3 -0
- aws_cdk/aws_appsync/__init__.py +3 -0
- aws_cdk/aws_aps/__init__.py +805 -1
- aws_cdk/aws_arczonalshift/__init__.py +3 -0
- aws_cdk/aws_athena/__init__.py +3 -0
- aws_cdk/aws_auditmanager/__init__.py +3 -0
- aws_cdk/aws_autoscaling/__init__.py +3 -0
- aws_cdk/aws_autoscaling_common/__init__.py +3 -0
- aws_cdk/aws_autoscaling_hooktargets/__init__.py +3 -0
- aws_cdk/aws_autoscalingplans/__init__.py +3 -0
- aws_cdk/aws_b2bi/__init__.py +3 -0
- aws_cdk/aws_backup/__init__.py +3 -0
- aws_cdk/aws_backupgateway/__init__.py +3 -0
- aws_cdk/aws_batch/__init__.py +3 -0
- aws_cdk/aws_bedrock/__init__.py +3 -0
- aws_cdk/aws_billingconductor/__init__.py +3 -0
- aws_cdk/aws_budgets/__init__.py +3 -0
- aws_cdk/aws_cassandra/__init__.py +3 -0
- aws_cdk/aws_ce/__init__.py +3 -0
- aws_cdk/aws_certificatemanager/__init__.py +3 -0
- aws_cdk/aws_chatbot/__init__.py +3 -0
- aws_cdk/aws_cleanrooms/__init__.py +183 -6
- aws_cdk/aws_cloud9/__init__.py +3 -0
- aws_cdk/aws_cloudformation/__init__.py +3 -0
- aws_cdk/aws_cloudfront/__init__.py +3 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +3 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +3 -0
- aws_cdk/aws_cloudtrail/__init__.py +3 -0
- aws_cdk/aws_cloudwatch/__init__.py +3 -0
- aws_cdk/aws_cloudwatch_actions/__init__.py +3 -0
- aws_cdk/aws_codeartifact/__init__.py +3 -0
- aws_cdk/aws_codebuild/__init__.py +17 -11
- aws_cdk/aws_codecommit/__init__.py +3 -0
- aws_cdk/aws_codedeploy/__init__.py +3 -0
- aws_cdk/aws_codeguruprofiler/__init__.py +3 -0
- aws_cdk/aws_codegurureviewer/__init__.py +3 -0
- aws_cdk/aws_codepipeline/__init__.py +3 -0
- aws_cdk/aws_codepipeline_actions/__init__.py +3 -0
- aws_cdk/aws_codestar/__init__.py +3 -0
- aws_cdk/aws_codestarconnections/__init__.py +91 -2
- aws_cdk/aws_codestarnotifications/__init__.py +3 -0
- aws_cdk/aws_cognito/__init__.py +3 -0
- aws_cdk/aws_comprehend/__init__.py +3 -0
- aws_cdk/aws_config/__init__.py +3 -0
- aws_cdk/aws_connect/__init__.py +21 -0
- aws_cdk/aws_connectcampaigns/__init__.py +3 -0
- aws_cdk/aws_controltower/__init__.py +3 -0
- aws_cdk/aws_cur/__init__.py +3 -0
- aws_cdk/aws_customerprofiles/__init__.py +3 -0
- aws_cdk/aws_databrew/__init__.py +3 -0
- aws_cdk/aws_datapipeline/__init__.py +3 -0
- aws_cdk/aws_datasync/__init__.py +3 -0
- aws_cdk/aws_datazone/__init__.py +3 -0
- aws_cdk/aws_dax/__init__.py +3 -0
- aws_cdk/aws_detective/__init__.py +3 -0
- aws_cdk/aws_devicefarm/__init__.py +3 -0
- aws_cdk/aws_devopsguru/__init__.py +3 -0
- aws_cdk/aws_directoryservice/__init__.py +3 -0
- aws_cdk/aws_dlm/__init__.py +3 -0
- aws_cdk/aws_dms/__init__.py +30 -9
- aws_cdk/aws_docdb/__init__.py +3 -0
- aws_cdk/aws_docdbelastic/__init__.py +20 -9
- aws_cdk/aws_dynamodb/__init__.py +3 -0
- aws_cdk/aws_ec2/__init__.py +2908 -284
- aws_cdk/aws_ecr/__init__.py +3 -0
- aws_cdk/aws_ecr_assets/__init__.py +3 -0
- aws_cdk/aws_ecs/__init__.py +30 -36
- aws_cdk/aws_ecs_patterns/__init__.py +3 -0
- aws_cdk/aws_efs/__init__.py +3 -0
- aws_cdk/aws_eks/__init__.py +42 -22
- aws_cdk/aws_elasticache/__init__.py +3 -0
- aws_cdk/aws_elasticbeanstalk/__init__.py +3 -0
- aws_cdk/aws_elasticloadbalancing/__init__.py +3 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +75 -15
- aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +3 -0
- aws_cdk/aws_elasticloadbalancingv2_targets/__init__.py +3 -0
- aws_cdk/aws_elasticsearch/__init__.py +3 -0
- aws_cdk/aws_emr/__init__.py +3 -0
- aws_cdk/aws_emrcontainers/__init__.py +3 -0
- aws_cdk/aws_emrserverless/__init__.py +3 -0
- aws_cdk/aws_entityresolution/__init__.py +5 -2
- aws_cdk/aws_events/__init__.py +3 -0
- aws_cdk/aws_events_targets/__init__.py +3 -0
- aws_cdk/aws_eventschemas/__init__.py +3 -0
- aws_cdk/aws_evidently/__init__.py +3 -0
- aws_cdk/aws_finspace/__init__.py +3 -0
- aws_cdk/aws_fis/__init__.py +3 -0
- aws_cdk/aws_fms/__init__.py +3 -0
- aws_cdk/aws_forecast/__init__.py +3 -0
- aws_cdk/aws_frauddetector/__init__.py +3 -0
- aws_cdk/aws_fsx/__init__.py +3 -0
- aws_cdk/aws_gamelift/__init__.py +3 -0
- aws_cdk/aws_globalaccelerator/__init__.py +5 -2
- aws_cdk/aws_globalaccelerator_endpoints/__init__.py +3 -0
- aws_cdk/aws_glue/__init__.py +18 -8
- aws_cdk/aws_grafana/__init__.py +3 -0
- aws_cdk/aws_greengrass/__init__.py +3 -0
- aws_cdk/aws_greengrassv2/__init__.py +3 -0
- aws_cdk/aws_groundstation/__init__.py +3 -0
- aws_cdk/aws_guardduty/__init__.py +3 -0
- aws_cdk/aws_healthimaging/__init__.py +3 -0
- aws_cdk/aws_healthlake/__init__.py +3 -0
- aws_cdk/aws_iam/__init__.py +44 -13
- aws_cdk/aws_identitystore/__init__.py +3 -0
- aws_cdk/aws_imagebuilder/__init__.py +3 -0
- aws_cdk/aws_inspector/__init__.py +3 -0
- aws_cdk/aws_inspectorv2/__init__.py +3 -0
- aws_cdk/aws_internetmonitor/__init__.py +3 -0
- aws_cdk/aws_iot/__init__.py +3 -0
- aws_cdk/aws_iot1click/__init__.py +3 -0
- aws_cdk/aws_iotanalytics/__init__.py +3 -0
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +3 -0
- aws_cdk/aws_iotevents/__init__.py +3 -0
- aws_cdk/aws_iotfleethub/__init__.py +3 -0
- aws_cdk/aws_iotfleetwise/__init__.py +3 -0
- aws_cdk/aws_iotsitewise/__init__.py +37 -14
- aws_cdk/aws_iotthingsgraph/__init__.py +3 -0
- aws_cdk/aws_iottwinmaker/__init__.py +3 -0
- aws_cdk/aws_iotwireless/__init__.py +3 -0
- aws_cdk/aws_ivs/__init__.py +3 -0
- aws_cdk/aws_ivschat/__init__.py +3 -0
- aws_cdk/aws_kafkaconnect/__init__.py +30 -27
- aws_cdk/aws_kendra/__init__.py +22 -15
- aws_cdk/aws_kendraranking/__init__.py +3 -0
- aws_cdk/aws_kinesis/__init__.py +3 -0
- aws_cdk/aws_kinesisanalytics/__init__.py +3 -0
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +3 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +11 -4
- aws_cdk/aws_kinesisvideo/__init__.py +3 -0
- aws_cdk/aws_kms/__init__.py +3 -0
- aws_cdk/aws_lakeformation/__init__.py +3 -0
- aws_cdk/aws_lambda/__init__.py +9 -0
- aws_cdk/aws_lambda_destinations/__init__.py +3 -0
- aws_cdk/aws_lambda_event_sources/__init__.py +45 -18
- aws_cdk/aws_lambda_nodejs/__init__.py +3 -0
- aws_cdk/aws_lex/__init__.py +3 -0
- aws_cdk/aws_licensemanager/__init__.py +3 -0
- aws_cdk/aws_lightsail/__init__.py +3 -0
- aws_cdk/aws_location/__init__.py +3 -0
- aws_cdk/aws_logs/__init__.py +3 -0
- aws_cdk/aws_logs_destinations/__init__.py +3 -0
- aws_cdk/aws_lookoutequipment/__init__.py +3 -0
- aws_cdk/aws_lookoutmetrics/__init__.py +3 -0
- aws_cdk/aws_lookoutvision/__init__.py +3 -0
- aws_cdk/aws_m2/__init__.py +3 -0
- aws_cdk/aws_macie/__init__.py +3 -0
- aws_cdk/aws_managedblockchain/__init__.py +5 -3
- aws_cdk/aws_mediaconnect/__init__.py +3 -0
- aws_cdk/aws_mediaconvert/__init__.py +3 -0
- aws_cdk/aws_medialive/__init__.py +3 -0
- aws_cdk/aws_mediapackage/__init__.py +3 -0
- aws_cdk/aws_mediapackagev2/__init__.py +3 -0
- aws_cdk/aws_mediastore/__init__.py +3 -0
- aws_cdk/aws_mediatailor/__init__.py +3 -0
- aws_cdk/aws_memorydb/__init__.py +3 -0
- aws_cdk/aws_msk/__init__.py +3 -0
- aws_cdk/aws_mwaa/__init__.py +3 -0
- aws_cdk/aws_neptune/__init__.py +3 -0
- aws_cdk/aws_neptunegraph/__init__.py +3 -0
- aws_cdk/aws_networkfirewall/__init__.py +3 -0
- aws_cdk/aws_networkmanager/__init__.py +3 -0
- aws_cdk/aws_nimblestudio/__init__.py +3 -0
- aws_cdk/aws_oam/__init__.py +6 -3
- aws_cdk/aws_omics/__init__.py +3 -0
- aws_cdk/aws_opensearchserverless/__init__.py +3 -0
- aws_cdk/aws_opensearchservice/__init__.py +8 -2
- aws_cdk/aws_opsworks/__init__.py +3 -0
- aws_cdk/aws_opsworkscm/__init__.py +3 -0
- aws_cdk/aws_organizations/__init__.py +3 -0
- aws_cdk/aws_osis/__init__.py +3 -0
- aws_cdk/aws_panorama/__init__.py +3 -0
- aws_cdk/aws_pcaconnectorad/__init__.py +3 -0
- aws_cdk/aws_personalize/__init__.py +3 -0
- aws_cdk/aws_pinpoint/__init__.py +3 -0
- aws_cdk/aws_pinpointemail/__init__.py +3 -0
- aws_cdk/aws_pipes/__init__.py +3 -0
- aws_cdk/aws_proton/__init__.py +3 -0
- aws_cdk/aws_qldb/__init__.py +3 -0
- aws_cdk/aws_quicksight/__init__.py +3 -0
- aws_cdk/aws_ram/__init__.py +3 -0
- aws_cdk/aws_rds/__init__.py +219 -13
- aws_cdk/aws_redshift/__init__.py +3 -0
- aws_cdk/aws_redshiftserverless/__init__.py +3 -0
- aws_cdk/aws_refactorspaces/__init__.py +3 -0
- aws_cdk/aws_rekognition/__init__.py +3 -0
- aws_cdk/aws_resiliencehub/__init__.py +3 -0
- aws_cdk/aws_resourceexplorer2/__init__.py +3 -0
- aws_cdk/aws_resourcegroups/__init__.py +3 -0
- aws_cdk/aws_robomaker/__init__.py +3 -0
- aws_cdk/aws_rolesanywhere/__init__.py +3 -0
- aws_cdk/aws_route53/__init__.py +52 -0
- aws_cdk/aws_route53_patterns/__init__.py +3 -0
- aws_cdk/aws_route53_targets/__init__.py +3 -0
- aws_cdk/aws_route53recoverycontrol/__init__.py +3 -0
- aws_cdk/aws_route53recoveryreadiness/__init__.py +3 -0
- aws_cdk/aws_route53resolver/__init__.py +3 -0
- aws_cdk/aws_rum/__init__.py +3 -0
- aws_cdk/aws_s3/__init__.py +3 -0
- aws_cdk/aws_s3_assets/__init__.py +3 -0
- aws_cdk/aws_s3_deployment/__init__.py +3 -0
- aws_cdk/aws_s3_notifications/__init__.py +3 -0
- aws_cdk/aws_s3express/__init__.py +3 -0
- aws_cdk/aws_s3objectlambda/__init__.py +3 -0
- aws_cdk/aws_s3outposts/__init__.py +3 -0
- aws_cdk/aws_sagemaker/__init__.py +3 -0
- aws_cdk/aws_sam/__init__.py +3 -0
- aws_cdk/aws_scheduler/__init__.py +3 -0
- aws_cdk/aws_sdb/__init__.py +3 -0
- aws_cdk/aws_secretsmanager/__init__.py +3 -0
- aws_cdk/aws_securityhub/__init__.py +59 -14
- aws_cdk/aws_securitylake/__init__.py +859 -0
- aws_cdk/aws_servicecatalog/__init__.py +3 -0
- aws_cdk/aws_servicecatalogappregistry/__init__.py +3 -0
- aws_cdk/aws_servicediscovery/__init__.py +3 -0
- aws_cdk/aws_ses/__init__.py +3 -0
- aws_cdk/aws_ses_actions/__init__.py +3 -0
- aws_cdk/aws_shield/__init__.py +3 -0
- aws_cdk/aws_signer/__init__.py +3 -0
- aws_cdk/aws_simspaceweaver/__init__.py +3 -0
- aws_cdk/aws_sns/__init__.py +48 -13
- aws_cdk/aws_sns_subscriptions/__init__.py +3 -0
- aws_cdk/aws_sqs/__init__.py +3 -0
- aws_cdk/aws_ssm/__init__.py +3 -0
- aws_cdk/aws_ssmcontacts/__init__.py +3 -0
- aws_cdk/aws_ssmincidents/__init__.py +3 -0
- aws_cdk/aws_sso/__init__.py +3 -0
- aws_cdk/aws_stepfunctions/__init__.py +3 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +80 -39
- aws_cdk/aws_supportapp/__init__.py +3 -0
- aws_cdk/aws_synthetics/__init__.py +3 -0
- aws_cdk/aws_systemsmanagersap/__init__.py +3 -0
- aws_cdk/aws_timestream/__init__.py +3 -0
- aws_cdk/aws_transfer/__init__.py +3 -0
- aws_cdk/aws_verifiedpermissions/__init__.py +3 -0
- aws_cdk/aws_voiceid/__init__.py +3 -0
- aws_cdk/aws_vpclattice/__init__.py +3 -0
- aws_cdk/aws_waf/__init__.py +3 -0
- aws_cdk/aws_wafregional/__init__.py +3 -0
- aws_cdk/aws_wafv2/__init__.py +3 -0
- aws_cdk/aws_wisdom/__init__.py +3 -0
- aws_cdk/aws_workspaces/__init__.py +3 -0
- aws_cdk/aws_workspacesthinclient/__init__.py +3 -0
- aws_cdk/aws_workspacesweb/__init__.py +3 -0
- aws_cdk/aws_xray/__init__.py +3 -0
- aws_cdk/cloud_assembly_schema/__init__.py +3 -0
- aws_cdk/cloudformation_include/__init__.py +3 -0
- aws_cdk/custom_resources/__init__.py +7 -4
- aws_cdk/cx_api/__init__.py +3 -0
- aws_cdk/lambda_layer_awscli/__init__.py +3 -0
- aws_cdk/lambda_layer_kubectl/__init__.py +3 -0
- aws_cdk/lambda_layer_node_proxy_agent/__init__.py +3 -0
- aws_cdk/pipelines/__init__.py +3 -0
- aws_cdk/region_info/__init__.py +3 -0
- aws_cdk/triggers/__init__.py +3 -0
- {aws_cdk_lib-2.134.0.dist-info → aws_cdk_lib-2.136.0.dist-info}/METADATA +2 -2
- aws_cdk_lib-2.136.0.dist-info/RECORD +282 -0
- aws_cdk_lib-2.134.0.dist-info/RECORD +0 -281
- {aws_cdk_lib-2.134.0.dist-info → aws_cdk_lib-2.136.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.134.0.dist-info → aws_cdk_lib-2.136.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.134.0.dist-info → aws_cdk_lib-2.136.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.134.0.dist-info → aws_cdk_lib-2.136.0.dist-info}/top_level.txt +0 -0
|
@@ -30,6 +30,9 @@ For more information on the resources and properties available for this service,
|
|
|
30
30
|
|
|
31
31
|
<!--END CFNONLY DISCLAIMER-->
|
|
32
32
|
'''
|
|
33
|
+
from pkgutil import extend_path
|
|
34
|
+
__path__ = extend_path(__path__, __name__)
|
|
35
|
+
|
|
33
36
|
import abc
|
|
34
37
|
import builtins
|
|
35
38
|
import datetime
|
aws_cdk/aws_ses/__init__.py
CHANGED
|
@@ -241,6 +241,9 @@ Use the `VdmAttributes` construct to configure the Virtual Deliverability Manage
|
|
|
241
241
|
ses.VdmAttributes(self, "Vdm")
|
|
242
242
|
```
|
|
243
243
|
'''
|
|
244
|
+
from pkgutil import extend_path
|
|
245
|
+
__path__ = extend_path(__path__, __name__)
|
|
246
|
+
|
|
244
247
|
import abc
|
|
245
248
|
import builtins
|
|
246
249
|
import datetime
|
aws_cdk/aws_shield/__init__.py
CHANGED
|
@@ -35,6 +35,9 @@ For more information on the resources and properties available for this service,
|
|
|
35
35
|
|
|
36
36
|
<!--END CFNONLY DISCLAIMER-->
|
|
37
37
|
'''
|
|
38
|
+
from pkgutil import extend_path
|
|
39
|
+
__path__ = extend_path(__path__, __name__)
|
|
40
|
+
|
|
38
41
|
import abc
|
|
39
42
|
import builtins
|
|
40
43
|
import datetime
|
aws_cdk/aws_signer/__init__.py
CHANGED
|
@@ -40,6 +40,9 @@ signing_profile = signer.SigningProfile(self, "SigningProfile",
|
|
|
40
40
|
|
|
41
41
|
A signing profile is valid by default for 135 months. This can be modified by specifying the `signatureValidityPeriod` property.
|
|
42
42
|
'''
|
|
43
|
+
from pkgutil import extend_path
|
|
44
|
+
__path__ = extend_path(__path__, __name__)
|
|
45
|
+
|
|
43
46
|
import abc
|
|
44
47
|
import builtins
|
|
45
48
|
import datetime
|
|
@@ -25,6 +25,9 @@ For more information on the resources and properties available for this service,
|
|
|
25
25
|
|
|
26
26
|
<!--END CFNONLY DISCLAIMER-->
|
|
27
27
|
'''
|
|
28
|
+
from pkgutil import extend_path
|
|
29
|
+
__path__ = extend_path(__path__, __name__)
|
|
30
|
+
|
|
28
31
|
import abc
|
|
29
32
|
import builtins
|
|
30
33
|
import datetime
|
aws_cdk/aws_sns/__init__.py
CHANGED
|
@@ -19,6 +19,19 @@ topic = sns.Topic(self, "Topic",
|
|
|
19
19
|
)
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
Add an SNS Topic to your stack with a specified signature version, which corresponds
|
|
23
|
+
to the hashing algorithm used while creating the signature of the notifications,
|
|
24
|
+
subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS.
|
|
25
|
+
|
|
26
|
+
The default signature version is `1` (`SHA1`).
|
|
27
|
+
SNS also supports signature version `2` (`SHA256`).
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
topic = sns.Topic(self, "Topic",
|
|
31
|
+
signature_version="2"
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
22
35
|
Note that FIFO topics require a topic name to be provided. The required `.fifo` suffix will be automatically generated and added to the topic name if it is not explicitly provided.
|
|
23
36
|
|
|
24
37
|
## Subscriptions
|
|
@@ -300,11 +313,9 @@ Message archiving provides the ability to archive a single copy of all messages
|
|
|
300
313
|
You can store published messages within your topic by enabling the message archive policy on the topic, which enables message archiving for all subscriptions linked to that topic.
|
|
301
314
|
Messages can be archived for a minimum of one day to a maximum of 365 days.
|
|
302
315
|
|
|
303
|
-
Example with
|
|
316
|
+
Example with an archive policy:
|
|
304
317
|
|
|
305
318
|
```python
|
|
306
|
-
# role: iam.Role
|
|
307
|
-
|
|
308
319
|
topic = sns.Topic(self, "MyTopic",
|
|
309
320
|
fifo=True,
|
|
310
321
|
message_retention_period_in_days=7
|
|
@@ -313,6 +324,9 @@ topic = sns.Topic(self, "MyTopic",
|
|
|
313
324
|
|
|
314
325
|
**Note**: The `messageRetentionPeriodInDays` property is only available for FIFO topics.
|
|
315
326
|
'''
|
|
327
|
+
from pkgutil import extend_path
|
|
328
|
+
__path__ = extend_path(__path__, __name__)
|
|
329
|
+
|
|
316
330
|
import abc
|
|
317
331
|
import builtins
|
|
318
332
|
import datetime
|
|
@@ -3190,13 +3204,12 @@ class LoggingConfig:
|
|
|
3190
3204
|
) -> None:
|
|
3191
3205
|
'''A logging configuration for delivery status of messages sent from SNS topic to subscribed endpoints.
|
|
3192
3206
|
|
|
3193
|
-
For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-topic-attributes.html.
|
|
3194
|
-
|
|
3195
3207
|
:param protocol: Indicates one of the supported protocols for the SNS topic.
|
|
3196
3208
|
:param failure_feedback_role: The IAM role to be used when logging failed message deliveries in Amazon CloudWatch. Default: None
|
|
3197
3209
|
:param success_feedback_role: The IAM role to be used when logging successful message deliveries in Amazon CloudWatch. Default: None
|
|
3198
3210
|
:param success_feedback_sample_rate: The percentage of successful message deliveries to be logged in Amazon CloudWatch. Valid values are integer between 0-100 Default: None
|
|
3199
3211
|
|
|
3212
|
+
:see: https://docs.aws.amazon.com/sns/latest/dg/sns-topic-attributes.html.
|
|
3200
3213
|
:exampleMetadata: infused
|
|
3201
3214
|
|
|
3202
3215
|
Example::
|
|
@@ -5077,6 +5090,7 @@ class TopicPolicyProps:
|
|
|
5077
5090
|
"logging_configs": "loggingConfigs",
|
|
5078
5091
|
"master_key": "masterKey",
|
|
5079
5092
|
"message_retention_period_in_days": "messageRetentionPeriodInDays",
|
|
5093
|
+
"signature_version": "signatureVersion",
|
|
5080
5094
|
"topic_name": "topicName",
|
|
5081
5095
|
},
|
|
5082
5096
|
)
|
|
@@ -5091,17 +5105,19 @@ class TopicProps:
|
|
|
5091
5105
|
logging_configs: typing.Optional[typing.Sequence[typing.Union[LoggingConfig, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5092
5106
|
master_key: typing.Optional[_IKey_5f11635f] = None,
|
|
5093
5107
|
message_retention_period_in_days: typing.Optional[jsii.Number] = None,
|
|
5108
|
+
signature_version: typing.Optional[builtins.str] = None,
|
|
5094
5109
|
topic_name: typing.Optional[builtins.str] = None,
|
|
5095
5110
|
) -> None:
|
|
5096
5111
|
'''Properties for a new SNS topic.
|
|
5097
5112
|
|
|
5098
5113
|
:param content_based_deduplication: Enables content-based deduplication for FIFO topics. Default: None
|
|
5099
5114
|
:param display_name: A developer-defined string that can be used to identify this SNS topic. Default: None
|
|
5100
|
-
:param enforce_ssl: Adds a statement to enforce encryption of data in transit when publishing to the topic.
|
|
5115
|
+
:param enforce_ssl: Adds a statement to enforce encryption of data in transit when publishing to the topic. Default: false
|
|
5101
5116
|
:param fifo: Set to true to create a FIFO topic. Default: None
|
|
5102
|
-
:param logging_configs: The list of delivery status logging configurations for the topic.
|
|
5117
|
+
:param logging_configs: The list of delivery status logging configurations for the topic. Default: None
|
|
5103
5118
|
:param master_key: A KMS Key, either managed by this CDK app, or imported. Default: None
|
|
5104
5119
|
:param message_retention_period_in_days: The number of days Amazon SNS retains messages. It can only be set for FIFO topics. Default: - do not archive messages
|
|
5120
|
+
:param signature_version: The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. Default: 1
|
|
5105
5121
|
:param topic_name: A name for the topic. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the topic name. For more information, see Name Type. Default: Generated name
|
|
5106
5122
|
|
|
5107
5123
|
:exampleMetadata: infused
|
|
@@ -5123,6 +5139,7 @@ class TopicProps:
|
|
|
5123
5139
|
check_type(argname="argument logging_configs", value=logging_configs, expected_type=type_hints["logging_configs"])
|
|
5124
5140
|
check_type(argname="argument master_key", value=master_key, expected_type=type_hints["master_key"])
|
|
5125
5141
|
check_type(argname="argument message_retention_period_in_days", value=message_retention_period_in_days, expected_type=type_hints["message_retention_period_in_days"])
|
|
5142
|
+
check_type(argname="argument signature_version", value=signature_version, expected_type=type_hints["signature_version"])
|
|
5126
5143
|
check_type(argname="argument topic_name", value=topic_name, expected_type=type_hints["topic_name"])
|
|
5127
5144
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
5128
5145
|
if content_based_deduplication is not None:
|
|
@@ -5139,6 +5156,8 @@ class TopicProps:
|
|
|
5139
5156
|
self._values["master_key"] = master_key
|
|
5140
5157
|
if message_retention_period_in_days is not None:
|
|
5141
5158
|
self._values["message_retention_period_in_days"] = message_retention_period_in_days
|
|
5159
|
+
if signature_version is not None:
|
|
5160
|
+
self._values["signature_version"] = signature_version
|
|
5142
5161
|
if topic_name is not None:
|
|
5143
5162
|
self._values["topic_name"] = topic_name
|
|
5144
5163
|
|
|
@@ -5164,9 +5183,9 @@ class TopicProps:
|
|
|
5164
5183
|
def enforce_ssl(self) -> typing.Optional[builtins.bool]:
|
|
5165
5184
|
'''Adds a statement to enforce encryption of data in transit when publishing to the topic.
|
|
5166
5185
|
|
|
5167
|
-
For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html#enforce-encryption-data-in-transit.
|
|
5168
|
-
|
|
5169
5186
|
:default: false
|
|
5187
|
+
|
|
5188
|
+
:see: https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html#enforce-encryption-data-in-transit.
|
|
5170
5189
|
'''
|
|
5171
5190
|
result = self._values.get("enforce_ssl")
|
|
5172
5191
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
@@ -5184,9 +5203,9 @@ class TopicProps:
|
|
|
5184
5203
|
def logging_configs(self) -> typing.Optional[typing.List[LoggingConfig]]:
|
|
5185
5204
|
'''The list of delivery status logging configurations for the topic.
|
|
5186
5205
|
|
|
5187
|
-
For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-topic-attributes.html.
|
|
5188
|
-
|
|
5189
5206
|
:default: None
|
|
5207
|
+
|
|
5208
|
+
:see: https://docs.aws.amazon.com/sns/latest/dg/sns-topic-attributes.html.
|
|
5190
5209
|
'''
|
|
5191
5210
|
result = self._values.get("logging_configs")
|
|
5192
5211
|
return typing.cast(typing.Optional[typing.List[LoggingConfig]], result)
|
|
@@ -5213,6 +5232,17 @@ class TopicProps:
|
|
|
5213
5232
|
result = self._values.get("message_retention_period_in_days")
|
|
5214
5233
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
5215
5234
|
|
|
5235
|
+
@builtins.property
|
|
5236
|
+
def signature_version(self) -> typing.Optional[builtins.str]:
|
|
5237
|
+
'''The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS.
|
|
5238
|
+
|
|
5239
|
+
:default: 1
|
|
5240
|
+
|
|
5241
|
+
:see: https://docs.aws.amazon.com/sns/latest/dg/sns-verify-signature-of-message.html.
|
|
5242
|
+
'''
|
|
5243
|
+
result = self._values.get("signature_version")
|
|
5244
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
5245
|
+
|
|
5216
5246
|
@builtins.property
|
|
5217
5247
|
def topic_name(self) -> typing.Optional[builtins.str]:
|
|
5218
5248
|
'''A name for the topic.
|
|
@@ -5574,6 +5604,7 @@ class Topic(TopicBase, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_sns.T
|
|
|
5574
5604
|
logging_configs: typing.Optional[typing.Sequence[typing.Union[LoggingConfig, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5575
5605
|
master_key: typing.Optional[_IKey_5f11635f] = None,
|
|
5576
5606
|
message_retention_period_in_days: typing.Optional[jsii.Number] = None,
|
|
5607
|
+
signature_version: typing.Optional[builtins.str] = None,
|
|
5577
5608
|
topic_name: typing.Optional[builtins.str] = None,
|
|
5578
5609
|
) -> None:
|
|
5579
5610
|
'''
|
|
@@ -5581,11 +5612,12 @@ class Topic(TopicBase, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_sns.T
|
|
|
5581
5612
|
:param id: -
|
|
5582
5613
|
:param content_based_deduplication: Enables content-based deduplication for FIFO topics. Default: None
|
|
5583
5614
|
:param display_name: A developer-defined string that can be used to identify this SNS topic. Default: None
|
|
5584
|
-
:param enforce_ssl: Adds a statement to enforce encryption of data in transit when publishing to the topic.
|
|
5615
|
+
:param enforce_ssl: Adds a statement to enforce encryption of data in transit when publishing to the topic. Default: false
|
|
5585
5616
|
:param fifo: Set to true to create a FIFO topic. Default: None
|
|
5586
|
-
:param logging_configs: The list of delivery status logging configurations for the topic.
|
|
5617
|
+
:param logging_configs: The list of delivery status logging configurations for the topic. Default: None
|
|
5587
5618
|
:param master_key: A KMS Key, either managed by this CDK app, or imported. Default: None
|
|
5588
5619
|
:param message_retention_period_in_days: The number of days Amazon SNS retains messages. It can only be set for FIFO topics. Default: - do not archive messages
|
|
5620
|
+
:param signature_version: The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. Default: 1
|
|
5589
5621
|
:param topic_name: A name for the topic. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the topic name. For more information, see Name Type. Default: Generated name
|
|
5590
5622
|
'''
|
|
5591
5623
|
if __debug__:
|
|
@@ -5600,6 +5632,7 @@ class Topic(TopicBase, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_sns.T
|
|
|
5600
5632
|
logging_configs=logging_configs,
|
|
5601
5633
|
master_key=master_key,
|
|
5602
5634
|
message_retention_period_in_days=message_retention_period_in_days,
|
|
5635
|
+
signature_version=signature_version,
|
|
5603
5636
|
topic_name=topic_name,
|
|
5604
5637
|
)
|
|
5605
5638
|
|
|
@@ -6303,6 +6336,7 @@ def _typecheckingstub__093960c1ab5457cc6797eb4a06c9e8fc74e41d4eaa9d0a17f00fa896d
|
|
|
6303
6336
|
logging_configs: typing.Optional[typing.Sequence[typing.Union[LoggingConfig, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6304
6337
|
master_key: typing.Optional[_IKey_5f11635f] = None,
|
|
6305
6338
|
message_retention_period_in_days: typing.Optional[jsii.Number] = None,
|
|
6339
|
+
signature_version: typing.Optional[builtins.str] = None,
|
|
6306
6340
|
topic_name: typing.Optional[builtins.str] = None,
|
|
6307
6341
|
) -> None:
|
|
6308
6342
|
"""Type checking stubs"""
|
|
@@ -6342,6 +6376,7 @@ def _typecheckingstub__5bf7b7a1001dc600e81a7f1c5015e367dc471dcd727360f62a7eaf6eb
|
|
|
6342
6376
|
logging_configs: typing.Optional[typing.Sequence[typing.Union[LoggingConfig, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6343
6377
|
master_key: typing.Optional[_IKey_5f11635f] = None,
|
|
6344
6378
|
message_retention_period_in_days: typing.Optional[jsii.Number] = None,
|
|
6379
|
+
signature_version: typing.Optional[builtins.str] = None,
|
|
6345
6380
|
topic_name: typing.Optional[builtins.str] = None,
|
|
6346
6381
|
) -> None:
|
|
6347
6382
|
"""Type checking stubs"""
|
|
@@ -120,6 +120,9 @@ sms_number = CfnParameter(self, "sms-param")
|
|
|
120
120
|
my_topic.add_subscription(subscriptions.SmsSubscription(sms_number.value_as_string))
|
|
121
121
|
```
|
|
122
122
|
'''
|
|
123
|
+
from pkgutil import extend_path
|
|
124
|
+
__path__ = extend_path(__path__, __name__)
|
|
125
|
+
|
|
123
126
|
import abc
|
|
124
127
|
import builtins
|
|
125
128
|
import datetime
|
aws_cdk/aws_sqs/__init__.py
CHANGED
aws_cdk/aws_ssm/__init__.py
CHANGED
|
@@ -137,6 +137,9 @@ When specifying an `allowedPattern`, the values provided as string literals
|
|
|
137
137
|
are validated against the pattern and an exception is raised if a value
|
|
138
138
|
provided does not comply.
|
|
139
139
|
'''
|
|
140
|
+
from pkgutil import extend_path
|
|
141
|
+
__path__ = extend_path(__path__, __name__)
|
|
142
|
+
|
|
140
143
|
import abc
|
|
141
144
|
import builtins
|
|
142
145
|
import datetime
|
|
@@ -25,6 +25,9 @@ For more information on the resources and properties available for this service,
|
|
|
25
25
|
|
|
26
26
|
<!--END CFNONLY DISCLAIMER-->
|
|
27
27
|
'''
|
|
28
|
+
from pkgutil import extend_path
|
|
29
|
+
__path__ = extend_path(__path__, __name__)
|
|
30
|
+
|
|
28
31
|
import abc
|
|
29
32
|
import builtins
|
|
30
33
|
import datetime
|
|
@@ -25,6 +25,9 @@ For more information on the resources and properties available for this service,
|
|
|
25
25
|
|
|
26
26
|
<!--END CFNONLY DISCLAIMER-->
|
|
27
27
|
'''
|
|
28
|
+
from pkgutil import extend_path
|
|
29
|
+
__path__ = extend_path(__path__, __name__)
|
|
30
|
+
|
|
28
31
|
import abc
|
|
29
32
|
import builtins
|
|
30
33
|
import datetime
|
aws_cdk/aws_sso/__init__.py
CHANGED
|
@@ -25,6 +25,9 @@ For more information on the resources and properties available for this service,
|
|
|
25
25
|
|
|
26
26
|
<!--END CFNONLY DISCLAIMER-->
|
|
27
27
|
'''
|
|
28
|
+
from pkgutil import extend_path
|
|
29
|
+
__path__ = extend_path(__path__, __name__)
|
|
30
|
+
|
|
28
31
|
import abc
|
|
29
32
|
import builtins
|
|
30
33
|
import datetime
|
|
@@ -1063,6 +1063,9 @@ sfn.StateMachine.from_state_machine_arn(self, "ViaArnImportedStateMachine", "arn
|
|
|
1063
1063
|
sfn.StateMachine.from_state_machine_name(self, "ViaResourceNameImportedStateMachine", "StateMachine2E01A3A5-N5TJppzoevKQ")
|
|
1064
1064
|
```
|
|
1065
1065
|
'''
|
|
1066
|
+
from pkgutil import extend_path
|
|
1067
|
+
__path__ = extend_path(__path__, __name__)
|
|
1068
|
+
|
|
1066
1069
|
import abc
|
|
1067
1070
|
import builtins
|
|
1068
1071
|
import datetime
|
|
@@ -627,6 +627,34 @@ run_task = tasks.EcsRunTask(self, "RunFargate",
|
|
|
627
627
|
)
|
|
628
628
|
```
|
|
629
629
|
|
|
630
|
+
#### ECS enable Exec
|
|
631
|
+
|
|
632
|
+
By setting the property [`enableExecuteCommand`](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-enableExecuteCommand) to `true`, you can enable the [ECS Exec feature](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html) for the task for either Fargate or EC2 launch types.
|
|
633
|
+
|
|
634
|
+
```python
|
|
635
|
+
vpc = ec2.Vpc.from_lookup(self, "Vpc",
|
|
636
|
+
is_default=True
|
|
637
|
+
)
|
|
638
|
+
cluster = ecs.Cluster(self, "ECSCluster", vpc=vpc)
|
|
639
|
+
|
|
640
|
+
task_definition = ecs.TaskDefinition(self, "TD",
|
|
641
|
+
compatibility=ecs.Compatibility.EC2
|
|
642
|
+
)
|
|
643
|
+
|
|
644
|
+
task_definition.add_container("TheContainer",
|
|
645
|
+
image=ecs.ContainerImage.from_registry("foo/bar"),
|
|
646
|
+
memory_limit_mi_b=256
|
|
647
|
+
)
|
|
648
|
+
|
|
649
|
+
run_task = tasks.EcsRunTask(self, "Run",
|
|
650
|
+
integration_pattern=sfn.IntegrationPattern.RUN_JOB,
|
|
651
|
+
cluster=cluster,
|
|
652
|
+
task_definition=task_definition,
|
|
653
|
+
launch_target=tasks.EcsEc2LaunchTarget(),
|
|
654
|
+
enable_execute_command=True
|
|
655
|
+
)
|
|
656
|
+
```
|
|
657
|
+
|
|
630
658
|
## EMR
|
|
631
659
|
|
|
632
660
|
Step Functions supports Amazon EMR through the service integration pattern.
|
|
@@ -1565,6 +1593,9 @@ task2 = tasks.SqsSendMessage(self, "Send2",
|
|
|
1565
1593
|
)
|
|
1566
1594
|
```
|
|
1567
1595
|
'''
|
|
1596
|
+
from pkgutil import extend_path
|
|
1597
|
+
__path__ = extend_path(__path__, __name__)
|
|
1598
|
+
|
|
1568
1599
|
import abc
|
|
1569
1600
|
import builtins
|
|
1570
1601
|
import datetime
|
|
@@ -11826,35 +11857,29 @@ class EcsRunTask(
|
|
|
11826
11857
|
is_default=True
|
|
11827
11858
|
)
|
|
11828
11859
|
|
|
11829
|
-
cluster = ecs.Cluster(self, "
|
|
11830
|
-
cluster.add_capacity("DefaultAutoScalingGroup",
|
|
11831
|
-
instance_type=ec2.InstanceType("t2.micro"),
|
|
11832
|
-
vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PUBLIC)
|
|
11833
|
-
)
|
|
11860
|
+
cluster = ecs.Cluster(self, "FargateCluster", vpc=vpc)
|
|
11834
11861
|
|
|
11835
11862
|
task_definition = ecs.TaskDefinition(self, "TD",
|
|
11836
|
-
|
|
11863
|
+
memory_mi_b="512",
|
|
11864
|
+
cpu="256",
|
|
11865
|
+
compatibility=ecs.Compatibility.FARGATE
|
|
11837
11866
|
)
|
|
11838
11867
|
|
|
11839
|
-
task_definition.add_container("TheContainer",
|
|
11868
|
+
container_definition = task_definition.add_container("TheContainer",
|
|
11840
11869
|
image=ecs.ContainerImage.from_registry("foo/bar"),
|
|
11841
11870
|
memory_limit_mi_b=256
|
|
11842
11871
|
)
|
|
11843
11872
|
|
|
11844
|
-
run_task = tasks.EcsRunTask(self, "
|
|
11873
|
+
run_task = tasks.EcsRunTask(self, "RunFargate",
|
|
11845
11874
|
integration_pattern=sfn.IntegrationPattern.RUN_JOB,
|
|
11846
11875
|
cluster=cluster,
|
|
11847
11876
|
task_definition=task_definition,
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
placement_constraints=[
|
|
11855
|
-
ecs.PlacementConstraint.member_of("blieptuut")
|
|
11856
|
-
]
|
|
11857
|
-
),
|
|
11877
|
+
assign_public_ip=True,
|
|
11878
|
+
container_overrides=[tasks.ContainerOverride(
|
|
11879
|
+
container_definition=container_definition,
|
|
11880
|
+
environment=[tasks.TaskEnvironmentVariable(name="SOME_KEY", value=sfn.JsonPath.string_at("$.SomeKey"))]
|
|
11881
|
+
)],
|
|
11882
|
+
launch_target=tasks.EcsFargateLaunchTarget(),
|
|
11858
11883
|
propagated_tag_source=ecs.PropagatedTagSource.TASK_DEFINITION
|
|
11859
11884
|
)
|
|
11860
11885
|
'''
|
|
@@ -11869,6 +11894,7 @@ class EcsRunTask(
|
|
|
11869
11894
|
task_definition: _TaskDefinition_a541a103,
|
|
11870
11895
|
assign_public_ip: typing.Optional[builtins.bool] = None,
|
|
11871
11896
|
container_overrides: typing.Optional[typing.Sequence[typing.Union[ContainerOverride, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11897
|
+
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
11872
11898
|
propagated_tag_source: typing.Optional[_PropagatedTagSource_ad4e874a] = None,
|
|
11873
11899
|
revision_number: typing.Optional[jsii.Number] = None,
|
|
11874
11900
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -11894,8 +11920,9 @@ class EcsRunTask(
|
|
|
11894
11920
|
:param task_definition: [disable-awslint:ref-via-interface] Task Definition used for running tasks in the service. Note: this must be TaskDefinition, and not ITaskDefinition, as it requires properties that are not known for imported task definitions If you want to run a RunTask with an imported task definition, consider using CustomState
|
|
11895
11921
|
:param assign_public_ip: Assign public IP addresses to each task. Default: false
|
|
11896
11922
|
:param container_overrides: Container setting overrides. Specify the container to use and the overrides to apply. Default: - No overrides
|
|
11923
|
+
:param enable_execute_command: Whether ECS Exec should be enabled. Default: false
|
|
11897
11924
|
:param propagated_tag_source: Specifies whether to propagate the tags from the task definition to the task. An error will be received if you specify the SERVICE option when running a task. Default: - No tags are propagated.
|
|
11898
|
-
:param revision_number: The revision number of ECS task
|
|
11925
|
+
:param revision_number: The revision number of ECS task definition family. Default: - '$latest'
|
|
11899
11926
|
:param security_groups: Existing security groups to use for the tasks. Default: - A new security group is created
|
|
11900
11927
|
:param subnets: Subnets to place the task's ENIs. Default: - Public subnets if assignPublicIp is set. Private subnets otherwise.
|
|
11901
11928
|
:param comment: An optional description for this state. Default: - No comment
|
|
@@ -11921,6 +11948,7 @@ class EcsRunTask(
|
|
|
11921
11948
|
task_definition=task_definition,
|
|
11922
11949
|
assign_public_ip=assign_public_ip,
|
|
11923
11950
|
container_overrides=container_overrides,
|
|
11951
|
+
enable_execute_command=enable_execute_command,
|
|
11924
11952
|
propagated_tag_source=propagated_tag_source,
|
|
11925
11953
|
revision_number=revision_number,
|
|
11926
11954
|
security_groups=security_groups,
|
|
@@ -11979,6 +12007,7 @@ class EcsRunTask(
|
|
|
11979
12007
|
"task_definition": "taskDefinition",
|
|
11980
12008
|
"assign_public_ip": "assignPublicIp",
|
|
11981
12009
|
"container_overrides": "containerOverrides",
|
|
12010
|
+
"enable_execute_command": "enableExecuteCommand",
|
|
11982
12011
|
"propagated_tag_source": "propagatedTagSource",
|
|
11983
12012
|
"revision_number": "revisionNumber",
|
|
11984
12013
|
"security_groups": "securityGroups",
|
|
@@ -12006,6 +12035,7 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12006
12035
|
task_definition: _TaskDefinition_a541a103,
|
|
12007
12036
|
assign_public_ip: typing.Optional[builtins.bool] = None,
|
|
12008
12037
|
container_overrides: typing.Optional[typing.Sequence[typing.Union[ContainerOverride, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12038
|
+
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
12009
12039
|
propagated_tag_source: typing.Optional[_PropagatedTagSource_ad4e874a] = None,
|
|
12010
12040
|
revision_number: typing.Optional[jsii.Number] = None,
|
|
12011
12041
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -12030,8 +12060,9 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12030
12060
|
:param task_definition: [disable-awslint:ref-via-interface] Task Definition used for running tasks in the service. Note: this must be TaskDefinition, and not ITaskDefinition, as it requires properties that are not known for imported task definitions If you want to run a RunTask with an imported task definition, consider using CustomState
|
|
12031
12061
|
:param assign_public_ip: Assign public IP addresses to each task. Default: false
|
|
12032
12062
|
:param container_overrides: Container setting overrides. Specify the container to use and the overrides to apply. Default: - No overrides
|
|
12063
|
+
:param enable_execute_command: Whether ECS Exec should be enabled. Default: false
|
|
12033
12064
|
:param propagated_tag_source: Specifies whether to propagate the tags from the task definition to the task. An error will be received if you specify the SERVICE option when running a task. Default: - No tags are propagated.
|
|
12034
|
-
:param revision_number: The revision number of ECS task
|
|
12065
|
+
:param revision_number: The revision number of ECS task definition family. Default: - '$latest'
|
|
12035
12066
|
:param security_groups: Existing security groups to use for the tasks. Default: - A new security group is created
|
|
12036
12067
|
:param subnets: Subnets to place the task's ENIs. Default: - Public subnets if assignPublicIp is set. Private subnets otherwise.
|
|
12037
12068
|
|
|
@@ -12043,35 +12074,29 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12043
12074
|
is_default=True
|
|
12044
12075
|
)
|
|
12045
12076
|
|
|
12046
|
-
cluster = ecs.Cluster(self, "
|
|
12047
|
-
cluster.add_capacity("DefaultAutoScalingGroup",
|
|
12048
|
-
instance_type=ec2.InstanceType("t2.micro"),
|
|
12049
|
-
vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PUBLIC)
|
|
12050
|
-
)
|
|
12077
|
+
cluster = ecs.Cluster(self, "FargateCluster", vpc=vpc)
|
|
12051
12078
|
|
|
12052
12079
|
task_definition = ecs.TaskDefinition(self, "TD",
|
|
12053
|
-
|
|
12080
|
+
memory_mi_b="512",
|
|
12081
|
+
cpu="256",
|
|
12082
|
+
compatibility=ecs.Compatibility.FARGATE
|
|
12054
12083
|
)
|
|
12055
12084
|
|
|
12056
|
-
task_definition.add_container("TheContainer",
|
|
12085
|
+
container_definition = task_definition.add_container("TheContainer",
|
|
12057
12086
|
image=ecs.ContainerImage.from_registry("foo/bar"),
|
|
12058
12087
|
memory_limit_mi_b=256
|
|
12059
12088
|
)
|
|
12060
12089
|
|
|
12061
|
-
run_task = tasks.EcsRunTask(self, "
|
|
12090
|
+
run_task = tasks.EcsRunTask(self, "RunFargate",
|
|
12062
12091
|
integration_pattern=sfn.IntegrationPattern.RUN_JOB,
|
|
12063
12092
|
cluster=cluster,
|
|
12064
12093
|
task_definition=task_definition,
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12070
|
-
|
|
12071
|
-
placement_constraints=[
|
|
12072
|
-
ecs.PlacementConstraint.member_of("blieptuut")
|
|
12073
|
-
]
|
|
12074
|
-
),
|
|
12094
|
+
assign_public_ip=True,
|
|
12095
|
+
container_overrides=[tasks.ContainerOverride(
|
|
12096
|
+
container_definition=container_definition,
|
|
12097
|
+
environment=[tasks.TaskEnvironmentVariable(name="SOME_KEY", value=sfn.JsonPath.string_at("$.SomeKey"))]
|
|
12098
|
+
)],
|
|
12099
|
+
launch_target=tasks.EcsFargateLaunchTarget(),
|
|
12075
12100
|
propagated_tag_source=ecs.PropagatedTagSource.TASK_DEFINITION
|
|
12076
12101
|
)
|
|
12077
12102
|
'''
|
|
@@ -12098,6 +12123,7 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12098
12123
|
check_type(argname="argument task_definition", value=task_definition, expected_type=type_hints["task_definition"])
|
|
12099
12124
|
check_type(argname="argument assign_public_ip", value=assign_public_ip, expected_type=type_hints["assign_public_ip"])
|
|
12100
12125
|
check_type(argname="argument container_overrides", value=container_overrides, expected_type=type_hints["container_overrides"])
|
|
12126
|
+
check_type(argname="argument enable_execute_command", value=enable_execute_command, expected_type=type_hints["enable_execute_command"])
|
|
12101
12127
|
check_type(argname="argument propagated_tag_source", value=propagated_tag_source, expected_type=type_hints["propagated_tag_source"])
|
|
12102
12128
|
check_type(argname="argument revision_number", value=revision_number, expected_type=type_hints["revision_number"])
|
|
12103
12129
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
@@ -12135,6 +12161,8 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12135
12161
|
self._values["assign_public_ip"] = assign_public_ip
|
|
12136
12162
|
if container_overrides is not None:
|
|
12137
12163
|
self._values["container_overrides"] = container_overrides
|
|
12164
|
+
if enable_execute_command is not None:
|
|
12165
|
+
self._values["enable_execute_command"] = enable_execute_command
|
|
12138
12166
|
if propagated_tag_source is not None:
|
|
12139
12167
|
self._values["propagated_tag_source"] = propagated_tag_source
|
|
12140
12168
|
if revision_number is not None:
|
|
@@ -12349,6 +12377,17 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12349
12377
|
result = self._values.get("container_overrides")
|
|
12350
12378
|
return typing.cast(typing.Optional[typing.List[ContainerOverride]], result)
|
|
12351
12379
|
|
|
12380
|
+
@builtins.property
|
|
12381
|
+
def enable_execute_command(self) -> typing.Optional[builtins.bool]:
|
|
12382
|
+
'''Whether ECS Exec should be enabled.
|
|
12383
|
+
|
|
12384
|
+
:default: false
|
|
12385
|
+
|
|
12386
|
+
:see: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-enableExecuteCommand
|
|
12387
|
+
'''
|
|
12388
|
+
result = self._values.get("enable_execute_command")
|
|
12389
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
12390
|
+
|
|
12352
12391
|
@builtins.property
|
|
12353
12392
|
def propagated_tag_source(self) -> typing.Optional[_PropagatedTagSource_ad4e874a]:
|
|
12354
12393
|
'''Specifies whether to propagate the tags from the task definition to the task.
|
|
@@ -12364,7 +12403,7 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12364
12403
|
|
|
12365
12404
|
@builtins.property
|
|
12366
12405
|
def revision_number(self) -> typing.Optional[jsii.Number]:
|
|
12367
|
-
'''The revision number of ECS task
|
|
12406
|
+
'''The revision number of ECS task definition family.
|
|
12368
12407
|
|
|
12369
12408
|
:default: - '$latest'
|
|
12370
12409
|
'''
|
|
@@ -33284,6 +33323,7 @@ def _typecheckingstub__1b9fa1de6876853cd0aa59517079cbcfc7017daf643f17b13556a7a5f
|
|
|
33284
33323
|
task_definition: _TaskDefinition_a541a103,
|
|
33285
33324
|
assign_public_ip: typing.Optional[builtins.bool] = None,
|
|
33286
33325
|
container_overrides: typing.Optional[typing.Sequence[typing.Union[ContainerOverride, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
33326
|
+
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
33287
33327
|
propagated_tag_source: typing.Optional[_PropagatedTagSource_ad4e874a] = None,
|
|
33288
33328
|
revision_number: typing.Optional[jsii.Number] = None,
|
|
33289
33329
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -33323,6 +33363,7 @@ def _typecheckingstub__4f880997570006602fac387ce93510039132ec3f42612722766b67ec6
|
|
|
33323
33363
|
task_definition: _TaskDefinition_a541a103,
|
|
33324
33364
|
assign_public_ip: typing.Optional[builtins.bool] = None,
|
|
33325
33365
|
container_overrides: typing.Optional[typing.Sequence[typing.Union[ContainerOverride, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
33366
|
+
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
33326
33367
|
propagated_tag_source: typing.Optional[_PropagatedTagSource_ad4e874a] = None,
|
|
33327
33368
|
revision_number: typing.Optional[jsii.Number] = None,
|
|
33328
33369
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -25,6 +25,9 @@ For more information on the resources and properties available for this service,
|
|
|
25
25
|
|
|
26
26
|
<!--END CFNONLY DISCLAIMER-->
|
|
27
27
|
'''
|
|
28
|
+
from pkgutil import extend_path
|
|
29
|
+
__path__ = extend_path(__path__, __name__)
|
|
30
|
+
|
|
28
31
|
import abc
|
|
29
32
|
import builtins
|
|
30
33
|
import datetime
|
|
@@ -25,6 +25,9 @@ For more information on the resources and properties available for this service,
|
|
|
25
25
|
|
|
26
26
|
<!--END CFNONLY DISCLAIMER-->
|
|
27
27
|
'''
|
|
28
|
+
from pkgutil import extend_path
|
|
29
|
+
__path__ = extend_path(__path__, __name__)
|
|
30
|
+
|
|
28
31
|
import abc
|
|
29
32
|
import builtins
|
|
30
33
|
import datetime
|
|
@@ -25,6 +25,9 @@ For more information on the resources and properties available for this service,
|
|
|
25
25
|
|
|
26
26
|
<!--END CFNONLY DISCLAIMER-->
|
|
27
27
|
'''
|
|
28
|
+
from pkgutil import extend_path
|
|
29
|
+
__path__ = extend_path(__path__, __name__)
|
|
30
|
+
|
|
28
31
|
import abc
|
|
29
32
|
import builtins
|
|
30
33
|
import datetime
|