aws-cdk-lib 2.162.1__py3-none-any.whl → 2.163.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 +5 -7
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.162.1.jsii.tgz → aws-cdk-lib@2.163.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2/__init__.py +7 -7
- aws_cdk/aws_appflow/__init__.py +30 -16
- aws_cdk/aws_appsync/__init__.py +11 -21
- aws_cdk/aws_autoscaling/__init__.py +123 -0
- aws_cdk/aws_b2bi/__init__.py +83 -57
- aws_cdk/aws_cloudformation/__init__.py +5 -7
- aws_cdk/aws_codebuild/__init__.py +19 -40
- aws_cdk/aws_codepipeline/__init__.py +88 -7
- aws_cdk/aws_cognito/__init__.py +282 -168
- aws_cdk/aws_dms/__init__.py +1076 -117
- aws_cdk/aws_docdb/__init__.py +19 -13
- aws_cdk/aws_dynamodb/__init__.py +43 -22
- aws_cdk/aws_ec2/__init__.py +1213 -38
- aws_cdk/aws_ecs/__init__.py +187 -18
- aws_cdk/aws_ecs_patterns/__init__.py +189 -27
- aws_cdk/aws_efs/__init__.py +56 -37
- aws_cdk/aws_eks/__init__.py +6 -2
- aws_cdk/aws_elasticache/__init__.py +118 -118
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +21 -1
- aws_cdk/aws_emr/__init__.py +124 -57
- aws_cdk/aws_events/__init__.py +40 -0
- aws_cdk/aws_fms/__init__.py +757 -8
- aws_cdk/aws_fsx/__init__.py +245 -10
- aws_cdk/aws_gamelift/__init__.py +121 -0
- aws_cdk/aws_glue/__init__.py +344 -61
- aws_cdk/aws_iam/__init__.py +44 -0
- aws_cdk/aws_identitystore/__init__.py +4 -2
- aws_cdk/aws_iot/__init__.py +40 -12
- aws_cdk/aws_kinesis/__init__.py +239 -0
- aws_cdk/aws_kms/__init__.py +92 -3
- aws_cdk/aws_lambda/__init__.py +2 -2
- aws_cdk/aws_mediapackagev2/__init__.py +26 -10
- aws_cdk/aws_memorydb/__init__.py +7 -7
- aws_cdk/aws_networkfirewall/__init__.py +89 -0
- aws_cdk/aws_qbusiness/__init__.py +51 -7
- aws_cdk/aws_quicksight/__init__.py +221 -87
- aws_cdk/aws_rds/__init__.py +376 -75
- aws_cdk/aws_redshift/__init__.py +493 -13
- aws_cdk/aws_route53profiles/__init__.py +4 -2
- aws_cdk/aws_route53resolver/__init__.py +26 -60
- aws_cdk/aws_s3/__init__.py +104 -4
- aws_cdk/aws_s3express/__init__.py +73 -13
- aws_cdk/aws_s3outposts/__init__.py +21 -12
- aws_cdk/aws_sagemaker/__init__.py +4 -44
- aws_cdk/aws_ssmquicksetup/__init__.py +2 -2
- aws_cdk/aws_stepfunctions/__init__.py +529 -156
- aws_cdk/aws_transfer/__init__.py +15 -4
- aws_cdk/aws_waf/__init__.py +11 -11
- aws_cdk/aws_wafregional/__init__.py +12 -12
- aws_cdk/aws_wisdom/__init__.py +710 -5
- {aws_cdk_lib-2.162.1.dist-info → aws_cdk_lib-2.163.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.162.1.dist-info → aws_cdk_lib-2.163.0.dist-info}/RECORD +59 -59
- {aws_cdk_lib-2.162.1.dist-info → aws_cdk_lib-2.163.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.162.1.dist-info → aws_cdk_lib-2.163.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.162.1.dist-info → aws_cdk_lib-2.163.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.162.1.dist-info → aws_cdk_lib-2.163.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_wisdom/__init__.py
CHANGED
|
@@ -64,11 +64,602 @@ from .. import (
|
|
|
64
64
|
IInspectable as _IInspectable_c2943556,
|
|
65
65
|
IResolvable as _IResolvable_da3f097b,
|
|
66
66
|
ITaggable as _ITaggable_36806126,
|
|
67
|
+
ITaggableV2 as _ITaggableV2_4e6798f8,
|
|
67
68
|
TagManager as _TagManager_0a598cb3,
|
|
68
69
|
TreeInspector as _TreeInspector_488e0dd5,
|
|
69
70
|
)
|
|
70
71
|
|
|
71
72
|
|
|
73
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
74
|
+
class CfnAIPrompt(
|
|
75
|
+
_CfnResource_9df397a6,
|
|
76
|
+
metaclass=jsii.JSIIMeta,
|
|
77
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIPrompt",
|
|
78
|
+
):
|
|
79
|
+
'''Creates an Amazon Q in Connect AI Prompt.
|
|
80
|
+
|
|
81
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html
|
|
82
|
+
:cloudformationResource: AWS::Wisdom::AIPrompt
|
|
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_aIPrompt = wisdom.CfnAIPrompt(self, "MyCfnAIPrompt",
|
|
92
|
+
api_format="apiFormat",
|
|
93
|
+
model_id="modelId",
|
|
94
|
+
template_configuration=wisdom.CfnAIPrompt.AIPromptTemplateConfigurationProperty(
|
|
95
|
+
text_full_ai_prompt_edit_template_configuration=wisdom.CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty(
|
|
96
|
+
text="text"
|
|
97
|
+
)
|
|
98
|
+
),
|
|
99
|
+
template_type="templateType",
|
|
100
|
+
type="type",
|
|
101
|
+
|
|
102
|
+
# the properties below are optional
|
|
103
|
+
assistant_id="assistantId",
|
|
104
|
+
description="description",
|
|
105
|
+
name="name",
|
|
106
|
+
tags={
|
|
107
|
+
"tags_key": "tags"
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
'''
|
|
111
|
+
|
|
112
|
+
def __init__(
|
|
113
|
+
self,
|
|
114
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
115
|
+
id: builtins.str,
|
|
116
|
+
*,
|
|
117
|
+
api_format: builtins.str,
|
|
118
|
+
model_id: builtins.str,
|
|
119
|
+
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIPrompt.AIPromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
120
|
+
template_type: builtins.str,
|
|
121
|
+
type: builtins.str,
|
|
122
|
+
assistant_id: typing.Optional[builtins.str] = None,
|
|
123
|
+
description: typing.Optional[builtins.str] = None,
|
|
124
|
+
name: typing.Optional[builtins.str] = None,
|
|
125
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
126
|
+
) -> None:
|
|
127
|
+
'''
|
|
128
|
+
:param scope: Scope in which this resource is defined.
|
|
129
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
130
|
+
:param api_format: The API format used for this AI Prompt.
|
|
131
|
+
:param model_id: The identifier of the model used for this AI Prompt. Model Ids supported are: ``CLAUDE_3_HAIKU_20240307_V1`` .
|
|
132
|
+
:param template_configuration: The configuration of the prompt template for this AI Prompt.
|
|
133
|
+
:param template_type: The type of the prompt template for this AI Prompt.
|
|
134
|
+
:param type: The type of this AI Prompt.
|
|
135
|
+
: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.
|
|
136
|
+
:param description: The description of the AI Prompt.
|
|
137
|
+
:param name: The name of the AI Prompt.
|
|
138
|
+
:param tags: The tags used to organize, track, or control access for this resource.
|
|
139
|
+
'''
|
|
140
|
+
if __debug__:
|
|
141
|
+
type_hints = typing.get_type_hints(_typecheckingstub__48a265f7ec519ced4028dd8e69d5a1fe8ef89d36b11d693c968f74c8be6bb9df)
|
|
142
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
143
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
144
|
+
props = CfnAIPromptProps(
|
|
145
|
+
api_format=api_format,
|
|
146
|
+
model_id=model_id,
|
|
147
|
+
template_configuration=template_configuration,
|
|
148
|
+
template_type=template_type,
|
|
149
|
+
type=type,
|
|
150
|
+
assistant_id=assistant_id,
|
|
151
|
+
description=description,
|
|
152
|
+
name=name,
|
|
153
|
+
tags=tags,
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
157
|
+
|
|
158
|
+
@jsii.member(jsii_name="inspect")
|
|
159
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
160
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
161
|
+
|
|
162
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
163
|
+
'''
|
|
164
|
+
if __debug__:
|
|
165
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7567e2bb6113fabf7ae624801bcdbbfa2507650c0fcedb4572ac328601553fcc)
|
|
166
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
167
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
168
|
+
|
|
169
|
+
@jsii.member(jsii_name="renderProperties")
|
|
170
|
+
def _render_properties(
|
|
171
|
+
self,
|
|
172
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
173
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
174
|
+
'''
|
|
175
|
+
:param props: -
|
|
176
|
+
'''
|
|
177
|
+
if __debug__:
|
|
178
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8c65608208361b5449f96e9e897202e481d956b960bbccf8366c60dac3e4bd70)
|
|
179
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
180
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
181
|
+
|
|
182
|
+
@jsii.python.classproperty
|
|
183
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
184
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
185
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
186
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
187
|
+
|
|
188
|
+
@builtins.property
|
|
189
|
+
@jsii.member(jsii_name="attrAiPromptArn")
|
|
190
|
+
def attr_ai_prompt_arn(self) -> builtins.str:
|
|
191
|
+
'''The Amazon Resource Name (ARN) of the AI Prompt.
|
|
192
|
+
|
|
193
|
+
:cloudformationAttribute: AIPromptArn
|
|
194
|
+
'''
|
|
195
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiPromptArn"))
|
|
196
|
+
|
|
197
|
+
@builtins.property
|
|
198
|
+
@jsii.member(jsii_name="attrAiPromptId")
|
|
199
|
+
def attr_ai_prompt_id(self) -> builtins.str:
|
|
200
|
+
'''The identifier of the Amazon Q in Connect AI prompt.
|
|
201
|
+
|
|
202
|
+
:cloudformationAttribute: AIPromptId
|
|
203
|
+
'''
|
|
204
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAiPromptId"))
|
|
205
|
+
|
|
206
|
+
@builtins.property
|
|
207
|
+
@jsii.member(jsii_name="attrAssistantArn")
|
|
208
|
+
def attr_assistant_arn(self) -> builtins.str:
|
|
209
|
+
'''The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
|
|
210
|
+
|
|
211
|
+
:cloudformationAttribute: AssistantArn
|
|
212
|
+
'''
|
|
213
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAssistantArn"))
|
|
214
|
+
|
|
215
|
+
@builtins.property
|
|
216
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
217
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
218
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
219
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
220
|
+
|
|
221
|
+
@builtins.property
|
|
222
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
223
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
224
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
225
|
+
|
|
226
|
+
@builtins.property
|
|
227
|
+
@jsii.member(jsii_name="apiFormat")
|
|
228
|
+
def api_format(self) -> builtins.str:
|
|
229
|
+
'''The API format used for this AI Prompt.'''
|
|
230
|
+
return typing.cast(builtins.str, jsii.get(self, "apiFormat"))
|
|
231
|
+
|
|
232
|
+
@api_format.setter
|
|
233
|
+
def api_format(self, value: builtins.str) -> None:
|
|
234
|
+
if __debug__:
|
|
235
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6643cec138a765effc7d182e3db5b09b1ddb19205b800c1f517cbed5e73488b5)
|
|
236
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
237
|
+
jsii.set(self, "apiFormat", value) # pyright: ignore[reportArgumentType]
|
|
238
|
+
|
|
239
|
+
@builtins.property
|
|
240
|
+
@jsii.member(jsii_name="modelId")
|
|
241
|
+
def model_id(self) -> builtins.str:
|
|
242
|
+
'''The identifier of the model used for this AI Prompt.'''
|
|
243
|
+
return typing.cast(builtins.str, jsii.get(self, "modelId"))
|
|
244
|
+
|
|
245
|
+
@model_id.setter
|
|
246
|
+
def model_id(self, value: builtins.str) -> None:
|
|
247
|
+
if __debug__:
|
|
248
|
+
type_hints = typing.get_type_hints(_typecheckingstub__be2ea2c4f381a43b0574cf9f6fdcace2ba70655e5f3ebd78fd5e8c4541b05982)
|
|
249
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
250
|
+
jsii.set(self, "modelId", value) # pyright: ignore[reportArgumentType]
|
|
251
|
+
|
|
252
|
+
@builtins.property
|
|
253
|
+
@jsii.member(jsii_name="templateConfiguration")
|
|
254
|
+
def template_configuration(
|
|
255
|
+
self,
|
|
256
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnAIPrompt.AIPromptTemplateConfigurationProperty"]:
|
|
257
|
+
'''The configuration of the prompt template for this AI Prompt.'''
|
|
258
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnAIPrompt.AIPromptTemplateConfigurationProperty"], jsii.get(self, "templateConfiguration"))
|
|
259
|
+
|
|
260
|
+
@template_configuration.setter
|
|
261
|
+
def template_configuration(
|
|
262
|
+
self,
|
|
263
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnAIPrompt.AIPromptTemplateConfigurationProperty"],
|
|
264
|
+
) -> None:
|
|
265
|
+
if __debug__:
|
|
266
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5419aa0c5422844ff34f9fc9a194021532fa6ada449722bb2aa4b846530445ba)
|
|
267
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
268
|
+
jsii.set(self, "templateConfiguration", value) # pyright: ignore[reportArgumentType]
|
|
269
|
+
|
|
270
|
+
@builtins.property
|
|
271
|
+
@jsii.member(jsii_name="templateType")
|
|
272
|
+
def template_type(self) -> builtins.str:
|
|
273
|
+
'''The type of the prompt template for this AI Prompt.'''
|
|
274
|
+
return typing.cast(builtins.str, jsii.get(self, "templateType"))
|
|
275
|
+
|
|
276
|
+
@template_type.setter
|
|
277
|
+
def template_type(self, value: builtins.str) -> None:
|
|
278
|
+
if __debug__:
|
|
279
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2e4b3aeb8d77c711927acf1f94798cc7b4e483f8fc8bc95ae0b322f2c18a51f0)
|
|
280
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
281
|
+
jsii.set(self, "templateType", value) # pyright: ignore[reportArgumentType]
|
|
282
|
+
|
|
283
|
+
@builtins.property
|
|
284
|
+
@jsii.member(jsii_name="type")
|
|
285
|
+
def type(self) -> builtins.str:
|
|
286
|
+
'''The type of this AI Prompt.'''
|
|
287
|
+
return typing.cast(builtins.str, jsii.get(self, "type"))
|
|
288
|
+
|
|
289
|
+
@type.setter
|
|
290
|
+
def type(self, value: builtins.str) -> None:
|
|
291
|
+
if __debug__:
|
|
292
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e3f45400801eabea6672075f9e78a389daf48244d79b0b5601339aad9840939b)
|
|
293
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
294
|
+
jsii.set(self, "type", value) # pyright: ignore[reportArgumentType]
|
|
295
|
+
|
|
296
|
+
@builtins.property
|
|
297
|
+
@jsii.member(jsii_name="assistantId")
|
|
298
|
+
def assistant_id(self) -> typing.Optional[builtins.str]:
|
|
299
|
+
'''The identifier of the Amazon Q in Connect assistant.'''
|
|
300
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "assistantId"))
|
|
301
|
+
|
|
302
|
+
@assistant_id.setter
|
|
303
|
+
def assistant_id(self, value: typing.Optional[builtins.str]) -> None:
|
|
304
|
+
if __debug__:
|
|
305
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5634dda4bc6094fc31dbde0ffceab32283f49a381e6e026ed12c76738e89fe5e)
|
|
306
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
307
|
+
jsii.set(self, "assistantId", value) # pyright: ignore[reportArgumentType]
|
|
308
|
+
|
|
309
|
+
@builtins.property
|
|
310
|
+
@jsii.member(jsii_name="description")
|
|
311
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
312
|
+
'''The description of the AI Prompt.'''
|
|
313
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
314
|
+
|
|
315
|
+
@description.setter
|
|
316
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
317
|
+
if __debug__:
|
|
318
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4aab971aeb8e18c48f506a9f2350fb427745d11ff1d792a38763843c7c52200b)
|
|
319
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
320
|
+
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
321
|
+
|
|
322
|
+
@builtins.property
|
|
323
|
+
@jsii.member(jsii_name="name")
|
|
324
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
325
|
+
'''The name of the AI Prompt.'''
|
|
326
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
|
|
327
|
+
|
|
328
|
+
@name.setter
|
|
329
|
+
def name(self, value: typing.Optional[builtins.str]) -> None:
|
|
330
|
+
if __debug__:
|
|
331
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8c8237463d9724c409122f49c9b69b5a1e0f429714ecc37326da2fb2d24ac916)
|
|
332
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
333
|
+
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
334
|
+
|
|
335
|
+
@builtins.property
|
|
336
|
+
@jsii.member(jsii_name="tags")
|
|
337
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
338
|
+
'''The tags used to organize, track, or control access for this resource.'''
|
|
339
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
340
|
+
|
|
341
|
+
@tags.setter
|
|
342
|
+
def tags(
|
|
343
|
+
self,
|
|
344
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
345
|
+
) -> None:
|
|
346
|
+
if __debug__:
|
|
347
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ebc135e5b323c7d3a33dd614d94d6bb8425982f46dc4aafee23df90fac59a460)
|
|
348
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
349
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
350
|
+
|
|
351
|
+
@jsii.data_type(
|
|
352
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIPrompt.AIPromptTemplateConfigurationProperty",
|
|
353
|
+
jsii_struct_bases=[],
|
|
354
|
+
name_mapping={
|
|
355
|
+
"text_full_ai_prompt_edit_template_configuration": "textFullAiPromptEditTemplateConfiguration",
|
|
356
|
+
},
|
|
357
|
+
)
|
|
358
|
+
class AIPromptTemplateConfigurationProperty:
|
|
359
|
+
def __init__(
|
|
360
|
+
self,
|
|
361
|
+
*,
|
|
362
|
+
text_full_ai_prompt_edit_template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
363
|
+
) -> None:
|
|
364
|
+
'''
|
|
365
|
+
:param text_full_ai_prompt_edit_template_configuration:
|
|
366
|
+
|
|
367
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiprompt-aiprompttemplateconfiguration.html
|
|
368
|
+
:exampleMetadata: fixture=_generated
|
|
369
|
+
|
|
370
|
+
Example::
|
|
371
|
+
|
|
372
|
+
# The code below shows an example of how to instantiate this type.
|
|
373
|
+
# The values are placeholders you should change.
|
|
374
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
375
|
+
|
|
376
|
+
a_iPrompt_template_configuration_property = wisdom.CfnAIPrompt.AIPromptTemplateConfigurationProperty(
|
|
377
|
+
text_full_ai_prompt_edit_template_configuration=wisdom.CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty(
|
|
378
|
+
text="text"
|
|
379
|
+
)
|
|
380
|
+
)
|
|
381
|
+
'''
|
|
382
|
+
if __debug__:
|
|
383
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a5c009da191a8948caab2f589b801cb2b5b6bd6f17d15c830bfcc3eac735974e)
|
|
384
|
+
check_type(argname="argument text_full_ai_prompt_edit_template_configuration", value=text_full_ai_prompt_edit_template_configuration, expected_type=type_hints["text_full_ai_prompt_edit_template_configuration"])
|
|
385
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
386
|
+
"text_full_ai_prompt_edit_template_configuration": text_full_ai_prompt_edit_template_configuration,
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@builtins.property
|
|
390
|
+
def text_full_ai_prompt_edit_template_configuration(
|
|
391
|
+
self,
|
|
392
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty"]:
|
|
393
|
+
'''
|
|
394
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiprompt-aiprompttemplateconfiguration.html#cfn-wisdom-aiprompt-aiprompttemplateconfiguration-textfullaipromptedittemplateconfiguration
|
|
395
|
+
'''
|
|
396
|
+
result = self._values.get("text_full_ai_prompt_edit_template_configuration")
|
|
397
|
+
assert result is not None, "Required property 'text_full_ai_prompt_edit_template_configuration' is missing"
|
|
398
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty"], result)
|
|
399
|
+
|
|
400
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
401
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
402
|
+
|
|
403
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
404
|
+
return not (rhs == self)
|
|
405
|
+
|
|
406
|
+
def __repr__(self) -> str:
|
|
407
|
+
return "AIPromptTemplateConfigurationProperty(%s)" % ", ".join(
|
|
408
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
@jsii.data_type(
|
|
412
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty",
|
|
413
|
+
jsii_struct_bases=[],
|
|
414
|
+
name_mapping={"text": "text"},
|
|
415
|
+
)
|
|
416
|
+
class TextFullAIPromptEditTemplateConfigurationProperty:
|
|
417
|
+
def __init__(self, *, text: builtins.str) -> None:
|
|
418
|
+
'''
|
|
419
|
+
:param text:
|
|
420
|
+
|
|
421
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiprompt-textfullaipromptedittemplateconfiguration.html
|
|
422
|
+
:exampleMetadata: fixture=_generated
|
|
423
|
+
|
|
424
|
+
Example::
|
|
425
|
+
|
|
426
|
+
# The code below shows an example of how to instantiate this type.
|
|
427
|
+
# The values are placeholders you should change.
|
|
428
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
429
|
+
|
|
430
|
+
text_full_aIPrompt_edit_template_configuration_property = wisdom.CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty(
|
|
431
|
+
text="text"
|
|
432
|
+
)
|
|
433
|
+
'''
|
|
434
|
+
if __debug__:
|
|
435
|
+
type_hints = typing.get_type_hints(_typecheckingstub__aab519c6a13d7d17f031944b9ddc67f7d24074f5ba48e4816f1ba2dfd7883ffc)
|
|
436
|
+
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
437
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
438
|
+
"text": text,
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
@builtins.property
|
|
442
|
+
def text(self) -> builtins.str:
|
|
443
|
+
'''
|
|
444
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiprompt-textfullaipromptedittemplateconfiguration.html#cfn-wisdom-aiprompt-textfullaipromptedittemplateconfiguration-text
|
|
445
|
+
'''
|
|
446
|
+
result = self._values.get("text")
|
|
447
|
+
assert result is not None, "Required property 'text' is missing"
|
|
448
|
+
return typing.cast(builtins.str, result)
|
|
449
|
+
|
|
450
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
451
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
452
|
+
|
|
453
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
454
|
+
return not (rhs == self)
|
|
455
|
+
|
|
456
|
+
def __repr__(self) -> str:
|
|
457
|
+
return "TextFullAIPromptEditTemplateConfigurationProperty(%s)" % ", ".join(
|
|
458
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
459
|
+
)
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
@jsii.data_type(
|
|
463
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIPromptProps",
|
|
464
|
+
jsii_struct_bases=[],
|
|
465
|
+
name_mapping={
|
|
466
|
+
"api_format": "apiFormat",
|
|
467
|
+
"model_id": "modelId",
|
|
468
|
+
"template_configuration": "templateConfiguration",
|
|
469
|
+
"template_type": "templateType",
|
|
470
|
+
"type": "type",
|
|
471
|
+
"assistant_id": "assistantId",
|
|
472
|
+
"description": "description",
|
|
473
|
+
"name": "name",
|
|
474
|
+
"tags": "tags",
|
|
475
|
+
},
|
|
476
|
+
)
|
|
477
|
+
class CfnAIPromptProps:
|
|
478
|
+
def __init__(
|
|
479
|
+
self,
|
|
480
|
+
*,
|
|
481
|
+
api_format: builtins.str,
|
|
482
|
+
model_id: builtins.str,
|
|
483
|
+
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIPrompt.AIPromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
484
|
+
template_type: builtins.str,
|
|
485
|
+
type: builtins.str,
|
|
486
|
+
assistant_id: typing.Optional[builtins.str] = None,
|
|
487
|
+
description: typing.Optional[builtins.str] = None,
|
|
488
|
+
name: typing.Optional[builtins.str] = None,
|
|
489
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
490
|
+
) -> None:
|
|
491
|
+
'''Properties for defining a ``CfnAIPrompt``.
|
|
492
|
+
|
|
493
|
+
:param api_format: The API format used for this AI Prompt.
|
|
494
|
+
:param model_id: The identifier of the model used for this AI Prompt. Model Ids supported are: ``CLAUDE_3_HAIKU_20240307_V1`` .
|
|
495
|
+
:param template_configuration: The configuration of the prompt template for this AI Prompt.
|
|
496
|
+
:param template_type: The type of the prompt template for this AI Prompt.
|
|
497
|
+
:param type: The type of this AI Prompt.
|
|
498
|
+
: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.
|
|
499
|
+
:param description: The description of the AI Prompt.
|
|
500
|
+
:param name: The name of the AI Prompt.
|
|
501
|
+
:param tags: The tags used to organize, track, or control access for this resource.
|
|
502
|
+
|
|
503
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html
|
|
504
|
+
:exampleMetadata: fixture=_generated
|
|
505
|
+
|
|
506
|
+
Example::
|
|
507
|
+
|
|
508
|
+
# The code below shows an example of how to instantiate this type.
|
|
509
|
+
# The values are placeholders you should change.
|
|
510
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
511
|
+
|
|
512
|
+
cfn_aIPrompt_props = wisdom.CfnAIPromptProps(
|
|
513
|
+
api_format="apiFormat",
|
|
514
|
+
model_id="modelId",
|
|
515
|
+
template_configuration=wisdom.CfnAIPrompt.AIPromptTemplateConfigurationProperty(
|
|
516
|
+
text_full_ai_prompt_edit_template_configuration=wisdom.CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty(
|
|
517
|
+
text="text"
|
|
518
|
+
)
|
|
519
|
+
),
|
|
520
|
+
template_type="templateType",
|
|
521
|
+
type="type",
|
|
522
|
+
|
|
523
|
+
# the properties below are optional
|
|
524
|
+
assistant_id="assistantId",
|
|
525
|
+
description="description",
|
|
526
|
+
name="name",
|
|
527
|
+
tags={
|
|
528
|
+
"tags_key": "tags"
|
|
529
|
+
}
|
|
530
|
+
)
|
|
531
|
+
'''
|
|
532
|
+
if __debug__:
|
|
533
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3a55de2153828f44950073a28af3416601dc1f09105d3fa9d8f1ec243b3822d3)
|
|
534
|
+
check_type(argname="argument api_format", value=api_format, expected_type=type_hints["api_format"])
|
|
535
|
+
check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
|
|
536
|
+
check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
|
|
537
|
+
check_type(argname="argument template_type", value=template_type, expected_type=type_hints["template_type"])
|
|
538
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
539
|
+
check_type(argname="argument assistant_id", value=assistant_id, expected_type=type_hints["assistant_id"])
|
|
540
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
541
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
542
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
543
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
544
|
+
"api_format": api_format,
|
|
545
|
+
"model_id": model_id,
|
|
546
|
+
"template_configuration": template_configuration,
|
|
547
|
+
"template_type": template_type,
|
|
548
|
+
"type": type,
|
|
549
|
+
}
|
|
550
|
+
if assistant_id is not None:
|
|
551
|
+
self._values["assistant_id"] = assistant_id
|
|
552
|
+
if description is not None:
|
|
553
|
+
self._values["description"] = description
|
|
554
|
+
if name is not None:
|
|
555
|
+
self._values["name"] = name
|
|
556
|
+
if tags is not None:
|
|
557
|
+
self._values["tags"] = tags
|
|
558
|
+
|
|
559
|
+
@builtins.property
|
|
560
|
+
def api_format(self) -> builtins.str:
|
|
561
|
+
'''The API format used for this AI Prompt.
|
|
562
|
+
|
|
563
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-apiformat
|
|
564
|
+
'''
|
|
565
|
+
result = self._values.get("api_format")
|
|
566
|
+
assert result is not None, "Required property 'api_format' is missing"
|
|
567
|
+
return typing.cast(builtins.str, result)
|
|
568
|
+
|
|
569
|
+
@builtins.property
|
|
570
|
+
def model_id(self) -> builtins.str:
|
|
571
|
+
'''The identifier of the model used for this AI Prompt.
|
|
572
|
+
|
|
573
|
+
Model Ids supported are: ``CLAUDE_3_HAIKU_20240307_V1`` .
|
|
574
|
+
|
|
575
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-modelid
|
|
576
|
+
'''
|
|
577
|
+
result = self._values.get("model_id")
|
|
578
|
+
assert result is not None, "Required property 'model_id' is missing"
|
|
579
|
+
return typing.cast(builtins.str, result)
|
|
580
|
+
|
|
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.
|
|
586
|
+
|
|
587
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-templateconfiguration
|
|
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)
|
|
592
|
+
|
|
593
|
+
@builtins.property
|
|
594
|
+
def template_type(self) -> builtins.str:
|
|
595
|
+
'''The type of the prompt template for this AI Prompt.
|
|
596
|
+
|
|
597
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html#cfn-wisdom-aiprompt-templatetype
|
|
598
|
+
'''
|
|
599
|
+
result = self._values.get("template_type")
|
|
600
|
+
assert result is not None, "Required property 'template_type' is missing"
|
|
601
|
+
return typing.cast(builtins.str, result)
|
|
602
|
+
|
|
603
|
+
@builtins.property
|
|
604
|
+
def type(self) -> builtins.str:
|
|
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
|
|
608
|
+
'''
|
|
609
|
+
result = self._values.get("type")
|
|
610
|
+
assert result is not None, "Required property 'type' is missing"
|
|
611
|
+
return typing.cast(builtins.str, result)
|
|
612
|
+
|
|
613
|
+
@builtins.property
|
|
614
|
+
def assistant_id(self) -> typing.Optional[builtins.str]:
|
|
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
|
|
620
|
+
'''
|
|
621
|
+
result = self._values.get("assistant_id")
|
|
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
|
|
629
|
+
'''
|
|
630
|
+
result = self._values.get("description")
|
|
631
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
632
|
+
|
|
633
|
+
@builtins.property
|
|
634
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
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
|
|
638
|
+
'''
|
|
639
|
+
result = self._values.get("name")
|
|
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
|
|
647
|
+
'''
|
|
648
|
+
result = self._values.get("tags")
|
|
649
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
650
|
+
|
|
651
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
652
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
653
|
+
|
|
654
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
655
|
+
return not (rhs == self)
|
|
656
|
+
|
|
657
|
+
def __repr__(self) -> str:
|
|
658
|
+
return "CfnAIPromptProps(%s)" % ", ".join(
|
|
659
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
660
|
+
)
|
|
661
|
+
|
|
662
|
+
|
|
72
663
|
@jsii.implements(_IInspectable_c2943556, _ITaggable_36806126)
|
|
73
664
|
class CfnAssistant(
|
|
74
665
|
_CfnResource_9df397a6,
|
|
@@ -880,7 +1471,7 @@ class CfnKnowledgeBase(
|
|
|
880
1471
|
:param description: The description.
|
|
881
1472
|
:param rendering_configuration: Information about how to render the content.
|
|
882
1473
|
:param server_side_encryption_configuration: This customer managed key must have a policy that allows ``kms:CreateGrant`` and ``kms:DescribeKey`` permissions to the IAM identity using the key to invoke Wisdom. For more information about setting up a customer managed key for Wisdom, see `Enable Amazon Connect Wisdom for your instance <https://docs.aws.amazon.com/connect/latest/adminguide/enable-wisdom.html>`_ . For information about valid ID values, see `Key identifiers (KeyId) <https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id>`_ in the *AWS Key Management Service Developer Guide* .
|
|
883
|
-
:param source_configuration: The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
|
|
1474
|
+
:param source_configuration: The source of the knowledge base content. Only set this argument for EXTERNAL or Managed knowledge bases.
|
|
884
1475
|
:param tags: The tags used to organize, track, or control access for this resource.
|
|
885
1476
|
'''
|
|
886
1477
|
if __debug__:
|
|
@@ -1081,7 +1672,7 @@ class CfnKnowledgeBase(
|
|
|
1081
1672
|
) -> None:
|
|
1082
1673
|
'''Configuration information for Amazon AppIntegrations to automatically ingest content.
|
|
1083
1674
|
|
|
1084
|
-
:param app_integration_arn: The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content. - For `Salesforce <https://docs.aws.amazon.com/https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/sforce_api_objects_knowledge__kav.htm>`_ , your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least ``Id`` , ``ArticleNumber`` , ``VersionNumber`` , ``Title`` , ``PublishStatus`` , and ``IsDeleted`` as source fields. - For `ServiceNow <https://docs.aws.amazon.com/https://developer.servicenow.com/dev.do#!/reference/api/rome/rest/knowledge-management-api>`_ , your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least ``number`` , ``short_description`` , ``sys_mod_count`` , ``workflow_state`` , and ``active`` as source fields. - For `Zendesk <https://docs.aws.amazon.com/https://developer.zendesk.com/api-reference/help_center/help-center-api/articles/>`_ , your AppIntegrations DataIntegration must have an ObjectConfiguration if ``objectFields`` is not provided, including at least ``id`` , ``title`` , ``updated_at`` , and ``draft`` as source fields. - For `SharePoint <https://docs.aws.amazon.com/https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/sharepoint-net-server-csom-jsom-and-rest-api-index>`_ , your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among ``docx`` , ``pdf`` , ``html`` , ``htm`` , and ``txt`` . - For `Amazon S3 <https://docs.aws.amazon.com/
|
|
1675
|
+
:param app_integration_arn: The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content. - For `Salesforce <https://docs.aws.amazon.com/https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/sforce_api_objects_knowledge__kav.htm>`_ , your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least ``Id`` , ``ArticleNumber`` , ``VersionNumber`` , ``Title`` , ``PublishStatus`` , and ``IsDeleted`` as source fields. - For `ServiceNow <https://docs.aws.amazon.com/https://developer.servicenow.com/dev.do#!/reference/api/rome/rest/knowledge-management-api>`_ , your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least ``number`` , ``short_description`` , ``sys_mod_count`` , ``workflow_state`` , and ``active`` as source fields. - For `Zendesk <https://docs.aws.amazon.com/https://developer.zendesk.com/api-reference/help_center/help-center-api/articles/>`_ , your AppIntegrations DataIntegration must have an ObjectConfiguration if ``objectFields`` is not provided, including at least ``id`` , ``title`` , ``updated_at`` , and ``draft`` as source fields. - For `SharePoint <https://docs.aws.amazon.com/https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/sharepoint-net-server-csom-jsom-and-rest-api-index>`_ , your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among ``docx`` , ``pdf`` , ``html`` , ``htm`` , and ``txt`` . - For `Amazon S3 <https://docs.aws.amazon.com/s3/>`_ , the ObjectConfiguration and FileConfiguration of your AppIntegrations DataIntegration must be null. The ``SourceURI`` of your DataIntegration must use the following format: ``s3://your_s3_bucket_name`` . .. epigraph:: The bucket policy of the corresponding S3 bucket must allow the AWS principal ``app-integrations.amazonaws.com`` to perform ``s3:ListBucket`` , ``s3:GetObject`` , and ``s3:GetBucketLocation`` against the bucket.
|
|
1085
1676
|
:param object_fields: The fields from the source that are made available to your agents in Amazon Q in Connect. Optional if ObjectConfiguration is included in the provided DataIntegration. - For `Salesforce <https://docs.aws.amazon.com/https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/sforce_api_objects_knowledge__kav.htm>`_ , you must include at least ``Id`` , ``ArticleNumber`` , ``VersionNumber`` , ``Title`` , ``PublishStatus`` , and ``IsDeleted`` . - For `ServiceNow <https://docs.aws.amazon.com/https://developer.servicenow.com/dev.do#!/reference/api/rome/rest/knowledge-management-api>`_ , you must include at least ``number`` , ``short_description`` , ``sys_mod_count`` , ``workflow_state`` , and ``active`` . - For `Zendesk <https://docs.aws.amazon.com/https://developer.zendesk.com/api-reference/help_center/help-center-api/articles/>`_ , you must include at least ``id`` , ``title`` , ``updated_at`` , and ``draft`` . Make sure to include additional fields. These fields are indexed and used to source recommendations.
|
|
1086
1677
|
|
|
1087
1678
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-appintegrationsconfiguration.html
|
|
@@ -1118,7 +1709,7 @@ class CfnKnowledgeBase(
|
|
|
1118
1709
|
- For `ServiceNow <https://docs.aws.amazon.com/https://developer.servicenow.com/dev.do#!/reference/api/rome/rest/knowledge-management-api>`_ , your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least ``number`` , ``short_description`` , ``sys_mod_count`` , ``workflow_state`` , and ``active`` as source fields.
|
|
1119
1710
|
- For `Zendesk <https://docs.aws.amazon.com/https://developer.zendesk.com/api-reference/help_center/help-center-api/articles/>`_ , your AppIntegrations DataIntegration must have an ObjectConfiguration if ``objectFields`` is not provided, including at least ``id`` , ``title`` , ``updated_at`` , and ``draft`` as source fields.
|
|
1120
1711
|
- For `SharePoint <https://docs.aws.amazon.com/https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/sharepoint-net-server-csom-jsom-and-rest-api-index>`_ , your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among ``docx`` , ``pdf`` , ``html`` , ``htm`` , and ``txt`` .
|
|
1121
|
-
- For `Amazon S3 <https://docs.aws.amazon.com/
|
|
1712
|
+
- For `Amazon S3 <https://docs.aws.amazon.com/s3/>`_ , the ObjectConfiguration and FileConfiguration of your AppIntegrations DataIntegration must be null. The ``SourceURI`` of your DataIntegration must use the following format: ``s3://your_s3_bucket_name`` .
|
|
1122
1713
|
|
|
1123
1714
|
.. epigraph::
|
|
1124
1715
|
|
|
@@ -1372,7 +1963,7 @@ class CfnKnowledgeBaseProps:
|
|
|
1372
1963
|
:param description: The description.
|
|
1373
1964
|
:param rendering_configuration: Information about how to render the content.
|
|
1374
1965
|
:param server_side_encryption_configuration: This customer managed key must have a policy that allows ``kms:CreateGrant`` and ``kms:DescribeKey`` permissions to the IAM identity using the key to invoke Wisdom. For more information about setting up a customer managed key for Wisdom, see `Enable Amazon Connect Wisdom for your instance <https://docs.aws.amazon.com/connect/latest/adminguide/enable-wisdom.html>`_ . For information about valid ID values, see `Key identifiers (KeyId) <https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id>`_ in the *AWS Key Management Service Developer Guide* .
|
|
1375
|
-
:param source_configuration: The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
|
|
1966
|
+
:param source_configuration: The source of the knowledge base content. Only set this argument for EXTERNAL or Managed knowledge bases.
|
|
1376
1967
|
:param tags: The tags used to organize, track, or control access for this resource.
|
|
1377
1968
|
|
|
1378
1969
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html
|
|
@@ -1495,7 +2086,7 @@ class CfnKnowledgeBaseProps:
|
|
|
1495
2086
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.SourceConfigurationProperty]]:
|
|
1496
2087
|
'''The source of the knowledge base content.
|
|
1497
2088
|
|
|
1498
|
-
Only set this argument for EXTERNAL knowledge bases.
|
|
2089
|
+
Only set this argument for EXTERNAL or Managed knowledge bases.
|
|
1499
2090
|
|
|
1500
2091
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-sourceconfiguration
|
|
1501
2092
|
'''
|
|
@@ -1524,6 +2115,8 @@ class CfnKnowledgeBaseProps:
|
|
|
1524
2115
|
|
|
1525
2116
|
|
|
1526
2117
|
__all__ = [
|
|
2118
|
+
"CfnAIPrompt",
|
|
2119
|
+
"CfnAIPromptProps",
|
|
1527
2120
|
"CfnAssistant",
|
|
1528
2121
|
"CfnAssistantAssociation",
|
|
1529
2122
|
"CfnAssistantAssociationProps",
|
|
@@ -1534,6 +2127,118 @@ __all__ = [
|
|
|
1534
2127
|
|
|
1535
2128
|
publication.publish()
|
|
1536
2129
|
|
|
2130
|
+
def _typecheckingstub__48a265f7ec519ced4028dd8e69d5a1fe8ef89d36b11d693c968f74c8be6bb9df(
|
|
2131
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
2132
|
+
id: builtins.str,
|
|
2133
|
+
*,
|
|
2134
|
+
api_format: builtins.str,
|
|
2135
|
+
model_id: builtins.str,
|
|
2136
|
+
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIPrompt.AIPromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
2137
|
+
template_type: builtins.str,
|
|
2138
|
+
type: builtins.str,
|
|
2139
|
+
assistant_id: typing.Optional[builtins.str] = None,
|
|
2140
|
+
description: typing.Optional[builtins.str] = None,
|
|
2141
|
+
name: typing.Optional[builtins.str] = None,
|
|
2142
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2143
|
+
) -> None:
|
|
2144
|
+
"""Type checking stubs"""
|
|
2145
|
+
pass
|
|
2146
|
+
|
|
2147
|
+
def _typecheckingstub__7567e2bb6113fabf7ae624801bcdbbfa2507650c0fcedb4572ac328601553fcc(
|
|
2148
|
+
inspector: _TreeInspector_488e0dd5,
|
|
2149
|
+
) -> None:
|
|
2150
|
+
"""Type checking stubs"""
|
|
2151
|
+
pass
|
|
2152
|
+
|
|
2153
|
+
def _typecheckingstub__8c65608208361b5449f96e9e897202e481d956b960bbccf8366c60dac3e4bd70(
|
|
2154
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
2155
|
+
) -> None:
|
|
2156
|
+
"""Type checking stubs"""
|
|
2157
|
+
pass
|
|
2158
|
+
|
|
2159
|
+
def _typecheckingstub__6643cec138a765effc7d182e3db5b09b1ddb19205b800c1f517cbed5e73488b5(
|
|
2160
|
+
value: builtins.str,
|
|
2161
|
+
) -> None:
|
|
2162
|
+
"""Type checking stubs"""
|
|
2163
|
+
pass
|
|
2164
|
+
|
|
2165
|
+
def _typecheckingstub__be2ea2c4f381a43b0574cf9f6fdcace2ba70655e5f3ebd78fd5e8c4541b05982(
|
|
2166
|
+
value: builtins.str,
|
|
2167
|
+
) -> None:
|
|
2168
|
+
"""Type checking stubs"""
|
|
2169
|
+
pass
|
|
2170
|
+
|
|
2171
|
+
def _typecheckingstub__5419aa0c5422844ff34f9fc9a194021532fa6ada449722bb2aa4b846530445ba(
|
|
2172
|
+
value: typing.Union[_IResolvable_da3f097b, CfnAIPrompt.AIPromptTemplateConfigurationProperty],
|
|
2173
|
+
) -> None:
|
|
2174
|
+
"""Type checking stubs"""
|
|
2175
|
+
pass
|
|
2176
|
+
|
|
2177
|
+
def _typecheckingstub__2e4b3aeb8d77c711927acf1f94798cc7b4e483f8fc8bc95ae0b322f2c18a51f0(
|
|
2178
|
+
value: builtins.str,
|
|
2179
|
+
) -> None:
|
|
2180
|
+
"""Type checking stubs"""
|
|
2181
|
+
pass
|
|
2182
|
+
|
|
2183
|
+
def _typecheckingstub__e3f45400801eabea6672075f9e78a389daf48244d79b0b5601339aad9840939b(
|
|
2184
|
+
value: builtins.str,
|
|
2185
|
+
) -> None:
|
|
2186
|
+
"""Type checking stubs"""
|
|
2187
|
+
pass
|
|
2188
|
+
|
|
2189
|
+
def _typecheckingstub__5634dda4bc6094fc31dbde0ffceab32283f49a381e6e026ed12c76738e89fe5e(
|
|
2190
|
+
value: typing.Optional[builtins.str],
|
|
2191
|
+
) -> None:
|
|
2192
|
+
"""Type checking stubs"""
|
|
2193
|
+
pass
|
|
2194
|
+
|
|
2195
|
+
def _typecheckingstub__4aab971aeb8e18c48f506a9f2350fb427745d11ff1d792a38763843c7c52200b(
|
|
2196
|
+
value: typing.Optional[builtins.str],
|
|
2197
|
+
) -> None:
|
|
2198
|
+
"""Type checking stubs"""
|
|
2199
|
+
pass
|
|
2200
|
+
|
|
2201
|
+
def _typecheckingstub__8c8237463d9724c409122f49c9b69b5a1e0f429714ecc37326da2fb2d24ac916(
|
|
2202
|
+
value: typing.Optional[builtins.str],
|
|
2203
|
+
) -> None:
|
|
2204
|
+
"""Type checking stubs"""
|
|
2205
|
+
pass
|
|
2206
|
+
|
|
2207
|
+
def _typecheckingstub__ebc135e5b323c7d3a33dd614d94d6bb8425982f46dc4aafee23df90fac59a460(
|
|
2208
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
2209
|
+
) -> None:
|
|
2210
|
+
"""Type checking stubs"""
|
|
2211
|
+
pass
|
|
2212
|
+
|
|
2213
|
+
def _typecheckingstub__a5c009da191a8948caab2f589b801cb2b5b6bd6f17d15c830bfcc3eac735974e(
|
|
2214
|
+
*,
|
|
2215
|
+
text_full_ai_prompt_edit_template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
2216
|
+
) -> None:
|
|
2217
|
+
"""Type checking stubs"""
|
|
2218
|
+
pass
|
|
2219
|
+
|
|
2220
|
+
def _typecheckingstub__aab519c6a13d7d17f031944b9ddc67f7d24074f5ba48e4816f1ba2dfd7883ffc(
|
|
2221
|
+
*,
|
|
2222
|
+
text: builtins.str,
|
|
2223
|
+
) -> None:
|
|
2224
|
+
"""Type checking stubs"""
|
|
2225
|
+
pass
|
|
2226
|
+
|
|
2227
|
+
def _typecheckingstub__3a55de2153828f44950073a28af3416601dc1f09105d3fa9d8f1ec243b3822d3(
|
|
2228
|
+
*,
|
|
2229
|
+
api_format: builtins.str,
|
|
2230
|
+
model_id: builtins.str,
|
|
2231
|
+
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIPrompt.AIPromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
2232
|
+
template_type: builtins.str,
|
|
2233
|
+
type: builtins.str,
|
|
2234
|
+
assistant_id: typing.Optional[builtins.str] = None,
|
|
2235
|
+
description: typing.Optional[builtins.str] = None,
|
|
2236
|
+
name: typing.Optional[builtins.str] = None,
|
|
2237
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2238
|
+
) -> None:
|
|
2239
|
+
"""Type checking stubs"""
|
|
2240
|
+
pass
|
|
2241
|
+
|
|
1537
2242
|
def _typecheckingstub__8078b7e28a17a68ab6f3d362e7de3af6b6867207690b2b344e35797cd6569746(
|
|
1538
2243
|
scope: _constructs_77d1e7e8.Construct,
|
|
1539
2244
|
id: builtins.str,
|