aws-cdk-lib 2.177.0__py3-none-any.whl → 2.178.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.

Files changed (111) hide show
  1. aws_cdk/__init__.py +95 -61
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.177.0.jsii.tgz → aws-cdk-lib@2.178.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplifyuibuilder/__init__.py +8 -8
  5. aws_cdk/aws_apigateway/__init__.py +97 -97
  6. aws_cdk/aws_apigatewayv2/__init__.py +35 -10
  7. aws_cdk/aws_appconfig/__init__.py +10 -10
  8. aws_cdk/aws_appflow/__init__.py +20 -20
  9. aws_cdk/aws_applicationsignals/__init__.py +8 -8
  10. aws_cdk/aws_appmesh/__init__.py +8 -8
  11. aws_cdk/aws_appsync/__init__.py +10383 -7035
  12. aws_cdk/aws_apptest/__init__.py +4 -4
  13. aws_cdk/aws_aps/__init__.py +135 -0
  14. aws_cdk/aws_athena/__init__.py +10 -10
  15. aws_cdk/aws_backup/__init__.py +14 -14
  16. aws_cdk/aws_batch/__init__.py +185 -22
  17. aws_cdk/aws_bcmdataexports/__init__.py +4 -4
  18. aws_cdk/aws_bedrock/__init__.py +266 -177
  19. aws_cdk/aws_certificatemanager/__init__.py +15 -14
  20. aws_cdk/aws_chatbot/__init__.py +4 -4
  21. aws_cdk/aws_cloudformation/__init__.py +22 -18
  22. aws_cdk/aws_cloudfront/__init__.py +674 -7
  23. aws_cdk/aws_cloudfront_origins/__init__.py +40 -0
  24. aws_cdk/aws_cloudtrail/__init__.py +4 -4
  25. aws_cdk/aws_cloudwatch/__init__.py +53 -53
  26. aws_cdk/aws_codedeploy/__init__.py +2 -2
  27. aws_cdk/aws_codepipeline/__init__.py +24 -6
  28. aws_cdk/aws_codepipeline_actions/__init__.py +2 -2
  29. aws_cdk/aws_cognito/__init__.py +42 -20
  30. aws_cdk/aws_connect/__init__.py +4 -4
  31. aws_cdk/aws_customerprofiles/__init__.py +3 -1
  32. aws_cdk/aws_databrew/__init__.py +16 -16
  33. aws_cdk/aws_datasync/__init__.py +14 -11
  34. aws_cdk/aws_datazone/__init__.py +5 -5
  35. aws_cdk/aws_dms/__init__.py +4 -4
  36. aws_cdk/aws_dynamodb/__init__.py +267 -25
  37. aws_cdk/aws_ec2/__init__.py +1137 -181
  38. aws_cdk/aws_ecs/__init__.py +740 -116
  39. aws_cdk/aws_ecs_patterns/__init__.py +49 -0
  40. aws_cdk/aws_efs/__init__.py +3 -3
  41. aws_cdk/aws_eks/__init__.py +31 -32
  42. aws_cdk/aws_elasticache/__init__.py +10 -10
  43. aws_cdk/aws_elasticloadbalancingv2/__init__.py +47 -18
  44. aws_cdk/aws_elasticsearch/__init__.py +10 -10
  45. aws_cdk/aws_emr/__init__.py +16 -16
  46. aws_cdk/aws_emrserverless/__init__.py +12 -9
  47. aws_cdk/aws_entityresolution/__init__.py +31 -17
  48. aws_cdk/aws_events/__init__.py +12 -12
  49. aws_cdk/aws_fis/__init__.py +16 -16
  50. aws_cdk/aws_fms/__init__.py +7 -3
  51. aws_cdk/aws_glue/__init__.py +1326 -7
  52. aws_cdk/aws_greengrassv2/__init__.py +8 -8
  53. aws_cdk/aws_guardduty/__init__.py +521 -0
  54. aws_cdk/aws_healthlake/__init__.py +10 -2
  55. aws_cdk/aws_imagebuilder/__init__.py +26 -26
  56. aws_cdk/aws_iot/__init__.py +40 -40
  57. aws_cdk/aws_iotanalytics/__init__.py +4 -4
  58. aws_cdk/aws_iotfleetwise/__init__.py +424 -10
  59. aws_cdk/aws_iotsitewise/__init__.py +84 -13
  60. aws_cdk/aws_iottwinmaker/__init__.py +18 -18
  61. aws_cdk/aws_iotwireless/__init__.py +4 -4
  62. aws_cdk/aws_kafkaconnect/__init__.py +10 -10
  63. aws_cdk/aws_kendra/__init__.py +0 -10
  64. aws_cdk/aws_kinesisanalytics/__init__.py +4 -4
  65. aws_cdk/aws_kinesisanalyticsv2/__init__.py +4 -4
  66. aws_cdk/aws_kinesisfirehose/__init__.py +4544 -183
  67. aws_cdk/aws_kms/__init__.py +11 -10
  68. aws_cdk/aws_lambda/__init__.py +34 -4
  69. aws_cdk/aws_lambda_nodejs/__init__.py +24 -5
  70. aws_cdk/aws_launchwizard/__init__.py +10 -10
  71. aws_cdk/aws_logs/__init__.py +19 -15
  72. aws_cdk/aws_mediaconnect/__init__.py +509 -12
  73. aws_cdk/aws_medialive/__init__.py +16 -16
  74. aws_cdk/aws_mediatailor/__init__.py +10 -10
  75. aws_cdk/aws_networkfirewall/__init__.py +12 -12
  76. aws_cdk/aws_notifications/__init__.py +602 -65
  77. aws_cdk/aws_omics/__init__.py +4 -4
  78. aws_cdk/aws_opensearchservice/__init__.py +10 -10
  79. aws_cdk/aws_opsworks/__init__.py +58 -58
  80. aws_cdk/aws_personalize/__init__.py +8 -8
  81. aws_cdk/aws_pipes/__init__.py +20 -20
  82. aws_cdk/aws_qbusiness/__init__.py +119 -0
  83. aws_cdk/aws_quicksight/__init__.py +247 -92
  84. aws_cdk/aws_rds/__init__.py +21 -15
  85. aws_cdk/aws_redshift/__init__.py +10 -10
  86. aws_cdk/aws_resiliencehub/__init__.py +0 -41
  87. aws_cdk/aws_route53/__init__.py +6 -0
  88. aws_cdk/aws_rum/__init__.py +4 -4
  89. aws_cdk/aws_s3/__init__.py +12 -2
  90. aws_cdk/aws_sagemaker/__init__.py +84 -60
  91. aws_cdk/aws_sam/__init__.py +48 -48
  92. aws_cdk/aws_secretsmanager/__init__.py +30 -14
  93. aws_cdk/aws_securityhub/__init__.py +12 -12
  94. aws_cdk/aws_sns/__init__.py +101 -15
  95. aws_cdk/aws_ssmquicksetup/__init__.py +10 -10
  96. aws_cdk/aws_stepfunctions/__init__.py +13207 -4740
  97. aws_cdk/aws_stepfunctions_tasks/__init__.py +77615 -22817
  98. aws_cdk/aws_synthetics/__init__.py +4 -4
  99. aws_cdk/aws_timestream/__init__.py +41 -0
  100. aws_cdk/aws_transfer/__init__.py +9 -10
  101. aws_cdk/aws_wafv2/__init__.py +24 -22
  102. aws_cdk/aws_wisdom/__init__.py +8 -8
  103. aws_cdk/aws_workspacesweb/__init__.py +60 -60
  104. aws_cdk/aws_xray/__init__.py +8 -8
  105. aws_cdk/cx_api/__init__.py +18 -0
  106. {aws_cdk_lib-2.177.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/METADATA +1 -1
  107. {aws_cdk_lib-2.177.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/RECORD +111 -111
  108. {aws_cdk_lib-2.177.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/LICENSE +0 -0
  109. {aws_cdk_lib-2.177.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/NOTICE +0 -0
  110. {aws_cdk_lib-2.177.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/WHEEL +0 -0
  111. {aws_cdk_lib-2.177.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py CHANGED
@@ -5264,7 +5264,7 @@ class CfnGuardHookProps:
5264
5264
  :param failure_mode: Specifies how the Hook responds when rules fail their evaluation. - ``FAIL`` : Prevents the action from proceeding. This is helpful for enforcing strict compliance or security policies. - ``WARN`` : Issues warnings to users but allows actions to continue. This is useful for non-critical validations or informational checks. Default: - "WARN"
5265
5265
  :param hook_status: Specifies if the Hook is ``ENABLED`` or ``DISABLED`` . Default: - "DISABLED"
5266
5266
  :param rule_location: Specifies the S3 location of your Guard rules.
5267
- :param target_operations: Specifies which type of operation the Hook is run against. Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
5267
+ :param target_operations: Specifies the list of operations the Hook is run against. For more information, see `Hook targets <https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/hooks-concepts.html#hook-terms-hook-target>`_ in the *AWS CloudFormation Hooks User Guide* . Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
5268
5268
  :param log_bucket: Specifies the name of an S3 bucket to store the Guard output report. This report contains the results of your Guard rule validations.
5269
5269
  :param options: Specifies the S3 location of your input parameters.
5270
5270
  :param stack_filters: Specifies the stack level filters for the Hook.
@@ -5414,7 +5414,9 @@ class CfnGuardHookProps:
5414
5414
 
5415
5415
  @builtins.property
5416
5416
  def target_operations(self) -> typing.List[builtins.str]:
5417
- '''Specifies which type of operation the Hook is run against.
5417
+ '''Specifies the list of operations the Hook is run against.
5418
+
5419
+ For more information, see `Hook targets <https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/hooks-concepts.html#hook-terms-hook-target>`_ in the *AWS CloudFormation Hooks User Guide* .
5418
5420
 
5419
5421
  Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
5420
5422
 
@@ -6055,7 +6057,7 @@ class CfnLambdaHookProps:
6055
6057
  :param failure_mode: Specifies how the Hook responds when the Lambda function invoked by the Hook returns a ``FAILED`` response. - ``FAIL`` : Prevents the action from proceeding. This is helpful for enforcing strict compliance or security policies. - ``WARN`` : Issues warnings to users but allows actions to continue. This is useful for non-critical validations or informational checks.
6056
6058
  :param hook_status: Specifies if the Hook is ``ENABLED`` or ``DISABLED`` . Default: - "ENABLED"
6057
6059
  :param lambda_function: Specifies the Lambda function for the Hook. You can use:. - The full Amazon Resource Name (ARN) without a suffix. - A qualified ARN with a version or alias suffix.
6058
- :param target_operations: Specifies which type of operation the Hook is run against. Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
6060
+ :param target_operations: Specifies the list of operations the Hook is run against. For more information, see `Hook targets <https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/hooks-concepts.html#hook-terms-hook-target>`_ in the *AWS CloudFormation Hooks User Guide* . Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
6059
6061
  :param stack_filters: Specifies the stack level filters for the Hook.
6060
6062
  :param target_filters: Specifies the target filters for the Hook.
6061
6063
 
@@ -6182,7 +6184,9 @@ class CfnLambdaHookProps:
6182
6184
 
6183
6185
  @builtins.property
6184
6186
  def target_operations(self) -> typing.List[builtins.str]:
6185
- '''Specifies which type of operation the Hook is run against.
6187
+ '''Specifies the list of operations the Hook is run against.
6188
+
6189
+ For more information, see `Hook targets <https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/hooks-concepts.html#hook-terms-hook-target>`_ in the *AWS CloudFormation Hooks User Guide* .
6186
6190
 
6187
6191
  Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
6188
6192
 
@@ -8790,7 +8794,7 @@ class CfnStackProps:
8790
8794
  self,
8791
8795
  *,
8792
8796
  notification_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
8793
- parameters: typing.Optional[typing.Union["IResolvable", typing.Mapping[builtins.str, builtins.str]]] = None,
8797
+ parameters: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], "IResolvable"]] = None,
8794
8798
  tags: typing.Optional[typing.Sequence[typing.Union["CfnTag", typing.Dict[builtins.str, typing.Any]]]] = None,
8795
8799
  template_url: typing.Optional[builtins.str] = None,
8796
8800
  timeout_in_minutes: typing.Optional[jsii.Number] = None,
@@ -8858,7 +8862,7 @@ class CfnStackProps:
8858
8862
  @builtins.property
8859
8863
  def parameters(
8860
8864
  self,
8861
- ) -> typing.Optional[typing.Union["IResolvable", typing.Mapping[builtins.str, builtins.str]]]:
8865
+ ) -> typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], "IResolvable"]]:
8862
8866
  '''The set value pairs that represent the parameters passed to CloudFormation when this nested stack is created.
8863
8867
 
8864
8868
  Each parameter has a name corresponding to a parameter defined in the embedded template and a value representing the value that you want to set for the parameter.
@@ -8873,7 +8877,7 @@ class CfnStackProps:
8873
8877
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-stack.html#cfn-cloudformation-stack-parameters
8874
8878
  '''
