aws-cdk-lib 2.172.0__py3-none-any.whl → 2.173.1__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 +57 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.172.0.jsii.tgz → aws-cdk-lib@2.173.1.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +40 -40
- aws_cdk/aws_apigateway/__init__.py +111 -64
- aws_cdk/aws_applicationautoscaling/__init__.py +141 -66
- aws_cdk/aws_appsync/__init__.py +4 -3
- aws_cdk/aws_autoscaling/__init__.py +15 -6
- aws_cdk/aws_bedrock/__init__.py +32 -44
- aws_cdk/aws_chatbot/__init__.py +72 -46
- aws_cdk/aws_cleanrooms/__init__.py +4 -6
- aws_cdk/aws_cloudfront/__init__.py +4 -2
- aws_cdk/aws_cloudtrail/__init__.py +104 -68
- aws_cdk/aws_cloudwatch/__init__.py +51 -14
- aws_cdk/aws_codebuild/__init__.py +39 -0
- aws_cdk/aws_codepipeline/__init__.py +4 -4
- aws_cdk/aws_cognito/__init__.py +221 -53
- aws_cdk/aws_config/__init__.py +13 -10
- aws_cdk/aws_connect/__init__.py +25 -23
- aws_cdk/aws_connectcampaignsv2/__init__.py +187 -176
- aws_cdk/aws_docdb/__init__.py +128 -0
- aws_cdk/aws_dynamodb/__init__.py +256 -0
- aws_cdk/aws_ec2/__init__.py +130 -48
- aws_cdk/aws_ecs/__init__.py +25 -13
- aws_cdk/aws_eks/__init__.py +86 -24
- aws_cdk/aws_elasticache/__init__.py +22 -22
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +138 -128
- aws_cdk/aws_events/__init__.py +39 -26
- aws_cdk/aws_fsx/__init__.py +134 -10
- aws_cdk/aws_imagebuilder/__init__.py +8 -8
- aws_cdk/aws_invoicing/__init__.py +651 -0
- aws_cdk/aws_iot/__init__.py +28 -22
- aws_cdk/aws_iotfleetwise/__init__.py +473 -332
- aws_cdk/aws_iotsitewise/__init__.py +6 -4
- aws_cdk/aws_ivs/__init__.py +43 -31
- aws_cdk/aws_kendra/__init__.py +4 -0
- aws_cdk/aws_lakeformation/__init__.py +2 -1
- aws_cdk/aws_lambda/__init__.py +258 -156
- aws_cdk/aws_logs/__init__.py +532 -0
- aws_cdk/aws_m2/__init__.py +15 -15
- aws_cdk/aws_mediaconnect/__init__.py +24 -14
- aws_cdk/aws_medialive/__init__.py +2359 -5
- aws_cdk/aws_mediapackage/__init__.py +3 -9
- aws_cdk/aws_mediapackagev2/__init__.py +19 -17
- aws_cdk/aws_memorydb/__init__.py +664 -4
- aws_cdk/aws_qbusiness/__init__.py +2018 -66
- aws_cdk/aws_rds/__init__.py +30 -0
- aws_cdk/aws_resourcegroups/__init__.py +26 -17
- aws_cdk/aws_route53/__init__.py +1177 -10
- aws_cdk/aws_route53_targets/__init__.py +224 -100
- aws_cdk/aws_route53resolver/__init__.py +4 -2
- aws_cdk/aws_s3/__init__.py +4 -4
- aws_cdk/aws_s3express/__init__.py +30 -19
- aws_cdk/aws_sagemaker/__init__.py +783 -9
- aws_cdk/aws_secretsmanager/__init__.py +20 -6
- aws_cdk/aws_securityhub/__init__.py +64 -32
- aws_cdk/aws_servicediscovery/__init__.py +43 -0
- aws_cdk/aws_ses/__init__.py +109 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +190 -35
- aws_cdk/aws_synthetics/__init__.py +7 -5
- aws_cdk/aws_vpclattice/__init__.py +1479 -122
- aws_cdk/aws_wisdom/__init__.py +2698 -232
- aws_cdk/aws_workspacesweb/__init__.py +118 -61
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/RECORD +69 -68
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/top_level.txt +0 -0
aws_cdk/aws_wisdom/__init__.py
CHANGED
|
@@ -92,6 +92,7 @@ class CfnAIAgent(
|
|
|
92
92
|
assistant_id="assistantId",
|
|
93
93
|
configuration=wisdom.CfnAIAgent.AIAgentConfigurationProperty(
|
|
94
94
|
answer_recommendation_ai_agent_configuration=wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty(
|
|
95
|
+
answer_generation_ai_guardrail_id="answerGenerationAiGuardrailId",
|
|
95
96
|
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
96
97
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
97
98
|
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
@@ -135,6 +136,7 @@ class CfnAIAgent(
|
|
|
135
136
|
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
136
137
|
),
|
|
137
138
|
manual_search_ai_agent_configuration=wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
139
|
+
answer_generation_ai_guardrail_id="answerGenerationAiGuardrailId",
|
|
138
140
|
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
139
141
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
140
142
|
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
@@ -174,6 +176,49 @@ class CfnAIAgent(
|
|
|
174
176
|
association_id="associationId",
|
|
175
177
|
association_type="associationType"
|
|
176
178
|
)]
|
|
179
|
+
),
|
|
180
|
+
self_service_ai_agent_configuration=wisdom.CfnAIAgent.SelfServiceAIAgentConfigurationProperty(
|
|
181
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
182
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
183
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
184
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
185
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
186
|
+
key="key",
|
|
187
|
+
|
|
188
|
+
# the properties below are optional
|
|
189
|
+
value="value"
|
|
190
|
+
)],
|
|
191
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
192
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
193
|
+
key="key",
|
|
194
|
+
|
|
195
|
+
# the properties below are optional
|
|
196
|
+
value="value"
|
|
197
|
+
)],
|
|
198
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
199
|
+
key="key",
|
|
200
|
+
|
|
201
|
+
# the properties below are optional
|
|
202
|
+
value="value"
|
|
203
|
+
)
|
|
204
|
+
)],
|
|
205
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
206
|
+
key="key",
|
|
207
|
+
|
|
208
|
+
# the properties below are optional
|
|
209
|
+
value="value"
|
|
210
|
+
)
|
|
211
|
+
),
|
|
212
|
+
max_results=123,
|
|
213
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
214
|
+
)
|
|
215
|
+
),
|
|
216
|
+
association_id="associationId",
|
|
217
|
+
association_type="associationType"
|
|
218
|
+
)],
|
|
219
|
+
self_service_ai_guardrail_id="selfServiceAiGuardrailId",
|
|
220
|
+
self_service_answer_generation_ai_prompt_id="selfServiceAnswerGenerationAiPromptId",
|
|
221
|
+
self_service_pre_processing_ai_prompt_id="selfServicePreProcessingAiPromptId"
|
|
177
222
|
)
|
|
178
223
|
),
|
|
179
224
|
type="type",
|
|
@@ -384,6 +429,7 @@ class CfnAIAgent(
|
|
|
384
429
|
name_mapping={
|
|
385
430
|
"answer_recommendation_ai_agent_configuration": "answerRecommendationAiAgentConfiguration",
|
|
386
431
|
"manual_search_ai_agent_configuration": "manualSearchAiAgentConfiguration",
|
|
432
|
+
"self_service_ai_agent_configuration": "selfServiceAiAgentConfiguration",
|
|
387
433
|
},
|
|
388
434
|
)
|
|
389
435
|
class AIAgentConfigurationProperty:
|
|
@@ -392,11 +438,13 @@ class CfnAIAgent(
|
|
|
392
438
|
*,
|
|
393
439
|
answer_recommendation_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
394
440
|
manual_search_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.ManualSearchAIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
441
|
+
self_service_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.SelfServiceAIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
395
442
|
) -> None:
|
|
396
443
|
'''A typed union that specifies the configuration based on the type of AI Agent.
|
|
397
444
|
|
|
398
445
|
:param answer_recommendation_ai_agent_configuration: The configuration for AI Agents of type ``ANSWER_RECOMMENDATION`` .
|
|
399
446
|
:param manual_search_ai_agent_configuration: The configuration for AI Agents of type ``MANUAL_SEARCH`` .
|
|
447
|
+
:param self_service_ai_agent_configuration:
|
|
400
448
|
|
|
401
449
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html
|
|
402
450
|
:exampleMetadata: fixture=_generated
|
|
@@ -409,6 +457,7 @@ class CfnAIAgent(
|
|
|
409
457
|
|
|
410
458
|
a_iAgent_configuration_property = wisdom.CfnAIAgent.AIAgentConfigurationProperty(
|
|
411
459
|
answer_recommendation_ai_agent_configuration=wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty(
|
|
460
|
+
answer_generation_ai_guardrail_id="answerGenerationAiGuardrailId",
|
|
412
461
|
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
413
462
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
414
463
|
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
@@ -452,6 +501,7 @@ class CfnAIAgent(
|
|
|
452
501
|
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
453
502
|
),
|
|
454
503
|
manual_search_ai_agent_configuration=wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
504
|
+
answer_generation_ai_guardrail_id="answerGenerationAiGuardrailId",
|
|
455
505
|
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
456
506
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
457
507
|
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
@@ -491,6 +541,49 @@ class CfnAIAgent(
|
|
|
491
541
|
association_id="associationId",
|
|
492
542
|
association_type="associationType"
|
|
493
543
|
)]
|
|
544
|
+
),
|
|
545
|
+
self_service_ai_agent_configuration=wisdom.CfnAIAgent.SelfServiceAIAgentConfigurationProperty(
|
|
546
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
547
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
548
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
549
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
550
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
551
|
+
key="key",
|
|
552
|
+
|
|
553
|
+
# the properties below are optional
|
|
554
|
+
value="value"
|
|
555
|
+
)],
|
|
556
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
557
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
558
|
+
key="key",
|
|
559
|
+
|
|
560
|
+
# the properties below are optional
|
|
561
|
+
value="value"
|
|
562
|
+
)],
|
|
563
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
564
|
+
key="key",
|
|
565
|
+
|
|
566
|
+
# the properties below are optional
|
|
567
|
+
value="value"
|
|
568
|
+
)
|
|
569
|
+
)],
|
|
570
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
571
|
+
key="key",
|
|
572
|
+
|
|
573
|
+
# the properties below are optional
|
|
574
|
+
value="value"
|
|
575
|
+
)
|
|
576
|
+
),
|
|
577
|
+
max_results=123,
|
|
578
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
579
|
+
)
|
|
580
|
+
),
|
|
581
|
+
association_id="associationId",
|
|
582
|
+
association_type="associationType"
|
|
583
|
+
)],
|
|
584
|
+
self_service_ai_guardrail_id="selfServiceAiGuardrailId",
|
|
585
|
+
self_service_answer_generation_ai_prompt_id="selfServiceAnswerGenerationAiPromptId",
|
|
586
|
+
self_service_pre_processing_ai_prompt_id="selfServicePreProcessingAiPromptId"
|
|
494
587
|
)
|
|
495
588
|
)
|
|
496
589
|
'''
|
|
@@ -498,11 +591,14 @@ class CfnAIAgent(
|
|
|
498
591
|
type_hints = typing.get_type_hints(_typecheckingstub__8cb84ad0dc27ffdae65e4e739c98ea6a4e7c36340f15c21ae83a2225ff763ba3)
|
|
499
592
|
check_type(argname="argument answer_recommendation_ai_agent_configuration", value=answer_recommendation_ai_agent_configuration, expected_type=type_hints["answer_recommendation_ai_agent_configuration"])
|
|
500
593
|
check_type(argname="argument manual_search_ai_agent_configuration", value=manual_search_ai_agent_configuration, expected_type=type_hints["manual_search_ai_agent_configuration"])
|
|
594
|
+
check_type(argname="argument self_service_ai_agent_configuration", value=self_service_ai_agent_configuration, expected_type=type_hints["self_service_ai_agent_configuration"])
|
|
501
595
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
502
596
|
if answer_recommendation_ai_agent_configuration is not None:
|
|
503
597
|
self._values["answer_recommendation_ai_agent_configuration"] = answer_recommendation_ai_agent_configuration
|
|
504
598
|
if manual_search_ai_agent_configuration is not None:
|
|
505
599
|
self._values["manual_search_ai_agent_configuration"] = manual_search_ai_agent_configuration
|
|
600
|
+
if self_service_ai_agent_configuration is not None:
|
|
601
|
+
self._values["self_service_ai_agent_configuration"] = self_service_ai_agent_configuration
|
|
506
602
|
|
|
507
603
|
@builtins.property
|
|
508
604
|
def answer_recommendation_ai_agent_configuration(
|
|
@@ -526,6 +622,16 @@ class CfnAIAgent(
|
|
|
526
622
|
result = self._values.get("manual_search_ai_agent_configuration")
|
|
527
623
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.ManualSearchAIAgentConfigurationProperty"]], result)
|
|
528
624
|
|
|
625
|
+
@builtins.property
|
|
626
|
+
def self_service_ai_agent_configuration(
|
|
627
|
+
self,
|
|
628
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.SelfServiceAIAgentConfigurationProperty"]]:
|
|
629
|
+
'''
|
|
630
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html#cfn-wisdom-aiagent-aiagentconfiguration-selfserviceaiagentconfiguration
|
|
631
|
+
'''
|
|
632
|
+
result = self._values.get("self_service_ai_agent_configuration")
|
|
633
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.SelfServiceAIAgentConfigurationProperty"]], result)
|
|
634
|
+
|
|
529
635
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
530
636
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
531
637
|
|
|
@@ -541,6 +647,7 @@ class CfnAIAgent(
|
|
|
541
647
|
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty",
|
|
542
648
|
jsii_struct_bases=[],
|
|
543
649
|
name_mapping={
|
|
650
|
+
"answer_generation_ai_guardrail_id": "answerGenerationAiGuardrailId",
|
|
544
651
|
"answer_generation_ai_prompt_id": "answerGenerationAiPromptId",
|
|
545
652
|
"association_configurations": "associationConfigurations",
|
|
546
653
|
"intent_labeling_generation_ai_prompt_id": "intentLabelingGenerationAiPromptId",
|
|
@@ -551,6 +658,7 @@ class CfnAIAgent(
|
|
|
551
658
|
def __init__(
|
|
552
659
|
self,
|
|
553
660
|
*,
|
|
661
|
+
answer_generation_ai_guardrail_id: typing.Optional[builtins.str] = None,
|
|
554
662
|
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
555
663
|
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AssociationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
556
664
|
intent_labeling_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
@@ -558,6 +666,7 @@ class CfnAIAgent(
|
|
|
558
666
|
) -> None:
|
|
559
667
|
'''The configuration for AI Agents of type ``ANSWER_RECOMMENDATION`` .
|
|
560
668
|
|
|
669
|
+
:param answer_generation_ai_guardrail_id:
|
|
561
670
|
:param answer_generation_ai_prompt_id: The AI Prompt identifier for the Answer Generation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
562
671
|
:param association_configurations: The association configurations for overriding behavior on this AI Agent.
|
|
563
672
|
:param intent_labeling_generation_ai_prompt_id: The AI Prompt identifier for the Intent Labeling prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
@@ -573,6 +682,7 @@ class CfnAIAgent(
|
|
|
573
682
|
from aws_cdk import aws_wisdom as wisdom
|
|
574
683
|
|
|
575
684
|
answer_recommendation_aIAgent_configuration_property = wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty(
|
|
685
|
+
answer_generation_ai_guardrail_id="answerGenerationAiGuardrailId",
|
|
576
686
|
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
577
687
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
578
688
|
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
@@ -618,11 +728,14 @@ class CfnAIAgent(
|
|
|
618
728
|
'''
|
|
619
729
|
if __debug__:
|
|
620
730
|
type_hints = typing.get_type_hints(_typecheckingstub__6847cf788b7def362d576a512b579b2a08c25837003298b7c57254d1dfb45112)
|
|
731
|
+
check_type(argname="argument answer_generation_ai_guardrail_id", value=answer_generation_ai_guardrail_id, expected_type=type_hints["answer_generation_ai_guardrail_id"])
|
|
621
732
|
check_type(argname="argument answer_generation_ai_prompt_id", value=answer_generation_ai_prompt_id, expected_type=type_hints["answer_generation_ai_prompt_id"])
|
|
622
733
|
check_type(argname="argument association_configurations", value=association_configurations, expected_type=type_hints["association_configurations"])
|
|
623
734
|
check_type(argname="argument intent_labeling_generation_ai_prompt_id", value=intent_labeling_generation_ai_prompt_id, expected_type=type_hints["intent_labeling_generation_ai_prompt_id"])
|
|
624
735
|
check_type(argname="argument query_reformulation_ai_prompt_id", value=query_reformulation_ai_prompt_id, expected_type=type_hints["query_reformulation_ai_prompt_id"])
|
|
625
736
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
737
|
+
if answer_generation_ai_guardrail_id is not None:
|
|
738
|
+
self._values["answer_generation_ai_guardrail_id"] = answer_generation_ai_guardrail_id
|
|
626
739
|
if answer_generation_ai_prompt_id is not None:
|
|
627
740
|
self._values["answer_generation_ai_prompt_id"] = answer_generation_ai_prompt_id
|
|
628
741
|
if association_configurations is not None:
|
|
@@ -632,6 +745,14 @@ class CfnAIAgent(
|
|
|
632
745
|
if query_reformulation_ai_prompt_id is not None:
|
|
633
746
|
self._values["query_reformulation_ai_prompt_id"] = query_reformulation_ai_prompt_id
|
|
634
747
|
|
|
748
|
+
@builtins.property
|
|
749
|
+
def answer_generation_ai_guardrail_id(self) -> typing.Optional[builtins.str]:
|
|
750
|
+
'''
|
|
751
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html#cfn-wisdom-aiagent-answerrecommendationaiagentconfiguration-answergenerationaiguardrailid
|
|
752
|
+
'''
|
|
753
|
+
result = self._values.get("answer_generation_ai_guardrail_id")
|
|
754
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
755
|
+
|
|
635
756
|
@builtins.property
|
|
636
757
|
def answer_generation_ai_prompt_id(self) -> typing.Optional[builtins.str]:
|
|
637
758
|
'''The AI Prompt identifier for the Answer Generation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
@@ -1019,6 +1140,7 @@ class CfnAIAgent(
|
|
|
1019
1140
|
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty",
|
|
1020
1141
|
jsii_struct_bases=[],
|
|
1021
1142
|
name_mapping={
|
|
1143
|
+
"answer_generation_ai_guardrail_id": "answerGenerationAiGuardrailId",
|
|
1022
1144
|
"answer_generation_ai_prompt_id": "answerGenerationAiPromptId",
|
|
1023
1145
|
"association_configurations": "associationConfigurations",
|
|
1024
1146
|
},
|
|
@@ -1027,11 +1149,13 @@ class CfnAIAgent(
|
|
|
1027
1149
|
def __init__(
|
|
1028
1150
|
self,
|
|
1029
1151
|
*,
|
|
1152
|
+
answer_generation_ai_guardrail_id: typing.Optional[builtins.str] = None,
|
|
1030
1153
|
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
1031
1154
|
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AssociationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1032
1155
|
) -> None:
|
|
1033
1156
|
'''The configuration for AI Agents of type ``MANUAL_SEARCH`` .
|
|
1034
1157
|
|
|
1158
|
+
:param answer_generation_ai_guardrail_id:
|
|
1035
1159
|
:param answer_generation_ai_prompt_id: The AI Prompt identifier for the Answer Generation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
1036
1160
|
:param association_configurations: The association configurations for overriding behavior on this AI Agent.
|
|
1037
1161
|
|
|
@@ -1045,6 +1169,7 @@ class CfnAIAgent(
|
|
|
1045
1169
|
from aws_cdk import aws_wisdom as wisdom
|
|
1046
1170
|
|
|
1047
1171
|
manual_search_aIAgent_configuration_property = wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
1172
|
+
answer_generation_ai_guardrail_id="answerGenerationAiGuardrailId",
|
|
1048
1173
|
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
1049
1174
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
1050
1175
|
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
@@ -1088,14 +1213,25 @@ class CfnAIAgent(
|
|
|
1088
1213
|
'''
|
|
1089
1214
|
if __debug__:
|
|
1090
1215
|
type_hints = typing.get_type_hints(_typecheckingstub__3346eba3a05ad4b31350bf2c54edbb6063a18cfea8a25ebbab80c402438f039a)
|
|
1216
|
+
check_type(argname="argument answer_generation_ai_guardrail_id", value=answer_generation_ai_guardrail_id, expected_type=type_hints["answer_generation_ai_guardrail_id"])
|
|
1091
1217
|
check_type(argname="argument answer_generation_ai_prompt_id", value=answer_generation_ai_prompt_id, expected_type=type_hints["answer_generation_ai_prompt_id"])
|
|
1092
1218
|
check_type(argname="argument association_configurations", value=association_configurations, expected_type=type_hints["association_configurations"])
|
|
1093
1219
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1220
|
+
if answer_generation_ai_guardrail_id is not None:
|
|
1221
|
+
self._values["answer_generation_ai_guardrail_id"] = answer_generation_ai_guardrail_id
|
|
1094
1222
|
if answer_generation_ai_prompt_id is not None:
|
|
1095
1223
|
self._values["answer_generation_ai_prompt_id"] = answer_generation_ai_prompt_id
|
|
1096
1224
|
if association_configurations is not None:
|
|
1097
1225
|
self._values["association_configurations"] = association_configurations
|
|
1098
1226
|
|
|
1227
|
+
@builtins.property
|
|
1228
|
+
def answer_generation_ai_guardrail_id(self) -> typing.Optional[builtins.str]:
|
|
1229
|
+
'''
|
|
1230
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-manualsearchaiagentconfiguration.html#cfn-wisdom-aiagent-manualsearchaiagentconfiguration-answergenerationaiguardrailid
|
|
1231
|
+
'''
|
|
1232
|
+
result = self._values.get("answer_generation_ai_guardrail_id")
|
|
1233
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1234
|
+
|
|
1099
1235
|
@builtins.property
|
|
1100
1236
|
def answer_generation_ai_prompt_id(self) -> typing.Optional[builtins.str]:
|
|
1101
1237
|
'''The AI Prompt identifier for the Answer Generation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
@@ -1212,6 +1348,149 @@ class CfnAIAgent(
|
|
|
1212
1348
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1213
1349
|
)
|
|
1214
1350
|
|
|
1351
|
+
@jsii.data_type(
|
|
1352
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.SelfServiceAIAgentConfigurationProperty",
|
|
1353
|
+
jsii_struct_bases=[],
|
|
1354
|
+
name_mapping={
|
|
1355
|
+
"association_configurations": "associationConfigurations",
|
|
1356
|
+
"self_service_ai_guardrail_id": "selfServiceAiGuardrailId",
|
|
1357
|
+
"self_service_answer_generation_ai_prompt_id": "selfServiceAnswerGenerationAiPromptId",
|
|
1358
|
+
"self_service_pre_processing_ai_prompt_id": "selfServicePreProcessingAiPromptId",
|
|
1359
|
+
},
|
|
1360
|
+
)
|
|
1361
|
+
class SelfServiceAIAgentConfigurationProperty:
|
|
1362
|
+
def __init__(
|
|
1363
|
+
self,
|
|
1364
|
+
*,
|
|
1365
|
+
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AssociationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1366
|
+
self_service_ai_guardrail_id: typing.Optional[builtins.str] = None,
|
|
1367
|
+
self_service_answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
1368
|
+
self_service_pre_processing_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
1369
|
+
) -> None:
|
|
1370
|
+
'''
|
|
1371
|
+
:param association_configurations:
|
|
1372
|
+
:param self_service_ai_guardrail_id:
|
|
1373
|
+
:param self_service_answer_generation_ai_prompt_id:
|
|
1374
|
+
:param self_service_pre_processing_ai_prompt_id:
|
|
1375
|
+
|
|
1376
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html
|
|
1377
|
+
:exampleMetadata: fixture=_generated
|
|
1378
|
+
|
|
1379
|
+
Example::
|
|
1380
|
+
|
|
1381
|
+
# The code below shows an example of how to instantiate this type.
|
|
1382
|
+
# The values are placeholders you should change.
|
|
1383
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1384
|
+
|
|
1385
|
+
self_service_aIAgent_configuration_property = wisdom.CfnAIAgent.SelfServiceAIAgentConfigurationProperty(
|
|
1386
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
1387
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
1388
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
1389
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
1390
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1391
|
+
key="key",
|
|
1392
|
+
|
|
1393
|
+
# the properties below are optional
|
|
1394
|
+
value="value"
|
|
1395
|
+
)],
|
|
1396
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
1397
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1398
|
+
key="key",
|
|
1399
|
+
|
|
1400
|
+
# the properties below are optional
|
|
1401
|
+
value="value"
|
|
1402
|
+
)],
|
|
1403
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1404
|
+
key="key",
|
|
1405
|
+
|
|
1406
|
+
# the properties below are optional
|
|
1407
|
+
value="value"
|
|
1408
|
+
)
|
|
1409
|
+
)],
|
|
1410
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1411
|
+
key="key",
|
|
1412
|
+
|
|
1413
|
+
# the properties below are optional
|
|
1414
|
+
value="value"
|
|
1415
|
+
)
|
|
1416
|
+
),
|
|
1417
|
+
max_results=123,
|
|
1418
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
1419
|
+
)
|
|
1420
|
+
),
|
|
1421
|
+
association_id="associationId",
|
|
1422
|
+
association_type="associationType"
|
|
1423
|
+
)],
|
|
1424
|
+
self_service_ai_guardrail_id="selfServiceAiGuardrailId",
|
|
1425
|
+
self_service_answer_generation_ai_prompt_id="selfServiceAnswerGenerationAiPromptId",
|
|
1426
|
+
self_service_pre_processing_ai_prompt_id="selfServicePreProcessingAiPromptId"
|
|
1427
|
+
)
|
|
1428
|
+
'''
|
|
1429
|
+
if __debug__:
|
|
1430
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c0833e248a2b0215b05dd66ce2879efe35c5180b459e725cf02acb524808c7ec)
|
|
1431
|
+
check_type(argname="argument association_configurations", value=association_configurations, expected_type=type_hints["association_configurations"])
|
|
1432
|
+
check_type(argname="argument self_service_ai_guardrail_id", value=self_service_ai_guardrail_id, expected_type=type_hints["self_service_ai_guardrail_id"])
|
|
1433
|
+
check_type(argname="argument self_service_answer_generation_ai_prompt_id", value=self_service_answer_generation_ai_prompt_id, expected_type=type_hints["self_service_answer_generation_ai_prompt_id"])
|
|
1434
|
+
check_type(argname="argument self_service_pre_processing_ai_prompt_id", value=self_service_pre_processing_ai_prompt_id, expected_type=type_hints["self_service_pre_processing_ai_prompt_id"])
|
|
1435
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1436
|
+
if association_configurations is not None:
|
|
1437
|
+
self._values["association_configurations"] = association_configurations
|
|
1438
|
+
if self_service_ai_guardrail_id is not None:
|
|
1439
|
+
self._values["self_service_ai_guardrail_id"] = self_service_ai_guardrail_id
|
|
1440
|
+
if self_service_answer_generation_ai_prompt_id is not None:
|
|
1441
|
+
self._values["self_service_answer_generation_ai_prompt_id"] = self_service_answer_generation_ai_prompt_id
|
|
1442
|
+
if self_service_pre_processing_ai_prompt_id is not None:
|
|
1443
|
+
self._values["self_service_pre_processing_ai_prompt_id"] = self_service_pre_processing_ai_prompt_id
|
|
1444
|
+
|
|
1445
|
+
@builtins.property
|
|
1446
|
+
def association_configurations(
|
|
1447
|
+
self,
|
|
1448
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationProperty"]]]]:
|
|
1449
|
+
'''
|
|
1450
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-associationconfigurations
|
|
1451
|
+
'''
|
|
1452
|
+
result = self._values.get("association_configurations")
|
|
1453
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationProperty"]]]], result)
|
|
1454
|
+
|
|
1455
|
+
@builtins.property
|
|
1456
|
+
def self_service_ai_guardrail_id(self) -> typing.Optional[builtins.str]:
|
|
1457
|
+
'''
|
|
1458
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-selfserviceaiguardrailid
|
|
1459
|
+
'''
|
|
1460
|
+
result = self._values.get("self_service_ai_guardrail_id")
|
|
1461
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1462
|
+
|
|
1463
|
+
@builtins.property
|
|
1464
|
+
def self_service_answer_generation_ai_prompt_id(
|
|
1465
|
+
self,
|
|
1466
|
+
) -> typing.Optional[builtins.str]:
|
|
1467
|
+
'''
|
|
1468
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-selfserviceanswergenerationaipromptid
|
|
1469
|
+
'''
|
|
1470
|
+
result = self._values.get("self_service_answer_generation_ai_prompt_id")
|
|
1471
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1472
|
+
|
|
1473
|
+
@builtins.property
|
|
1474
|
+
def self_service_pre_processing_ai_prompt_id(
|
|
1475
|
+
self,
|
|
1476
|
+
) -> typing.Optional[builtins.str]:
|
|
1477
|
+
'''
|
|
1478
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-selfserviceaiagentconfiguration.html#cfn-wisdom-aiagent-selfserviceaiagentconfiguration-selfservicepreprocessingaipromptid
|
|
1479
|
+
'''
|
|
1480
|
+
result = self._values.get("self_service_pre_processing_ai_prompt_id")
|
|
1481
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1482
|
+
|
|
1483
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1484
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1485
|
+
|
|
1486
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1487
|
+
return not (rhs == self)
|
|
1488
|
+
|
|
1489
|
+
def __repr__(self) -> str:
|
|
1490
|
+
return "SelfServiceAIAgentConfigurationProperty(%s)" % ", ".join(
|
|
1491
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1492
|
+
)
|
|
1493
|
+
|
|
1215
1494
|
@jsii.data_type(
|
|
1216
1495
|
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.TagConditionProperty",
|
|
1217
1496
|
jsii_struct_bases=[],
|
|
@@ -1449,6 +1728,7 @@ class CfnAIAgentProps:
|
|
|
1449
1728
|
assistant_id="assistantId",
|
|
1450
1729
|
configuration=wisdom.CfnAIAgent.AIAgentConfigurationProperty(
|
|
1451
1730
|
answer_recommendation_ai_agent_configuration=wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty(
|
|
1731
|
+
answer_generation_ai_guardrail_id="answerGenerationAiGuardrailId",
|
|
1452
1732
|
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
1453
1733
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
1454
1734
|
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
@@ -1492,6 +1772,7 @@ class CfnAIAgentProps:
|
|
|
1492
1772
|
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
1493
1773
|
),
|
|
1494
1774
|
manual_search_ai_agent_configuration=wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
1775
|
+
answer_generation_ai_guardrail_id="answerGenerationAiGuardrailId",
|
|
1495
1776
|
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
1496
1777
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
1497
1778
|
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
@@ -1520,110 +1801,1940 @@ class CfnAIAgentProps:
|
|
|
1520
1801
|
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1521
1802
|
key="key",
|
|
1522
1803
|
|
|
1523
|
-
# the properties below are optional
|
|
1524
|
-
value="value"
|
|
1525
|
-
)
|
|
1526
|
-
),
|
|
1527
|
-
max_results=123,
|
|
1528
|
-
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
1529
|
-
)
|
|
1530
|
-
),
|
|
1531
|
-
association_id="associationId",
|
|
1532
|
-
association_type="associationType"
|
|
1533
|
-
)]
|
|
1534
|
-
)
|
|
1535
|
-
|
|
1536
|
-
|
|
1804
|
+
# the properties below are optional
|
|
1805
|
+
value="value"
|
|
1806
|
+
)
|
|
1807
|
+
),
|
|
1808
|
+
max_results=123,
|
|
1809
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
1810
|
+
)
|
|
1811
|
+
),
|
|
1812
|
+
association_id="associationId",
|
|
1813
|
+
association_type="associationType"
|
|
1814
|
+
)]
|
|
1815
|
+
),
|
|
1816
|
+
self_service_ai_agent_configuration=wisdom.CfnAIAgent.SelfServiceAIAgentConfigurationProperty(
|
|
1817
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
1818
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
1819
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
1820
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
1821
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1822
|
+
key="key",
|
|
1823
|
+
|
|
1824
|
+
# the properties below are optional
|
|
1825
|
+
value="value"
|
|
1826
|
+
)],
|
|
1827
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
1828
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1829
|
+
key="key",
|
|
1830
|
+
|
|
1831
|
+
# the properties below are optional
|
|
1832
|
+
value="value"
|
|
1833
|
+
)],
|
|
1834
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1835
|
+
key="key",
|
|
1836
|
+
|
|
1837
|
+
# the properties below are optional
|
|
1838
|
+
value="value"
|
|
1839
|
+
)
|
|
1840
|
+
)],
|
|
1841
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1842
|
+
key="key",
|
|
1843
|
+
|
|
1844
|
+
# the properties below are optional
|
|
1845
|
+
value="value"
|
|
1846
|
+
)
|
|
1847
|
+
),
|
|
1848
|
+
max_results=123,
|
|
1849
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
1850
|
+
)
|
|
1851
|
+
),
|
|
1852
|
+
association_id="associationId",
|
|
1853
|
+
association_type="associationType"
|
|
1854
|
+
)],
|
|
1855
|
+
self_service_ai_guardrail_id="selfServiceAiGuardrailId",
|
|
1856
|
+
self_service_answer_generation_ai_prompt_id="selfServiceAnswerGenerationAiPromptId",
|
|
1857
|
+
self_service_pre_processing_ai_prompt_id="selfServicePreProcessingAiPromptId"
|
|
1858
|
+
)
|
|
1859
|
+
),
|
|
1860
|
+
type="type",
|
|
1861
|
+
|
|
1862
|
+
# the properties below are optional
|
|
1863
|
+
description="description",
|
|
1864
|
+
name="name",
|
|
1865
|
+
tags={
|
|
1866
|
+
"tags_key": "tags"
|
|
1867
|
+
}
|
|
1868
|
+
)
|
|
1869
|
+
'''
|
|
1870
|
+
if __debug__:
|
|
1871
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b1cda9a6282ec07c28c0ef49efdf8da8f079052d26edd32bbe15324644982756)
|
|
1872
|
+
check_type(argname="argument assistant_id", value=assistant_id, expected_type=type_hints["assistant_id"])
|
|
1873
|
+
check_type(argname="argument configuration", value=configuration, expected_type=type_hints["configuration"])
|
|
1874
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
1875
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
1876
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
1877
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1878
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1879
|
+
"assistant_id": assistant_id,
|
|
1880
|
+
"configuration": configuration,
|
|
1881
|
+
"type": type,
|
|
1882
|
+
}
|
|
1883
|
+
if description is not None:
|
|
1884
|
+
self._values["description"] = description
|
|
1885
|
+
if name is not None:
|
|
1886
|
+
self._values["name"] = name
|
|
1887
|
+
if tags is not None:
|
|
1888
|
+
self._values["tags"] = tags
|
|
1889
|
+
|
|
1890
|
+
@builtins.property
|
|
1891
|
+
def assistant_id(self) -> builtins.str:
|
|
1892
|
+
'''The identifier of the Amazon Q in Connect assistant.
|
|
1893
|
+
|
|
1894
|
+
Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
1895
|
+
|
|
1896
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-assistantid
|
|
1897
|
+
'''
|
|
1898
|
+
result = self._values.get("assistant_id")
|
|
1899
|
+
assert result is not None, "Required property 'assistant_id' is missing"
|
|
1900
|
+
return typing.cast(builtins.str, result)
|
|
1901
|
+
|
|
1902
|
+
@builtins.property
|
|
1903
|
+
def configuration(
|
|
1904
|
+
self,
|
|
1905
|
+
) -> typing.Union[_IResolvable_da3f097b, CfnAIAgent.AIAgentConfigurationProperty]:
|
|
1906
|
+
'''Configuration for the AI Agent.
|
|
1907
|
+
|
|
1908
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-configuration
|
|
1909
|
+
'''
|
|
1910
|
+
result = self._values.get("configuration")
|
|
1911
|
+
assert result is not None, "Required property 'configuration' is missing"
|
|
1912
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnAIAgent.AIAgentConfigurationProperty], result)
|
|
1913
|
+
|
|
1914
|
+
@builtins.property
|
|
1915
|
+
def type(self) -> builtins.str:
|
|
1916
|
+
'''The type of the AI Agent.
|
|
1917
|
+
|
|
1918
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-type
|
|
1919
|
+
'''
|
|
1920
|
+
result = self._values.get("type")
|
|
1921
|
+
assert result is not None, "Required property 'type' is missing"
|
|
1922
|
+
return typing.cast(builtins.str, result)
|
|
1923
|
+
|
|
1924
|
+
@builtins.property
|
|
1925
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
1926
|
+
'''The description of the AI Agent.
|
|
1927
|
+
|
|
1928
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-description
|
|
1929
|
+
'''
|
|
1930
|
+
result = self._values.get("description")
|
|
1931
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1932
|
+
|
|
1933
|
+
@builtins.property
|
|
1934
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
1935
|
+
'''The name of the AI Agent.
|
|
1936
|
+
|
|
1937
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-name
|
|
1938
|
+
'''
|
|
1939
|
+
result = self._values.get("name")
|
|
1940
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1941
|
+
|
|
1942
|
+
@builtins.property
|
|
1943
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
1944
|
+
'''The tags used to organize, track, or control access for this resource.
|
|
1945
|
+
|
|
1946
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-tags
|
|
1947
|
+
'''
|
|
1948
|
+
result = self._values.get("tags")
|
|
1949
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
1950
|
+
|
|
1951
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1952
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1953
|
+
|
|
1954
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1955
|
+
return not (rhs == self)
|
|
1956
|
+
|
|
1957
|
+
def __repr__(self) -> str:
|
|
1958
|
+
return "CfnAIAgentProps(%s)" % ", ".join(
|
|
1959
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1960
|
+
)
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
@jsii.implements(_IInspectable_c2943556)
|
|
1964
|
+
class CfnAIAgentVersion(
|
|
1965
|
+
_CfnResource_9df397a6,
|
|
1966
|
+
metaclass=jsii.JSIIMeta,
|
|
1967
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgentVersion",
|
|
1968
|
+
):
|
|
1969
|
+
'''Creates and Amazon Q in Connect AI Agent version.
|
|
1970
|
+
|
|
1971
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html
|
|
1972
|
+
:cloudformationResource: AWS::Wisdom::AIAgentVersion
|
|
1973
|
+
:exampleMetadata: fixture=_generated
|
|
1974
|
+
|
|
1975
|
+
Example::
|
|
1976
|
+
|
|
1977
|
+
# The code below shows an example of how to instantiate this type.
|
|
1978
|
+
# The values are placeholders you should change.
|
|
1979
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1980
|
+
|
|
1981
|
+
cfn_aIAgent_version = wisdom.CfnAIAgentVersion(self, "MyCfnAIAgentVersion",
|
|
1982
|
+
ai_agent_id="aiAgentId",
|
|
1983
|
+
assistant_id="assistantId",
|
|
1984
|
+
|
|
1985
|
+
# the properties below are optional
|
|
1986
|
+
modified_time_seconds=123
|
|
1987
|
+
)
|
|
1988
|
+
'''
|
|
1989
|
+
|
|
1990
|
+
def __init__(
|
|
1991
|
+
self,
|
|
1992
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1993
|
+
id: builtins.str,
|
|
1994
|
+
*,
|
|
1995
|
+
ai_agent_id: builtins.str,
|
|
1996
|
+
assistant_id: builtins.str,
|
|
1997
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
1998
|
+
) -> None:
|
|
1999
|
+
'''
|
|
2000
|
+
:param scope: Scope in which this resource is defined.
|
|
2001
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
2002
|
+
:param ai_agent_id: The identifier of the AI Agent.
|
|
2003
|
+
:param assistant_id:
|
|
2004
|
+
:param modified_time_seconds: The time the AI Agent version was last modified in seconds.
|
|
2005
|
+
'''
|
|
2006
|
+
if __debug__:
|
|
2007
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fa5a166c3d658d9410f80c3ff44a4aee88b29cb4def5f6c7d811c5b47f5ffb68)
|
|
2008
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
2009
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
2010
|
+
props = CfnAIAgentVersionProps(
|
|
2011
|
+
ai_agent_id=ai_agent_id,
|
|
2012
|
+
assistant_id=assistant_id,
|
|
2013
|
+
modified_time_seconds=modified_time_seconds,
|
|
2014
|
+
)
|
|
2015
|
+
|
|
2016
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
2017
|
+
|
|
2018
|
+
@jsii.member(jsii_name="inspect")
|
|
2019
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
2020
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
2021
|
+
|
|
2022
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
2023
|
+
'''
|
|
2024
|
+
if __debug__:
|
|
2025
|
+
type_hints = typing.get_type_hints(_typecheckingstub__eec3c0a8aee757b615051ab77f3708fef64acd48758d58f7b8801c7073f3ea55)
|
|
2026
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
2027
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
2028
|
+
|
|
2029
|
+
@jsii.member(jsii_name="renderProperties")
|
|
2030
|
+
def _render_properties(
|
|
2031
|
+
self,
|
|
2032
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
2033
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2034
|
+
'''
|
|
2035
|
+
:param props: -
|
|
2036
|
+
'''
|
|
2037
|
+
if __debug__:
|
|
2038
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1eec2d46406b6deb09ae2fc5f30e9bb5223c8f293091f02f7d13f928906953a1)
|
|
2039
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
2040
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
2041
|
+
|
|
2042
|
+
@jsii.python.classproperty
|
|
2043
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
2044
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
2045
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
2046
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
2047
|
+
|
|
2048
|
+
@builtins.property
|
|
2049
|
+
@jsii.member(jsii_name="attrAiAgentArn")
|
|
2050
|
+
def attr_ai_agent_arn(self) -> builtins.str:
|
|
2051
|
+
'''
|
|
2052
|
+
:cloudformationAttribute: AIAgentArn
|
|
2053
|
+
'''
|
|
2054
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiAgentArn"))
|
|
2055
|
+
|
|
2056
|
+
@builtins.property
|
|
2057
|
+
@jsii.member(jsii_name="attrAiAgentVersionId")
|
|
2058
|
+
def attr_ai_agent_version_id(self) -> builtins.str:
|
|
2059
|
+
'''
|
|
2060
|
+
:cloudformationAttribute: AIAgentVersionId
|
|
2061
|
+
'''
|
|
2062
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiAgentVersionId"))
|
|
2063
|
+
|
|
2064
|
+
@builtins.property
|
|
2065
|
+
@jsii.member(jsii_name="attrAssistantArn")
|
|
2066
|
+
def attr_assistant_arn(self) -> builtins.str:
|
|
2067
|
+
'''
|
|
2068
|
+
:cloudformationAttribute: AssistantArn
|
|
2069
|
+
'''
|
|
2070
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
2071
|
+
|
|
2072
|
+
@builtins.property
|
|
2073
|
+
@jsii.member(jsii_name="attrVersionNumber")
|
|
2074
|
+
def attr_version_number(self) -> _IResolvable_da3f097b:
|
|
2075
|
+
'''The version number for this AI Agent version.
|
|
2076
|
+
|
|
2077
|
+
:cloudformationAttribute: VersionNumber
|
|
2078
|
+
'''
|
|
2079
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrVersionNumber"))
|
|
2080
|
+
|
|
2081
|
+
@builtins.property
|
|
2082
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
2083
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2084
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
2085
|
+
|
|
2086
|
+
@builtins.property
|
|
2087
|
+
@jsii.member(jsii_name="aiAgentId")
|
|
2088
|
+
def ai_agent_id(self) -> builtins.str:
|
|
2089
|
+
'''The identifier of the AI Agent.'''
|
|
2090
|
+
return typing.cast(builtins.str, jsii.get(self, "aiAgentId"))
|
|
2091
|
+
|
|
2092
|
+
@ai_agent_id.setter
|
|
2093
|
+
def ai_agent_id(self, value: builtins.str) -> None:
|
|
2094
|
+
if __debug__:
|
|
2095
|
+
type_hints = typing.get_type_hints(_typecheckingstub__df356486e6fdad853cdc4c3aa5d62a5febffd1441d8e82f3a672bf4aef6e809d)
|
|
2096
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2097
|
+
jsii.set(self, "aiAgentId", value) # pyright: ignore[reportArgumentType]
|
|
2098
|
+
|
|
2099
|
+
@builtins.property
|
|
2100
|
+
@jsii.member(jsii_name="assistantId")
|
|
2101
|
+
def assistant_id(self) -> builtins.str:
|
|
2102
|
+
return typing.cast(builtins.str, jsii.get(self, "assistantId"))
|
|
2103
|
+
|
|
2104
|
+
@assistant_id.setter
|
|
2105
|
+
def assistant_id(self, value: builtins.str) -> None:
|
|
2106
|
+
if __debug__:
|
|
2107
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e3c00eedc618755e116ec4cf13129b9ecab51c03e0aa3285aa6c4eca0e7c9311)
|
|
2108
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2109
|
+
jsii.set(self, "assistantId", value) # pyright: ignore[reportArgumentType]
|
|
2110
|
+
|
|
2111
|
+
@builtins.property
|
|
2112
|
+
@jsii.member(jsii_name="modifiedTimeSeconds")
|
|
2113
|
+
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
2114
|
+
'''The time the AI Agent version was last modified in seconds.'''
|
|
2115
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "modifiedTimeSeconds"))
|
|
2116
|
+
|
|
2117
|
+
@modified_time_seconds.setter
|
|
2118
|
+
def modified_time_seconds(self, value: typing.Optional[jsii.Number]) -> None:
|
|
2119
|
+
if __debug__:
|
|
2120
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1cbb04d6951221f1cfd98bc4ebed42ba72b9f79a3ef0707bfcea622572f06cd2)
|
|
2121
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2122
|
+
jsii.set(self, "modifiedTimeSeconds", value) # pyright: ignore[reportArgumentType]
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
@jsii.data_type(
|
|
2126
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgentVersionProps",
|
|
2127
|
+
jsii_struct_bases=[],
|
|
2128
|
+
name_mapping={
|
|
2129
|
+
"ai_agent_id": "aiAgentId",
|
|
2130
|
+
"assistant_id": "assistantId",
|
|
2131
|
+
"modified_time_seconds": "modifiedTimeSeconds",
|
|
2132
|
+
},
|
|
2133
|
+
)
|
|
2134
|
+
class CfnAIAgentVersionProps:
|
|
2135
|
+
def __init__(
|
|
2136
|
+
self,
|
|
2137
|
+
*,
|
|
2138
|
+
ai_agent_id: builtins.str,
|
|
2139
|
+
assistant_id: builtins.str,
|
|
2140
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
2141
|
+
) -> None:
|
|
2142
|
+
'''Properties for defining a ``CfnAIAgentVersion``.
|
|
2143
|
+
|
|
2144
|
+
:param ai_agent_id: The identifier of the AI Agent.
|
|
2145
|
+
:param assistant_id:
|
|
2146
|
+
:param modified_time_seconds: The time the AI Agent version was last modified in seconds.
|
|
2147
|
+
|
|
2148
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html
|
|
2149
|
+
:exampleMetadata: fixture=_generated
|
|
2150
|
+
|
|
2151
|
+
Example::
|
|
2152
|
+
|
|
2153
|
+
# The code below shows an example of how to instantiate this type.
|
|
2154
|
+
# The values are placeholders you should change.
|
|
2155
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2156
|
+
|
|
2157
|
+
cfn_aIAgent_version_props = wisdom.CfnAIAgentVersionProps(
|
|
2158
|
+
ai_agent_id="aiAgentId",
|
|
2159
|
+
assistant_id="assistantId",
|
|
2160
|
+
|
|
2161
|
+
# the properties below are optional
|
|
2162
|
+
modified_time_seconds=123
|
|
2163
|
+
)
|
|
2164
|
+
'''
|
|
2165
|
+
if __debug__:
|
|
2166
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6ce55b0c69b9bc58cfcaeadaff04d7986170a5f73af9f6157ba1fe19c79b250e)
|
|
2167
|
+
check_type(argname="argument ai_agent_id", value=ai_agent_id, expected_type=type_hints["ai_agent_id"])
|
|
2168
|
+
check_type(argname="argument assistant_id", value=assistant_id, expected_type=type_hints["assistant_id"])
|
|
2169
|
+
check_type(argname="argument modified_time_seconds", value=modified_time_seconds, expected_type=type_hints["modified_time_seconds"])
|
|
2170
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2171
|
+
"ai_agent_id": ai_agent_id,
|
|
2172
|
+
"assistant_id": assistant_id,
|
|
2173
|
+
}
|
|
2174
|
+
if modified_time_seconds is not None:
|
|
2175
|
+
self._values["modified_time_seconds"] = modified_time_seconds
|
|
2176
|
+
|
|
2177
|
+
@builtins.property
|
|
2178
|
+
def ai_agent_id(self) -> builtins.str:
|
|
2179
|
+
'''The identifier of the AI Agent.
|
|
2180
|
+
|
|
2181
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html#cfn-wisdom-aiagentversion-aiagentid
|
|
2182
|
+
'''
|
|
2183
|
+
result = self._values.get("ai_agent_id")
|
|
2184
|
+
assert result is not None, "Required property 'ai_agent_id' is missing"
|
|
2185
|
+
return typing.cast(builtins.str, result)
|
|
2186
|
+
|
|
2187
|
+
@builtins.property
|
|
2188
|
+
def assistant_id(self) -> builtins.str:
|
|
2189
|
+
'''
|
|
2190
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html#cfn-wisdom-aiagentversion-assistantid
|
|
2191
|
+
'''
|
|
2192
|
+
result = self._values.get("assistant_id")
|
|
2193
|
+
assert result is not None, "Required property 'assistant_id' is missing"
|
|
2194
|
+
return typing.cast(builtins.str, result)
|
|
2195
|
+
|
|
2196
|
+
@builtins.property
|
|
2197
|
+
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
2198
|
+
'''The time the AI Agent version was last modified in seconds.
|
|
2199
|
+
|
|
2200
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html#cfn-wisdom-aiagentversion-modifiedtimeseconds
|
|
2201
|
+
'''
|
|
2202
|
+
result = self._values.get("modified_time_seconds")
|
|
2203
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
2204
|
+
|
|
2205
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2206
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2207
|
+
|
|
2208
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2209
|
+
return not (rhs == self)
|
|
2210
|
+
|
|
2211
|
+
def __repr__(self) -> str:
|
|
2212
|
+
return "CfnAIAgentVersionProps(%s)" % ", ".join(
|
|
2213
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2214
|
+
)
|
|
2215
|
+
|
|
2216
|
+
|
|
2217
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
2218
|
+
class CfnAIGuardrail(
|
|
2219
|
+
_CfnResource_9df397a6,
|
|
2220
|
+
metaclass=jsii.JSIIMeta,
|
|
2221
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail",
|
|
2222
|
+
):
|
|
2223
|
+
'''Definition of AWS::Wisdom::AIGuardrail Resource Type.
|
|
2224
|
+
|
|
2225
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html
|
|
2226
|
+
:cloudformationResource: AWS::Wisdom::AIGuardrail
|
|
2227
|
+
:exampleMetadata: fixture=_generated
|
|
2228
|
+
|
|
2229
|
+
Example::
|
|
2230
|
+
|
|
2231
|
+
# The code below shows an example of how to instantiate this type.
|
|
2232
|
+
# The values are placeholders you should change.
|
|
2233
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2234
|
+
|
|
2235
|
+
cfn_aIGuardrail = wisdom.CfnAIGuardrail(self, "MyCfnAIGuardrail",
|
|
2236
|
+
assistant_id="assistantId",
|
|
2237
|
+
blocked_input_messaging="blockedInputMessaging",
|
|
2238
|
+
blocked_outputs_messaging="blockedOutputsMessaging",
|
|
2239
|
+
|
|
2240
|
+
# the properties below are optional
|
|
2241
|
+
content_policy_config=wisdom.CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty(
|
|
2242
|
+
filters_config=[wisdom.CfnAIGuardrail.GuardrailContentFilterConfigProperty(
|
|
2243
|
+
input_strength="inputStrength",
|
|
2244
|
+
output_strength="outputStrength",
|
|
2245
|
+
type="type"
|
|
2246
|
+
)]
|
|
2247
|
+
),
|
|
2248
|
+
contextual_grounding_policy_config=wisdom.CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty(
|
|
2249
|
+
filters_config=[wisdom.CfnAIGuardrail.GuardrailContextualGroundingFilterConfigProperty(
|
|
2250
|
+
threshold=123,
|
|
2251
|
+
type="type"
|
|
2252
|
+
)]
|
|
2253
|
+
),
|
|
2254
|
+
description="description",
|
|
2255
|
+
name="name",
|
|
2256
|
+
sensitive_information_policy_config=wisdom.CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty(
|
|
2257
|
+
pii_entities_config=[wisdom.CfnAIGuardrail.GuardrailPiiEntityConfigProperty(
|
|
2258
|
+
action="action",
|
|
2259
|
+
type="type"
|
|
2260
|
+
)],
|
|
2261
|
+
regexes_config=[wisdom.CfnAIGuardrail.GuardrailRegexConfigProperty(
|
|
2262
|
+
action="action",
|
|
2263
|
+
name="name",
|
|
2264
|
+
pattern="pattern",
|
|
2265
|
+
|
|
2266
|
+
# the properties below are optional
|
|
2267
|
+
description="description"
|
|
2268
|
+
)]
|
|
2269
|
+
),
|
|
2270
|
+
tags={
|
|
2271
|
+
"tags_key": "tags"
|
|
2272
|
+
},
|
|
2273
|
+
topic_policy_config=wisdom.CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty(
|
|
2274
|
+
topics_config=[wisdom.CfnAIGuardrail.GuardrailTopicConfigProperty(
|
|
2275
|
+
definition="definition",
|
|
2276
|
+
name="name",
|
|
2277
|
+
type="type",
|
|
2278
|
+
|
|
2279
|
+
# the properties below are optional
|
|
2280
|
+
examples=["examples"]
|
|
2281
|
+
)]
|
|
2282
|
+
),
|
|
2283
|
+
word_policy_config=wisdom.CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty(
|
|
2284
|
+
managed_word_lists_config=[wisdom.CfnAIGuardrail.GuardrailManagedWordsConfigProperty(
|
|
2285
|
+
type="type"
|
|
2286
|
+
)],
|
|
2287
|
+
words_config=[wisdom.CfnAIGuardrail.GuardrailWordConfigProperty(
|
|
2288
|
+
text="text"
|
|
2289
|
+
)]
|
|
2290
|
+
)
|
|
2291
|
+
)
|
|
2292
|
+
'''
|
|
2293
|
+
|
|
2294
|
+
def __init__(
|
|
2295
|
+
self,
|
|
2296
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
2297
|
+
id: builtins.str,
|
|
2298
|
+
*,
|
|
2299
|
+
assistant_id: builtins.str,
|
|
2300
|
+
blocked_input_messaging: builtins.str,
|
|
2301
|
+
blocked_outputs_messaging: builtins.str,
|
|
2302
|
+
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2303
|
+
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2304
|
+
description: typing.Optional[builtins.str] = None,
|
|
2305
|
+
name: typing.Optional[builtins.str] = None,
|
|
2306
|
+
sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2307
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2308
|
+
topic_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2309
|
+
word_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2310
|
+
) -> None:
|
|
2311
|
+
'''
|
|
2312
|
+
:param scope: Scope in which this resource is defined.
|
|
2313
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
2314
|
+
:param assistant_id:
|
|
2315
|
+
:param blocked_input_messaging: Messaging for when violations are detected in text.
|
|
2316
|
+
:param blocked_outputs_messaging: Messaging for when violations are detected in text.
|
|
2317
|
+
:param content_policy_config: Content policy config for a guardrail.
|
|
2318
|
+
:param contextual_grounding_policy_config: Contextual grounding policy config for a guardrail.
|
|
2319
|
+
:param description: Description of the guardrail or its version.
|
|
2320
|
+
:param name:
|
|
2321
|
+
:param sensitive_information_policy_config: Sensitive information policy config for a guardrail.
|
|
2322
|
+
:param tags:
|
|
2323
|
+
:param topic_policy_config: Topic policy config for a guardrail.
|
|
2324
|
+
:param word_policy_config: Word policy config for a guardrail.
|
|
2325
|
+
'''
|
|
2326
|
+
if __debug__:
|
|
2327
|
+
type_hints = typing.get_type_hints(_typecheckingstub__76ea8e26c58eaed3d156b1860dd33693ef608e81ac9c96aa849d3236df58330b)
|
|
2328
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
2329
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
2330
|
+
props = CfnAIGuardrailProps(
|
|
2331
|
+
assistant_id=assistant_id,
|
|
2332
|
+
blocked_input_messaging=blocked_input_messaging,
|
|
2333
|
+
blocked_outputs_messaging=blocked_outputs_messaging,
|
|
2334
|
+
content_policy_config=content_policy_config,
|
|
2335
|
+
contextual_grounding_policy_config=contextual_grounding_policy_config,
|
|
2336
|
+
description=description,
|
|
2337
|
+
name=name,
|
|
2338
|
+
sensitive_information_policy_config=sensitive_information_policy_config,
|
|
2339
|
+
tags=tags,
|
|
2340
|
+
topic_policy_config=topic_policy_config,
|
|
2341
|
+
word_policy_config=word_policy_config,
|
|
2342
|
+
)
|
|
2343
|
+
|
|
2344
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
2345
|
+
|
|
2346
|
+
@jsii.member(jsii_name="inspect")
|
|
2347
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
2348
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
2349
|
+
|
|
2350
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
2351
|
+
'''
|
|
2352
|
+
if __debug__:
|
|
2353
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7fbdc5de28d3c991f79f98e3c345ade75e45ce50bdb72f64634f0031d019b3e0)
|
|
2354
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
2355
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
2356
|
+
|
|
2357
|
+
@jsii.member(jsii_name="renderProperties")
|
|
2358
|
+
def _render_properties(
|
|
2359
|
+
self,
|
|
2360
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
2361
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2362
|
+
'''
|
|
2363
|
+
:param props: -
|
|
2364
|
+
'''
|
|
2365
|
+
if __debug__:
|
|
2366
|
+
type_hints = typing.get_type_hints(_typecheckingstub__71dcd22a9ef76aa3a7c280a922b91cc6f9cd7b114a93623bb44dbc112e60ec54)
|
|
2367
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
2368
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
2369
|
+
|
|
2370
|
+
@jsii.python.classproperty
|
|
2371
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
2372
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
2373
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
2374
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
2375
|
+
|
|
2376
|
+
@builtins.property
|
|
2377
|
+
@jsii.member(jsii_name="attrAiGuardrailArn")
|
|
2378
|
+
def attr_ai_guardrail_arn(self) -> builtins.str:
|
|
2379
|
+
'''
|
|
2380
|
+
:cloudformationAttribute: AIGuardrailArn
|
|
2381
|
+
'''
|
|
2382
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiGuardrailArn"))
|
|
2383
|
+
|
|
2384
|
+
@builtins.property
|
|
2385
|
+
@jsii.member(jsii_name="attrAiGuardrailId")
|
|
2386
|
+
def attr_ai_guardrail_id(self) -> builtins.str:
|
|
2387
|
+
'''
|
|
2388
|
+
:cloudformationAttribute: AIGuardrailId
|
|
2389
|
+
'''
|
|
2390
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiGuardrailId"))
|
|
2391
|
+
|
|
2392
|
+
@builtins.property
|
|
2393
|
+
@jsii.member(jsii_name="attrAssistantArn")
|
|
2394
|
+
def attr_assistant_arn(self) -> builtins.str:
|
|
2395
|
+
'''
|
|
2396
|
+
:cloudformationAttribute: AssistantArn
|
|
2397
|
+
'''
|
|
2398
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
2399
|
+
|
|
2400
|
+
@builtins.property
|
|
2401
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
2402
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
2403
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
2404
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
2405
|
+
|
|
2406
|
+
@builtins.property
|
|
2407
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
2408
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2409
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
2410
|
+
|
|
2411
|
+
@builtins.property
|
|
2412
|
+
@jsii.member(jsii_name="assistantId")
|
|
2413
|
+
def assistant_id(self) -> builtins.str:
|
|
2414
|
+
return typing.cast(builtins.str, jsii.get(self, "assistantId"))
|
|
2415
|
+
|
|
2416
|
+
@assistant_id.setter
|
|
2417
|
+
def assistant_id(self, value: builtins.str) -> None:
|
|
2418
|
+
if __debug__:
|
|
2419
|
+
type_hints = typing.get_type_hints(_typecheckingstub__24f61192b3941f9e6c1d63e119a6d1f1ac8e4e31bfb9beda991736af85ba7edc)
|
|
2420
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2421
|
+
jsii.set(self, "assistantId", value) # pyright: ignore[reportArgumentType]
|
|
2422
|
+
|
|
2423
|
+
@builtins.property
|
|
2424
|
+
@jsii.member(jsii_name="blockedInputMessaging")
|
|
2425
|
+
def blocked_input_messaging(self) -> builtins.str:
|
|
2426
|
+
'''Messaging for when violations are detected in text.'''
|
|
2427
|
+
return typing.cast(builtins.str, jsii.get(self, "blockedInputMessaging"))
|
|
2428
|
+
|
|
2429
|
+
@blocked_input_messaging.setter
|
|
2430
|
+
def blocked_input_messaging(self, value: builtins.str) -> None:
|
|
2431
|
+
if __debug__:
|
|
2432
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8a3f10e3678233e9583c04468dd2fa9082d1099e59298bafe2cbef0c5d3a0a58)
|
|
2433
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2434
|
+
jsii.set(self, "blockedInputMessaging", value) # pyright: ignore[reportArgumentType]
|
|
2435
|
+
|
|
2436
|
+
@builtins.property
|
|
2437
|
+
@jsii.member(jsii_name="blockedOutputsMessaging")
|
|
2438
|
+
def blocked_outputs_messaging(self) -> builtins.str:
|
|
2439
|
+
'''Messaging for when violations are detected in text.'''
|
|
2440
|
+
return typing.cast(builtins.str, jsii.get(self, "blockedOutputsMessaging"))
|
|
2441
|
+
|
|
2442
|
+
@blocked_outputs_messaging.setter
|
|
2443
|
+
def blocked_outputs_messaging(self, value: builtins.str) -> None:
|
|
2444
|
+
if __debug__:
|
|
2445
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ab881749cd994050fdfe9190c2ad83d2d5995d553667532d5b3046c5784f3a46)
|
|
2446
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2447
|
+
jsii.set(self, "blockedOutputsMessaging", value) # pyright: ignore[reportArgumentType]
|
|
2448
|
+
|
|
2449
|
+
@builtins.property
|
|
2450
|
+
@jsii.member(jsii_name="contentPolicyConfig")
|
|
2451
|
+
def content_policy_config(
|
|
2452
|
+
self,
|
|
2453
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty"]]:
|
|
2454
|
+
'''Content policy config for a guardrail.'''
|
|
2455
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty"]], jsii.get(self, "contentPolicyConfig"))
|
|
2456
|
+
|
|
2457
|
+
@content_policy_config.setter
|
|
2458
|
+
def content_policy_config(
|
|
2459
|
+
self,
|
|
2460
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty"]],
|
|
2461
|
+
) -> None:
|
|
2462
|
+
if __debug__:
|
|
2463
|
+
type_hints = typing.get_type_hints(_typecheckingstub__af0b681055aef2365d977a2adefd9d9d8538dd4e7497bed81a040c4d3e6d1013)
|
|
2464
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2465
|
+
jsii.set(self, "contentPolicyConfig", value) # pyright: ignore[reportArgumentType]
|
|
2466
|
+
|
|
2467
|
+
@builtins.property
|
|
2468
|
+
@jsii.member(jsii_name="contextualGroundingPolicyConfig")
|
|
2469
|
+
def contextual_grounding_policy_config(
|
|
2470
|
+
self,
|
|
2471
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty"]]:
|
|
2472
|
+
'''Contextual grounding policy config for a guardrail.'''
|
|
2473
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty"]], jsii.get(self, "contextualGroundingPolicyConfig"))
|
|
2474
|
+
|
|
2475
|
+
@contextual_grounding_policy_config.setter
|
|
2476
|
+
def contextual_grounding_policy_config(
|
|
2477
|
+
self,
|
|
2478
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty"]],
|
|
2479
|
+
) -> None:
|
|
2480
|
+
if __debug__:
|
|
2481
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e6f963ab8c2eace9b626eca75747edc1eef5302cb2ca185e3c17ef190404aa68)
|
|
2482
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2483
|
+
jsii.set(self, "contextualGroundingPolicyConfig", value) # pyright: ignore[reportArgumentType]
|
|
2484
|
+
|
|
2485
|
+
@builtins.property
|
|
2486
|
+
@jsii.member(jsii_name="description")
|
|
2487
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
2488
|
+
'''Description of the guardrail or its version.'''
|
|
2489
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
2490
|
+
|
|
2491
|
+
@description.setter
|
|
2492
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
2493
|
+
if __debug__:
|
|
2494
|
+
type_hints = typing.get_type_hints(_typecheckingstub__13bc08d099c391203a59ca71c4b7738f433a55e9dce1b3ec45bc792ea35be252)
|
|
2495
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2496
|
+
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
2497
|
+
|
|
2498
|
+
@builtins.property
|
|
2499
|
+
@jsii.member(jsii_name="name")
|
|
2500
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
2501
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
2502
|
+
|
|
2503
|
+
@name.setter
|
|
2504
|
+
def name(self, value: typing.Optional[builtins.str]) -> None:
|
|
2505
|
+
if __debug__:
|
|
2506
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f5074d801992ea9ab774216aab1356ca4243d514bdf42abc16be1a957239bdca)
|
|
2507
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2508
|
+
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
2509
|
+
|
|
2510
|
+
@builtins.property
|
|
2511
|
+
@jsii.member(jsii_name="sensitiveInformationPolicyConfig")
|
|
2512
|
+
def sensitive_information_policy_config(
|
|
2513
|
+
self,
|
|
2514
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty"]]:
|
|
2515
|
+
'''Sensitive information policy config for a guardrail.'''
|
|
2516
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty"]], jsii.get(self, "sensitiveInformationPolicyConfig"))
|
|
2517
|
+
|
|
2518
|
+
@sensitive_information_policy_config.setter
|
|
2519
|
+
def sensitive_information_policy_config(
|
|
2520
|
+
self,
|
|
2521
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty"]],
|
|
2522
|
+
) -> None:
|
|
2523
|
+
if __debug__:
|
|
2524
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e94179fb829e66c40130c72071c91ec85dbd64f5e3e9cbe35c4966a40c3fefda)
|
|
2525
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2526
|
+
jsii.set(self, "sensitiveInformationPolicyConfig", value) # pyright: ignore[reportArgumentType]
|
|
2527
|
+
|
|
2528
|
+
@builtins.property
|
|
2529
|
+
@jsii.member(jsii_name="tags")
|
|
2530
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
2531
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
2532
|
+
|
|
2533
|
+
@tags.setter
|
|
2534
|
+
def tags(
|
|
2535
|
+
self,
|
|
2536
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
2537
|
+
) -> None:
|
|
2538
|
+
if __debug__:
|
|
2539
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4c295406d2cf871f486448002b556c3b63d9432e2114674011371326c1ba7c1b)
|
|
2540
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2541
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
2542
|
+
|
|
2543
|
+
@builtins.property
|
|
2544
|
+
@jsii.member(jsii_name="topicPolicyConfig")
|
|
2545
|
+
def topic_policy_config(
|
|
2546
|
+
self,
|
|
2547
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty"]]:
|
|
2548
|
+
'''Topic policy config for a guardrail.'''
|
|
2549
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty"]], jsii.get(self, "topicPolicyConfig"))
|
|
2550
|
+
|
|
2551
|
+
@topic_policy_config.setter
|
|
2552
|
+
def topic_policy_config(
|
|
2553
|
+
self,
|
|
2554
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty"]],
|
|
2555
|
+
) -> None:
|
|
2556
|
+
if __debug__:
|
|
2557
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a8bb338f6da5f73bdb4820c73ee887f612953bf85b2d8bd54e7541ea081f4f53)
|
|
2558
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2559
|
+
jsii.set(self, "topicPolicyConfig", value) # pyright: ignore[reportArgumentType]
|
|
2560
|
+
|
|
2561
|
+
@builtins.property
|
|
2562
|
+
@jsii.member(jsii_name="wordPolicyConfig")
|
|
2563
|
+
def word_policy_config(
|
|
2564
|
+
self,
|
|
2565
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty"]]:
|
|
2566
|
+
'''Word policy config for a guardrail.'''
|
|
2567
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty"]], jsii.get(self, "wordPolicyConfig"))
|
|
2568
|
+
|
|
2569
|
+
@word_policy_config.setter
|
|
2570
|
+
def word_policy_config(
|
|
2571
|
+
self,
|
|
2572
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty"]],
|
|
2573
|
+
) -> None:
|
|
2574
|
+
if __debug__:
|
|
2575
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f41825c818a79784ab378059125875eeee0524136b34267aa4caca170457da14)
|
|
2576
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2577
|
+
jsii.set(self, "wordPolicyConfig", value) # pyright: ignore[reportArgumentType]
|
|
2578
|
+
|
|
2579
|
+
@jsii.data_type(
|
|
2580
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty",
|
|
2581
|
+
jsii_struct_bases=[],
|
|
2582
|
+
name_mapping={"filters_config": "filtersConfig"},
|
|
2583
|
+
)
|
|
2584
|
+
class AIGuardrailContentPolicyConfigProperty:
|
|
2585
|
+
def __init__(
|
|
2586
|
+
self,
|
|
2587
|
+
*,
|
|
2588
|
+
filters_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.GuardrailContentFilterConfigProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
2589
|
+
) -> None:
|
|
2590
|
+
'''Content policy config for a guardrail.
|
|
2591
|
+
|
|
2592
|
+
:param filters_config: List of content filter configs in content policy.
|
|
2593
|
+
|
|
2594
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailcontentpolicyconfig.html
|
|
2595
|
+
:exampleMetadata: fixture=_generated
|
|
2596
|
+
|
|
2597
|
+
Example::
|
|
2598
|
+
|
|
2599
|
+
# The code below shows an example of how to instantiate this type.
|
|
2600
|
+
# The values are placeholders you should change.
|
|
2601
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2602
|
+
|
|
2603
|
+
a_iGuardrail_content_policy_config_property = wisdom.CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty(
|
|
2604
|
+
filters_config=[wisdom.CfnAIGuardrail.GuardrailContentFilterConfigProperty(
|
|
2605
|
+
input_strength="inputStrength",
|
|
2606
|
+
output_strength="outputStrength",
|
|
2607
|
+
type="type"
|
|
2608
|
+
)]
|
|
2609
|
+
)
|
|
2610
|
+
'''
|
|
2611
|
+
if __debug__:
|
|
2612
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e3b7764340b5366a000b7609f9e6c1b7857f2afd9dca723fd492a1e331b82b32)
|
|
2613
|
+
check_type(argname="argument filters_config", value=filters_config, expected_type=type_hints["filters_config"])
|
|
2614
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2615
|
+
"filters_config": filters_config,
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
@builtins.property
|
|
2619
|
+
def filters_config(
|
|
2620
|
+
self,
|
|
2621
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailContentFilterConfigProperty"]]]:
|
|
2622
|
+
'''List of content filter configs in content policy.
|
|
2623
|
+
|
|
2624
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailcontentpolicyconfig.html#cfn-wisdom-aiguardrail-aiguardrailcontentpolicyconfig-filtersconfig
|
|
2625
|
+
'''
|
|
2626
|
+
result = self._values.get("filters_config")
|
|
2627
|
+
assert result is not None, "Required property 'filters_config' is missing"
|
|
2628
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailContentFilterConfigProperty"]]], result)
|
|
2629
|
+
|
|
2630
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2631
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2632
|
+
|
|
2633
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2634
|
+
return not (rhs == self)
|
|
2635
|
+
|
|
2636
|
+
def __repr__(self) -> str:
|
|
2637
|
+
return "AIGuardrailContentPolicyConfigProperty(%s)" % ", ".join(
|
|
2638
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2639
|
+
)
|
|
2640
|
+
|
|
2641
|
+
@jsii.data_type(
|
|
2642
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty",
|
|
2643
|
+
jsii_struct_bases=[],
|
|
2644
|
+
name_mapping={"filters_config": "filtersConfig"},
|
|
2645
|
+
)
|
|
2646
|
+
class AIGuardrailContextualGroundingPolicyConfigProperty:
|
|
2647
|
+
def __init__(
|
|
2648
|
+
self,
|
|
2649
|
+
*,
|
|
2650
|
+
filters_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.GuardrailContextualGroundingFilterConfigProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
2651
|
+
) -> None:
|
|
2652
|
+
'''Contextual grounding policy config for a guardrail.
|
|
2653
|
+
|
|
2654
|
+
:param filters_config: List of contextual grounding filter configs.
|
|
2655
|
+
|
|
2656
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailcontextualgroundingpolicyconfig.html
|
|
2657
|
+
:exampleMetadata: fixture=_generated
|
|
2658
|
+
|
|
2659
|
+
Example::
|
|
2660
|
+
|
|
2661
|
+
# The code below shows an example of how to instantiate this type.
|
|
2662
|
+
# The values are placeholders you should change.
|
|
2663
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2664
|
+
|
|
2665
|
+
a_iGuardrail_contextual_grounding_policy_config_property = wisdom.CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty(
|
|
2666
|
+
filters_config=[wisdom.CfnAIGuardrail.GuardrailContextualGroundingFilterConfigProperty(
|
|
2667
|
+
threshold=123,
|
|
2668
|
+
type="type"
|
|
2669
|
+
)]
|
|
2670
|
+
)
|
|
2671
|
+
'''
|
|
2672
|
+
if __debug__:
|
|
2673
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b8b3e67068f407c2f3042d1380119651fa9edd8b97c312dbce41168ba5036ce3)
|
|
2674
|
+
check_type(argname="argument filters_config", value=filters_config, expected_type=type_hints["filters_config"])
|
|
2675
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2676
|
+
"filters_config": filters_config,
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
@builtins.property
|
|
2680
|
+
def filters_config(
|
|
2681
|
+
self,
|
|
2682
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailContextualGroundingFilterConfigProperty"]]]:
|
|
2683
|
+
'''List of contextual grounding filter configs.
|
|
2684
|
+
|
|
2685
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailcontextualgroundingpolicyconfig.html#cfn-wisdom-aiguardrail-aiguardrailcontextualgroundingpolicyconfig-filtersconfig
|
|
2686
|
+
'''
|
|
2687
|
+
result = self._values.get("filters_config")
|
|
2688
|
+
assert result is not None, "Required property 'filters_config' is missing"
|
|
2689
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailContextualGroundingFilterConfigProperty"]]], result)
|
|
2690
|
+
|
|
2691
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2692
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2693
|
+
|
|
2694
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2695
|
+
return not (rhs == self)
|
|
2696
|
+
|
|
2697
|
+
def __repr__(self) -> str:
|
|
2698
|
+
return "AIGuardrailContextualGroundingPolicyConfigProperty(%s)" % ", ".join(
|
|
2699
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2700
|
+
)
|
|
2701
|
+
|
|
2702
|
+
@jsii.data_type(
|
|
2703
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty",
|
|
2704
|
+
jsii_struct_bases=[],
|
|
2705
|
+
name_mapping={
|
|
2706
|
+
"pii_entities_config": "piiEntitiesConfig",
|
|
2707
|
+
"regexes_config": "regexesConfig",
|
|
2708
|
+
},
|
|
2709
|
+
)
|
|
2710
|
+
class AIGuardrailSensitiveInformationPolicyConfigProperty:
|
|
2711
|
+
def __init__(
|
|
2712
|
+
self,
|
|
2713
|
+
*,
|
|
2714
|
+
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
|
+
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
|
+
) -> None:
|
|
2717
|
+
'''Sensitive information policy config for a guardrail.
|
|
2718
|
+
|
|
2719
|
+
:param pii_entities_config: List of entities.
|
|
2720
|
+
:param regexes_config: List of regex.
|
|
2721
|
+
|
|
2722
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailsensitiveinformationpolicyconfig.html
|
|
2723
|
+
:exampleMetadata: fixture=_generated
|
|
2724
|
+
|
|
2725
|
+
Example::
|
|
2726
|
+
|
|
2727
|
+
# The code below shows an example of how to instantiate this type.
|
|
2728
|
+
# The values are placeholders you should change.
|
|
2729
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2730
|
+
|
|
2731
|
+
a_iGuardrail_sensitive_information_policy_config_property = wisdom.CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty(
|
|
2732
|
+
pii_entities_config=[wisdom.CfnAIGuardrail.GuardrailPiiEntityConfigProperty(
|
|
2733
|
+
action="action",
|
|
2734
|
+
type="type"
|
|
2735
|
+
)],
|
|
2736
|
+
regexes_config=[wisdom.CfnAIGuardrail.GuardrailRegexConfigProperty(
|
|
2737
|
+
action="action",
|
|
2738
|
+
name="name",
|
|
2739
|
+
pattern="pattern",
|
|
2740
|
+
|
|
2741
|
+
# the properties below are optional
|
|
2742
|
+
description="description"
|
|
2743
|
+
)]
|
|
2744
|
+
)
|
|
2745
|
+
'''
|
|
2746
|
+
if __debug__:
|
|
2747
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b1019f2767cdb75a66ac9e6dbb808d33ced4e1d098b227029ca4e8aaace98331)
|
|
2748
|
+
check_type(argname="argument pii_entities_config", value=pii_entities_config, expected_type=type_hints["pii_entities_config"])
|
|
2749
|
+
check_type(argname="argument regexes_config", value=regexes_config, expected_type=type_hints["regexes_config"])
|
|
2750
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2751
|
+
if pii_entities_config is not None:
|
|
2752
|
+
self._values["pii_entities_config"] = pii_entities_config
|
|
2753
|
+
if regexes_config is not None:
|
|
2754
|
+
self._values["regexes_config"] = regexes_config
|
|
2755
|
+
|
|
2756
|
+
@builtins.property
|
|
2757
|
+
def pii_entities_config(
|
|
2758
|
+
self,
|
|
2759
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailPiiEntityConfigProperty"]]]]:
|
|
2760
|
+
'''List of entities.
|
|
2761
|
+
|
|
2762
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailsensitiveinformationpolicyconfig.html#cfn-wisdom-aiguardrail-aiguardrailsensitiveinformationpolicyconfig-piientitiesconfig
|
|
2763
|
+
'''
|
|
2764
|
+
result = self._values.get("pii_entities_config")
|
|
2765
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailPiiEntityConfigProperty"]]]], result)
|
|
2766
|
+
|
|
2767
|
+
@builtins.property
|
|
2768
|
+
def regexes_config(
|
|
2769
|
+
self,
|
|
2770
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailRegexConfigProperty"]]]]:
|
|
2771
|
+
'''List of regex.
|
|
2772
|
+
|
|
2773
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailsensitiveinformationpolicyconfig.html#cfn-wisdom-aiguardrail-aiguardrailsensitiveinformationpolicyconfig-regexesconfig
|
|
2774
|
+
'''
|
|
2775
|
+
result = self._values.get("regexes_config")
|
|
2776
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailRegexConfigProperty"]]]], result)
|
|
2777
|
+
|
|
2778
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2779
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2780
|
+
|
|
2781
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2782
|
+
return not (rhs == self)
|
|
2783
|
+
|
|
2784
|
+
def __repr__(self) -> str:
|
|
2785
|
+
return "AIGuardrailSensitiveInformationPolicyConfigProperty(%s)" % ", ".join(
|
|
2786
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2787
|
+
)
|
|
2788
|
+
|
|
2789
|
+
@jsii.data_type(
|
|
2790
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty",
|
|
2791
|
+
jsii_struct_bases=[],
|
|
2792
|
+
name_mapping={"topics_config": "topicsConfig"},
|
|
2793
|
+
)
|
|
2794
|
+
class AIGuardrailTopicPolicyConfigProperty:
|
|
2795
|
+
def __init__(
|
|
2796
|
+
self,
|
|
2797
|
+
*,
|
|
2798
|
+
topics_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.GuardrailTopicConfigProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
2799
|
+
) -> None:
|
|
2800
|
+
'''Topic policy config for a guardrail.
|
|
2801
|
+
|
|
2802
|
+
:param topics_config: List of topic configs in topic policy.
|
|
2803
|
+
|
|
2804
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailtopicpolicyconfig.html
|
|
2805
|
+
:exampleMetadata: fixture=_generated
|
|
2806
|
+
|
|
2807
|
+
Example::
|
|
2808
|
+
|
|
2809
|
+
# The code below shows an example of how to instantiate this type.
|
|
2810
|
+
# The values are placeholders you should change.
|
|
2811
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2812
|
+
|
|
2813
|
+
a_iGuardrail_topic_policy_config_property = wisdom.CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty(
|
|
2814
|
+
topics_config=[wisdom.CfnAIGuardrail.GuardrailTopicConfigProperty(
|
|
2815
|
+
definition="definition",
|
|
2816
|
+
name="name",
|
|
2817
|
+
type="type",
|
|
2818
|
+
|
|
2819
|
+
# the properties below are optional
|
|
2820
|
+
examples=["examples"]
|
|
2821
|
+
)]
|
|
2822
|
+
)
|
|
2823
|
+
'''
|
|
2824
|
+
if __debug__:
|
|
2825
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c9fd7602104f512891874b785e4236b2dd9131ea684d5c3e16792b3e5f9a3767)
|
|
2826
|
+
check_type(argname="argument topics_config", value=topics_config, expected_type=type_hints["topics_config"])
|
|
2827
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2828
|
+
"topics_config": topics_config,
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
@builtins.property
|
|
2832
|
+
def topics_config(
|
|
2833
|
+
self,
|
|
2834
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailTopicConfigProperty"]]]:
|
|
2835
|
+
'''List of topic configs in topic policy.
|
|
2836
|
+
|
|
2837
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailtopicpolicyconfig.html#cfn-wisdom-aiguardrail-aiguardrailtopicpolicyconfig-topicsconfig
|
|
2838
|
+
'''
|
|
2839
|
+
result = self._values.get("topics_config")
|
|
2840
|
+
assert result is not None, "Required property 'topics_config' is missing"
|
|
2841
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailTopicConfigProperty"]]], result)
|
|
2842
|
+
|
|
2843
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2844
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2845
|
+
|
|
2846
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2847
|
+
return not (rhs == self)
|
|
2848
|
+
|
|
2849
|
+
def __repr__(self) -> str:
|
|
2850
|
+
return "AIGuardrailTopicPolicyConfigProperty(%s)" % ", ".join(
|
|
2851
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2852
|
+
)
|
|
2853
|
+
|
|
2854
|
+
@jsii.data_type(
|
|
2855
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty",
|
|
2856
|
+
jsii_struct_bases=[],
|
|
2857
|
+
name_mapping={
|
|
2858
|
+
"managed_word_lists_config": "managedWordListsConfig",
|
|
2859
|
+
"words_config": "wordsConfig",
|
|
2860
|
+
},
|
|
2861
|
+
)
|
|
2862
|
+
class AIGuardrailWordPolicyConfigProperty:
|
|
2863
|
+
def __init__(
|
|
2864
|
+
self,
|
|
2865
|
+
*,
|
|
2866
|
+
managed_word_lists_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.GuardrailManagedWordsConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2867
|
+
words_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIGuardrail.GuardrailWordConfigProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
2868
|
+
) -> None:
|
|
2869
|
+
'''Word policy config for a guardrail.
|
|
2870
|
+
|
|
2871
|
+
:param managed_word_lists_config: A config for the list of managed words.
|
|
2872
|
+
:param words_config: List of custom word configs.
|
|
2873
|
+
|
|
2874
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailwordpolicyconfig.html
|
|
2875
|
+
:exampleMetadata: fixture=_generated
|
|
2876
|
+
|
|
2877
|
+
Example::
|
|
2878
|
+
|
|
2879
|
+
# The code below shows an example of how to instantiate this type.
|
|
2880
|
+
# The values are placeholders you should change.
|
|
2881
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2882
|
+
|
|
2883
|
+
a_iGuardrail_word_policy_config_property = wisdom.CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty(
|
|
2884
|
+
managed_word_lists_config=[wisdom.CfnAIGuardrail.GuardrailManagedWordsConfigProperty(
|
|
2885
|
+
type="type"
|
|
2886
|
+
)],
|
|
2887
|
+
words_config=[wisdom.CfnAIGuardrail.GuardrailWordConfigProperty(
|
|
2888
|
+
text="text"
|
|
2889
|
+
)]
|
|
2890
|
+
)
|
|
2891
|
+
'''
|
|
2892
|
+
if __debug__:
|
|
2893
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ddb251dfe6c0ff4b7a273bddeb253f5fc859e92197286c2d46566bdebdb6837d)
|
|
2894
|
+
check_type(argname="argument managed_word_lists_config", value=managed_word_lists_config, expected_type=type_hints["managed_word_lists_config"])
|
|
2895
|
+
check_type(argname="argument words_config", value=words_config, expected_type=type_hints["words_config"])
|
|
2896
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2897
|
+
if managed_word_lists_config is not None:
|
|
2898
|
+
self._values["managed_word_lists_config"] = managed_word_lists_config
|
|
2899
|
+
if words_config is not None:
|
|
2900
|
+
self._values["words_config"] = words_config
|
|
2901
|
+
|
|
2902
|
+
@builtins.property
|
|
2903
|
+
def managed_word_lists_config(
|
|
2904
|
+
self,
|
|
2905
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailManagedWordsConfigProperty"]]]]:
|
|
2906
|
+
'''A config for the list of managed words.
|
|
2907
|
+
|
|
2908
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailwordpolicyconfig.html#cfn-wisdom-aiguardrail-aiguardrailwordpolicyconfig-managedwordlistsconfig
|
|
2909
|
+
'''
|
|
2910
|
+
result = self._values.get("managed_word_lists_config")
|
|
2911
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailManagedWordsConfigProperty"]]]], result)
|
|
2912
|
+
|
|
2913
|
+
@builtins.property
|
|
2914
|
+
def words_config(
|
|
2915
|
+
self,
|
|
2916
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailWordConfigProperty"]]]]:
|
|
2917
|
+
'''List of custom word configs.
|
|
2918
|
+
|
|
2919
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-aiguardrailwordpolicyconfig.html#cfn-wisdom-aiguardrail-aiguardrailwordpolicyconfig-wordsconfig
|
|
2920
|
+
'''
|
|
2921
|
+
result = self._values.get("words_config")
|
|
2922
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIGuardrail.GuardrailWordConfigProperty"]]]], result)
|
|
2923
|
+
|
|
2924
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2925
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2926
|
+
|
|
2927
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2928
|
+
return not (rhs == self)
|
|
2929
|
+
|
|
2930
|
+
def __repr__(self) -> str:
|
|
2931
|
+
return "AIGuardrailWordPolicyConfigProperty(%s)" % ", ".join(
|
|
2932
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2933
|
+
)
|
|
2934
|
+
|
|
2935
|
+
@jsii.data_type(
|
|
2936
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.GuardrailContentFilterConfigProperty",
|
|
2937
|
+
jsii_struct_bases=[],
|
|
2938
|
+
name_mapping={
|
|
2939
|
+
"input_strength": "inputStrength",
|
|
2940
|
+
"output_strength": "outputStrength",
|
|
2941
|
+
"type": "type",
|
|
2942
|
+
},
|
|
2943
|
+
)
|
|
2944
|
+
class GuardrailContentFilterConfigProperty:
|
|
2945
|
+
def __init__(
|
|
2946
|
+
self,
|
|
2947
|
+
*,
|
|
2948
|
+
input_strength: builtins.str,
|
|
2949
|
+
output_strength: builtins.str,
|
|
2950
|
+
type: builtins.str,
|
|
2951
|
+
) -> None:
|
|
2952
|
+
'''Content filter config in content policy.
|
|
2953
|
+
|
|
2954
|
+
:param input_strength: Strength for filters.
|
|
2955
|
+
:param output_strength: Strength for filters.
|
|
2956
|
+
:param type: Type of text to text filter in content policy.
|
|
2957
|
+
|
|
2958
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontentfilterconfig.html
|
|
2959
|
+
:exampleMetadata: fixture=_generated
|
|
2960
|
+
|
|
2961
|
+
Example::
|
|
2962
|
+
|
|
2963
|
+
# The code below shows an example of how to instantiate this type.
|
|
2964
|
+
# The values are placeholders you should change.
|
|
2965
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2966
|
+
|
|
2967
|
+
guardrail_content_filter_config_property = wisdom.CfnAIGuardrail.GuardrailContentFilterConfigProperty(
|
|
2968
|
+
input_strength="inputStrength",
|
|
2969
|
+
output_strength="outputStrength",
|
|
2970
|
+
type="type"
|
|
2971
|
+
)
|
|
2972
|
+
'''
|
|
2973
|
+
if __debug__:
|
|
2974
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e47d1e764075659f79a8e65f93d2613f269a815edddfaa5255b97587dc9f2a91)
|
|
2975
|
+
check_type(argname="argument input_strength", value=input_strength, expected_type=type_hints["input_strength"])
|
|
2976
|
+
check_type(argname="argument output_strength", value=output_strength, expected_type=type_hints["output_strength"])
|
|
2977
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
2978
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2979
|
+
"input_strength": input_strength,
|
|
2980
|
+
"output_strength": output_strength,
|
|
2981
|
+
"type": type,
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
@builtins.property
|
|
2985
|
+
def input_strength(self) -> builtins.str:
|
|
2986
|
+
'''Strength for filters.
|
|
2987
|
+
|
|
2988
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontentfilterconfig.html#cfn-wisdom-aiguardrail-guardrailcontentfilterconfig-inputstrength
|
|
2989
|
+
'''
|
|
2990
|
+
result = self._values.get("input_strength")
|
|
2991
|
+
assert result is not None, "Required property 'input_strength' is missing"
|
|
2992
|
+
return typing.cast(builtins.str, result)
|
|
2993
|
+
|
|
2994
|
+
@builtins.property
|
|
2995
|
+
def output_strength(self) -> builtins.str:
|
|
2996
|
+
'''Strength for filters.
|
|
2997
|
+
|
|
2998
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontentfilterconfig.html#cfn-wisdom-aiguardrail-guardrailcontentfilterconfig-outputstrength
|
|
2999
|
+
'''
|
|
3000
|
+
result = self._values.get("output_strength")
|
|
3001
|
+
assert result is not None, "Required property 'output_strength' is missing"
|
|
3002
|
+
return typing.cast(builtins.str, result)
|
|
3003
|
+
|
|
3004
|
+
@builtins.property
|
|
3005
|
+
def type(self) -> builtins.str:
|
|
3006
|
+
'''Type of text to text filter in content policy.
|
|
3007
|
+
|
|
3008
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontentfilterconfig.html#cfn-wisdom-aiguardrail-guardrailcontentfilterconfig-type
|
|
3009
|
+
'''
|
|
3010
|
+
result = self._values.get("type")
|
|
3011
|
+
assert result is not None, "Required property 'type' is missing"
|
|
3012
|
+
return typing.cast(builtins.str, result)
|
|
3013
|
+
|
|
3014
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3015
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3016
|
+
|
|
3017
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3018
|
+
return not (rhs == self)
|
|
3019
|
+
|
|
3020
|
+
def __repr__(self) -> str:
|
|
3021
|
+
return "GuardrailContentFilterConfigProperty(%s)" % ", ".join(
|
|
3022
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3023
|
+
)
|
|
3024
|
+
|
|
3025
|
+
@jsii.data_type(
|
|
3026
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.GuardrailContextualGroundingFilterConfigProperty",
|
|
3027
|
+
jsii_struct_bases=[],
|
|
3028
|
+
name_mapping={"threshold": "threshold", "type": "type"},
|
|
3029
|
+
)
|
|
3030
|
+
class GuardrailContextualGroundingFilterConfigProperty:
|
|
3031
|
+
def __init__(self, *, threshold: jsii.Number, type: builtins.str) -> None:
|
|
3032
|
+
'''A config for grounding filter.
|
|
3033
|
+
|
|
3034
|
+
:param threshold: The threshold for this filter. Default: - 0
|
|
3035
|
+
:param type: Type of contextual grounding filter.
|
|
3036
|
+
|
|
3037
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontextualgroundingfilterconfig.html
|
|
3038
|
+
:exampleMetadata: fixture=_generated
|
|
3039
|
+
|
|
3040
|
+
Example::
|
|
3041
|
+
|
|
3042
|
+
# The code below shows an example of how to instantiate this type.
|
|
3043
|
+
# The values are placeholders you should change.
|
|
3044
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
3045
|
+
|
|
3046
|
+
guardrail_contextual_grounding_filter_config_property = wisdom.CfnAIGuardrail.GuardrailContextualGroundingFilterConfigProperty(
|
|
3047
|
+
threshold=123,
|
|
3048
|
+
type="type"
|
|
3049
|
+
)
|
|
3050
|
+
'''
|
|
3051
|
+
if __debug__:
|
|
3052
|
+
type_hints = typing.get_type_hints(_typecheckingstub__57e4e4233989e39271f6f5b1254ba49184eaf97a79f1df28337cd59a6a5ce09f)
|
|
3053
|
+
check_type(argname="argument threshold", value=threshold, expected_type=type_hints["threshold"])
|
|
3054
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
3055
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3056
|
+
"threshold": threshold,
|
|
3057
|
+
"type": type,
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
@builtins.property
|
|
3061
|
+
def threshold(self) -> jsii.Number:
|
|
3062
|
+
'''The threshold for this filter.
|
|
3063
|
+
|
|
3064
|
+
:default: - 0
|
|
3065
|
+
|
|
3066
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontextualgroundingfilterconfig.html#cfn-wisdom-aiguardrail-guardrailcontextualgroundingfilterconfig-threshold
|
|
3067
|
+
'''
|
|
3068
|
+
result = self._values.get("threshold")
|
|
3069
|
+
assert result is not None, "Required property 'threshold' is missing"
|
|
3070
|
+
return typing.cast(jsii.Number, result)
|
|
3071
|
+
|
|
3072
|
+
@builtins.property
|
|
3073
|
+
def type(self) -> builtins.str:
|
|
3074
|
+
'''Type of contextual grounding filter.
|
|
3075
|
+
|
|
3076
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailcontextualgroundingfilterconfig.html#cfn-wisdom-aiguardrail-guardrailcontextualgroundingfilterconfig-type
|
|
3077
|
+
'''
|
|
3078
|
+
result = self._values.get("type")
|
|
3079
|
+
assert result is not None, "Required property 'type' is missing"
|
|
3080
|
+
return typing.cast(builtins.str, result)
|
|
3081
|
+
|
|
3082
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3083
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3084
|
+
|
|
3085
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3086
|
+
return not (rhs == self)
|
|
3087
|
+
|
|
3088
|
+
def __repr__(self) -> str:
|
|
3089
|
+
return "GuardrailContextualGroundingFilterConfigProperty(%s)" % ", ".join(
|
|
3090
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3091
|
+
)
|
|
3092
|
+
|
|
3093
|
+
@jsii.data_type(
|
|
3094
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.GuardrailManagedWordsConfigProperty",
|
|
3095
|
+
jsii_struct_bases=[],
|
|
3096
|
+
name_mapping={"type": "type"},
|
|
3097
|
+
)
|
|
3098
|
+
class GuardrailManagedWordsConfigProperty:
|
|
3099
|
+
def __init__(self, *, type: builtins.str) -> None:
|
|
3100
|
+
'''A managed words config.
|
|
3101
|
+
|
|
3102
|
+
:param type: Options for managed words.
|
|
3103
|
+
|
|
3104
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailmanagedwordsconfig.html
|
|
3105
|
+
:exampleMetadata: fixture=_generated
|
|
3106
|
+
|
|
3107
|
+
Example::
|
|
3108
|
+
|
|
3109
|
+
# The code below shows an example of how to instantiate this type.
|
|
3110
|
+
# The values are placeholders you should change.
|
|
3111
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
3112
|
+
|
|
3113
|
+
guardrail_managed_words_config_property = wisdom.CfnAIGuardrail.GuardrailManagedWordsConfigProperty(
|
|
3114
|
+
type="type"
|
|
3115
|
+
)
|
|
3116
|
+
'''
|
|
3117
|
+
if __debug__:
|
|
3118
|
+
type_hints = typing.get_type_hints(_typecheckingstub__dfc19deb6dd371180a4bb8d9f0990f6132afb22d46b71ae1e32e4ffdbe4ef567)
|
|
3119
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
3120
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3121
|
+
"type": type,
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
@builtins.property
|
|
3125
|
+
def type(self) -> builtins.str:
|
|
3126
|
+
'''Options for managed words.
|
|
3127
|
+
|
|
3128
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailmanagedwordsconfig.html#cfn-wisdom-aiguardrail-guardrailmanagedwordsconfig-type
|
|
3129
|
+
'''
|
|
3130
|
+
result = self._values.get("type")
|
|
3131
|
+
assert result is not None, "Required property 'type' is missing"
|
|
3132
|
+
return typing.cast(builtins.str, result)
|
|
3133
|
+
|
|
3134
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3135
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3136
|
+
|
|
3137
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3138
|
+
return not (rhs == self)
|
|
3139
|
+
|
|
3140
|
+
def __repr__(self) -> str:
|
|
3141
|
+
return "GuardrailManagedWordsConfigProperty(%s)" % ", ".join(
|
|
3142
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3143
|
+
)
|
|
3144
|
+
|
|
3145
|
+
@jsii.data_type(
|
|
3146
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.GuardrailPiiEntityConfigProperty",
|
|
3147
|
+
jsii_struct_bases=[],
|
|
3148
|
+
name_mapping={"action": "action", "type": "type"},
|
|
3149
|
+
)
|
|
3150
|
+
class GuardrailPiiEntityConfigProperty:
|
|
3151
|
+
def __init__(self, *, action: builtins.str, type: builtins.str) -> None:
|
|
3152
|
+
'''Pii entity configuration.
|
|
3153
|
+
|
|
3154
|
+
:param action: Options for sensitive information action.
|
|
3155
|
+
:param type: The currently supported PII entities.
|
|
3156
|
+
|
|
3157
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailpiientityconfig.html
|
|
3158
|
+
:exampleMetadata: fixture=_generated
|
|
3159
|
+
|
|
3160
|
+
Example::
|
|
3161
|
+
|
|
3162
|
+
# The code below shows an example of how to instantiate this type.
|
|
3163
|
+
# The values are placeholders you should change.
|
|
3164
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
3165
|
+
|
|
3166
|
+
guardrail_pii_entity_config_property = wisdom.CfnAIGuardrail.GuardrailPiiEntityConfigProperty(
|
|
3167
|
+
action="action",
|
|
3168
|
+
type="type"
|
|
3169
|
+
)
|
|
3170
|
+
'''
|
|
3171
|
+
if __debug__:
|
|
3172
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c764d4acc62cb140dda0e1c7dbd2f6738df34c8fb43ef4cf0d9a9941f03af4c1)
|
|
3173
|
+
check_type(argname="argument action", value=action, expected_type=type_hints["action"])
|
|
3174
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
3175
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3176
|
+
"action": action,
|
|
3177
|
+
"type": type,
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
@builtins.property
|
|
3181
|
+
def action(self) -> builtins.str:
|
|
3182
|
+
'''Options for sensitive information action.
|
|
3183
|
+
|
|
3184
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailpiientityconfig.html#cfn-wisdom-aiguardrail-guardrailpiientityconfig-action
|
|
3185
|
+
'''
|
|
3186
|
+
result = self._values.get("action")
|
|
3187
|
+
assert result is not None, "Required property 'action' is missing"
|
|
3188
|
+
return typing.cast(builtins.str, result)
|
|
3189
|
+
|
|
3190
|
+
@builtins.property
|
|
3191
|
+
def type(self) -> builtins.str:
|
|
3192
|
+
'''The currently supported PII entities.
|
|
3193
|
+
|
|
3194
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailpiientityconfig.html#cfn-wisdom-aiguardrail-guardrailpiientityconfig-type
|
|
3195
|
+
'''
|
|
3196
|
+
result = self._values.get("type")
|
|
3197
|
+
assert result is not None, "Required property 'type' is missing"
|
|
3198
|
+
return typing.cast(builtins.str, result)
|
|
3199
|
+
|
|
3200
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3201
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3202
|
+
|
|
3203
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3204
|
+
return not (rhs == self)
|
|
3205
|
+
|
|
3206
|
+
def __repr__(self) -> str:
|
|
3207
|
+
return "GuardrailPiiEntityConfigProperty(%s)" % ", ".join(
|
|
3208
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3209
|
+
)
|
|
3210
|
+
|
|
3211
|
+
@jsii.data_type(
|
|
3212
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.GuardrailRegexConfigProperty",
|
|
3213
|
+
jsii_struct_bases=[],
|
|
3214
|
+
name_mapping={
|
|
3215
|
+
"action": "action",
|
|
3216
|
+
"name": "name",
|
|
3217
|
+
"pattern": "pattern",
|
|
3218
|
+
"description": "description",
|
|
3219
|
+
},
|
|
3220
|
+
)
|
|
3221
|
+
class GuardrailRegexConfigProperty:
|
|
3222
|
+
def __init__(
|
|
3223
|
+
self,
|
|
3224
|
+
*,
|
|
3225
|
+
action: builtins.str,
|
|
3226
|
+
name: builtins.str,
|
|
3227
|
+
pattern: builtins.str,
|
|
3228
|
+
description: typing.Optional[builtins.str] = None,
|
|
3229
|
+
) -> None:
|
|
3230
|
+
'''A regex configuration.
|
|
3231
|
+
|
|
3232
|
+
:param action: Options for sensitive information action.
|
|
3233
|
+
:param name: The regex name.
|
|
3234
|
+
:param pattern: The regex pattern.
|
|
3235
|
+
:param description: The regex description.
|
|
3236
|
+
|
|
3237
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailregexconfig.html
|
|
3238
|
+
:exampleMetadata: fixture=_generated
|
|
3239
|
+
|
|
3240
|
+
Example::
|
|
3241
|
+
|
|
3242
|
+
# The code below shows an example of how to instantiate this type.
|
|
3243
|
+
# The values are placeholders you should change.
|
|
3244
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
3245
|
+
|
|
3246
|
+
guardrail_regex_config_property = wisdom.CfnAIGuardrail.GuardrailRegexConfigProperty(
|
|
3247
|
+
action="action",
|
|
3248
|
+
name="name",
|
|
3249
|
+
pattern="pattern",
|
|
3250
|
+
|
|
3251
|
+
# the properties below are optional
|
|
3252
|
+
description="description"
|
|
3253
|
+
)
|
|
3254
|
+
'''
|
|
3255
|
+
if __debug__:
|
|
3256
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5a28c8495c26410e3b614188ff183453c712c882484a101d2d68ce3d2a925385)
|
|
3257
|
+
check_type(argname="argument action", value=action, expected_type=type_hints["action"])
|
|
3258
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
3259
|
+
check_type(argname="argument pattern", value=pattern, expected_type=type_hints["pattern"])
|
|
3260
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
3261
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3262
|
+
"action": action,
|
|
3263
|
+
"name": name,
|
|
3264
|
+
"pattern": pattern,
|
|
3265
|
+
}
|
|
3266
|
+
if description is not None:
|
|
3267
|
+
self._values["description"] = description
|
|
3268
|
+
|
|
3269
|
+
@builtins.property
|
|
3270
|
+
def action(self) -> builtins.str:
|
|
3271
|
+
'''Options for sensitive information action.
|
|
3272
|
+
|
|
3273
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailregexconfig.html#cfn-wisdom-aiguardrail-guardrailregexconfig-action
|
|
3274
|
+
'''
|
|
3275
|
+
result = self._values.get("action")
|
|
3276
|
+
assert result is not None, "Required property 'action' is missing"
|
|
3277
|
+
return typing.cast(builtins.str, result)
|
|
3278
|
+
|
|
3279
|
+
@builtins.property
|
|
3280
|
+
def name(self) -> builtins.str:
|
|
3281
|
+
'''The regex name.
|
|
3282
|
+
|
|
3283
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailregexconfig.html#cfn-wisdom-aiguardrail-guardrailregexconfig-name
|
|
3284
|
+
'''
|
|
3285
|
+
result = self._values.get("name")
|
|
3286
|
+
assert result is not None, "Required property 'name' is missing"
|
|
3287
|
+
return typing.cast(builtins.str, result)
|
|
3288
|
+
|
|
3289
|
+
@builtins.property
|
|
3290
|
+
def pattern(self) -> builtins.str:
|
|
3291
|
+
'''The regex pattern.
|
|
3292
|
+
|
|
3293
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailregexconfig.html#cfn-wisdom-aiguardrail-guardrailregexconfig-pattern
|
|
3294
|
+
'''
|
|
3295
|
+
result = self._values.get("pattern")
|
|
3296
|
+
assert result is not None, "Required property 'pattern' is missing"
|
|
3297
|
+
return typing.cast(builtins.str, result)
|
|
3298
|
+
|
|
3299
|
+
@builtins.property
|
|
3300
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
3301
|
+
'''The regex description.
|
|
3302
|
+
|
|
3303
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailregexconfig.html#cfn-wisdom-aiguardrail-guardrailregexconfig-description
|
|
3304
|
+
'''
|
|
3305
|
+
result = self._values.get("description")
|
|
3306
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3307
|
+
|
|
3308
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3309
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3310
|
+
|
|
3311
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3312
|
+
return not (rhs == self)
|
|
3313
|
+
|
|
3314
|
+
def __repr__(self) -> str:
|
|
3315
|
+
return "GuardrailRegexConfigProperty(%s)" % ", ".join(
|
|
3316
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3317
|
+
)
|
|
3318
|
+
|
|
3319
|
+
@jsii.data_type(
|
|
3320
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.GuardrailTopicConfigProperty",
|
|
3321
|
+
jsii_struct_bases=[],
|
|
3322
|
+
name_mapping={
|
|
3323
|
+
"definition": "definition",
|
|
3324
|
+
"name": "name",
|
|
3325
|
+
"type": "type",
|
|
3326
|
+
"examples": "examples",
|
|
3327
|
+
},
|
|
3328
|
+
)
|
|
3329
|
+
class GuardrailTopicConfigProperty:
|
|
3330
|
+
def __init__(
|
|
3331
|
+
self,
|
|
3332
|
+
*,
|
|
3333
|
+
definition: builtins.str,
|
|
3334
|
+
name: builtins.str,
|
|
3335
|
+
type: builtins.str,
|
|
3336
|
+
examples: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
3337
|
+
) -> None:
|
|
3338
|
+
'''Topic config in topic policy.
|
|
3339
|
+
|
|
3340
|
+
:param definition: Definition of topic in topic policy.
|
|
3341
|
+
:param name: Name of topic in topic policy.
|
|
3342
|
+
:param type: Type of topic in a policy.
|
|
3343
|
+
:param examples: List of text examples.
|
|
3344
|
+
|
|
3345
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailtopicconfig.html
|
|
3346
|
+
:exampleMetadata: fixture=_generated
|
|
3347
|
+
|
|
3348
|
+
Example::
|
|
3349
|
+
|
|
3350
|
+
# The code below shows an example of how to instantiate this type.
|
|
3351
|
+
# The values are placeholders you should change.
|
|
3352
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
3353
|
+
|
|
3354
|
+
guardrail_topic_config_property = wisdom.CfnAIGuardrail.GuardrailTopicConfigProperty(
|
|
3355
|
+
definition="definition",
|
|
3356
|
+
name="name",
|
|
3357
|
+
type="type",
|
|
3358
|
+
|
|
3359
|
+
# the properties below are optional
|
|
3360
|
+
examples=["examples"]
|
|
3361
|
+
)
|
|
3362
|
+
'''
|
|
3363
|
+
if __debug__:
|
|
3364
|
+
type_hints = typing.get_type_hints(_typecheckingstub__925705bff59beafe6b6eee70065213b10cb0a6047a45adbdaf25fa9a8b0ee5cf)
|
|
3365
|
+
check_type(argname="argument definition", value=definition, expected_type=type_hints["definition"])
|
|
3366
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
3367
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
3368
|
+
check_type(argname="argument examples", value=examples, expected_type=type_hints["examples"])
|
|
3369
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3370
|
+
"definition": definition,
|
|
3371
|
+
"name": name,
|
|
3372
|
+
"type": type,
|
|
3373
|
+
}
|
|
3374
|
+
if examples is not None:
|
|
3375
|
+
self._values["examples"] = examples
|
|
3376
|
+
|
|
3377
|
+
@builtins.property
|
|
3378
|
+
def definition(self) -> builtins.str:
|
|
3379
|
+
'''Definition of topic in topic policy.
|
|
3380
|
+
|
|
3381
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailtopicconfig.html#cfn-wisdom-aiguardrail-guardrailtopicconfig-definition
|
|
3382
|
+
'''
|
|
3383
|
+
result = self._values.get("definition")
|
|
3384
|
+
assert result is not None, "Required property 'definition' is missing"
|
|
3385
|
+
return typing.cast(builtins.str, result)
|
|
3386
|
+
|
|
3387
|
+
@builtins.property
|
|
3388
|
+
def name(self) -> builtins.str:
|
|
3389
|
+
'''Name of topic in topic policy.
|
|
3390
|
+
|
|
3391
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailtopicconfig.html#cfn-wisdom-aiguardrail-guardrailtopicconfig-name
|
|
3392
|
+
'''
|
|
3393
|
+
result = self._values.get("name")
|
|
3394
|
+
assert result is not None, "Required property 'name' is missing"
|
|
3395
|
+
return typing.cast(builtins.str, result)
|
|
3396
|
+
|
|
3397
|
+
@builtins.property
|
|
3398
|
+
def type(self) -> builtins.str:
|
|
3399
|
+
'''Type of topic in a policy.
|
|
3400
|
+
|
|
3401
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailtopicconfig.html#cfn-wisdom-aiguardrail-guardrailtopicconfig-type
|
|
3402
|
+
'''
|
|
3403
|
+
result = self._values.get("type")
|
|
3404
|
+
assert result is not None, "Required property 'type' is missing"
|
|
3405
|
+
return typing.cast(builtins.str, result)
|
|
3406
|
+
|
|
3407
|
+
@builtins.property
|
|
3408
|
+
def examples(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
3409
|
+
'''List of text examples.
|
|
3410
|
+
|
|
3411
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailtopicconfig.html#cfn-wisdom-aiguardrail-guardrailtopicconfig-examples
|
|
3412
|
+
'''
|
|
3413
|
+
result = self._values.get("examples")
|
|
3414
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
3415
|
+
|
|
3416
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3417
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3418
|
+
|
|
3419
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3420
|
+
return not (rhs == self)
|
|
3421
|
+
|
|
3422
|
+
def __repr__(self) -> str:
|
|
3423
|
+
return "GuardrailTopicConfigProperty(%s)" % ", ".join(
|
|
3424
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3425
|
+
)
|
|
3426
|
+
|
|
3427
|
+
@jsii.data_type(
|
|
3428
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrail.GuardrailWordConfigProperty",
|
|
3429
|
+
jsii_struct_bases=[],
|
|
3430
|
+
name_mapping={"text": "text"},
|
|
3431
|
+
)
|
|
3432
|
+
class GuardrailWordConfigProperty:
|
|
3433
|
+
def __init__(self, *, text: builtins.str) -> None:
|
|
3434
|
+
'''A custom word config.
|
|
3435
|
+
|
|
3436
|
+
:param text: The custom word text.
|
|
3437
|
+
|
|
3438
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailwordconfig.html
|
|
3439
|
+
:exampleMetadata: fixture=_generated
|
|
3440
|
+
|
|
3441
|
+
Example::
|
|
3442
|
+
|
|
3443
|
+
# The code below shows an example of how to instantiate this type.
|
|
3444
|
+
# The values are placeholders you should change.
|
|
3445
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
3446
|
+
|
|
3447
|
+
guardrail_word_config_property = wisdom.CfnAIGuardrail.GuardrailWordConfigProperty(
|
|
3448
|
+
text="text"
|
|
3449
|
+
)
|
|
3450
|
+
'''
|
|
3451
|
+
if __debug__:
|
|
3452
|
+
type_hints = typing.get_type_hints(_typecheckingstub__606553234f4510e4e970f7df37efccc44b1516de671a981777f6102615e8243d)
|
|
3453
|
+
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
3454
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3455
|
+
"text": text,
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
@builtins.property
|
|
3459
|
+
def text(self) -> builtins.str:
|
|
3460
|
+
'''The custom word text.
|
|
3461
|
+
|
|
3462
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiguardrail-guardrailwordconfig.html#cfn-wisdom-aiguardrail-guardrailwordconfig-text
|
|
3463
|
+
'''
|
|
3464
|
+
result = self._values.get("text")
|
|
3465
|
+
assert result is not None, "Required property 'text' is missing"
|
|
3466
|
+
return typing.cast(builtins.str, result)
|
|
3467
|
+
|
|
3468
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3469
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3470
|
+
|
|
3471
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3472
|
+
return not (rhs == self)
|
|
3473
|
+
|
|
3474
|
+
def __repr__(self) -> str:
|
|
3475
|
+
return "GuardrailWordConfigProperty(%s)" % ", ".join(
|
|
3476
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3477
|
+
)
|
|
3478
|
+
|
|
3479
|
+
|
|
3480
|
+
@jsii.data_type(
|
|
3481
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrailProps",
|
|
3482
|
+
jsii_struct_bases=[],
|
|
3483
|
+
name_mapping={
|
|
3484
|
+
"assistant_id": "assistantId",
|
|
3485
|
+
"blocked_input_messaging": "blockedInputMessaging",
|
|
3486
|
+
"blocked_outputs_messaging": "blockedOutputsMessaging",
|
|
3487
|
+
"content_policy_config": "contentPolicyConfig",
|
|
3488
|
+
"contextual_grounding_policy_config": "contextualGroundingPolicyConfig",
|
|
3489
|
+
"description": "description",
|
|
3490
|
+
"name": "name",
|
|
3491
|
+
"sensitive_information_policy_config": "sensitiveInformationPolicyConfig",
|
|
3492
|
+
"tags": "tags",
|
|
3493
|
+
"topic_policy_config": "topicPolicyConfig",
|
|
3494
|
+
"word_policy_config": "wordPolicyConfig",
|
|
3495
|
+
},
|
|
3496
|
+
)
|
|
3497
|
+
class CfnAIGuardrailProps:
|
|
3498
|
+
def __init__(
|
|
3499
|
+
self,
|
|
3500
|
+
*,
|
|
3501
|
+
assistant_id: builtins.str,
|
|
3502
|
+
blocked_input_messaging: builtins.str,
|
|
3503
|
+
blocked_outputs_messaging: builtins.str,
|
|
3504
|
+
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3505
|
+
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3506
|
+
description: typing.Optional[builtins.str] = None,
|
|
3507
|
+
name: typing.Optional[builtins.str] = None,
|
|
3508
|
+
sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3509
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
3510
|
+
topic_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3511
|
+
word_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3512
|
+
) -> None:
|
|
3513
|
+
'''Properties for defining a ``CfnAIGuardrail``.
|
|
3514
|
+
|
|
3515
|
+
:param assistant_id:
|
|
3516
|
+
:param blocked_input_messaging: Messaging for when violations are detected in text.
|
|
3517
|
+
:param blocked_outputs_messaging: Messaging for when violations are detected in text.
|
|
3518
|
+
:param content_policy_config: Content policy config for a guardrail.
|
|
3519
|
+
:param contextual_grounding_policy_config: Contextual grounding policy config for a guardrail.
|
|
3520
|
+
:param description: Description of the guardrail or its version.
|
|
3521
|
+
:param name:
|
|
3522
|
+
:param sensitive_information_policy_config: Sensitive information policy config for a guardrail.
|
|
3523
|
+
:param tags:
|
|
3524
|
+
:param topic_policy_config: Topic policy config for a guardrail.
|
|
3525
|
+
:param word_policy_config: Word policy config for a guardrail.
|
|
3526
|
+
|
|
3527
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html
|
|
3528
|
+
:exampleMetadata: fixture=_generated
|
|
3529
|
+
|
|
3530
|
+
Example::
|
|
3531
|
+
|
|
3532
|
+
# The code below shows an example of how to instantiate this type.
|
|
3533
|
+
# The values are placeholders you should change.
|
|
3534
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
3535
|
+
|
|
3536
|
+
cfn_aIGuardrail_props = wisdom.CfnAIGuardrailProps(
|
|
3537
|
+
assistant_id="assistantId",
|
|
3538
|
+
blocked_input_messaging="blockedInputMessaging",
|
|
3539
|
+
blocked_outputs_messaging="blockedOutputsMessaging",
|
|
1537
3540
|
|
|
1538
3541
|
# the properties below are optional
|
|
3542
|
+
content_policy_config=wisdom.CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty(
|
|
3543
|
+
filters_config=[wisdom.CfnAIGuardrail.GuardrailContentFilterConfigProperty(
|
|
3544
|
+
input_strength="inputStrength",
|
|
3545
|
+
output_strength="outputStrength",
|
|
3546
|
+
type="type"
|
|
3547
|
+
)]
|
|
3548
|
+
),
|
|
3549
|
+
contextual_grounding_policy_config=wisdom.CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty(
|
|
3550
|
+
filters_config=[wisdom.CfnAIGuardrail.GuardrailContextualGroundingFilterConfigProperty(
|
|
3551
|
+
threshold=123,
|
|
3552
|
+
type="type"
|
|
3553
|
+
)]
|
|
3554
|
+
),
|
|
1539
3555
|
description="description",
|
|
1540
3556
|
name="name",
|
|
3557
|
+
sensitive_information_policy_config=wisdom.CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty(
|
|
3558
|
+
pii_entities_config=[wisdom.CfnAIGuardrail.GuardrailPiiEntityConfigProperty(
|
|
3559
|
+
action="action",
|
|
3560
|
+
type="type"
|
|
3561
|
+
)],
|
|
3562
|
+
regexes_config=[wisdom.CfnAIGuardrail.GuardrailRegexConfigProperty(
|
|
3563
|
+
action="action",
|
|
3564
|
+
name="name",
|
|
3565
|
+
pattern="pattern",
|
|
3566
|
+
|
|
3567
|
+
# the properties below are optional
|
|
3568
|
+
description="description"
|
|
3569
|
+
)]
|
|
3570
|
+
),
|
|
1541
3571
|
tags={
|
|
1542
3572
|
"tags_key": "tags"
|
|
1543
|
-
}
|
|
3573
|
+
},
|
|
3574
|
+
topic_policy_config=wisdom.CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty(
|
|
3575
|
+
topics_config=[wisdom.CfnAIGuardrail.GuardrailTopicConfigProperty(
|
|
3576
|
+
definition="definition",
|
|
3577
|
+
name="name",
|
|
3578
|
+
type="type",
|
|
3579
|
+
|
|
3580
|
+
# the properties below are optional
|
|
3581
|
+
examples=["examples"]
|
|
3582
|
+
)]
|
|
3583
|
+
),
|
|
3584
|
+
word_policy_config=wisdom.CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty(
|
|
3585
|
+
managed_word_lists_config=[wisdom.CfnAIGuardrail.GuardrailManagedWordsConfigProperty(
|
|
3586
|
+
type="type"
|
|
3587
|
+
)],
|
|
3588
|
+
words_config=[wisdom.CfnAIGuardrail.GuardrailWordConfigProperty(
|
|
3589
|
+
text="text"
|
|
3590
|
+
)]
|
|
3591
|
+
)
|
|
1544
3592
|
)
|
|
1545
3593
|
'''
|
|
1546
3594
|
if __debug__:
|
|
1547
|
-
type_hints = typing.get_type_hints(
|
|
3595
|
+
type_hints = typing.get_type_hints(_typecheckingstub__272934bdd57f29fc5c93ba393c351f7b04e959a7a6be0e13591e187bd90df3aa)
|
|
1548
3596
|
check_type(argname="argument assistant_id", value=assistant_id, expected_type=type_hints["assistant_id"])
|
|
1549
|
-
check_type(argname="argument
|
|
1550
|
-
check_type(argname="argument
|
|
3597
|
+
check_type(argname="argument blocked_input_messaging", value=blocked_input_messaging, expected_type=type_hints["blocked_input_messaging"])
|
|
3598
|
+
check_type(argname="argument blocked_outputs_messaging", value=blocked_outputs_messaging, expected_type=type_hints["blocked_outputs_messaging"])
|
|
3599
|
+
check_type(argname="argument content_policy_config", value=content_policy_config, expected_type=type_hints["content_policy_config"])
|
|
3600
|
+
check_type(argname="argument contextual_grounding_policy_config", value=contextual_grounding_policy_config, expected_type=type_hints["contextual_grounding_policy_config"])
|
|
1551
3601
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
1552
3602
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
3603
|
+
check_type(argname="argument sensitive_information_policy_config", value=sensitive_information_policy_config, expected_type=type_hints["sensitive_information_policy_config"])
|
|
1553
3604
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
3605
|
+
check_type(argname="argument topic_policy_config", value=topic_policy_config, expected_type=type_hints["topic_policy_config"])
|
|
3606
|
+
check_type(argname="argument word_policy_config", value=word_policy_config, expected_type=type_hints["word_policy_config"])
|
|
1554
3607
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1555
3608
|
"assistant_id": assistant_id,
|
|
1556
|
-
"
|
|
1557
|
-
"
|
|
3609
|
+
"blocked_input_messaging": blocked_input_messaging,
|
|
3610
|
+
"blocked_outputs_messaging": blocked_outputs_messaging,
|
|
1558
3611
|
}
|
|
3612
|
+
if content_policy_config is not None:
|
|
3613
|
+
self._values["content_policy_config"] = content_policy_config
|
|
3614
|
+
if contextual_grounding_policy_config is not None:
|
|
3615
|
+
self._values["contextual_grounding_policy_config"] = contextual_grounding_policy_config
|
|
1559
3616
|
if description is not None:
|
|
1560
3617
|
self._values["description"] = description
|
|
1561
3618
|
if name is not None:
|
|
1562
3619
|
self._values["name"] = name
|
|
3620
|
+
if sensitive_information_policy_config is not None:
|
|
3621
|
+
self._values["sensitive_information_policy_config"] = sensitive_information_policy_config
|
|
1563
3622
|
if tags is not None:
|
|
1564
3623
|
self._values["tags"] = tags
|
|
3624
|
+
if topic_policy_config is not None:
|
|
3625
|
+
self._values["topic_policy_config"] = topic_policy_config
|
|
3626
|
+
if word_policy_config is not None:
|
|
3627
|
+
self._values["word_policy_config"] = word_policy_config
|
|
1565
3628
|
|
|
1566
3629
|
@builtins.property
|
|
1567
3630
|
def assistant_id(self) -> builtins.str:
|
|
1568
|
-
'''
|
|
1569
|
-
|
|
1570
|
-
Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
1571
|
-
|
|
1572
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-assistantid
|
|
3631
|
+
'''
|
|
3632
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-assistantid
|
|
1573
3633
|
'''
|
|
1574
3634
|
result = self._values.get("assistant_id")
|
|
1575
3635
|
assert result is not None, "Required property 'assistant_id' is missing"
|
|
1576
3636
|
return typing.cast(builtins.str, result)
|
|
1577
3637
|
|
|
1578
3638
|
@builtins.property
|
|
1579
|
-
def
|
|
1580
|
-
|
|
1581
|
-
) -> typing.Union[_IResolvable_da3f097b, CfnAIAgent.AIAgentConfigurationProperty]:
|
|
1582
|
-
'''Configuration for the AI Agent.
|
|
3639
|
+
def blocked_input_messaging(self) -> builtins.str:
|
|
3640
|
+
'''Messaging for when violations are detected in text.
|
|
1583
3641
|
|
|
1584
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-
|
|
3642
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-blockedinputmessaging
|
|
1585
3643
|
'''
|
|
1586
|
-
result = self._values.get("
|
|
1587
|
-
assert result is not None, "Required property '
|
|
1588
|
-
return typing.cast(
|
|
3644
|
+
result = self._values.get("blocked_input_messaging")
|
|
3645
|
+
assert result is not None, "Required property 'blocked_input_messaging' is missing"
|
|
3646
|
+
return typing.cast(builtins.str, result)
|
|
1589
3647
|
|
|
1590
3648
|
@builtins.property
|
|
1591
|
-
def
|
|
1592
|
-
'''
|
|
3649
|
+
def blocked_outputs_messaging(self) -> builtins.str:
|
|
3650
|
+
'''Messaging for when violations are detected in text.
|
|
1593
3651
|
|
|
1594
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-
|
|
3652
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-blockedoutputsmessaging
|
|
1595
3653
|
'''
|
|
1596
|
-
result = self._values.get("
|
|
1597
|
-
assert result is not None, "Required property '
|
|
3654
|
+
result = self._values.get("blocked_outputs_messaging")
|
|
3655
|
+
assert result is not None, "Required property 'blocked_outputs_messaging' is missing"
|
|
1598
3656
|
return typing.cast(builtins.str, result)
|
|
1599
3657
|
|
|
3658
|
+
@builtins.property
|
|
3659
|
+
def content_policy_config(
|
|
3660
|
+
self,
|
|
3661
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty]]:
|
|
3662
|
+
'''Content policy config for a guardrail.
|
|
3663
|
+
|
|
3664
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-contentpolicyconfig
|
|
3665
|
+
'''
|
|
3666
|
+
result = self._values.get("content_policy_config")
|
|
3667
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty]], result)
|
|
3668
|
+
|
|
3669
|
+
@builtins.property
|
|
3670
|
+
def contextual_grounding_policy_config(
|
|
3671
|
+
self,
|
|
3672
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty]]:
|
|
3673
|
+
'''Contextual grounding policy config for a guardrail.
|
|
3674
|
+
|
|
3675
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-contextualgroundingpolicyconfig
|
|
3676
|
+
'''
|
|
3677
|
+
result = self._values.get("contextual_grounding_policy_config")
|
|
3678
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty]], result)
|
|
3679
|
+
|
|
1600
3680
|
@builtins.property
|
|
1601
3681
|
def description(self) -> typing.Optional[builtins.str]:
|
|
1602
|
-
'''
|
|
3682
|
+
'''Description of the guardrail or its version.
|
|
1603
3683
|
|
|
1604
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-
|
|
3684
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-description
|
|
1605
3685
|
'''
|
|
1606
3686
|
result = self._values.get("description")
|
|
1607
3687
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1608
3688
|
|
|
1609
3689
|
@builtins.property
|
|
1610
3690
|
def name(self) -> typing.Optional[builtins.str]:
|
|
1611
|
-
'''
|
|
1612
|
-
|
|
1613
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-name
|
|
3691
|
+
'''
|
|
3692
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-name
|
|
1614
3693
|
'''
|
|
1615
3694
|
result = self._values.get("name")
|
|
1616
3695
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1617
3696
|
|
|
1618
3697
|
@builtins.property
|
|
1619
|
-
def
|
|
1620
|
-
|
|
3698
|
+
def sensitive_information_policy_config(
|
|
3699
|
+
self,
|
|
3700
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty]]:
|
|
3701
|
+
'''Sensitive information policy config for a guardrail.
|
|
1621
3702
|
|
|
1622
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-
|
|
3703
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-sensitiveinformationpolicyconfig
|
|
3704
|
+
'''
|
|
3705
|
+
result = self._values.get("sensitive_information_policy_config")
|
|
3706
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty]], result)
|
|
3707
|
+
|
|
3708
|
+
@builtins.property
|
|
3709
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
3710
|
+
'''
|
|
3711
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-tags
|
|
1623
3712
|
'''
|
|
1624
3713
|
result = self._values.get("tags")
|
|
1625
3714
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
1626
3715
|
|
|
3716
|
+
@builtins.property
|
|
3717
|
+
def topic_policy_config(
|
|
3718
|
+
self,
|
|
3719
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty]]:
|
|
3720
|
+
'''Topic policy config for a guardrail.
|
|
3721
|
+
|
|
3722
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-topicpolicyconfig
|
|
3723
|
+
'''
|
|
3724
|
+
result = self._values.get("topic_policy_config")
|
|
3725
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty]], result)
|
|
3726
|
+
|
|
3727
|
+
@builtins.property
|
|
3728
|
+
def word_policy_config(
|
|
3729
|
+
self,
|
|
3730
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty]]:
|
|
3731
|
+
'''Word policy config for a guardrail.
|
|
3732
|
+
|
|
3733
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrail.html#cfn-wisdom-aiguardrail-wordpolicyconfig
|
|
3734
|
+
'''
|
|
3735
|
+
result = self._values.get("word_policy_config")
|
|
3736
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty]], result)
|
|
3737
|
+
|
|
1627
3738
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1628
3739
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1629
3740
|
|
|
@@ -1631,21 +3742,21 @@ class CfnAIAgentProps:
|
|
|
1631
3742
|
return not (rhs == self)
|
|
1632
3743
|
|
|
1633
3744
|
def __repr__(self) -> str:
|
|
1634
|
-
return "
|
|
3745
|
+
return "CfnAIGuardrailProps(%s)" % ", ".join(
|
|
1635
3746
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1636
3747
|
)
|
|
1637
3748
|
|
|
1638
3749
|
|
|
1639
3750
|
@jsii.implements(_IInspectable_c2943556)
|
|
1640
|
-
class
|
|
3751
|
+
class CfnAIGuardrailVersion(
|
|
1641
3752
|
_CfnResource_9df397a6,
|
|
1642
3753
|
metaclass=jsii.JSIIMeta,
|
|
1643
|
-
jsii_type="aws-cdk-lib.aws_wisdom.
|
|
3754
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrailVersion",
|
|
1644
3755
|
):
|
|
1645
|
-
'''
|
|
3756
|
+
'''Definition of AWS::Wisdom::AIGuardrailVersion Resource Type.
|
|
1646
3757
|
|
|
1647
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-
|
|
1648
|
-
:cloudformationResource: AWS::Wisdom::
|
|
3758
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html
|
|
3759
|
+
:cloudformationResource: AWS::Wisdom::AIGuardrailVersion
|
|
1649
3760
|
:exampleMetadata: fixture=_generated
|
|
1650
3761
|
|
|
1651
3762
|
Example::
|
|
@@ -1654,8 +3765,8 @@ class CfnAIAgentVersion(
|
|
|
1654
3765
|
# The values are placeholders you should change.
|
|
1655
3766
|
from aws_cdk import aws_wisdom as wisdom
|
|
1656
3767
|
|
|
1657
|
-
|
|
1658
|
-
|
|
3768
|
+
cfn_aIGuardrail_version = wisdom.CfnAIGuardrailVersion(self, "MyCfnAIGuardrailVersion",
|
|
3769
|
+
ai_guardrail_id="aiGuardrailId",
|
|
1659
3770
|
assistant_id="assistantId",
|
|
1660
3771
|
|
|
1661
3772
|
# the properties below are optional
|
|
@@ -1668,23 +3779,23 @@ class CfnAIAgentVersion(
|
|
|
1668
3779
|
scope: _constructs_77d1e7e8.Construct,
|
|
1669
3780
|
id: builtins.str,
|
|
1670
3781
|
*,
|
|
1671
|
-
|
|
3782
|
+
ai_guardrail_id: builtins.str,
|
|
1672
3783
|
assistant_id: builtins.str,
|
|
1673
3784
|
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
1674
3785
|
) -> None:
|
|
1675
3786
|
'''
|
|
1676
3787
|
:param scope: Scope in which this resource is defined.
|
|
1677
3788
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
1678
|
-
:param
|
|
3789
|
+
:param ai_guardrail_id:
|
|
1679
3790
|
:param assistant_id:
|
|
1680
|
-
:param modified_time_seconds:
|
|
3791
|
+
:param modified_time_seconds:
|
|
1681
3792
|
'''
|
|
1682
3793
|
if __debug__:
|
|
1683
|
-
type_hints = typing.get_type_hints(
|
|
3794
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7a9a92a95cf92d95c08e9a7abc4202740081918bf2082c415b59e8a388ed1ceb)
|
|
1684
3795
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1685
3796
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1686
|
-
props =
|
|
1687
|
-
|
|
3797
|
+
props = CfnAIGuardrailVersionProps(
|
|
3798
|
+
ai_guardrail_id=ai_guardrail_id,
|
|
1688
3799
|
assistant_id=assistant_id,
|
|
1689
3800
|
modified_time_seconds=modified_time_seconds,
|
|
1690
3801
|
)
|
|
@@ -1698,7 +3809,7 @@ class CfnAIAgentVersion(
|
|
|
1698
3809
|
:param inspector: tree inspector to collect and process attributes.
|
|
1699
3810
|
'''
|
|
1700
3811
|
if __debug__:
|
|
1701
|
-
type_hints = typing.get_type_hints(
|
|
3812
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ce87f6cc038ae50940e8317ea6eb15fb4755952543358f516cfb8178eb844887)
|
|
1702
3813
|
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1703
3814
|
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1704
3815
|
|
|
@@ -1711,7 +3822,7 @@ class CfnAIAgentVersion(
|
|
|
1711
3822
|
:param props: -
|
|
1712
3823
|
'''
|
|
1713
3824
|
if __debug__:
|
|
1714
|
-
type_hints = typing.get_type_hints(
|
|
3825
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cb4398a8c6a20907582fa6297d25cfd57e7cd74c3d99a7d32fa8f1476c4ba7f4)
|
|
1715
3826
|
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1716
3827
|
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1717
3828
|
|
|
@@ -1722,20 +3833,20 @@ class CfnAIAgentVersion(
|
|
|
1722
3833
|
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1723
3834
|
|
|
1724
3835
|
@builtins.property
|
|
1725
|
-
@jsii.member(jsii_name="
|
|
1726
|
-
def
|
|
3836
|
+
@jsii.member(jsii_name="attrAiGuardrailArn")
|
|
3837
|
+
def attr_ai_guardrail_arn(self) -> builtins.str:
|
|
1727
3838
|
'''
|
|
1728
|
-
:cloudformationAttribute:
|
|
3839
|
+
:cloudformationAttribute: AIGuardrailArn
|
|
1729
3840
|
'''
|
|
1730
|
-
return typing.cast(builtins.str, jsii.get(self, "
|
|
3841
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiGuardrailArn"))
|
|
1731
3842
|
|
|
1732
3843
|
@builtins.property
|
|
1733
|
-
@jsii.member(jsii_name="
|
|
1734
|
-
def
|
|
3844
|
+
@jsii.member(jsii_name="attrAiGuardrailVersionId")
|
|
3845
|
+
def attr_ai_guardrail_version_id(self) -> builtins.str:
|
|
1735
3846
|
'''
|
|
1736
|
-
:cloudformationAttribute:
|
|
3847
|
+
:cloudformationAttribute: AIGuardrailVersionId
|
|
1737
3848
|
'''
|
|
1738
|
-
return typing.cast(builtins.str, jsii.get(self, "
|
|
3849
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiGuardrailVersionId"))
|
|
1739
3850
|
|
|
1740
3851
|
@builtins.property
|
|
1741
3852
|
@jsii.member(jsii_name="attrAssistantArn")
|
|
@@ -1748,8 +3859,7 @@ class CfnAIAgentVersion(
|
|
|
1748
3859
|
@builtins.property
|
|
1749
3860
|
@jsii.member(jsii_name="attrVersionNumber")
|
|
1750
3861
|
def attr_version_number(self) -> _IResolvable_da3f097b:
|
|
1751
|
-
'''
|
|
1752
|
-
|
|
3862
|
+
'''
|
|
1753
3863
|
:cloudformationAttribute: VersionNumber
|
|
1754
3864
|
'''
|
|
1755
3865
|
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrVersionNumber"))
|
|
@@ -1760,17 +3870,16 @@ class CfnAIAgentVersion(
|
|
|
1760
3870
|
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1761
3871
|
|
|
1762
3872
|
@builtins.property
|
|
1763
|
-
@jsii.member(jsii_name="
|
|
1764
|
-
def
|
|
1765
|
-
|
|
1766
|
-
return typing.cast(builtins.str, jsii.get(self, "aiAgentId"))
|
|
3873
|
+
@jsii.member(jsii_name="aiGuardrailId")
|
|
3874
|
+
def ai_guardrail_id(self) -> builtins.str:
|
|
3875
|
+
return typing.cast(builtins.str, jsii.get(self, "aiGuardrailId"))
|
|
1767
3876
|
|
|
1768
|
-
@
|
|
1769
|
-
def
|
|
3877
|
+
@ai_guardrail_id.setter
|
|
3878
|
+
def ai_guardrail_id(self, value: builtins.str) -> None:
|
|
1770
3879
|
if __debug__:
|
|
1771
|
-
type_hints = typing.get_type_hints(
|
|
3880
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a553f580b0f104a026581e9450d365d429441d11d53e610beb7a35a5229aedf5)
|
|
1772
3881
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1773
|
-
jsii.set(self, "
|
|
3882
|
+
jsii.set(self, "aiGuardrailId", value) # pyright: ignore[reportArgumentType]
|
|
1774
3883
|
|
|
1775
3884
|
@builtins.property
|
|
1776
3885
|
@jsii.member(jsii_name="assistantId")
|
|
@@ -1780,48 +3889,47 @@ class CfnAIAgentVersion(
|
|
|
1780
3889
|
@assistant_id.setter
|
|
1781
3890
|
def assistant_id(self, value: builtins.str) -> None:
|
|
1782
3891
|
if __debug__:
|
|
1783
|
-
type_hints = typing.get_type_hints(
|
|
3892
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ad42f08834e2762e6f546d5167e6c7dccf9f639bbf36d9596aa7a154f6898e41)
|
|
1784
3893
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1785
3894
|
jsii.set(self, "assistantId", value) # pyright: ignore[reportArgumentType]
|
|
1786
3895
|
|
|
1787
3896
|
@builtins.property
|
|
1788
3897
|
@jsii.member(jsii_name="modifiedTimeSeconds")
|
|
1789
3898
|
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
1790
|
-
'''The time the AI Agent version was last modified in seconds.'''
|
|
1791
3899
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "modifiedTimeSeconds"))
|
|
1792
3900
|
|
|
1793
3901
|
@modified_time_seconds.setter
|
|
1794
3902
|
def modified_time_seconds(self, value: typing.Optional[jsii.Number]) -> None:
|
|
1795
3903
|
if __debug__:
|
|
1796
|
-
type_hints = typing.get_type_hints(
|
|
3904
|
+
type_hints = typing.get_type_hints(_typecheckingstub__94c07d3aa9bfd5fbb498b3a8c9f38b60219be42b9521625f0f8d680e6206d6ee)
|
|
1797
3905
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1798
3906
|
jsii.set(self, "modifiedTimeSeconds", value) # pyright: ignore[reportArgumentType]
|
|
1799
3907
|
|
|
1800
3908
|
|
|
1801
3909
|
@jsii.data_type(
|
|
1802
|
-
jsii_type="aws-cdk-lib.aws_wisdom.
|
|
3910
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIGuardrailVersionProps",
|
|
1803
3911
|
jsii_struct_bases=[],
|
|
1804
3912
|
name_mapping={
|
|
1805
|
-
"
|
|
3913
|
+
"ai_guardrail_id": "aiGuardrailId",
|
|
1806
3914
|
"assistant_id": "assistantId",
|
|
1807
3915
|
"modified_time_seconds": "modifiedTimeSeconds",
|
|
1808
3916
|
},
|
|
1809
3917
|
)
|
|
1810
|
-
class
|
|
3918
|
+
class CfnAIGuardrailVersionProps:
|
|
1811
3919
|
def __init__(
|
|
1812
3920
|
self,
|
|
1813
3921
|
*,
|
|
1814
|
-
|
|
3922
|
+
ai_guardrail_id: builtins.str,
|
|
1815
3923
|
assistant_id: builtins.str,
|
|
1816
3924
|
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
1817
3925
|
) -> None:
|
|
1818
|
-
'''Properties for defining a ``
|
|
3926
|
+
'''Properties for defining a ``CfnAIGuardrailVersion``.
|
|
1819
3927
|
|
|
1820
|
-
:param
|
|
3928
|
+
:param ai_guardrail_id:
|
|
1821
3929
|
:param assistant_id:
|
|
1822
|
-
:param modified_time_seconds:
|
|
3930
|
+
:param modified_time_seconds:
|
|
1823
3931
|
|
|
1824
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-
|
|
3932
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html
|
|
1825
3933
|
:exampleMetadata: fixture=_generated
|
|
1826
3934
|
|
|
1827
3935
|
Example::
|
|
@@ -1830,8 +3938,8 @@ class CfnAIAgentVersionProps:
|
|
|
1830
3938
|
# The values are placeholders you should change.
|
|
1831
3939
|
from aws_cdk import aws_wisdom as wisdom
|
|
1832
3940
|
|
|
1833
|
-
|
|
1834
|
-
|
|
3941
|
+
cfn_aIGuardrail_version_props = wisdom.CfnAIGuardrailVersionProps(
|
|
3942
|
+
ai_guardrail_id="aiGuardrailId",
|
|
1835
3943
|
assistant_id="assistantId",
|
|
1836
3944
|
|
|
1837
3945
|
# the properties below are optional
|
|
@@ -1839,31 +3947,30 @@ class CfnAIAgentVersionProps:
|
|
|
1839
3947
|
)
|
|
1840
3948
|
'''
|
|
1841
3949
|
if __debug__:
|
|
1842
|
-
type_hints = typing.get_type_hints(
|
|
1843
|
-
check_type(argname="argument
|
|
3950
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6a99128fc6202c08bbbe787b73cc8f6fe79376afb6a408a1c3b9f1d86295794b)
|
|
3951
|
+
check_type(argname="argument ai_guardrail_id", value=ai_guardrail_id, expected_type=type_hints["ai_guardrail_id"])
|
|
1844
3952
|
check_type(argname="argument assistant_id", value=assistant_id, expected_type=type_hints["assistant_id"])
|
|
1845
3953
|
check_type(argname="argument modified_time_seconds", value=modified_time_seconds, expected_type=type_hints["modified_time_seconds"])
|
|
1846
3954
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1847
|
-
"
|
|
3955
|
+
"ai_guardrail_id": ai_guardrail_id,
|
|
1848
3956
|
"assistant_id": assistant_id,
|
|
1849
3957
|
}
|
|
1850
3958
|
if modified_time_seconds is not None:
|
|
1851
3959
|
self._values["modified_time_seconds"] = modified_time_seconds
|
|
1852
3960
|
|
|
1853
3961
|
@builtins.property
|
|
1854
|
-
def
|
|
1855
|
-
'''The identifier of the AI Agent.
|
|
1856
|
-
|
|
1857
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html#cfn-wisdom-aiagentversion-aiagentid
|
|
3962
|
+
def ai_guardrail_id(self) -> builtins.str:
|
|
1858
3963
|
'''
|
|
1859
|
-
|
|
1860
|
-
|
|
3964
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html#cfn-wisdom-aiguardrailversion-aiguardrailid
|
|
3965
|
+
'''
|
|
3966
|
+
result = self._values.get("ai_guardrail_id")
|
|
3967
|
+
assert result is not None, "Required property 'ai_guardrail_id' is missing"
|
|
1861
3968
|
return typing.cast(builtins.str, result)
|
|
1862
3969
|
|
|
1863
3970
|
@builtins.property
|
|
1864
3971
|
def assistant_id(self) -> builtins.str:
|
|
1865
3972
|
'''
|
|
1866
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-
|
|
3973
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html#cfn-wisdom-aiguardrailversion-assistantid
|
|
1867
3974
|
'''
|
|
1868
3975
|
result = self._values.get("assistant_id")
|
|
1869
3976
|
assert result is not None, "Required property 'assistant_id' is missing"
|
|
@@ -1871,9 +3978,8 @@ class CfnAIAgentVersionProps:
|
|
|
1871
3978
|
|
|
1872
3979
|
@builtins.property
|
|
1873
3980
|
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
1874
|
-
'''
|
|
1875
|
-
|
|
1876
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html#cfn-wisdom-aiagentversion-modifiedtimeseconds
|
|
3981
|
+
'''
|
|
3982
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html#cfn-wisdom-aiguardrailversion-modifiedtimeseconds
|
|
1877
3983
|
'''
|
|
1878
3984
|
result = self._values.get("modified_time_seconds")
|
|
1879
3985
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
@@ -1885,7 +3991,7 @@ class CfnAIAgentVersionProps:
|
|
|
1885
3991
|
return not (rhs == self)
|
|
1886
3992
|
|
|
1887
3993
|
def __repr__(self) -> str:
|
|
1888
|
-
return "
|
|
3994
|
+
return "CfnAIGuardrailVersionProps(%s)" % ", ".join(
|
|
1889
3995
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1890
3996
|
)
|
|
1891
3997
|
|
|
@@ -3608,7 +5714,7 @@ class CfnKnowledgeBase(
|
|
|
3608
5714
|
:param server_side_encryption_configuration: This customer managed key must have a policy that allows ``kms:CreateGrant`` and ``kms:DescribeKey`` permissions to the IAM identity using the key to invoke Wisdom. For more information about setting up a customer managed key for Wisdom, see `Enable Amazon Connect Wisdom for your instance <https://docs.aws.amazon.com/connect/latest/adminguide/enable-wisdom.html>`_ . For information about valid ID values, see `Key identifiers (KeyId) <https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id>`_ in the *AWS Key Management Service Developer Guide* .
|
|
3609
5715
|
:param source_configuration: The source of the knowledge base content. Only set this argument for EXTERNAL or Managed knowledge bases.
|
|
3610
5716
|
:param tags: The tags used to organize, track, or control access for this resource.
|
|
3611
|
-
:param vector_ingestion_configuration:
|
|
5717
|
+
:param vector_ingestion_configuration: Contains details about how to ingest the documents in a data source.
|
|
3612
5718
|
'''
|
|
3613
5719
|
if __debug__:
|
|
3614
5720
|
type_hints = typing.get_type_hints(_typecheckingstub__99512a2eb8a3e47802b889aac668fc94bdc0534ee683313dac712b20006ea6ed)
|
|
@@ -3797,6 +5903,7 @@ class CfnKnowledgeBase(
|
|
|
3797
5903
|
def vector_ingestion_configuration(
|
|
3798
5904
|
self,
|
|
3799
5905
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.VectorIngestionConfigurationProperty"]]:
|
|
5906
|
+
'''Contains details about how to ingest the documents in a data source.'''
|
|
3800
5907
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.VectorIngestionConfigurationProperty"]], jsii.get(self, "vectorIngestionConfiguration"))
|
|
3801
5908
|
|
|
3802
5909
|
@vector_ingestion_configuration.setter
|
|
@@ -3996,11 +6103,14 @@ class CfnKnowledgeBase(
|
|
|
3996
6103
|
hierarchical_chunking_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.HierarchicalChunkingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3997
6104
|
semantic_chunking_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.SemanticChunkingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3998
6105
|
) -> None:
|
|
3999
|
-
'''
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
:param
|
|
6106
|
+
'''Details about how to chunk the documents in the data source.
|
|
6107
|
+
|
|
6108
|
+
A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
|
|
6109
|
+
|
|
6110
|
+
:param chunking_strategy: Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for ``NONE`` , then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.
|
|
6111
|
+
:param fixed_size_chunking_configuration: Configurations for when you choose fixed-size chunking. If you set the ``chunkingStrategy`` as ``NONE`` , exclude this field.
|
|
6112
|
+
:param hierarchical_chunking_configuration: Settings for hierarchical document chunking for a data source. Hierarchical chunking splits documents into layers of chunks where the first layer contains large chunks, and the second layer contains smaller chunks derived from the first layer.
|
|
6113
|
+
:param semantic_chunking_configuration: Settings for semantic document chunking for a data source. Semantic chunking splits a document into smaller documents based on groups of similar content derived from the text with natural language processing.
|
|
4004
6114
|
|
|
4005
6115
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-chunkingconfiguration.html
|
|
4006
6116
|
:exampleMetadata: fixture=_generated
|
|
@@ -4050,7 +6160,10 @@ class CfnKnowledgeBase(
|
|
|
4050
6160
|
|
|
4051
6161
|
@builtins.property
|
|
4052
6162
|
def chunking_strategy(self) -> builtins.str:
|
|
4053
|
-
'''
|
|
6163
|
+
'''Knowledge base can split your source data into chunks.
|
|
6164
|
+
|
|
6165
|
+
A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for ``NONE`` , then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.
|
|
6166
|
+
|
|
4054
6167
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-chunkingconfiguration.html#cfn-wisdom-knowledgebase-chunkingconfiguration-chunkingstrategy
|
|
4055
6168
|
'''
|
|
4056
6169
|
result = self._values.get("chunking_strategy")
|
|
@@ -4061,7 +6174,10 @@ class CfnKnowledgeBase(
|
|
|
4061
6174
|
def fixed_size_chunking_configuration(
|
|
4062
6175
|
self,
|
|
4063
6176
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.FixedSizeChunkingConfigurationProperty"]]:
|
|
4064
|
-
'''
|
|
6177
|
+
'''Configurations for when you choose fixed-size chunking.
|
|
6178
|
+
|
|
6179
|
+
If you set the ``chunkingStrategy`` as ``NONE`` , exclude this field.
|
|
6180
|
+
|
|
4065
6181
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-chunkingconfiguration.html#cfn-wisdom-knowledgebase-chunkingconfiguration-fixedsizechunkingconfiguration
|
|
4066
6182
|
'''
|
|
4067
6183
|
result = self._values.get("fixed_size_chunking_configuration")
|
|
@@ -4071,7 +6187,10 @@ class CfnKnowledgeBase(
|
|
|
4071
6187
|
def hierarchical_chunking_configuration(
|
|
4072
6188
|
self,
|
|
4073
6189
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.HierarchicalChunkingConfigurationProperty"]]:
|
|
4074
|
-
'''
|
|
6190
|
+
'''Settings for hierarchical document chunking for a data source.
|
|
6191
|
+
|
|
6192
|
+
Hierarchical chunking splits documents into layers of chunks where the first layer contains large chunks, and the second layer contains smaller chunks derived from the first layer.
|
|
6193
|
+
|
|
4075
6194
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-chunkingconfiguration.html#cfn-wisdom-knowledgebase-chunkingconfiguration-hierarchicalchunkingconfiguration
|
|
4076
6195
|
'''
|
|
4077
6196
|
result = self._values.get("hierarchical_chunking_configuration")
|
|
@@ -4081,7 +6200,10 @@ class CfnKnowledgeBase(
|
|
|
4081
6200
|
def semantic_chunking_configuration(
|
|
4082
6201
|
self,
|
|
4083
6202
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.SemanticChunkingConfigurationProperty"]]:
|
|
4084
|
-
'''
|
|
6203
|
+
'''Settings for semantic document chunking for a data source.
|
|
6204
|
+
|
|
6205
|
+
Semantic chunking splits a document into smaller documents based on groups of similar content derived from the text with natural language processing.
|
|
6206
|
+
|
|
4085
6207
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-chunkingconfiguration.html#cfn-wisdom-knowledgebase-chunkingconfiguration-semanticchunkingconfiguration
|
|
4086
6208
|
'''
|
|
4087
6209
|
result = self._values.get("semantic_chunking_configuration")
|
|
@@ -4162,9 +6284,12 @@ class CfnKnowledgeBase(
|
|
|
4162
6284
|
max_tokens: jsii.Number,
|
|
4163
6285
|
overlap_percentage: jsii.Number,
|
|
4164
6286
|
) -> None:
|
|
4165
|
-
'''
|
|
4166
|
-
|
|
4167
|
-
|
|
6287
|
+
'''Configurations for when you choose fixed-size chunking.
|
|
6288
|
+
|
|
6289
|
+
If you set the ``chunkingStrategy`` as ``NONE`` , exclude this field.
|
|
6290
|
+
|
|
6291
|
+
:param max_tokens: The maximum number of tokens to include in a chunk.
|
|
6292
|
+
:param overlap_percentage: The percentage of overlap between adjacent chunks of a data source.
|
|
4168
6293
|
|
|
4169
6294
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-fixedsizechunkingconfiguration.html
|
|
4170
6295
|
:exampleMetadata: fixture=_generated
|
|
@@ -4191,7 +6316,8 @@ class CfnKnowledgeBase(
|
|
|
4191
6316
|
|
|
4192
6317
|
@builtins.property
|
|
4193
6318
|
def max_tokens(self) -> jsii.Number:
|
|
4194
|
-
'''
|
|
6319
|
+
'''The maximum number of tokens to include in a chunk.
|
|
6320
|
+
|
|
4195
6321
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-fixedsizechunkingconfiguration.html#cfn-wisdom-knowledgebase-fixedsizechunkingconfiguration-maxtokens
|
|
4196
6322
|
'''
|
|
4197
6323
|
result = self._values.get("max_tokens")
|
|
@@ -4200,7 +6326,8 @@ class CfnKnowledgeBase(
|
|
|
4200
6326
|
|
|
4201
6327
|
@builtins.property
|
|
4202
6328
|
def overlap_percentage(self) -> jsii.Number:
|
|
4203
|
-
'''
|
|
6329
|
+
'''The percentage of overlap between adjacent chunks of a data source.
|
|
6330
|
+
|
|
4204
6331
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-fixedsizechunkingconfiguration.html#cfn-wisdom-knowledgebase-fixedsizechunkingconfiguration-overlappercentage
|
|
4205
6332
|
'''
|
|
4206
6333
|
result = self._values.get("overlap_percentage")
|
|
@@ -4233,9 +6360,12 @@ class CfnKnowledgeBase(
|
|
|
4233
6360
|
level_configurations: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.HierarchicalChunkingLevelConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
4234
6361
|
overlap_tokens: jsii.Number,
|
|
4235
6362
|
) -> None:
|
|
4236
|
-
'''
|
|
4237
|
-
|
|
4238
|
-
|
|
6363
|
+
'''Settings for hierarchical document chunking for a data source.
|
|
6364
|
+
|
|
6365
|
+
Hierarchical chunking splits documents into layers of chunks where the first layer contains large chunks, and the second layer contains smaller chunks derived from the first layer.
|
|
6366
|
+
|
|
6367
|
+
:param level_configurations: Token settings for each layer.
|
|
6368
|
+
:param overlap_tokens: The number of tokens to repeat across chunks in the same layer.
|
|
4239
6369
|
|
|
4240
6370
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-hierarchicalchunkingconfiguration.html
|
|
4241
6371
|
:exampleMetadata: fixture=_generated
|
|
@@ -4266,7 +6396,8 @@ class CfnKnowledgeBase(
|
|
|
4266
6396
|
def level_configurations(
|
|
4267
6397
|
self,
|
|
4268
6398
|
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.HierarchicalChunkingLevelConfigurationProperty"]]]:
|
|
4269
|
-
'''
|
|
6399
|
+
'''Token settings for each layer.
|
|
6400
|
+
|
|
4270
6401
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-hierarchicalchunkingconfiguration.html#cfn-wisdom-knowledgebase-hierarchicalchunkingconfiguration-levelconfigurations
|
|
4271
6402
|
'''
|
|
4272
6403
|
result = self._values.get("level_configurations")
|
|
@@ -4275,7 +6406,8 @@ class CfnKnowledgeBase(
|
|
|
4275
6406
|
|
|
4276
6407
|
@builtins.property
|
|
4277
6408
|
def overlap_tokens(self) -> jsii.Number:
|
|
4278
|
-
'''
|
|
6409
|
+
'''The number of tokens to repeat across chunks in the same layer.
|
|
6410
|
+
|
|
4279
6411
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-hierarchicalchunkingconfiguration.html#cfn-wisdom-knowledgebase-hierarchicalchunkingconfiguration-overlaptokens
|
|
4280
6412
|
'''
|
|
4281
6413
|
result = self._values.get("overlap_tokens")
|
|
@@ -4300,8 +6432,9 @@ class CfnKnowledgeBase(
|
|
|
4300
6432
|
)
|
|
4301
6433
|
class HierarchicalChunkingLevelConfigurationProperty:
|
|
4302
6434
|
def __init__(self, *, max_tokens: jsii.Number) -> None:
|
|
4303
|
-
'''
|
|
4304
|
-
|
|
6435
|
+
'''Token settings for each layer.
|
|
6436
|
+
|
|
6437
|
+
:param max_tokens: The maximum number of tokens that a chunk can contain in this layer.
|
|
4305
6438
|
|
|
4306
6439
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-hierarchicalchunkinglevelconfiguration.html
|
|
4307
6440
|
:exampleMetadata: fixture=_generated
|
|
@@ -4325,7 +6458,8 @@ class CfnKnowledgeBase(
|
|
|
4325
6458
|
|
|
4326
6459
|
@builtins.property
|
|
4327
6460
|
def max_tokens(self) -> jsii.Number:
|
|
4328
|
-
'''
|
|
6461
|
+
'''The maximum number of tokens that a chunk can contain in this layer.
|
|
6462
|
+
|
|
4329
6463
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-hierarchicalchunkinglevelconfiguration.html#cfn-wisdom-knowledgebase-hierarchicalchunkinglevelconfiguration-maxtokens
|
|
4330
6464
|
'''
|
|
4331
6465
|
result = self._values.get("max_tokens")
|
|
@@ -4354,8 +6488,9 @@ class CfnKnowledgeBase(
|
|
|
4354
6488
|
*,
|
|
4355
6489
|
web_crawler_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.WebCrawlerConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
4356
6490
|
) -> None:
|
|
4357
|
-
'''
|
|
4358
|
-
|
|
6491
|
+
'''Source configuration for managed resources.
|
|
6492
|
+
|
|
6493
|
+
:param web_crawler_configuration: Configuration data for web crawler data source.
|
|
4359
6494
|
|
|
4360
6495
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-managedsourceconfiguration.html
|
|
4361
6496
|
:exampleMetadata: fixture=_generated
|
|
@@ -4395,7 +6530,8 @@ class CfnKnowledgeBase(
|
|
|
4395
6530
|
def web_crawler_configuration(
|
|
4396
6531
|
self,
|
|
4397
6532
|
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.WebCrawlerConfigurationProperty"]:
|
|
4398
|
-
'''
|
|
6533
|
+
'''Configuration data for web crawler data source.
|
|
6534
|
+
|
|
4399
6535
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-managedsourceconfiguration.html#cfn-wisdom-knowledgebase-managedsourceconfiguration-webcrawlerconfiguration
|
|
4400
6536
|
'''
|
|
4401
6537
|
result = self._values.get("web_crawler_configuration")
|
|
@@ -4428,9 +6564,12 @@ class CfnKnowledgeBase(
|
|
|
4428
6564
|
parsing_strategy: builtins.str,
|
|
4429
6565
|
bedrock_foundation_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.BedrockFoundationModelConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4430
6566
|
) -> None:
|
|
4431
|
-
'''
|
|
4432
|
-
|
|
4433
|
-
|
|
6567
|
+
'''Settings for parsing document contents.
|
|
6568
|
+
|
|
6569
|
+
By default, the service converts the contents of each document into text before splitting it into chunks. To improve processing of PDF files with tables and images, you can configure the data source to convert the pages of text into images and use a model to describe the contents of each page.
|
|
6570
|
+
|
|
6571
|
+
:param parsing_strategy: The parsing strategy for the data source.
|
|
6572
|
+
:param bedrock_foundation_model_configuration: Settings for a foundation model used to parse documents for a data source.
|
|
4434
6573
|
|
|
4435
6574
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-parsingconfiguration.html
|
|
4436
6575
|
:exampleMetadata: fixture=_generated
|
|
@@ -4467,7 +6606,8 @@ class CfnKnowledgeBase(
|
|
|
4467
6606
|
|
|
4468
6607
|
@builtins.property
|
|
4469
6608
|
def parsing_strategy(self) -> builtins.str:
|
|
4470
|
-
'''
|
|
6609
|
+
'''The parsing strategy for the data source.
|
|
6610
|
+
|
|
4471
6611
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-parsingconfiguration.html#cfn-wisdom-knowledgebase-parsingconfiguration-parsingstrategy
|
|
4472
6612
|
'''
|
|
4473
6613
|
result = self._values.get("parsing_strategy")
|
|
@@ -4478,7 +6618,8 @@ class CfnKnowledgeBase(
|
|
|
4478
6618
|
def bedrock_foundation_model_configuration(
|
|
4479
6619
|
self,
|
|
4480
6620
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.BedrockFoundationModelConfigurationProperty"]]:
|
|
4481
|
-
'''
|
|
6621
|
+
'''Settings for a foundation model used to parse documents for a data source.
|
|
6622
|
+
|
|
4482
6623
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-parsingconfiguration.html#cfn-wisdom-knowledgebase-parsingconfiguration-bedrockfoundationmodelconfiguration
|
|
4483
6624
|
'''
|
|
4484
6625
|
result = self._values.get("bedrock_foundation_model_configuration")
|
|
@@ -4502,8 +6643,9 @@ class CfnKnowledgeBase(
|
|
|
4502
6643
|
)
|
|
4503
6644
|
class ParsingPromptProperty:
|
|
4504
6645
|
def __init__(self, *, parsing_prompt_text: builtins.str) -> None:
|
|
4505
|
-
'''
|
|
4506
|
-
|
|
6646
|
+
'''Instructions for interpreting the contents of a document.
|
|
6647
|
+
|
|
6648
|
+
:param parsing_prompt_text: Instructions for interpreting the contents of a document.
|
|
4507
6649
|
|
|
4508
6650
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-parsingprompt.html
|
|
4509
6651
|
:exampleMetadata: fixture=_generated
|
|
@@ -4527,7 +6669,8 @@ class CfnKnowledgeBase(
|
|
|
4527
6669
|
|
|
4528
6670
|
@builtins.property
|
|
4529
6671
|
def parsing_prompt_text(self) -> builtins.str:
|
|
4530
|
-
'''
|
|
6672
|
+
'''Instructions for interpreting the contents of a document.
|
|
6673
|
+
|
|
4531
6674
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-parsingprompt.html#cfn-wisdom-knowledgebase-parsingprompt-parsingprompttext
|
|
4532
6675
|
'''
|
|
4533
6676
|
result = self._values.get("parsing_prompt_text")
|
|
@@ -4615,8 +6758,9 @@ class CfnKnowledgeBase(
|
|
|
4615
6758
|
)
|
|
4616
6759
|
class SeedUrlProperty:
|
|
4617
6760
|
def __init__(self, *, url: typing.Optional[builtins.str] = None) -> None:
|
|
4618
|
-
'''
|
|
4619
|
-
|
|
6761
|
+
'''A URL for crawling.
|
|
6762
|
+
|
|
6763
|
+
:param url: URL for crawling.
|
|
4620
6764
|
|
|
4621
6765
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-seedurl.html
|
|
4622
6766
|
:exampleMetadata: fixture=_generated
|
|
@@ -4640,7 +6784,8 @@ class CfnKnowledgeBase(
|
|
|
4640
6784
|
|
|
4641
6785
|
@builtins.property
|
|
4642
6786
|
def url(self) -> typing.Optional[builtins.str]:
|
|
4643
|
-
'''
|
|
6787
|
+
'''URL for crawling.
|
|
6788
|
+
|
|
4644
6789
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-seedurl.html#cfn-wisdom-knowledgebase-seedurl-url
|
|
4645
6790
|
'''
|
|
4646
6791
|
result = self._values.get("url")
|
|
@@ -4674,10 +6819,13 @@ class CfnKnowledgeBase(
|
|
|
4674
6819
|
buffer_size: jsii.Number,
|
|
4675
6820
|
max_tokens: jsii.Number,
|
|
4676
6821
|
) -> None:
|
|
4677
|
-
'''
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
6822
|
+
'''Settings for semantic document chunking for a data source.
|
|
6823
|
+
|
|
6824
|
+
Semantic chunking splits a document into smaller documents based on groups of similar content derived from the text with natural language processing.
|
|
6825
|
+
|
|
6826
|
+
:param breakpoint_percentile_threshold: The dissimilarity threshold for splitting chunks.
|
|
6827
|
+
:param buffer_size: The buffer size.
|
|
6828
|
+
:param max_tokens: The maximum number of tokens that a chunk can contain.
|
|
4681
6829
|
|
|
4682
6830
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-semanticchunkingconfiguration.html
|
|
4683
6831
|
:exampleMetadata: fixture=_generated
|
|
@@ -4707,7 +6855,8 @@ class CfnKnowledgeBase(
|
|
|
4707
6855
|
|
|
4708
6856
|
@builtins.property
|
|
4709
6857
|
def breakpoint_percentile_threshold(self) -> jsii.Number:
|
|
4710
|
-
'''
|
|
6858
|
+
'''The dissimilarity threshold for splitting chunks.
|
|
6859
|
+
|
|
4711
6860
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-semanticchunkingconfiguration.html#cfn-wisdom-knowledgebase-semanticchunkingconfiguration-breakpointpercentilethreshold
|
|
4712
6861
|
'''
|
|
4713
6862
|
result = self._values.get("breakpoint_percentile_threshold")
|
|
@@ -4716,7 +6865,8 @@ class CfnKnowledgeBase(
|
|
|
4716
6865
|
|
|
4717
6866
|
@builtins.property
|
|
4718
6867
|
def buffer_size(self) -> jsii.Number:
|
|
4719
|
-
'''
|
|
6868
|
+
'''The buffer size.
|
|
6869
|
+
|
|
4720
6870
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-semanticchunkingconfiguration.html#cfn-wisdom-knowledgebase-semanticchunkingconfiguration-buffersize
|
|
4721
6871
|
'''
|
|
4722
6872
|
result = self._values.get("buffer_size")
|
|
@@ -4725,7 +6875,8 @@ class CfnKnowledgeBase(
|
|
|
4725
6875
|
|
|
4726
6876
|
@builtins.property
|
|
4727
6877
|
def max_tokens(self) -> jsii.Number:
|
|
4728
|
-
'''
|
|
6878
|
+
'''The maximum number of tokens that a chunk can contain.
|
|
6879
|
+
|
|
4729
6880
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-semanticchunkingconfiguration.html#cfn-wisdom-knowledgebase-semanticchunkingconfiguration-maxtokens
|
|
4730
6881
|
'''
|
|
4731
6882
|
result = self._values.get("max_tokens")
|
|
@@ -4816,7 +6967,7 @@ class CfnKnowledgeBase(
|
|
|
4816
6967
|
'''Configuration information about the external data source.
|
|
4817
6968
|
|
|
4818
6969
|
:param app_integrations: Configuration information for Amazon AppIntegrations to automatically ingest content.
|
|
4819
|
-
:param managed_source_configuration:
|
|
6970
|
+
:param managed_source_configuration: Source configuration for managed resources.
|
|
4820
6971
|
|
|
4821
6972
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-sourceconfiguration.html
|
|
4822
6973
|
:exampleMetadata: fixture=_generated
|
|
@@ -4878,7 +7029,8 @@ class CfnKnowledgeBase(
|
|
|
4878
7029
|
def managed_source_configuration(
|
|
4879
7030
|
self,
|
|
4880
7031
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.ManagedSourceConfigurationProperty"]]:
|
|
4881
|
-
'''
|
|
7032
|
+
'''Source configuration for managed resources.
|
|
7033
|
+
|
|
4882
7034
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-sourceconfiguration.html#cfn-wisdom-knowledgebase-sourceconfiguration-managedsourceconfiguration
|
|
4883
7035
|
'''
|
|
4884
7036
|
result = self._values.get("managed_source_configuration")
|
|
@@ -4906,8 +7058,11 @@ class CfnKnowledgeBase(
|
|
|
4906
7058
|
*,
|
|
4907
7059
|
seed_urls: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.SeedUrlProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4908
7060
|
) -> None:
|
|
4909
|
-
'''
|
|
4910
|
-
|
|
7061
|
+
'''The configuration of the URL/URLs for the web content that you want to crawl.
|
|
7062
|
+
|
|
7063
|
+
You should be authorized to crawl the URLs.
|
|
7064
|
+
|
|
7065
|
+
:param seed_urls: List of URLs for crawling.
|
|
4911
7066
|
|
|
4912
7067
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-urlconfiguration.html
|
|
4913
7068
|
:exampleMetadata: fixture=_generated
|
|
@@ -4935,7 +7090,8 @@ class CfnKnowledgeBase(
|
|
|
4935
7090
|
def seed_urls(
|
|
4936
7091
|
self,
|
|
4937
7092
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.SeedUrlProperty"]]]]:
|
|
4938
|
-
'''
|
|
7093
|
+
'''List of URLs for crawling.
|
|
7094
|
+
|
|
4939
7095
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-urlconfiguration.html#cfn-wisdom-knowledgebase-urlconfiguration-seedurls
|
|
4940
7096
|
'''
|
|
4941
7097
|
result = self._values.get("seed_urls")
|
|
@@ -4967,9 +7123,10 @@ class CfnKnowledgeBase(
|
|
|
4967
7123
|
chunking_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.ChunkingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4968
7124
|
parsing_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.ParsingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4969
7125
|
) -> None:
|
|
4970
|
-
'''
|
|
4971
|
-
|
|
4972
|
-
:param
|
|
7126
|
+
'''Contains details about how to ingest the documents in a data source.
|
|
7127
|
+
|
|
7128
|
+
:param chunking_configuration: Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
|
|
7129
|
+
:param parsing_configuration: A custom parser for data source documents.
|
|
4973
7130
|
|
|
4974
7131
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-vectoringestionconfiguration.html
|
|
4975
7132
|
:exampleMetadata: fixture=_generated
|
|
@@ -5030,7 +7187,10 @@ class CfnKnowledgeBase(
|
|
|
5030
7187
|
def chunking_configuration(
|
|
5031
7188
|
self,
|
|
5032
7189
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.ChunkingConfigurationProperty"]]:
|
|
5033
|
-
'''
|
|
7190
|
+
'''Details about how to chunk the documents in the data source.
|
|
7191
|
+
|
|
7192
|
+
A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
|
|
7193
|
+
|
|
5034
7194
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-vectoringestionconfiguration.html#cfn-wisdom-knowledgebase-vectoringestionconfiguration-chunkingconfiguration
|
|
5035
7195
|
'''
|
|
5036
7196
|
result = self._values.get("chunking_configuration")
|
|
@@ -5040,7 +7200,8 @@ class CfnKnowledgeBase(
|
|
|
5040
7200
|
def parsing_configuration(
|
|
5041
7201
|
self,
|
|
5042
7202
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.ParsingConfigurationProperty"]]:
|
|
5043
|
-
'''
|
|
7203
|
+
'''A custom parser for data source documents.
|
|
7204
|
+
|
|
5044
7205
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-vectoringestionconfiguration.html#cfn-wisdom-knowledgebase-vectoringestionconfiguration-parsingconfiguration
|
|
5045
7206
|
'''
|
|
5046
7207
|
result = self._values.get("parsing_configuration")
|
|
@@ -5078,12 +7239,13 @@ class CfnKnowledgeBase(
|
|
|
5078
7239
|
inclusion_filters: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
5079
7240
|
scope: typing.Optional[builtins.str] = None,
|
|
5080
7241
|
) -> None:
|
|
5081
|
-
'''
|
|
5082
|
-
|
|
5083
|
-
:param
|
|
5084
|
-
:param
|
|
5085
|
-
:param
|
|
5086
|
-
:param
|
|
7242
|
+
'''The configuration details for the web data source.
|
|
7243
|
+
|
|
7244
|
+
:param url_configuration: The configuration of the URL/URLs for the web content that you want to crawl. You should be authorized to crawl the URLs.
|
|
7245
|
+
:param crawler_limits: The configuration of crawl limits for the web URLs.
|
|
7246
|
+
:param exclusion_filters: A list of one or more exclusion regular expression patterns to exclude certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.
|
|
7247
|
+
:param inclusion_filters: A list of one or more inclusion regular expression patterns to include certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.
|
|
7248
|
+
:param scope: The scope of what is crawled for your URLs. You can choose to crawl only web pages that belong to the same host or primary domain. For example, only web pages that contain the seed URL ``https://docs.aws.amazon.com/bedrock/latest/userguide/`` and no other domains. You can choose to include sub domains in addition to the host or primary domain. For example, web pages that contain ``aws.amazon.com`` can also include sub domain ``docs.aws.amazon.com`` .
|
|
5087
7249
|
|
|
5088
7250
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-webcrawlerconfiguration.html
|
|
5089
7251
|
:exampleMetadata: fixture=_generated
|
|
@@ -5133,7 +7295,10 @@ class CfnKnowledgeBase(
|
|
|
5133
7295
|
def url_configuration(
|
|
5134
7296
|
self,
|
|
5135
7297
|
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.UrlConfigurationProperty"]:
|
|
5136
|
-
'''
|
|
7298
|
+
'''The configuration of the URL/URLs for the web content that you want to crawl.
|
|
7299
|
+
|
|
7300
|
+
You should be authorized to crawl the URLs.
|
|
7301
|
+
|
|
5137
7302
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-webcrawlerconfiguration.html#cfn-wisdom-knowledgebase-webcrawlerconfiguration-urlconfiguration
|
|
5138
7303
|
'''
|
|
5139
7304
|
result = self._values.get("url_configuration")
|
|
@@ -5144,7 +7309,8 @@ class CfnKnowledgeBase(
|
|
|
5144
7309
|
def crawler_limits(
|
|
5145
7310
|
self,
|
|
5146
7311
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.CrawlerLimitsProperty"]]:
|
|
5147
|
-
'''
|
|
7312
|
+
'''The configuration of crawl limits for the web URLs.
|
|
7313
|
+
|
|
5148
7314
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-webcrawlerconfiguration.html#cfn-wisdom-knowledgebase-webcrawlerconfiguration-crawlerlimits
|
|
5149
7315
|
'''
|
|
5150
7316
|
result = self._values.get("crawler_limits")
|
|
@@ -5152,7 +7318,10 @@ class CfnKnowledgeBase(
|
|
|
5152
7318
|
|
|
5153
7319
|
@builtins.property
|
|
5154
7320
|
def exclusion_filters(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
5155
|
-
'''
|
|
7321
|
+
'''A list of one or more exclusion regular expression patterns to exclude certain URLs.
|
|
7322
|
+
|
|
7323
|
+
If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.
|
|
7324
|
+
|
|
5156
7325
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-webcrawlerconfiguration.html#cfn-wisdom-knowledgebase-webcrawlerconfiguration-exclusionfilters
|
|
5157
7326
|
'''
|
|
5158
7327
|
result = self._values.get("exclusion_filters")
|
|
@@ -5160,7 +7329,10 @@ class CfnKnowledgeBase(
|
|
|
5160
7329
|
|
|
5161
7330
|
@builtins.property
|
|
5162
7331
|
def inclusion_filters(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
5163
|
-
'''
|
|
7332
|
+
'''A list of one or more inclusion regular expression patterns to include certain URLs.
|
|
7333
|
+
|
|
7334
|
+
If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.
|
|
7335
|
+
|
|
5164
7336
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-webcrawlerconfiguration.html#cfn-wisdom-knowledgebase-webcrawlerconfiguration-inclusionfilters
|
|
5165
7337
|
'''
|
|
5166
7338
|
result = self._values.get("inclusion_filters")
|
|
@@ -5168,7 +7340,10 @@ class CfnKnowledgeBase(
|
|
|
5168
7340
|
|
|
5169
7341
|
@builtins.property
|
|
5170
7342
|
def scope(self) -> typing.Optional[builtins.str]:
|
|
5171
|
-
'''
|
|
7343
|
+
'''The scope of what is crawled for your URLs.
|
|
7344
|
+
|
|
7345
|
+
You can choose to crawl only web pages that belong to the same host or primary domain. For example, only web pages that contain the seed URL ``https://docs.aws.amazon.com/bedrock/latest/userguide/`` and no other domains. You can choose to include sub domains in addition to the host or primary domain. For example, web pages that contain ``aws.amazon.com`` can also include sub domain ``docs.aws.amazon.com`` .
|
|
7346
|
+
|
|
5172
7347
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-webcrawlerconfiguration.html#cfn-wisdom-knowledgebase-webcrawlerconfiguration-scope
|
|
5173
7348
|
'''
|
|
5174
7349
|
result = self._values.get("scope")
|
|
@@ -5222,7 +7397,7 @@ class CfnKnowledgeBaseProps:
|
|
|
5222
7397
|
:param server_side_encryption_configuration: This customer managed key must have a policy that allows ``kms:CreateGrant`` and ``kms:DescribeKey`` permissions to the IAM identity using the key to invoke Wisdom. For more information about setting up a customer managed key for Wisdom, see `Enable Amazon Connect Wisdom for your instance <https://docs.aws.amazon.com/connect/latest/adminguide/enable-wisdom.html>`_ . For information about valid ID values, see `Key identifiers (KeyId) <https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id>`_ in the *AWS Key Management Service Developer Guide* .
|
|
5223
7398
|
:param source_configuration: The source of the knowledge base content. Only set this argument for EXTERNAL or Managed knowledge bases.
|
|
5224
7399
|
:param tags: The tags used to organize, track, or control access for this resource.
|
|
5225
|
-
:param vector_ingestion_configuration:
|
|
7400
|
+
:param vector_ingestion_configuration: Contains details about how to ingest the documents in a data source.
|
|
5226
7401
|
|
|
5227
7402
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html
|
|
5228
7403
|
:exampleMetadata: fixture=_generated
|
|
@@ -5419,7 +7594,8 @@ class CfnKnowledgeBaseProps:
|
|
|
5419
7594
|
def vector_ingestion_configuration(
|
|
5420
7595
|
self,
|
|
5421
7596
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.VectorIngestionConfigurationProperty]]:
|
|
5422
|
-
'''
|
|
7597
|
+
'''Contains details about how to ingest the documents in a data source.
|
|
7598
|
+
|
|
5423
7599
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-vectoringestionconfiguration
|
|
5424
7600
|
'''
|
|
5425
7601
|
result = self._values.get("vector_ingestion_configuration")
|
|
@@ -5443,7 +7619,9 @@ class CfnMessageTemplate(
|
|
|
5443
7619
|
metaclass=jsii.JSIIMeta,
|
|
5444
7620
|
jsii_type="aws-cdk-lib.aws_wisdom.CfnMessageTemplate",
|
|
5445
7621
|
):
|
|
5446
|
-
'''
|
|
7622
|
+
'''Creates an Amazon Q in Connect message template.
|
|
7623
|
+
|
|
7624
|
+
The name of the message template has to be unique for each knowledge base. The channel subtype of the message template is immutable and cannot be modified after creation. After the message template is created, you can use the ``$LATEST`` qualifier to reference the created message template.
|
|
5447
7625
|
|
|
5448
7626
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-messagetemplate.html
|
|
5449
7627
|
:cloudformationResource: AWS::Wisdom::MessageTemplate
|
|
@@ -5598,13 +7776,13 @@ class CfnMessageTemplate(
|
|
|
5598
7776
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
5599
7777
|
:param channel_subtype: The channel subtype this message template applies to.
|
|
5600
7778
|
:param content: The content of the message template.
|
|
5601
|
-
:param knowledge_base_arn: The Amazon Resource Name (ARN) of the knowledge base
|
|
7779
|
+
:param knowledge_base_arn: The Amazon Resource Name (ARN) of the knowledge base.
|
|
5602
7780
|
:param name: The name of the message template.
|
|
5603
7781
|
:param default_attributes: An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.
|
|
5604
7782
|
:param description: The description of the message template.
|
|
5605
|
-
:param grouping_configuration: The configuration information of the
|
|
5606
|
-
:param language: The language code value for the language in which the
|
|
5607
|
-
:param tags: The tags used to organize, track, or control access for this resource.
|
|
7783
|
+
:param grouping_configuration: The configuration information of the external data source.
|
|
7784
|
+
:param language: The language code value for the language in which the quick response is written. The supported language codes include ``de_DE`` , ``en_US`` , ``es_ES`` , ``fr_FR`` , ``id_ID`` , ``it_IT`` , ``ja_JP`` , ``ko_KR`` , ``pt_BR`` , ``zh_CN`` , ``zh_TW``
|
|
7785
|
+
:param tags: The tags used to organize, track, or control access for this resource.
|
|
5608
7786
|
'''
|
|
5609
7787
|
if __debug__:
|
|
5610
7788
|
type_hints = typing.get_type_hints(_typecheckingstub__4d99067595817364fbb03fa017437b616b3c32bdfb38c386a909328ac78d1053)
|
|
@@ -5666,7 +7844,9 @@ class CfnMessageTemplate(
|
|
|
5666
7844
|
@builtins.property
|
|
5667
7845
|
@jsii.member(jsii_name="attrMessageTemplateContentSha256")
|
|
5668
7846
|
def attr_message_template_content_sha256(self) -> builtins.str:
|
|
5669
|
-
'''The
|
|
7847
|
+
'''The checksum value of the message template content that is referenced by the ``$LATEST`` qualifier.
|
|
7848
|
+
|
|
7849
|
+
It can be returned in ``MessageTemplateData`` or ``ExtendedMessageTemplateData`` . It’s calculated by content, language, ``defaultAttributes`` and ``Attachments`` of the message template.
|
|
5670
7850
|
|
|
5671
7851
|
:cloudformationAttribute: MessageTemplateContentSha256
|
|
5672
7852
|
'''
|
|
@@ -5675,7 +7855,7 @@ class CfnMessageTemplate(
|
|
|
5675
7855
|
@builtins.property
|
|
5676
7856
|
@jsii.member(jsii_name="attrMessageTemplateId")
|
|
5677
7857
|
def attr_message_template_id(self) -> builtins.str:
|
|
5678
|
-
'''The
|
|
7858
|
+
'''The identifier of the message template.
|
|
5679
7859
|
|
|
5680
7860
|
:cloudformationAttribute: MessageTemplateId
|
|
5681
7861
|
'''
|
|
@@ -5726,7 +7906,7 @@ class CfnMessageTemplate(
|
|
|
5726
7906
|
@builtins.property
|
|
5727
7907
|
@jsii.member(jsii_name="knowledgeBaseArn")
|
|
5728
7908
|
def knowledge_base_arn(self) -> builtins.str:
|
|
5729
|
-
'''The Amazon Resource Name (ARN) of the knowledge base
|
|
7909
|
+
'''The Amazon Resource Name (ARN) of the knowledge base.'''
|
|
5730
7910
|
return typing.cast(builtins.str, jsii.get(self, "knowledgeBaseArn"))
|
|
5731
7911
|
|
|
5732
7912
|
@knowledge_base_arn.setter
|
|
@@ -5785,7 +7965,7 @@ class CfnMessageTemplate(
|
|
|
5785
7965
|
def grouping_configuration(
|
|
5786
7966
|
self,
|
|
5787
7967
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMessageTemplate.GroupingConfigurationProperty"]]:
|
|
5788
|
-
'''The configuration information of the
|
|
7968
|
+
'''The configuration information of the external data source.'''
|
|
5789
7969
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMessageTemplate.GroupingConfigurationProperty"]], jsii.get(self, "groupingConfiguration"))
|
|
5790
7970
|
|
|
5791
7971
|
@grouping_configuration.setter
|
|
@@ -5801,7 +7981,7 @@ class CfnMessageTemplate(
|
|
|
5801
7981
|
@builtins.property
|
|
5802
7982
|
@jsii.member(jsii_name="language")
|
|
5803
7983
|
def language(self) -> typing.Optional[builtins.str]:
|
|
5804
|
-
'''The language code value for the language in which the
|
|
7984
|
+
'''The language code value for the language in which the quick response is written.'''
|
|
5805
7985
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "language"))
|
|
5806
7986
|
|
|
5807
7987
|
@language.setter
|
|
@@ -5836,7 +8016,7 @@ class CfnMessageTemplate(
|
|
|
5836
8016
|
first_name: typing.Optional[builtins.str] = None,
|
|
5837
8017
|
last_name: typing.Optional[builtins.str] = None,
|
|
5838
8018
|
) -> None:
|
|
5839
|
-
'''
|
|
8019
|
+
'''Information about an agent.
|
|
5840
8020
|
|
|
5841
8021
|
:param first_name: The agent’s first name as entered in their Amazon Connect user account.
|
|
5842
8022
|
:param last_name: The agent’s last name as entered in their Amazon Connect user account.
|
|
@@ -5911,7 +8091,7 @@ class CfnMessageTemplate(
|
|
|
5911
8091
|
) -> None:
|
|
5912
8092
|
'''The content of the message template.
|
|
5913
8093
|
|
|
5914
|
-
:param email_message_template_content: The content of message template that applies to email channel subtype.
|
|
8094
|
+
:param email_message_template_content: The content of the message template that applies to the email channel subtype.
|
|
5915
8095
|
:param sms_message_template_content: The content of message template that applies to SMS channel subtype.
|
|
5916
8096
|
|
|
5917
8097
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-content.html
|
|
@@ -5962,7 +8142,7 @@ class CfnMessageTemplate(
|
|
|
5962
8142
|
def email_message_template_content(
|
|
5963
8143
|
self,
|
|
5964
8144
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMessageTemplate.EmailMessageTemplateContentProperty"]]:
|
|
5965
|
-
'''The content of message template that applies to email channel subtype.
|
|
8145
|
+
'''The content of the message template that applies to the email channel subtype.
|
|
5966
8146
|
|
|
5967
8147
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-content.html#cfn-wisdom-messagetemplate-content-emailmessagetemplatecontent
|
|
5968
8148
|
'''
|
|
@@ -6143,11 +8323,11 @@ class CfnMessageTemplate(
|
|
|
6143
8323
|
:param city: The city in which a customer lives.
|
|
6144
8324
|
:param country: The country in which a customer lives.
|
|
6145
8325
|
:param county: The county in which a customer lives.
|
|
6146
|
-
:param custom: The custom attributes
|
|
8326
|
+
:param custom: The custom attributes in customer profile attributes.
|
|
6147
8327
|
:param email_address: The customer's email address, which has not been specified as a personal or business address.
|
|
6148
8328
|
:param first_name: The customer's first name.
|
|
6149
8329
|
:param gender: The customer's gender.
|
|
6150
|
-
:param home_phone_number: The customer's
|
|
8330
|
+
:param home_phone_number: The customer's mobile phone number.
|
|
6151
8331
|
:param last_name: The customer's last name.
|
|
6152
8332
|
:param mailing_address1: The first line of a customer’s mailing address.
|
|
6153
8333
|
:param mailing_address2: The second line of a customer’s mailing address.
|
|
@@ -6640,7 +8820,7 @@ class CfnMessageTemplate(
|
|
|
6640
8820
|
def custom(
|
|
6641
8821
|
self,
|
|
6642
8822
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]]:
|
|
6643
|
-
'''The custom attributes
|
|
8823
|
+
'''The custom attributes in customer profile attributes.
|
|
6644
8824
|
|
|
6645
8825
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-customerprofileattributes.html#cfn-wisdom-messagetemplate-customerprofileattributes-custom
|
|
6646
8826
|
'''
|
|
@@ -6676,7 +8856,7 @@ class CfnMessageTemplate(
|
|
|
6676
8856
|
|
|
6677
8857
|
@builtins.property
|
|
6678
8858
|
def home_phone_number(self) -> typing.Optional[builtins.str]:
|
|
6679
|
-
'''The customer's
|
|
8859
|
+
'''The customer's mobile phone number.
|
|
6680
8860
|
|
|
6681
8861
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-customerprofileattributes.html#cfn-wisdom-messagetemplate-customerprofileattributes-homephonenumber
|
|
6682
8862
|
'''
|
|
@@ -6978,8 +9158,8 @@ class CfnMessageTemplate(
|
|
|
6978
9158
|
) -> None:
|
|
6979
9159
|
'''The body to use in email messages.
|
|
6980
9160
|
|
|
6981
|
-
:param html: The
|
|
6982
|
-
:param plain_text: The
|
|
9161
|
+
:param html: The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
|
|
9162
|
+
:param plain_text: The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
|
|
6983
9163
|
|
|
6984
9164
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-emailmessagetemplatecontentbody.html
|
|
6985
9165
|
:exampleMetadata: fixture=_generated
|
|
@@ -7013,7 +9193,9 @@ class CfnMessageTemplate(
|
|
|
7013
9193
|
def html(
|
|
7014
9194
|
self,
|
|
7015
9195
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMessageTemplate.MessageTemplateBodyContentProviderProperty"]]:
|
|
7016
|
-
'''The
|
|
9196
|
+
'''The message body, in HTML format, to use in email messages that are based on the message template.
|
|
9197
|
+
|
|
9198
|
+
We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
|
|
7017
9199
|
|
|
7018
9200
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-emailmessagetemplatecontentbody.html#cfn-wisdom-messagetemplate-emailmessagetemplatecontentbody-html
|
|
7019
9201
|
'''
|
|
@@ -7024,7 +9206,9 @@ class CfnMessageTemplate(
|
|
|
7024
9206
|
def plain_text(
|
|
7025
9207
|
self,
|
|
7026
9208
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMessageTemplate.MessageTemplateBodyContentProviderProperty"]]:
|
|
7027
|
-
'''The
|
|
9209
|
+
'''The message body, in plain text format, to use in email messages that are based on the message template.
|
|
9210
|
+
|
|
9211
|
+
We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
|
|
7028
9212
|
|
|
7029
9213
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-emailmessagetemplatecontentbody.html#cfn-wisdom-messagetemplate-emailmessagetemplatecontentbody-plaintext
|
|
7030
9214
|
'''
|
|
@@ -7055,7 +9239,7 @@ class CfnMessageTemplate(
|
|
|
7055
9239
|
headers: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnMessageTemplate.EmailMessageTemplateHeaderProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
7056
9240
|
subject: builtins.str,
|
|
7057
9241
|
) -> None:
|
|
7058
|
-
'''The content of message template that applies to email channel subtype.
|
|
9242
|
+
'''The content of the message template that applies to the email channel subtype.
|
|
7059
9243
|
|
|
7060
9244
|
:param body: The body to use in email messages.
|
|
7061
9245
|
:param headers: The email headers to include in email messages.
|
|
@@ -7154,7 +9338,7 @@ class CfnMessageTemplate(
|
|
|
7154
9338
|
name: typing.Optional[builtins.str] = None,
|
|
7155
9339
|
value: typing.Optional[builtins.str] = None,
|
|
7156
9340
|
) -> None:
|
|
7157
|
-
'''The email
|
|
9341
|
+
'''The email headers to include in email messages.
|
|
7158
9342
|
|
|
7159
9343
|
:param name: The name of the email header.
|
|
7160
9344
|
:param value: The value of the email header.
|
|
@@ -7224,10 +9408,10 @@ class CfnMessageTemplate(
|
|
|
7224
9408
|
criteria: builtins.str,
|
|
7225
9409
|
values: typing.Sequence[builtins.str],
|
|
7226
9410
|
) -> None:
|
|
7227
|
-
'''The configuration information of the
|
|
9411
|
+
'''The configuration information of the grouping of Amazon Q in Connect users.
|
|
7228
9412
|
|
|
7229
|
-
:param criteria: The criteria used for grouping Amazon Q in Connect users.
|
|
7230
|
-
:param values: The list of values that define different groups of Amazon Q in Connect users.
|
|
9413
|
+
:param criteria: The criteria used for grouping Amazon Q in Connect users. The following is the list of supported criteria values. - ``RoutingProfileArn`` : Grouping the users by their `Amazon Connect routing profile ARN <https://docs.aws.amazon.com/connect/latest/APIReference/API_RoutingProfile.html>`_ . User should have `SearchRoutingProfile <https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchRoutingProfiles.html>`_ and `DescribeRoutingProfile <https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeRoutingProfile.html>`_ permissions when setting criteria to this value.
|
|
9414
|
+
:param values: The list of values that define different groups of Amazon Q in Connect users. - When setting ``criteria`` to ``RoutingProfileArn`` , you need to provide a list of ARNs of `Amazon Connect routing profiles <https://docs.aws.amazon.com/connect/latest/APIReference/API_RoutingProfile.html>`_ as values of this parameter.
|
|
7231
9415
|
|
|
7232
9416
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-groupingconfiguration.html
|
|
7233
9417
|
:exampleMetadata: fixture=_generated
|
|
@@ -7256,6 +9440,10 @@ class CfnMessageTemplate(
|
|
|
7256
9440
|
def criteria(self) -> builtins.str:
|
|
7257
9441
|
'''The criteria used for grouping Amazon Q in Connect users.
|
|
7258
9442
|
|
|
9443
|
+
The following is the list of supported criteria values.
|
|
9444
|
+
|
|
9445
|
+
- ``RoutingProfileArn`` : Grouping the users by their `Amazon Connect routing profile ARN <https://docs.aws.amazon.com/connect/latest/APIReference/API_RoutingProfile.html>`_ . User should have `SearchRoutingProfile <https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchRoutingProfiles.html>`_ and `DescribeRoutingProfile <https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeRoutingProfile.html>`_ permissions when setting criteria to this value.
|
|
9446
|
+
|
|
7259
9447
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-groupingconfiguration.html#cfn-wisdom-messagetemplate-groupingconfiguration-criteria
|
|
7260
9448
|
'''
|
|
7261
9449
|
result = self._values.get("criteria")
|
|
@@ -7266,6 +9454,8 @@ class CfnMessageTemplate(
|
|
|
7266
9454
|
def values(self) -> typing.List[builtins.str]:
|
|
7267
9455
|
'''The list of values that define different groups of Amazon Q in Connect users.
|
|
7268
9456
|
|
|
9457
|
+
- When setting ``criteria`` to ``RoutingProfileArn`` , you need to provide a list of ARNs of `Amazon Connect routing profiles <https://docs.aws.amazon.com/connect/latest/APIReference/API_RoutingProfile.html>`_ as values of this parameter.
|
|
9458
|
+
|
|
7269
9459
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-groupingconfiguration.html#cfn-wisdom-messagetemplate-groupingconfiguration-values
|
|
7270
9460
|
'''
|
|
7271
9461
|
result = self._values.get("values")
|
|
@@ -7302,9 +9492,7 @@ class CfnMessageTemplate(
|
|
|
7302
9492
|
customer_profile_attributes: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnMessageTemplate.CustomerProfileAttributesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7303
9493
|
system_attributes: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnMessageTemplate.SystemAttributesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7304
9494
|
) -> None:
|
|
7305
|
-
'''
|
|
7306
|
-
|
|
7307
|
-
This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.
|
|
9495
|
+
'''The attributes that are used with the message template.
|
|
7308
9496
|
|
|
7309
9497
|
:param agent_attributes: The agent attributes that are used with the message template.
|
|
7310
9498
|
:param custom_attributes: The custom attributes that are used with the message template.
|
|
@@ -7479,9 +9667,9 @@ class CfnMessageTemplate(
|
|
|
7479
9667
|
)
|
|
7480
9668
|
class MessageTemplateBodyContentProviderProperty:
|
|
7481
9669
|
def __init__(self, *, content: typing.Optional[builtins.str] = None) -> None:
|
|
7482
|
-
'''The container of message template body.
|
|
9670
|
+
'''The container of the message template body.
|
|
7483
9671
|
|
|
7484
|
-
:param content:
|
|
9672
|
+
:param content: The content of the message template.
|
|
7485
9673
|
|
|
7486
9674
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-messagetemplatebodycontentprovider.html
|
|
7487
9675
|
:exampleMetadata: fixture=_generated
|
|
@@ -7505,7 +9693,8 @@ class CfnMessageTemplate(
|
|
|
7505
9693
|
|
|
7506
9694
|
@builtins.property
|
|
7507
9695
|
def content(self) -> typing.Optional[builtins.str]:
|
|
7508
|
-
'''
|
|
9696
|
+
'''The content of the message template.
|
|
9697
|
+
|
|
7509
9698
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-messagetemplatebodycontentprovider.html#cfn-wisdom-messagetemplate-messagetemplatebodycontentprovider-content
|
|
7510
9699
|
'''
|
|
7511
9700
|
result = self._values.get("content")
|
|
@@ -7535,7 +9724,7 @@ class CfnMessageTemplate(
|
|
|
7535
9724
|
) -> None:
|
|
7536
9725
|
'''The body to use in SMS messages.
|
|
7537
9726
|
|
|
7538
|
-
:param plain_text: The
|
|
9727
|
+
:param plain_text: The message body to use in SMS messages.
|
|
7539
9728
|
|
|
7540
9729
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-smsmessagetemplatecontentbody.html
|
|
7541
9730
|
:exampleMetadata: fixture=_generated
|
|
@@ -7563,7 +9752,7 @@ class CfnMessageTemplate(
|
|
|
7563
9752
|
def plain_text(
|
|
7564
9753
|
self,
|
|
7565
9754
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMessageTemplate.MessageTemplateBodyContentProviderProperty"]]:
|
|
7566
|
-
'''The
|
|
9755
|
+
'''The message body to use in SMS messages.
|
|
7567
9756
|
|
|
7568
9757
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-smsmessagetemplatecontentbody.html#cfn-wisdom-messagetemplate-smsmessagetemplatecontentbody-plaintext
|
|
7569
9758
|
'''
|
|
@@ -7592,7 +9781,7 @@ class CfnMessageTemplate(
|
|
|
7592
9781
|
*,
|
|
7593
9782
|
body: typing.Union[_IResolvable_da3f097b, typing.Union["CfnMessageTemplate.SmsMessageTemplateContentBodyProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
7594
9783
|
) -> None:
|
|
7595
|
-
'''The content of message template that applies to SMS channel subtype.
|
|
9784
|
+
'''The content of the message template that applies to the SMS channel subtype.
|
|
7596
9785
|
|
|
7597
9786
|
:param body: The body to use in SMS messages.
|
|
7598
9787
|
|
|
@@ -7662,9 +9851,9 @@ class CfnMessageTemplate(
|
|
|
7662
9851
|
) -> None:
|
|
7663
9852
|
'''The system attributes that are used with the message template.
|
|
7664
9853
|
|
|
7665
|
-
:param customer_endpoint: The
|
|
9854
|
+
:param customer_endpoint: The CustomerEndpoint attribute.
|
|
7666
9855
|
:param name: The name of the task.
|
|
7667
|
-
:param system_endpoint: The
|
|
9856
|
+
:param system_endpoint: The SystemEndpoint attribute.
|
|
7668
9857
|
|
|
7669
9858
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemattributes.html
|
|
7670
9859
|
:exampleMetadata: fixture=_generated
|
|
@@ -7702,7 +9891,7 @@ class CfnMessageTemplate(
|
|
|
7702
9891
|
def customer_endpoint(
|
|
7703
9892
|
self,
|
|
7704
9893
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMessageTemplate.SystemEndpointAttributesProperty"]]:
|
|
7705
|
-
'''The
|
|
9894
|
+
'''The CustomerEndpoint attribute.
|
|
7706
9895
|
|
|
7707
9896
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemattributes.html#cfn-wisdom-messagetemplate-systemattributes-customerendpoint
|
|
7708
9897
|
'''
|
|
@@ -7722,7 +9911,7 @@ class CfnMessageTemplate(
|
|
|
7722
9911
|
def system_endpoint(
|
|
7723
9912
|
self,
|
|
7724
9913
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMessageTemplate.SystemEndpointAttributesProperty"]]:
|
|
7725
|
-
'''The
|
|
9914
|
+
'''The SystemEndpoint attribute.
|
|
7726
9915
|
|
|
7727
9916
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemattributes.html#cfn-wisdom-messagetemplate-systemattributes-systemendpoint
|
|
7728
9917
|
'''
|
|
@@ -7749,7 +9938,7 @@ class CfnMessageTemplate(
|
|
|
7749
9938
|
def __init__(self, *, address: typing.Optional[builtins.str] = None) -> None:
|
|
7750
9939
|
'''The system endpoint attributes that are used with the message template.
|
|
7751
9940
|
|
|
7752
|
-
:param address: The customer's phone number if used with customerEndpoint, or the number the customer dialed to call your contact center if used with systemEndpoint.
|
|
9941
|
+
:param address: The customer's phone number if used with ``customerEndpoint`` , or the number the customer dialed to call your contact center if used with ``systemEndpoint`` .
|
|
7753
9942
|
|
|
7754
9943
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemendpointattributes.html
|
|
7755
9944
|
:exampleMetadata: fixture=_generated
|
|
@@ -7773,7 +9962,7 @@ class CfnMessageTemplate(
|
|
|
7773
9962
|
|
|
7774
9963
|
@builtins.property
|
|
7775
9964
|
def address(self) -> typing.Optional[builtins.str]:
|
|
7776
|
-
'''The customer's phone number if used with customerEndpoint, or the number the customer dialed to call your contact center if used with systemEndpoint.
|
|
9965
|
+
'''The customer's phone number if used with ``customerEndpoint`` , or the number the customer dialed to call your contact center if used with ``systemEndpoint`` .
|
|
7777
9966
|
|
|
7778
9967
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-systemendpointattributes.html#cfn-wisdom-messagetemplate-systemendpointattributes-address
|
|
7779
9968
|
'''
|
|
@@ -7825,13 +10014,13 @@ class CfnMessageTemplateProps:
|
|
|
7825
10014
|
|
|
7826
10015
|
:param channel_subtype: The channel subtype this message template applies to.
|
|
7827
10016
|
:param content: The content of the message template.
|
|
7828
|
-
:param knowledge_base_arn: The Amazon Resource Name (ARN) of the knowledge base
|
|
10017
|
+
:param knowledge_base_arn: The Amazon Resource Name (ARN) of the knowledge base.
|
|
7829
10018
|
:param name: The name of the message template.
|
|
7830
10019
|
:param default_attributes: An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.
|
|
7831
10020
|
:param description: The description of the message template.
|
|
7832
|
-
:param grouping_configuration: The configuration information of the
|
|
7833
|
-
:param language: The language code value for the language in which the
|
|
7834
|
-
:param tags: The tags used to organize, track, or control access for this resource.
|
|
10021
|
+
:param grouping_configuration: The configuration information of the external data source.
|
|
10022
|
+
:param language: The language code value for the language in which the quick response is written. The supported language codes include ``de_DE`` , ``en_US`` , ``es_ES`` , ``fr_FR`` , ``id_ID`` , ``it_IT`` , ``ja_JP`` , ``ko_KR`` , ``pt_BR`` , ``zh_CN`` , ``zh_TW``
|
|
10023
|
+
:param tags: The tags used to organize, track, or control access for this resource.
|
|
7835
10024
|
|
|
7836
10025
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-messagetemplate.html
|
|
7837
10026
|
:exampleMetadata: fixture=_generated
|
|
@@ -8016,7 +10205,7 @@ class CfnMessageTemplateProps:
|
|
|
8016
10205
|
|
|
8017
10206
|
@builtins.property
|
|
8018
10207
|
def knowledge_base_arn(self) -> builtins.str:
|
|
8019
|
-
'''The Amazon Resource Name (ARN) of the knowledge base
|
|
10208
|
+
'''The Amazon Resource Name (ARN) of the knowledge base.
|
|
8020
10209
|
|
|
8021
10210
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-messagetemplate.html#cfn-wisdom-messagetemplate-knowledgebasearn
|
|
8022
10211
|
'''
|
|
@@ -8060,7 +10249,7 @@ class CfnMessageTemplateProps:
|
|
|
8060
10249
|
def grouping_configuration(
|
|
8061
10250
|
self,
|
|
8062
10251
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnMessageTemplate.GroupingConfigurationProperty]]:
|
|
8063
|
-
'''The configuration information of the
|
|
10252
|
+
'''The configuration information of the external data source.
|
|
8064
10253
|
|
|
8065
10254
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-messagetemplate.html#cfn-wisdom-messagetemplate-groupingconfiguration
|
|
8066
10255
|
'''
|
|
@@ -8069,9 +10258,9 @@ class CfnMessageTemplateProps:
|
|
|
8069
10258
|
|
|
8070
10259
|
@builtins.property
|
|
8071
10260
|
def language(self) -> typing.Optional[builtins.str]:
|
|
8072
|
-
'''The language code value for the language in which the
|
|
10261
|
+
'''The language code value for the language in which the quick response is written.
|
|
8073
10262
|
|
|
8074
|
-
The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW
|
|
10263
|
+
The supported language codes include ``de_DE`` , ``en_US`` , ``es_ES`` , ``fr_FR`` , ``id_ID`` , ``it_IT`` , ``ja_JP`` , ``ko_KR`` , ``pt_BR`` , ``zh_CN`` , ``zh_TW``
|
|
8075
10264
|
|
|
8076
10265
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-messagetemplate.html#cfn-wisdom-messagetemplate-language
|
|
8077
10266
|
'''
|
|
@@ -8082,8 +10271,6 @@ class CfnMessageTemplateProps:
|
|
|
8082
10271
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
8083
10272
|
'''The tags used to organize, track, or control access for this resource.
|
|
8084
10273
|
|
|
8085
|
-
For example, { "tags": {"key1":"value1", "key2":"value2"} }.
|
|
8086
|
-
|
|
8087
10274
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-messagetemplate.html#cfn-wisdom-messagetemplate-tags
|
|
8088
10275
|
'''
|
|
8089
10276
|
result = self._values.get("tags")
|
|
@@ -8107,7 +10294,9 @@ class CfnMessageTemplateVersion(
|
|
|
8107
10294
|
metaclass=jsii.JSIIMeta,
|
|
8108
10295
|
jsii_type="aws-cdk-lib.aws_wisdom.CfnMessageTemplateVersion",
|
|
8109
10296
|
):
|
|
8110
|
-
'''
|
|
10297
|
+
'''Creates a new Amazon Q in Connect message template version from the current content and configuration of a message template.
|
|
10298
|
+
|
|
10299
|
+
Versions are immutable and monotonically increasing. Once a version is created, you can reference a specific version of the message template by passing in ``<messageTemplateArn>:<versionNumber>`` as the message template identifier. An error is displayed if the supplied ``messageTemplateContentSha256`` is different from the ``messageTemplateContentSha256`` of the message template with ``$LATEST`` qualifier. If multiple ``CreateMessageTemplateVersion`` requests are made while the message template remains the same, only the first invocation creates a new version and the succeeding requests will return the same response as the first invocation.
|
|
8111
10300
|
|
|
8112
10301
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-messagetemplateversion.html
|
|
8113
10302
|
:cloudformationResource: AWS::Wisdom::MessageTemplateVersion
|
|
@@ -8138,7 +10327,7 @@ class CfnMessageTemplateVersion(
|
|
|
8138
10327
|
'''
|
|
8139
10328
|
:param scope: Scope in which this resource is defined.
|
|
8140
10329
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
8141
|
-
:param message_template_arn: The
|
|
10330
|
+
:param message_template_arn: The Amazon Resource Name (ARN) of the message template.
|
|
8142
10331
|
:param message_template_content_sha256: The content SHA256 of the message template.
|
|
8143
10332
|
'''
|
|
8144
10333
|
if __debug__:
|
|
@@ -8185,7 +10374,7 @@ class CfnMessageTemplateVersion(
|
|
|
8185
10374
|
@builtins.property
|
|
8186
10375
|
@jsii.member(jsii_name="attrMessageTemplateVersionArn")
|
|
8187
10376
|
def attr_message_template_version_arn(self) -> builtins.str:
|
|
8188
|
-
'''The
|
|
10377
|
+
'''The Amazon Resource Name (ARN) of the Message Template Version.
|
|
8189
10378
|
|
|
8190
10379
|
:cloudformationAttribute: MessageTemplateVersionArn
|
|
8191
10380
|
'''
|
|
@@ -8194,7 +10383,7 @@ class CfnMessageTemplateVersion(
|
|
|
8194
10383
|
@builtins.property
|
|
8195
10384
|
@jsii.member(jsii_name="attrMessageTemplateVersionNumber")
|
|
8196
10385
|
def attr_message_template_version_number(self) -> _IResolvable_da3f097b:
|
|
8197
|
-
'''
|
|
10386
|
+
'''The version number for this Message Template Version.
|
|
8198
10387
|
|
|
8199
10388
|
:cloudformationAttribute: MessageTemplateVersionNumber
|
|
8200
10389
|
'''
|
|
@@ -8208,7 +10397,7 @@ class CfnMessageTemplateVersion(
|
|
|
8208
10397
|
@builtins.property
|
|
8209
10398
|
@jsii.member(jsii_name="messageTemplateArn")
|
|
8210
10399
|
def message_template_arn(self) -> builtins.str:
|
|
8211
|
-
'''The
|
|
10400
|
+
'''The Amazon Resource Name (ARN) of the message template.'''
|
|
8212
10401
|
return typing.cast(builtins.str, jsii.get(self, "messageTemplateArn"))
|
|
8213
10402
|
|
|
8214
10403
|
@message_template_arn.setter
|
|
@@ -8252,7 +10441,7 @@ class CfnMessageTemplateVersionProps:
|
|
|
8252
10441
|
) -> None:
|
|
8253
10442
|
'''Properties for defining a ``CfnMessageTemplateVersion``.
|
|
8254
10443
|
|
|
8255
|
-
:param message_template_arn: The
|
|
10444
|
+
:param message_template_arn: The Amazon Resource Name (ARN) of the message template.
|
|
8256
10445
|
:param message_template_content_sha256: The content SHA256 of the message template.
|
|
8257
10446
|
|
|
8258
10447
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-messagetemplateversion.html
|
|
@@ -8283,7 +10472,7 @@ class CfnMessageTemplateVersionProps:
|
|
|
8283
10472
|
|
|
8284
10473
|
@builtins.property
|
|
8285
10474
|
def message_template_arn(self) -> builtins.str:
|
|
8286
|
-
'''The
|
|
10475
|
+
'''The Amazon Resource Name (ARN) of the message template.
|
|
8287
10476
|
|
|
8288
10477
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-messagetemplateversion.html#cfn-wisdom-messagetemplateversion-messagetemplatearn
|
|
8289
10478
|
'''
|
|
@@ -8317,6 +10506,10 @@ __all__ = [
|
|
|
8317
10506
|
"CfnAIAgentProps",
|
|
8318
10507
|
"CfnAIAgentVersion",
|
|
8319
10508
|
"CfnAIAgentVersionProps",
|
|
10509
|
+
"CfnAIGuardrail",
|
|
10510
|
+
"CfnAIGuardrailProps",
|
|
10511
|
+
"CfnAIGuardrailVersion",
|
|
10512
|
+
"CfnAIGuardrailVersionProps",
|
|
8320
10513
|
"CfnAIPrompt",
|
|
8321
10514
|
"CfnAIPromptProps",
|
|
8322
10515
|
"CfnAIPromptVersion",
|
|
@@ -8401,12 +10594,14 @@ def _typecheckingstub__8cb84ad0dc27ffdae65e4e739c98ea6a4e7c36340f15c21ae83a2225f
|
|
|
8401
10594
|
*,
|
|
8402
10595
|
answer_recommendation_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8403
10596
|
manual_search_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.ManualSearchAIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10597
|
+
self_service_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.SelfServiceAIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8404
10598
|
) -> None:
|
|
8405
10599
|
"""Type checking stubs"""
|
|
8406
10600
|
pass
|
|
8407
10601
|
|
|
8408
10602
|
def _typecheckingstub__6847cf788b7def362d576a512b579b2a08c25837003298b7c57254d1dfb45112(
|
|
8409
10603
|
*,
|
|
10604
|
+
answer_generation_ai_guardrail_id: typing.Optional[builtins.str] = None,
|
|
8410
10605
|
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
8411
10606
|
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AssociationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
8412
10607
|
intent_labeling_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
@@ -8442,6 +10637,7 @@ def _typecheckingstub__af25ecdf7592033a618b9a411d145fb2bd7b10ae3e9b0a04a4502e0de
|
|
|
8442
10637
|
|
|
8443
10638
|
def _typecheckingstub__3346eba3a05ad4b31350bf2c54edbb6063a18cfea8a25ebbab80c402438f039a(
|
|
8444
10639
|
*,
|
|
10640
|
+
answer_generation_ai_guardrail_id: typing.Optional[builtins.str] = None,
|
|
8445
10641
|
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
8446
10642
|
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AssociationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
8447
10643
|
) -> None:
|
|
@@ -8456,6 +10652,16 @@ def _typecheckingstub__bf2bbad68aea63c5546563872782e30b131382ddae5fbabf04602b928
|
|
|
8456
10652
|
"""Type checking stubs"""
|
|
8457
10653
|
pass
|
|
8458
10654
|
|
|
10655
|
+
def _typecheckingstub__c0833e248a2b0215b05dd66ce2879efe35c5180b459e725cf02acb524808c7ec(
|
|
10656
|
+
*,
|
|
10657
|
+
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AssociationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
10658
|
+
self_service_ai_guardrail_id: typing.Optional[builtins.str] = None,
|
|
10659
|
+
self_service_answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
10660
|
+
self_service_pre_processing_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
10661
|
+
) -> None:
|
|
10662
|
+
"""Type checking stubs"""
|
|
10663
|
+
pass
|
|
10664
|
+
|
|
8459
10665
|
def _typecheckingstub__76535774a57202e416fb208d73c095c91408f65fd8a1b99f6b568fd994b915e9(
|
|
8460
10666
|
*,
|
|
8461
10667
|
key: builtins.str,
|
|
@@ -8535,6 +10741,266 @@ def _typecheckingstub__6ce55b0c69b9bc58cfcaeadaff04d7986170a5f73af9f6157ba1fe19c
|
|
|
8535
10741
|
"""Type checking stubs"""
|
|
8536
10742
|
pass
|
|
8537
10743
|
|
|
10744
|
+
def _typecheckingstub__76ea8e26c58eaed3d156b1860dd33693ef608e81ac9c96aa849d3236df58330b(
|
|
10745
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
10746
|
+
id: builtins.str,
|
|
10747
|
+
*,
|
|
10748
|
+
assistant_id: builtins.str,
|
|
10749
|
+
blocked_input_messaging: builtins.str,
|
|
10750
|
+
blocked_outputs_messaging: builtins.str,
|
|
10751
|
+
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10752
|
+
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10753
|
+
description: typing.Optional[builtins.str] = None,
|
|
10754
|
+
name: typing.Optional[builtins.str] = None,
|
|
10755
|
+
sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10756
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
10757
|
+
topic_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10758
|
+
word_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10759
|
+
) -> None:
|
|
10760
|
+
"""Type checking stubs"""
|
|
10761
|
+
pass
|
|
10762
|
+
|
|
10763
|
+
def _typecheckingstub__7fbdc5de28d3c991f79f98e3c345ade75e45ce50bdb72f64634f0031d019b3e0(
|
|
10764
|
+
inspector: _TreeInspector_488e0dd5,
|
|
10765
|
+
) -> None:
|
|
10766
|
+
"""Type checking stubs"""
|
|
10767
|
+
pass
|
|
10768
|
+
|
|
10769
|
+
def _typecheckingstub__71dcd22a9ef76aa3a7c280a922b91cc6f9cd7b114a93623bb44dbc112e60ec54(
|
|
10770
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
10771
|
+
) -> None:
|
|
10772
|
+
"""Type checking stubs"""
|
|
10773
|
+
pass
|
|
10774
|
+
|
|
10775
|
+
def _typecheckingstub__24f61192b3941f9e6c1d63e119a6d1f1ac8e4e31bfb9beda991736af85ba7edc(
|
|
10776
|
+
value: builtins.str,
|
|
10777
|
+
) -> None:
|
|
10778
|
+
"""Type checking stubs"""
|
|
10779
|
+
pass
|
|
10780
|
+
|
|
10781
|
+
def _typecheckingstub__8a3f10e3678233e9583c04468dd2fa9082d1099e59298bafe2cbef0c5d3a0a58(
|
|
10782
|
+
value: builtins.str,
|
|
10783
|
+
) -> None:
|
|
10784
|
+
"""Type checking stubs"""
|
|
10785
|
+
pass
|
|
10786
|
+
|
|
10787
|
+
def _typecheckingstub__ab881749cd994050fdfe9190c2ad83d2d5995d553667532d5b3046c5784f3a46(
|
|
10788
|
+
value: builtins.str,
|
|
10789
|
+
) -> None:
|
|
10790
|
+
"""Type checking stubs"""
|
|
10791
|
+
pass
|
|
10792
|
+
|
|
10793
|
+
def _typecheckingstub__af0b681055aef2365d977a2adefd9d9d8538dd4e7497bed81a040c4d3e6d1013(
|
|
10794
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty]],
|
|
10795
|
+
) -> None:
|
|
10796
|
+
"""Type checking stubs"""
|
|
10797
|
+
pass
|
|
10798
|
+
|
|
10799
|
+
def _typecheckingstub__e6f963ab8c2eace9b626eca75747edc1eef5302cb2ca185e3c17ef190404aa68(
|
|
10800
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty]],
|
|
10801
|
+
) -> None:
|
|
10802
|
+
"""Type checking stubs"""
|
|
10803
|
+
pass
|
|
10804
|
+
|
|
10805
|
+
def _typecheckingstub__13bc08d099c391203a59ca71c4b7738f433a55e9dce1b3ec45bc792ea35be252(
|
|
10806
|
+
value: typing.Optional[builtins.str],
|
|
10807
|
+
) -> None:
|
|
10808
|
+
"""Type checking stubs"""
|
|
10809
|
+
pass
|
|
10810
|
+
|
|
10811
|
+
def _typecheckingstub__f5074d801992ea9ab774216aab1356ca4243d514bdf42abc16be1a957239bdca(
|
|
10812
|
+
value: typing.Optional[builtins.str],
|
|
10813
|
+
) -> None:
|
|
10814
|
+
"""Type checking stubs"""
|
|
10815
|
+
pass
|
|
10816
|
+
|
|
10817
|
+
def _typecheckingstub__e94179fb829e66c40130c72071c91ec85dbd64f5e3e9cbe35c4966a40c3fefda(
|
|
10818
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty]],
|
|
10819
|
+
) -> None:
|
|
10820
|
+
"""Type checking stubs"""
|
|
10821
|
+
pass
|
|
10822
|
+
|
|
10823
|
+
def _typecheckingstub__4c295406d2cf871f486448002b556c3b63d9432e2114674011371326c1ba7c1b(
|
|
10824
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
10825
|
+
) -> None:
|
|
10826
|
+
"""Type checking stubs"""
|
|
10827
|
+
pass
|
|
10828
|
+
|
|
10829
|
+
def _typecheckingstub__a8bb338f6da5f73bdb4820c73ee887f612953bf85b2d8bd54e7541ea081f4f53(
|
|
10830
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty]],
|
|
10831
|
+
) -> None:
|
|
10832
|
+
"""Type checking stubs"""
|
|
10833
|
+
pass
|
|
10834
|
+
|
|
10835
|
+
def _typecheckingstub__f41825c818a79784ab378059125875eeee0524136b34267aa4caca170457da14(
|
|
10836
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty]],
|
|
10837
|
+
) -> None:
|
|
10838
|
+
"""Type checking stubs"""
|
|
10839
|
+
pass
|
|
10840
|
+
|
|
10841
|
+
def _typecheckingstub__e3b7764340b5366a000b7609f9e6c1b7857f2afd9dca723fd492a1e331b82b32(
|
|
10842
|
+
*,
|
|
10843
|
+
filters_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.GuardrailContentFilterConfigProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
10844
|
+
) -> None:
|
|
10845
|
+
"""Type checking stubs"""
|
|
10846
|
+
pass
|
|
10847
|
+
|
|
10848
|
+
def _typecheckingstub__b8b3e67068f407c2f3042d1380119651fa9edd8b97c312dbce41168ba5036ce3(
|
|
10849
|
+
*,
|
|
10850
|
+
filters_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.GuardrailContextualGroundingFilterConfigProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
10851
|
+
) -> None:
|
|
10852
|
+
"""Type checking stubs"""
|
|
10853
|
+
pass
|
|
10854
|
+
|
|
10855
|
+
def _typecheckingstub__b1019f2767cdb75a66ac9e6dbb808d33ced4e1d098b227029ca4e8aaace98331(
|
|
10856
|
+
*,
|
|
10857
|
+
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,
|
|
10858
|
+
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,
|
|
10859
|
+
) -> None:
|
|
10860
|
+
"""Type checking stubs"""
|
|
10861
|
+
pass
|
|
10862
|
+
|
|
10863
|
+
def _typecheckingstub__c9fd7602104f512891874b785e4236b2dd9131ea684d5c3e16792b3e5f9a3767(
|
|
10864
|
+
*,
|
|
10865
|
+
topics_config: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.GuardrailTopicConfigProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
10866
|
+
) -> None:
|
|
10867
|
+
"""Type checking stubs"""
|
|
10868
|
+
pass
|
|
10869
|
+
|
|
10870
|
+
def _typecheckingstub__ddb251dfe6c0ff4b7a273bddeb253f5fc859e92197286c2d46566bdebdb6837d(
|
|
10871
|
+
*,
|
|
10872
|
+
managed_word_lists_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.GuardrailManagedWordsConfigProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
10873
|
+
words_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.GuardrailWordConfigProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
10874
|
+
) -> None:
|
|
10875
|
+
"""Type checking stubs"""
|
|
10876
|
+
pass
|
|
10877
|
+
|
|
10878
|
+
def _typecheckingstub__e47d1e764075659f79a8e65f93d2613f269a815edddfaa5255b97587dc9f2a91(
|
|
10879
|
+
*,
|
|
10880
|
+
input_strength: builtins.str,
|
|
10881
|
+
output_strength: builtins.str,
|
|
10882
|
+
type: builtins.str,
|
|
10883
|
+
) -> None:
|
|
10884
|
+
"""Type checking stubs"""
|
|
10885
|
+
pass
|
|
10886
|
+
|
|
10887
|
+
def _typecheckingstub__57e4e4233989e39271f6f5b1254ba49184eaf97a79f1df28337cd59a6a5ce09f(
|
|
10888
|
+
*,
|
|
10889
|
+
threshold: jsii.Number,
|
|
10890
|
+
type: builtins.str,
|
|
10891
|
+
) -> None:
|
|
10892
|
+
"""Type checking stubs"""
|
|
10893
|
+
pass
|
|
10894
|
+
|
|
10895
|
+
def _typecheckingstub__dfc19deb6dd371180a4bb8d9f0990f6132afb22d46b71ae1e32e4ffdbe4ef567(
|
|
10896
|
+
*,
|
|
10897
|
+
type: builtins.str,
|
|
10898
|
+
) -> None:
|
|
10899
|
+
"""Type checking stubs"""
|
|
10900
|
+
pass
|
|
10901
|
+
|
|
10902
|
+
def _typecheckingstub__c764d4acc62cb140dda0e1c7dbd2f6738df34c8fb43ef4cf0d9a9941f03af4c1(
|
|
10903
|
+
*,
|
|
10904
|
+
action: builtins.str,
|
|
10905
|
+
type: builtins.str,
|
|
10906
|
+
) -> None:
|
|
10907
|
+
"""Type checking stubs"""
|
|
10908
|
+
pass
|
|
10909
|
+
|
|
10910
|
+
def _typecheckingstub__5a28c8495c26410e3b614188ff183453c712c882484a101d2d68ce3d2a925385(
|
|
10911
|
+
*,
|
|
10912
|
+
action: builtins.str,
|
|
10913
|
+
name: builtins.str,
|
|
10914
|
+
pattern: builtins.str,
|
|
10915
|
+
description: typing.Optional[builtins.str] = None,
|
|
10916
|
+
) -> None:
|
|
10917
|
+
"""Type checking stubs"""
|
|
10918
|
+
pass
|
|
10919
|
+
|
|
10920
|
+
def _typecheckingstub__925705bff59beafe6b6eee70065213b10cb0a6047a45adbdaf25fa9a8b0ee5cf(
|
|
10921
|
+
*,
|
|
10922
|
+
definition: builtins.str,
|
|
10923
|
+
name: builtins.str,
|
|
10924
|
+
type: builtins.str,
|
|
10925
|
+
examples: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
10926
|
+
) -> None:
|
|
10927
|
+
"""Type checking stubs"""
|
|
10928
|
+
pass
|
|
10929
|
+
|
|
10930
|
+
def _typecheckingstub__606553234f4510e4e970f7df37efccc44b1516de671a981777f6102615e8243d(
|
|
10931
|
+
*,
|
|
10932
|
+
text: builtins.str,
|
|
10933
|
+
) -> None:
|
|
10934
|
+
"""Type checking stubs"""
|
|
10935
|
+
pass
|
|
10936
|
+
|
|
10937
|
+
def _typecheckingstub__272934bdd57f29fc5c93ba393c351f7b04e959a7a6be0e13591e187bd90df3aa(
|
|
10938
|
+
*,
|
|
10939
|
+
assistant_id: builtins.str,
|
|
10940
|
+
blocked_input_messaging: builtins.str,
|
|
10941
|
+
blocked_outputs_messaging: builtins.str,
|
|
10942
|
+
content_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailContentPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10943
|
+
contextual_grounding_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailContextualGroundingPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10944
|
+
description: typing.Optional[builtins.str] = None,
|
|
10945
|
+
name: typing.Optional[builtins.str] = None,
|
|
10946
|
+
sensitive_information_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailSensitiveInformationPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10947
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
10948
|
+
topic_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailTopicPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10949
|
+
word_policy_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIGuardrail.AIGuardrailWordPolicyConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10950
|
+
) -> None:
|
|
10951
|
+
"""Type checking stubs"""
|
|
10952
|
+
pass
|
|
10953
|
+
|
|
10954
|
+
def _typecheckingstub__7a9a92a95cf92d95c08e9a7abc4202740081918bf2082c415b59e8a388ed1ceb(
|
|
10955
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
10956
|
+
id: builtins.str,
|
|
10957
|
+
*,
|
|
10958
|
+
ai_guardrail_id: builtins.str,
|
|
10959
|
+
assistant_id: builtins.str,
|
|
10960
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
10961
|
+
) -> None:
|
|
10962
|
+
"""Type checking stubs"""
|
|
10963
|
+
pass
|
|
10964
|
+
|
|
10965
|
+
def _typecheckingstub__ce87f6cc038ae50940e8317ea6eb15fb4755952543358f516cfb8178eb844887(
|
|
10966
|
+
inspector: _TreeInspector_488e0dd5,
|
|
10967
|
+
) -> None:
|
|
10968
|
+
"""Type checking stubs"""
|
|
10969
|
+
pass
|
|
10970
|
+
|
|
10971
|
+
def _typecheckingstub__cb4398a8c6a20907582fa6297d25cfd57e7cd74c3d99a7d32fa8f1476c4ba7f4(
|
|
10972
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
10973
|
+
) -> None:
|
|
10974
|
+
"""Type checking stubs"""
|
|
10975
|
+
pass
|
|
10976
|
+
|
|
10977
|
+
def _typecheckingstub__a553f580b0f104a026581e9450d365d429441d11d53e610beb7a35a5229aedf5(
|
|
10978
|
+
value: builtins.str,
|
|
10979
|
+
) -> None:
|
|
10980
|
+
"""Type checking stubs"""
|
|
10981
|
+
pass
|
|
10982
|
+
|
|
10983
|
+
def _typecheckingstub__ad42f08834e2762e6f546d5167e6c7dccf9f639bbf36d9596aa7a154f6898e41(
|
|
10984
|
+
value: builtins.str,
|
|
10985
|
+
) -> None:
|
|
10986
|
+
"""Type checking stubs"""
|
|
10987
|
+
pass
|
|
10988
|
+
|
|
10989
|
+
def _typecheckingstub__94c07d3aa9bfd5fbb498b3a8c9f38b60219be42b9521625f0f8d680e6206d6ee(
|
|
10990
|
+
value: typing.Optional[jsii.Number],
|
|
10991
|
+
) -> None:
|
|
10992
|
+
"""Type checking stubs"""
|
|
10993
|
+
pass
|
|
10994
|
+
|
|
10995
|
+
def _typecheckingstub__6a99128fc6202c08bbbe787b73cc8f6fe79376afb6a408a1c3b9f1d86295794b(
|
|
10996
|
+
*,
|
|
10997
|
+
ai_guardrail_id: builtins.str,
|
|
10998
|
+
assistant_id: builtins.str,
|
|
10999
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
11000
|
+
) -> None:
|
|
11001
|
+
"""Type checking stubs"""
|
|
11002
|
+
pass
|
|
11003
|
+
|
|
8538
11004
|
def _typecheckingstub__48a265f7ec519ced4028dd8e69d5a1fe8ef89d36b11d693c968f74c8be6bb9df(
|
|
8539
11005
|
scope: _constructs_77d1e7e8.Construct,
|
|
8540
11006
|
id: builtins.str,
|