aws-cdk-lib 2.176.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 (120) hide show
  1. aws_cdk/__init__.py +106 -62
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.176.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_apigatewayv2_integrations/__init__.py +2 -2
  8. aws_cdk/aws_appconfig/__init__.py +10 -10
  9. aws_cdk/aws_appflow/__init__.py +20 -20
  10. aws_cdk/aws_applicationsignals/__init__.py +8 -8
  11. aws_cdk/aws_appmesh/__init__.py +8 -8
  12. aws_cdk/aws_appsync/__init__.py +10387 -7038
  13. aws_cdk/aws_apptest/__init__.py +4 -4
  14. aws_cdk/aws_aps/__init__.py +135 -0
  15. aws_cdk/aws_athena/__init__.py +10 -10
  16. aws_cdk/aws_backup/__init__.py +14 -14
  17. aws_cdk/aws_batch/__init__.py +189 -24
  18. aws_cdk/aws_bcmdataexports/__init__.py +4 -4
  19. aws_cdk/aws_bedrock/__init__.py +5494 -2518
  20. aws_cdk/aws_certificatemanager/__init__.py +15 -14
  21. aws_cdk/aws_chatbot/__init__.py +4 -4
  22. aws_cdk/aws_cloudformation/__init__.py +22 -18
  23. aws_cdk/aws_cloudfront/__init__.py +686 -9
  24. aws_cdk/aws_cloudfront_origins/__init__.py +73 -2
  25. aws_cdk/aws_cloudtrail/__init__.py +4 -4
  26. aws_cdk/aws_cloudwatch/__init__.py +53 -53
  27. aws_cdk/aws_codedeploy/__init__.py +2 -2
  28. aws_cdk/aws_codepipeline/__init__.py +59 -6
  29. aws_cdk/aws_codepipeline_actions/__init__.py +2 -2
  30. aws_cdk/aws_cognito/__init__.py +204 -159
  31. aws_cdk/aws_connect/__init__.py +4 -4
  32. aws_cdk/aws_customerprofiles/__init__.py +6 -4
  33. aws_cdk/aws_databrew/__init__.py +16 -16
  34. aws_cdk/aws_datasync/__init__.py +14 -11
  35. aws_cdk/aws_datazone/__init__.py +199 -129
  36. aws_cdk/aws_dms/__init__.py +4 -4
  37. aws_cdk/aws_dynamodb/__init__.py +267 -25
  38. aws_cdk/aws_ec2/__init__.py +1142 -184
  39. aws_cdk/aws_ecs/__init__.py +767 -124
  40. aws_cdk/aws_ecs_patterns/__init__.py +49 -0
  41. aws_cdk/aws_efs/__init__.py +8 -8
  42. aws_cdk/aws_eks/__init__.py +55 -35
  43. aws_cdk/aws_elasticache/__init__.py +10 -10
  44. aws_cdk/aws_elasticloadbalancingv2/__init__.py +47 -18
  45. aws_cdk/aws_elasticsearch/__init__.py +10 -10
  46. aws_cdk/aws_emr/__init__.py +16 -16
  47. aws_cdk/aws_emrserverless/__init__.py +93 -4
  48. aws_cdk/aws_entityresolution/__init__.py +31 -17
  49. aws_cdk/aws_events/__init__.py +12 -12
  50. aws_cdk/aws_fis/__init__.py +16 -16
  51. aws_cdk/aws_fms/__init__.py +46 -0
  52. aws_cdk/aws_gamelift/__init__.py +8 -10
  53. aws_cdk/aws_glue/__init__.py +1326 -7
  54. aws_cdk/aws_greengrassv2/__init__.py +8 -8
  55. aws_cdk/aws_guardduty/__init__.py +521 -0
  56. aws_cdk/aws_healthlake/__init__.py +10 -2
  57. aws_cdk/aws_iam/__init__.py +8 -0
  58. aws_cdk/aws_imagebuilder/__init__.py +88 -74
  59. aws_cdk/aws_iot/__init__.py +40 -40
  60. aws_cdk/aws_iotanalytics/__init__.py +4 -4
  61. aws_cdk/aws_iotfleetwise/__init__.py +424 -10
  62. aws_cdk/aws_iotsitewise/__init__.py +84 -13
  63. aws_cdk/aws_iottwinmaker/__init__.py +18 -18
  64. aws_cdk/aws_iotwireless/__init__.py +4 -4
  65. aws_cdk/aws_kafkaconnect/__init__.py +10 -10
  66. aws_cdk/aws_kendra/__init__.py +0 -10
  67. aws_cdk/aws_kinesisanalytics/__init__.py +4 -4
  68. aws_cdk/aws_kinesisanalyticsv2/__init__.py +4 -4
  69. aws_cdk/aws_kinesisfirehose/__init__.py +4544 -183
  70. aws_cdk/aws_kms/__init__.py +11 -10
  71. aws_cdk/aws_lambda/__init__.py +47 -4
  72. aws_cdk/aws_lambda_nodejs/__init__.py +24 -5
  73. aws_cdk/aws_launchwizard/__init__.py +10 -10
  74. aws_cdk/aws_logs/__init__.py +78 -74
  75. aws_cdk/aws_mediaconnect/__init__.py +509 -12
  76. aws_cdk/aws_medialive/__init__.py +16 -16
  77. aws_cdk/aws_mediatailor/__init__.py +10 -10
  78. aws_cdk/aws_networkfirewall/__init__.py +12 -12
  79. aws_cdk/aws_notifications/__init__.py +1927 -0
  80. aws_cdk/aws_notificationscontacts/__init__.py +593 -0
  81. aws_cdk/aws_omics/__init__.py +4 -4
  82. aws_cdk/aws_opensearchservice/__init__.py +10 -10
  83. aws_cdk/aws_opsworks/__init__.py +58 -58
  84. aws_cdk/aws_personalize/__init__.py +8 -8
  85. aws_cdk/aws_pipes/__init__.py +20 -20
  86. aws_cdk/aws_qbusiness/__init__.py +119 -0
  87. aws_cdk/aws_quicksight/__init__.py +247 -92
  88. aws_cdk/aws_rds/__init__.py +37 -37
  89. aws_cdk/aws_redshift/__init__.py +19 -15
  90. aws_cdk/aws_resiliencehub/__init__.py +0 -41
  91. aws_cdk/aws_route53/__init__.py +10 -4
  92. aws_cdk/aws_route53_targets/__init__.py +15 -15
  93. aws_cdk/aws_rum/__init__.py +4 -4
  94. aws_cdk/aws_s3/__init__.py +801 -2
  95. aws_cdk/aws_s3_notifications/__init__.py +5 -5
  96. aws_cdk/aws_s3tables/__init__.py +2 -2
  97. aws_cdk/aws_sagemaker/__init__.py +84 -60
  98. aws_cdk/aws_sam/__init__.py +48 -48
  99. aws_cdk/aws_secretsmanager/__init__.py +30 -14
  100. aws_cdk/aws_securityhub/__init__.py +12 -12
  101. aws_cdk/aws_sns/__init__.py +137 -12
  102. aws_cdk/aws_ssm/__init__.py +5 -5
  103. aws_cdk/aws_ssmquicksetup/__init__.py +10 -10
  104. aws_cdk/aws_stepfunctions/__init__.py +13207 -4740
  105. aws_cdk/aws_stepfunctions_tasks/__init__.py +77615 -22817
  106. aws_cdk/aws_synthetics/__init__.py +109 -36
  107. aws_cdk/aws_timestream/__init__.py +41 -0
  108. aws_cdk/aws_transfer/__init__.py +9 -10
  109. aws_cdk/aws_wafv2/__init__.py +24 -22
  110. aws_cdk/aws_wisdom/__init__.py +8 -8
  111. aws_cdk/aws_workspacesweb/__init__.py +60 -60
  112. aws_cdk/aws_xray/__init__.py +8 -8
  113. aws_cdk/cloud_assembly_schema/__init__.py +63 -4
  114. aws_cdk/cx_api/__init__.py +62 -4
  115. {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/METADATA +3 -3
  116. {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/RECORD +120 -118
  117. {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/LICENSE +0 -0
  118. {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/NOTICE +0 -0
  119. {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.178.0.dist-info}/WHEEL +0 -0
  120. {aws_cdk_lib-2.176.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")
@@ -13360,7 +13370,7 @@ class Environment:
13360
13370
 
13361
13371
 
13362
13372
  class Errors(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Errors"):
13363
- '''Helper to check if an error is a SynthesisErrors.
13373
+ '''Helper to check if an error is of a certain type.
13364
13374
 
13365
13375
  :exampleMetadata: fixture=_generated
13366
13376
 
@@ -13381,6 +13391,9 @@ class Errors(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Errors"):
13381
13391
  def is_construct_error(cls, x: typing.Any) -> builtins.bool:
13382
13392
  '''Test whether the given errors is a ConstructionError.
13383
13393
 
13394
+ A ConstructionError is a generic error that will be thrown during the App construction or synthesis.
13395
+ To check for more specific errors, use the respective methods.
13396
+
13384
13397
  :param x: -
13385
13398
  '''
13386
13399
  if __debug__:
@@ -13393,6 +13406,9 @@ class Errors(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Errors"):
13393
13406
  def is_validation_error(cls, x: typing.Any) -> builtins.bool:
13394
13407
  '''Test whether the given error is a ValidationError.
13395
13408
 
13409
+ A ValidationError is thrown when input props are failing to pass the rules of the construct.
13410
+ It usually means the underlying CloudFormation resource(s) would not deploy with a given configuration.
13411
+
13396
13412
  :param x: -
13397
13413
  '''
13398
13414
  if __debug__:
@@ -18959,20 +18975,41 @@ class RemovalPolicy(enum.Enum):
18959
18975
 
18960
18976
  Example::
18961
18977
 
18962
- # my_role: iam.Role
18978
+ import aws_cdk.aws_opensearchservice as opensearch
18963
18979
 
18964
- cr.AwsCustomResource(self, "Customized",
18965
- role=my_role, # must be assumable by the `lambda.amazonaws.com` service principal
18966
- timeout=Duration.minutes(10), # defaults to 2 minutes
18967
- memory_size=1025, # defaults to 512 if installLatestAwsSdk is true
18968
- log_group=logs.LogGroup(self, "AwsCustomResourceLogs",
18969
- retention=logs.RetentionDays.ONE_DAY
18970
- ),
18971
- function_name="my-custom-name", # defaults to a CloudFormation generated name
18972
- removal_policy=RemovalPolicy.RETAIN, # defaults to `RemovalPolicy.DESTROY`
18973
- policy=cr.AwsCustomResourcePolicy.from_sdk_calls(
18974
- resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
18975
- )
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
+ ]""")
18976
19013
  )
18977
19014
  '''
18978
19015
 
@@ -20352,24 +20389,27 @@ class Size(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Size"):
20352
20389
 
20353
20390
  Example::
20354
20391
 
20355
- # bucket: s3.Bucket
20356
- # Provide a Lambda function that will transform records before delivery, with custom
20357
- # buffering and retry configuration
20358
- lambda_function = lambda_.Function(self, "Processor",
20359
- runtime=lambda_.Runtime.NODEJS_LATEST,
20360
- handler="index.handler",
20361
- code=lambda_.Code.from_asset(path.join(__dirname, "process-records"))
20362
- )
20363
- lambda_processor = firehose.LambdaFunctionProcessor(lambda_function,
20364
- buffer_interval=Duration.minutes(5),
20365
- buffer_size=Size.mebibytes(5),
20366
- retries=5
20367
- )
20368
- s3_destination = destinations.S3Bucket(bucket,
20369
- 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
+ )]
20370
20403
  )
20371
- firehose.DeliveryStream(self, "Delivery Stream",
20372
- 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
+ )
20373
20413
  )
20374
20414
  '''
20375
20415
 
@@ -28278,7 +28318,7 @@ class CfnGuardHook(
28278
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"
28279
28319
  :param hook_status: Specifies if the Hook is ``ENABLED`` or ``DISABLED`` . Default: - "DISABLED"
28280
28320
  :param rule_location: Specifies the S3 location of your Guard rules.
28281
- :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``
28282
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.
28283
28323
  :param options: Specifies the S3 location of your input parameters.
28284
28324
  :param stack_filters: Specifies the stack level filters for the Hook.
@@ -28423,7 +28463,7 @@ class CfnGuardHook(
28423
28463
  @builtins.property
28424
28464
  @jsii.member(jsii_name="targetOperations")
28425
28465
  def target_operations(self) -> typing.List[builtins.str]:
28426
- '''Specifies which type of operation the Hook is run against.'''
28466
+ '''Specifies the list of operations the Hook is run against.'''
28427
28467
  return typing.cast(typing.List[builtins.str], jsii.get(self, "targetOperations"))
28428
28468
 
28429
28469
  @target_operations.setter
@@ -29744,7 +29784,7 @@ class CfnLambdaHook(
29744
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.
29745
29785
  :param hook_status: Specifies if the Hook is ``ENABLED`` or ``DISABLED`` . Default: - "ENABLED"
29746
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.
29747
- :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``
29748
29788
  :param stack_filters: Specifies the stack level filters for the Hook.
29749
29789
  :param target_filters: Specifies the target filters for the Hook.
29750
29790
  '''
@@ -29883,7 +29923,7 @@ class CfnLambdaHook(
29883
29923
  @builtins.property
29884
29924
  @jsii.member(jsii_name="targetOperations")
29885
29925
  def target_operations(self) -> typing.List[builtins.str]:
29886
- '''Specifies which type of operation the Hook is run against.'''
29926
+ '''Specifies the list of operations the Hook is run against.'''
29887
29927
  return typing.cast(typing.List[builtins.str], jsii.get(self, "targetOperations"))
29888
29928
 
29889
29929
  @target_operations.setter
@@ -31764,7 +31804,7 @@ class CfnStack(CfnResource, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.CfnS
31764
31804
  id: builtins.str,
31765
31805
  *,
31766
31806
  notification_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
31767
- 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,
31768
31808
  tags: typing.Optional[typing.Sequence[typing.Union[CfnTag, typing.Dict[builtins.str, typing.Any]]]] = None,
31769
31809
  template_url: typing.Optional[builtins.str] = None,
31770
31810
  timeout_in_minutes: typing.Optional[jsii.Number] = None,
@@ -31929,14 +31969,14 @@ class CfnStack(CfnResource, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.CfnS
31929
31969
  @jsii.member(jsii_name="parameters")
31930
31970
  def parameters(
31931
31971
  self,
31932
- ) -> typing.Optional[typing.Union[IResolvable, typing.Mapping[builtins.str, builtins.str]]]:
31972
+ ) -> typing.Optional[typing.Union[typing.Mapping[builtins.str, builtins.str], IResolvable]]:
31933
31973
  '''The set value pairs that represent the parameters passed to CloudFormation when this nested stack is created.'''
31934
- 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"))
31935
31975
 
31936
31976
  @parameters.setter
31937
31977
  def parameters(
31938
31978
  self,
31939
- 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]],
31940
31980
  ) -> None:
31941
31981
  if __debug__:
31942
31982
  type_hints = typing.get_type_hints(_typecheckingstub__f3fb0b9b7598b79bde64721506e8cfa836e6901da44b747530857a860a1cc111)
@@ -36411,6 +36451,8 @@ __all__ = [
36411
36451
  "aws_networkfirewall",
36412
36452
  "aws_networkmanager",
36413
36453
  "aws_nimblestudio",
36454
+ "aws_notifications",
36455
+ "aws_notificationscontacts",
36414
36456
  "aws_oam",
36415
36457
  "aws_omics",
36416
36458
  "aws_opensearchserverless",
@@ -36703,6 +36745,8 @@ from . import aws_neptunegraph
36703
36745
  from . import aws_networkfirewall
36704
36746
  from . import aws_networkmanager
36705
36747
  from . import aws_nimblestudio
36748
+ from . import aws_notifications
36749
+ from . import aws_notificationscontacts
36706
36750
  from . import aws_oam
36707
36751
  from . import aws_omics
36708
36752
  from . import aws_opensearchserverless
@@ -37706,7 +37750,7 @@ def _typecheckingstub__b4a89ebbdf831c87a631869cbefb7a1b6d6a2f1ce5b8030f61d58f473
37706
37750
  def _typecheckingstub__9fb527d4bac73dc363319bbe1cf2be973d3eb9db93eb4ec913a8151682c3f223(
37707
37751
  *,
37708
37752
  notification_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
37709
- 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,
37710
37754
  tags: typing.Optional[typing.Sequence[typing.Union[CfnTag, typing.Dict[builtins.str, typing.Any]]]] = None,
37711
37755
  template_url: typing.Optional[builtins.str] = None,
37712
37756
  timeout_in_minutes: typing.Optional[jsii.Number] = None,
@@ -40728,7 +40772,7 @@ def _typecheckingstub__a8594abaf48bfc733fdc85ceff8c2d40dba03f52ce866519ff597396f
40728
40772
  id: builtins.str,
40729
40773
  *,
40730
40774
  notification_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
40731
- 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,
40732
40776
  tags: typing.Optional[typing.Sequence[typing.Union[CfnTag, typing.Dict[builtins.str, typing.Any]]]] = None,
40733
40777
  template_url: typing.Optional[builtins.str] = None,
40734
40778
  timeout_in_minutes: typing.Optional[jsii.Number] = None,
@@ -40755,7 +40799,7 @@ def _typecheckingstub__c9c77d10e222f51987b4f16f428d98153c077789a4dc99f5943c9a4b1
40755
40799
  pass
40756
40800
 
40757
40801
  def _typecheckingstub__f3fb0b9b7598b79bde64721506e8cfa836e6901da44b747530857a860a1cc111(
40758
- 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]],
40759
40803
  ) -> None:
40760
40804
  """Type checking stubs"""
40761
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.176.0", __name__[0:-6], "aws-cdk-lib@2.176.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: