aws-cdk-lib 2.201.0__py3-none-any.whl → 2.202.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of aws-cdk-lib might be problematic. Click here for more details.

aws_cdk/__init__.py CHANGED
@@ -6885,7 +6885,7 @@ class CfnOutput(CfnElement, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.CfnO
6885
6885
  export_name: typing.Optional[builtins.str] = None,
6886
6886
  key: typing.Optional[builtins.str] = None,
6887
6887
  ) -> None:
6888
- '''Creates an CfnOutput value for this stack.
6888
+ '''Creates a CfnOutput value for this stack.
6889
6889
 
6890
6890
  :param scope: The parent construct.
6891
6891
  :param id: -
@@ -21137,16 +21137,20 @@ class SecretValue(
21137
21137
 
21138
21138
  Example::
21139
21139
 
21140
- # my_hosted_zone: route53.IPublicHostedZone
21141
-
21142
-
21143
- ses.EmailIdentity(self, "Identity",
21144
- identity=ses.Identity.public_hosted_zone(my_hosted_zone),
21145
- dkim_identity=ses.DkimIdentity.byo_dkim(
21146
- private_key=SecretValue.secrets_manager("dkim-private-key"),
21147
- public_key="...base64-encoded-public-key...",
21148
- selector="selector"
21149
- )
21140
+ # Read the secret from Secrets Manager
21141
+ pipeline = codepipeline.Pipeline(self, "MyPipeline")
21142
+ source_output = codepipeline.Artifact()
21143
+ source_action = codepipeline_actions.GitHubSourceAction(
21144
+ action_name="GitHub_Source",
21145
+ owner="awslabs",
21146
+ repo="aws-cdk",
21147
+ oauth_token=SecretValue.secrets_manager("my-github-token"),
21148
+ output=source_output,
21149
+ branch="develop"
21150
+ )
21151
+ pipeline.add_stage(
21152
+ stage_name="Source",
21153
+ actions=[source_action]
21150
21154
  )
21151
21155
  '''
21152
21156
 
@@ -23358,19 +23362,15 @@ class Stage(
23358
23362
 
23359
23363
  # pipeline: pipelines.CodePipeline
23360
23364
 
23361
- preprod = MyApplicationStage(self, "PreProd")
23362
- prod = MyApplicationStage(self, "Prod")
23363
-
23364
- pipeline.add_stage(preprod,
23365
- post=[
23366
- pipelines.ShellStep("Validate Endpoint",
23367
- commands=["curl -Ssf https://my.webservice.com/"]
23368
- )
23369
- ]
23370
- )
23371
- pipeline.add_stage(prod,
23372
- pre=[pipelines.ManualApprovalStep("PromoteToProd")]
23373
- )
23365
+ europe_wave = pipeline.add_wave("Europe")
23366
+ europe_wave.add_stage(
23367
+ MyApplicationStage(self, "Ireland",
23368
+ env=cdk.Environment(region="eu-west-1")
23369
+ ))
23370
+ europe_wave.add_stage(
23371
+ MyApplicationStage(self, "Germany",
23372
+ env=cdk.Environment(region="eu-central-1")
23373
+ ))
23374
23374
  '''
23375
23375
 
23376
23376
  def __init__(
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.201.0", __name__[0:-6], "aws-cdk-lib@2.201.0.jsii.tgz"
37
+ "aws-cdk-lib", "2.202.0", __name__[0:-6], "aws-cdk-lib@2.202.0.jsii.tgz"
38
38
  )
39
39
 
40
40
  __all__ = [
@@ -2140,12 +2140,12 @@ class CfnWorkGroup(
2140
2140
  enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2141
2141
  encryption_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
2142
2142
  ) -> None:
2143
- '''The configuration for the managed query results and encryption option.
2143
+ '''The configuration for storing results in Athena owned storage, which includes whether this feature is enabled;
2144
2144
 
2145
- ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same time
2145
+ whether encryption configuration, if any, is used for encrypting query results.
2146
2146
 
2147
- :param enabled:
2148
- :param encryption_configuration: Indicates the encryption configuration for Athena Managed Storage. If not setting this field, Managed Storage will encrypt the query results with Athena's encryption key
2147
+ :param enabled: If set to true, allows you to store query results in Athena owned storage. If set to false, workgroup member stores query results in location specified under ``ResultConfiguration$OutputLocation`` . The default is false. A workgroup cannot have the ``ResultConfiguration$OutputLocation`` parameter when you set this field to true.
2148
+ :param encryption_configuration: If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information.
2149
2149
 
2150
2150
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-managedqueryresultsconfiguration.html
2151
2151
  :exampleMetadata: fixture=_generated
@@ -2177,7 +2177,10 @@ class CfnWorkGroup(
2177
2177
  def enabled(
2178
2178
  self,
2179
2179
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
2180
- '''
2180
+ '''If set to true, allows you to store query results in Athena owned storage.
2181
+
2182
+ If set to false, workgroup member stores query results in location specified under ``ResultConfiguration$OutputLocation`` . The default is false. A workgroup cannot have the ``ResultConfiguration$OutputLocation`` parameter when you set this field to true.
2183
+
2181
2184
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-managedqueryresultsconfiguration.html#cfn-athena-workgroup-managedqueryresultsconfiguration-enabled
2182
2185
  '''
2183
2186
  result = self._values.get("enabled")
@@ -2187,9 +2190,7 @@ class CfnWorkGroup(
2187
2190
  def encryption_configuration(
2188
2191
  self,
2189
2192
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty"]]:
2190
- '''Indicates the encryption configuration for Athena Managed Storage.
2191
-
2192
- If not setting this field, Managed Storage will encrypt the query results with Athena's encryption key
2193
+ '''If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information.
2193
2194
 
2194
2195
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-managedqueryresultsconfiguration.html#cfn-athena-workgroup-managedqueryresultsconfiguration-encryptionconfiguration
2195
2196
  '''
@@ -2631,7 +2632,7 @@ class CfnWorkGroup(
2631
2632
  :param enforce_work_group_configuration: If set to "true", the settings for the workgroup override client-side settings. If set to "false", client-side settings are used. For more information, see `Override client-side settings <https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html>`_ .
2632
2633
  :param engine_version: The engine version that all queries running on the workgroup use.
2633
2634
  :param execution_role: Role used to access user resources in an Athena for Apache Spark session. This property applies only to Spark-enabled workgroups in Athena.
2634
- :param managed_query_results_configuration: The configuration for the managed query results and encryption option. ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same time
2635
+ :param managed_query_results_configuration: The configuration for storing results in Athena owned storage, which includes whether this feature is enabled; whether encryption configuration, if any, is used for encrypting query results.
2635
2636
  :param publish_cloud_watch_metrics_enabled: Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.
2636
2637
  :param requester_pays_enabled: If set to ``true`` , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to ``false`` , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is ``false`` . For more information about Requester Pays buckets, see `Requester Pays Buckets <https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html>`_ in the *Amazon Simple Storage Service Developer Guide* .
2637
2638
  :param result_configuration: Specifies the location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. For more information, see `Work with query results and recent queries <https://docs.aws.amazon.com/athena/latest/ug/querying.html>`_ .
@@ -2789,9 +2790,9 @@ class CfnWorkGroup(
2789
2790
  def managed_query_results_configuration(
2790
2791
  self,
2791
2792
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkGroup.ManagedQueryResultsConfigurationProperty"]]:
2792
- '''The configuration for the managed query results and encryption option.
2793
+ '''The configuration for storing results in Athena owned storage, which includes whether this feature is enabled;
2793
2794
 
2794
- ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same time
2795
+ whether encryption configuration, if any, is used for encrypting query results.
2795
2796
 
2796
2797
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-managedqueryresultsconfiguration
2797
2798
  '''
@@ -1295,7 +1295,25 @@ When using a CloudFront PublicKey, only the `comment` field can be updated after
1295
1295
  Resource handler returned message: "Invalid request provided: AWS::CloudFront::PublicKey"
1296
1296
  ```
1297
1297
 
1298
- To update the `encodedKey`, you must change the logical ID of the public key resource in your template. This causes CloudFormation to create a new `cloudfront.PublicKey` resource and delete the old one during the next deployment.
1298
+ To update the `encodedKey`, you must change the ID of the public key resource in your template. This causes CloudFormation to create a new `cloudfront.PublicKey` resource and delete the old one during the next deployment.
1299
+
1300
+ Example:
1301
+
1302
+ ```python
1303
+ # Step 1: Original deployment
1304
+ original_key = cloudfront.PublicKey(self, "MyPublicKeyV1",
1305
+ encoded_key="..."
1306
+ )
1307
+ ```
1308
+
1309
+ Regenerate a new key and change the construct id in the code:
1310
+
1311
+ ```python
1312
+ # Step 2: In a subsequent deployment, create a new key with a different ID
1313
+ updated_key = cloudfront.PublicKey(self, "MyPublicKeyV2",
1314
+ encoded_key="..."
1315
+ )
1316
+ ```
1299
1317
 
1300
1318
  See:
1301
1319
 
@@ -23425,27 +23443,14 @@ class PublicKey(
23425
23443
 
23426
23444
  Example::
23427
23445
 
23428
- # Validating signed URLs or signed cookies with Trusted Key Groups
23429
-
23430
- # public key in PEM format
23431
- # public_key: str
23432
-
23433
- pub_key = cloudfront.PublicKey(self, "MyPubKey",
23434
- encoded_key=public_key
23435
- )
23436
-
23437
- key_group = cloudfront.KeyGroup(self, "MyKeyGroup",
23438
- items=[pub_key
23446
+ # Create a key group to use with CloudFront signed URLs and signed cookies.
23447
+ cloudfront.KeyGroup(self, "MyKeyGroup",
23448
+ items=[
23449
+ cloudfront.PublicKey(self, "MyPublicKey",
23450
+ encoded_key="..."
23451
+ )
23439
23452
  ]
23440
23453
  )
23441
-
23442
- cloudfront.Distribution(self, "Dist",
23443
- default_behavior=cloudfront.BehaviorOptions(
23444
- origin=origins.HttpOrigin("www.example.com"),
23445
- trusted_key_groups=[key_group
23446
- ]
23447
- )
23448
- )
23449
23454
  '''
23450
23455
 
23451
23456
  def __init__(
@@ -23535,27 +23540,14 @@ class PublicKeyProps:
23535
23540
 
23536
23541
  Example::
23537
23542
 
23538
- # Validating signed URLs or signed cookies with Trusted Key Groups
23539
-
23540
- # public key in PEM format
23541
- # public_key: str
23542
-
23543
- pub_key = cloudfront.PublicKey(self, "MyPubKey",
23544
- encoded_key=public_key
23545
- )
23546
-
23547
- key_group = cloudfront.KeyGroup(self, "MyKeyGroup",
23548
- items=[pub_key
23543
+ # Create a key group to use with CloudFront signed URLs and signed cookies.
23544
+ cloudfront.KeyGroup(self, "MyKeyGroup",
23545
+ items=[
23546
+ cloudfront.PublicKey(self, "MyPublicKey",
23547
+ encoded_key="..."
23548
+ )
23549
23549
  ]
23550
23550
  )
23551
-
23552
- cloudfront.Distribution(self, "Dist",
23553
- default_behavior=cloudfront.BehaviorOptions(
23554
- origin=origins.HttpOrigin("www.example.com"),
23555
- trusted_key_groups=[key_group
23556
- ]
23557
- )
23558
- )
23559
23551
  '''
23560
23552
  if __debug__:
23561
23553
  type_hints = typing.get_type_hints(_typecheckingstub__ab6d6a7ffe806c347a4fbac3b890074d407fcf2dd19c1ca56da8ddc83cb3ad61)
@@ -79,6 +79,7 @@ from ...aws_lambda import (
79
79
  IEventSourceDlq as _IEventSourceDlq_5e2c6ad9,
80
80
  IFunction as _IFunction_6adb0ab8,
81
81
  ILayerVersion as _ILayerVersion_5ac127c8,
82
+ ISchemaRegistry as _ISchemaRegistry_7e66a87f,
82
83
  IVersion as _IVersion_faf7234e,
83
84
  InvokeMode as _InvokeMode_e7b50559,
84
85
  LambdaInsightsVersion as _LambdaInsightsVersion_9dfbfef9,
@@ -396,6 +397,7 @@ class EdgeFunction(
396
397
  provisioned_poller_config: typing.Optional[typing.Union[_ProvisionedPollerConfig_1025e063, typing.Dict[builtins.str, typing.Any]]] = None,
397
398
  report_batch_item_failures: typing.Optional[builtins.bool] = None,
398
399
  retry_attempts: typing.Optional[jsii.Number] = None,
400
+ schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
399
401
  source_access_configurations: typing.Optional[typing.Sequence[typing.Union[_SourceAccessConfiguration_1926ff89, typing.Dict[builtins.str, typing.Any]]]] = None,
400
402
  starting_position: typing.Optional[_StartingPosition_c0a4852c] = None,
401
403
  starting_position_timestamp: typing.Optional[jsii.Number] = None,
@@ -423,6 +425,7 @@ class EdgeFunction(
423
425
  :param provisioned_poller_config: Configuration for provisioned pollers that read from the event source. When specified, allows control over the minimum and maximum number of pollers that can be provisioned to process events from the source. Default: - no provisioned pollers
424
426
  :param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
425
427
  :param retry_attempts: The maximum number of times to retry when the function returns an error. Set to ``undefined`` if you want lambda to keep retrying infinitely or until the record expires. Valid Range: - Minimum value of 0 - Maximum value of 10000 Default: - infinite or until the record expires.
428
+ :param schema_registry_config: Specific configuration settings for a Kafka schema registry. Default: - none
426
429
  :param source_access_configurations: Specific settings like the authentication protocol or the VPC components to secure access to your event source. Default: - none
427
430
  :param starting_position: The position in the DynamoDB, Kinesis or MSK stream where AWS Lambda should start reading. Default: - no starting position
428
431
  :param starting_position_timestamp: The time from which to start reading, in Unix time seconds. Default: - no timestamp
@@ -451,6 +454,7 @@ class EdgeFunction(
451
454
  provisioned_poller_config=provisioned_poller_config,
452
455
  report_batch_item_failures=report_batch_item_failures,
453
456
  retry_attempts=retry_attempts,
457
+ schema_registry_config=schema_registry_config,
454
458
  source_access_configurations=source_access_configurations,
455
459
  starting_position=starting_position,
456
460
  starting_position_timestamp=starting_position_timestamp,
@@ -2098,6 +2102,7 @@ def _typecheckingstub__e3a2f6769309cd3c52da869813738e2d4a94d233e574ada7ebba1654d
2098
2102
  provisioned_poller_config: typing.Optional[typing.Union[_ProvisionedPollerConfig_1025e063, typing.Dict[builtins.str, typing.Any]]] = None,
2099
2103
  report_batch_item_failures: typing.Optional[builtins.bool] = None,
2100
2104
  retry_attempts: typing.Optional[jsii.Number] = None,
2105
+ schema_registry_config: typing.Optional[_ISchemaRegistry_7e66a87f] = None,
2101
2106
  source_access_configurations: typing.Optional[typing.Sequence[typing.Union[_SourceAccessConfiguration_1926ff89, typing.Dict[builtins.str, typing.Any]]]] = None,
2102
2107
  starting_position: typing.Optional[_StartingPosition_c0a4852c] = None,
2103
2108
  starting_position_timestamp: typing.Optional[jsii.Number] = None,
@@ -155,7 +155,7 @@ class CfnCalculatedAttributeDefinition(
155
155
  :param description: The description of the calculated attribute.
156
156
  :param display_name: The display name of the calculated attribute.
157
157
  :param tags: An array of key-value pairs to apply to this resource.
158
- :param use_historical_data: Whether to use historical data for the calculated attribute.
158
+ :param use_historical_data: Whether historical data ingested before the Calculated Attribute was created should be included in calculations.
159
159
  '''
160
160
  if __debug__:
161
161
  type_hints = typing.get_type_hints(_typecheckingstub__3a09ab96caa4db6cfa4ebb0207c025a7f976cac18f814d69b882506cf2971669)
@@ -235,7 +235,7 @@ class CfnCalculatedAttributeDefinition(
235
235
  @builtins.property
236
236
  @jsii.member(jsii_name="attrStatus")
237
237
  def attr_status(self) -> builtins.str:
238
- '''The status of the calculated attribute definition.
238
+ '''Status of the Calculated Attribute creation (whether all historical data has been indexed.).
239
239
 
240
240
  :cloudformationAttribute: Status
241
241
  '''
@@ -371,7 +371,7 @@ class CfnCalculatedAttributeDefinition(
371
371
  def use_historical_data(
372
372
  self,
373
373
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
374
- '''Whether to use historical data for the calculated attribute.'''
374
+ '''Whether historical data ingested before the Calculated Attribute was created should be included in calculations.'''
375
375
  return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "useHistoricalData"))
376
376
 
377
377
  @use_historical_data.setter
@@ -1002,7 +1002,7 @@ class CfnCalculatedAttributeDefinitionProps:
1002
1002
  :param description: The description of the calculated attribute.
1003
1003
  :param display_name: The display name of the calculated attribute.
1004
1004
  :param tags: An array of key-value pairs to apply to this resource.
1005
- :param use_historical_data: Whether to use historical data for the calculated attribute.
1005
+ :param use_historical_data: Whether historical data ingested before the Calculated Attribute was created should be included in calculations.
1006
1006
 
1007
1007
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-customerprofiles-calculatedattributedefinition.html
1008
1008
  :exampleMetadata: fixture=_generated
@@ -1165,7 +1165,7 @@ class CfnCalculatedAttributeDefinitionProps:
1165
1165
  def use_historical_data(
1166
1166
  self,
1167
1167
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
1168
- '''Whether to use historical data for the calculated attribute.
1168
+ '''Whether historical data ingested before the Calculated Attribute was created should be included in calculations.
1169
1169
 
1170
1170
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-customerprofiles-calculatedattributedefinition.html#cfn-customerprofiles-calculatedattributedefinition-usehistoricaldata
1171
1171
  '''
@@ -6392,7 +6392,7 @@ class CfnObjectType(
6392
6392
  :param expiration_days: The number of days until the data of this type expires.
6393
6393
  :param fields: A list of field definitions for the object type mapping.
6394
6394
  :param keys: A list of keys that can be used to map data to the profile or search for the profile.
6395
- :param max_profile_object_count: The maximum number of profile objects for this object type.
6395
+ :param max_profile_object_count: The amount of profile object max count assigned to the object type.
6396
6396
  :param source_last_updated_timestamp_format: The format of your sourceLastUpdatedTimestamp that was previously set up.
6397
6397
  :param tags: The tags used to organize, track, or control access for this resource.
6398
6398
  :param template_id: A unique identifier for the template mapping. This can be used instead of specifying the Keys and Fields properties directly.
@@ -6469,7 +6469,7 @@ class CfnObjectType(
6469
6469
  @builtins.property
6470
6470
  @jsii.member(jsii_name="attrMaxAvailableProfileObjectCount")
6471
6471
  def attr_max_available_profile_object_count(self) -> jsii.Number:
6472
- '''The maximum available number of profile objects.
6472
+ '''The amount of provisioned profile object max count available.
6473
6473
 
6474
6474
  :cloudformationAttribute: MaxAvailableProfileObjectCount
6475
6475
  '''
@@ -6608,7 +6608,7 @@ class CfnObjectType(
6608
6608
  @builtins.property
6609
6609
  @jsii.member(jsii_name="maxProfileObjectCount")
6610
6610
  def max_profile_object_count(self) -> typing.Optional[jsii.Number]:
6611
- '''The maximum number of profile objects for this object type.'''
6611
+ '''The amount of profile object max count assigned to the object type.'''
6612
6612
  return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "maxProfileObjectCount"))
6613
6613
 
6614
6614
  @max_profile_object_count.setter
@@ -7029,7 +7029,7 @@ class CfnObjectTypeProps:
7029
7029
  :param expiration_days: The number of days until the data of this type expires.
7030
7030
  :param fields: A list of field definitions for the object type mapping.
7031
7031
  :param keys: A list of keys that can be used to map data to the profile or search for the profile.
7032
- :param max_profile_object_count: The maximum number of profile objects for this object type.
7032
+ :param max_profile_object_count: The amount of profile object max count assigned to the object type.
7033
7033
  :param source_last_updated_timestamp_format: The format of your sourceLastUpdatedTimestamp that was previously set up.
7034
7034
  :param tags: The tags used to organize, track, or control access for this resource.
7035
7035
  :param template_id: A unique identifier for the template mapping. This can be used instead of specifying the Keys and Fields properties directly.
@@ -7201,7 +7201,7 @@ class CfnObjectTypeProps:
7201
7201
 
7202
7202
  @builtins.property
7203
7203
  def max_profile_object_count(self) -> typing.Optional[jsii.Number]:
7204
- '''The maximum number of profile objects for this object type.
7204
+ '''The amount of profile object max count assigned to the object type.
7205
7205
 
7206
7206
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-customerprofiles-objecttype.html#cfn-customerprofiles-objecttype-maxprofileobjectcount
7207
7207
  '''