8875
8879
  result = self._values.get("parameters")
8876
- return typing.cast(typing.Optional[typing.Union["IResolvable", typing.Mapping[builtins.str, builtins.str]]], result)
8880
+ return typing.cast(typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], "IResolvable"]], result)
8877
8881
 
8878
8882
  @builtins.property
8879
8883
  def tags(self) -> typing.Optional[typing.List["CfnTag"]]:
@@ -12961,21 +12965,27 @@ class Duration(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Duration"):
12961
12965
 
12962
12966
  Example::
12963
12967
 
12964
- # my_role: iam.Role
12968
+ import aws_cdk.aws_ecs as ecs
12965
12969
 
12966
- cr.AwsCustomResource(self, "Customized",
12967
- role=my_role, # must be assumable by the `lambda.amazonaws.com` service principal
12968
- timeout=Duration.minutes(10), # defaults to 2 minutes
12969
- memory_size=1025, # defaults to 512 if installLatestAwsSdk is true
12970
- log_group=logs.LogGroup(self, "AwsCustomResourceLogs",
12971
- retention=logs.RetentionDays.ONE_DAY
12972
- ),
12973
- function_name="my-custom-name", # defaults to a CloudFormation generated name
12974
- removal_policy=RemovalPolicy.RETAIN, # defaults to `RemovalPolicy.DESTROY`
12975
- policy=cr.AwsCustomResourcePolicy.from_sdk_calls(
12976
- resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
12977
- )
12970
+ # cluster: ecs.ICluster
12971
+ # task_definition: ecs.TaskDefinition
12972
+
12973
+
12974
+ rule = events.Rule(self, "Rule",
12975
+ schedule=events.Schedule.rate(cdk.Duration.hours(1))
12978
12976
  )
12977
+
12978
+ rule.add_target(
12979
+ targets.EcsTask(
12980
+ cluster=cluster,
12981
+ task_definition=task_definition,
12982
+ propagate_tags=ecs.PropagatedTagSource.TASK_DEFINITION,
12983
+ tags=[targets.Tag(
12984
+ key="my-tag",
12985
+ value="my-tag-value"
12986
+ )
12987
+ ]
12988
+ ))
12979
12989
  '''
12980
12990
 
12981
12991
  @jsii.member(jsii_name="days")
@@ -18965,20 +18975,41 @@ class RemovalPolicy(enum.Enum):
18965
18975
 
18966
18976
  Example::
18967
18977
 
18968
- # my_role: iam.Role
18978
+ import aws_cdk.aws_opensearchservice as opensearch
18969
18979
 
18970
- cr.AwsCustomResource(self, "Customized",
18971
- role=my_role, # must be assumable by the `lambda.amazonaws.com` service principal
18972
- timeout=Duration.minutes(10), # defaults to 2 minutes
18973
- memory_size=1025, # defaults to 512 if installLatestAwsSdk is true
18974
- log_group=logs.LogGroup(self, "AwsCustomResourceLogs",
18975
- retention=logs.RetentionDays.ONE_DAY
18976
- ),
18977
- function_name="my-custom-name", # defaults to a CloudFormation generated name
18978
- removal_policy=RemovalPolicy.RETAIN, # defaults to `RemovalPolicy.DESTROY`
18979
- policy=cr.AwsCustomResourcePolicy.from_sdk_calls(
18980
- resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
18981
- )
18980
+ # api: appsync.GraphqlApi
18981
+
18982
+
18983
+ user = iam.User(self, "User")
18984
+ domain = opensearch.Domain(self, "Domain",
18985
+ version=opensearch.EngineVersion.OPENSEARCH_2_3,
18986
+ removal_policy=RemovalPolicy.DESTROY,
18987
+ fine_grained_access_control=opensearch.AdvancedSecurityOptions(master_user_arn=user.user_arn),
18988
+ encryption_at_rest=opensearch.EncryptionAtRestOptions(enabled=True),
18989
+ node_to_node_encryption=True,
18990
+ enforce_https=True
18991
+ )
18992
+ ds = api.add_open_search_data_source("ds", domain)
18993
+
18994
+ ds.create_resolver("QueryGetTestsResolver",
18995
+ type_name="Query",
18996
+ field_name="getTests",
18997
+ request_mapping_template=appsync.MappingTemplate.from_string(JSON.stringify({
18998
+ "version": "2017-02-28",
18999
+ "operation": "GET",
19000
+ "path": "/id/post/_search",
19001
+ "params": {
19002
+ "headers": {},
19003
+ "query_string": {},
19004
+ "body": {"from": 0, "size": 50}
19005
+ }
19006
+ })),
19007
+ response_mapping_template=appsync.MappingTemplate.from_string("""[
19008
+ #foreach($entry in $context.result.hits.hits)
19009
+ #if( $velocityCount > 1 ) , #end
19010
+ $utils.toJson($entry.get("_source"))
19011
+ #end
19012
+ ]""")
18982
19013
  )
18983
19014
  '''
18984
19015
 
@@ -20358,24 +20389,27 @@ class Size(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Size"):
20358
20389
 
20359
20390
  Example::
20360
20391
 
20361
- # bucket: s3.Bucket
20362
- # Provide a Lambda function that will transform records before delivery, with custom
20363
- # buffering and retry configuration
20364
- lambda_function = lambda_.Function(self, "Processor",
20365
- runtime=lambda_.Runtime.NODEJS_LATEST,
20366
- handler="index.handler",
20367
- code=lambda_.Code.from_asset(path.join(__dirname, "process-records"))
20368
- )
20369
- lambda_processor = firehose.LambdaFunctionProcessor(lambda_function,
20370
- buffer_interval=Duration.minutes(5),
20371
- buffer_size=Size.mebibytes(5),
20372
- retries=5
20373
- )
20374
- s3_destination = destinations.S3Bucket(bucket,
20375
- processor=lambda_processor
20392
+ multi_node_job = batch.MultiNodeJobDefinition(self, "JobDefinition",
20393
+ instance_type=ec2.InstanceType.of(ec2.InstanceClass.R4, ec2.InstanceSize.LARGE), # optional, omit to let Batch choose the type for you
20394
+ containers=[batch.MultiNodeContainer(
20395
+ container=batch.EcsEc2ContainerDefinition(self, "mainMPIContainer",
20396
+ image=ecs.ContainerImage.from_registry("yourregsitry.com/yourMPIImage:latest"),
20397
+ cpu=256,
20398
+ memory=cdk.Size.mebibytes(2048)
20399
+ ),
20400
+ start_node=0,
20401
+ end_node=5
20402
+ )]
20376
20403
  )
20377
- firehose.DeliveryStream(self, "Delivery Stream",
20378
- destination=s3_destination
20404
+ # convenience method
20405
+ multi_node_job.add_container(
20406
+ start_node=6,
20407
+ end_node=10,
20408
+ container=batch.EcsEc2ContainerDefinition(self, "multiContainer",
20409
+ image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
20410
+ cpu=256,
20411
+ memory=cdk.Size.mebibytes(2048)
20412
+ )
20379
20413
  )
20380
20414
  '''
20381
20415
 
@@ -28284,7 +28318,7 @@ class CfnGuardHook(
28284
28318
  :param failure_mode: Specifies how the Hook responds when rules fail their evaluation. - ``FAIL`` : Prevents the action from proceeding. This is helpful for enforcing strict compliance or security policies. - ``WARN`` : Issues warnings to users but allows actions to continue. This is useful for non-critical validations or informational checks. Default: - "WARN"
28285
28319
  :param hook_status: Specifies if the Hook is ``ENABLED`` or ``DISABLED`` . Default: - "DISABLED"
28286
28320
  :param rule_location: Specifies the S3 location of your Guard rules.
28287
- :param target_operations: Specifies which type of operation the Hook is run against. Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
28321
+ :param target_operations: Specifies the list of operations the Hook is run against. For more information, see `Hook targets <https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/hooks-concepts.html#hook-terms-hook-target>`_ in the *AWS CloudFormation Hooks User Guide* . Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
28288
28322
  :param log_bucket: Specifies the name of an S3 bucket to store the Guard output report. This report contains the results of your Guard rule validations.
28289
28323
  :param options: Specifies the S3 location of your input parameters.
28290
28324
  :param stack_filters: Specifies the stack level filters for the Hook.
@@ -28429,7 +28463,7 @@ class CfnGuardHook(
28429
28463
  @builtins.property
28430
28464
  @jsii.member(jsii_name="targetOperations")
28431
28465
  def target_operations(self) -> typing.List[builtins.str]:
28432
- '''Specifies which type of operation the Hook is run against.'''
28466
+ '''Specifies the list of operations the Hook is run against.'''
28433
28467
  return typing.cast(typing.List[builtins.str], jsii.get(self, "targetOperations"))
28434
28468
 
28435
28469
  @target_operations.setter
@@ -29750,7 +29784,7 @@ class CfnLambdaHook(
29750
29784
  :param failure_mode: Specifies how the Hook responds when the Lambda function invoked by the Hook returns a ``FAILED`` response. - ``FAIL`` : Prevents the action from proceeding. This is helpful for enforcing strict compliance or security policies. - ``WARN`` : Issues warnings to users but allows actions to continue. This is useful for non-critical validations or informational checks.
29751
29785
  :param hook_status: Specifies if the Hook is ``ENABLED`` or ``DISABLED`` . Default: - "ENABLED"
29752
29786
  :param lambda_function: Specifies the Lambda function for the Hook. You can use:. - The full Amazon Resource Name (ARN) without a suffix. - A qualified ARN with a version or alias suffix.
29753
- :param target_operations: Specifies which type of operation the Hook is run against. Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
29787
+ :param target_operations: Specifies the list of operations the Hook is run against. For more information, see `Hook targets <https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/hooks-concepts.html#hook-terms-hook-target>`_ in the *AWS CloudFormation Hooks User Guide* . Valid values: ``STACK`` | ``RESOURCE`` | ``CHANGE_SET`` | ``CLOUD_CONTROL``
29754
29788
  :param stack_filters: Specifies the stack level filters for the Hook.
29755
29789
  :param target_filters: Specifies the target filters for the Hook.
29756
29790
  '''
@@ -29889,7 +29923,7 @@ class CfnLambdaHook(
29889
29923
  @builtins.property
29890
29924
  @jsii.member(jsii_name="targetOperations")
29891
29925
  def target_operations(self) -> typing.List[builtins.str]:
29892
- '''Specifies which type of operation the Hook is run against.'''
29926
+ '''Specifies the list of operations the Hook is run against.'''
29893
29927
  return typing.cast(typing.List[builtins.str], jsii.get(self, "targetOperations"))
29894
29928
 
29895
29929
  @target_operations.setter
@@ -31770,7 +31804,7 @@ class CfnStack(CfnResource, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.CfnS
31770
31804
  id: builtins.str,
31771
31805
  *,
31772
31806
  notification_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
31773
- parameters: typing.Optional[typing.Union[IResolvable, typing.Mapping[builtins.str, builtins.str]]] = None,
31807
+ parameters: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], IResolvable]] = None,
31774
31808
  tags: typing.Optional[typing.Sequence[typing.Union[CfnTag, typing.Dict[builtins.str, typing.Any]]]] = None,
31775
31809
  template_url: typing.Optional[builtins.str] = None,
31776
31810
  timeout_in_minutes: typing.Optional[jsii.Number] = None,
@@ -31935,14 +31969,14 @@ class CfnStack(CfnResource, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.CfnS
31935
31969
  @jsii.member(jsii_name="parameters")
31936
31970
  def parameters(
31937
31971
  self,
31938
- ) -> typing.Optional[typing.Union[IResolvable, typing.Mapping[builtins.str, builtins.str]]]:
31972
+ ) -> typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], IResolvable]]:
31939
31973
  '''The set value pairs that represent the parameters passed to CloudFormation when this nested stack is created.'''
31940
- return typing.cast(typing.Optional[typing.Union[IResolvable, typing.Mapping[builtins.str, builtins.str]]], jsii.get(self, "parameters"))
31974
+ return typing.cast(typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], IResolvable]], jsii.get(self, "parameters"))
31941
31975
 
