aws-cdk-lib 2.203.1__py3-none-any.whl → 2.205.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 +208 -92
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.203.1.jsii.tgz → aws-cdk-lib@2.205.0.jsii.tgz} +0 -0
- aws_cdk/aws_aiops/__init__.py +89 -39
- aws_cdk/aws_apigateway/__init__.py +164 -0
- aws_cdk/aws_apigatewayv2/__init__.py +412 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +2 -2
- aws_cdk/aws_arczonalshift/__init__.py +4 -1
- aws_cdk/aws_b2bi/__init__.py +32 -16
- aws_cdk/aws_bedrock/__init__.py +198 -10
- aws_cdk/aws_cassandra/__init__.py +156 -0
- aws_cdk/aws_certificatemanager/__init__.py +28 -0
- aws_cdk/aws_chatbot/__init__.py +28 -0
- aws_cdk/aws_cloudformation/__init__.py +74 -72
- aws_cdk/aws_cloudfront/__init__.py +1273 -485
- aws_cdk/aws_cloudfront/experimental/__init__.py +32 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +26 -21
- aws_cdk/aws_cloudwatch/__init__.py +278 -23
- aws_cdk/aws_codebuild/__init__.py +300 -36
- aws_cdk/aws_datasync/__init__.py +2 -2
- aws_cdk/aws_docdb/__init__.py +78 -0
- aws_cdk/aws_dynamodb/__init__.py +523 -37
- aws_cdk/aws_ec2/__init__.py +126 -30
- aws_cdk/aws_ecs/__init__.py +64 -19
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +724 -0
- aws_cdk/aws_elasticsearch/__init__.py +260 -0
- aws_cdk/aws_emrserverless/__init__.py +5 -5
- aws_cdk/aws_events/__init__.py +58 -3
- aws_cdk/aws_events_targets/__init__.py +7 -2
- aws_cdk/aws_evs/__init__.py +7 -7
- aws_cdk/aws_fsx/__init__.py +138 -78
- aws_cdk/aws_gamelift/__init__.py +19 -0
- aws_cdk/aws_glue/__init__.py +3 -3
- aws_cdk/aws_iot/__init__.py +1 -1
- aws_cdk/aws_kinesis/__init__.py +391 -13
- aws_cdk/aws_kinesisfirehose/__init__.py +128 -1
- aws_cdk/aws_lambda/__init__.py +144 -0
- aws_cdk/aws_lex/__init__.py +36 -19
- aws_cdk/aws_logs/__init__.py +58 -0
- aws_cdk/aws_neptune/__init__.py +12 -12
- aws_cdk/aws_odb/__init__.py +4049 -0
- aws_cdk/aws_omics/__init__.py +1 -1
- aws_cdk/aws_opensearchservice/__init__.py +260 -0
- aws_cdk/aws_qbusiness/__init__.py +471 -4
- aws_cdk/aws_quicksight/__init__.py +185 -16
- aws_cdk/aws_rds/__init__.py +553 -17
- aws_cdk/aws_redshiftserverless/__init__.py +72 -45
- aws_cdk/aws_route53/__init__.py +41 -19
- aws_cdk/aws_s3tables/__init__.py +1005 -0
- aws_cdk/aws_sagemaker/__init__.py +20 -0
- aws_cdk/aws_scheduler/__init__.py +210 -0
- aws_cdk/aws_sns/__init__.py +164 -0
- aws_cdk/aws_sqs/__init__.py +164 -0
- aws_cdk/aws_stepfunctions/__init__.py +288 -0
- aws_cdk/aws_synthetics/__init__.py +159 -37
- aws_cdk/aws_transfer/__init__.py +23 -1
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/RECORD +62 -61
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/top_level.txt +0 -0
|
@@ -6241,7 +6241,7 @@ class ScalingInterval:
|
|
|
6241
6241
|
'''A range of metric values in which to apply a certain scaling operation.
|
|
6242
6242
|
|
|
6243
6243
|
:param change: The capacity adjustment to apply in this interval. The number is interpreted differently based on AdjustmentType: - ChangeInCapacity: add the adjustment to the current capacity. The number can be positive or negative. - PercentChangeInCapacity: add or remove the given percentage of the current capacity to itself. The number can be in the range [-100..100]. - ExactCapacity: set the capacity to this number. The number must be positive.
|
|
6244
|
-
:param lower: The lower bound of the interval. The scaling adjustment will be applied if the metric is higher than this value. Default: Threshold automatically derived from neighbouring intervals
|
|
6244
|
+
:param lower: The lower bound of the interval. The scaling adjustment will be applied if the metric is higher than or equal this value. Default: Threshold automatically derived from neighbouring intervals
|
|
6245
6245
|
:param upper: The upper bound of the interval. The scaling adjustment will be applied if the metric is lower than this value. Default: Threshold automatically derived from neighbouring intervals
|
|
6246
6246
|
|
|
6247
6247
|
:exampleMetadata: fixture=_generated
|
|
@@ -6294,7 +6294,7 @@ class ScalingInterval:
|
|
|
6294
6294
|
def lower(self) -> typing.Optional[jsii.Number]:
|
|
6295
6295
|
'''The lower bound of the interval.
|
|
6296
6296
|
|
|
6297
|
-
The scaling adjustment will be applied if the metric is higher than this value.
|
|
6297
|
+
The scaling adjustment will be applied if the metric is higher than or equal this value.
|
|
6298
6298
|
|
|
6299
6299
|
:default: Threshold automatically derived from neighbouring intervals
|
|
6300
6300
|
'''
|
|
@@ -494,7 +494,7 @@ class CfnZonalAutoshiftConfiguration(
|
|
|
494
494
|
|
|
495
495
|
:param outcome_alarms: The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into an ``ALARM`` state, the practice run is ended and the outcome is set to ``FAILED`` .
|
|
496
496
|
:param blocked_dates: An array of one or more dates that you can specify when AWS does not start practice runs for a resource. Dates are in UTC. Specify blocked dates in the format ``YYYY-MM-DD`` , separated by spaces.
|
|
497
|
-
:param blocked_windows: An array of one or more days and times that you can specify when ARC does not start practice runs for a resource. Days and times are in UTC. Specify blocked windows in the format ``DAY:HH:MM-DAY:HH:MM`` , separated by spaces. For example, ``MON:18:30-MON:19:30 TUE:18:30-TUE:19:30`` .
|
|
497
|
+
:param blocked_windows: An array of one or more days and times that you can specify when ARC does not start practice runs for a resource. Days and times are in UTC. Specify blocked windows in the format ``DAY:HH:MM-DAY:HH:MM`` , separated by spaces. For example, ``MON:18:30-MON:19:30 TUE:18:30-TUE:19:30`` . .. epigraph:: Blocked windows have to start and end on the same day. Windows that span multiple days aren't supported.
|
|
498
498
|
:param blocking_alarms: An optional alarm that you can specify that blocks practice runs when the alarm is in an ``ALARM`` state. When a blocking alarm goes into an ``ALARM`` state, it prevents practice runs from being started, and ends practice runs that are in progress.
|
|
499
499
|
|
|
500
500
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-arczonalshift-zonalautoshiftconfiguration-practicerunconfiguration.html
|
|
@@ -571,6 +571,9 @@ class CfnZonalAutoshiftConfiguration(
|
|
|
571
571
|
Days and times are in UTC.
|
|
572
572
|
|
|
573
573
|
Specify blocked windows in the format ``DAY:HH:MM-DAY:HH:MM`` , separated by spaces. For example, ``MON:18:30-MON:19:30 TUE:18:30-TUE:19:30`` .
|
|
574
|
+
.. epigraph::
|
|
575
|
+
|
|
576
|
+
Blocked windows have to start and end on the same day. Windows that span multiple days aren't supported.
|
|
574
577
|
|
|
575
578
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-arczonalshift-zonalautoshiftconfiguration-practicerunconfiguration.html#cfn-arczonalshift-zonalautoshiftconfiguration-practicerunconfiguration-blockedwindows
|
|
576
579
|
'''
|
aws_cdk/aws_b2bi/__init__.py
CHANGED
|
@@ -1009,11 +1009,11 @@ class CfnPartnership(
|
|
|
1009
1009
|
:param scope: Scope in which this resource is defined.
|
|
1010
1010
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
1011
1011
|
:param capabilities: Returns one or more capabilities associated with this partnership.
|
|
1012
|
-
:param email:
|
|
1012
|
+
:param email: Specifies the email address associated with this trading partner.
|
|
1013
1013
|
:param name: Returns the name of the partnership.
|
|
1014
1014
|
:param profile_id: Returns the unique, system-generated identifier for the profile connected to this partnership.
|
|
1015
1015
|
:param capability_options: Contains the details for an Outbound EDI capability.
|
|
1016
|
-
:param phone:
|
|
1016
|
+
:param phone: Specifies the phone number associated with the partnership.
|
|
1017
1017
|
:param tags: A key-value pair for a specific partnership. Tags are metadata that you can use to search for and group capabilities for various purposes.
|
|
1018
1018
|
'''
|
|
1019
1019
|
if __debug__:
|
|
@@ -1134,6 +1134,7 @@ class CfnPartnership(
|
|
|
1134
1134
|
@builtins.property
|
|
1135
1135
|
@jsii.member(jsii_name="email")
|
|
1136
1136
|
def email(self) -> builtins.str:
|
|
1137
|
+
'''Specifies the email address associated with this trading partner.'''
|
|
1137
1138
|
return typing.cast(builtins.str, jsii.get(self, "email"))
|
|
1138
1139
|
|
|
1139
1140
|
@email.setter
|
|
@@ -1190,6 +1191,7 @@ class CfnPartnership(
|
|
|
1190
1191
|
@builtins.property
|
|
1191
1192
|
@jsii.member(jsii_name="phone")
|
|
1192
1193
|
def phone(self) -> typing.Optional[builtins.str]:
|
|
1194
|
+
'''Specifies the phone number associated with the partnership.'''
|
|
1193
1195
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "phone"))
|
|
1194
1196
|
|
|
1195
1197
|
@phone.setter
|
|
@@ -1226,7 +1228,7 @@ class CfnPartnership(
|
|
|
1226
1228
|
) -> None:
|
|
1227
1229
|
'''Contains the details for an Outbound EDI capability.
|
|
1228
1230
|
|
|
1229
|
-
:param inbound_edi:
|
|
1231
|
+
:param inbound_edi: A structure that contains the inbound EDI options for the capability.
|
|
1230
1232
|
:param outbound_edi: A structure that contains the outbound EDI options.
|
|
1231
1233
|
|
|
1232
1234
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-capabilityoptions.html
|
|
@@ -1300,7 +1302,8 @@ class CfnPartnership(
|
|
|
1300
1302
|
def inbound_edi(
|
|
1301
1303
|
self,
|
|
1302
1304
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPartnership.InboundEdiOptionsProperty"]]:
|
|
1303
|
-
'''
|
|
1305
|
+
'''A structure that contains the inbound EDI options for the capability.
|
|
1306
|
+
|
|
1304
1307
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-capabilityoptions.html#cfn-b2bi-partnership-capabilityoptions-inboundedi
|
|
1305
1308
|
'''
|
|
1306
1309
|
result = self._values.get("inbound_edi")
|
|
@@ -1339,8 +1342,11 @@ class CfnPartnership(
|
|
|
1339
1342
|
*,
|
|
1340
1343
|
x12: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPartnership.X12InboundEdiOptionsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1341
1344
|
) -> None:
|
|
1342
|
-
'''
|
|
1343
|
-
|
|
1345
|
+
'''Contains options for processing inbound EDI files.
|
|
1346
|
+
|
|
1347
|
+
These options allow for customizing how incoming EDI documents are processed.
|
|
1348
|
+
|
|
1349
|
+
:param x12: A structure that contains X12-specific options for processing inbound X12 EDI files.
|
|
1344
1350
|
|
|
1345
1351
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-inboundedioptions.html
|
|
1346
1352
|
:exampleMetadata: fixture=_generated
|
|
@@ -1371,7 +1377,8 @@ class CfnPartnership(
|
|
|
1371
1377
|
def x12(
|
|
1372
1378
|
self,
|
|
1373
1379
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPartnership.X12InboundEdiOptionsProperty"]]:
|
|
1374
|
-
'''
|
|
1380
|
+
'''A structure that contains X12-specific options for processing inbound X12 EDI files.
|
|
1381
|
+
|
|
1375
1382
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-inboundedioptions.html#cfn-b2bi-partnership-inboundedioptions-x12
|
|
1376
1383
|
'''
|
|
1377
1384
|
result = self._values.get("x12")
|
|
@@ -2016,8 +2023,9 @@ class CfnPartnership(
|
|
|
2016
2023
|
*,
|
|
2017
2024
|
acknowledgment_options: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPartnership.X12AcknowledgmentOptionsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2018
2025
|
) -> None:
|
|
2019
|
-
'''
|
|
2020
|
-
|
|
2026
|
+
'''Contains options specific to processing inbound X12 EDI files.
|
|
2027
|
+
|
|
2028
|
+
:param acknowledgment_options: Specifies acknowledgment options for inbound X12 EDI files. These options control how functional and technical acknowledgments are handled.
|
|
2021
2029
|
|
|
2022
2030
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12inboundedioptions.html
|
|
2023
2031
|
:exampleMetadata: fixture=_generated
|
|
@@ -2046,7 +2054,10 @@ class CfnPartnership(
|
|
|
2046
2054
|
def acknowledgment_options(
|
|
2047
2055
|
self,
|
|
2048
2056
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPartnership.X12AcknowledgmentOptionsProperty"]]:
|
|
2049
|
-
'''
|
|
2057
|
+
'''Specifies acknowledgment options for inbound X12 EDI files.
|
|
2058
|
+
|
|
2059
|
+
These options control how functional and technical acknowledgments are handled.
|
|
2060
|
+
|
|
2050
2061
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12inboundedioptions.html#cfn-b2bi-partnership-x12inboundedioptions-acknowledgmentoptions
|
|
2051
2062
|
'''
|
|
2052
2063
|
result = self._values.get("acknowledgment_options")
|
|
@@ -2233,7 +2244,7 @@ class CfnPartnership(
|
|
|
2233
2244
|
) -> None:
|
|
2234
2245
|
'''A structure containing the details for an outbound EDI object.
|
|
2235
2246
|
|
|
2236
|
-
:param control_numbers:
|
|
2247
|
+
:param control_numbers: Specifies control number configuration for outbound X12 EDI headers. These settings determine the starting values for interchange, functional group, and transaction set control numbers.
|
|
2237
2248
|
:param delimiters: The delimiters, for example semicolon ( ``;`` ), that separates sections of the headers for the X12 object.
|
|
2238
2249
|
:param functional_group_headers: The functional group headers for the X12 object.
|
|
2239
2250
|
:param gs05_time_format:
|
|
@@ -2304,7 +2315,10 @@ class CfnPartnership(
|
|
|
2304
2315
|
def control_numbers(
|
|
2305
2316
|
self,
|
|
2306
2317
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPartnership.X12ControlNumbersProperty"]]:
|
|
2307
|
-
'''
|
|
2318
|
+
'''Specifies control number configuration for outbound X12 EDI headers.
|
|
2319
|
+
|
|
2320
|
+
These settings determine the starting values for interchange, functional group, and transaction set control numbers.
|
|
2321
|
+
|
|
2308
2322
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-partnership-x12outboundediheaders.html#cfn-b2bi-partnership-x12outboundediheaders-controlnumbers
|
|
2309
2323
|
'''
|
|
2310
2324
|
result = self._values.get("control_numbers")
|
|
@@ -2402,11 +2416,11 @@ class CfnPartnershipProps:
|
|
|
2402
2416
|
'''Properties for defining a ``CfnPartnership``.
|
|
2403
2417
|
|
|
2404
2418
|
:param capabilities: Returns one or more capabilities associated with this partnership.
|
|
2405
|
-
:param email:
|
|
2419
|
+
:param email: Specifies the email address associated with this trading partner.
|
|
2406
2420
|
:param name: Returns the name of the partnership.
|
|
2407
2421
|
:param profile_id: Returns the unique, system-generated identifier for the profile connected to this partnership.
|
|
2408
2422
|
:param capability_options: Contains the details for an Outbound EDI capability.
|
|
2409
|
-
:param phone:
|
|
2423
|
+
:param phone: Specifies the phone number associated with the partnership.
|
|
2410
2424
|
:param tags: A key-value pair for a specific partnership. Tags are metadata that you can use to search for and group capabilities for various purposes.
|
|
2411
2425
|
|
|
2412
2426
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-partnership.html
|
|
@@ -2513,7 +2527,8 @@ class CfnPartnershipProps:
|
|
|
2513
2527
|
|
|
2514
2528
|
@builtins.property
|
|
2515
2529
|
def email(self) -> builtins.str:
|
|
2516
|
-
'''
|
|
2530
|
+
'''Specifies the email address associated with this trading partner.
|
|
2531
|
+
|
|
2517
2532
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-partnership.html#cfn-b2bi-partnership-email
|
|
2518
2533
|
'''
|
|
2519
2534
|
result = self._values.get("email")
|
|
@@ -2553,7 +2568,8 @@ class CfnPartnershipProps:
|
|
|
2553
2568
|
|
|
2554
2569
|
@builtins.property
|
|
2555
2570
|
def phone(self) -> typing.Optional[builtins.str]:
|
|
2556
|
-
'''
|
|
2571
|
+
'''Specifies the phone number associated with the partnership.
|
|
2572
|
+
|
|
2557
2573
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-b2bi-partnership.html#cfn-b2bi-partnership-phone
|
|
2558
2574
|
'''
|
|
2559
2575
|
result = self._values.get("phone")
|
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -9956,7 +9956,7 @@ class CfnDataSource(
|
|
|
9956
9956
|
|
|
9957
9957
|
:param bucket_arn: The Amazon Resource Name (ARN) of the S3 bucket that contains your data.
|
|
9958
9958
|
:param bucket_owner_account_id: The account ID for the owner of the S3 bucket.
|
|
9959
|
-
:param inclusion_prefixes: A list of S3 prefixes to include certain files or content. For more information, see `Organizing objects using prefixes <https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html>`_ .
|
|
9959
|
+
:param inclusion_prefixes: A list of S3 prefixes to include certain files or content. This field is an array with a maximum of one item, which can contain a string that has a maximum length of 300 characters. For more information, see `Organizing objects using prefixes <https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html>`_ .
|
|
9960
9960
|
|
|
9961
9961
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html
|
|
9962
9962
|
:exampleMetadata: fixture=_generated
|
|
@@ -10011,7 +10011,7 @@ class CfnDataSource(
|
|
|
10011
10011
|
def inclusion_prefixes(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
10012
10012
|
'''A list of S3 prefixes to include certain files or content.
|
|
10013
10013
|
|
|
10014
|
-
For more information, see `Organizing objects using prefixes <https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html>`_ .
|
|
10014
|
+
This field is an array with a maximum of one item, which can contain a string that has a maximum length of 300 characters. For more information, see `Organizing objects using prefixes <https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html>`_ .
|
|
10015
10015
|
|
|
10016
10016
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3datasourceconfiguration.html#cfn-bedrock-datasource-s3datasourceconfiguration-inclusionprefixes
|
|
10017
10017
|
'''
|
|
@@ -23213,7 +23213,12 @@ class CfnGuardrail(
|
|
|
23213
23213
|
output_action="outputAction",
|
|
23214
23214
|
output_enabled=False,
|
|
23215
23215
|
output_modalities=["outputModalities"]
|
|
23216
|
-
)]
|
|
23216
|
+
)],
|
|
23217
|
+
|
|
23218
|
+
# the properties below are optional
|
|
23219
|
+
content_filters_tier_config=bedrock.CfnGuardrail.ContentFiltersTierConfigProperty(
|
|
23220
|
+
tier_name="tierName"
|
|
23221
|
+
)
|
|
23217
23222
|
),
|
|
23218
23223
|
contextual_grounding_policy_config=bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty(
|
|
23219
23224
|
filters_config=[bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty(
|
|
@@ -23270,7 +23275,12 @@ class CfnGuardrail(
|
|
|
23270
23275
|
input_enabled=False,
|
|
23271
23276
|
output_action="outputAction",
|
|
23272
23277
|
output_enabled=False
|
|
23273
|
-
)]
|
|
23278
|
+
)],
|
|
23279
|
+
|
|
23280
|
+
# the properties below are optional
|
|
23281
|
+
topics_tier_config=bedrock.CfnGuardrail.TopicsTierConfigProperty(
|
|
23282
|
+
tier_name="tierName"
|
|
23283
|
+
)
|
|
23274
23284
|
),
|
|
23275
23285
|
word_policy_config=bedrock.CfnGuardrail.WordPolicyConfigProperty(
|
|
23276
23286
|
managed_word_lists_config=[bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
@@ -23858,20 +23868,77 @@ class CfnGuardrail(
|
|
|
23858
23868
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
23859
23869
|
)
|
|
23860
23870
|
|
|
23871
|
+
@jsii.data_type(
|
|
23872
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ContentFiltersTierConfigProperty",
|
|
23873
|
+
jsii_struct_bases=[],
|
|
23874
|
+
name_mapping={"tier_name": "tierName"},
|
|
23875
|
+
)
|
|
23876
|
+
class ContentFiltersTierConfigProperty:
|
|
23877
|
+
def __init__(self, *, tier_name: builtins.str) -> None:
|
|
23878
|
+
'''Guardrail tier config for content policy.
|
|
23879
|
+
|
|
23880
|
+
:param tier_name: Tier name for tier configuration in content filters policy.
|
|
23881
|
+
|
|
23882
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterstierconfig.html
|
|
23883
|
+
:exampleMetadata: fixture=_generated
|
|
23884
|
+
|
|
23885
|
+
Example::
|
|
23886
|
+
|
|
23887
|
+
# The code below shows an example of how to instantiate this type.
|
|
23888
|
+
# The values are placeholders you should change.
|
|
23889
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
23890
|
+
|
|
23891
|
+
content_filters_tier_config_property = bedrock.CfnGuardrail.ContentFiltersTierConfigProperty(
|
|
23892
|
+
tier_name="tierName"
|
|
23893
|
+
)
|
|
23894
|
+
'''
|
|
23895
|
+
if __debug__:
|
|
23896
|
+
type_hints = typing.get_type_hints(_typecheckingstub__41fd4ea54ea6af8c3dab6d3870ca7f484ac15185331f9fe5dc1ae49db7fe3954)
|
|
23897
|
+
check_type(argname="argument tier_name", value=tier_name, expected_type=type_hints["tier_name"])
|
|
23898
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23899
|
+
"tier_name": tier_name,
|
|
23900
|
+
}
|
|
23901
|
+
|
|
23902
|
+
@builtins.property
|
|
23903
|
+
def tier_name(self) -> builtins.str:
|
|
23904
|
+
'''Tier name for tier configuration in content filters policy.
|
|
23905
|
+
|
|
23906
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterstierconfig.html#cfn-bedrock-guardrail-contentfilterstierconfig-tiername
|
|
23907
|
+
'''
|
|
23908
|
+
result = self._values.get("tier_name")
|
|
23909
|
+
assert result is not None, "Required property 'tier_name' is missing"
|
|
23910
|
+
return typing.cast(builtins.str, result)
|
|
23911
|
+
|
|
23912
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
23913
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
23914
|
+
|
|
23915
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
23916
|
+
return not (rhs == self)
|
|
23917
|
+
|
|
23918
|
+
def __repr__(self) -> str:
|
|
23919
|
+
return "ContentFiltersTierConfigProperty(%s)" % ", ".join(
|
|
23920
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
23921
|
+
)
|
|
23922
|
+
|
|
23861
23923
|
@jsii.data_type(
|
|
23862
23924
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.ContentPolicyConfigProperty",
|
|
23863
23925
|
jsii_struct_bases=[],
|
|
23864
|
-
name_mapping={
|
|
23926
|
+
name_mapping={
|
|
23927
|
+
"filters_config": "filtersConfig",
|
|
23928
|
+
"content_filters_tier_config": "contentFiltersTierConfig",
|
|
23929
|
+
},
|
|
23865
23930
|
)
|
|
23866
23931
|
class ContentPolicyConfigProperty:
|
|
23867
23932
|
def __init__(
|
|
23868
23933
|
self,
|
|
23869
23934
|
*,
|
|
23870
23935
|
filters_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContentFilterConfigProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
23936
|
+
content_filters_tier_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.ContentFiltersTierConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23871
23937
|
) -> None:
|
|
23872
23938
|
'''Contains details about how to handle harmful content.
|
|
23873
23939
|
|
|
23874
23940
|
:param filters_config: Contains the type of the content filter and how strongly it should apply to prompts and model responses.
|
|
23941
|
+
:param content_filters_tier_config: Guardrail tier config for content policy.
|
|
23875
23942
|
|
|
23876
23943
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html
|
|
23877
23944
|
:exampleMetadata: fixture=_generated
|
|
@@ -23895,15 +23962,23 @@ class CfnGuardrail(
|
|
|
23895
23962
|
output_action="outputAction",
|
|
23896
23963
|
output_enabled=False,
|
|
23897
23964
|
output_modalities=["outputModalities"]
|
|
23898
|
-
)]
|
|
23965
|
+
)],
|
|
23966
|
+
|
|
23967
|
+
# the properties below are optional
|
|
23968
|
+
content_filters_tier_config=bedrock.CfnGuardrail.ContentFiltersTierConfigProperty(
|
|
23969
|
+
tier_name="tierName"
|
|
23970
|
+
)
|
|
23899
23971
|
)
|
|
23900
23972
|
'''
|
|
23901
23973
|
if __debug__:
|
|
23902
23974
|
type_hints = typing.get_type_hints(_typecheckingstub__3c9f736a4ece8c00be77ba5cd1cda628f4fd10884f3d7ed2c668ae9c1c654fb0)
|
|
23903
23975
|
check_type(argname="argument filters_config", value=filters_config, expected_type=type_hints["filters_config"])
|
|
23976
|
+
check_type(argname="argument content_filters_tier_config", value=content_filters_tier_config, expected_type=type_hints["content_filters_tier_config"])
|
|
23904
23977
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
23905
23978
|
"filters_config": filters_config,
|
|
23906
23979
|
}
|
|
23980
|
+
if content_filters_tier_config is not None:
|
|
23981
|
+
self._values["content_filters_tier_config"] = content_filters_tier_config
|
|
23907
23982
|
|
|
23908
23983
|
@builtins.property
|
|
23909
23984
|
def filters_config(
|
|
@@ -23917,6 +23992,17 @@ class CfnGuardrail(
|
|
|
23917
23992
|
assert result is not None, "Required property 'filters_config' is missing"
|
|
23918
23993
|
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ContentFilterConfigProperty"]]], result)
|
|
23919
23994
|
|
|
23995
|
+
@builtins.property
|
|
23996
|
+
def content_filters_tier_config(
|
|
23997
|
+
self,
|
|
23998
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ContentFiltersTierConfigProperty"]]:
|
|
23999
|
+
'''Guardrail tier config for content policy.
|
|
24000
|
+
|
|
24001
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html#cfn-bedrock-guardrail-contentpolicyconfig-contentfilterstierconfig
|
|
24002
|
+
'''
|
|
24003
|
+
result = self._values.get("content_filters_tier_config")
|
|
24004
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.ContentFiltersTierConfigProperty"]], result)
|
|
24005
|
+
|
|
23920
24006
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
23921
24007
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
23922
24008
|
|
|
@@ -25010,17 +25096,22 @@ class CfnGuardrail(
|
|
|
25010
25096
|
@jsii.data_type(
|
|
25011
25097
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.TopicPolicyConfigProperty",
|
|
25012
25098
|
jsii_struct_bases=[],
|
|
25013
|
-
name_mapping={
|
|
25099
|
+
name_mapping={
|
|
25100
|
+
"topics_config": "topicsConfig",
|
|
25101
|
+
"topics_tier_config": "topicsTierConfig",
|
|
25102
|
+
},
|
|
25014
25103
|
)
|
|
25015
25104
|
class TopicPolicyConfigProperty:
|
|
25016
25105
|
def __init__(
|
|
25017
25106
|
self,
|
|
25018
25107
|
*,
|
|
25019
25108
|
topics_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.TopicConfigProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
25109
|
+
topics_tier_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnGuardrail.TopicsTierConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25020
25110
|
) -> None:
|
|
25021
25111
|
'''Contains details about topics that the guardrail should identify and deny.
|
|
25022
25112
|
|
|
25023
25113
|
:param topics_config: A list of policies related to topics that the guardrail should deny.
|
|
25114
|
+
:param topics_tier_config: Guardrail tier config for topic policy.
|
|
25024
25115
|
|
|
25025
25116
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicpolicyconfig.html
|
|
25026
25117
|
:exampleMetadata: fixture=_generated
|
|
@@ -25043,15 +25134,23 @@ class CfnGuardrail(
|
|
|
25043
25134
|
input_enabled=False,
|
|
25044
25135
|
output_action="outputAction",
|
|
25045
25136
|
output_enabled=False
|
|
25046
|
-
)]
|
|
25137
|
+
)],
|
|
25138
|
+
|
|
25139
|
+
# the properties below are optional
|
|
25140
|
+
topics_tier_config=bedrock.CfnGuardrail.TopicsTierConfigProperty(
|
|
25141
|
+
tier_name="tierName"
|
|
25142
|
+
)
|
|
25047
25143
|
)
|
|
25048
25144
|
'''
|
|
25049
25145
|
if __debug__:
|
|
25050
25146
|
type_hints = typing.get_type_hints(_typecheckingstub__a601b9bb5110351c09983ddf7f804dd1b1d64d78dffded374d89618a609277eb)
|
|
25051
25147
|
check_type(argname="argument topics_config", value=topics_config, expected_type=type_hints["topics_config"])
|
|
25148
|
+
check_type(argname="argument topics_tier_config", value=topics_tier_config, expected_type=type_hints["topics_tier_config"])
|
|
25052
25149
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
25053
25150
|
"topics_config": topics_config,
|
|
25054
25151
|
}
|
|
25152
|
+
if topics_tier_config is not None:
|
|
25153
|
+
self._values["topics_tier_config"] = topics_tier_config
|
|
25055
25154
|
|
|
25056
25155
|
@builtins.property
|
|
25057
25156
|
def topics_config(
|
|
@@ -25065,6 +25164,17 @@ class CfnGuardrail(
|
|
|
25065
25164
|
assert result is not None, "Required property 'topics_config' is missing"
|
|
25066
25165
|
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.TopicConfigProperty"]]], result)
|
|
25067
25166
|
|
|
25167
|
+
@builtins.property
|
|
25168
|
+
def topics_tier_config(
|
|
25169
|
+
self,
|
|
25170
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.TopicsTierConfigProperty"]]:
|
|
25171
|
+
'''Guardrail tier config for topic policy.
|
|
25172
|
+
|
|
25173
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicpolicyconfig.html#cfn-bedrock-guardrail-topicpolicyconfig-topicstierconfig
|
|
25174
|
+
'''
|
|
25175
|
+
result = self._values.get("topics_tier_config")
|
|
25176
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGuardrail.TopicsTierConfigProperty"]], result)
|
|
25177
|
+
|
|
25068
25178
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
25069
25179
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
25070
25180
|
|
|
@@ -25076,6 +25186,58 @@ class CfnGuardrail(
|
|
|
25076
25186
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
25077
25187
|
)
|
|
25078
25188
|
|
|
25189
|
+
@jsii.data_type(
|
|
25190
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.TopicsTierConfigProperty",
|
|
25191
|
+
jsii_struct_bases=[],
|
|
25192
|
+
name_mapping={"tier_name": "tierName"},
|
|
25193
|
+
)
|
|
25194
|
+
class TopicsTierConfigProperty:
|
|
25195
|
+
def __init__(self, *, tier_name: builtins.str) -> None:
|
|
25196
|
+
'''Guardrail tier config for topic policy.
|
|
25197
|
+
|
|
25198
|
+
:param tier_name: Tier name for tier configuration in topic policy.
|
|
25199
|
+
|
|
25200
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicstierconfig.html
|
|
25201
|
+
:exampleMetadata: fixture=_generated
|
|
25202
|
+
|
|
25203
|
+
Example::
|
|
25204
|
+
|
|
25205
|
+
# The code below shows an example of how to instantiate this type.
|
|
25206
|
+
# The values are placeholders you should change.
|
|
25207
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
25208
|
+
|
|
25209
|
+
topics_tier_config_property = bedrock.CfnGuardrail.TopicsTierConfigProperty(
|
|
25210
|
+
tier_name="tierName"
|
|
25211
|
+
)
|
|
25212
|
+
'''
|
|
25213
|
+
if __debug__:
|
|
25214
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ea9a9d736464d561710ac65e26fa4428bfdcc80faf4bd465f6e27c5797559c34)
|
|
25215
|
+
check_type(argname="argument tier_name", value=tier_name, expected_type=type_hints["tier_name"])
|
|
25216
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
25217
|
+
"tier_name": tier_name,
|
|
25218
|
+
}
|
|
25219
|
+
|
|
25220
|
+
@builtins.property
|
|
25221
|
+
def tier_name(self) -> builtins.str:
|
|
25222
|
+
'''Tier name for tier configuration in topic policy.
|
|
25223
|
+
|
|
25224
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicstierconfig.html#cfn-bedrock-guardrail-topicstierconfig-tiername
|
|
25225
|
+
'''
|
|
25226
|
+
result = self._values.get("tier_name")
|
|
25227
|
+
assert result is not None, "Required property 'tier_name' is missing"
|
|
25228
|
+
return typing.cast(builtins.str, result)
|
|
25229
|
+
|
|
25230
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
25231
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
25232
|
+
|
|
25233
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
25234
|
+
return not (rhs == self)
|
|
25235
|
+
|
|
25236
|
+
def __repr__(self) -> str:
|
|
25237
|
+
return "TopicsTierConfigProperty(%s)" % ", ".join(
|
|
25238
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
25239
|
+
)
|
|
25240
|
+
|
|
25079
25241
|
@jsii.data_type(
|
|
25080
25242
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnGuardrail.WordConfigProperty",
|
|
25081
25243
|
jsii_struct_bases=[],
|
|
@@ -25372,7 +25534,12 @@ class CfnGuardrailProps:
|
|
|
25372
25534
|
output_action="outputAction",
|
|
25373
25535
|
output_enabled=False,
|
|
25374
25536
|
output_modalities=["outputModalities"]
|
|
25375
|
-
)]
|
|
25537
|
+
)],
|
|
25538
|
+
|
|
25539
|
+
# the properties below are optional
|
|
25540
|
+
content_filters_tier_config=bedrock.CfnGuardrail.ContentFiltersTierConfigProperty(
|
|
25541
|
+
tier_name="tierName"
|
|
25542
|
+
)
|
|
25376
25543
|
),
|
|
25377
25544
|
contextual_grounding_policy_config=bedrock.CfnGuardrail.ContextualGroundingPolicyConfigProperty(
|
|
25378
25545
|
filters_config=[bedrock.CfnGuardrail.ContextualGroundingFilterConfigProperty(
|
|
@@ -25429,7 +25596,12 @@ class CfnGuardrailProps:
|
|
|
25429
25596
|
input_enabled=False,
|
|
25430
25597
|
output_action="outputAction",
|
|
25431
25598
|
output_enabled=False
|
|
25432
|
-
)]
|
|
25599
|
+
)],
|
|
25600
|
+
|
|
25601
|
+
# the properties below are optional
|
|
25602
|
+
topics_tier_config=bedrock.CfnGuardrail.TopicsTierConfigProperty(
|
|
25603
|
+
tier_name="tierName"
|
|
25604
|
+
)
|
|
25433
25605
|
),
|
|
25434
25606
|
word_policy_config=bedrock.CfnGuardrail.WordPolicyConfigProperty(
|
|
25435
25607
|
managed_word_lists_config=[bedrock.CfnGuardrail.ManagedWordsConfigProperty(
|
|
@@ -39044,9 +39216,17 @@ def _typecheckingstub__e931f7f6b53869d60aab0ecda0e56f276982aaf3a1ee755be3434f26d
|
|
|
39044
39216
|
"""Type checking stubs"""
|
|
39045
39217
|
pass
|
|
39046
39218
|
|
|
39219
|
+
def _typecheckingstub__41fd4ea54ea6af8c3dab6d3870ca7f484ac15185331f9fe5dc1ae49db7fe3954(
|
|
39220
|
+
*,
|
|
39221
|
+
tier_name: builtins.str,
|
|
39222
|
+
) -> None:
|
|
39223
|
+
"""Type checking stubs"""
|
|
39224
|
+
pass
|
|
39225
|
+
|
|
39047
39226
|
def _typecheckingstub__3c9f736a4ece8c00be77ba5cd1cda628f4fd10884f3d7ed2c668ae9c1c654fb0(
|
|
39048
39227
|
*,
|
|
39049
39228
|
filters_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentFilterConfigProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
39229
|
+
content_filters_tier_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.ContentFiltersTierConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
39050
39230
|
) -> None:
|
|
39051
39231
|
"""Type checking stubs"""
|
|
39052
39232
|
pass
|
|
@@ -39137,6 +39317,14 @@ def _typecheckingstub__55baba87f7434d59d4b6be04489cbfbd90b857b82944e9437475de8bd
|
|
|
39137
39317
|
def _typecheckingstub__a601b9bb5110351c09983ddf7f804dd1b1d64d78dffded374d89618a609277eb(
|
|
39138
39318
|
*,
|
|
39139
39319
|
topics_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.TopicConfigProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
39320
|
+
topics_tier_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnGuardrail.TopicsTierConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
39321
|
+
) -> None:
|
|
39322
|
+
"""Type checking stubs"""
|
|
39323
|
+
pass
|
|
39324
|
+
|
|
39325
|
+
def _typecheckingstub__ea9a9d736464d561710ac65e26fa4428bfdcc80faf4bd465f6e27c5797559c34(
|
|
39326
|
+
*,
|
|
39327
|
+
tier_name: builtins.str,
|
|
39140
39328
|
) -> None:
|
|
39141
39329
|
"""Type checking stubs"""
|
|
39142
39330
|
pass
|