aws-cdk-lib 2.206.0__py3-none-any.whl → 2.208.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 +96 -15
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.206.0.jsii.tgz → aws-cdk-lib@2.208.0.jsii.tgz} +0 -0
- aws_cdk/aws_aiops/__init__.py +70 -76
- aws_cdk/aws_amazonmq/__init__.py +8 -18
- aws_cdk/aws_appstream/__init__.py +36 -4
- aws_cdk/aws_autoscaling/__init__.py +20 -0
- aws_cdk/aws_bedrock/__init__.py +317 -142
- aws_cdk/aws_certificatemanager/__init__.py +48 -3
- aws_cdk/aws_cleanrooms/__init__.py +6 -2
- aws_cdk/aws_cloudformation/__init__.py +28 -15
- aws_cdk/aws_cloudfront/__init__.py +12 -2
- aws_cdk/aws_cloudwatch/__init__.py +574 -33
- aws_cdk/aws_connect/__init__.py +107 -3
- aws_cdk/aws_customerprofiles/__init__.py +27 -22
- aws_cdk/aws_datasync/__init__.py +14 -15
- aws_cdk/aws_docdb/__init__.py +5 -3
- aws_cdk/aws_ec2/__init__.py +59 -13
- aws_cdk/aws_ecs/__init__.py +185 -47
- aws_cdk/aws_events/__init__.py +142 -0
- aws_cdk/aws_gamelift/__init__.py +2 -2
- aws_cdk/aws_guardduty/__init__.py +86 -0
- aws_cdk/aws_iotsitewise/__init__.py +13 -9
- aws_cdk/aws_kinesisfirehose/__init__.py +377 -4
- aws_cdk/aws_kms/__init__.py +19 -17
- aws_cdk/aws_logs/__init__.py +4775 -764
- aws_cdk/aws_mediapackagev2/__init__.py +950 -48
- aws_cdk/aws_omics/__init__.py +13 -10
- aws_cdk/aws_opsworkscm/__init__.py +2 -4
- aws_cdk/aws_quicksight/__init__.py +111 -4
- aws_cdk/aws_rds/__init__.py +358 -27
- aws_cdk/aws_s3/__init__.py +781 -8
- aws_cdk/aws_s3express/__init__.py +61 -3
- aws_cdk/aws_s3tables/__init__.py +254 -0
- aws_cdk/aws_sagemaker/__init__.py +527 -140
- aws_cdk/aws_ssm/__init__.py +106 -33
- aws_cdk/aws_transfer/__init__.py +70 -11
- aws_cdk/aws_wisdom/__init__.py +1185 -100
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/RECORD +44 -44
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.206.0.dist-info → aws_cdk_lib-2.208.0.dist-info}/top_level.txt +0 -0
|
@@ -2265,17 +2265,22 @@ class CfnDeliveryStream(
|
|
|
2265
2265
|
@jsii.data_type(
|
|
2266
2266
|
jsii_type="aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty",
|
|
2267
2267
|
jsii_struct_bases=[],
|
|
2268
|
-
name_mapping={
|
|
2268
|
+
name_mapping={
|
|
2269
|
+
"catalog_arn": "catalogArn",
|
|
2270
|
+
"warehouse_location": "warehouseLocation",
|
|
2271
|
+
},
|
|
2269
2272
|
)
|
|
2270
2273
|
class CatalogConfigurationProperty:
|
|
2271
2274
|
def __init__(
|
|
2272
2275
|
self,
|
|
2273
2276
|
*,
|
|
2274
2277
|
catalog_arn: typing.Optional[builtins.str] = None,
|
|
2278
|
+
warehouse_location: typing.Optional[builtins.str] = None,
|
|
2275
2279
|
) -> None:
|
|
2276
2280
|
'''Describes the containers where the destination Apache Iceberg Tables are persisted.
|
|
2277
2281
|
|
|
2278
2282
|
:param catalog_arn: Specifies the Glue catalog ARN identifier of the destination Apache Iceberg Tables. You must specify the ARN in the format ``arn:aws:glue:region:account-id:catalog`` .
|
|
2283
|
+
:param warehouse_location: The warehouse location for Apache Iceberg tables. You must configure this when schema evolution and table creation is enabled. Amazon Data Firehose is in preview release and is subject to change.
|
|
2279
2284
|
|
|
2280
2285
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-catalogconfiguration.html
|
|
2281
2286
|
:exampleMetadata: fixture=_generated
|
|
@@ -2287,15 +2292,19 @@ class CfnDeliveryStream(
|
|
|
2287
2292
|
from aws_cdk import aws_kinesisfirehose as kinesisfirehose
|
|
2288
2293
|
|
|
2289
2294
|
catalog_configuration_property = kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty(
|
|
2290
|
-
catalog_arn="catalogArn"
|
|
2295
|
+
catalog_arn="catalogArn",
|
|
2296
|
+
warehouse_location="warehouseLocation"
|
|
2291
2297
|
)
|
|
2292
2298
|
'''
|
|
2293
2299
|
if __debug__:
|
|
2294
2300
|
type_hints = typing.get_type_hints(_typecheckingstub__92b3c1717fb66856049eddd62f0c12dbf945ae8d9450b716e7d065a04359aee0)
|
|
2295
2301
|
check_type(argname="argument catalog_arn", value=catalog_arn, expected_type=type_hints["catalog_arn"])
|
|
2302
|
+
check_type(argname="argument warehouse_location", value=warehouse_location, expected_type=type_hints["warehouse_location"])
|
|
2296
2303
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2297
2304
|
if catalog_arn is not None:
|
|
2298
2305
|
self._values["catalog_arn"] = catalog_arn
|
|
2306
|
+
if warehouse_location is not None:
|
|
2307
|
+
self._values["warehouse_location"] = warehouse_location
|
|
2299
2308
|
|
|
2300
2309
|
@builtins.property
|
|
2301
2310
|
def catalog_arn(self) -> typing.Optional[builtins.str]:
|
|
@@ -2308,6 +2317,17 @@ class CfnDeliveryStream(
|
|
|
2308
2317
|
result = self._values.get("catalog_arn")
|
|
2309
2318
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
2310
2319
|
|
|
2320
|
+
@builtins.property
|
|
2321
|
+
def warehouse_location(self) -> typing.Optional[builtins.str]:
|
|
2322
|
+
'''The warehouse location for Apache Iceberg tables. You must configure this when schema evolution and table creation is enabled.
|
|
2323
|
+
|
|
2324
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
2325
|
+
|
|
2326
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-catalogconfiguration.html#cfn-kinesisfirehose-deliverystream-catalogconfiguration-warehouselocation
|
|
2327
|
+
'''
|
|
2328
|
+
result = self._values.get("warehouse_location")
|
|
2329
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2330
|
+
|
|
2311
2331
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2312
2332
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2313
2333
|
|
|
@@ -3488,6 +3508,7 @@ class CfnDeliveryStream(
|
|
|
3488
3508
|
name_mapping={
|
|
3489
3509
|
"destination_database_name": "destinationDatabaseName",
|
|
3490
3510
|
"destination_table_name": "destinationTableName",
|
|
3511
|
+
"partition_spec": "partitionSpec",
|
|
3491
3512
|
"s3_error_output_prefix": "s3ErrorOutputPrefix",
|
|
3492
3513
|
"unique_keys": "uniqueKeys",
|
|
3493
3514
|
},
|
|
@@ -3498,6 +3519,7 @@ class CfnDeliveryStream(
|
|
|
3498
3519
|
*,
|
|
3499
3520
|
destination_database_name: builtins.str,
|
|
3500
3521
|
destination_table_name: builtins.str,
|
|
3522
|
+
partition_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeliveryStream.PartitionSpecProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3501
3523
|
s3_error_output_prefix: typing.Optional[builtins.str] = None,
|
|
3502
3524
|
unique_keys: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3503
3525
|
) -> None:
|
|
@@ -3505,6 +3527,7 @@ class CfnDeliveryStream(
|
|
|
3505
3527
|
|
|
3506
3528
|
:param destination_database_name: The name of the Apache Iceberg database.
|
|
3507
3529
|
:param destination_table_name: Specifies the name of the Apache Iceberg Table.
|
|
3530
|
+
:param partition_spec: The partition spec configuration for a table that is used by automatic table creation. Amazon Data Firehose is in preview release and is subject to change.
|
|
3508
3531
|
:param s3_error_output_prefix: The table specific S3 error output prefix. All the errors that occurred while delivering to this table will be prefixed with this value in S3 destination.
|
|
3509
3532
|
:param unique_keys: A list of unique keys for a given Apache Iceberg table. Firehose will use these for running Create, Update, or Delete operations on the given Iceberg table.
|
|
3510
3533
|
|
|
@@ -3522,6 +3545,11 @@ class CfnDeliveryStream(
|
|
|
3522
3545
|
destination_table_name="destinationTableName",
|
|
3523
3546
|
|
|
3524
3547
|
# the properties below are optional
|
|
3548
|
+
partition_spec=kinesisfirehose.CfnDeliveryStream.PartitionSpecProperty(
|
|
3549
|
+
identity=[kinesisfirehose.CfnDeliveryStream.PartitionFieldProperty(
|
|
3550
|
+
source_name="sourceName"
|
|
3551
|
+
)]
|
|
3552
|
+
),
|
|
3525
3553
|
s3_error_output_prefix="s3ErrorOutputPrefix",
|
|
3526
3554
|
unique_keys=["uniqueKeys"]
|
|
3527
3555
|
)
|
|
@@ -3530,12 +3558,15 @@ class CfnDeliveryStream(
|
|
|
3530
3558
|
type_hints = typing.get_type_hints(_typecheckingstub__d9e156eb7fa7ea4dde332f5d2ef91909983b4fa7a5b5133510252f637465ea6c)
|
|
3531
3559
|
check_type(argname="argument destination_database_name", value=destination_database_name, expected_type=type_hints["destination_database_name"])
|
|
3532
3560
|
check_type(argname="argument destination_table_name", value=destination_table_name, expected_type=type_hints["destination_table_name"])
|
|
3561
|
+
check_type(argname="argument partition_spec", value=partition_spec, expected_type=type_hints["partition_spec"])
|
|
3533
3562
|
check_type(argname="argument s3_error_output_prefix", value=s3_error_output_prefix, expected_type=type_hints["s3_error_output_prefix"])
|
|
3534
3563
|
check_type(argname="argument unique_keys", value=unique_keys, expected_type=type_hints["unique_keys"])
|
|
3535
3564
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3536
3565
|
"destination_database_name": destination_database_name,
|
|
3537
3566
|
"destination_table_name": destination_table_name,
|
|
3538
3567
|
}
|
|
3568
|
+
if partition_spec is not None:
|
|
3569
|
+
self._values["partition_spec"] = partition_spec
|
|
3539
3570
|
if s3_error_output_prefix is not None:
|
|
3540
3571
|
self._values["s3_error_output_prefix"] = s3_error_output_prefix
|
|
3541
3572
|
if unique_keys is not None:
|
|
@@ -3561,6 +3592,19 @@ class CfnDeliveryStream(
|
|
|
3561
3592
|
assert result is not None, "Required property 'destination_table_name' is missing"
|
|
3562
3593
|
return typing.cast(builtins.str, result)
|
|
3563
3594
|
|
|
3595
|
+
@builtins.property
|
|
3596
|
+
def partition_spec(
|
|
3597
|
+
self,
|
|
3598
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.PartitionSpecProperty"]]:
|
|
3599
|
+
'''The partition spec configuration for a table that is used by automatic table creation.
|
|
3600
|
+
|
|
3601
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
3602
|
+
|
|
3603
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-destinationtableconfiguration.html#cfn-kinesisfirehose-deliverystream-destinationtableconfiguration-partitionspec
|
|
3604
|
+
'''
|
|
3605
|
+
result = self._values.get("partition_spec")
|
|
3606
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.PartitionSpecProperty"]], result)
|
|
3607
|
+
|
|
3564
3608
|
@builtins.property
|
|
3565
3609
|
def s3_error_output_prefix(self) -> typing.Optional[builtins.str]:
|
|
3566
3610
|
'''The table specific S3 error output prefix.
|
|
@@ -5370,6 +5414,8 @@ class CfnDeliveryStream(
|
|
|
5370
5414
|
"processing_configuration": "processingConfiguration",
|
|
5371
5415
|
"retry_options": "retryOptions",
|
|
5372
5416
|
"s3_backup_mode": "s3BackupMode",
|
|
5417
|
+
"schema_evolution_configuration": "schemaEvolutionConfiguration",
|
|
5418
|
+
"table_creation_configuration": "tableCreationConfiguration",
|
|
5373
5419
|
},
|
|
5374
5420
|
)
|
|
5375
5421
|
class IcebergDestinationConfigurationProperty:
|
|
@@ -5386,6 +5432,8 @@ class CfnDeliveryStream(
|
|
|
5386
5432
|
processing_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeliveryStream.ProcessingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5387
5433
|
retry_options: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeliveryStream.RetryOptionsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5388
5434
|
s3_backup_mode: typing.Optional[builtins.str] = None,
|
|
5435
|
+
schema_evolution_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeliveryStream.SchemaEvolutionConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5436
|
+
table_creation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeliveryStream.TableCreationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5389
5437
|
) -> None:
|
|
5390
5438
|
'''Specifies the destination configure settings for Apache Iceberg Table.
|
|
5391
5439
|
|
|
@@ -5399,6 +5447,8 @@ class CfnDeliveryStream(
|
|
|
5399
5447
|
:param processing_configuration:
|
|
5400
5448
|
:param retry_options:
|
|
5401
5449
|
:param s3_backup_mode: Describes how Firehose will backup records. Currently,S3 backup only supports ``FailedDataOnly`` .
|
|
5450
|
+
:param schema_evolution_configuration: The configuration to enable automatic schema evolution. Amazon Data Firehose is in preview release and is subject to change.
|
|
5451
|
+
:param table_creation_configuration: The configuration to enable automatic table creation. Amazon Data Firehose is in preview release and is subject to change.
|
|
5402
5452
|
|
|
5403
5453
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html
|
|
5404
5454
|
:exampleMetadata: fixture=_generated
|
|
@@ -5411,7 +5461,8 @@ class CfnDeliveryStream(
|
|
|
5411
5461
|
|
|
5412
5462
|
iceberg_destination_configuration_property = kinesisfirehose.CfnDeliveryStream.IcebergDestinationConfigurationProperty(
|
|
5413
5463
|
catalog_configuration=kinesisfirehose.CfnDeliveryStream.CatalogConfigurationProperty(
|
|
5414
|
-
catalog_arn="catalogArn"
|
|
5464
|
+
catalog_arn="catalogArn",
|
|
5465
|
+
warehouse_location="warehouseLocation"
|
|
5415
5466
|
),
|
|
5416
5467
|
role_arn="roleArn",
|
|
5417
5468
|
s3_configuration=kinesisfirehose.CfnDeliveryStream.S3DestinationConfigurationProperty(
|
|
@@ -5455,6 +5506,11 @@ class CfnDeliveryStream(
|
|
|
5455
5506
|
destination_table_name="destinationTableName",
|
|
5456
5507
|
|
|
5457
5508
|
# the properties below are optional
|
|
5509
|
+
partition_spec=kinesisfirehose.CfnDeliveryStream.PartitionSpecProperty(
|
|
5510
|
+
identity=[kinesisfirehose.CfnDeliveryStream.PartitionFieldProperty(
|
|
5511
|
+
source_name="sourceName"
|
|
5512
|
+
)]
|
|
5513
|
+
),
|
|
5458
5514
|
s3_error_output_prefix="s3ErrorOutputPrefix",
|
|
5459
5515
|
unique_keys=["uniqueKeys"]
|
|
5460
5516
|
)],
|
|
@@ -5473,7 +5529,13 @@ class CfnDeliveryStream(
|
|
|
5473
5529
|
retry_options=kinesisfirehose.CfnDeliveryStream.RetryOptionsProperty(
|
|
5474
5530
|
duration_in_seconds=123
|
|
5475
5531
|
),
|
|
5476
|
-
s3_backup_mode="s3BackupMode"
|
|
5532
|
+
s3_backup_mode="s3BackupMode",
|
|
5533
|
+
schema_evolution_configuration=kinesisfirehose.CfnDeliveryStream.SchemaEvolutionConfigurationProperty(
|
|
5534
|
+
enabled=False
|
|
5535
|
+
),
|
|
5536
|
+
table_creation_configuration=kinesisfirehose.CfnDeliveryStream.TableCreationConfigurationProperty(
|
|
5537
|
+
enabled=False
|
|
5538
|
+
)
|
|
5477
5539
|
)
|
|
5478
5540
|
'''
|
|
5479
5541
|
if __debug__:
|
|
@@ -5488,6 +5550,8 @@ class CfnDeliveryStream(
|
|
|
5488
5550
|
check_type(argname="argument processing_configuration", value=processing_configuration, expected_type=type_hints["processing_configuration"])
|
|
5489
5551
|
check_type(argname="argument retry_options", value=retry_options, expected_type=type_hints["retry_options"])
|
|
5490
5552
|
check_type(argname="argument s3_backup_mode", value=s3_backup_mode, expected_type=type_hints["s3_backup_mode"])
|
|
5553
|
+
check_type(argname="argument schema_evolution_configuration", value=schema_evolution_configuration, expected_type=type_hints["schema_evolution_configuration"])
|
|
5554
|
+
check_type(argname="argument table_creation_configuration", value=table_creation_configuration, expected_type=type_hints["table_creation_configuration"])
|
|
5491
5555
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5492
5556
|
"catalog_configuration": catalog_configuration,
|
|
5493
5557
|
"role_arn": role_arn,
|
|
@@ -5507,6 +5571,10 @@ class CfnDeliveryStream(
|
|
|
5507
5571
|
self._values["retry_options"] = retry_options
|
|
5508
5572
|
if s3_backup_mode is not None:
|
|
5509
5573
|
self._values["s3_backup_mode"] = s3_backup_mode
|
|
5574
|
+
if schema_evolution_configuration is not None:
|
|
5575
|
+
self._values["schema_evolution_configuration"] = schema_evolution_configuration
|
|
5576
|
+
if table_creation_configuration is not None:
|
|
5577
|
+
self._values["table_creation_configuration"] = table_creation_configuration
|
|
5510
5578
|
|
|
5511
5579
|
@builtins.property
|
|
5512
5580
|
def catalog_configuration(
|
|
@@ -5620,6 +5688,32 @@ class CfnDeliveryStream(
|
|
|
5620
5688
|
result = self._values.get("s3_backup_mode")
|
|
5621
5689
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
5622
5690
|
|
|
5691
|
+
@builtins.property
|
|
5692
|
+
def schema_evolution_configuration(
|
|
5693
|
+
self,
|
|
5694
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.SchemaEvolutionConfigurationProperty"]]:
|
|
5695
|
+
'''The configuration to enable automatic schema evolution.
|
|
5696
|
+
|
|
5697
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
5698
|
+
|
|
5699
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-schemaevolutionconfiguration
|
|
5700
|
+
'''
|
|
5701
|
+
result = self._values.get("schema_evolution_configuration")
|
|
5702
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.SchemaEvolutionConfigurationProperty"]], result)
|
|
5703
|
+
|
|
5704
|
+
@builtins.property
|
|
5705
|
+
def table_creation_configuration(
|
|
5706
|
+
self,
|
|
5707
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.TableCreationConfigurationProperty"]]:
|
|
5708
|
+
'''The configuration to enable automatic table creation.
|
|
5709
|
+
|
|
5710
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
5711
|
+
|
|
5712
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-icebergdestinationconfiguration.html#cfn-kinesisfirehose-deliverystream-icebergdestinationconfiguration-tablecreationconfiguration
|
|
5713
|
+
'''
|
|
5714
|
+
result = self._values.get("table_creation_configuration")
|
|
5715
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.TableCreationConfigurationProperty"]], result)
|
|
5716
|
+
|
|
5623
5717
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5624
5718
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5625
5719
|
|
|
@@ -6514,6 +6608,131 @@ class CfnDeliveryStream(
|
|
|
6514
6608
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
6515
6609
|
)
|
|
6516
6610
|
|
|
6611
|
+
@jsii.data_type(
|
|
6612
|
+
jsii_type="aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.PartitionFieldProperty",
|
|
6613
|
+
jsii_struct_bases=[],
|
|
6614
|
+
name_mapping={"source_name": "sourceName"},
|
|
6615
|
+
)
|
|
6616
|
+
class PartitionFieldProperty:
|
|
6617
|
+
def __init__(self, *, source_name: builtins.str) -> None:
|
|
6618
|
+
'''Represents a single field in a ``PartitionSpec`` .
|
|
6619
|
+
|
|
6620
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
6621
|
+
|
|
6622
|
+
:param source_name: The column name to be configured in partition spec. Amazon Data Firehose is in preview release and is subject to change.
|
|
6623
|
+
|
|
6624
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-partitionfield.html
|
|
6625
|
+
:exampleMetadata: fixture=_generated
|
|
6626
|
+
|
|
6627
|
+
Example::
|
|
6628
|
+
|
|
6629
|
+
# The code below shows an example of how to instantiate this type.
|
|
6630
|
+
# The values are placeholders you should change.
|
|
6631
|
+
from aws_cdk import aws_kinesisfirehose as kinesisfirehose
|
|
6632
|
+
|
|
6633
|
+
partition_field_property = kinesisfirehose.CfnDeliveryStream.PartitionFieldProperty(
|
|
6634
|
+
source_name="sourceName"
|
|
6635
|
+
)
|
|
6636
|
+
'''
|
|
6637
|
+
if __debug__:
|
|
6638
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a839897ef0a46c7170de280f66ed4688ca42be1fcb75c29fba57bc1f602931c1)
|
|
6639
|
+
check_type(argname="argument source_name", value=source_name, expected_type=type_hints["source_name"])
|
|
6640
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
6641
|
+
"source_name": source_name,
|
|
6642
|
+
}
|
|
6643
|
+
|
|
6644
|
+
@builtins.property
|
|
6645
|
+
def source_name(self) -> builtins.str:
|
|
6646
|
+
'''The column name to be configured in partition spec.
|
|
6647
|
+
|
|
6648
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
6649
|
+
|
|
6650
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-partitionfield.html#cfn-kinesisfirehose-deliverystream-partitionfield-sourcename
|
|
6651
|
+
'''
|
|
6652
|
+
result = self._values.get("source_name")
|
|
6653
|
+
assert result is not None, "Required property 'source_name' is missing"
|
|
6654
|
+
return typing.cast(builtins.str, result)
|
|
6655
|
+
|
|
6656
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
6657
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
6658
|
+
|
|
6659
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
6660
|
+
return not (rhs == self)
|
|
6661
|
+
|
|
6662
|
+
def __repr__(self) -> str:
|
|
6663
|
+
return "PartitionFieldProperty(%s)" % ", ".join(
|
|
6664
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
6665
|
+
)
|
|
6666
|
+
|
|
6667
|
+
@jsii.data_type(
|
|
6668
|
+
jsii_type="aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.PartitionSpecProperty",
|
|
6669
|
+
jsii_struct_bases=[],
|
|
6670
|
+
name_mapping={"identity": "identity"},
|
|
6671
|
+
)
|
|
6672
|
+
class PartitionSpecProperty:
|
|
6673
|
+
def __init__(
|
|
6674
|
+
self,
|
|
6675
|
+
*,
|
|
6676
|
+
identity: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDeliveryStream.PartitionFieldProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
6677
|
+
) -> None:
|
|
6678
|
+
'''Represents how to produce partition data for a table.
|
|
6679
|
+
|
|
6680
|
+
Partition data is produced by transforming columns in a table. Each column transform is represented by a named ``PartitionField`` .
|
|
6681
|
+
|
|
6682
|
+
Here is an example of the schema in JSON.
|
|
6683
|
+
|
|
6684
|
+
``"partitionSpec": { "identity": [ {"sourceName": "column1"}, {"sourceName": "column2"}, {"sourceName": "column3"} ] }``
|
|
6685
|
+
|
|
6686
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
6687
|
+
|
|
6688
|
+
:param identity: List of identity `transforms <https://docs.aws.amazon.com/https://iceberg.apache.org/spec/#partition-transforms>`_ that performs an identity transformation. The transform takes the source value, and does not modify it. Result type is the source type. Amazon Data Firehose is in preview release and is subject to change.
|
|
6689
|
+
|
|
6690
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-partitionspec.html
|
|
6691
|
+
:exampleMetadata: fixture=_generated
|
|
6692
|
+
|
|
6693
|
+
Example::
|
|
6694
|
+
|
|
6695
|
+
# The code below shows an example of how to instantiate this type.
|
|
6696
|
+
# The values are placeholders you should change.
|
|
6697
|
+
from aws_cdk import aws_kinesisfirehose as kinesisfirehose
|
|
6698
|
+
|
|
6699
|
+
partition_spec_property = kinesisfirehose.CfnDeliveryStream.PartitionSpecProperty(
|
|
6700
|
+
identity=[kinesisfirehose.CfnDeliveryStream.PartitionFieldProperty(
|
|
6701
|
+
source_name="sourceName"
|
|
6702
|
+
)]
|
|
6703
|
+
)
|
|
6704
|
+
'''
|
|
6705
|
+
if __debug__:
|
|
6706
|
+
type_hints = typing.get_type_hints(_typecheckingstub__605b75f57047594e41cbdfa3a36b644835c149c59b7bc3649d482257f34c89b4)
|
|
6707
|
+
check_type(argname="argument identity", value=identity, expected_type=type_hints["identity"])
|
|
6708
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
6709
|
+
if identity is not None:
|
|
6710
|
+
self._values["identity"] = identity
|
|
6711
|
+
|
|
6712
|
+
@builtins.property
|
|
6713
|
+
def identity(
|
|
6714
|
+
self,
|
|
6715
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.PartitionFieldProperty"]]]]:
|
|
6716
|
+
'''List of identity `transforms <https://docs.aws.amazon.com/https://iceberg.apache.org/spec/#partition-transforms>`_ that performs an identity transformation. The transform takes the source value, and does not modify it. Result type is the source type.
|
|
6717
|
+
|
|
6718
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
6719
|
+
|
|
6720
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-partitionspec.html#cfn-kinesisfirehose-deliverystream-partitionspec-identity
|
|
6721
|
+
'''
|
|
6722
|
+
result = self._values.get("identity")
|
|
6723
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDeliveryStream.PartitionFieldProperty"]]]], result)
|
|
6724
|
+
|
|
6725
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
6726
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
6727
|
+
|
|
6728
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
6729
|
+
return not (rhs == self)
|
|
6730
|
+
|
|
6731
|
+
def __repr__(self) -> str:
|
|
6732
|
+
return "PartitionSpecProperty(%s)" % ", ".join(
|
|
6733
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
6734
|
+
)
|
|
6735
|
+
|
|
6517
6736
|
@jsii.data_type(
|
|
6518
6737
|
jsii_type="aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.ProcessingConfigurationProperty",
|
|
6519
6738
|
jsii_struct_bases=[],
|
|
@@ -7559,6 +7778,67 @@ class CfnDeliveryStream(
|
|
|
7559
7778
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
7560
7779
|
)
|
|
7561
7780
|
|
|
7781
|
+
@jsii.data_type(
|
|
7782
|
+
jsii_type="aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.SchemaEvolutionConfigurationProperty",
|
|
7783
|
+
jsii_struct_bases=[],
|
|
7784
|
+
name_mapping={"enabled": "enabled"},
|
|
7785
|
+
)
|
|
7786
|
+
class SchemaEvolutionConfigurationProperty:
|
|
7787
|
+
def __init__(
|
|
7788
|
+
self,
|
|
7789
|
+
*,
|
|
7790
|
+
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7791
|
+
) -> None:
|
|
7792
|
+
'''The configuration to enable schema evolution.
|
|
7793
|
+
|
|
7794
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
7795
|
+
|
|
7796
|
+
:param enabled: Specify whether you want to enable schema evolution. Amazon Data Firehose is in preview release and is subject to change.
|
|
7797
|
+
|
|
7798
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-schemaevolutionconfiguration.html
|
|
7799
|
+
:exampleMetadata: fixture=_generated
|
|
7800
|
+
|
|
7801
|
+
Example::
|
|
7802
|
+
|
|
7803
|
+
# The code below shows an example of how to instantiate this type.
|
|
7804
|
+
# The values are placeholders you should change.
|
|
7805
|
+
from aws_cdk import aws_kinesisfirehose as kinesisfirehose
|
|
7806
|
+
|
|
7807
|
+
schema_evolution_configuration_property = kinesisfirehose.CfnDeliveryStream.SchemaEvolutionConfigurationProperty(
|
|
7808
|
+
enabled=False
|
|
7809
|
+
)
|
|
7810
|
+
'''
|
|
7811
|
+
if __debug__:
|
|
7812
|
+
type_hints = typing.get_type_hints(_typecheckingstub__42267f168762343c22cce7785e160c133f9c7e7a8f4cb3e0888c940a1c3cb61d)
|
|
7813
|
+
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
7814
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
7815
|
+
if enabled is not None:
|
|
7816
|
+
self._values["enabled"] = enabled
|
|
7817
|
+
|
|
7818
|
+
@builtins.property
|
|
7819
|
+
def enabled(
|
|
7820
|
+
self,
|
|
7821
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
7822
|
+
'''Specify whether you want to enable schema evolution.
|
|
7823
|
+
|
|
7824
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
7825
|
+
|
|
7826
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-schemaevolutionconfiguration.html#cfn-kinesisfirehose-deliverystream-schemaevolutionconfiguration-enabled
|
|
7827
|
+
'''
|
|
7828
|
+
result = self._values.get("enabled")
|
|
7829
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
7830
|
+
|
|
7831
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
7832
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
7833
|
+
|
|
7834
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
7835
|
+
return not (rhs == self)
|
|
7836
|
+
|
|
7837
|
+
def __repr__(self) -> str:
|
|
7838
|
+
return "SchemaEvolutionConfigurationProperty(%s)" % ", ".join(
|
|
7839
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
7840
|
+
)
|
|
7841
|
+
|
|
7562
7842
|
@jsii.data_type(
|
|
7563
7843
|
jsii_type="aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty",
|
|
7564
7844
|
jsii_struct_bases=[],
|
|
@@ -8897,6 +9177,67 @@ class CfnDeliveryStream(
|
|
|
8897
9177
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
8898
9178
|
)
|
|
8899
9179
|
|
|
9180
|
+
@jsii.data_type(
|
|
9181
|
+
jsii_type="aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.TableCreationConfigurationProperty",
|
|
9182
|
+
jsii_struct_bases=[],
|
|
9183
|
+
name_mapping={"enabled": "enabled"},
|
|
9184
|
+
)
|
|
9185
|
+
class TableCreationConfigurationProperty:
|
|
9186
|
+
def __init__(
|
|
9187
|
+
self,
|
|
9188
|
+
*,
|
|
9189
|
+
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
9190
|
+
) -> None:
|
|
9191
|
+
'''The configuration to enable automatic table creation.
|
|
9192
|
+
|
|
9193
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
9194
|
+
|
|
9195
|
+
:param enabled: Specify whether you want to enable automatic table creation. Amazon Data Firehose is in preview release and is subject to change.
|
|
9196
|
+
|
|
9197
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-tablecreationconfiguration.html
|
|
9198
|
+
:exampleMetadata: fixture=_generated
|
|
9199
|
+
|
|
9200
|
+
Example::
|
|
9201
|
+
|
|
9202
|
+
# The code below shows an example of how to instantiate this type.
|
|
9203
|
+
# The values are placeholders you should change.
|
|
9204
|
+
from aws_cdk import aws_kinesisfirehose as kinesisfirehose
|
|
9205
|
+
|
|
9206
|
+
table_creation_configuration_property = kinesisfirehose.CfnDeliveryStream.TableCreationConfigurationProperty(
|
|
9207
|
+
enabled=False
|
|
9208
|
+
)
|
|
9209
|
+
'''
|
|
9210
|
+
if __debug__:
|
|
9211
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ac9314efc3754736d60b5e8780b56333aa2816ec35cd3e5ede526a3656454369)
|
|
9212
|
+
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
9213
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
9214
|
+
if enabled is not None:
|
|
9215
|
+
self._values["enabled"] = enabled
|
|
9216
|
+
|
|
9217
|
+
@builtins.property
|
|
9218
|
+
def enabled(
|
|
9219
|
+
self,
|
|
9220
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
9221
|
+
'''Specify whether you want to enable automatic table creation.
|
|
9222
|
+
|
|
9223
|
+
Amazon Data Firehose is in preview release and is subject to change.
|
|
9224
|
+
|
|
9225
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-tablecreationconfiguration.html#cfn-kinesisfirehose-deliverystream-tablecreationconfiguration-enabled
|
|
9226
|
+
'''
|
|
9227
|
+
result = self._values.get("enabled")
|
|
9228
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
9229
|
+
|
|
9230
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9231
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9232
|
+
|
|
9233
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
9234
|
+
return not (rhs == self)
|
|
9235
|
+
|
|
9236
|
+
def __repr__(self) -> str:
|
|
9237
|
+
return "TableCreationConfigurationProperty(%s)" % ", ".join(
|
|
9238
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
9239
|
+
)
|
|
9240
|
+
|
|
8900
9241
|
@jsii.data_type(
|
|
8901
9242
|
jsii_type="aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream.VpcConfigurationProperty",
|
|
8902
9243
|
jsii_struct_bases=[],
|
|
@@ -13041,6 +13382,7 @@ def _typecheckingstub__c672d0753e4b959e46f98cc809bc2380cd7be551cc9bab6f1b7baa1d2
|
|
|
13041
13382
|
def _typecheckingstub__92b3c1717fb66856049eddd62f0c12dbf945ae8d9450b716e7d065a04359aee0(
|
|
13042
13383
|
*,
|
|
13043
13384
|
catalog_arn: typing.Optional[builtins.str] = None,
|
|
13385
|
+
warehouse_location: typing.Optional[builtins.str] = None,
|
|
13044
13386
|
) -> None:
|
|
13045
13387
|
"""Type checking stubs"""
|
|
13046
13388
|
pass
|
|
@@ -13150,6 +13492,7 @@ def _typecheckingstub__d9e156eb7fa7ea4dde332f5d2ef91909983b4fa7a5b5133510252f637
|
|
|
13150
13492
|
*,
|
|
13151
13493
|
destination_database_name: builtins.str,
|
|
13152
13494
|
destination_table_name: builtins.str,
|
|
13495
|
+
partition_spec: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeliveryStream.PartitionSpecProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13153
13496
|
s3_error_output_prefix: typing.Optional[builtins.str] = None,
|
|
13154
13497
|
unique_keys: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
13155
13498
|
) -> None:
|
|
@@ -13302,6 +13645,8 @@ def _typecheckingstub__7cc5b65e233b52b72b153275ce8ced9f593e3385051386bed6920a574
|
|
|
13302
13645
|
processing_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeliveryStream.ProcessingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13303
13646
|
retry_options: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeliveryStream.RetryOptionsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13304
13647
|
s3_backup_mode: typing.Optional[builtins.str] = None,
|
|
13648
|
+
schema_evolution_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeliveryStream.SchemaEvolutionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13649
|
+
table_creation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeliveryStream.TableCreationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13305
13650
|
) -> None:
|
|
13306
13651
|
"""Type checking stubs"""
|
|
13307
13652
|
pass
|
|
@@ -13382,6 +13727,20 @@ def _typecheckingstub__d5e42046b59e857630ade1e52237b3f99ec5d3fcea0cff6ee85255354
|
|
|
13382
13727
|
"""Type checking stubs"""
|
|
13383
13728
|
pass
|
|
13384
13729
|
|
|
13730
|
+
def _typecheckingstub__a839897ef0a46c7170de280f66ed4688ca42be1fcb75c29fba57bc1f602931c1(
|
|
13731
|
+
*,
|
|
13732
|
+
source_name: builtins.str,
|
|
13733
|
+
) -> None:
|
|
13734
|
+
"""Type checking stubs"""
|
|
13735
|
+
pass
|
|
13736
|
+
|
|
13737
|
+
def _typecheckingstub__605b75f57047594e41cbdfa3a36b644835c149c59b7bc3649d482257f34c89b4(
|
|
13738
|
+
*,
|
|
13739
|
+
identity: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDeliveryStream.PartitionFieldProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
13740
|
+
) -> None:
|
|
13741
|
+
"""Type checking stubs"""
|
|
13742
|
+
pass
|
|
13743
|
+
|
|
13385
13744
|
def _typecheckingstub__47d08fb3fe02427fce54795dba1288ad02d1fec20884867948eae460f986d43d(
|
|
13386
13745
|
*,
|
|
13387
13746
|
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
@@ -13464,6 +13823,13 @@ def _typecheckingstub__c1389c57283b687c62069951b51187332947eeb24f5fcb8781af71c2b
|
|
|
13464
13823
|
"""Type checking stubs"""
|
|
13465
13824
|
pass
|
|
13466
13825
|
|
|
13826
|
+
def _typecheckingstub__42267f168762343c22cce7785e160c133f9c7e7a8f4cb3e0888c940a1c3cb61d(
|
|
13827
|
+
*,
|
|
13828
|
+
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
13829
|
+
) -> None:
|
|
13830
|
+
"""Type checking stubs"""
|
|
13831
|
+
pass
|
|
13832
|
+
|
|
13467
13833
|
def _typecheckingstub__b935af4b7f540cbb6b063a9c37a906eaf8c3ed8781b19ea32e1836ca909b3dac(
|
|
13468
13834
|
*,
|
|
13469
13835
|
enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
@@ -13569,6 +13935,13 @@ def _typecheckingstub__5c5cbe7244c68f12454d07974a4cae50f1d208afdbc3a96f1e2ada11e
|
|
|
13569
13935
|
"""Type checking stubs"""
|
|
13570
13936
|
pass
|
|
13571
13937
|
|
|
13938
|
+
def _typecheckingstub__ac9314efc3754736d60b5e8780b56333aa2816ec35cd3e5ede526a3656454369(
|
|
13939
|
+
*,
|
|
13940
|
+
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
13941
|
+
) -> None:
|
|
13942
|
+
"""Type checking stubs"""
|
|
13943
|
+
pass
|
|
13944
|
+
|
|
13572
13945
|
def _typecheckingstub__3ecd7f59955db0312a31e14fafedff3746c1d169b6a24f2985f6a096a09db25a(
|
|
13573
13946
|
*,
|
|
13574
13947
|
role_arn: builtins.str,
|
aws_cdk/aws_kms/__init__.py
CHANGED
|
@@ -2751,29 +2751,31 @@ class KeyProps:
|
|
|
2751
2751
|
:param removal_policy: Whether the encryption key should be retained when it is removed from the Stack. This is useful when one wants to retain access to data that was encrypted with a key that is being retired. Default: RemovalPolicy.Retain
|
|
2752
2752
|
:param rotation_period: The period between each automatic rotation. Default: - set by CFN to 365 days.
|
|
2753
2753
|
|
|
2754
|
-
:exampleMetadata: infused
|
|
2754
|
+
:exampleMetadata: fixture=default infused
|
|
2755
2755
|
|
|
2756
2756
|
Example::
|
|
2757
2757
|
|
|
2758
|
-
|
|
2759
|
-
|
|
2758
|
+
cmk = kms.Key(self, "cmk")
|
|
2759
|
+
claude_model = bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_SONNET_V1_0
|
|
2760
2760
|
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2761
|
+
variant1 = bedrock.PromptVariant.text(
|
|
2762
|
+
variant_name="variant1",
|
|
2763
|
+
model=claude_model,
|
|
2764
|
+
prompt_variables=["topic"],
|
|
2765
|
+
prompt_text="This is my first text prompt. Please summarize our conversation on: {{topic}}.",
|
|
2766
|
+
inference_configuration=bedrock.PromptInferenceConfiguration.text(
|
|
2767
|
+
temperature=1,
|
|
2768
|
+
top_p=0.999,
|
|
2769
|
+
max_tokens=2000
|
|
2770
|
+
)
|
|
2765
2771
|
)
|
|
2766
2772
|
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
)
|
|
2774
|
-
deploy_stage = pipeline.add_stage(
|
|
2775
|
-
stage_name="Deploy",
|
|
2776
|
-
actions=[deploy_action]
|
|
2773
|
+
prompt1 = bedrock.Prompt(self, "prompt1",
|
|
2774
|
+
prompt_name="prompt1",
|
|
2775
|
+
description="my first prompt",
|
|
2776
|
+
default_variant=variant1,
|
|
2777
|
+
variants=[variant1],
|
|
2778
|
+
kms_key=cmk
|
|
2777
2779
|
)
|
|
2778
2780
|
'''
|
|
2779
2781
|
if __debug__:
|