aws-cdk-lib 2.165.0__py3-none-any.whl → 2.167.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +1 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.165.0.jsii.tgz → aws-cdk-lib@2.167.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +9 -0
- aws_cdk/aws_appsync/__init__.py +2271 -359
- aws_cdk/aws_backup/__init__.py +57 -31
- aws_cdk/aws_bedrock/__init__.py +994 -197
- aws_cdk/aws_cleanrooms/__init__.py +66 -5
- aws_cdk/aws_cloudfront/__init__.py +21 -3
- aws_cdk/aws_cloudfront/experimental/__init__.py +3 -3
- aws_cdk/aws_codebuild/__init__.py +59 -29
- aws_cdk/aws_codepipeline/__init__.py +98 -5
- aws_cdk/aws_codestar/__init__.py +1 -1
- aws_cdk/aws_cognito/__init__.py +0 -8
- aws_cdk/aws_connect/__init__.py +1 -1
- aws_cdk/aws_datasync/__init__.py +60 -7
- aws_cdk/aws_devopsguru/__init__.py +2 -2
- aws_cdk/aws_dms/__init__.py +762 -0
- aws_cdk/aws_dynamodb/__init__.py +13 -8
- aws_cdk/aws_ec2/__init__.py +316 -11
- aws_cdk/aws_ecs/__init__.py +20 -7
- aws_cdk/aws_elasticache/__init__.py +16 -9
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +73 -46
- aws_cdk/aws_emrserverless/__init__.py +35 -33
- aws_cdk/aws_events/__init__.py +25 -30
- aws_cdk/aws_gamelift/__init__.py +52 -40
- aws_cdk/aws_inspectorv2/__init__.py +6 -12
- aws_cdk/aws_kinesis/__init__.py +297 -1
- aws_cdk/aws_kms/__init__.py +2 -0
- aws_cdk/aws_lambda/__init__.py +339 -22
- aws_cdk/aws_lambda_nodejs/__init__.py +3 -3
- aws_cdk/aws_logs/__init__.py +214 -0
- aws_cdk/aws_m2/__init__.py +58 -58
- aws_cdk/aws_mediapackagev2/__init__.py +191 -0
- aws_cdk/aws_networkfirewall/__init__.py +14 -5
- aws_cdk/aws_nimblestudio/__init__.py +6 -103
- aws_cdk/aws_opensearchservice/__init__.py +969 -0
- aws_cdk/aws_pipes/__init__.py +1 -1
- aws_cdk/aws_qbusiness/__init__.py +2 -0
- aws_cdk/aws_quicksight/__init__.py +481 -10
- aws_cdk/aws_rds/__init__.py +667 -16
- aws_cdk/aws_route53/__init__.py +38 -12
- aws_cdk/aws_s3_assets/__init__.py +37 -0
- aws_cdk/aws_s3_deployment/__init__.py +18 -7
- aws_cdk/aws_sagemaker/__init__.py +61 -25
- aws_cdk/aws_secretsmanager/__init__.py +2 -1
- aws_cdk/aws_servicecatalog/__init__.py +52 -4
- aws_cdk/aws_ses/__init__.py +22 -1
- aws_cdk/aws_sqs/__init__.py +12 -9
- aws_cdk/aws_stepfunctions/__init__.py +8 -0
- aws_cdk/aws_synthetics/__init__.py +133 -1
- aws_cdk/aws_timestream/__init__.py +41 -0
- aws_cdk/aws_wisdom/__init__.py +2348 -54
- aws_cdk/triggers/__init__.py +3 -3
- {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/RECORD +60 -60
- {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_wisdom/__init__.py
CHANGED
|
@@ -70,6 +70,1794 @@ from .. import (
|
|
|
70
70
|
)
|
|
71
71
|
|
|
72
72
|
|
|
73
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
74
|
+
class CfnAIAgent(
|
|
75
|
+
_CfnResource_9df397a6,
|
|
76
|
+
metaclass=jsii.JSIIMeta,
|
|
77
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent",
|
|
78
|
+
):
|
|
79
|
+
'''Creates an Amazon Q in Connect AI Agent.
|
|
80
|
+
|
|
81
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html
|
|
82
|
+
:cloudformationResource: AWS::Wisdom::AIAgent
|
|
83
|
+
:exampleMetadata: fixture=_generated
|
|
84
|
+
|
|
85
|
+
Example::
|
|
86
|
+
|
|
87
|
+
# The code below shows an example of how to instantiate this type.
|
|
88
|
+
# The values are placeholders you should change.
|
|
89
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
90
|
+
|
|
91
|
+
cfn_aIAgent = wisdom.CfnAIAgent(self, "MyCfnAIAgent",
|
|
92
|
+
assistant_id="assistantId",
|
|
93
|
+
configuration=wisdom.CfnAIAgent.AIAgentConfigurationProperty(
|
|
94
|
+
answer_recommendation_ai_agent_configuration=wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty(
|
|
95
|
+
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
96
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
97
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
98
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
99
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
100
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
101
|
+
key="key",
|
|
102
|
+
|
|
103
|
+
# the properties below are optional
|
|
104
|
+
value="value"
|
|
105
|
+
)],
|
|
106
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
107
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
108
|
+
key="key",
|
|
109
|
+
|
|
110
|
+
# the properties below are optional
|
|
111
|
+
value="value"
|
|
112
|
+
)],
|
|
113
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
114
|
+
key="key",
|
|
115
|
+
|
|
116
|
+
# the properties below are optional
|
|
117
|
+
value="value"
|
|
118
|
+
)
|
|
119
|
+
)],
|
|
120
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
121
|
+
key="key",
|
|
122
|
+
|
|
123
|
+
# the properties below are optional
|
|
124
|
+
value="value"
|
|
125
|
+
)
|
|
126
|
+
),
|
|
127
|
+
max_results=123,
|
|
128
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
129
|
+
)
|
|
130
|
+
),
|
|
131
|
+
association_id="associationId",
|
|
132
|
+
association_type="associationType"
|
|
133
|
+
)],
|
|
134
|
+
intent_labeling_generation_ai_prompt_id="intentLabelingGenerationAiPromptId",
|
|
135
|
+
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
136
|
+
),
|
|
137
|
+
manual_search_ai_agent_configuration=wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
138
|
+
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
139
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
140
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
141
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
142
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
143
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
144
|
+
key="key",
|
|
145
|
+
|
|
146
|
+
# the properties below are optional
|
|
147
|
+
value="value"
|
|
148
|
+
)],
|
|
149
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
150
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
151
|
+
key="key",
|
|
152
|
+
|
|
153
|
+
# the properties below are optional
|
|
154
|
+
value="value"
|
|
155
|
+
)],
|
|
156
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
157
|
+
key="key",
|
|
158
|
+
|
|
159
|
+
# the properties below are optional
|
|
160
|
+
value="value"
|
|
161
|
+
)
|
|
162
|
+
)],
|
|
163
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
164
|
+
key="key",
|
|
165
|
+
|
|
166
|
+
# the properties below are optional
|
|
167
|
+
value="value"
|
|
168
|
+
)
|
|
169
|
+
),
|
|
170
|
+
max_results=123,
|
|
171
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
172
|
+
)
|
|
173
|
+
),
|
|
174
|
+
association_id="associationId",
|
|
175
|
+
association_type="associationType"
|
|
176
|
+
)]
|
|
177
|
+
)
|
|
178
|
+
),
|
|
179
|
+
type="type",
|
|
180
|
+
|
|
181
|
+
# the properties below are optional
|
|
182
|
+
description="description",
|
|
183
|
+
name="name",
|
|
184
|
+
tags={
|
|
185
|
+
"tags_key": "tags"
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
'''
|
|
189
|
+
|
|
190
|
+
def __init__(
|
|
191
|
+
self,
|
|
192
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
193
|
+
id: builtins.str,
|
|
194
|
+
*,
|
|
195
|
+
assistant_id: builtins.str,
|
|
196
|
+
configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
197
|
+
type: builtins.str,
|
|
198
|
+
description: typing.Optional[builtins.str] = None,
|
|
199
|
+
name: typing.Optional[builtins.str] = None,
|
|
200
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
201
|
+
) -> None:
|
|
202
|
+
'''
|
|
203
|
+
:param scope: Scope in which this resource is defined.
|
|
204
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
205
|
+
:param assistant_id: The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
206
|
+
:param configuration: Configuration for the AI Agent.
|
|
207
|
+
:param type: The type of the AI Agent.
|
|
208
|
+
:param description: The description of the AI Agent.
|
|
209
|
+
:param name: The name of the AI Agent.
|
|
210
|
+
:param tags: The tags used to organize, track, or control access for this resource.
|
|
211
|
+
'''
|
|
212
|
+
if __debug__:
|
|
213
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e4d43de9ccaeb31eba5b0b613ecac25531a87bb9137652388e6196070f4622ab)
|
|
214
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
215
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
216
|
+
props = CfnAIAgentProps(
|
|
217
|
+
assistant_id=assistant_id,
|
|
218
|
+
configuration=configuration,
|
|
219
|
+
type=type,
|
|
220
|
+
description=description,
|
|
221
|
+
name=name,
|
|
222
|
+
tags=tags,
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
226
|
+
|
|
227
|
+
@jsii.member(jsii_name="inspect")
|
|
228
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
229
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
230
|
+
|
|
231
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
232
|
+
'''
|
|
233
|
+
if __debug__:
|
|
234
|
+
type_hints = typing.get_type_hints(_typecheckingstub__daf9bd162ab4eaa6b11972bcaf8372498a47b4ad8cf111130cabfae3f675d2b4)
|
|
235
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
236
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
237
|
+
|
|
238
|
+
@jsii.member(jsii_name="renderProperties")
|
|
239
|
+
def _render_properties(
|
|
240
|
+
self,
|
|
241
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
242
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
243
|
+
'''
|
|
244
|
+
:param props: -
|
|
245
|
+
'''
|
|
246
|
+
if __debug__:
|
|
247
|
+
type_hints = typing.get_type_hints(_typecheckingstub__569f9e85834b9b380045c7e9789b3ac0684022e3b37642b34e232ba9b451ade6)
|
|
248
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
249
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
250
|
+
|
|
251
|
+
@jsii.python.classproperty
|
|
252
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
253
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
254
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
255
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
256
|
+
|
|
257
|
+
@builtins.property
|
|
258
|
+
@jsii.member(jsii_name="attrAiAgentArn")
|
|
259
|
+
def attr_ai_agent_arn(self) -> builtins.str:
|
|
260
|
+
'''The Amazon Resource Name (ARN) of the AI agent.
|
|
261
|
+
|
|
262
|
+
:cloudformationAttribute: AIAgentArn
|
|
263
|
+
'''
|
|
264
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiAgentArn"))
|
|
265
|
+
|
|
266
|
+
@builtins.property
|
|
267
|
+
@jsii.member(jsii_name="attrAiAgentId")
|
|
268
|
+
def attr_ai_agent_id(self) -> builtins.str:
|
|
269
|
+
'''The identifier of the AI Agent.
|
|
270
|
+
|
|
271
|
+
:cloudformationAttribute: AIAgentId
|
|
272
|
+
'''
|
|
273
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiAgentId"))
|
|
274
|
+
|
|
275
|
+
@builtins.property
|
|
276
|
+
@jsii.member(jsii_name="attrAssistantArn")
|
|
277
|
+
def attr_assistant_arn(self) -> builtins.str:
|
|
278
|
+
'''The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
|
|
279
|
+
|
|
280
|
+
:cloudformationAttribute: AssistantArn
|
|
281
|
+
'''
|
|
282
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
283
|
+
|
|
284
|
+
@builtins.property
|
|
285
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
286
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
287
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
288
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
289
|
+
|
|
290
|
+
@builtins.property
|
|
291
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
292
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
293
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
294
|
+
|
|
295
|
+
@builtins.property
|
|
296
|
+
@jsii.member(jsii_name="assistantId")
|
|
297
|
+
def assistant_id(self) -> builtins.str:
|
|
298
|
+
'''The identifier of the Amazon Q in Connect assistant.'''
|
|
299
|
+
return typing.cast(builtins.str, jsii.get(self, "assistantId"))
|
|
300
|
+
|
|
301
|
+
@assistant_id.setter
|
|
302
|
+
def assistant_id(self, value: builtins.str) -> None:
|
|
303
|
+
if __debug__:
|
|
304
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b3d8fd38839efd97edc463e08adcbeb6d1b964aa278b19d07017fb40c806bb19)
|
|
305
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
306
|
+
jsii.set(self, "assistantId", value) # pyright: ignore[reportArgumentType]
|
|
307
|
+
|
|
308
|
+
@builtins.property
|
|
309
|
+
@jsii.member(jsii_name="configuration")
|
|
310
|
+
def configuration(
|
|
311
|
+
self,
|
|
312
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AIAgentConfigurationProperty"]:
|
|
313
|
+
'''Configuration for the AI Agent.'''
|
|
314
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AIAgentConfigurationProperty"], jsii.get(self, "configuration"))
|
|
315
|
+
|
|
316
|
+
@configuration.setter
|
|
317
|
+
def configuration(
|
|
318
|
+
self,
|
|
319
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AIAgentConfigurationProperty"],
|
|
320
|
+
) -> None:
|
|
321
|
+
if __debug__:
|
|
322
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2d07c289ddb2abe8b14c5f581386f3377fb7266b5b099c89c1b142b4bbd9d769)
|
|
323
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
324
|
+
jsii.set(self, "configuration", value) # pyright: ignore[reportArgumentType]
|
|
325
|
+
|
|
326
|
+
@builtins.property
|
|
327
|
+
@jsii.member(jsii_name="type")
|
|
328
|
+
def type(self) -> builtins.str:
|
|
329
|
+
'''The type of the AI Agent.'''
|
|
330
|
+
return typing.cast(builtins.str, jsii.get(self, "type"))
|
|
331
|
+
|
|
332
|
+
@type.setter
|
|
333
|
+
def type(self, value: builtins.str) -> None:
|
|
334
|
+
if __debug__:
|
|
335
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9b90fdd18e60e92e1589e2bf61b55c6cd7758b9da5e26d00525cb08a2ad13830)
|
|
336
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
337
|
+
jsii.set(self, "type", value) # pyright: ignore[reportArgumentType]
|
|
338
|
+
|
|
339
|
+
@builtins.property
|
|
340
|
+
@jsii.member(jsii_name="description")
|
|
341
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
342
|
+
'''The description of the AI Agent.'''
|
|
343
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
344
|
+
|
|
345
|
+
@description.setter
|
|
346
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
347
|
+
if __debug__:
|
|
348
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6380f3badbada0c208691bd5242dfabe1122f10b446d77f1ae5ad0c9da456ae8)
|
|
349
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
350
|
+
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
351
|
+
|
|
352
|
+
@builtins.property
|
|
353
|
+
@jsii.member(jsii_name="name")
|
|
354
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
355
|
+
'''The name of the AI Agent.'''
|
|
356
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
357
|
+
|
|
358
|
+
@name.setter
|
|
359
|
+
def name(self, value: typing.Optional[builtins.str]) -> None:
|
|
360
|
+
if __debug__:
|
|
361
|
+
type_hints = typing.get_type_hints(_typecheckingstub__982490f39ff188d23898421a1623ad1489db32be592625d58e01c368c7568247)
|
|
362
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
363
|
+
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
364
|
+
|
|
365
|
+
@builtins.property
|
|
366
|
+
@jsii.member(jsii_name="tags")
|
|
367
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
368
|
+
'''The tags used to organize, track, or control access for this resource.'''
|
|
369
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
370
|
+
|
|
371
|
+
@tags.setter
|
|
372
|
+
def tags(
|
|
373
|
+
self,
|
|
374
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
375
|
+
) -> None:
|
|
376
|
+
if __debug__:
|
|
377
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2e3ed01afbf4aa2c01303d467dcbf5c5cd3fb267902b917f3c4f5fdd0d83ccdc)
|
|
378
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
379
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
380
|
+
|
|
381
|
+
@jsii.data_type(
|
|
382
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.AIAgentConfigurationProperty",
|
|
383
|
+
jsii_struct_bases=[],
|
|
384
|
+
name_mapping={
|
|
385
|
+
"answer_recommendation_ai_agent_configuration": "answerRecommendationAiAgentConfiguration",
|
|
386
|
+
"manual_search_ai_agent_configuration": "manualSearchAiAgentConfiguration",
|
|
387
|
+
},
|
|
388
|
+
)
|
|
389
|
+
class AIAgentConfigurationProperty:
|
|
390
|
+
def __init__(
|
|
391
|
+
self,
|
|
392
|
+
*,
|
|
393
|
+
answer_recommendation_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
394
|
+
manual_search_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.ManualSearchAIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
395
|
+
) -> None:
|
|
396
|
+
'''
|
|
397
|
+
:param answer_recommendation_ai_agent_configuration:
|
|
398
|
+
:param manual_search_ai_agent_configuration:
|
|
399
|
+
|
|
400
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html
|
|
401
|
+
:exampleMetadata: fixture=_generated
|
|
402
|
+
|
|
403
|
+
Example::
|
|
404
|
+
|
|
405
|
+
# The code below shows an example of how to instantiate this type.
|
|
406
|
+
# The values are placeholders you should change.
|
|
407
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
408
|
+
|
|
409
|
+
a_iAgent_configuration_property = wisdom.CfnAIAgent.AIAgentConfigurationProperty(
|
|
410
|
+
answer_recommendation_ai_agent_configuration=wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty(
|
|
411
|
+
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
412
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
413
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
414
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
415
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
416
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
417
|
+
key="key",
|
|
418
|
+
|
|
419
|
+
# the properties below are optional
|
|
420
|
+
value="value"
|
|
421
|
+
)],
|
|
422
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
423
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
424
|
+
key="key",
|
|
425
|
+
|
|
426
|
+
# the properties below are optional
|
|
427
|
+
value="value"
|
|
428
|
+
)],
|
|
429
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
430
|
+
key="key",
|
|
431
|
+
|
|
432
|
+
# the properties below are optional
|
|
433
|
+
value="value"
|
|
434
|
+
)
|
|
435
|
+
)],
|
|
436
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
437
|
+
key="key",
|
|
438
|
+
|
|
439
|
+
# the properties below are optional
|
|
440
|
+
value="value"
|
|
441
|
+
)
|
|
442
|
+
),
|
|
443
|
+
max_results=123,
|
|
444
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
445
|
+
)
|
|
446
|
+
),
|
|
447
|
+
association_id="associationId",
|
|
448
|
+
association_type="associationType"
|
|
449
|
+
)],
|
|
450
|
+
intent_labeling_generation_ai_prompt_id="intentLabelingGenerationAiPromptId",
|
|
451
|
+
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
452
|
+
),
|
|
453
|
+
manual_search_ai_agent_configuration=wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
454
|
+
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
455
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
456
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
457
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
458
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
459
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
460
|
+
key="key",
|
|
461
|
+
|
|
462
|
+
# the properties below are optional
|
|
463
|
+
value="value"
|
|
464
|
+
)],
|
|
465
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
466
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
467
|
+
key="key",
|
|
468
|
+
|
|
469
|
+
# the properties below are optional
|
|
470
|
+
value="value"
|
|
471
|
+
)],
|
|
472
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
473
|
+
key="key",
|
|
474
|
+
|
|
475
|
+
# the properties below are optional
|
|
476
|
+
value="value"
|
|
477
|
+
)
|
|
478
|
+
)],
|
|
479
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
480
|
+
key="key",
|
|
481
|
+
|
|
482
|
+
# the properties below are optional
|
|
483
|
+
value="value"
|
|
484
|
+
)
|
|
485
|
+
),
|
|
486
|
+
max_results=123,
|
|
487
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
488
|
+
)
|
|
489
|
+
),
|
|
490
|
+
association_id="associationId",
|
|
491
|
+
association_type="associationType"
|
|
492
|
+
)]
|
|
493
|
+
)
|
|
494
|
+
)
|
|
495
|
+
'''
|
|
496
|
+
if __debug__:
|
|
497
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8cb84ad0dc27ffdae65e4e739c98ea6a4e7c36340f15c21ae83a2225ff763ba3)
|
|
498
|
+
check_type(argname="argument answer_recommendation_ai_agent_configuration", value=answer_recommendation_ai_agent_configuration, expected_type=type_hints["answer_recommendation_ai_agent_configuration"])
|
|
499
|
+
check_type(argname="argument manual_search_ai_agent_configuration", value=manual_search_ai_agent_configuration, expected_type=type_hints["manual_search_ai_agent_configuration"])
|
|
500
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
501
|
+
if answer_recommendation_ai_agent_configuration is not None:
|
|
502
|
+
self._values["answer_recommendation_ai_agent_configuration"] = answer_recommendation_ai_agent_configuration
|
|
503
|
+
if manual_search_ai_agent_configuration is not None:
|
|
504
|
+
self._values["manual_search_ai_agent_configuration"] = manual_search_ai_agent_configuration
|
|
505
|
+
|
|
506
|
+
@builtins.property
|
|
507
|
+
def answer_recommendation_ai_agent_configuration(
|
|
508
|
+
self,
|
|
509
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty"]]:
|
|
510
|
+
'''
|
|
511
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html#cfn-wisdom-aiagent-aiagentconfiguration-answerrecommendationaiagentconfiguration
|
|
512
|
+
'''
|
|
513
|
+
result = self._values.get("answer_recommendation_ai_agent_configuration")
|
|
514
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty"]], result)
|
|
515
|
+
|
|
516
|
+
@builtins.property
|
|
517
|
+
def manual_search_ai_agent_configuration(
|
|
518
|
+
self,
|
|
519
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.ManualSearchAIAgentConfigurationProperty"]]:
|
|
520
|
+
'''
|
|
521
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html#cfn-wisdom-aiagent-aiagentconfiguration-manualsearchaiagentconfiguration
|
|
522
|
+
'''
|
|
523
|
+
result = self._values.get("manual_search_ai_agent_configuration")
|
|
524
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.ManualSearchAIAgentConfigurationProperty"]], result)
|
|
525
|
+
|
|
526
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
527
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
528
|
+
|
|
529
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
530
|
+
return not (rhs == self)
|
|
531
|
+
|
|
532
|
+
def __repr__(self) -> str:
|
|
533
|
+
return "AIAgentConfigurationProperty(%s)" % ", ".join(
|
|
534
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
535
|
+
)
|
|
536
|
+
|
|
537
|
+
@jsii.data_type(
|
|
538
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty",
|
|
539
|
+
jsii_struct_bases=[],
|
|
540
|
+
name_mapping={
|
|
541
|
+
"answer_generation_ai_prompt_id": "answerGenerationAiPromptId",
|
|
542
|
+
"association_configurations": "associationConfigurations",
|
|
543
|
+
"intent_labeling_generation_ai_prompt_id": "intentLabelingGenerationAiPromptId",
|
|
544
|
+
"query_reformulation_ai_prompt_id": "queryReformulationAiPromptId",
|
|
545
|
+
},
|
|
546
|
+
)
|
|
547
|
+
class AnswerRecommendationAIAgentConfigurationProperty:
|
|
548
|
+
def __init__(
|
|
549
|
+
self,
|
|
550
|
+
*,
|
|
551
|
+
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
552
|
+
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,
|
|
553
|
+
intent_labeling_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
554
|
+
query_reformulation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
555
|
+
) -> None:
|
|
556
|
+
'''
|
|
557
|
+
:param answer_generation_ai_prompt_id:
|
|
558
|
+
:param association_configurations:
|
|
559
|
+
:param intent_labeling_generation_ai_prompt_id:
|
|
560
|
+
:param query_reformulation_ai_prompt_id:
|
|
561
|
+
|
|
562
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html
|
|
563
|
+
:exampleMetadata: fixture=_generated
|
|
564
|
+
|
|
565
|
+
Example::
|
|
566
|
+
|
|
567
|
+
# The code below shows an example of how to instantiate this type.
|
|
568
|
+
# The values are placeholders you should change.
|
|
569
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
570
|
+
|
|
571
|
+
answer_recommendation_aIAgent_configuration_property = wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty(
|
|
572
|
+
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
573
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
574
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
575
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
576
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
577
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
578
|
+
key="key",
|
|
579
|
+
|
|
580
|
+
# the properties below are optional
|
|
581
|
+
value="value"
|
|
582
|
+
)],
|
|
583
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
584
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
585
|
+
key="key",
|
|
586
|
+
|
|
587
|
+
# the properties below are optional
|
|
588
|
+
value="value"
|
|
589
|
+
)],
|
|
590
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
591
|
+
key="key",
|
|
592
|
+
|
|
593
|
+
# the properties below are optional
|
|
594
|
+
value="value"
|
|
595
|
+
)
|
|
596
|
+
)],
|
|
597
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
598
|
+
key="key",
|
|
599
|
+
|
|
600
|
+
# the properties below are optional
|
|
601
|
+
value="value"
|
|
602
|
+
)
|
|
603
|
+
),
|
|
604
|
+
max_results=123,
|
|
605
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
606
|
+
)
|
|
607
|
+
),
|
|
608
|
+
association_id="associationId",
|
|
609
|
+
association_type="associationType"
|
|
610
|
+
)],
|
|
611
|
+
intent_labeling_generation_ai_prompt_id="intentLabelingGenerationAiPromptId",
|
|
612
|
+
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
613
|
+
)
|
|
614
|
+
'''
|
|
615
|
+
if __debug__:
|
|
616
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6847cf788b7def362d576a512b579b2a08c25837003298b7c57254d1dfb45112)
|
|
617
|
+
check_type(argname="argument answer_generation_ai_prompt_id", value=answer_generation_ai_prompt_id, expected_type=type_hints["answer_generation_ai_prompt_id"])
|
|
618
|
+
check_type(argname="argument association_configurations", value=association_configurations, expected_type=type_hints["association_configurations"])
|
|
619
|
+
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"])
|
|
620
|
+
check_type(argname="argument query_reformulation_ai_prompt_id", value=query_reformulation_ai_prompt_id, expected_type=type_hints["query_reformulation_ai_prompt_id"])
|
|
621
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
622
|
+
if answer_generation_ai_prompt_id is not None:
|
|
623
|
+
self._values["answer_generation_ai_prompt_id"] = answer_generation_ai_prompt_id
|
|
624
|
+
if association_configurations is not None:
|
|
625
|
+
self._values["association_configurations"] = association_configurations
|
|
626
|
+
if intent_labeling_generation_ai_prompt_id is not None:
|
|
627
|
+
self._values["intent_labeling_generation_ai_prompt_id"] = intent_labeling_generation_ai_prompt_id
|
|
628
|
+
if query_reformulation_ai_prompt_id is not None:
|
|
629
|
+
self._values["query_reformulation_ai_prompt_id"] = query_reformulation_ai_prompt_id
|
|
630
|
+
|
|
631
|
+
@builtins.property
|
|
632
|
+
def answer_generation_ai_prompt_id(self) -> typing.Optional[builtins.str]:
|
|
633
|
+
'''
|
|
634
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html#cfn-wisdom-aiagent-answerrecommendationaiagentconfiguration-answergenerationaipromptid
|
|
635
|
+
'''
|
|
636
|
+
result = self._values.get("answer_generation_ai_prompt_id")
|
|
637
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
638
|
+
|
|
639
|
+
@builtins.property
|
|
640
|
+
def association_configurations(
|
|
641
|
+
self,
|
|
642
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationProperty"]]]]:
|
|
643
|
+
'''
|
|
644
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html#cfn-wisdom-aiagent-answerrecommendationaiagentconfiguration-associationconfigurations
|
|
645
|
+
'''
|
|
646
|
+
result = self._values.get("association_configurations")
|
|
647
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationProperty"]]]], result)
|
|
648
|
+
|
|
649
|
+
@builtins.property
|
|
650
|
+
def intent_labeling_generation_ai_prompt_id(
|
|
651
|
+
self,
|
|
652
|
+
) -> typing.Optional[builtins.str]:
|
|
653
|
+
'''
|
|
654
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html#cfn-wisdom-aiagent-answerrecommendationaiagentconfiguration-intentlabelinggenerationaipromptid
|
|
655
|
+
'''
|
|
656
|
+
result = self._values.get("intent_labeling_generation_ai_prompt_id")
|
|
657
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
658
|
+
|
|
659
|
+
@builtins.property
|
|
660
|
+
def query_reformulation_ai_prompt_id(self) -> typing.Optional[builtins.str]:
|
|
661
|
+
'''
|
|
662
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html#cfn-wisdom-aiagent-answerrecommendationaiagentconfiguration-queryreformulationaipromptid
|
|
663
|
+
'''
|
|
664
|
+
result = self._values.get("query_reformulation_ai_prompt_id")
|
|
665
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
666
|
+
|
|
667
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
668
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
669
|
+
|
|
670
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
671
|
+
return not (rhs == self)
|
|
672
|
+
|
|
673
|
+
def __repr__(self) -> str:
|
|
674
|
+
return "AnswerRecommendationAIAgentConfigurationProperty(%s)" % ", ".join(
|
|
675
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
676
|
+
)
|
|
677
|
+
|
|
678
|
+
@jsii.data_type(
|
|
679
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.AssociationConfigurationDataProperty",
|
|
680
|
+
jsii_struct_bases=[],
|
|
681
|
+
name_mapping={
|
|
682
|
+
"knowledge_base_association_configuration_data": "knowledgeBaseAssociationConfigurationData",
|
|
683
|
+
},
|
|
684
|
+
)
|
|
685
|
+
class AssociationConfigurationDataProperty:
|
|
686
|
+
def __init__(
|
|
687
|
+
self,
|
|
688
|
+
*,
|
|
689
|
+
knowledge_base_association_configuration_data: typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
690
|
+
) -> None:
|
|
691
|
+
'''
|
|
692
|
+
:param knowledge_base_association_configuration_data:
|
|
693
|
+
|
|
694
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-associationconfigurationdata.html
|
|
695
|
+
:exampleMetadata: fixture=_generated
|
|
696
|
+
|
|
697
|
+
Example::
|
|
698
|
+
|
|
699
|
+
# The code below shows an example of how to instantiate this type.
|
|
700
|
+
# The values are placeholders you should change.
|
|
701
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
702
|
+
|
|
703
|
+
association_configuration_data_property = wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
704
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
705
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
706
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
707
|
+
key="key",
|
|
708
|
+
|
|
709
|
+
# the properties below are optional
|
|
710
|
+
value="value"
|
|
711
|
+
)],
|
|
712
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
713
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
714
|
+
key="key",
|
|
715
|
+
|
|
716
|
+
# the properties below are optional
|
|
717
|
+
value="value"
|
|
718
|
+
)],
|
|
719
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
720
|
+
key="key",
|
|
721
|
+
|
|
722
|
+
# the properties below are optional
|
|
723
|
+
value="value"
|
|
724
|
+
)
|
|
725
|
+
)],
|
|
726
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
727
|
+
key="key",
|
|
728
|
+
|
|
729
|
+
# the properties below are optional
|
|
730
|
+
value="value"
|
|
731
|
+
)
|
|
732
|
+
),
|
|
733
|
+
max_results=123,
|
|
734
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
735
|
+
)
|
|
736
|
+
)
|
|
737
|
+
'''
|
|
738
|
+
if __debug__:
|
|
739
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c351d3e3386a19a82d6920c115ac6f8c911a12da4a117a9c0676a8ff0038fd41)
|
|
740
|
+
check_type(argname="argument knowledge_base_association_configuration_data", value=knowledge_base_association_configuration_data, expected_type=type_hints["knowledge_base_association_configuration_data"])
|
|
741
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
742
|
+
"knowledge_base_association_configuration_data": knowledge_base_association_configuration_data,
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
@builtins.property
|
|
746
|
+
def knowledge_base_association_configuration_data(
|
|
747
|
+
self,
|
|
748
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty"]:
|
|
749
|
+
'''
|
|
750
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-associationconfigurationdata.html#cfn-wisdom-aiagent-associationconfigurationdata-knowledgebaseassociationconfigurationdata
|
|
751
|
+
'''
|
|
752
|
+
result = self._values.get("knowledge_base_association_configuration_data")
|
|
753
|
+
assert result is not None, "Required property 'knowledge_base_association_configuration_data' is missing"
|
|
754
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty"], result)
|
|
755
|
+
|
|
756
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
757
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
758
|
+
|
|
759
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
760
|
+
return not (rhs == self)
|
|
761
|
+
|
|
762
|
+
def __repr__(self) -> str:
|
|
763
|
+
return "AssociationConfigurationDataProperty(%s)" % ", ".join(
|
|
764
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
765
|
+
)
|
|
766
|
+
|
|
767
|
+
@jsii.data_type(
|
|
768
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.AssociationConfigurationProperty",
|
|
769
|
+
jsii_struct_bases=[],
|
|
770
|
+
name_mapping={
|
|
771
|
+
"association_configuration_data": "associationConfigurationData",
|
|
772
|
+
"association_id": "associationId",
|
|
773
|
+
"association_type": "associationType",
|
|
774
|
+
},
|
|
775
|
+
)
|
|
776
|
+
class AssociationConfigurationProperty:
|
|
777
|
+
def __init__(
|
|
778
|
+
self,
|
|
779
|
+
*,
|
|
780
|
+
association_configuration_data: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AssociationConfigurationDataProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
781
|
+
association_id: typing.Optional[builtins.str] = None,
|
|
782
|
+
association_type: typing.Optional[builtins.str] = None,
|
|
783
|
+
) -> None:
|
|
784
|
+
'''
|
|
785
|
+
:param association_configuration_data:
|
|
786
|
+
:param association_id:
|
|
787
|
+
:param association_type:
|
|
788
|
+
|
|
789
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-associationconfiguration.html
|
|
790
|
+
:exampleMetadata: fixture=_generated
|
|
791
|
+
|
|
792
|
+
Example::
|
|
793
|
+
|
|
794
|
+
# The code below shows an example of how to instantiate this type.
|
|
795
|
+
# The values are placeholders you should change.
|
|
796
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
797
|
+
|
|
798
|
+
association_configuration_property = wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
799
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
800
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
801
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
802
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
803
|
+
key="key",
|
|
804
|
+
|
|
805
|
+
# the properties below are optional
|
|
806
|
+
value="value"
|
|
807
|
+
)],
|
|
808
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
809
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
810
|
+
key="key",
|
|
811
|
+
|
|
812
|
+
# the properties below are optional
|
|
813
|
+
value="value"
|
|
814
|
+
)],
|
|
815
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
816
|
+
key="key",
|
|
817
|
+
|
|
818
|
+
# the properties below are optional
|
|
819
|
+
value="value"
|
|
820
|
+
)
|
|
821
|
+
)],
|
|
822
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
823
|
+
key="key",
|
|
824
|
+
|
|
825
|
+
# the properties below are optional
|
|
826
|
+
value="value"
|
|
827
|
+
)
|
|
828
|
+
),
|
|
829
|
+
max_results=123,
|
|
830
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
831
|
+
)
|
|
832
|
+
),
|
|
833
|
+
association_id="associationId",
|
|
834
|
+
association_type="associationType"
|
|
835
|
+
)
|
|
836
|
+
'''
|
|
837
|
+
if __debug__:
|
|
838
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2df56062b7b8c55a883d0469e63c3aad05d8079bf21171f13f4e68d2f26fea44)
|
|
839
|
+
check_type(argname="argument association_configuration_data", value=association_configuration_data, expected_type=type_hints["association_configuration_data"])
|
|
840
|
+
check_type(argname="argument association_id", value=association_id, expected_type=type_hints["association_id"])
|
|
841
|
+
check_type(argname="argument association_type", value=association_type, expected_type=type_hints["association_type"])
|
|
842
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
843
|
+
if association_configuration_data is not None:
|
|
844
|
+
self._values["association_configuration_data"] = association_configuration_data
|
|
845
|
+
if association_id is not None:
|
|
846
|
+
self._values["association_id"] = association_id
|
|
847
|
+
if association_type is not None:
|
|
848
|
+
self._values["association_type"] = association_type
|
|
849
|
+
|
|
850
|
+
@builtins.property
|
|
851
|
+
def association_configuration_data(
|
|
852
|
+
self,
|
|
853
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationDataProperty"]]:
|
|
854
|
+
'''
|
|
855
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-associationconfiguration.html#cfn-wisdom-aiagent-associationconfiguration-associationconfigurationdata
|
|
856
|
+
'''
|
|
857
|
+
result = self._values.get("association_configuration_data")
|
|
858
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationDataProperty"]], result)
|
|
859
|
+
|
|
860
|
+
@builtins.property
|
|
861
|
+
def association_id(self) -> typing.Optional[builtins.str]:
|
|
862
|
+
'''
|
|
863
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-associationconfiguration.html#cfn-wisdom-aiagent-associationconfiguration-associationid
|
|
864
|
+
'''
|
|
865
|
+
result = self._values.get("association_id")
|
|
866
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
867
|
+
|
|
868
|
+
@builtins.property
|
|
869
|
+
def association_type(self) -> typing.Optional[builtins.str]:
|
|
870
|
+
'''
|
|
871
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-associationconfiguration.html#cfn-wisdom-aiagent-associationconfiguration-associationtype
|
|
872
|
+
'''
|
|
873
|
+
result = self._values.get("association_type")
|
|
874
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
875
|
+
|
|
876
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
877
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
878
|
+
|
|
879
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
880
|
+
return not (rhs == self)
|
|
881
|
+
|
|
882
|
+
def __repr__(self) -> str:
|
|
883
|
+
return "AssociationConfigurationProperty(%s)" % ", ".join(
|
|
884
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
885
|
+
)
|
|
886
|
+
|
|
887
|
+
@jsii.data_type(
|
|
888
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty",
|
|
889
|
+
jsii_struct_bases=[],
|
|
890
|
+
name_mapping={
|
|
891
|
+
"content_tag_filter": "contentTagFilter",
|
|
892
|
+
"max_results": "maxResults",
|
|
893
|
+
"override_knowledge_base_search_type": "overrideKnowledgeBaseSearchType",
|
|
894
|
+
},
|
|
895
|
+
)
|
|
896
|
+
class KnowledgeBaseAssociationConfigurationDataProperty:
|
|
897
|
+
def __init__(
|
|
898
|
+
self,
|
|
899
|
+
*,
|
|
900
|
+
content_tag_filter: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.TagFilterProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
901
|
+
max_results: typing.Optional[jsii.Number] = None,
|
|
902
|
+
override_knowledge_base_search_type: typing.Optional[builtins.str] = None,
|
|
903
|
+
) -> None:
|
|
904
|
+
'''
|
|
905
|
+
:param content_tag_filter:
|
|
906
|
+
:param max_results:
|
|
907
|
+
:param override_knowledge_base_search_type:
|
|
908
|
+
|
|
909
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebaseassociationconfigurationdata.html
|
|
910
|
+
:exampleMetadata: fixture=_generated
|
|
911
|
+
|
|
912
|
+
Example::
|
|
913
|
+
|
|
914
|
+
# The code below shows an example of how to instantiate this type.
|
|
915
|
+
# The values are placeholders you should change.
|
|
916
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
917
|
+
|
|
918
|
+
knowledge_base_association_configuration_data_property = wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
919
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
920
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
921
|
+
key="key",
|
|
922
|
+
|
|
923
|
+
# the properties below are optional
|
|
924
|
+
value="value"
|
|
925
|
+
)],
|
|
926
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
927
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
928
|
+
key="key",
|
|
929
|
+
|
|
930
|
+
# the properties below are optional
|
|
931
|
+
value="value"
|
|
932
|
+
)],
|
|
933
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
934
|
+
key="key",
|
|
935
|
+
|
|
936
|
+
# the properties below are optional
|
|
937
|
+
value="value"
|
|
938
|
+
)
|
|
939
|
+
)],
|
|
940
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
941
|
+
key="key",
|
|
942
|
+
|
|
943
|
+
# the properties below are optional
|
|
944
|
+
value="value"
|
|
945
|
+
)
|
|
946
|
+
),
|
|
947
|
+
max_results=123,
|
|
948
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
949
|
+
)
|
|
950
|
+
'''
|
|
951
|
+
if __debug__:
|
|
952
|
+
type_hints = typing.get_type_hints(_typecheckingstub__af25ecdf7592033a618b9a411d145fb2bd7b10ae3e9b0a04a4502e0dee139e27)
|
|
953
|
+
check_type(argname="argument content_tag_filter", value=content_tag_filter, expected_type=type_hints["content_tag_filter"])
|
|
954
|
+
check_type(argname="argument max_results", value=max_results, expected_type=type_hints["max_results"])
|
|
955
|
+
check_type(argname="argument override_knowledge_base_search_type", value=override_knowledge_base_search_type, expected_type=type_hints["override_knowledge_base_search_type"])
|
|
956
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
957
|
+
if content_tag_filter is not None:
|
|
958
|
+
self._values["content_tag_filter"] = content_tag_filter
|
|
959
|
+
if max_results is not None:
|
|
960
|
+
self._values["max_results"] = max_results
|
|
961
|
+
if override_knowledge_base_search_type is not None:
|
|
962
|
+
self._values["override_knowledge_base_search_type"] = override_knowledge_base_search_type
|
|
963
|
+
|
|
964
|
+
@builtins.property
|
|
965
|
+
def content_tag_filter(
|
|
966
|
+
self,
|
|
967
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagFilterProperty"]]:
|
|
968
|
+
'''
|
|
969
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebaseassociationconfigurationdata.html#cfn-wisdom-aiagent-knowledgebaseassociationconfigurationdata-contenttagfilter
|
|
970
|
+
'''
|
|
971
|
+
result = self._values.get("content_tag_filter")
|
|
972
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagFilterProperty"]], result)
|
|
973
|
+
|
|
974
|
+
@builtins.property
|
|
975
|
+
def max_results(self) -> typing.Optional[jsii.Number]:
|
|
976
|
+
'''
|
|
977
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebaseassociationconfigurationdata.html#cfn-wisdom-aiagent-knowledgebaseassociationconfigurationdata-maxresults
|
|
978
|
+
'''
|
|
979
|
+
result = self._values.get("max_results")
|
|
980
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
981
|
+
|
|
982
|
+
@builtins.property
|
|
983
|
+
def override_knowledge_base_search_type(self) -> typing.Optional[builtins.str]:
|
|
984
|
+
'''
|
|
985
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebaseassociationconfigurationdata.html#cfn-wisdom-aiagent-knowledgebaseassociationconfigurationdata-overrideknowledgebasesearchtype
|
|
986
|
+
'''
|
|
987
|
+
result = self._values.get("override_knowledge_base_search_type")
|
|
988
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
989
|
+
|
|
990
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
991
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
992
|
+
|
|
993
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
994
|
+
return not (rhs == self)
|
|
995
|
+
|
|
996
|
+
def __repr__(self) -> str:
|
|
997
|
+
return "KnowledgeBaseAssociationConfigurationDataProperty(%s)" % ", ".join(
|
|
998
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
999
|
+
)
|
|
1000
|
+
|
|
1001
|
+
@jsii.data_type(
|
|
1002
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty",
|
|
1003
|
+
jsii_struct_bases=[],
|
|
1004
|
+
name_mapping={
|
|
1005
|
+
"answer_generation_ai_prompt_id": "answerGenerationAiPromptId",
|
|
1006
|
+
"association_configurations": "associationConfigurations",
|
|
1007
|
+
},
|
|
1008
|
+
)
|
|
1009
|
+
class ManualSearchAIAgentConfigurationProperty:
|
|
1010
|
+
def __init__(
|
|
1011
|
+
self,
|
|
1012
|
+
*,
|
|
1013
|
+
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
1014
|
+
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,
|
|
1015
|
+
) -> None:
|
|
1016
|
+
'''
|
|
1017
|
+
:param answer_generation_ai_prompt_id:
|
|
1018
|
+
:param association_configurations:
|
|
1019
|
+
|
|
1020
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-manualsearchaiagentconfiguration.html
|
|
1021
|
+
:exampleMetadata: fixture=_generated
|
|
1022
|
+
|
|
1023
|
+
Example::
|
|
1024
|
+
|
|
1025
|
+
# The code below shows an example of how to instantiate this type.
|
|
1026
|
+
# The values are placeholders you should change.
|
|
1027
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1028
|
+
|
|
1029
|
+
manual_search_aIAgent_configuration_property = wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
1030
|
+
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
1031
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
1032
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
1033
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
1034
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
1035
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1036
|
+
key="key",
|
|
1037
|
+
|
|
1038
|
+
# the properties below are optional
|
|
1039
|
+
value="value"
|
|
1040
|
+
)],
|
|
1041
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
1042
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1043
|
+
key="key",
|
|
1044
|
+
|
|
1045
|
+
# the properties below are optional
|
|
1046
|
+
value="value"
|
|
1047
|
+
)],
|
|
1048
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1049
|
+
key="key",
|
|
1050
|
+
|
|
1051
|
+
# the properties below are optional
|
|
1052
|
+
value="value"
|
|
1053
|
+
)
|
|
1054
|
+
)],
|
|
1055
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1056
|
+
key="key",
|
|
1057
|
+
|
|
1058
|
+
# the properties below are optional
|
|
1059
|
+
value="value"
|
|
1060
|
+
)
|
|
1061
|
+
),
|
|
1062
|
+
max_results=123,
|
|
1063
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
1064
|
+
)
|
|
1065
|
+
),
|
|
1066
|
+
association_id="associationId",
|
|
1067
|
+
association_type="associationType"
|
|
1068
|
+
)]
|
|
1069
|
+
)
|
|
1070
|
+
'''
|
|
1071
|
+
if __debug__:
|
|
1072
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3346eba3a05ad4b31350bf2c54edbb6063a18cfea8a25ebbab80c402438f039a)
|
|
1073
|
+
check_type(argname="argument answer_generation_ai_prompt_id", value=answer_generation_ai_prompt_id, expected_type=type_hints["answer_generation_ai_prompt_id"])
|
|
1074
|
+
check_type(argname="argument association_configurations", value=association_configurations, expected_type=type_hints["association_configurations"])
|
|
1075
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1076
|
+
if answer_generation_ai_prompt_id is not None:
|
|
1077
|
+
self._values["answer_generation_ai_prompt_id"] = answer_generation_ai_prompt_id
|
|
1078
|
+
if association_configurations is not None:
|
|
1079
|
+
self._values["association_configurations"] = association_configurations
|
|
1080
|
+
|
|
1081
|
+
@builtins.property
|
|
1082
|
+
def answer_generation_ai_prompt_id(self) -> typing.Optional[builtins.str]:
|
|
1083
|
+
'''
|
|
1084
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-manualsearchaiagentconfiguration.html#cfn-wisdom-aiagent-manualsearchaiagentconfiguration-answergenerationaipromptid
|
|
1085
|
+
'''
|
|
1086
|
+
result = self._values.get("answer_generation_ai_prompt_id")
|
|
1087
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1088
|
+
|
|
1089
|
+
@builtins.property
|
|
1090
|
+
def association_configurations(
|
|
1091
|
+
self,
|
|
1092
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationProperty"]]]]:
|
|
1093
|
+
'''
|
|
1094
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-manualsearchaiagentconfiguration.html#cfn-wisdom-aiagent-manualsearchaiagentconfiguration-associationconfigurations
|
|
1095
|
+
'''
|
|
1096
|
+
result = self._values.get("association_configurations")
|
|
1097
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationProperty"]]]], result)
|
|
1098
|
+
|
|
1099
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1100
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1101
|
+
|
|
1102
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1103
|
+
return not (rhs == self)
|
|
1104
|
+
|
|
1105
|
+
def __repr__(self) -> str:
|
|
1106
|
+
return "ManualSearchAIAgentConfigurationProperty(%s)" % ", ".join(
|
|
1107
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1108
|
+
)
|
|
1109
|
+
|
|
1110
|
+
@jsii.data_type(
|
|
1111
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.OrConditionProperty",
|
|
1112
|
+
jsii_struct_bases=[],
|
|
1113
|
+
name_mapping={
|
|
1114
|
+
"and_conditions": "andConditions",
|
|
1115
|
+
"tag_condition": "tagCondition",
|
|
1116
|
+
},
|
|
1117
|
+
)
|
|
1118
|
+
class OrConditionProperty:
|
|
1119
|
+
def __init__(
|
|
1120
|
+
self,
|
|
1121
|
+
*,
|
|
1122
|
+
and_conditions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.TagConditionProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1123
|
+
tag_condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.TagConditionProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1124
|
+
) -> None:
|
|
1125
|
+
'''
|
|
1126
|
+
:param and_conditions:
|
|
1127
|
+
:param tag_condition:
|
|
1128
|
+
|
|
1129
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-orcondition.html
|
|
1130
|
+
:exampleMetadata: fixture=_generated
|
|
1131
|
+
|
|
1132
|
+
Example::
|
|
1133
|
+
|
|
1134
|
+
# The code below shows an example of how to instantiate this type.
|
|
1135
|
+
# The values are placeholders you should change.
|
|
1136
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1137
|
+
|
|
1138
|
+
or_condition_property = wisdom.CfnAIAgent.OrConditionProperty(
|
|
1139
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1140
|
+
key="key",
|
|
1141
|
+
|
|
1142
|
+
# the properties below are optional
|
|
1143
|
+
value="value"
|
|
1144
|
+
)],
|
|
1145
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1146
|
+
key="key",
|
|
1147
|
+
|
|
1148
|
+
# the properties below are optional
|
|
1149
|
+
value="value"
|
|
1150
|
+
)
|
|
1151
|
+
)
|
|
1152
|
+
'''
|
|
1153
|
+
if __debug__:
|
|
1154
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bf2bbad68aea63c5546563872782e30b131382ddae5fbabf04602b928494d4d4)
|
|
1155
|
+
check_type(argname="argument and_conditions", value=and_conditions, expected_type=type_hints["and_conditions"])
|
|
1156
|
+
check_type(argname="argument tag_condition", value=tag_condition, expected_type=type_hints["tag_condition"])
|
|
1157
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1158
|
+
if and_conditions is not None:
|
|
1159
|
+
self._values["and_conditions"] = and_conditions
|
|
1160
|
+
if tag_condition is not None:
|
|
1161
|
+
self._values["tag_condition"] = tag_condition
|
|
1162
|
+
|
|
1163
|
+
@builtins.property
|
|
1164
|
+
def and_conditions(
|
|
1165
|
+
self,
|
|
1166
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagConditionProperty"]]]]:
|
|
1167
|
+
'''
|
|
1168
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-orcondition.html#cfn-wisdom-aiagent-orcondition-andconditions
|
|
1169
|
+
'''
|
|
1170
|
+
result = self._values.get("and_conditions")
|
|
1171
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagConditionProperty"]]]], result)
|
|
1172
|
+
|
|
1173
|
+
@builtins.property
|
|
1174
|
+
def tag_condition(
|
|
1175
|
+
self,
|
|
1176
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagConditionProperty"]]:
|
|
1177
|
+
'''
|
|
1178
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-orcondition.html#cfn-wisdom-aiagent-orcondition-tagcondition
|
|
1179
|
+
'''
|
|
1180
|
+
result = self._values.get("tag_condition")
|
|
1181
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagConditionProperty"]], result)
|
|
1182
|
+
|
|
1183
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1184
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1185
|
+
|
|
1186
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1187
|
+
return not (rhs == self)
|
|
1188
|
+
|
|
1189
|
+
def __repr__(self) -> str:
|
|
1190
|
+
return "OrConditionProperty(%s)" % ", ".join(
|
|
1191
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1192
|
+
)
|
|
1193
|
+
|
|
1194
|
+
@jsii.data_type(
|
|
1195
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.TagConditionProperty",
|
|
1196
|
+
jsii_struct_bases=[],
|
|
1197
|
+
name_mapping={"key": "key", "value": "value"},
|
|
1198
|
+
)
|
|
1199
|
+
class TagConditionProperty:
|
|
1200
|
+
def __init__(
|
|
1201
|
+
self,
|
|
1202
|
+
*,
|
|
1203
|
+
key: builtins.str,
|
|
1204
|
+
value: typing.Optional[builtins.str] = None,
|
|
1205
|
+
) -> None:
|
|
1206
|
+
'''
|
|
1207
|
+
:param key:
|
|
1208
|
+
:param value:
|
|
1209
|
+
|
|
1210
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tagcondition.html
|
|
1211
|
+
:exampleMetadata: fixture=_generated
|
|
1212
|
+
|
|
1213
|
+
Example::
|
|
1214
|
+
|
|
1215
|
+
# The code below shows an example of how to instantiate this type.
|
|
1216
|
+
# The values are placeholders you should change.
|
|
1217
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1218
|
+
|
|
1219
|
+
tag_condition_property = wisdom.CfnAIAgent.TagConditionProperty(
|
|
1220
|
+
key="key",
|
|
1221
|
+
|
|
1222
|
+
# the properties below are optional
|
|
1223
|
+
value="value"
|
|
1224
|
+
)
|
|
1225
|
+
'''
|
|
1226
|
+
if __debug__:
|
|
1227
|
+
type_hints = typing.get_type_hints(_typecheckingstub__76535774a57202e416fb208d73c095c91408f65fd8a1b99f6b568fd994b915e9)
|
|
1228
|
+
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
1229
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1230
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1231
|
+
"key": key,
|
|
1232
|
+
}
|
|
1233
|
+
if value is not None:
|
|
1234
|
+
self._values["value"] = value
|
|
1235
|
+
|
|
1236
|
+
@builtins.property
|
|
1237
|
+
def key(self) -> builtins.str:
|
|
1238
|
+
'''
|
|
1239
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tagcondition.html#cfn-wisdom-aiagent-tagcondition-key
|
|
1240
|
+
'''
|
|
1241
|
+
result = self._values.get("key")
|
|
1242
|
+
assert result is not None, "Required property 'key' is missing"
|
|
1243
|
+
return typing.cast(builtins.str, result)
|
|
1244
|
+
|
|
1245
|
+
@builtins.property
|
|
1246
|
+
def value(self) -> typing.Optional[builtins.str]:
|
|
1247
|
+
'''
|
|
1248
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tagcondition.html#cfn-wisdom-aiagent-tagcondition-value
|
|
1249
|
+
'''
|
|
1250
|
+
result = self._values.get("value")
|
|
1251
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1252
|
+
|
|
1253
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1254
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1255
|
+
|
|
1256
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1257
|
+
return not (rhs == self)
|
|
1258
|
+
|
|
1259
|
+
def __repr__(self) -> str:
|
|
1260
|
+
return "TagConditionProperty(%s)" % ", ".join(
|
|
1261
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1262
|
+
)
|
|
1263
|
+
|
|
1264
|
+
@jsii.data_type(
|
|
1265
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.TagFilterProperty",
|
|
1266
|
+
jsii_struct_bases=[],
|
|
1267
|
+
name_mapping={
|
|
1268
|
+
"and_conditions": "andConditions",
|
|
1269
|
+
"or_conditions": "orConditions",
|
|
1270
|
+
"tag_condition": "tagCondition",
|
|
1271
|
+
},
|
|
1272
|
+
)
|
|
1273
|
+
class TagFilterProperty:
|
|
1274
|
+
def __init__(
|
|
1275
|
+
self,
|
|
1276
|
+
*,
|
|
1277
|
+
and_conditions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.TagConditionProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1278
|
+
or_conditions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.OrConditionProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1279
|
+
tag_condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.TagConditionProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1280
|
+
) -> None:
|
|
1281
|
+
'''
|
|
1282
|
+
:param and_conditions:
|
|
1283
|
+
:param or_conditions:
|
|
1284
|
+
:param tag_condition:
|
|
1285
|
+
|
|
1286
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tagfilter.html
|
|
1287
|
+
:exampleMetadata: fixture=_generated
|
|
1288
|
+
|
|
1289
|
+
Example::
|
|
1290
|
+
|
|
1291
|
+
# The code below shows an example of how to instantiate this type.
|
|
1292
|
+
# The values are placeholders you should change.
|
|
1293
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1294
|
+
|
|
1295
|
+
tag_filter_property = wisdom.CfnAIAgent.TagFilterProperty(
|
|
1296
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1297
|
+
key="key",
|
|
1298
|
+
|
|
1299
|
+
# the properties below are optional
|
|
1300
|
+
value="value"
|
|
1301
|
+
)],
|
|
1302
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
1303
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1304
|
+
key="key",
|
|
1305
|
+
|
|
1306
|
+
# the properties below are optional
|
|
1307
|
+
value="value"
|
|
1308
|
+
)],
|
|
1309
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1310
|
+
key="key",
|
|
1311
|
+
|
|
1312
|
+
# the properties below are optional
|
|
1313
|
+
value="value"
|
|
1314
|
+
)
|
|
1315
|
+
)],
|
|
1316
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1317
|
+
key="key",
|
|
1318
|
+
|
|
1319
|
+
# the properties below are optional
|
|
1320
|
+
value="value"
|
|
1321
|
+
)
|
|
1322
|
+
)
|
|
1323
|
+
'''
|
|
1324
|
+
if __debug__:
|
|
1325
|
+
type_hints = typing.get_type_hints(_typecheckingstub__47961a691b994d09a0537dc7d655a0aab653585a5e8bd78b30c4bc84ec243c19)
|
|
1326
|
+
check_type(argname="argument and_conditions", value=and_conditions, expected_type=type_hints["and_conditions"])
|
|
1327
|
+
check_type(argname="argument or_conditions", value=or_conditions, expected_type=type_hints["or_conditions"])
|
|
1328
|
+
check_type(argname="argument tag_condition", value=tag_condition, expected_type=type_hints["tag_condition"])
|
|
1329
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1330
|
+
if and_conditions is not None:
|
|
1331
|
+
self._values["and_conditions"] = and_conditions
|
|
1332
|
+
if or_conditions is not None:
|
|
1333
|
+
self._values["or_conditions"] = or_conditions
|
|
1334
|
+
if tag_condition is not None:
|
|
1335
|
+
self._values["tag_condition"] = tag_condition
|
|
1336
|
+
|
|
1337
|
+
@builtins.property
|
|
1338
|
+
def and_conditions(
|
|
1339
|
+
self,
|
|
1340
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagConditionProperty"]]]]:
|
|
1341
|
+
'''
|
|
1342
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tagfilter.html#cfn-wisdom-aiagent-tagfilter-andconditions
|
|
1343
|
+
'''
|
|
1344
|
+
result = self._values.get("and_conditions")
|
|
1345
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagConditionProperty"]]]], result)
|
|
1346
|
+
|
|
1347
|
+
@builtins.property
|
|
1348
|
+
def or_conditions(
|
|
1349
|
+
self,
|
|
1350
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.OrConditionProperty"]]]]:
|
|
1351
|
+
'''
|
|
1352
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tagfilter.html#cfn-wisdom-aiagent-tagfilter-orconditions
|
|
1353
|
+
'''
|
|
1354
|
+
result = self._values.get("or_conditions")
|
|
1355
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.OrConditionProperty"]]]], result)
|
|
1356
|
+
|
|
1357
|
+
@builtins.property
|
|
1358
|
+
def tag_condition(
|
|
1359
|
+
self,
|
|
1360
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagConditionProperty"]]:
|
|
1361
|
+
'''
|
|
1362
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tagfilter.html#cfn-wisdom-aiagent-tagfilter-tagcondition
|
|
1363
|
+
'''
|
|
1364
|
+
result = self._values.get("tag_condition")
|
|
1365
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.TagConditionProperty"]], result)
|
|
1366
|
+
|
|
1367
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1368
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1369
|
+
|
|
1370
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1371
|
+
return not (rhs == self)
|
|
1372
|
+
|
|
1373
|
+
def __repr__(self) -> str:
|
|
1374
|
+
return "TagFilterProperty(%s)" % ", ".join(
|
|
1375
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1376
|
+
)
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
@jsii.data_type(
|
|
1380
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgentProps",
|
|
1381
|
+
jsii_struct_bases=[],
|
|
1382
|
+
name_mapping={
|
|
1383
|
+
"assistant_id": "assistantId",
|
|
1384
|
+
"configuration": "configuration",
|
|
1385
|
+
"type": "type",
|
|
1386
|
+
"description": "description",
|
|
1387
|
+
"name": "name",
|
|
1388
|
+
"tags": "tags",
|
|
1389
|
+
},
|
|
1390
|
+
)
|
|
1391
|
+
class CfnAIAgentProps:
|
|
1392
|
+
def __init__(
|
|
1393
|
+
self,
|
|
1394
|
+
*,
|
|
1395
|
+
assistant_id: builtins.str,
|
|
1396
|
+
configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
1397
|
+
type: builtins.str,
|
|
1398
|
+
description: typing.Optional[builtins.str] = None,
|
|
1399
|
+
name: typing.Optional[builtins.str] = None,
|
|
1400
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1401
|
+
) -> None:
|
|
1402
|
+
'''Properties for defining a ``CfnAIAgent``.
|
|
1403
|
+
|
|
1404
|
+
:param assistant_id: The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
1405
|
+
:param configuration: Configuration for the AI Agent.
|
|
1406
|
+
:param type: The type of the AI Agent.
|
|
1407
|
+
:param description: The description of the AI Agent.
|
|
1408
|
+
:param name: The name of the AI Agent.
|
|
1409
|
+
:param tags: The tags used to organize, track, or control access for this resource.
|
|
1410
|
+
|
|
1411
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html
|
|
1412
|
+
:exampleMetadata: fixture=_generated
|
|
1413
|
+
|
|
1414
|
+
Example::
|
|
1415
|
+
|
|
1416
|
+
# The code below shows an example of how to instantiate this type.
|
|
1417
|
+
# The values are placeholders you should change.
|
|
1418
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1419
|
+
|
|
1420
|
+
cfn_aIAgent_props = wisdom.CfnAIAgentProps(
|
|
1421
|
+
assistant_id="assistantId",
|
|
1422
|
+
configuration=wisdom.CfnAIAgent.AIAgentConfigurationProperty(
|
|
1423
|
+
answer_recommendation_ai_agent_configuration=wisdom.CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty(
|
|
1424
|
+
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
1425
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
1426
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
1427
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
1428
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
1429
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1430
|
+
key="key",
|
|
1431
|
+
|
|
1432
|
+
# the properties below are optional
|
|
1433
|
+
value="value"
|
|
1434
|
+
)],
|
|
1435
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
1436
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1437
|
+
key="key",
|
|
1438
|
+
|
|
1439
|
+
# the properties below are optional
|
|
1440
|
+
value="value"
|
|
1441
|
+
)],
|
|
1442
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1443
|
+
key="key",
|
|
1444
|
+
|
|
1445
|
+
# the properties below are optional
|
|
1446
|
+
value="value"
|
|
1447
|
+
)
|
|
1448
|
+
)],
|
|
1449
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1450
|
+
key="key",
|
|
1451
|
+
|
|
1452
|
+
# the properties below are optional
|
|
1453
|
+
value="value"
|
|
1454
|
+
)
|
|
1455
|
+
),
|
|
1456
|
+
max_results=123,
|
|
1457
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
1458
|
+
)
|
|
1459
|
+
),
|
|
1460
|
+
association_id="associationId",
|
|
1461
|
+
association_type="associationType"
|
|
1462
|
+
)],
|
|
1463
|
+
intent_labeling_generation_ai_prompt_id="intentLabelingGenerationAiPromptId",
|
|
1464
|
+
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
1465
|
+
),
|
|
1466
|
+
manual_search_ai_agent_configuration=wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
1467
|
+
answer_generation_ai_prompt_id="answerGenerationAiPromptId",
|
|
1468
|
+
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
1469
|
+
association_configuration_data=wisdom.CfnAIAgent.AssociationConfigurationDataProperty(
|
|
1470
|
+
knowledge_base_association_configuration_data=wisdom.CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty(
|
|
1471
|
+
content_tag_filter=wisdom.CfnAIAgent.TagFilterProperty(
|
|
1472
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1473
|
+
key="key",
|
|
1474
|
+
|
|
1475
|
+
# the properties below are optional
|
|
1476
|
+
value="value"
|
|
1477
|
+
)],
|
|
1478
|
+
or_conditions=[wisdom.CfnAIAgent.OrConditionProperty(
|
|
1479
|
+
and_conditions=[wisdom.CfnAIAgent.TagConditionProperty(
|
|
1480
|
+
key="key",
|
|
1481
|
+
|
|
1482
|
+
# the properties below are optional
|
|
1483
|
+
value="value"
|
|
1484
|
+
)],
|
|
1485
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1486
|
+
key="key",
|
|
1487
|
+
|
|
1488
|
+
# the properties below are optional
|
|
1489
|
+
value="value"
|
|
1490
|
+
)
|
|
1491
|
+
)],
|
|
1492
|
+
tag_condition=wisdom.CfnAIAgent.TagConditionProperty(
|
|
1493
|
+
key="key",
|
|
1494
|
+
|
|
1495
|
+
# the properties below are optional
|
|
1496
|
+
value="value"
|
|
1497
|
+
)
|
|
1498
|
+
),
|
|
1499
|
+
max_results=123,
|
|
1500
|
+
override_knowledge_base_search_type="overrideKnowledgeBaseSearchType"
|
|
1501
|
+
)
|
|
1502
|
+
),
|
|
1503
|
+
association_id="associationId",
|
|
1504
|
+
association_type="associationType"
|
|
1505
|
+
)]
|
|
1506
|
+
)
|
|
1507
|
+
),
|
|
1508
|
+
type="type",
|
|
1509
|
+
|
|
1510
|
+
# the properties below are optional
|
|
1511
|
+
description="description",
|
|
1512
|
+
name="name",
|
|
1513
|
+
tags={
|
|
1514
|
+
"tags_key": "tags"
|
|
1515
|
+
}
|
|
1516
|
+
)
|
|
1517
|
+
'''
|
|
1518
|
+
if __debug__:
|
|
1519
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b1cda9a6282ec07c28c0ef49efdf8da8f079052d26edd32bbe15324644982756)
|
|
1520
|
+
check_type(argname="argument assistant_id", value=assistant_id, expected_type=type_hints["assistant_id"])
|
|
1521
|
+
check_type(argname="argument configuration", value=configuration, expected_type=type_hints["configuration"])
|
|
1522
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
1523
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
1524
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
1525
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1526
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1527
|
+
"assistant_id": assistant_id,
|
|
1528
|
+
"configuration": configuration,
|
|
1529
|
+
"type": type,
|
|
1530
|
+
}
|
|
1531
|
+
if description is not None:
|
|
1532
|
+
self._values["description"] = description
|
|
1533
|
+
if name is not None:
|
|
1534
|
+
self._values["name"] = name
|
|
1535
|
+
if tags is not None:
|
|
1536
|
+
self._values["tags"] = tags
|
|
1537
|
+
|
|
1538
|
+
@builtins.property
|
|
1539
|
+
def assistant_id(self) -> builtins.str:
|
|
1540
|
+
'''The identifier of the Amazon Q in Connect assistant.
|
|
1541
|
+
|
|
1542
|
+
Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
1543
|
+
|
|
1544
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-assistantid
|
|
1545
|
+
'''
|
|
1546
|
+
result = self._values.get("assistant_id")
|
|
1547
|
+
assert result is not None, "Required property 'assistant_id' is missing"
|
|
1548
|
+
return typing.cast(builtins.str, result)
|
|
1549
|
+
|
|
1550
|
+
@builtins.property
|
|
1551
|
+
def configuration(
|
|
1552
|
+
self,
|
|
1553
|
+
) -> typing.Union[_IResolvable_da3f097b, CfnAIAgent.AIAgentConfigurationProperty]:
|
|
1554
|
+
'''Configuration for the AI Agent.
|
|
1555
|
+
|
|
1556
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-configuration
|
|
1557
|
+
'''
|
|
1558
|
+
result = self._values.get("configuration")
|
|
1559
|
+
assert result is not None, "Required property 'configuration' is missing"
|
|
1560
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnAIAgent.AIAgentConfigurationProperty], result)
|
|
1561
|
+
|
|
1562
|
+
@builtins.property
|
|
1563
|
+
def type(self) -> builtins.str:
|
|
1564
|
+
'''The type of the AI Agent.
|
|
1565
|
+
|
|
1566
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-type
|
|
1567
|
+
'''
|
|
1568
|
+
result = self._values.get("type")
|
|
1569
|
+
assert result is not None, "Required property 'type' is missing"
|
|
1570
|
+
return typing.cast(builtins.str, result)
|
|
1571
|
+
|
|
1572
|
+
@builtins.property
|
|
1573
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
1574
|
+
'''The description of the AI Agent.
|
|
1575
|
+
|
|
1576
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-description
|
|
1577
|
+
'''
|
|
1578
|
+
result = self._values.get("description")
|
|
1579
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1580
|
+
|
|
1581
|
+
@builtins.property
|
|
1582
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
1583
|
+
'''The name of the AI Agent.
|
|
1584
|
+
|
|
1585
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-name
|
|
1586
|
+
'''
|
|
1587
|
+
result = self._values.get("name")
|
|
1588
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1589
|
+
|
|
1590
|
+
@builtins.property
|
|
1591
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
1592
|
+
'''The tags used to organize, track, or control access for this resource.
|
|
1593
|
+
|
|
1594
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#cfn-wisdom-aiagent-tags
|
|
1595
|
+
'''
|
|
1596
|
+
result = self._values.get("tags")
|
|
1597
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
1598
|
+
|
|
1599
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1600
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1601
|
+
|
|
1602
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1603
|
+
return not (rhs == self)
|
|
1604
|
+
|
|
1605
|
+
def __repr__(self) -> str:
|
|
1606
|
+
return "CfnAIAgentProps(%s)" % ", ".join(
|
|
1607
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1608
|
+
)
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
@jsii.implements(_IInspectable_c2943556)
|
|
1612
|
+
class CfnAIAgentVersion(
|
|
1613
|
+
_CfnResource_9df397a6,
|
|
1614
|
+
metaclass=jsii.JSIIMeta,
|
|
1615
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgentVersion",
|
|
1616
|
+
):
|
|
1617
|
+
'''Creates and Amazon Q in Connect AI Agent version.
|
|
1618
|
+
|
|
1619
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html
|
|
1620
|
+
:cloudformationResource: AWS::Wisdom::AIAgentVersion
|
|
1621
|
+
:exampleMetadata: fixture=_generated
|
|
1622
|
+
|
|
1623
|
+
Example::
|
|
1624
|
+
|
|
1625
|
+
# The code below shows an example of how to instantiate this type.
|
|
1626
|
+
# The values are placeholders you should change.
|
|
1627
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1628
|
+
|
|
1629
|
+
cfn_aIAgent_version = wisdom.CfnAIAgentVersion(self, "MyCfnAIAgentVersion",
|
|
1630
|
+
ai_agent_id="aiAgentId",
|
|
1631
|
+
assistant_id="assistantId",
|
|
1632
|
+
|
|
1633
|
+
# the properties below are optional
|
|
1634
|
+
modified_time_seconds=123
|
|
1635
|
+
)
|
|
1636
|
+
'''
|
|
1637
|
+
|
|
1638
|
+
def __init__(
|
|
1639
|
+
self,
|
|
1640
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1641
|
+
id: builtins.str,
|
|
1642
|
+
*,
|
|
1643
|
+
ai_agent_id: builtins.str,
|
|
1644
|
+
assistant_id: builtins.str,
|
|
1645
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
1646
|
+
) -> None:
|
|
1647
|
+
'''
|
|
1648
|
+
:param scope: Scope in which this resource is defined.
|
|
1649
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
1650
|
+
:param ai_agent_id:
|
|
1651
|
+
:param assistant_id:
|
|
1652
|
+
:param modified_time_seconds:
|
|
1653
|
+
'''
|
|
1654
|
+
if __debug__:
|
|
1655
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fa5a166c3d658d9410f80c3ff44a4aee88b29cb4def5f6c7d811c5b47f5ffb68)
|
|
1656
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1657
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1658
|
+
props = CfnAIAgentVersionProps(
|
|
1659
|
+
ai_agent_id=ai_agent_id,
|
|
1660
|
+
assistant_id=assistant_id,
|
|
1661
|
+
modified_time_seconds=modified_time_seconds,
|
|
1662
|
+
)
|
|
1663
|
+
|
|
1664
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
1665
|
+
|
|
1666
|
+
@jsii.member(jsii_name="inspect")
|
|
1667
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
1668
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
1669
|
+
|
|
1670
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
1671
|
+
'''
|
|
1672
|
+
if __debug__:
|
|
1673
|
+
type_hints = typing.get_type_hints(_typecheckingstub__eec3c0a8aee757b615051ab77f3708fef64acd48758d58f7b8801c7073f3ea55)
|
|
1674
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1675
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1676
|
+
|
|
1677
|
+
@jsii.member(jsii_name="renderProperties")
|
|
1678
|
+
def _render_properties(
|
|
1679
|
+
self,
|
|
1680
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
1681
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1682
|
+
'''
|
|
1683
|
+
:param props: -
|
|
1684
|
+
'''
|
|
1685
|
+
if __debug__:
|
|
1686
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1eec2d46406b6deb09ae2fc5f30e9bb5223c8f293091f02f7d13f928906953a1)
|
|
1687
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1688
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1689
|
+
|
|
1690
|
+
@jsii.python.classproperty
|
|
1691
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
1692
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
1693
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
1694
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1695
|
+
|
|
1696
|
+
@builtins.property
|
|
1697
|
+
@jsii.member(jsii_name="attrAiAgentArn")
|
|
1698
|
+
def attr_ai_agent_arn(self) -> builtins.str:
|
|
1699
|
+
'''
|
|
1700
|
+
:cloudformationAttribute: AIAgentArn
|
|
1701
|
+
'''
|
|
1702
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiAgentArn"))
|
|
1703
|
+
|
|
1704
|
+
@builtins.property
|
|
1705
|
+
@jsii.member(jsii_name="attrAiAgentVersionId")
|
|
1706
|
+
def attr_ai_agent_version_id(self) -> builtins.str:
|
|
1707
|
+
'''
|
|
1708
|
+
:cloudformationAttribute: AIAgentVersionId
|
|
1709
|
+
'''
|
|
1710
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiAgentVersionId"))
|
|
1711
|
+
|
|
1712
|
+
@builtins.property
|
|
1713
|
+
@jsii.member(jsii_name="attrAssistantArn")
|
|
1714
|
+
def attr_assistant_arn(self) -> builtins.str:
|
|
1715
|
+
'''
|
|
1716
|
+
:cloudformationAttribute: AssistantArn
|
|
1717
|
+
'''
|
|
1718
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
1719
|
+
|
|
1720
|
+
@builtins.property
|
|
1721
|
+
@jsii.member(jsii_name="attrVersionNumber")
|
|
1722
|
+
def attr_version_number(self) -> _IResolvable_da3f097b:
|
|
1723
|
+
'''The version number for this AI Agent version.
|
|
1724
|
+
|
|
1725
|
+
:cloudformationAttribute: VersionNumber
|
|
1726
|
+
'''
|
|
1727
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrVersionNumber"))
|
|
1728
|
+
|
|
1729
|
+
@builtins.property
|
|
1730
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
1731
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1732
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1733
|
+
|
|
1734
|
+
@builtins.property
|
|
1735
|
+
@jsii.member(jsii_name="aiAgentId")
|
|
1736
|
+
def ai_agent_id(self) -> builtins.str:
|
|
1737
|
+
return typing.cast(builtins.str, jsii.get(self, "aiAgentId"))
|
|
1738
|
+
|
|
1739
|
+
@ai_agent_id.setter
|
|
1740
|
+
def ai_agent_id(self, value: builtins.str) -> None:
|
|
1741
|
+
if __debug__:
|
|
1742
|
+
type_hints = typing.get_type_hints(_typecheckingstub__df356486e6fdad853cdc4c3aa5d62a5febffd1441d8e82f3a672bf4aef6e809d)
|
|
1743
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1744
|
+
jsii.set(self, "aiAgentId", value) # pyright: ignore[reportArgumentType]
|
|
1745
|
+
|
|
1746
|
+
@builtins.property
|
|
1747
|
+
@jsii.member(jsii_name="assistantId")
|
|
1748
|
+
def assistant_id(self) -> builtins.str:
|
|
1749
|
+
return typing.cast(builtins.str, jsii.get(self, "assistantId"))
|
|
1750
|
+
|
|
1751
|
+
@assistant_id.setter
|
|
1752
|
+
def assistant_id(self, value: builtins.str) -> None:
|
|
1753
|
+
if __debug__:
|
|
1754
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e3c00eedc618755e116ec4cf13129b9ecab51c03e0aa3285aa6c4eca0e7c9311)
|
|
1755
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1756
|
+
jsii.set(self, "assistantId", value) # pyright: ignore[reportArgumentType]
|
|
1757
|
+
|
|
1758
|
+
@builtins.property
|
|
1759
|
+
@jsii.member(jsii_name="modifiedTimeSeconds")
|
|
1760
|
+
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
1761
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "modifiedTimeSeconds"))
|
|
1762
|
+
|
|
1763
|
+
@modified_time_seconds.setter
|
|
1764
|
+
def modified_time_seconds(self, value: typing.Optional[jsii.Number]) -> None:
|
|
1765
|
+
if __debug__:
|
|
1766
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1cbb04d6951221f1cfd98bc4ebed42ba72b9f79a3ef0707bfcea622572f06cd2)
|
|
1767
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1768
|
+
jsii.set(self, "modifiedTimeSeconds", value) # pyright: ignore[reportArgumentType]
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
@jsii.data_type(
|
|
1772
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgentVersionProps",
|
|
1773
|
+
jsii_struct_bases=[],
|
|
1774
|
+
name_mapping={
|
|
1775
|
+
"ai_agent_id": "aiAgentId",
|
|
1776
|
+
"assistant_id": "assistantId",
|
|
1777
|
+
"modified_time_seconds": "modifiedTimeSeconds",
|
|
1778
|
+
},
|
|
1779
|
+
)
|
|
1780
|
+
class CfnAIAgentVersionProps:
|
|
1781
|
+
def __init__(
|
|
1782
|
+
self,
|
|
1783
|
+
*,
|
|
1784
|
+
ai_agent_id: builtins.str,
|
|
1785
|
+
assistant_id: builtins.str,
|
|
1786
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
1787
|
+
) -> None:
|
|
1788
|
+
'''Properties for defining a ``CfnAIAgentVersion``.
|
|
1789
|
+
|
|
1790
|
+
:param ai_agent_id:
|
|
1791
|
+
:param assistant_id:
|
|
1792
|
+
:param modified_time_seconds:
|
|
1793
|
+
|
|
1794
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html
|
|
1795
|
+
:exampleMetadata: fixture=_generated
|
|
1796
|
+
|
|
1797
|
+
Example::
|
|
1798
|
+
|
|
1799
|
+
# The code below shows an example of how to instantiate this type.
|
|
1800
|
+
# The values are placeholders you should change.
|
|
1801
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1802
|
+
|
|
1803
|
+
cfn_aIAgent_version_props = wisdom.CfnAIAgentVersionProps(
|
|
1804
|
+
ai_agent_id="aiAgentId",
|
|
1805
|
+
assistant_id="assistantId",
|
|
1806
|
+
|
|
1807
|
+
# the properties below are optional
|
|
1808
|
+
modified_time_seconds=123
|
|
1809
|
+
)
|
|
1810
|
+
'''
|
|
1811
|
+
if __debug__:
|
|
1812
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6ce55b0c69b9bc58cfcaeadaff04d7986170a5f73af9f6157ba1fe19c79b250e)
|
|
1813
|
+
check_type(argname="argument ai_agent_id", value=ai_agent_id, expected_type=type_hints["ai_agent_id"])
|
|
1814
|
+
check_type(argname="argument assistant_id", value=assistant_id, expected_type=type_hints["assistant_id"])
|
|
1815
|
+
check_type(argname="argument modified_time_seconds", value=modified_time_seconds, expected_type=type_hints["modified_time_seconds"])
|
|
1816
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1817
|
+
"ai_agent_id": ai_agent_id,
|
|
1818
|
+
"assistant_id": assistant_id,
|
|
1819
|
+
}
|
|
1820
|
+
if modified_time_seconds is not None:
|
|
1821
|
+
self._values["modified_time_seconds"] = modified_time_seconds
|
|
1822
|
+
|
|
1823
|
+
@builtins.property
|
|
1824
|
+
def ai_agent_id(self) -> builtins.str:
|
|
1825
|
+
'''
|
|
1826
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html#cfn-wisdom-aiagentversion-aiagentid
|
|
1827
|
+
'''
|
|
1828
|
+
result = self._values.get("ai_agent_id")
|
|
1829
|
+
assert result is not None, "Required property 'ai_agent_id' is missing"
|
|
1830
|
+
return typing.cast(builtins.str, result)
|
|
1831
|
+
|
|
1832
|
+
@builtins.property
|
|
1833
|
+
def assistant_id(self) -> builtins.str:
|
|
1834
|
+
'''
|
|
1835
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html#cfn-wisdom-aiagentversion-assistantid
|
|
1836
|
+
'''
|
|
1837
|
+
result = self._values.get("assistant_id")
|
|
1838
|
+
assert result is not None, "Required property 'assistant_id' is missing"
|
|
1839
|
+
return typing.cast(builtins.str, result)
|
|
1840
|
+
|
|
1841
|
+
@builtins.property
|
|
1842
|
+
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
1843
|
+
'''
|
|
1844
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagentversion.html#cfn-wisdom-aiagentversion-modifiedtimeseconds
|
|
1845
|
+
'''
|
|
1846
|
+
result = self._values.get("modified_time_seconds")
|
|
1847
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1848
|
+
|
|
1849
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1850
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1851
|
+
|
|
1852
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1853
|
+
return not (rhs == self)
|
|
1854
|
+
|
|
1855
|
+
def __repr__(self) -> str:
|
|
1856
|
+
return "CfnAIAgentVersionProps(%s)" % ", ".join(
|
|
1857
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1858
|
+
)
|
|
1859
|
+
|
|
1860
|
+
|
|
73
1861
|
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
74
1862
|
class CfnAIPrompt(
|
|
75
1863
|
_CfnResource_9df397a6,
|
|
@@ -578,75 +2366,325 @@ class CfnAIPromptProps:
|
|
|
578
2366
|
assert result is not None, "Required property 'model_id' is missing"
|
|
579
2367
|
return typing.cast(builtins.str, result)
|
|
580
2368
|
|
|
581
|
-
@builtins.property
|
|
582
|
-
def template_configuration(
|
|
583
|
-
self,
|
|
584
|
-
) -> typing.Union[_IResolvable_da3f097b, CfnAIPrompt.AIPromptTemplateConfigurationProperty]:
|
|
585
|
-
'''The configuration of the prompt template for this AI Prompt.
|
|
2369
|
+
@builtins.property
|
|
2370
|
+
def template_configuration(
|
|
2371
|
+
self,
|
|
2372
|
+
) -> typing.Union[_IResolvable_da3f097b, CfnAIPrompt.AIPromptTemplateConfigurationProperty]:
|
|
2373
|
+
'''The configuration of the prompt template for this AI Prompt.
|
|
2374
|
+
|
|
2375
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-templateconfiguration
|
|
2376
|
+
'''
|
|
2377
|
+
result = self._values.get("template_configuration")
|
|
2378
|
+
assert result is not None, "Required property 'template_configuration' is missing"
|
|
2379
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnAIPrompt.AIPromptTemplateConfigurationProperty], result)
|
|
2380
|
+
|
|
2381
|
+
@builtins.property
|
|
2382
|
+
def template_type(self) -> builtins.str:
|
|
2383
|
+
'''The type of the prompt template for this AI Prompt.
|
|
2384
|
+
|
|
2385
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-templatetype
|
|
2386
|
+
'''
|
|
2387
|
+
result = self._values.get("template_type")
|
|
2388
|
+
assert result is not None, "Required property 'template_type' is missing"
|
|
2389
|
+
return typing.cast(builtins.str, result)
|
|
2390
|
+
|
|
2391
|
+
@builtins.property
|
|
2392
|
+
def type(self) -> builtins.str:
|
|
2393
|
+
'''The type of this AI Prompt.
|
|
2394
|
+
|
|
2395
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-type
|
|
2396
|
+
'''
|
|
2397
|
+
result = self._values.get("type")
|
|
2398
|
+
assert result is not None, "Required property 'type' is missing"
|
|
2399
|
+
return typing.cast(builtins.str, result)
|
|
2400
|
+
|
|
2401
|
+
@builtins.property
|
|
2402
|
+
def assistant_id(self) -> typing.Optional[builtins.str]:
|
|
2403
|
+
'''The identifier of the Amazon Q in Connect assistant.
|
|
2404
|
+
|
|
2405
|
+
Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
2406
|
+
|
|
2407
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-assistantid
|
|
2408
|
+
'''
|
|
2409
|
+
result = self._values.get("assistant_id")
|
|
2410
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2411
|
+
|
|
2412
|
+
@builtins.property
|
|
2413
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
2414
|
+
'''The description of the AI Prompt.
|
|
2415
|
+
|
|
2416
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-description
|
|
2417
|
+
'''
|
|
2418
|
+
result = self._values.get("description")
|
|
2419
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2420
|
+
|
|
2421
|
+
@builtins.property
|
|
2422
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
2423
|
+
'''The name of the AI Prompt.
|
|
2424
|
+
|
|
2425
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-name
|
|
2426
|
+
'''
|
|
2427
|
+
result = self._values.get("name")
|
|
2428
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2429
|
+
|
|
2430
|
+
@builtins.property
|
|
2431
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
2432
|
+
'''The tags used to organize, track, or control access for this resource.
|
|
2433
|
+
|
|
2434
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-tags
|
|
2435
|
+
'''
|
|
2436
|
+
result = self._values.get("tags")
|
|
2437
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
2438
|
+
|
|
2439
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2440
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2441
|
+
|
|
2442
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2443
|
+
return not (rhs == self)
|
|
2444
|
+
|
|
2445
|
+
def __repr__(self) -> str:
|
|
2446
|
+
return "CfnAIPromptProps(%s)" % ", ".join(
|
|
2447
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2448
|
+
)
|
|
2449
|
+
|
|
2450
|
+
|
|
2451
|
+
@jsii.implements(_IInspectable_c2943556)
|
|
2452
|
+
class CfnAIPromptVersion(
|
|
2453
|
+
_CfnResource_9df397a6,
|
|
2454
|
+
metaclass=jsii.JSIIMeta,
|
|
2455
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIPromptVersion",
|
|
2456
|
+
):
|
|
2457
|
+
'''Creates an Amazon Q in Connect AI Prompt version.
|
|
2458
|
+
|
|
2459
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aipromptversion.html
|
|
2460
|
+
:cloudformationResource: AWS::Wisdom::AIPromptVersion
|
|
2461
|
+
:exampleMetadata: fixture=_generated
|
|
2462
|
+
|
|
2463
|
+
Example::
|
|
2464
|
+
|
|
2465
|
+
# The code below shows an example of how to instantiate this type.
|
|
2466
|
+
# The values are placeholders you should change.
|
|
2467
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2468
|
+
|
|
2469
|
+
cfn_aIPrompt_version = wisdom.CfnAIPromptVersion(self, "MyCfnAIPromptVersion",
|
|
2470
|
+
ai_prompt_id="aiPromptId",
|
|
2471
|
+
assistant_id="assistantId",
|
|
2472
|
+
|
|
2473
|
+
# the properties below are optional
|
|
2474
|
+
modified_time_seconds=123
|
|
2475
|
+
)
|
|
2476
|
+
'''
|
|
2477
|
+
|
|
2478
|
+
def __init__(
|
|
2479
|
+
self,
|
|
2480
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
2481
|
+
id: builtins.str,
|
|
2482
|
+
*,
|
|
2483
|
+
ai_prompt_id: builtins.str,
|
|
2484
|
+
assistant_id: builtins.str,
|
|
2485
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
2486
|
+
) -> None:
|
|
2487
|
+
'''
|
|
2488
|
+
:param scope: Scope in which this resource is defined.
|
|
2489
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
2490
|
+
:param ai_prompt_id:
|
|
2491
|
+
:param assistant_id:
|
|
2492
|
+
:param modified_time_seconds:
|
|
2493
|
+
'''
|
|
2494
|
+
if __debug__:
|
|
2495
|
+
type_hints = typing.get_type_hints(_typecheckingstub__729db38c828e5e73ae0386aea45298b479e1a069777600fadadd338035a13e5d)
|
|
2496
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
2497
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
2498
|
+
props = CfnAIPromptVersionProps(
|
|
2499
|
+
ai_prompt_id=ai_prompt_id,
|
|
2500
|
+
assistant_id=assistant_id,
|
|
2501
|
+
modified_time_seconds=modified_time_seconds,
|
|
2502
|
+
)
|
|
2503
|
+
|
|
2504
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
2505
|
+
|
|
2506
|
+
@jsii.member(jsii_name="inspect")
|
|
2507
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
2508
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
2509
|
+
|
|
2510
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
2511
|
+
'''
|
|
2512
|
+
if __debug__:
|
|
2513
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bb551060d0407b951291352d04af15e21651dd34a52774e39a2d2da6e4df3220)
|
|
2514
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
2515
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
2516
|
+
|
|
2517
|
+
@jsii.member(jsii_name="renderProperties")
|
|
2518
|
+
def _render_properties(
|
|
2519
|
+
self,
|
|
2520
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
2521
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2522
|
+
'''
|
|
2523
|
+
:param props: -
|
|
2524
|
+
'''
|
|
2525
|
+
if __debug__:
|
|
2526
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b234db791908c37519c8ae3284494dc43affe3bad0ab4eadab6407ef7ccc7627)
|
|
2527
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
2528
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
2529
|
+
|
|
2530
|
+
@jsii.python.classproperty
|
|
2531
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
2532
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
2533
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
2534
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
2535
|
+
|
|
2536
|
+
@builtins.property
|
|
2537
|
+
@jsii.member(jsii_name="attrAiPromptArn")
|
|
2538
|
+
def attr_ai_prompt_arn(self) -> builtins.str:
|
|
2539
|
+
'''
|
|
2540
|
+
:cloudformationAttribute: AIPromptArn
|
|
2541
|
+
'''
|
|
2542
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiPromptArn"))
|
|
2543
|
+
|
|
2544
|
+
@builtins.property
|
|
2545
|
+
@jsii.member(jsii_name="attrAiPromptVersionId")
|
|
2546
|
+
def attr_ai_prompt_version_id(self) -> builtins.str:
|
|
2547
|
+
'''
|
|
2548
|
+
:cloudformationAttribute: AIPromptVersionId
|
|
2549
|
+
'''
|
|
2550
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiPromptVersionId"))
|
|
2551
|
+
|
|
2552
|
+
@builtins.property
|
|
2553
|
+
@jsii.member(jsii_name="attrAssistantArn")
|
|
2554
|
+
def attr_assistant_arn(self) -> builtins.str:
|
|
2555
|
+
'''
|
|
2556
|
+
:cloudformationAttribute: AssistantArn
|
|
2557
|
+
'''
|
|
2558
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
2559
|
+
|
|
2560
|
+
@builtins.property
|
|
2561
|
+
@jsii.member(jsii_name="attrVersionNumber")
|
|
2562
|
+
def attr_version_number(self) -> _IResolvable_da3f097b:
|
|
2563
|
+
'''The version number for this AI Prompt version.
|
|
2564
|
+
|
|
2565
|
+
:cloudformationAttribute: VersionNumber
|
|
2566
|
+
'''
|
|
2567
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrVersionNumber"))
|
|
2568
|
+
|
|
2569
|
+
@builtins.property
|
|
2570
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
2571
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2572
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
2573
|
+
|
|
2574
|
+
@builtins.property
|
|
2575
|
+
@jsii.member(jsii_name="aiPromptId")
|
|
2576
|
+
def ai_prompt_id(self) -> builtins.str:
|
|
2577
|
+
return typing.cast(builtins.str, jsii.get(self, "aiPromptId"))
|
|
2578
|
+
|
|
2579
|
+
@ai_prompt_id.setter
|
|
2580
|
+
def ai_prompt_id(self, value: builtins.str) -> None:
|
|
2581
|
+
if __debug__:
|
|
2582
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ad29e2ee6fad75de44645890c2c623b9ccb35a02f6e75d7ed98fa3b7337272ca)
|
|
2583
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2584
|
+
jsii.set(self, "aiPromptId", value) # pyright: ignore[reportArgumentType]
|
|
2585
|
+
|
|
2586
|
+
@builtins.property
|
|
2587
|
+
@jsii.member(jsii_name="assistantId")
|
|
2588
|
+
def assistant_id(self) -> builtins.str:
|
|
2589
|
+
return typing.cast(builtins.str, jsii.get(self, "assistantId"))
|
|
2590
|
+
|
|
2591
|
+
@assistant_id.setter
|
|
2592
|
+
def assistant_id(self, value: builtins.str) -> None:
|
|
2593
|
+
if __debug__:
|
|
2594
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1b6982f0f13d49bf234e47082e4a9783bc461e6dc18d68737a370a3682f93b48)
|
|
2595
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2596
|
+
jsii.set(self, "assistantId", value) # pyright: ignore[reportArgumentType]
|
|
2597
|
+
|
|
2598
|
+
@builtins.property
|
|
2599
|
+
@jsii.member(jsii_name="modifiedTimeSeconds")
|
|
2600
|
+
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
2601
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "modifiedTimeSeconds"))
|
|
2602
|
+
|
|
2603
|
+
@modified_time_seconds.setter
|
|
2604
|
+
def modified_time_seconds(self, value: typing.Optional[jsii.Number]) -> None:
|
|
2605
|
+
if __debug__:
|
|
2606
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d1f64ffa51639af07e9712d95780a238db8bd368a440a159ead5f0364951dcd4)
|
|
2607
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2608
|
+
jsii.set(self, "modifiedTimeSeconds", value) # pyright: ignore[reportArgumentType]
|
|
2609
|
+
|
|
2610
|
+
|
|
2611
|
+
@jsii.data_type(
|
|
2612
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIPromptVersionProps",
|
|
2613
|
+
jsii_struct_bases=[],
|
|
2614
|
+
name_mapping={
|
|
2615
|
+
"ai_prompt_id": "aiPromptId",
|
|
2616
|
+
"assistant_id": "assistantId",
|
|
2617
|
+
"modified_time_seconds": "modifiedTimeSeconds",
|
|
2618
|
+
},
|
|
2619
|
+
)
|
|
2620
|
+
class CfnAIPromptVersionProps:
|
|
2621
|
+
def __init__(
|
|
2622
|
+
self,
|
|
2623
|
+
*,
|
|
2624
|
+
ai_prompt_id: builtins.str,
|
|
2625
|
+
assistant_id: builtins.str,
|
|
2626
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
2627
|
+
) -> None:
|
|
2628
|
+
'''Properties for defining a ``CfnAIPromptVersion``.
|
|
2629
|
+
|
|
2630
|
+
:param ai_prompt_id:
|
|
2631
|
+
:param assistant_id:
|
|
2632
|
+
:param modified_time_seconds:
|
|
586
2633
|
|
|
587
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-
|
|
588
|
-
|
|
589
|
-
result = self._values.get("template_configuration")
|
|
590
|
-
assert result is not None, "Required property 'template_configuration' is missing"
|
|
591
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnAIPrompt.AIPromptTemplateConfigurationProperty], result)
|
|
2634
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aipromptversion.html
|
|
2635
|
+
:exampleMetadata: fixture=_generated
|
|
592
2636
|
|
|
593
|
-
|
|
594
|
-
def template_type(self) -> builtins.str:
|
|
595
|
-
'''The type of the prompt template for this AI Prompt.
|
|
2637
|
+
Example::
|
|
596
2638
|
|
|
597
|
-
|
|
2639
|
+
# The code below shows an example of how to instantiate this type.
|
|
2640
|
+
# The values are placeholders you should change.
|
|
2641
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
2642
|
+
|
|
2643
|
+
cfn_aIPrompt_version_props = wisdom.CfnAIPromptVersionProps(
|
|
2644
|
+
ai_prompt_id="aiPromptId",
|
|
2645
|
+
assistant_id="assistantId",
|
|
2646
|
+
|
|
2647
|
+
# the properties below are optional
|
|
2648
|
+
modified_time_seconds=123
|
|
2649
|
+
)
|
|
598
2650
|
'''
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
2651
|
+
if __debug__:
|
|
2652
|
+
type_hints = typing.get_type_hints(_typecheckingstub__39068faf047cdd2f1dce0d86adaff6f71058bba08c161da563b36647959f2add)
|
|
2653
|
+
check_type(argname="argument ai_prompt_id", value=ai_prompt_id, expected_type=type_hints["ai_prompt_id"])
|
|
2654
|
+
check_type(argname="argument assistant_id", value=assistant_id, expected_type=type_hints["assistant_id"])
|
|
2655
|
+
check_type(argname="argument modified_time_seconds", value=modified_time_seconds, expected_type=type_hints["modified_time_seconds"])
|
|
2656
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2657
|
+
"ai_prompt_id": ai_prompt_id,
|
|
2658
|
+
"assistant_id": assistant_id,
|
|
2659
|
+
}
|
|
2660
|
+
if modified_time_seconds is not None:
|
|
2661
|
+
self._values["modified_time_seconds"] = modified_time_seconds
|
|
602
2662
|
|
|
603
2663
|
@builtins.property
|
|
604
|
-
def
|
|
605
|
-
'''The type of this AI Prompt.
|
|
606
|
-
|
|
607
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-type
|
|
2664
|
+
def ai_prompt_id(self) -> builtins.str:
|
|
608
2665
|
'''
|
|
609
|
-
|
|
610
|
-
|
|
2666
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aipromptversion.html#cfn-wisdom-aipromptversion-aipromptid
|
|
2667
|
+
'''
|
|
2668
|
+
result = self._values.get("ai_prompt_id")
|
|
2669
|
+
assert result is not None, "Required property 'ai_prompt_id' is missing"
|
|
611
2670
|
return typing.cast(builtins.str, result)
|
|
612
2671
|
|
|
613
2672
|
@builtins.property
|
|
614
|
-
def assistant_id(self) ->
|
|
615
|
-
'''The identifier of the Amazon Q in Connect assistant.
|
|
616
|
-
|
|
617
|
-
Can be either the ID or the ARN. URLs cannot contain the ARN.
|
|
618
|
-
|
|
619
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-assistantid
|
|
2673
|
+
def assistant_id(self) -> builtins.str:
|
|
620
2674
|
'''
|
|
621
|
-
|
|
622
|
-
return typing.cast(typing.Optional[builtins.str], result)
|
|
623
|
-
|
|
624
|
-
@builtins.property
|
|
625
|
-
def description(self) -> typing.Optional[builtins.str]:
|
|
626
|
-
'''The description of the AI Prompt.
|
|
627
|
-
|
|
628
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-description
|
|
2675
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aipromptversion.html#cfn-wisdom-aipromptversion-assistantid
|
|
629
2676
|
'''
|
|
630
|
-
result = self._values.get("
|
|
631
|
-
|
|
2677
|
+
result = self._values.get("assistant_id")
|
|
2678
|
+
assert result is not None, "Required property 'assistant_id' is missing"
|
|
2679
|
+
return typing.cast(builtins.str, result)
|
|
632
2680
|
|
|
633
2681
|
@builtins.property
|
|
634
|
-
def
|
|
635
|
-
'''The name of the AI Prompt.
|
|
636
|
-
|
|
637
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-name
|
|
2682
|
+
def modified_time_seconds(self) -> typing.Optional[jsii.Number]:
|
|
638
2683
|
'''
|
|
639
|
-
|
|
640
|
-
return typing.cast(typing.Optional[builtins.str], result)
|
|
641
|
-
|
|
642
|
-
@builtins.property
|
|
643
|
-
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
644
|
-
'''The tags used to organize, track, or control access for this resource.
|
|
645
|
-
|
|
646
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-tags
|
|
2684
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aipromptversion.html#cfn-wisdom-aipromptversion-modifiedtimeseconds
|
|
647
2685
|
'''
|
|
648
|
-
result = self._values.get("
|
|
649
|
-
return typing.cast(typing.Optional[
|
|
2686
|
+
result = self._values.get("modified_time_seconds")
|
|
2687
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
650
2688
|
|
|
651
2689
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
652
2690
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -655,7 +2693,7 @@ class CfnAIPromptProps:
|
|
|
655
2693
|
return not (rhs == self)
|
|
656
2694
|
|
|
657
2695
|
def __repr__(self) -> str:
|
|
658
|
-
return "
|
|
2696
|
+
return "CfnAIPromptVersionProps(%s)" % ", ".join(
|
|
659
2697
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
660
2698
|
)
|
|
661
2699
|
|
|
@@ -2115,8 +4153,14 @@ class CfnKnowledgeBaseProps:
|
|
|
2115
4153
|
|
|
2116
4154
|
|
|
2117
4155
|
__all__ = [
|
|
4156
|
+
"CfnAIAgent",
|
|
4157
|
+
"CfnAIAgentProps",
|
|
4158
|
+
"CfnAIAgentVersion",
|
|
4159
|
+
"CfnAIAgentVersionProps",
|
|
2118
4160
|
"CfnAIPrompt",
|
|
2119
4161
|
"CfnAIPromptProps",
|
|
4162
|
+
"CfnAIPromptVersion",
|
|
4163
|
+
"CfnAIPromptVersionProps",
|
|
2120
4164
|
"CfnAssistant",
|
|
2121
4165
|
"CfnAssistantAssociation",
|
|
2122
4166
|
"CfnAssistantAssociationProps",
|
|
@@ -2127,6 +4171,206 @@ __all__ = [
|
|
|
2127
4171
|
|
|
2128
4172
|
publication.publish()
|
|
2129
4173
|
|
|
4174
|
+
def _typecheckingstub__e4d43de9ccaeb31eba5b0b613ecac25531a87bb9137652388e6196070f4622ab(
|
|
4175
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
4176
|
+
id: builtins.str,
|
|
4177
|
+
*,
|
|
4178
|
+
assistant_id: builtins.str,
|
|
4179
|
+
configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4180
|
+
type: builtins.str,
|
|
4181
|
+
description: typing.Optional[builtins.str] = None,
|
|
4182
|
+
name: typing.Optional[builtins.str] = None,
|
|
4183
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4184
|
+
) -> None:
|
|
4185
|
+
"""Type checking stubs"""
|
|
4186
|
+
pass
|
|
4187
|
+
|
|
4188
|
+
def _typecheckingstub__daf9bd162ab4eaa6b11972bcaf8372498a47b4ad8cf111130cabfae3f675d2b4(
|
|
4189
|
+
inspector: _TreeInspector_488e0dd5,
|
|
4190
|
+
) -> None:
|
|
4191
|
+
"""Type checking stubs"""
|
|
4192
|
+
pass
|
|
4193
|
+
|
|
4194
|
+
def _typecheckingstub__569f9e85834b9b380045c7e9789b3ac0684022e3b37642b34e232ba9b451ade6(
|
|
4195
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
4196
|
+
) -> None:
|
|
4197
|
+
"""Type checking stubs"""
|
|
4198
|
+
pass
|
|
4199
|
+
|
|
4200
|
+
def _typecheckingstub__b3d8fd38839efd97edc463e08adcbeb6d1b964aa278b19d07017fb40c806bb19(
|
|
4201
|
+
value: builtins.str,
|
|
4202
|
+
) -> None:
|
|
4203
|
+
"""Type checking stubs"""
|
|
4204
|
+
pass
|
|
4205
|
+
|
|
4206
|
+
def _typecheckingstub__2d07c289ddb2abe8b14c5f581386f3377fb7266b5b099c89c1b142b4bbd9d769(
|
|
4207
|
+
value: typing.Union[_IResolvable_da3f097b, CfnAIAgent.AIAgentConfigurationProperty],
|
|
4208
|
+
) -> None:
|
|
4209
|
+
"""Type checking stubs"""
|
|
4210
|
+
pass
|
|
4211
|
+
|
|
4212
|
+
def _typecheckingstub__9b90fdd18e60e92e1589e2bf61b55c6cd7758b9da5e26d00525cb08a2ad13830(
|
|
4213
|
+
value: builtins.str,
|
|
4214
|
+
) -> None:
|
|
4215
|
+
"""Type checking stubs"""
|
|
4216
|
+
pass
|
|
4217
|
+
|
|
4218
|
+
def _typecheckingstub__6380f3badbada0c208691bd5242dfabe1122f10b446d77f1ae5ad0c9da456ae8(
|
|
4219
|
+
value: typing.Optional[builtins.str],
|
|
4220
|
+
) -> None:
|
|
4221
|
+
"""Type checking stubs"""
|
|
4222
|
+
pass
|
|
4223
|
+
|
|
4224
|
+
def _typecheckingstub__982490f39ff188d23898421a1623ad1489db32be592625d58e01c368c7568247(
|
|
4225
|
+
value: typing.Optional[builtins.str],
|
|
4226
|
+
) -> None:
|
|
4227
|
+
"""Type checking stubs"""
|
|
4228
|
+
pass
|
|
4229
|
+
|
|
4230
|
+
def _typecheckingstub__2e3ed01afbf4aa2c01303d467dcbf5c5cd3fb267902b917f3c4f5fdd0d83ccdc(
|
|
4231
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
4232
|
+
) -> None:
|
|
4233
|
+
"""Type checking stubs"""
|
|
4234
|
+
pass
|
|
4235
|
+
|
|
4236
|
+
def _typecheckingstub__8cb84ad0dc27ffdae65e4e739c98ea6a4e7c36340f15c21ae83a2225ff763ba3(
|
|
4237
|
+
*,
|
|
4238
|
+
answer_recommendation_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4239
|
+
manual_search_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.ManualSearchAIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4240
|
+
) -> None:
|
|
4241
|
+
"""Type checking stubs"""
|
|
4242
|
+
pass
|
|
4243
|
+
|
|
4244
|
+
def _typecheckingstub__6847cf788b7def362d576a512b579b2a08c25837003298b7c57254d1dfb45112(
|
|
4245
|
+
*,
|
|
4246
|
+
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
4247
|
+
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,
|
|
4248
|
+
intent_labeling_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
4249
|
+
query_reformulation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
4250
|
+
) -> None:
|
|
4251
|
+
"""Type checking stubs"""
|
|
4252
|
+
pass
|
|
4253
|
+
|
|
4254
|
+
def _typecheckingstub__c351d3e3386a19a82d6920c115ac6f8c911a12da4a117a9c0676a8ff0038fd41(
|
|
4255
|
+
*,
|
|
4256
|
+
knowledge_base_association_configuration_data: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.KnowledgeBaseAssociationConfigurationDataProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4257
|
+
) -> None:
|
|
4258
|
+
"""Type checking stubs"""
|
|
4259
|
+
pass
|
|
4260
|
+
|
|
4261
|
+
def _typecheckingstub__2df56062b7b8c55a883d0469e63c3aad05d8079bf21171f13f4e68d2f26fea44(
|
|
4262
|
+
*,
|
|
4263
|
+
association_configuration_data: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AssociationConfigurationDataProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4264
|
+
association_id: typing.Optional[builtins.str] = None,
|
|
4265
|
+
association_type: typing.Optional[builtins.str] = None,
|
|
4266
|
+
) -> None:
|
|
4267
|
+
"""Type checking stubs"""
|
|
4268
|
+
pass
|
|
4269
|
+
|
|
4270
|
+
def _typecheckingstub__af25ecdf7592033a618b9a411d145fb2bd7b10ae3e9b0a04a4502e0dee139e27(
|
|
4271
|
+
*,
|
|
4272
|
+
content_tag_filter: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.TagFilterProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4273
|
+
max_results: typing.Optional[jsii.Number] = None,
|
|
4274
|
+
override_knowledge_base_search_type: typing.Optional[builtins.str] = None,
|
|
4275
|
+
) -> None:
|
|
4276
|
+
"""Type checking stubs"""
|
|
4277
|
+
pass
|
|
4278
|
+
|
|
4279
|
+
def _typecheckingstub__3346eba3a05ad4b31350bf2c54edbb6063a18cfea8a25ebbab80c402438f039a(
|
|
4280
|
+
*,
|
|
4281
|
+
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
4282
|
+
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,
|
|
4283
|
+
) -> None:
|
|
4284
|
+
"""Type checking stubs"""
|
|
4285
|
+
pass
|
|
4286
|
+
|
|
4287
|
+
def _typecheckingstub__bf2bbad68aea63c5546563872782e30b131382ddae5fbabf04602b928494d4d4(
|
|
4288
|
+
*,
|
|
4289
|
+
and_conditions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.TagConditionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4290
|
+
tag_condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.TagConditionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4291
|
+
) -> None:
|
|
4292
|
+
"""Type checking stubs"""
|
|
4293
|
+
pass
|
|
4294
|
+
|
|
4295
|
+
def _typecheckingstub__76535774a57202e416fb208d73c095c91408f65fd8a1b99f6b568fd994b915e9(
|
|
4296
|
+
*,
|
|
4297
|
+
key: builtins.str,
|
|
4298
|
+
value: typing.Optional[builtins.str] = None,
|
|
4299
|
+
) -> None:
|
|
4300
|
+
"""Type checking stubs"""
|
|
4301
|
+
pass
|
|
4302
|
+
|
|
4303
|
+
def _typecheckingstub__47961a691b994d09a0537dc7d655a0aab653585a5e8bd78b30c4bc84ec243c19(
|
|
4304
|
+
*,
|
|
4305
|
+
and_conditions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.TagConditionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4306
|
+
or_conditions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.OrConditionProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4307
|
+
tag_condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.TagConditionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4308
|
+
) -> None:
|
|
4309
|
+
"""Type checking stubs"""
|
|
4310
|
+
pass
|
|
4311
|
+
|
|
4312
|
+
def _typecheckingstub__b1cda9a6282ec07c28c0ef49efdf8da8f079052d26edd32bbe15324644982756(
|
|
4313
|
+
*,
|
|
4314
|
+
assistant_id: builtins.str,
|
|
4315
|
+
configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4316
|
+
type: builtins.str,
|
|
4317
|
+
description: typing.Optional[builtins.str] = None,
|
|
4318
|
+
name: typing.Optional[builtins.str] = None,
|
|
4319
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
4320
|
+
) -> None:
|
|
4321
|
+
"""Type checking stubs"""
|
|
4322
|
+
pass
|
|
4323
|
+
|
|
4324
|
+
def _typecheckingstub__fa5a166c3d658d9410f80c3ff44a4aee88b29cb4def5f6c7d811c5b47f5ffb68(
|
|
4325
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
4326
|
+
id: builtins.str,
|
|
4327
|
+
*,
|
|
4328
|
+
ai_agent_id: builtins.str,
|
|
4329
|
+
assistant_id: builtins.str,
|
|
4330
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
4331
|
+
) -> None:
|
|
4332
|
+
"""Type checking stubs"""
|
|
4333
|
+
pass
|
|
4334
|
+
|
|
4335
|
+
def _typecheckingstub__eec3c0a8aee757b615051ab77f3708fef64acd48758d58f7b8801c7073f3ea55(
|
|
4336
|
+
inspector: _TreeInspector_488e0dd5,
|
|
4337
|
+
) -> None:
|
|
4338
|
+
"""Type checking stubs"""
|
|
4339
|
+
pass
|
|
4340
|
+
|
|
4341
|
+
def _typecheckingstub__1eec2d46406b6deb09ae2fc5f30e9bb5223c8f293091f02f7d13f928906953a1(
|
|
4342
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
4343
|
+
) -> None:
|
|
4344
|
+
"""Type checking stubs"""
|
|
4345
|
+
pass
|
|
4346
|
+
|
|
4347
|
+
def _typecheckingstub__df356486e6fdad853cdc4c3aa5d62a5febffd1441d8e82f3a672bf4aef6e809d(
|
|
4348
|
+
value: builtins.str,
|
|
4349
|
+
) -> None:
|
|
4350
|
+
"""Type checking stubs"""
|
|
4351
|
+
pass
|
|
4352
|
+
|
|
4353
|
+
def _typecheckingstub__e3c00eedc618755e116ec4cf13129b9ecab51c03e0aa3285aa6c4eca0e7c9311(
|
|
4354
|
+
value: builtins.str,
|
|
4355
|
+
) -> None:
|
|
4356
|
+
"""Type checking stubs"""
|
|
4357
|
+
pass
|
|
4358
|
+
|
|
4359
|
+
def _typecheckingstub__1cbb04d6951221f1cfd98bc4ebed42ba72b9f79a3ef0707bfcea622572f06cd2(
|
|
4360
|
+
value: typing.Optional[jsii.Number],
|
|
4361
|
+
) -> None:
|
|
4362
|
+
"""Type checking stubs"""
|
|
4363
|
+
pass
|
|
4364
|
+
|
|
4365
|
+
def _typecheckingstub__6ce55b0c69b9bc58cfcaeadaff04d7986170a5f73af9f6157ba1fe19c79b250e(
|
|
4366
|
+
*,
|
|
4367
|
+
ai_agent_id: builtins.str,
|
|
4368
|
+
assistant_id: builtins.str,
|
|
4369
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
4370
|
+
) -> None:
|
|
4371
|
+
"""Type checking stubs"""
|
|
4372
|
+
pass
|
|
4373
|
+
|
|
2130
4374
|
def _typecheckingstub__48a265f7ec519ced4028dd8e69d5a1fe8ef89d36b11d693c968f74c8be6bb9df(
|
|
2131
4375
|
scope: _constructs_77d1e7e8.Construct,
|
|
2132
4376
|
id: builtins.str,
|
|
@@ -2239,6 +4483,56 @@ def _typecheckingstub__3a55de2153828f44950073a28af3416601dc1f09105d3fa9d8f1ec243
|
|
|
2239
4483
|
"""Type checking stubs"""
|
|
2240
4484
|
pass
|
|
2241
4485
|
|
|
4486
|
+
def _typecheckingstub__729db38c828e5e73ae0386aea45298b479e1a069777600fadadd338035a13e5d(
|
|
4487
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
4488
|
+
id: builtins.str,
|
|
4489
|
+
*,
|
|
4490
|
+
ai_prompt_id: builtins.str,
|
|
4491
|
+
assistant_id: builtins.str,
|
|
4492
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
4493
|
+
) -> None:
|
|
4494
|
+
"""Type checking stubs"""
|
|
4495
|
+
pass
|
|
4496
|
+
|
|
4497
|
+
def _typecheckingstub__bb551060d0407b951291352d04af15e21651dd34a52774e39a2d2da6e4df3220(
|
|
4498
|
+
inspector: _TreeInspector_488e0dd5,
|
|
4499
|
+
) -> None:
|
|
4500
|
+
"""Type checking stubs"""
|
|
4501
|
+
pass
|
|
4502
|
+
|
|
4503
|
+
def _typecheckingstub__b234db791908c37519c8ae3284494dc43affe3bad0ab4eadab6407ef7ccc7627(
|
|
4504
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
4505
|
+
) -> None:
|
|
4506
|
+
"""Type checking stubs"""
|
|
4507
|
+
pass
|
|
4508
|
+
|
|
4509
|
+
def _typecheckingstub__ad29e2ee6fad75de44645890c2c623b9ccb35a02f6e75d7ed98fa3b7337272ca(
|
|
4510
|
+
value: builtins.str,
|
|
4511
|
+
) -> None:
|
|
4512
|
+
"""Type checking stubs"""
|
|
4513
|
+
pass
|
|
4514
|
+
|
|
4515
|
+
def _typecheckingstub__1b6982f0f13d49bf234e47082e4a9783bc461e6dc18d68737a370a3682f93b48(
|
|
4516
|
+
value: builtins.str,
|
|
4517
|
+
) -> None:
|
|
4518
|
+
"""Type checking stubs"""
|
|
4519
|
+
pass
|
|
4520
|
+
|
|
4521
|
+
def _typecheckingstub__d1f64ffa51639af07e9712d95780a238db8bd368a440a159ead5f0364951dcd4(
|
|
4522
|
+
value: typing.Optional[jsii.Number],
|
|
4523
|
+
) -> None:
|
|
4524
|
+
"""Type checking stubs"""
|
|
4525
|
+
pass
|
|
4526
|
+
|
|
4527
|
+
def _typecheckingstub__39068faf047cdd2f1dce0d86adaff6f71058bba08c161da563b36647959f2add(
|
|
4528
|
+
*,
|
|
4529
|
+
ai_prompt_id: builtins.str,
|
|
4530
|
+
assistant_id: builtins.str,
|
|
4531
|
+
modified_time_seconds: typing.Optional[jsii.Number] = None,
|
|
4532
|
+
) -> None:
|
|
4533
|
+
"""Type checking stubs"""
|
|
4534
|
+
pass
|
|
4535
|
+
|
|
2242
4536
|
def _typecheckingstub__8078b7e28a17a68ab6f3d362e7de3af6b6867207690b2b344e35797cd6569746(
|
|
2243
4537
|
scope: _constructs_77d1e7e8.Construct,
|
|
2244
4538
|
id: builtins.str,
|