aws-cdk-lib 2.180.0__py3-none-any.whl → 2.181.1__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 CHANGED
@@ -5267,8 +5267,8 @@ class CfnGuardHookProps:
5267
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
- :param stack_filters: Specifies the stack level filters for the Hook.
5271
- :param target_filters: Specifies the target filters for the Hook.
5270
+ :param stack_filters: Specifies the stack level filters for the Hook. Example stack level filter in JSON: ``"StackFilters": {"FilteringCriteria": "ALL", "StackNames": {"Exclude": [ "stack-1", "stack-2"]}}`` Example stack level filter in YAML: ``StackFilters: FilteringCriteria: ALL StackNames: Exclude: - stack-1 - stack-2``
5271
+ :param target_filters: Specifies the target filters for the Hook. Example target filter in JSON: ``"TargetFilters": {"Actions": [ "Create", "Update", "Delete" ]}`` Example target filter in YAML: ``TargetFilters: Actions: - CREATE - UPDATE - DELETE``
5272
5272
 
5273
5273
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-guardhook.html
5274
5274
  :exampleMetadata: fixture=_generated
@@ -5454,6 +5454,14 @@ class CfnGuardHookProps:
5454
5454
  ) -> typing.Optional[typing.Union["IResolvable", "CfnGuardHook.StackFiltersProperty"]]:
5455
5455
  '''Specifies the stack level filters for the Hook.
5456
5456
 
5457
+ Example stack level filter in JSON:
5458
+
5459
+ ``"StackFilters": {"FilteringCriteria": "ALL", "StackNames": {"Exclude": [ "stack-1", "stack-2"]}}``
5460
+
5461
+ Example stack level filter in YAML:
5462
+
5463
+ ``StackFilters: FilteringCriteria: ALL StackNames: Exclude: - stack-1 - stack-2``
5464
+
5457
5465
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-guardhook.html#cfn-cloudformation-guardhook-stackfilters
5458
5466
  '''
5459
5467
  result = self._values.get("stack_filters")
@@ -5465,6 +5473,14 @@ class CfnGuardHookProps:
5465
5473
  ) -> typing.Optional[typing.Union["IResolvable", "CfnGuardHook.TargetFiltersProperty"]]:
5466
5474
  '''Specifies the target filters for the Hook.
5467
5475
 
5476
+ Example target filter in JSON:
5477
+
5478
+ ``"TargetFilters": {"Actions": [ "Create", "Update", "Delete" ]}``
5479
+
5480
+ Example target filter in YAML:
5481
+
5482
+ ``TargetFilters: Actions: - CREATE - UPDATE - DELETE``
5483
+
5468
5484
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-guardhook.html#cfn-cloudformation-guardhook-targetfilters
5469
5485
  '''
5470
5486
  result = self._values.get("target_filters")
@@ -6058,8 +6074,8 @@ class CfnLambdaHookProps:
6058
6074
  :param hook_status: Specifies if the Hook is ``ENABLED`` or ``DISABLED`` . Default: - "ENABLED"
6059
6075
  :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.
6060
6076
  :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``
6061
- :param stack_filters: Specifies the stack level filters for the Hook.
6062
- :param target_filters: Specifies the target filters for the Hook.
6077
+ :param stack_filters: Specifies the stack level filters for the Hook. Example stack level filter in JSON: ``"StackFilters": {"FilteringCriteria": "ALL", "StackNames": {"Exclude": [ "stack-1", "stack-2"]}}`` Example stack level filter in YAML: ``StackFilters: FilteringCriteria: ALL StackNames: Exclude: - stack-1 - stack-2``
6078
+ :param target_filters: Specifies the target filters for the Hook. Example target filter in JSON: ``"TargetFilters": {"Actions": [ "Create", "Update", "Delete" ]}`` Example target filter in YAML: ``TargetFilters: Actions: - CREATE - UPDATE - DELETE``
6063
6079
 
6064
6080
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-lambdahook.html
6065
6081
  :exampleMetadata: fixture=_generated
@@ -6202,6 +6218,14 @@ class CfnLambdaHookProps:
6202
6218
  ) -> typing.Optional[typing.Union["IResolvable", "CfnLambdaHook.StackFiltersProperty"]]:
6203
6219
  '''Specifies the stack level filters for the Hook.
6204
6220
 
6221
+ Example stack level filter in JSON:
6222
+
6223
+ ``"StackFilters": {"FilteringCriteria": "ALL", "StackNames": {"Exclude": [ "stack-1", "stack-2"]}}``
6224
+
6225
+ Example stack level filter in YAML:
6226
+
6227
+ ``StackFilters: FilteringCriteria: ALL StackNames: Exclude: - stack-1 - stack-2``
6228
+
6205
6229
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-lambdahook.html#cfn-cloudformation-lambdahook-stackfilters
6206
6230
  '''
6207
6231
  result = self._values.get("stack_filters")
@@ -6213,6 +6237,14 @@ class CfnLambdaHookProps:
6213
6237
  ) -> typing.Optional[typing.Union["IResolvable", "CfnLambdaHook.TargetFiltersProperty"]]:
6214
6238
  '''Specifies the target filters for the Hook.
6215
6239
 
6240
+ Example target filter in JSON:
6241
+
6242
+ ``"TargetFilters": {"Actions": [ "Create", "Update", "Delete" ]}``
6243
+
6244
+ Example target filter in YAML:
6245
+
6246
+ ``TargetFilters: Actions: - CREATE - UPDATE - DELETE``
6247
+
6216
6248
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-lambdahook.html#cfn-cloudformation-lambdahook-targetfilters
6217
6249
  '''
6218
6250
  result = self._values.get("target_filters")
@@ -7260,10 +7292,16 @@ class CfnParameterProps:
7260
7292
 
7261
7293
  Example::
7262
7294
 
7263
- CfnParameter(self, "MyParameter",
7264
- type="Number",
7265
- default=1337
7266
- )
7295
+ param = CfnParameter(self, "ParameterName")
7296
+
7297
+ # If the parameter is a String
7298
+ param.value_as_string
7299
+
7300
+ # If the parameter is a Number
7301
+ param.value_as_number
7302
+
7303
+ # If the parameter is a List
7304
+ param.value_as_list
7267
7305
  '''
7268
7306
  if __debug__:
7269
7307
  type_hints = typing.get_type_hints(_typecheckingstub__6d425fa390023c3d5a204065fa1d0abca878458a00e8f9bd0859be42e4cc9e66)
@@ -10663,21 +10701,20 @@ class CustomResourceProps:
10663
10701
  :param properties: Properties to pass to the Lambda. Values in this ``properties`` dictionary can possibly overwrite other values in ``CustomResourceProps`` E.g. ``ServiceToken`` and ``ServiceTimeout`` It is recommended to avoid using same keys that exist in ``CustomResourceProps`` Default: - No properties.
10664
10702
  :param removal_policy: The policy to apply when this resource is removed from the application. Default: cdk.RemovalPolicy.Destroy
10665
10703
  :param resource_type: For custom resources, you can specify AWS::CloudFormation::CustomResource (the default) as the resource type, or you can specify your own resource type name. For example, you can use "Custom::MyCustomResourceTypeName". Custom resource type names must begin with "Custom::" and can include alphanumeric characters and the following characters: _@-. You can specify a custom resource type name up to a maximum length of 60 characters. You cannot change the type during an update. Using your own resource type names helps you quickly differentiate the types of custom resources in your stack. For example, if you had two custom resources that conduct two different ping tests, you could name their type as Custom::PingTester to make them easily identifiable as ping testers (instead of using AWS::CloudFormation::CustomResource). Default: - AWS::CloudFormation::CustomResource
10666
- :param service_timeout: The maximum time that can elapse before a custom resource operation times out. The value must be between 1 second and 3600 seconds. Maps to `ServiceTimeout <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetimeout>`_ property for the ``AWS::CloudFormation::CustomResource`` resource Default: Duration.seconds(3600)
10704
+ :param service_timeout: The maximum time that can elapse before a custom resource operation times out. The value must be between 1 second and 3600 seconds. Maps to `ServiceTimeout <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetimeout>`_ property for the ``AWS::CloudFormation::CustomResource`` resource A token can be specified for this property, but it must be specified with ``Duration.seconds()``. Default: Duration.seconds(3600)
10667
10705
 
10668
10706
  :exampleMetadata: infused
10669
10707
 
10670
10708
  Example::
10671
10709
 
10672
- service_token = CustomResourceProvider.get_or_create(self, "Custom::MyCustomResourceType",
10673
- code_directory=f"{__dirname}/my-handler",
10674
- runtime=CustomResourceProviderRuntime.NODEJS_18_X,
10675
- description="Lambda function created by the custom resource provider"
10710
+ stack = Stack()
10711
+ dur_token = CfnParameter(stack, "MyParameter",
10712
+ type="Number",
10713
+ default=60
10676
10714
  )
10677
-
10678
- CustomResource(self, "MyResource",
10679
- resource_type="Custom::MyCustomResourceType",
10680
- service_token=service_token
10715
+ CustomResource(stack, "MyCustomResource",
10716
+ service_token="MyServiceToken",
10717
+ service_timeout=Duration.seconds(dur_token.value_as_number)
10681
10718
  )
10682
10719
  '''
10683
10720
  if __debug__:
@@ -10808,7 +10845,21 @@ class CustomResourceProps:
10808
10845
 
10809
10846
  Maps to `ServiceTimeout <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetimeout>`_ property for the ``AWS::CloudFormation::CustomResource`` resource
10810
10847
 
10848
+ A token can be specified for this property, but it must be specified with ``Duration.seconds()``.
10849
+
10811
10850
  :default: Duration.seconds(3600)
10851
+
10852
+ Example::
10853
+
10854
+ stack = Stack()
10855
+ dur_token = CfnParameter(stack, "MyParameter",
10856
+ type="Number",
10857
+ default=60
10858
+ )
10859
+ CustomResource(stack, "MyCustomResource",
10860
+ service_token="MyServiceToken",
10861
+ service_timeout=Duration.seconds(dur_token.value_as_number)
10862
+ )
10812
10863
  '''
10813
10864
  result = self._values.get("service_timeout")
10814
10865
  return typing.cast(typing.Optional["Duration"], result)
@@ -28353,8 +28404,8 @@ class CfnGuardHook(
28353
28404
  :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``
28354
28405
  :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.
28355
28406
  :param options: Specifies the S3 location of your input parameters.
28356
- :param stack_filters: Specifies the stack level filters for the Hook.
28357
- :param target_filters: Specifies the target filters for the Hook.
28407
+ :param stack_filters: Specifies the stack level filters for the Hook. Example stack level filter in JSON: ``"StackFilters": {"FilteringCriteria": "ALL", "StackNames": {"Exclude": [ "stack-1", "stack-2"]}}`` Example stack level filter in YAML: ``StackFilters: FilteringCriteria: ALL StackNames: Exclude: - stack-1 - stack-2``
28408
+ :param target_filters: Specifies the target filters for the Hook. Example target filter in JSON: ``"TargetFilters": {"Actions": [ "Create", "Update", "Delete" ]}`` Example target filter in YAML: ``TargetFilters: Actions: - CREATE - UPDATE - DELETE``
28358
28409
  '''
28359
28410
  if __debug__:
28360
28411
  type_hints = typing.get_type_hints(_typecheckingstub__af8d2663a8bac5046ca50537b031b46f870c6edd4948ed8528ca4e3ff9367b17)
@@ -29817,8 +29868,8 @@ class CfnLambdaHook(
29817
29868
  :param hook_status: Specifies if the Hook is ``ENABLED`` or ``DISABLED`` . Default: - "ENABLED"
29818
29869
  :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.
29819
29870
  :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``
29820
- :param stack_filters: Specifies the stack level filters for the Hook.
29821
- :param target_filters: Specifies the target filters for the Hook.
29871
+ :param stack_filters: Specifies the stack level filters for the Hook. Example stack level filter in JSON: ``"StackFilters": {"FilteringCriteria": "ALL", "StackNames": {"Exclude": [ "stack-1", "stack-2"]}}`` Example stack level filter in YAML: ``StackFilters: FilteringCriteria: ALL StackNames: Exclude: - stack-1 - stack-2``
29872
+ :param target_filters: Specifies the target filters for the Hook. Example target filter in JSON: ``"TargetFilters": {"Actions": [ "Create", "Update", "Delete" ]}`` Example target filter in YAML: ``TargetFilters: Actions: - CREATE - UPDATE - DELETE``
29822
29873
  '''
29823
29874
  if __debug__:
29824
29875
  type_hints = typing.get_type_hints(_typecheckingstub__407b4a631e3a832f02376728222302ded8f1ba90d2538b0469e5b99641f17447)
@@ -33797,15 +33848,14 @@ class CustomResource(
33797
33848
 
33798
33849
  Example::
33799
33850
 
33800
- service_token = CustomResourceProvider.get_or_create(self, "Custom::MyCustomResourceType",
33801
- code_directory=f"{__dirname}/my-handler",
33802
- runtime=CustomResourceProviderRuntime.NODEJS_18_X,
33803
- description="Lambda function created by the custom resource provider"
33851
+ stack = Stack()
33852
+ dur_token = CfnParameter(stack, "MyParameter",
33853
+ type="Number",
33854
+ default=60
33804
33855
  )
33805
-
33806
- CustomResource(self, "MyResource",
33807
- resource_type="Custom::MyCustomResourceType",
33808
- service_token=service_token
33856
+ CustomResource(stack, "MyCustomResource",
33857
+ service_token="MyServiceToken",
33858
+ service_timeout=Duration.seconds(dur_token.value_as_number)
33809
33859
  )
33810
33860
  '''
33811
33861
 
@@ -33829,7 +33879,7 @@ class CustomResource(
33829
33879
  :param properties: Properties to pass to the Lambda. Values in this ``properties`` dictionary can possibly overwrite other values in ``CustomResourceProps`` E.g. ``ServiceToken`` and ``ServiceTimeout`` It is recommended to avoid using same keys that exist in ``CustomResourceProps`` Default: - No properties.
33830
33880
  :param removal_policy: The policy to apply when this resource is removed from the application. Default: cdk.RemovalPolicy.Destroy
33831
33881
  :param resource_type: For custom resources, you can specify AWS::CloudFormation::CustomResource (the default) as the resource type, or you can specify your own resource type name. For example, you can use "Custom::MyCustomResourceTypeName". Custom resource type names must begin with "Custom::" and can include alphanumeric characters and the following characters: _@-. You can specify a custom resource type name up to a maximum length of 60 characters. You cannot change the type during an update. Using your own resource type names helps you quickly differentiate the types of custom resources in your stack. For example, if you had two custom resources that conduct two different ping tests, you could name their type as Custom::PingTester to make them easily identifiable as ping testers (instead of using AWS::CloudFormation::CustomResource). Default: - AWS::CloudFormation::CustomResource
33832
- :param service_timeout: The maximum time that can elapse before a custom resource operation times out. The value must be between 1 second and 3600 seconds. Maps to `ServiceTimeout <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetimeout>`_ property for the ``AWS::CloudFormation::CustomResource`` resource Default: Duration.seconds(3600)
33882
+ :param service_timeout: The maximum time that can elapse before a custom resource operation times out. The value must be between 1 second and 3600 seconds. Maps to `ServiceTimeout <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetimeout>`_ property for the ``AWS::CloudFormation::CustomResource`` resource A token can be specified for this property, but it must be specified with ``Duration.seconds()``. Default: Duration.seconds(3600)
33833
33883
  '''
33834
33884
  if __debug__:
33835
33885
  type_hints = typing.get_type_hints(_typecheckingstub__5c89cdcdef1901fae8effe187c732f9fbf4ec5793ae2938cebb924671df2c26f)
aws_cdk/_jsii/__init__.py CHANGED
@@ -34,7 +34,7 @@ import aws_cdk.cloud_assembly_schema._jsii
34
34
  import constructs._jsii
35
35
 
36
36
  __jsii_assembly__ = jsii.JSIIAssembly.load(
37
- "aws-cdk-lib", "2.180.0", __name__[0:-6], "aws-cdk-lib@2.180.0.jsii.tgz"
37
+ "aws-cdk-lib", "2.181.1", __name__[0:-6], "aws-cdk-lib@2.181.1.jsii.tgz"
38
38
  )
39
39
 
40
40
  __all__ = [
@@ -118,7 +118,7 @@ class CertificateAuthority(
118
118
 
119
119
  cluster = msk.Cluster(self, "Cluster",
120
120
  cluster_name="myCluster",
121
- kafka_version=msk.KafkaVersion.V2_8_1,
121
+ kafka_version=msk.KafkaVersion.V3_8_X,
122
122
  vpc=vpc,
123
123
  encryption_in_transit=msk.EncryptionInTransitConfig(
124
124
  client_broker=msk.ClientBrokerEncryption.TLS