31942
31976
  @parameters.setter
31943
31977
  def parameters(
31944
31978
  self,
31945
- value: typing.Optional[typing.Union[IResolvable, typing.Mapping[builtins.str, builtins.str]]],
31979
+ value: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], IResolvable]],
31946
31980
  ) -> None:
31947
31981
  if __debug__:
31948
31982
  type_hints = typing.get_type_hints(_typecheckingstub__f3fb0b9b7598b79bde64721506e8cfa836e6901da44b747530857a860a1cc111)
@@ -37716,7 +37750,7 @@ def _typecheckingstub__b4a89ebbdf831c87a631869cbefb7a1b6d6a2f1ce5b8030f61d58f473
37716
37750
  def _typecheckingstub__9fb527d4bac73dc363319bbe1cf2be973d3eb9db93eb4ec913a8151682c3f223(
37717
37751
  *,
37718
37752
  notification_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
37719
- parameters: typing.Optional[typing.Union[IResolvable, typing.Mapping[builtins.str, builtins.str]]] = None,
37753
+ parameters: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], IResolvable]] = None,
37720
37754
  tags: typing.Optional[typing.Sequence[typing.Union[CfnTag, typing.Dict[builtins.str, typing.Any]]]] = None,
37721
37755
  template_url: typing.Optional[builtins.str] = None,
37722
37756
  timeout_in_minutes: typing.Optional[jsii.Number] = None,
@@ -40738,7 +40772,7 @@ def _typecheckingstub__a8594abaf48bfc733fdc85ceff8c2d40dba03f52ce866519ff597396f
40738
40772
  id: builtins.str,
40739
40773
  *,
40740
40774
  notification_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
40741
- parameters: typing.Optional[typing.Union[IResolvable, typing.Mapping[builtins.str, builtins.str]]] = None,
40775
+ parameters: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], IResolvable]] = None,
40742
40776
  tags: typing.Optional[typing.Sequence[typing.Union[CfnTag, typing.Dict[builtins.str, typing.Any]]]] = None,
40743
40777
  template_url: typing.Optional[builtins.str] = None,
40744
40778
  timeout_in_minutes: typing.Optional[jsii.Number] = None,
@@ -40765,7 +40799,7 @@ def _typecheckingstub__c9c77d10e222f51987b4f16f428d98153c077789a4dc99f5943c9a4b1
40765
40799
  pass
40766
40800
 
40767
40801
  def _typecheckingstub__f3fb0b9b7598b79bde64721506e8cfa836e6901da44b747530857a860a1cc111(
40768
- value: typing.Optional[typing.Union[IResolvable, typing.Mapping[builtins.str, builtins.str]]],
40802
+ value: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], IResolvable]],
40769
40803
  ) -> None:
