aws-cdk-lib 2.173.3__py3-none-any.whl → 2.174.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 +210 -181
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.173.3.jsii.tgz → aws-cdk-lib@2.174.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +127 -168
- aws_cdk/aws_appconfig/__init__.py +498 -1
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -1
- aws_cdk/aws_appsync/__init__.py +4 -0
- aws_cdk/aws_autoscaling/__init__.py +96 -0
- aws_cdk/aws_batch/__init__.py +1084 -233
- aws_cdk/aws_bedrock/__init__.py +2119 -181
- aws_cdk/aws_cassandra/__init__.py +476 -4
- aws_cdk/aws_cleanrooms/__init__.py +543 -17
- aws_cdk/aws_cloudformation/__init__.py +172 -169
- aws_cdk/aws_cloudfront/__init__.py +773 -26
- aws_cdk/aws_cloudtrail/__init__.py +8 -2
- aws_cdk/aws_codebuild/__init__.py +83 -0
- aws_cdk/aws_codepipeline/__init__.py +2 -1
- aws_cdk/aws_cognito/__init__.py +232 -200
- aws_cdk/aws_connect/__init__.py +187 -36
- aws_cdk/aws_connectcampaignsv2/__init__.py +106 -12
- aws_cdk/aws_databrew/__init__.py +69 -1
- aws_cdk/aws_datasync/__init__.py +33 -28
- aws_cdk/aws_datazone/__init__.py +141 -41
- aws_cdk/aws_dlm/__init__.py +20 -10
- aws_cdk/aws_dms/__init__.py +722 -30
- aws_cdk/aws_dynamodb/__init__.py +76 -4
- aws_cdk/aws_ec2/__init__.py +1233 -65
- aws_cdk/aws_ecr/__init__.py +31 -0
- aws_cdk/aws_ecr_assets/__init__.py +5 -0
- aws_cdk/aws_ecs/__init__.py +88 -11
- aws_cdk/aws_efs/__init__.py +15 -8
- aws_cdk/aws_eks/__init__.py +114 -45
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
- aws_cdk/aws_emrserverless/__init__.py +143 -0
- aws_cdk/aws_events/__init__.py +50 -30
- aws_cdk/aws_fis/__init__.py +33 -33
- aws_cdk/aws_fsx/__init__.py +20 -10
- aws_cdk/aws_glue/__init__.py +34 -11
- aws_cdk/aws_greengrass/__init__.py +8 -8
- aws_cdk/aws_guardduty/__init__.py +1 -1
- aws_cdk/aws_imagebuilder/__init__.py +45 -47
- aws_cdk/aws_internetmonitor/__init__.py +3 -3
- aws_cdk/aws_invoicing/__init__.py +55 -30
- aws_cdk/aws_iot/__init__.py +1117 -4
- aws_cdk/aws_iot1click/__init__.py +17 -7
- aws_cdk/aws_kendra/__init__.py +4 -6
- aws_cdk/aws_lambda/__init__.py +15 -1
- aws_cdk/aws_logs/__init__.py +4011 -86
- aws_cdk/aws_m2/__init__.py +41 -0
- aws_cdk/aws_mediaconnect/__init__.py +202 -7
- aws_cdk/aws_memorydb/__init__.py +22 -22
- aws_cdk/aws_networkmanager/__init__.py +758 -0
- aws_cdk/aws_opensearchservice/__init__.py +222 -0
- aws_cdk/aws_organizations/__init__.py +5 -3
- aws_cdk/aws_pcs/__init__.py +3038 -0
- aws_cdk/aws_pipes/__init__.py +10 -10
- aws_cdk/aws_qbusiness/__init__.py +415 -140
- aws_cdk/aws_quicksight/__init__.py +15932 -6448
- aws_cdk/aws_ram/__init__.py +5 -11
- aws_cdk/aws_rbin/__init__.py +28 -16
- aws_cdk/aws_rds/__init__.py +184 -24
- aws_cdk/aws_redshiftserverless/__init__.py +156 -0
- aws_cdk/aws_resiliencehub/__init__.py +2 -1
- aws_cdk/aws_route53_targets/__init__.py +5 -5
- aws_cdk/aws_s3/__init__.py +25 -15
- aws_cdk/aws_s3express/__init__.py +7 -7
- aws_cdk/aws_s3tables/__init__.py +683 -0
- aws_cdk/aws_sagemaker/__init__.py +574 -189
- aws_cdk/aws_secretsmanager/__init__.py +2 -0
- aws_cdk/aws_securityhub/__init__.py +41 -165
- aws_cdk/aws_servicediscovery/__init__.py +10 -3
- aws_cdk/aws_ses/__init__.py +190 -5
- aws_cdk/aws_sns/__init__.py +7 -3
- aws_cdk/aws_synthetics/__init__.py +29 -4
- aws_cdk/aws_transfer/__init__.py +8 -0
- aws_cdk/aws_vpclattice/__init__.py +147 -77
- aws_cdk/aws_wafv2/__init__.py +20 -8
- aws_cdk/aws_wisdom/__init__.py +162 -111
- aws_cdk/aws_workspaces/__init__.py +10 -4
- aws_cdk/cloud_assembly_schema/__init__.py +22 -0
- aws_cdk/custom_resources/__init__.py +31 -0
- aws_cdk/cx_api/__init__.py +19 -0
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/LICENSE +1 -1
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/NOTICE +1 -1
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/RECORD +88 -86
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_wisdom/__init__.py
CHANGED
|
@@ -326,6 +326,14 @@ class CfnAIAgent(
|
|
|
326
326
|
'''
|
|
327
327
|
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
328
328
|
|
|
329
|
+
@builtins.property
|
|
330
|
+
@jsii.member(jsii_name="attrModifiedTimeSeconds")
|
|
331
|
+
def attr_modified_time_seconds(self) -> _IResolvable_da3f097b:
|
|
332
|
+
'''
|
|
333
|
+
:cloudformationAttribute: ModifiedTimeSeconds
|
|
334
|
+
'''
|
|
335
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrModifiedTimeSeconds"))
|
|
336
|
+
|
|
329
337
|
@builtins.property
|
|
330
338
|
@jsii.member(jsii_name="cdkTagManager")
|
|
331
339
|
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
@@ -444,7 +452,7 @@ class CfnAIAgent(
|
|
|
444
452
|
|
|
445
453
|
:param answer_recommendation_ai_agent_configuration: The configuration for AI Agents of type ``ANSWER_RECOMMENDATION`` .
|
|
446
454
|
:param manual_search_ai_agent_configuration: The configuration for AI Agents of type ``MANUAL_SEARCH`` .
|
|
447
|
-
:param self_service_ai_agent_configuration:
|
|
455
|
+
:param self_service_ai_agent_configuration: The self-service AI agent configuration.
|
|
448
456
|
|
|
449
457
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html
|
|
450
458
|
:exampleMetadata: fixture=_generated
|
|
@@ -626,7 +634,8 @@ class CfnAIAgent(
|
|
|
626
634
|
def self_service_ai_agent_configuration(
|
|
627
635
|
self,
|
|
628
636
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.SelfServiceAIAgentConfigurationProperty"]]:
|
|
629
|
-
'''
|
|
637
|
+
'''The self-service AI agent configuration.
|
|
638
|
+
|
|
630
639
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html#cfn-wisdom-aiagent-aiagentconfiguration-selfserviceaiagentconfiguration
|
|
631
640
|
'''
|
|
632
641
|
result = self._values.get("self_service_ai_agent_configuration")
|
|
@@ -666,7 +675,7 @@ class CfnAIAgent(
|
|
|
666
675
|
) -> None:
|
|
667
676
|
'''The configuration for AI Agents of type ``ANSWER_RECOMMENDATION`` .
|
|
668
677
|
|
|
669
|
-
:param answer_generation_ai_guardrail_id:
|
|
678
|
+
:param answer_generation_ai_guardrail_id: The ID of the answer generation AI guardrail.
|
|
670
679
|
:param answer_generation_ai_prompt_id: The AI Prompt identifier for the Answer Generation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
671
680
|
:param association_configurations: The association configurations for overriding behavior on this AI Agent.
|
|
672
681
|
:param intent_labeling_generation_ai_prompt_id: The AI Prompt identifier for the Intent Labeling prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
@@ -747,7 +756,8 @@ class CfnAIAgent(
|
|
|
747
756
|
|
|
748
757
|
@builtins.property
|
|
749
758
|
def answer_generation_ai_guardrail_id(self) -> typing.Optional[builtins.str]:
|
|
750
|
-
'''
|
|
759
|
+
'''The ID of the answer generation AI guardrail.
|
|
760
|
+
|
|
751
761
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html#cfn-wisdom-aiagent-answerrecommendationaiagentconfiguration-answergenerationaiguardrailid
|
|
752
762
|
'''
|
|
753
763
|
result = self._values.get("answer_generation_ai_guardrail_id")
|
|
@@ -1155,7 +1165,7 @@ class CfnAIAgent(
|
|
|
1155
1165
|
) -> None:
|
|
1156
1166
|
'''The configuration for AI Agents of type ``MANUAL_SEARCH`` .
|
|
1157
1167
|
|
|
1158
|
-
:param answer_generation_ai_guardrail_id:
|
|
1168
|
+
:param answer_generation_ai_guardrail_id: The ID of the answer generation AI guardrail.
|
|
1159
1169
|
:param answer_generation_ai_prompt_id: The AI Prompt identifier for the Answer Generation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
1160
1170
|
:param association_configurations: The association configurations for overriding behavior on this AI Agent.
|
|
1161
1171
|
|
|
@@ -1226,7 +1236,8 @@ class CfnAIAgent(
|
|
|
1226
1236
|
|
|
1227
1237
|
@builtins.property
|
|
1228
1238
|
def answer_generation_ai_guardrail_id(self) -> typing.Optional[builtins.str]:
|
|
1229
|
-
'''
|
|
1239
|
+
'''The ID of the answer generation AI guardrail.
|
|
1240
|
+
|
|
1230
1241
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-manualsearchaiagentconfiguration.html#cfn-wisdom-aiagent-manualsearchaiagentconfiguration-answergenerationaiguardrailid
|
|
1231
1242
|
'''
|
|
1232
1243
|
result = self._values.get("answer_generation_ai_guardrail_id")
|
|
@@ -1367,11 +1378,12 @@ class CfnAIAgent(
|
|
|
1367
1378
|
self_service_answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
1368
1379
|
self_service_pre_processing_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
1369
1380
|
) -> None:
|
|
1370
|
-
'''
|
|
1371
|
-
|
|
1372
|
-
:param
|
|
1373
|
-
:param
|
|
1374
|
-
:param
|
|
1381
|
+
'''The configuration of the self-service AI agent.
|
|
1382
|
+
|
|
1383
|
+
:param association_configurations: The association configuration of the self-service AI agent.
|
|
1384
|
+
:param self_service_ai_guardrail_id: The ID of the self-service AI guardrail.
|
|
1385
|
+
:param self_service_answer_generation_ai_prompt_id: The ID of the self-service answer generation AI prompt.
|
|
1386
|
+
:param self_service_pre_processing_ai_prompt_id: The ID of the self-service preprocessing AI prompt.
|
|
1375
1387
|
|
|
1376
1388
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html
|
|
1377
1389
|
:exampleMetadata: fixture=_generated
|
|
@@ -1446,7 +1458,8 @@ class CfnAIAgent(
|
|
|
1446
1458
|
def association_configurations(
|
|
1447
1459
|
self,
|
|
1448
1460
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationProperty"]]]]:
|
|
1449
|
-
'''
|
|
1461
|
+
'''The association configuration of the self-service AI agent.
|
|
1462
|
+
|
|
1450
1463
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-associationconfigurations
|
|
1451
1464
|
'''
|
|
1452
1465
|
result = self._values.get("association_configurations")
|
|
@@ -1454,7 +1467,8 @@ class CfnAIAgent(
|
|
|
1454
1467
|
|
|
1455
1468
|
@builtins.property
|
|
1456
1469
|
def self_service_ai_guardrail_id(self) -> typing.Optional[builtins.str]:
|
|
1457
|
-
'''
|
|
1470
|
+
'''The ID of the self-service AI guardrail.
|
|
1471
|
+
|
|
1458
1472
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-selfserviceaiguardrailid
|
|
1459
1473
|
'''
|
|
1460
1474
|
result = self._values.get("self_service_ai_guardrail_id")
|
|
@@ -1464,7 +1478,8 @@ class CfnAIAgent(
|
|
|
1464
1478
|
def self_service_answer_generation_ai_prompt_id(
|
|
1465
1479
|
self,
|
|
1466
1480
|
) -> typing.Optional[builtins.str]:
|
|
1467
|
-
'''
|
|
1481
|
+
'''The ID of the self-service answer generation AI prompt.
|
|
1482
|
+
|
|
1468
1483
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-selfserviceanswergenerationaipromptid
|
|
1469
1484
|
'''
|
|
1470
1485
|
result = self._values.get("self_service_answer_generation_ai_prompt_id")
|
|
@@ -1474,7 +1489,8 @@ class CfnAIAgent(
|
|
|
1474
1489
|
def self_service_pre_processing_ai_prompt_id(
|
|
1475
1490
|
self,
|
|
1476
1491
|
) -> typing.Optional[builtins.str]:
|
|
1477
|
-
'''
|
|
1492
|
+
'''The ID of the self-service preprocessing AI prompt.
|
|
1493
|
+
|
|
1478
1494
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-selfservicepreprocessingaipromptid
|
|
1479
1495
|
'''
|
|
1480
1496
|
result = self._values.get("self_service_pre_processing_ai_prompt_id")
|
|
@@ -2220,7 +2236,7 @@ class CfnAIGuardrail(
|
|
|
2220
2236
|
metaclass=jsii.JSIIMeta,
|
|
2221
2237
|
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail",
|
|
2222
2238
|
):
|
|
2223
|
-
'''
|
|
2239
|
+
'''Creates an Amazon Q in Connect AI Guardrail.
|
|
2224
2240
|
|
|
2225
2241
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html
|
|
2226
2242
|
:cloudformationResource: AWS::Wisdom::AIGuardrail
|
|
@@ -2311,17 +2327,17 @@ class CfnAIGuardrail(
|
|
|
2311
2327
|
'''
|
|
2312
2328
|
:param scope: Scope in which this resource is defined.
|
|
2313
2329
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
2314
|
-
:param assistant_id:
|
|
2315
|
-
:param blocked_input_messaging:
|
|
2316
|
-
:param blocked_outputs_messaging:
|
|
2317
|
-
:param content_policy_config:
|
|
2318
|
-
:param contextual_grounding_policy_config:
|
|
2319
|
-
:param description:
|
|
2320
|
-
:param name:
|
|
2321
|
-
:param sensitive_information_policy_config:
|
|
2322
|
-
:param tags:
|
|
2323
|
-
:param topic_policy_config:
|
|
2324
|
-
:param word_policy_config:
|
|
2330
|
+
:param assistant_id: The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
2331
|
+
:param blocked_input_messaging: The message to return when the AI Guardrail blocks a prompt.
|
|
2332
|
+
:param blocked_outputs_messaging: The message to return when the AI Guardrail blocks a model response.
|
|
2333
|
+
:param content_policy_config: Contains details about how to handle harmful content.
|
|
2334
|
+
:param contextual_grounding_policy_config: The policy configuration details for the AI Guardrail's contextual grounding policy.
|
|
2335
|
+
:param description: A description of the AI Guardrail.
|
|
2336
|
+
:param name: The name of the AI Guardrail.
|
|
2337
|
+
:param sensitive_information_policy_config: Contains details about PII entities and regular expressions to configure for the AI Guardrail.
|
|
2338
|
+
:param tags: The tags used to organize, track, or control access for this resource.
|
|
2339
|
+
:param topic_policy_config: Contains details about topics that the AI Guardrail should identify and deny.
|
|
2340
|
+
:param word_policy_config: Contains details about the word policy to configured for the AI Guardrail.
|
|
2325
2341
|
'''
|
|
2326
2342
|
if __debug__:
|
|
2327
2343
|
type_hints = typing.get_type_hints(_typecheckingstub__76ea8e26c58eaed3d156b1860dd33693ef608e81ac9c96aa849d3236df58330b)
|
|
@@ -2376,7 +2392,8 @@ class CfnAIGuardrail(
|
|
|
2376
2392
|
@builtins.property
|
|
2377
2393
|
@jsii.member(jsii_name="attrAiGuardrailArn")
|
|
2378
2394
|
def attr_ai_guardrail_arn(self) -> builtins.str:
|
|
2379
|
-
'''
|
|
2395
|
+
'''The Amazon Resource Name (ARN) of the AI Guardrail.
|
|
2396
|
+
|
|
2380
2397
|
:cloudformationAttribute: AIGuardrailArn
|
|
2381
2398
|
'''
|
|
2382
2399
|
return typing.cast(builtins.str, jsii.get(self, "attrAiGuardrailArn"))
|
|
@@ -2384,7 +2401,8 @@ class CfnAIGuardrail(
|
|
|
2384
2401
|
@builtins.property
|
|
2385
2402
|
@jsii.member(jsii_name="attrAiGuardrailId")
|
|
2386
2403
|
def attr_ai_guardrail_id(self) -> builtins.str:
|
|
2387
|
-
'''
|
|
2404
|
+
'''The identifier of the Amazon Q in Connect AI Guardrail.
|
|
2405
|
+
|
|
2388
2406
|
:cloudformationAttribute: AIGuardrailId
|
|
2389
2407
|
'''
|
|
2390
2408
|
return typing.cast(builtins.str, jsii.get(self, "attrAiGuardrailId"))
|
|
@@ -2392,7 +2410,8 @@ class CfnAIGuardrail(
|
|
|
2392
2410
|
@builtins.property
|
|
2393
2411
|
@jsii.member(jsii_name="attrAssistantArn")
|
|
2394
2412
|
def attr_assistant_arn(self) -> builtins.str:
|
|
2395
|
-
'''
|
|
2413
|
+
'''The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
|
|
2414
|
+
|
|
2396
2415
|
:cloudformationAttribute: AssistantArn
|
|
2397
2416
|
'''
|
|
2398
2417
|
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
@@ -2411,6 +2430,7 @@ class CfnAIGuardrail(
|
|
|
2411
2430
|
@builtins.property
|
|
2412
2431
|
@jsii.member(jsii_name="assistantId")
|
|
2413
2432
|
def assistant_id(self) -> builtins.str:
|
|
2433
|
+
'''The identifier of the Amazon Q in Connect assistant.'''
|
|
2414
2434
|
return typing.cast(builtins.str, jsii.get(self, "assistantId"))
|
|
2415
2435
|
|
|
2416
2436
|
@assistant_id.setter
|
|
@@ -2423,7 +2443,7 @@ class CfnAIGuardrail(
|
|
|
2423
2443
|
@builtins.property
|
|
2424
2444
|
@jsii.member(jsii_name="blockedInputMessaging")
|
|
2425
2445
|
def blocked_input_messaging(self) -> builtins.str:
|
|
2426
|
-
'''
|
|
2446
|
+
'''The message to return when the AI Guardrail blocks a prompt.'''
|
|
2427
2447
|
return typing.cast(builtins.str, jsii.get(self, "blockedInputMessaging"))
|
|
2428
2448
|
|
|
2429
2449
|
@blocked_input_messaging.setter
|
|
@@ -2436,7 +2456,7 @@ class CfnAIGuardrail(
|
|
|
2436
2456
|
@builtins.property
|
|
2437
2457
|
@jsii.member(jsii_name="blockedOutputsMessaging")
|
|
2438
2458
|
def blocked_outputs_messaging(self) -> builtins.str:
|
|
2439
|
-
'''
|
|
2459
|
+
'''The message to return when the AI Guardrail blocks a model response.'''
|
|
2440
2460
|
return typing.cast(builtins.str, jsii.get(self, "blockedOutputsMessaging"))
|
|
2441
2461
|
|
|
2442
2462
|
@blocked_outputs_messaging.setter
|
|
@@ -2451,7 +2471,7 @@ class CfnAIGuardrail(
|
|
|
2451
2471
|
def content_policy_config(
|
|
2452
2472
|
self,
|
|
2453
2473
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty"]]:
|
|
2454
|
-
'''
|
|
2474
|
+
'''Contains details about how to handle harmful content.'''
|
|
2455
2475
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty"]], jsii.get(self, "contentPolicyConfig"))
|
|
2456
2476
|
|
|
2457
2477
|
@content_policy_config.setter
|
|
@@ -2469,7 +2489,7 @@ class CfnAIGuardrail(
|
|
|
2469
2489
|
def contextual_grounding_policy_config(
|
|
2470
2490
|
self,
|
|
2471
2491
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty"]]:
|
|
2472
|
-
'''
|
|
2492
|
+
'''The policy configuration details for the AI Guardrail's contextual grounding policy.'''
|
|
2473
2493
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty"]], jsii.get(self, "contextualGroundingPolicyConfig"))
|
|
2474
2494
|
|
|
2475
2495
|
@contextual_grounding_policy_config.setter
|
|
@@ -2485,7 +2505,7 @@ class CfnAIGuardrail(
|
|
|
2485
2505
|
@builtins.property
|
|
2486
2506
|
@jsii.member(jsii_name="description")
|
|
2487
2507
|
def description(self) -> typing.Optional[builtins.str]:
|
|
2488
|
-
'''
|
|
2508
|
+
'''A description of the AI Guardrail.'''
|
|
2489
2509
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
2490
2510
|
|
|
2491
2511
|
@description.setter
|
|
@@ -2498,6 +2518,7 @@ class CfnAIGuardrail(
|
|
|
2498
2518
|
@builtins.property
|
|
2499
2519
|
@jsii.member(jsii_name="name")
|
|
2500
2520
|
def name(self) -> typing.Optional[builtins.str]:
|
|
2521
|
+
'''The name of the AI Guardrail.'''
|
|
2501
2522
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
2502
2523
|
|
|
2503
2524
|
@name.setter
|
|
@@ -2512,7 +2533,7 @@ class CfnAIGuardrail(
|
|
|
2512
2533
|
def sensitive_information_policy_config(
|
|
2513
2534
|
self,
|
|
2514
2535
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty"]]:
|
|
2515
|
-
'''
|
|
2536
|
+
'''Contains details about PII entities and regular expressions to configure for the AI Guardrail.'''
|
|
2516
2537
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty"]], jsii.get(self, "sensitiveInformationPolicyConfig"))
|
|
2517
2538
|
|
|
2518
2539
|
@sensitive_information_policy_config.setter
|
|
@@ -2528,6 +2549,7 @@ class CfnAIGuardrail(
|
|
|
2528
2549
|
@builtins.property
|
|
2529
2550
|
@jsii.member(jsii_name="tags")
|
|
2530
2551
|
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
2552
|
+
'''The tags used to organize, track, or control access for this resource.'''
|
|
2531
2553
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
2532
2554
|
|
|
2533
2555
|
@tags.setter
|
|
@@ -2545,7 +2567,7 @@ class CfnAIGuardrail(
|
|
|
2545
2567
|
def topic_policy_config(
|
|
2546
2568
|
self,
|
|
2547
2569
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty"]]:
|
|
2548
|
-
'''
|
|
2570
|
+
'''Contains details about topics that the AI Guardrail should identify and deny.'''
|
|
2549
2571
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty"]], jsii.get(self, "topicPolicyConfig"))
|
|
2550
2572
|
|
|
2551
2573
|
@topic_policy_config.setter
|
|
@@ -2563,7 +2585,7 @@ class CfnAIGuardrail(
|
|
|
2563
2585
|
def word_policy_config(
|
|
2564
2586
|
self,
|
|
2565
2587
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty"]]:
|
|
2566
|
-
'''
|
|
2588
|
+
'''Contains details about the word policy to configured for the AI Guardrail.'''
|
|
2567
2589
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty"]], jsii.get(self, "wordPolicyConfig"))
|
|
2568
2590
|
|
|
2569
2591
|
@word_policy_config.setter
|
|
@@ -2589,7 +2611,7 @@ class CfnAIGuardrail(
|
|
|
2589
2611
|
) -> None:
|
|
2590
2612
|
'''Content policy config for a guardrail.
|
|
2591
2613
|
|
|
2592
|
-
:param filters_config: List of content filter
|
|
2614
|
+
:param filters_config: List of content filter configurations in a content policy.
|
|
2593
2615
|
|
|
2594
2616
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailcontentpolicyconfig.html
|
|
2595
2617
|
:exampleMetadata: fixture=_generated
|
|
@@ -2619,7 +2641,7 @@ class CfnAIGuardrail(
|
|
|
2619
2641
|
def filters_config(
|
|
2620
2642
|
self,
|
|
2621
2643
|
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailContentFilterConfigProperty"]]]:
|
|
2622
|
-
'''List of content filter
|
|
2644
|
+
'''List of content filter configurations in a content policy.
|
|
2623
2645
|
|
|
2624
2646
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailcontentpolicyconfig.html#cfn-wisdom-aiguardrail-aiguardrailcontentpolicyconfig-filtersconfig
|
|
2625
2647
|
'''
|
|
@@ -2714,7 +2736,7 @@ class CfnAIGuardrail(
|
|
|
2714
2736
|
pii_entities_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.GuardrailPiiEntityConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2715
2737
|
regexes_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.GuardrailRegexConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2716
2738
|
) -> None:
|
|
2717
|
-
'''Sensitive information policy
|
|
2739
|
+
'''Sensitive information policy configuration for a guardrail.
|
|
2718
2740
|
|
|
2719
2741
|
:param pii_entities_config: List of entities.
|
|
2720
2742
|
:param regexes_config: List of regex.
|
|
@@ -2797,7 +2819,7 @@ class CfnAIGuardrail(
|
|
|
2797
2819
|
*,
|
|
2798
2820
|
topics_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.GuardrailTopicConfigProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
2799
2821
|
) -> None:
|
|
2800
|
-
'''Topic policy
|
|
2822
|
+
'''Topic policy configuration for a guardrail.
|
|
2801
2823
|
|
|
2802
2824
|
:param topics_config: List of topic configs in topic policy.
|
|
2803
2825
|
|
|
@@ -2869,7 +2891,7 @@ class CfnAIGuardrail(
|
|
|
2869
2891
|
'''Word policy config for a guardrail.
|
|
2870
2892
|
|
|
2871
2893
|
:param managed_word_lists_config: A config for the list of managed words.
|
|
2872
|
-
:param words_config: List of custom word
|
|
2894
|
+
:param words_config: List of custom word configurations.
|
|
2873
2895
|
|
|
2874
2896
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailwordpolicyconfig.html
|
|
2875
2897
|
:exampleMetadata: fixture=_generated
|
|
@@ -2914,7 +2936,7 @@ class CfnAIGuardrail(
|
|
|
2914
2936
|
def words_config(
|
|
2915
2937
|
self,
|
|
2916
2938
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailWordConfigProperty"]]]]:
|
|
2917
|
-
'''List of custom word
|
|
2939
|
+
'''List of custom word configurations.
|
|
2918
2940
|
|
|
2919
2941
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailwordpolicyconfig.html#cfn-wisdom-aiguardrail-aiguardrailwordpolicyconfig-wordsconfig
|
|
2920
2942
|
'''
|
|
@@ -2949,11 +2971,11 @@ class CfnAIGuardrail(
|
|
|
2949
2971
|
output_strength: builtins.str,
|
|
2950
2972
|
type: builtins.str,
|
|
2951
2973
|
) -> None:
|
|
2952
|
-
'''Content filter
|
|
2974
|
+
'''Content filter configuration in content policy.
|
|
2953
2975
|
|
|
2954
|
-
:param input_strength:
|
|
2955
|
-
:param output_strength:
|
|
2956
|
-
:param type:
|
|
2976
|
+
:param input_strength: The strength of the input for the guardrail content filter.
|
|
2977
|
+
:param output_strength: The output strength of the guardrail content filter.
|
|
2978
|
+
:param type: The type of the guardrail content filter.
|
|
2957
2979
|
|
|
2958
2980
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontentfilterconfig.html
|
|
2959
2981
|
:exampleMetadata: fixture=_generated
|
|
@@ -2983,7 +3005,7 @@ class CfnAIGuardrail(
|
|
|
2983
3005
|
|
|
2984
3006
|
@builtins.property
|
|
2985
3007
|
def input_strength(self) -> builtins.str:
|
|
2986
|
-
'''
|
|
3008
|
+
'''The strength of the input for the guardrail content filter.
|
|
2987
3009
|
|
|
2988
3010
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontentfilterconfig.html#cfn-wisdom-aiguardrail-guardrailcontentfilterconfig-inputstrength
|
|
2989
3011
|
'''
|
|
@@ -2993,7 +3015,7 @@ class CfnAIGuardrail(
|
|
|
2993
3015
|
|
|
2994
3016
|
@builtins.property
|
|
2995
3017
|
def output_strength(self) -> builtins.str:
|
|
2996
|
-
'''
|
|
3018
|
+
'''The output strength of the guardrail content filter.
|
|
2997
3019
|
|
|
2998
3020
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontentfilterconfig.html#cfn-wisdom-aiguardrail-guardrailcontentfilterconfig-outputstrength
|
|
2999
3021
|
'''
|
|
@@ -3003,7 +3025,7 @@ class CfnAIGuardrail(
|
|
|
3003
3025
|
|
|
3004
3026
|
@builtins.property
|
|
3005
3027
|
def type(self) -> builtins.str:
|
|
3006
|
-
'''
|
|
3028
|
+
'''The type of the guardrail content filter.
|
|
3007
3029
|
|
|
3008
3030
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontentfilterconfig.html#cfn-wisdom-aiguardrail-guardrailcontentfilterconfig-type
|
|
3009
3031
|
'''
|
|
@@ -3029,10 +3051,10 @@ class CfnAIGuardrail(
|
|
|
3029
3051
|
)
|
|
3030
3052
|
class GuardrailContextualGroundingFilterConfigProperty:
|
|
3031
3053
|
def __init__(self, *, threshold: jsii.Number, type: builtins.str) -> None:
|
|
3032
|
-
'''A
|
|
3054
|
+
'''A configuration for grounding filter.
|
|
3033
3055
|
|
|
3034
3056
|
:param threshold: The threshold for this filter. Default: - 0
|
|
3035
|
-
:param type:
|
|
3057
|
+
:param type: The type of this filter.
|
|
3036
3058
|
|
|
3037
3059
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontextualgroundingfilterconfig.html
|
|
3038
3060
|
:exampleMetadata: fixture=_generated
|
|
@@ -3071,7 +3093,7 @@ class CfnAIGuardrail(
|
|
|
3071
3093
|
|
|
3072
3094
|
@builtins.property
|
|
3073
3095
|
def type(self) -> builtins.str:
|
|
3074
|
-
'''
|
|
3096
|
+
'''The type of this filter.
|
|
3075
3097
|
|
|
3076
3098
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontextualgroundingfilterconfig.html#cfn-wisdom-aiguardrail-guardrailcontextualgroundingfilterconfig-type
|
|
3077
3099
|
'''
|
|
@@ -3099,7 +3121,7 @@ class CfnAIGuardrail(
|
|
|
3099
3121
|
def __init__(self, *, type: builtins.str) -> None:
|
|
3100
3122
|
'''A managed words config.
|
|
3101
3123
|
|
|
3102
|
-
:param type:
|
|
3124
|
+
:param type: The type of guardrail managed words.
|
|
3103
3125
|
|
|
3104
3126
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailmanagedwordsconfig.html
|
|
3105
3127
|
:exampleMetadata: fixture=_generated
|
|
@@ -3123,7 +3145,7 @@ class CfnAIGuardrail(
|
|
|
3123
3145
|
|
|
3124
3146
|
@builtins.property
|
|
3125
3147
|
def type(self) -> builtins.str:
|
|
3126
|
-
'''
|
|
3148
|
+
'''The type of guardrail managed words.
|
|
3127
3149
|
|
|
3128
3150
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailmanagedwordsconfig.html#cfn-wisdom-aiguardrail-guardrailmanagedwordsconfig-type
|
|
3129
3151
|
'''
|
|
@@ -3149,9 +3171,9 @@ class CfnAIGuardrail(
|
|
|
3149
3171
|
)
|
|
3150
3172
|
class GuardrailPiiEntityConfigProperty:
|
|
3151
3173
|
def __init__(self, *, action: builtins.str, type: builtins.str) -> None:
|
|
3152
|
-
'''
|
|
3174
|
+
'''PII entity configuration.
|
|
3153
3175
|
|
|
3154
|
-
:param action:
|
|
3176
|
+
:param action: The action of guardrail PII entity configuration.
|
|
3155
3177
|
:param type: The currently supported PII entities.
|
|
3156
3178
|
|
|
3157
3179
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailpiientityconfig.html
|
|
@@ -3179,7 +3201,7 @@ class CfnAIGuardrail(
|
|
|
3179
3201
|
|
|
3180
3202
|
@builtins.property
|
|
3181
3203
|
def action(self) -> builtins.str:
|
|
3182
|
-
'''
|
|
3204
|
+
'''The action of guardrail PII entity configuration.
|
|
3183
3205
|
|
|
3184
3206
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailpiientityconfig.html#cfn-wisdom-aiguardrail-guardrailpiientityconfig-action
|
|
3185
3207
|
'''
|
|
@@ -3229,8 +3251,8 @@ class CfnAIGuardrail(
|
|
|
3229
3251
|
) -> None:
|
|
3230
3252
|
'''A regex configuration.
|
|
3231
3253
|
|
|
3232
|
-
:param action:
|
|
3233
|
-
:param name:
|
|
3254
|
+
:param action: The action of the guardrail regex configuration.
|
|
3255
|
+
:param name: A regex configuration.
|
|
3234
3256
|
:param pattern: The regex pattern.
|
|
3235
3257
|
:param description: The regex description.
|
|
3236
3258
|
|
|
@@ -3268,7 +3290,7 @@ class CfnAIGuardrail(
|
|
|
3268
3290
|
|
|
3269
3291
|
@builtins.property
|
|
3270
3292
|
def action(self) -> builtins.str:
|
|
3271
|
-
'''
|
|
3293
|
+
'''The action of the guardrail regex configuration.
|
|
3272
3294
|
|
|
3273
3295
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailregexconfig.html#cfn-wisdom-aiguardrail-guardrailregexconfig-action
|
|
3274
3296
|
'''
|
|
@@ -3278,7 +3300,7 @@ class CfnAIGuardrail(
|
|
|
3278
3300
|
|
|
3279
3301
|
@builtins.property
|
|
3280
3302
|
def name(self) -> builtins.str:
|
|
3281
|
-
'''
|
|
3303
|
+
'''A regex configuration.
|
|
3282
3304
|
|
|
3283
3305
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailregexconfig.html#cfn-wisdom-aiguardrail-guardrailregexconfig-name
|
|
3284
3306
|
'''
|
|
@@ -3335,12 +3357,12 @@ class CfnAIGuardrail(
|
|
|
3335
3357
|
type: builtins.str,
|
|
3336
3358
|
examples: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3337
3359
|
) -> None:
|
|
3338
|
-
'''Topic
|
|
3360
|
+
'''Topic configuration in topic policy.
|
|
3339
3361
|
|
|
3340
3362
|
:param definition: Definition of topic in topic policy.
|
|
3341
3363
|
:param name: Name of topic in topic policy.
|
|
3342
3364
|
:param type: Type of topic in a policy.
|
|
3343
|
-
:param examples:
|
|
3365
|
+
:param examples: Text example in topic policy.
|
|
3344
3366
|
|
|
3345
3367
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailtopicconfig.html
|
|
3346
3368
|
:exampleMetadata: fixture=_generated
|
|
@@ -3406,7 +3428,7 @@ class CfnAIGuardrail(
|
|
|
3406
3428
|
|
|
3407
3429
|
@builtins.property
|
|
3408
3430
|
def examples(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
3409
|
-
'''
|
|
3431
|
+
'''Text example in topic policy.
|
|
3410
3432
|
|
|
3411
3433
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailtopicconfig.html#cfn-wisdom-aiguardrail-guardrailtopicconfig-examples
|
|
3412
3434
|
'''
|
|
@@ -3512,17 +3534,17 @@ class CfnAIGuardrailProps:
|
|
|
3512
3534
|
) -> None:
|
|
3513
3535
|
'''Properties for defining a ``CfnAIGuardrail``.
|
|
3514
3536
|
|
|
3515
|
-
:param assistant_id:
|
|
3516
|
-
:param blocked_input_messaging:
|
|
3517
|
-
:param blocked_outputs_messaging:
|
|
3518
|
-
:param content_policy_config:
|
|
3519
|
-
:param contextual_grounding_policy_config:
|
|
3520
|
-
:param description:
|
|
3521
|
-
:param name:
|
|
3522
|
-
:param sensitive_information_policy_config:
|
|
3523
|
-
:param tags:
|
|
3524
|
-
:param topic_policy_config:
|
|
3525
|
-
:param word_policy_config:
|
|
3537
|
+
:param assistant_id: The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
3538
|
+
:param blocked_input_messaging: The message to return when the AI Guardrail blocks a prompt.
|
|
3539
|
+
:param blocked_outputs_messaging: The message to return when the AI Guardrail blocks a model response.
|
|
3540
|
+
:param content_policy_config: Contains details about how to handle harmful content.
|
|
3541
|
+
:param contextual_grounding_policy_config: The policy configuration details for the AI Guardrail's contextual grounding policy.
|
|
3542
|
+
:param description: A description of the AI Guardrail.
|
|
3543
|
+
:param name: The name of the AI Guardrail.
|
|
3544
|
+
:param sensitive_information_policy_config: Contains details about PII entities and regular expressions to configure for the AI Guardrail.
|
|
3545
|
+
:param tags: The tags used to organize, track, or control access for this resource.
|
|
3546
|
+
:param topic_policy_config: Contains details about topics that the AI Guardrail should identify and deny.
|
|
3547
|
+
:param word_policy_config: Contains details about the word policy to configured for the AI Guardrail.
|
|
3526
3548
|
|
|
3527
3549
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html
|
|
3528
3550
|
:exampleMetadata: fixture=_generated
|
|
@@ -3628,7 +3650,10 @@ class CfnAIGuardrailProps:
|
|
|
3628
3650
|
|
|
3629
3651
|
@builtins.property
|
|
3630
3652
|
def assistant_id(self) -> builtins.str:
|
|
3631
|
-
'''
|
|
3653
|
+
'''The identifier of the Amazon Q in Connect assistant.
|
|
3654
|
+
|
|
3655
|
+
Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
3656
|
+
|
|
3632
3657
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-assistantid
|
|
3633
3658
|
'''
|
|
3634
3659
|
result = self._values.get("assistant_id")
|
|
@@ -3637,7 +3662,7 @@ class CfnAIGuardrailProps:
|
|
|
3637
3662
|
|
|
3638
3663
|
@builtins.property
|
|
3639
3664
|
def blocked_input_messaging(self) -> builtins.str:
|
|
3640
|
-
'''
|
|
3665
|
+
'''The message to return when the AI Guardrail blocks a prompt.
|
|
3641
3666
|
|
|
3642
3667
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-blockedinputmessaging
|
|
3643
3668
|
'''
|
|
@@ -3647,7 +3672,7 @@ class CfnAIGuardrailProps:
|
|
|
3647
3672
|
|
|
3648
3673
|
@builtins.property
|
|
3649
3674
|
def blocked_outputs_messaging(self) -> builtins.str:
|
|
3650
|
-
'''
|
|
3675
|
+
'''The message to return when the AI Guardrail blocks a model response.
|
|
3651
3676
|
|
|
3652
3677
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-blockedoutputsmessaging
|
|
3653
3678
|
'''
|
|
@@ -3659,7 +3684,7 @@ class CfnAIGuardrailProps:
|
|
|
3659
3684
|
def content_policy_config(
|
|
3660
3685
|
self,
|
|
3661
3686
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty]]:
|
|
3662
|
-
'''
|
|
3687
|
+
'''Contains details about how to handle harmful content.
|
|
3663
3688
|
|
|
3664
3689
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-contentpolicyconfig
|
|
3665
3690
|
'''
|
|
@@ -3670,7 +3695,7 @@ class CfnAIGuardrailProps:
|
|
|
3670
3695
|
def contextual_grounding_policy_config(
|
|
3671
3696
|
self,
|
|
3672
3697
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty]]:
|
|
3673
|
-
'''
|
|
3698
|
+
'''The policy configuration details for the AI Guardrail's contextual grounding policy.
|
|
3674
3699
|
|
|
3675
3700
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-contextualgroundingpolicyconfig
|
|
3676
3701
|
'''
|
|
@@ -3679,7 +3704,7 @@ class CfnAIGuardrailProps:
|
|
|
3679
3704
|
|
|
3680
3705
|
@builtins.property
|
|
3681
3706
|
def description(self) -> typing.Optional[builtins.str]:
|
|
3682
|
-
'''
|
|
3707
|
+
'''A description of the AI Guardrail.
|
|
3683
3708
|
|
|
3684
3709
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-description
|
|
3685
3710
|
'''
|
|
@@ -3688,7 +3713,8 @@ class CfnAIGuardrailProps:
|
|
|
3688
3713
|
|
|
3689
3714
|
@builtins.property
|
|
3690
3715
|
def name(self) -> typing.Optional[builtins.str]:
|
|
3691
|
-
'''
|
|
3716
|
+
'''The name of the AI Guardrail.
|
|
3717
|
+
|
|
3692
3718
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-name
|
|
3693
3719
|
'''
|
|
3694
3720
|
result = self._values.get("name")
|
|
@@ -3698,7 +3724,7 @@ class CfnAIGuardrailProps:
|
|
|
3698
3724
|
def sensitive_information_policy_config(
|
|
3699
3725
|
self,
|
|
3700
3726
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty]]:
|
|
3701
|
-
'''
|
|
3727
|
+
'''Contains details about PII entities and regular expressions to configure for the AI Guardrail.
|
|
3702
3728
|
|
|
3703
3729
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-sensitiveinformationpolicyconfig
|
|
3704
3730
|
'''
|
|
@@ -3707,7 +3733,8 @@ class CfnAIGuardrailProps:
|
|
|
3707
3733
|
|
|
3708
3734
|
@builtins.property
|
|
3709
3735
|
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
3710
|
-
'''
|
|
3736
|
+
'''The tags used to organize, track, or control access for this resource.
|
|
3737
|
+
|
|
3711
3738
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-tags
|
|
3712
3739
|
'''
|
|
3713
3740
|
result = self._values.get("tags")
|
|
@@ -3717,7 +3744,7 @@ class CfnAIGuardrailProps:
|
|
|
3717
3744
|
def topic_policy_config(
|
|
3718
3745
|
self,
|
|
3719
3746
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty]]:
|
|
3720
|
-
'''
|
|
3747
|
+
'''Contains details about topics that the AI Guardrail should identify and deny.
|
|
3721
3748
|
|
|
3722
3749
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-topicpolicyconfig
|
|
3723
3750
|
'''
|
|
@@ -3728,7 +3755,7 @@ class CfnAIGuardrailProps:
|
|
|
3728
3755
|
def word_policy_config(
|
|
3729
3756
|
self,
|
|
3730
3757
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty]]:
|
|
3731
|
-
'''
|
|
3758
|
+
'''Contains details about the word policy to configured for the AI Guardrail.
|
|
3732
3759
|
|
|
3733
3760
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-wordpolicyconfig
|
|
3734
3761
|
'''
|
|
@@ -3753,7 +3780,7 @@ class CfnAIGuardrailVersion(
|
|
|
3753
3780
|
metaclass=jsii.JSIIMeta,
|
|
3754
3781
|
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrailVersion",
|
|
3755
3782
|
):
|
|
3756
|
-
'''
|
|
3783
|
+
'''Creates an Amazon Q in Connect AI Guardrail version.
|
|
3757
3784
|
|
|
3758
3785
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html
|
|
3759
3786
|
:cloudformationResource: AWS::Wisdom::AIGuardrailVersion
|
|
@@ -3786,9 +3813,9 @@ class CfnAIGuardrailVersion(
|
|
|
3786
3813
|
'''
|
|
3787
3814
|
:param scope: Scope in which this resource is defined.
|
|
3788
3815
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
3789
|
-
:param ai_guardrail_id:
|
|
3790
|
-
:param assistant_id:
|
|
3791
|
-
:param modified_time_seconds:
|
|
3816
|
+
:param ai_guardrail_id: The ID of the AI guardrail version.
|
|
3817
|
+
:param assistant_id: The ID of the AI guardrail version assistant.
|
|
3818
|
+
:param modified_time_seconds: The modified time of the AI guardrail version in seconds.
|
|
3792
3819
|
'''
|
|
3793
3820
|
if __debug__:
|
|
3794
3821
|
type_hints = typing.get_type_hints(_typecheckingstub__7a9a92a95cf92d95c08e9a7abc4202740081918bf2082c415b59e8a388ed1ceb)
|
|
@@ -3835,7 +3862,8 @@ class CfnAIGuardrailVersion(
|
|
|
3835
3862
|
@builtins.property
|
|
3836
3863
|
@jsii.member(jsii_name="attrAiGuardrailArn")
|
|
3837
3864
|
def attr_ai_guardrail_arn(self) -> builtins.str:
|
|
3838
|
-
'''
|
|
3865
|
+
'''The ARN of the AI guardrail version.
|
|
3866
|
+
|
|
3839
3867
|
:cloudformationAttribute: AIGuardrailArn
|
|
3840
3868
|
'''
|
|
3841
3869
|
return typing.cast(builtins.str, jsii.get(self, "attrAiGuardrailArn"))
|
|
@@ -3843,7 +3871,8 @@ class CfnAIGuardrailVersion(
|
|
|
3843
3871
|
@builtins.property
|
|
3844
3872
|
@jsii.member(jsii_name="attrAiGuardrailVersionId")
|
|
3845
3873
|
def attr_ai_guardrail_version_id(self) -> builtins.str:
|
|
3846
|
-
'''
|
|
3874
|
+
'''The ID of the AI guardrail version.
|
|
3875
|
+
|
|
3847
3876
|
:cloudformationAttribute: AIGuardrailVersionId
|
|
3848
3877
|
'''
|
|
3849
3878
|
return typing.cast(builtins.str, jsii.get(self, "attrAiGuardrailVersionId"))
|
|
@@ -3851,7 +3880,8 @@ class CfnAIGuardrailVersion(
|
|
|
3851
3880
|
@builtins.property
|
|
3852
3881
|
@jsii.member(jsii_name="attrAssistantArn")
|
|
3853
3882
|
def attr_assistant_arn(self) -> builtins.str:
|
|
3854
|
-
'''
|
|
3883
|
+
'''The ARN of the AI guardrail version assistant.
|
|
3884
|
+
|
|
3855
3885
|
:cloudformationAttribute: AssistantArn
|
|
3856
3886
|
'''
|
|
3857
3887
|
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
@@ -3859,7 +3889,8 @@ class CfnAIGuardrailVersion(
|
|
|
3859
3889
|
@builtins.property
|
|
3860
3890
|
@jsii.member(jsii_name="attrVersionNumber")
|
|
3861
3891
|
def attr_version_number(self) -> _IResolvable_da3f097b:
|
|
3862
|
-
'''
|
|
3892
|
+
'''The version number for this AI Guardrail version.
|
|
3893
|
+
|
|
3863
3894
|
:cloudformationAttribute: VersionNumber
|
|
3864
3895
|
'''
|
|
3865
3896
|
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrVersionNumber"))
|
|
@@ -3872,6 +3903,7 @@ class CfnAIGuardrailVersion(
|
|
|
3872
3903
|
@builtins.property
|
|
3873
3904
|
@jsii.member(jsii_name="aiGuardrailId")
|
|
3874
3905
|
def ai_guardrail_id(self) -> builtins.str:
|
|
3906
|
+
'''The ID of the AI guardrail version.'''
|
|
3875
3907
|
return typing.cast(builtins.str, jsii.get(self, "aiGuardrailId"))
|
|
3876
3908
|
|
|
3877
3909
|
@ai_guardrail_id.setter
|
|
@@ -3884,6 +3916,7 @@ class CfnAIGuardrailVersion(
|
|
|
3884
3916
|
@builtins.property
|
|
3885
3917
|
@jsii.member(jsii_name="assistantId")
|
|
3886
3918
|
def assistant_id(self) -> builtins.str:
|
|
3919
|
+
'''The ID of the AI guardrail version assistant.'''
|
|
3887
3920
|
return typing.cast(builtins.str, jsii.get(self, "assistantId"))
|
|
3888
3921
|
|
|
3889
3922
|
@assistant_id.setter
|
|
@@ -3896,6 +3929,7 @@ class CfnAIGuardrailVersion(
|
|
|
3896
3929
|
@builtins.property
|
|
3897
3930
|
@jsii.member(jsii_name="modifiedTimeSeconds")
|
|
3898
3931
|
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
3932
|
+
'''The modified time of the AI guardrail version in seconds.'''
|
|
3899
3933
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "modifiedTimeSeconds"))
|
|
3900
3934
|
|
|
3901
3935
|
@modified_time_seconds.setter
|
|
@@ -3925,9 +3959,9 @@ class CfnAIGuardrailVersionProps:
|
|
|
3925
3959
|
) -> None:
|
|
3926
3960
|
'''Properties for defining a ``CfnAIGuardrailVersion``.
|
|
3927
3961
|
|
|
3928
|
-
:param ai_guardrail_id:
|
|
3929
|
-
:param assistant_id:
|
|
3930
|
-
:param modified_time_seconds:
|
|
3962
|
+
:param ai_guardrail_id: The ID of the AI guardrail version.
|
|
3963
|
+
:param assistant_id: The ID of the AI guardrail version assistant.
|
|
3964
|
+
:param modified_time_seconds: The modified time of the AI guardrail version in seconds.
|
|
3931
3965
|
|
|
3932
3966
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html
|
|
3933
3967
|
:exampleMetadata: fixture=_generated
|
|
@@ -3960,7 +3994,8 @@ class CfnAIGuardrailVersionProps:
|
|
|
3960
3994
|
|
|
3961
3995
|
@builtins.property
|
|
3962
3996
|
def ai_guardrail_id(self) -> builtins.str:
|
|
3963
|
-
'''
|
|
3997
|
+
'''The ID of the AI guardrail version.
|
|
3998
|
+
|
|
3964
3999
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html#cfn-wisdom-aiguardrailversion-aiguardrailid
|
|
3965
4000
|
'''
|
|
3966
4001
|
result = self._values.get("ai_guardrail_id")
|
|
@@ -3969,7 +4004,8 @@ class CfnAIGuardrailVersionProps:
|
|
|
3969
4004
|
|
|
3970
4005
|
@builtins.property
|
|
3971
4006
|
def assistant_id(self) -> builtins.str:
|
|
3972
|
-
'''
|
|
4007
|
+
'''The ID of the AI guardrail version assistant.
|
|
4008
|
+
|
|
3973
4009
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html#cfn-wisdom-aiguardrailversion-assistantid
|
|
3974
4010
|
'''
|
|
3975
4011
|
result = self._values.get("assistant_id")
|
|
@@ -3978,7 +4014,8 @@ class CfnAIGuardrailVersionProps:
|
|
|
3978
4014
|
|
|
3979
4015
|
@builtins.property
|
|
3980
4016
|
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
3981
|
-
'''
|
|
4017
|
+
'''The modified time of the AI guardrail version in seconds.
|
|
4018
|
+
|
|
3982
4019
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html#cfn-wisdom-aiguardrailversion-modifiedtimeseconds
|
|
3983
4020
|
'''
|
|
3984
4021
|
result = self._values.get("modified_time_seconds")
|
|
@@ -4138,6 +4175,14 @@ class CfnAIPrompt(
|
|
|
4138
4175
|
'''
|
|
4139
4176
|
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
4140
4177
|
|
|
4178
|
+
@builtins.property
|
|
4179
|
+
@jsii.member(jsii_name="attrModifiedTimeSeconds")
|
|
4180
|
+
def attr_modified_time_seconds(self) -> _IResolvable_da3f097b:
|
|
4181
|
+
'''
|
|
4182
|
+
:cloudformationAttribute: ModifiedTimeSeconds
|
|
4183
|
+
'''
|
|
4184
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrModifiedTimeSeconds"))
|
|
4185
|
+
|
|
4141
4186
|
@builtins.property
|
|
4142
4187
|
@jsii.member(jsii_name="cdkTagManager")
|
|
4143
4188
|
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
@@ -4678,7 +4723,8 @@ class CfnAIPromptVersion(
|
|
|
4678
4723
|
@builtins.property
|
|
4679
4724
|
@jsii.member(jsii_name="attrAiPromptArn")
|
|
4680
4725
|
def attr_ai_prompt_arn(self) -> builtins.str:
|
|
4681
|
-
'''
|
|
4726
|
+
'''The ARN of the AI prompt.
|
|
4727
|
+
|
|
4682
4728
|
:cloudformationAttribute: AIPromptArn
|
|
4683
4729
|
'''
|
|
4684
4730
|
return typing.cast(builtins.str, jsii.get(self, "attrAiPromptArn"))
|
|
@@ -6022,9 +6068,10 @@ class CfnKnowledgeBase(
|
|
|
6022
6068
|
model_arn: builtins.str,
|
|
6023
6069
|
parsing_prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.ParsingPromptProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6024
6070
|
) -> None:
|
|
6025
|
-
'''
|
|
6026
|
-
|
|
6027
|
-
:param
|
|
6071
|
+
'''The configuration of the Bedrock foundation model.
|
|
6072
|
+
|
|
6073
|
+
:param model_arn: The model ARN of the Bedrock foundation model.
|
|
6074
|
+
:param parsing_prompt: The parsing prompt of the Bedrock foundation model configuration.
|
|
6028
6075
|
|
|
6029
6076
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-bedrockfoundationmodelconfiguration.html
|
|
6030
6077
|
:exampleMetadata: fixture=_generated
|
|
@@ -6056,7 +6103,8 @@ class CfnKnowledgeBase(
|
|
|
6056
6103
|
|
|
6057
6104
|
@builtins.property
|
|
6058
6105
|
def model_arn(self) -> builtins.str:
|
|
6059
|
-
'''
|
|
6106
|
+
'''The model ARN of the Bedrock foundation model.
|
|
6107
|
+
|
|
6060
6108
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-bedrockfoundationmodelconfiguration.html#cfn-wisdom-knowledgebase-bedrockfoundationmodelconfiguration-modelarn
|
|
6061
6109
|
'''
|
|
6062
6110
|
result = self._values.get("model_arn")
|
|
@@ -6067,7 +6115,8 @@ class CfnKnowledgeBase(
|
|
|
6067
6115
|
def parsing_prompt(
|
|
6068
6116
|
self,
|
|
6069
6117
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.ParsingPromptProperty"]]:
|
|
6070
|
-
'''
|
|
6118
|
+
'''The parsing prompt of the Bedrock foundation model configuration.
|
|
6119
|
+
|
|
6071
6120
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-bedrockfoundationmodelconfiguration.html#cfn-wisdom-knowledgebase-bedrockfoundationmodelconfiguration-parsingprompt
|
|
6072
6121
|
'''
|
|
6073
6122
|
result = self._values.get("parsing_prompt")
|
|
@@ -6227,8 +6276,9 @@ class CfnKnowledgeBase(
|
|
|
6227
6276
|
)
|
|
6228
6277
|
class CrawlerLimitsProperty:
|
|
6229
6278
|
def __init__(self, *, rate_limit: typing.Optional[jsii.Number] = None) -> None:
|
|
6230
|
-
'''
|
|
6231
|
-
|
|
6279
|
+
'''The limits of the crawler.
|
|
6280
|
+
|
|
6281
|
+
:param rate_limit: The limit rate at which the crawler is configured.
|
|
6232
6282
|
|
|
6233
6283
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-crawlerlimits.html
|
|
6234
6284
|
:exampleMetadata: fixture=_generated
|
|
@@ -6252,7 +6302,8 @@ class CfnKnowledgeBase(
|
|
|
6252
6302
|
|
|
6253
6303
|
@builtins.property
|
|
6254
6304
|
def rate_limit(self) -> typing.Optional[jsii.Number]:
|
|
6255
|
-
'''
|
|
6305
|
+
'''The limit rate at which the crawler is configured.
|
|
6306
|
+
|
|
6256
6307
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-crawlerlimits.html#cfn-wisdom-knowledgebase-crawlerlimits-ratelimit
|
|
6257
6308
|
'''
|
|
6258
6309
|
result = self._values.get("rate_limit")
|