aws-cdk-lib 2.186.0__py3-none-any.whl → 2.188.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 (85) hide show
  1. aws_cdk/__init__.py +303 -119
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.186.0.jsii.tgz → aws-cdk-lib@2.188.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplify/__init__.py +136 -0
  5. aws_cdk/aws_apigateway/__init__.py +69 -17
  6. aws_cdk/aws_apigatewayv2/__init__.py +88 -0
  7. aws_cdk/aws_appconfig/__init__.py +30 -14
  8. aws_cdk/aws_appsync/__init__.py +14 -5
  9. aws_cdk/aws_arczonalshift/__init__.py +4 -4
  10. aws_cdk/aws_bedrock/__init__.py +637 -32
  11. aws_cdk/aws_budgets/__init__.py +8 -8
  12. aws_cdk/aws_cassandra/__init__.py +4 -2
  13. aws_cdk/aws_ce/__init__.py +2 -2
  14. aws_cdk/aws_cloudformation/__init__.py +3 -3
  15. aws_cdk/aws_cloudfront/__init__.py +11 -0
  16. aws_cdk/aws_cloudtrail/__init__.py +4 -18
  17. aws_cdk/aws_cloudwatch/__init__.py +50 -50
  18. aws_cdk/aws_codebuild/__init__.py +32 -1
  19. aws_cdk/aws_codepipeline/__init__.py +47 -32
  20. aws_cdk/aws_codepipeline_actions/__init__.py +2786 -1042
  21. aws_cdk/aws_codestarnotifications/__init__.py +16 -16
  22. aws_cdk/aws_cognito/__init__.py +8 -2
  23. aws_cdk/aws_config/__init__.py +2 -5
  24. aws_cdk/aws_datazone/__init__.py +287 -226
  25. aws_cdk/aws_detective/__init__.py +3 -3
  26. aws_cdk/aws_dynamodb/__init__.py +37 -0
  27. aws_cdk/aws_ec2/__init__.py +2448 -442
  28. aws_cdk/aws_ecr/__init__.py +143 -0
  29. aws_cdk/aws_ecr_assets/__init__.py +115 -4
  30. aws_cdk/aws_ecs/__init__.py +51 -0
  31. aws_cdk/aws_eks/__init__.py +222 -6
  32. aws_cdk/aws_events/__init__.py +8 -11
  33. aws_cdk/aws_events_targets/__init__.py +136 -0
  34. aws_cdk/aws_forecast/__init__.py +1 -1
  35. aws_cdk/aws_fsx/__init__.py +2 -2
  36. aws_cdk/aws_gamelift/__init__.py +11 -11
  37. aws_cdk/aws_iam/__init__.py +6 -4
  38. aws_cdk/aws_identitystore/__init__.py +6 -4
  39. aws_cdk/aws_iotsitewise/__init__.py +623 -0
  40. aws_cdk/aws_kinesisfirehose/__init__.py +38 -0
  41. aws_cdk/aws_kms/__init__.py +10 -11
  42. aws_cdk/aws_lakeformation/__init__.py +3 -3
  43. aws_cdk/aws_lambda/__init__.py +105 -4
  44. aws_cdk/aws_lambda_event_sources/__init__.py +87 -25
  45. aws_cdk/aws_lambda_nodejs/__init__.py +5 -24
  46. aws_cdk/aws_lex/__init__.py +985 -5
  47. aws_cdk/aws_logs/__init__.py +18 -0
  48. aws_cdk/aws_logs_destinations/__init__.py +146 -0
  49. aws_cdk/aws_mediaconnect/__init__.py +714 -290
  50. aws_cdk/aws_mwaa/__init__.py +9 -9
  51. aws_cdk/aws_networkfirewall/__init__.py +44 -0
  52. aws_cdk/aws_notifications/__init__.py +4 -4
  53. aws_cdk/aws_omics/__init__.py +225 -1
  54. aws_cdk/aws_opensearchserverless/__init__.py +31 -23
  55. aws_cdk/aws_organizations/__init__.py +1 -1
  56. aws_cdk/aws_pcaconnectorad/__init__.py +3 -2
  57. aws_cdk/aws_quicksight/__init__.py +268 -50
  58. aws_cdk/aws_rds/__init__.py +186 -10
  59. aws_cdk/aws_route53/__init__.py +5 -5
  60. aws_cdk/aws_route53recoverycontrol/__init__.py +41 -2
  61. aws_cdk/aws_rum/__init__.py +13 -10
  62. aws_cdk/aws_s3/__init__.py +3 -6
  63. aws_cdk/aws_s3_assets/__init__.py +70 -1
  64. aws_cdk/aws_s3_deployment/__init__.py +4 -0
  65. aws_cdk/aws_sagemaker/__init__.py +47 -4
  66. aws_cdk/aws_scheduler_targets/__init__.py +4 -16
  67. aws_cdk/aws_securitylake/__init__.py +2 -2
  68. aws_cdk/aws_servicecatalog/__init__.py +4 -0
  69. aws_cdk/aws_sns/__init__.py +1 -1
  70. aws_cdk/aws_ssmincidents/__init__.py +10 -10
  71. aws_cdk/aws_stepfunctions/__init__.py +23 -17
  72. aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -0
  73. aws_cdk/aws_synthetics/__init__.py +9 -0
  74. aws_cdk/aws_systemsmanagersap/__init__.py +160 -0
  75. aws_cdk/aws_transfer/__init__.py +19 -10
  76. aws_cdk/aws_wafv2/__init__.py +512 -1141
  77. aws_cdk/cloud_assembly_schema/__init__.py +60 -10
  78. aws_cdk/cx_api/__init__.py +38 -2
  79. aws_cdk/pipelines/__init__.py +52 -2
  80. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/METADATA +4 -4
  81. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/RECORD +85 -85
  82. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/WHEEL +1 -1
  83. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/LICENSE +0 -0
  84. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/NOTICE +0 -0
  85. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/top_level.txt +0 -0