40770
40804
  """Type checking stubs"""
40771
40805
  pass
aws_cdk/_jsii/__init__.py CHANGED
@@ -35,7 +35,7 @@ import aws_cdk.cloud_assembly_schema._jsii
35
35
  import constructs._jsii
36
36
 
37
37
  __jsii_assembly__ = jsii.JSIIAssembly.load(
38
- "aws-cdk-lib", "2.177.0", __name__[0:-6], "aws-cdk-lib@2.177.0.jsii.tgz"
38
+ "aws-cdk-lib", "2.178.0", __name__[0:-6], "aws-cdk-lib@2.178.0.jsii.tgz"
39
39
  )
40
40
 
41
41
  __all__ = [
@@ -2975,7 +2975,7 @@ class CfnComponent(
2975
2975
  self,
2976
2976
  *,
2977
2977
  overrides: typing.Any = None,
2978
- variant_values: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
2978
+ variant_values: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]] = None,
2979
2979
  ) -> None:
2980
2980
  '''The ``ComponentVariant`` property specifies the style configuration of a unique variation of a main component.
2981
2981
 
@@ -3024,13 +3024,13 @@ class CfnComponent(
3024
3024
  @builtins.property
3025
3025
  def variant_values(
3026
3026
  self,
3027
- ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]]:
3027
+ ) -> typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]]:
3028
3028
  '''The combination of variants that comprise this variant.
3029
3029
 
3030
3030
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentvariant.html#cfn-amplifyuibuilder-component-componentvariant-variantvalues
3031
3031
  '''
3032
3032
  result = self._values.get("variant_values")
3033
- return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]], result)
3033
+ return typing.cast(typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]], result)
3034
3034
 
3035
3035
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
3036
3036
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -4861,7 +4861,7 @@ class CfnForm(
4861
4861
  self,
4862
4862
  *,
4863
4863
  type: builtins.str,
4864
- num_values: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[jsii.Number]]] = None,
4864
+ num_values: typing.Optional[typing.Union[typing.Sequence[jsii.Number], _IResolvable_da3f097b]] = None,
4865
4865
  str_values: typing.Optional[typing.Sequence[builtins.str]] = None,
4866
4866
  validation_message: typing.Optional[builtins.str] = None,
4867
4867
  ) -> None:
@@ -4921,13 +4921,13 @@ class CfnForm(
4921
4921
  @builtins.property
4922
4922
  def num_values(
4923
4923
  self,
4924
- ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[jsii.Number]]]:
4924
+ ) -> typing.Optional[typing.Union[typing.List[jsii.Number], _IResolvable_da3f097b]]:
4925
4925
  '''The validation to perform on a number value.
4926
4926
 