@@ -116,6 +116,17 @@ s3_destination = firehose.S3Bucket(bucket,
116
116
  See: [Custom S3 Prefixes](https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html)
117
117
  in the *Amazon Data Firehose Developer Guide*.
118
118
 
119
+ To override default file extension appended by Data Format Conversion or S3 compression features, specify `fileExtension`.
120
+
121
+ ```python
122
+ # bucket: s3.Bucket
123
+
124
+ s3_destination = firehose.S3Bucket(bucket,
125
+ compression=firehose.Compression.GZIP,
126
+ file_extension=".json.gz"
127
+ )
128
+ ```
129
+
119
130
  ## Server-side Encryption
120
131
 
121
132
  Enabling server-side encryption (SSE) requires Amazon Data Firehose to encrypt all data
@@ -484,6 +495,7 @@ delivery_stream = firehose.DeliveryStream(stack, "DeliveryStream",
484
495
  compression=firehose.Compression.GZIP,
485
496
  data_output_prefix="regularPrefix",
486
497
  error_output_prefix="errorPrefix",
498
+ file_extension=".log.gz",
487
499
  buffering_interval=cdk.Duration.seconds(60),
488
500
  buffering_size=cdk.Size.mebibytes(1),
489
501
  encryption_key=key,
@@ -11674,6 +11686,7 @@ class S3Bucket(
11674
11686
  self,
11675
11687
  bucket: _IBucket_42e086fd,
11676
11688
  *,
11689
+ file_extension: typing.Optional[builtins.str] = None,
11677
11690
  buffering_interval: typing.Optional[_Duration_4839e8c3] = None,
11678
11691
  buffering_size: typing.Optional[_Size_7b441c34] = None,
11679
11692
  compression: typing.Optional[Compression] = None,
@@ -11687,6 +11700,7 @@ class S3Bucket(
11687
11700
  ) -> None:
11688
11701
  '''
11689
11702
  :param bucket: -
11703
+ :param file_extension: Specify a file extension. It will override the default file extension appended by Data Format Conversion or S3 compression features such as ``.parquet`` or ``.gz``. File extension must start with a period (``.``) and can contain allowed characters: ``0-9a-z!-_.*'()``. Default: - The default file extension appended by Data Format Conversion or S3 compression features
11690
11704
  :param buffering_interval: The length of time that Firehose buffers incoming data before delivering it to the S3 bucket. Minimum: Duration.seconds(0) Maximum: Duration.seconds(900) Default: Duration.seconds(300)
11691
11705
  :param buffering_size: The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket. Minimum: Size.mebibytes(1) Maximum: Size.mebibytes(128) Default: Size.mebibytes(5)
11692
11706
  :param compression: The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket. Default: - UNCOMPRESSED
@@ -11702,6 +11716,7 @@ class S3Bucket(
11702
11716
  type_hints = typing.get_type_hints(_typecheckingstub__a2eaf455255fc260033aa24d456779f4b21172e8b4cf2c51f6355f415c9f3ccd)
11703
11717
  check_type(argname="argument bucket", value=bucket, expected_type=type_hints["bucket"])
11704
11718
  props = S3BucketProps(
11719
+ file_extension=file_extension,
11705
11720
  buffering_interval=buffering_interval,
11706
11721
  buffering_size=buffering_size,
11707
11722
  compression=compression,
@@ -11746,6 +11761,7 @@ class S3Bucket(
11746
11761
  "processor": "processor",
11747
11762
  "role": "role",
11748
11763
  "s3_backup": "s3Backup",
11764
+ "file_extension": "fileExtension",
11749
11765
  },
11750
11766
  )
11751
11767
  class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
@@ -11762,6 +11778,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11762
11778
  processor: typing.Optional[IDataProcessor] = None,
11763
11779
  role: typing.Optional[_IRole_235f5d8e] = None,
11764
11780
  s3_backup: typing.Optional[typing.Union[DestinationS3BackupProps, typing.Dict[builtins.str, typing.Any]]] = None,
11781
+ file_extension: typing.Optional[builtins.str] = None,
11765
11782
  ) -> None:
11766
11783
  '''Props for defining an S3 destination of an Amazon Data Firehose delivery stream.
11767
11784
 
@@ -11775,6 +11792,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11775
11792
  :param processor: The data transformation that should be performed on the data before writing to the destination. Default: - no data transformation will occur.
11776
11793
  :param role: The IAM role associated with this destination. Assumed by Amazon Data Firehose to invoke processors and write to destinations Default: - a role will be created with default permissions.
11777
11794
  :param s3_backup: The configuration for backing up source records to S3. Default: - source records will not be backed up to S3.
11795
+ :param file_extension: Specify a file extension. It will override the default file extension appended by Data Format Conversion or S3 compression features such as ``.parquet`` or ``.gz``. File extension must start with a period (``.``) and can contain allowed characters: ``0-9a-z!-_.*'()``. Default: - The default file extension appended by Data Format Conversion or S3 compression features
11778
11796
 
11779
11797
  :exampleMetadata: infused
11780
11798
 
@@ -11814,6 +11832,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11814
11832
  check_type(argname="argument processor", value=processor, expected_type=type_hints["processor"])
11815
11833
  check_type(argname="argument role", value=role, expected_type=type_hints["role"])
11816
11834
  check_type(argname="argument s3_backup", value=s3_backup, expected_type=type_hints["s3_backup"])
11835
+ check_type(argname="argument file_extension", value=file_extension, expected_type=type_hints["file_extension"])
11817
11836
  self._values: typing.Dict[builtins.str, typing.Any] = {}
11818
11837
  if buffering_interval is not None:
11819
11838
  self._values["buffering_interval"] = buffering_interval
@@ -11835,6 +11854,8 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11835
11854
  self._values["role"] = role
11836
11855
  if s3_backup is not None:
11837
11856
  self._values["s3_backup"] = s3_backup
11857
+ if file_extension is not None:
11858
+ self._values["file_extension"] = file_extension
11838
11859
 
11839
11860
  @builtins.property
11840
11861
  def buffering_interval(self) -> typing.Optional[_Duration_4839e8c3]:
@@ -11946,6 +11967,21 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
11946
11967
  result = self._values.get("s3_backup")
11947
11968
  return typing.cast(typing.Optional[DestinationS3BackupProps], result)
11948
11969
 
11970
+ @builtins.property
11971
+ def file_extension(self) -> typing.Optional[builtins.str]:
11972
+ '''Specify a file extension.
11973
+
11974
+ It will override the default file extension appended by Data Format Conversion or S3 compression features such as ``.parquet`` or ``.gz``.
11975
+
11976
+ File extension must start with a period (``.``) and can contain allowed characters: ``0-9a-z!-_.*'()``.
11977
+
11978
+ :default: - The default file extension appended by Data Format Conversion or S3 compression features
11979
+
11980
+ :see: https://docs.aws.amazon.com/firehose/latest/dev/create-destination.html#create-destination-s3
11981
+ '''
11982
+ result = self._values.get("file_extension")
11983
+ return typing.cast(typing.Optional[builtins.str], result)
11984
+
11949
11985
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
11950
11986
  return isinstance(rhs, self.__class__) and rhs._values == self._values
11951
11987
 
@@ -13621,6 +13657,7 @@ def _typecheckingstub__393c41d8ae2fe5acab13fd70fff9f4778e727adfd78b86d20820f0670
13621
13657
  def _typecheckingstub__a2eaf455255fc260033aa24d456779f4b21172e8b4cf2c51f6355f415c9f3ccd(
13622
13658
  bucket: _IBucket_42e086fd,
13623
13659
  *,
13660
+ file_extension: typing.Optional[builtins.str] = None,
13624
13661
  buffering_interval: typing.Optional[_Duration_4839e8c3] = None,
13625
13662
  buffering_size: typing.Optional[_Size_7b441c34] = None,
13626
13663
  compression: typing.Optional[Compression] = None,
@@ -13653,6 +13690,7 @@ def _typecheckingstub__04b12dc503479d22af2396c4df8d38c37536719187eef6ddd01c18b52
13653
13690
  processor: typing.Optional[IDataProcessor] = None,
13654
13691
  role: typing.Optional[_IRole_235f5d8e] = None,
13655
13692
  s3_backup: typing.Optional[typing.Union[DestinationS3BackupProps, typing.Dict[builtins.str, typing.Any]]] = None,
13693
+ file_extension: typing.Optional[builtins.str] = None,
13656
13694
  ) -> None:
13657
13695
  """Type checking stubs"""
13658
13696
  pass
@@ -2234,19 +2234,18 @@ class Key(
2234
2234
 
2235
2235
  Example::
2236
2236
 
2237
- # vpc: ec2.Vpc
2237
+ import aws_cdk.aws_kms as kms
2238
2238
 
2239
- engine = rds.DatabaseInstanceEngine.postgres(version=rds.PostgresEngineVersion.VER_16_3)
2240
- my_key = kms.Key(self, "MyKey")
2241
2239
 
2242
- rds.DatabaseInstance(self, "InstanceWithCustomizedSecret",
2243
- engine=engine,
2244
- vpc=vpc,
2245
- credentials=rds.Credentials.from_generated_secret("postgres",
2246
- secret_name="my-cool-name",
2247
- encryption_key=my_key,
2248
- exclude_characters="!&*^#@()",
2249
- replica_regions=[secretsmanager.ReplicaRegion(region="eu-west-1"), secretsmanager.ReplicaRegion(region="eu-west-2")]
2240
+ my_kms_key = kms.Key(self, "myKMSKey")
2241
+ my_bucket = s3.Bucket(self, "mySSEKMSEncryptedBucket",
2242
+ encryption=s3.BucketEncryption.KMS,
2243
+ encryption_key=my_kms_key,
2244
+ object_ownership=s3.ObjectOwnership.BUCKET_OWNER_ENFORCED
2245
+ )
2246
+ cloudfront.Distribution(self, "myDist",
2247
+ default_behavior=cloudfront.BehaviorOptions(
2248
+ origin=origins.S3BucketOrigin.with_origin_access_control(my_bucket)
2250
2249
  )
2251
2250
  )
2252
2251
  '''
@@ -785,7 +785,7 @@ class CfnDataLakeSettings(
785
785
  :param create_table_default_permissions: Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions. A null value indicates that the access is controlled by Lake Formation permissions. ``ALL`` permissions assigned to ``IAM_ALLOWED_PRINCIPALS`` group indicate that the user's IAM permissions determine the access to the table. This is referred to as the setting "Use only IAM access control," and is to support the backward compatibility with the AWS Glue permission model implemented by IAM permissions. The only permitted values are an empty array or an array that contains a single JSON object that grants ``ALL`` permissions to ``IAM_ALLOWED_PRINCIPALS`` . For more information, see `Changing the default security settings for your data lake <https://docs.aws.amazon.com/lake-formation/latest/dg/change-settings.html>`_ .
786
786
  :param external_data_filtering_allow_list: A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering.
787
787
  :param mutation_type: Specifies whether the data lake settings are updated by adding new values to the current settings ( ``APPEND`` ) or by replacing the current settings with new settings ( ``REPLACE`` ). .. epigraph:: If you choose ``REPLACE`` , your current data lake settings will be replaced with the new values in your template.
788
- :param parameters: A key-value map that provides an additional configuration on your data lake. ``CrossAccountVersion`` is the key you can configure in the ``Parameters`` field. Accepted values for the ``CrossAccountVersion`` key are 1, 2, and 3.
788
+ :param parameters: A key-value map that provides an additional configuration on your data lake. ``CrossAccountVersion`` is the key you can configure in the ``Parameters`` field. Accepted values for the ``CrossAccountVersion`` key are 1, 2, 3, and 4.
789
789
  :param trusted_resource_owners: An array of UTF-8 strings. A list of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs). The user ARNs can be logged in the resource owner's CloudTrail log. You may want to specify this property when you are in a high-trust boundary, such as the same team or company.
790
790
  '''
791
791
  if __debug__:
@@ -1187,7 +1187,7 @@ class CfnDataLakeSettingsProps:
1187
1187
  :param create_table_default_permissions: Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions. A null value indicates that the access is controlled by Lake Formation permissions. ``ALL`` permissions assigned to ``IAM_ALLOWED_PRINCIPALS`` group indicate that the user's IAM permissions determine the access to the table. This is referred to as the setting "Use only IAM access control," and is to support the backward compatibility with the AWS Glue permission model implemented by IAM permissions. The only permitted values are an empty array or an array that contains a single JSON object that grants ``ALL`` permissions to ``IAM_ALLOWED_PRINCIPALS`` . For more information, see `Changing the default security settings for your data lake <https://docs.aws.amazon.com/lake-formation/latest/dg/change-settings.html>`_ .
1188
1188
  :param external_data_filtering_allow_list: A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering.
1189
1189
  :param mutation_type: Specifies whether the data lake settings are updated by adding new values to the current settings ( ``APPEND`` ) or by replacing the current settings with new settings ( ``REPLACE`` ). .. epigraph:: If you choose ``REPLACE`` , your current data lake settings will be replaced with the new values in your template.
1190
- :param parameters: A key-value map that provides an additional configuration on your data lake. ``CrossAccountVersion`` is the key you can configure in the ``Parameters`` field. Accepted values for the ``CrossAccountVersion`` key are 1, 2, and 3.
1190
+ :param parameters: A key-value map that provides an additional configuration on your data lake. ``CrossAccountVersion`` is the key you can configure in the ``Parameters`` field. Accepted values for the ``CrossAccountVersion`` key are 1, 2, 3, and 4.
1191
1191
  :param trusted_resource_owners: An array of UTF-8 strings. A list of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs). The user ARNs can be logged in the resource owner's CloudTrail log. You may want to specify this property when you are in a high-trust boundary, such as the same team or company.
1192
1192
 
1193
1193
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-datalakesettings.html
@@ -1417,7 +1417,7 @@ class CfnDataLakeSettingsProps:
1417
1417
  def parameters(self) -> typing.Any:
1418
1418
  '''A key-value map that provides an additional configuration on your data lake.
1419
1419
 
1420
- ``CrossAccountVersion`` is the key you can configure in the ``Parameters`` field. Accepted values for the ``CrossAccountVersion`` key are 1, 2, and 3.
1420
+ ``CrossAccountVersion`` is the key you can configure in the ``Parameters`` field. Accepted values for the ``CrossAccountVersion`` key are 1, 2, 3, and 4.
1421
1421
 
1422
1422
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-datalakesettings.html#cfn-lakeformation-datalakesettings-parameters
1423
1423
  '''