4927
4927
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-fieldvalidationconfiguration.html#cfn-amplifyuibuilder-form-fieldvalidationconfiguration-numvalues
4928
4928
  '''
4929
4929
  result = self._values.get("num_values")
4930
- return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[jsii.Number]]], result)
4930
+ return typing.cast(typing.Optional[typing.Union[typing.List[jsii.Number], _IResolvable_da3f097b]], result)
4931
4931
 
4932
4932
  @builtins.property
4933
4933
  def str_values(self) -> typing.Optional[typing.List[builtins.str]]:
@@ -7453,7 +7453,7 @@ def _typecheckingstub__9cf7d407c19a13b1e358d52a06851a4288f7e5e365289ff8c22d9b2d6
7453
7453
  def _typecheckingstub__295e4045520d86ca93a4865404c10aafdb49dd91806c9cae31545fdd54e9bee9(
7454
7454
  *,
7455
7455
  overrides: typing.Any = None,
7456
- variant_values: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
7456
+ variant_values: typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], _IResolvable_da3f097b]] = None,
7457
7457
  ) -> None:
7458
7458
  """Type checking stubs"""
7459
7459
  pass
@@ -7664,7 +7664,7 @@ def _typecheckingstub__04a52fac39933b10d1cbbd03b00473e170b2984c315c7a3da3846dcc9
7664
7664
  def _typecheckingstub__34136205c95f2f635b9e01e36902998c37a6de39668801b785b9506c14054296(
7665
7665
  *,
7666
7666
  type: builtins.str,
7667
- num_values: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[jsii.Number]]] = None,
7667
+ num_values: typing.Optional[typing.Union[typing.Sequence[jsii.Number], _IResolvable_da3f097b]] = None,
7668
7668
  str_values: typing.Optional[typing.Sequence[builtins.str]] = None,
7669
7669
  validation_message: typing.Optional[builtins.str] = None,
7670
7670
  ) -> None: