aws-cdk-lib 2.199.0__py3-none-any.whl → 2.200.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +22 -24
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.199.0.jsii.tgz → aws-cdk-lib@2.200.1.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +1 -1
- aws_cdk/aws_apigateway/__init__.py +1 -1
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -4
- aws_cdk/aws_aps/__init__.py +38 -30
- aws_cdk/aws_autoscaling/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +73 -48
- aws_cdk/aws_cloudformation/__init__.py +17 -23
- aws_cdk/aws_cloudfront_origins/__init__.py +1 -1
- aws_cdk/aws_cloudtrail/__init__.py +4 -4
- aws_cdk/aws_cloudwatch/__init__.py +50 -1
- aws_cdk/aws_codebuild/__init__.py +116 -0
- aws_cdk/aws_datazone/__init__.py +699 -9
- aws_cdk/aws_deadline/__init__.py +38 -10
- aws_cdk/aws_ec2/__init__.py +78 -20
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +7 -7
- aws_cdk/aws_emr/__init__.py +36 -2
- aws_cdk/aws_fsx/__init__.py +122 -0
- aws_cdk/aws_glue/__init__.py +55 -26
- aws_cdk/aws_iam/__init__.py +376 -2
- aws_cdk/aws_iot/__init__.py +57 -5
- aws_cdk/aws_kinesisfirehose/__init__.py +5 -1
- aws_cdk/aws_lambda/__init__.py +65 -45
- aws_cdk/aws_lex/__init__.py +27 -13
- aws_cdk/aws_lightsail/__init__.py +452 -0
- aws_cdk/aws_medialive/__init__.py +699 -497
- aws_cdk/aws_msk/__init__.py +4 -4
- aws_cdk/aws_networkfirewall/__init__.py +9 -5
- aws_cdk/aws_nimblestudio/__init__.py +208 -400
- aws_cdk/aws_panorama/__init__.py +30 -3
- aws_cdk/aws_pcs/__init__.py +12 -5
- aws_cdk/aws_rds/__init__.py +22 -10
- aws_cdk/aws_s3/__init__.py +367 -6
- aws_cdk/aws_s3express/__init__.py +789 -0
- aws_cdk/aws_ses/__init__.py +300 -32
- aws_cdk/aws_sns_subscriptions/__init__.py +256 -1
- aws_cdk/aws_stepfunctions/__init__.py +55 -17
- aws_cdk/aws_synthetics/__init__.py +26 -16
- aws_cdk/aws_voiceid/__init__.py +13 -3
- aws_cdk/cloud_assembly_schema/__init__.py +137 -42
- aws_cdk/cx_api/__init__.py +7 -7
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/RECORD +49 -49
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.199.0.dist-info → aws_cdk_lib-2.200.1.dist-info}/top_level.txt +0 -0
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -227,6 +227,71 @@ lambda_.Function(self, "Lambda",
|
|
|
227
227
|
|
|
228
228
|
To use `applicationLogLevelV2` and/or `systemLogLevelV2` you must set `loggingFormat` to `LoggingFormat.JSON`.
|
|
229
229
|
|
|
230
|
+
## Customizing Log Group Creation
|
|
231
|
+
|
|
232
|
+
### Log Group Creation Methods
|
|
233
|
+
|
|
234
|
+
| Method | Description | Tag Propagation | Prop Injection | Aspects | Notes |
|
|
235
|
+
|--------|-------------|-----------------|----------------|---------|-------|
|
|
236
|
+
| **logRetention prop** | Legacy approach using Custom Resource | False | False | False | Does not support TPA |
|
|
237
|
+
| **logGroup prop** | Explicitly supplied by user in CDK app | True | True | True | Full support for TPA |
|
|
238
|
+
| **Lazy creation** | Lambda service creates logGroup on first invocation | False | False | False | Occurs when both logRetention and logGroup are undefined and USE_CDK_MANAGED_LAMBDA_LOGGROUP is false |
|
|
239
|
+
| **USE_CDK_MANAGED_LAMBDA_LOGGROUP** | CDK Lambda function construct creates log group with default props | True | True | True | Feature flag must be enabled |
|
|
240
|
+
|
|
241
|
+
*TPA: Tag propagation, Prop Injection, Aspects*
|
|
242
|
+
|
|
243
|
+
#### Order of precedence
|
|
244
|
+
|
|
245
|
+
```text
|
|
246
|
+
Highest Precedence
|
|
247
|
+
|
|
|
248
|
+
+---------------+---------------+
|
|
249
|
+
| |
|
|
250
|
+
+-------------------------+ +------------------------+
|
|
251
|
+
| logRetention is set | | logGroup is set |
|
|
252
|
+
+-----------+-------------+ +----------+-------------+
|
|
253
|
+
| |
|
|
254
|
+
v v
|
|
255
|
+
Create LogGroup via Use the provided LogGroup
|
|
256
|
+
Custom Resource (retention instance (CDK-managed,
|
|
257
|
+
managed, logGroup disallowed) logRetention disallowed)
|
|
258
|
+
| |
|
|
259
|
+
+---------------+---------------+
|
|
260
|
+
|
|
|
261
|
+
v
|
|
262
|
+
+-----------------------------------------------+
|
|
263
|
+
| Feature flag enabled: |
|
|
264
|
+
| aws-cdk:aws-lambda:useCdkManagedLogGroup |
|
|
265
|
+
+------------------ +---------------------------+
|
|
266
|
+
|
|
|
267
|
+
v
|
|
268
|
+
Create LogGroup at synth time
|
|
269
|
+
(CDK-managed, default settings for logGroup)
|
|
270
|
+
|
|
|
271
|
+
v
|
|
272
|
+
+---------------------------+
|
|
273
|
+
| Default (no config set) |
|
|
274
|
+
+------------+--------------+
|
|
275
|
+
|
|
|
276
|
+
v
|
|
277
|
+
Lambda service creates log group on first invocation runtime
|
|
278
|
+
(CDK does not manage the log group resource)
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Tag Propagation
|
|
282
|
+
|
|
283
|
+
Refer section `Log Group Creation Methods` to find out which modes support tag propagation.
|
|
284
|
+
As an example, adding the following line in your cdk app will also propagate to the logGroup.
|
|
285
|
+
|
|
286
|
+
```
|
|
287
|
+
const fn = new lambda.Function(this, 'MyFunctionWithFFTrue', {
|
|
288
|
+
runtime: lambda.Runtime.NODEJS_20_X,
|
|
289
|
+
handler: 'handler.main',
|
|
290
|
+
code: lambda.Code.fromAsset('lambda'),
|
|
291
|
+
});
|
|
292
|
+
cdk.Tags.of(fn).add('env', 'dev'); // the tag is also added to the log group
|
|
293
|
+
```
|
|
294
|
+
|
|
230
295
|
## Resource-based Policies
|
|
231
296
|
|
|
232
297
|
AWS Lambda supports resource-based policies for controlling access to Lambda
|
|
@@ -10779,15 +10844,12 @@ class CfnVersion(
|
|
|
10779
10844
|
# The values are placeholders you should change.
|
|
10780
10845
|
from aws_cdk import aws_lambda as lambda_
|
|
10781
10846
|
|
|
10782
|
-
# policy: Any
|
|
10783
|
-
|
|
10784
10847
|
cfn_version = lambda_.CfnVersion(self, "MyCfnVersion",
|
|
10785
10848
|
function_name="functionName",
|
|
10786
10849
|
|
|
10787
10850
|
# the properties below are optional
|
|
10788
10851
|
code_sha256="codeSha256",
|
|
10789
10852
|
description="description",
|
|
10790
|
-
policy=policy,
|
|
10791
10853
|
provisioned_concurrency_config=lambda.CfnVersion.ProvisionedConcurrencyConfigurationProperty(
|
|
10792
10854
|
provisioned_concurrent_executions=123
|
|
10793
10855
|
),
|
|
@@ -10808,7 +10870,6 @@ class CfnVersion(
|
|
|
10808
10870
|
function_name: builtins.str,
|
|
10809
10871
|
code_sha256: typing.Optional[builtins.str] = None,
|
|
10810
10872
|
description: typing.Optional[builtins.str] = None,
|
|
10811
|
-
policy: typing.Any = None,
|
|
10812
10873
|
provisioned_concurrency_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnVersion.ProvisionedConcurrencyConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10813
10874
|
runtime_policy: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnVersion.RuntimePolicyProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10814
10875
|
) -> None:
|
|
@@ -10818,7 +10879,6 @@ class CfnVersion(
|
|
|
10818
10879
|
:param function_name: The name or ARN of the Lambda function. **Name formats** - *Function name* - ``MyFunction`` . - *Function ARN* - ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction`` . - *Partial ARN* - ``123456789012:function:MyFunction`` . The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
|
|
10819
10880
|
:param code_sha256: Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
|
|
10820
10881
|
:param description: A description for the version to override the description in the function configuration. Updates are not supported for this property.
|
|
10821
|
-
:param policy: The resource policy of your function.
|
|
10822
10882
|
:param provisioned_concurrency_config: Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
|
|
10823
10883
|
:param runtime_policy: Runtime Management Config of a function.
|
|
10824
10884
|
'''
|
|
@@ -10830,7 +10890,6 @@ class CfnVersion(
|
|
|
10830
10890
|
function_name=function_name,
|
|
10831
10891
|
code_sha256=code_sha256,
|
|
10832
10892
|
description=description,
|
|
10833
|
-
policy=policy,
|
|
10834
10893
|
provisioned_concurrency_config=provisioned_concurrency_config,
|
|
10835
10894
|
runtime_policy=runtime_policy,
|
|
10836
10895
|
)
|
|
@@ -10929,19 +10988,6 @@ class CfnVersion(
|
|
|
10929
10988
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
10930
10989
|
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
10931
10990
|
|
|
10932
|
-
@builtins.property
|
|
10933
|
-
@jsii.member(jsii_name="policy")
|
|
10934
|
-
def policy(self) -> typing.Any:
|
|
10935
|
-
'''The resource policy of your function.'''
|
|
10936
|
-
return typing.cast(typing.Any, jsii.get(self, "policy"))
|
|
10937
|
-
|
|
10938
|
-
@policy.setter
|
|
10939
|
-
def policy(self, value: typing.Any) -> None:
|
|
10940
|
-
if __debug__:
|
|
10941
|
-
type_hints = typing.get_type_hints(_typecheckingstub__ca802d0cfdb44c8f362bdb1d342a752f1a5ebd921d11a7b2fd0806cca5d9200a)
|
|
10942
|
-
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
10943
|
-
jsii.set(self, "policy", value) # pyright: ignore[reportArgumentType]
|
|
10944
|
-
|
|
10945
10991
|
@builtins.property
|
|
10946
10992
|
@jsii.member(jsii_name="provisionedConcurrencyConfig")
|
|
10947
10993
|
def provisioned_concurrency_config(
|
|
@@ -11128,7 +11174,6 @@ class CfnVersion(
|
|
|
11128
11174
|
"function_name": "functionName",
|
|
11129
11175
|
"code_sha256": "codeSha256",
|
|
11130
11176
|
"description": "description",
|
|
11131
|
-
"policy": "policy",
|
|
11132
11177
|
"provisioned_concurrency_config": "provisionedConcurrencyConfig",
|
|
11133
11178
|
"runtime_policy": "runtimePolicy",
|
|
11134
11179
|
},
|
|
@@ -11140,7 +11185,6 @@ class CfnVersionProps:
|
|
|
11140
11185
|
function_name: builtins.str,
|
|
11141
11186
|
code_sha256: typing.Optional[builtins.str] = None,
|
|
11142
11187
|
description: typing.Optional[builtins.str] = None,
|
|
11143
|
-
policy: typing.Any = None,
|
|
11144
11188
|
provisioned_concurrency_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnVersion.ProvisionedConcurrencyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11145
11189
|
runtime_policy: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnVersion.RuntimePolicyProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11146
11190
|
) -> None:
|
|
@@ -11149,7 +11193,6 @@ class CfnVersionProps:
|
|
|
11149
11193
|
:param function_name: The name or ARN of the Lambda function. **Name formats** - *Function name* - ``MyFunction`` . - *Function ARN* - ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction`` . - *Partial ARN* - ``123456789012:function:MyFunction`` . The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
|
|
11150
11194
|
:param code_sha256: Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
|
|
11151
11195
|
:param description: A description for the version to override the description in the function configuration. Updates are not supported for this property.
|
|
11152
|
-
:param policy: The resource policy of your function.
|
|
11153
11196
|
:param provisioned_concurrency_config: Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
|
|
11154
11197
|
:param runtime_policy: Runtime Management Config of a function.
|
|
11155
11198
|
|
|
@@ -11162,15 +11205,12 @@ class CfnVersionProps:
|
|
|
11162
11205
|
# The values are placeholders you should change.
|
|
11163
11206
|
from aws_cdk import aws_lambda as lambda_
|
|
11164
11207
|
|
|
11165
|
-
# policy: Any
|
|
11166
|
-
|
|
11167
11208
|
cfn_version_props = lambda.CfnVersionProps(
|
|
11168
11209
|
function_name="functionName",
|
|
11169
11210
|
|
|
11170
11211
|
# the properties below are optional
|
|
11171
11212
|
code_sha256="codeSha256",
|
|
11172
11213
|
description="description",
|
|
11173
|
-
policy=policy,
|
|
11174
11214
|
provisioned_concurrency_config=lambda.CfnVersion.ProvisionedConcurrencyConfigurationProperty(
|
|
11175
11215
|
provisioned_concurrent_executions=123
|
|
11176
11216
|
),
|
|
@@ -11187,7 +11227,6 @@ class CfnVersionProps:
|
|
|
11187
11227
|
check_type(argname="argument function_name", value=function_name, expected_type=type_hints["function_name"])
|
|
11188
11228
|
check_type(argname="argument code_sha256", value=code_sha256, expected_type=type_hints["code_sha256"])
|
|
11189
11229
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
11190
|
-
check_type(argname="argument policy", value=policy, expected_type=type_hints["policy"])
|
|
11191
11230
|
check_type(argname="argument provisioned_concurrency_config", value=provisioned_concurrency_config, expected_type=type_hints["provisioned_concurrency_config"])
|
|
11192
11231
|
check_type(argname="argument runtime_policy", value=runtime_policy, expected_type=type_hints["runtime_policy"])
|
|
11193
11232
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -11197,8 +11236,6 @@ class CfnVersionProps:
|
|
|
11197
11236
|
self._values["code_sha256"] = code_sha256
|
|
11198
11237
|
if description is not None:
|
|
11199
11238
|
self._values["description"] = description
|
|
11200
|
-
if policy is not None:
|
|
11201
|
-
self._values["policy"] = policy
|
|
11202
11239
|
if provisioned_concurrency_config is not None:
|
|
11203
11240
|
self._values["provisioned_concurrency_config"] = provisioned_concurrency_config
|
|
11204
11241
|
if runtime_policy is not None:
|
|
@@ -11243,15 +11280,6 @@ class CfnVersionProps:
|
|
|
11243
11280
|
result = self._values.get("description")
|
|
11244
11281
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
11245
11282
|
|
|
11246
|
-
@builtins.property
|
|
11247
|
-
def policy(self) -> typing.Any:
|
|
11248
|
-
'''The resource policy of your function.
|
|
11249
|
-
|
|
11250
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-policy
|
|
11251
|
-
'''
|
|
11252
|
-
result = self._values.get("policy")
|
|
11253
|
-
return typing.cast(typing.Any, result)
|
|
11254
|
-
|
|
11255
11283
|
@builtins.property
|
|
11256
11284
|
def provisioned_concurrency_config(
|
|
11257
11285
|
self,
|
|
@@ -30700,7 +30728,6 @@ def _typecheckingstub__1d4b3bf8a38fd246db911713fe99ad93f55dc635dbdaae114631921a1
|
|
|
30700
30728
|
function_name: builtins.str,
|
|
30701
30729
|
code_sha256: typing.Optional[builtins.str] = None,
|
|
30702
30730
|
description: typing.Optional[builtins.str] = None,
|
|
30703
|
-
policy: typing.Any = None,
|
|
30704
30731
|
provisioned_concurrency_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnVersion.ProvisionedConcurrencyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
30705
30732
|
runtime_policy: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnVersion.RuntimePolicyProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
30706
30733
|
) -> None:
|
|
@@ -30737,12 +30764,6 @@ def _typecheckingstub__f00e141771e43b8312d6a22399ba2d956886a5861db2296d1a2f16f8b
|
|
|
30737
30764
|
"""Type checking stubs"""
|
|
30738
30765
|
pass
|
|
30739
30766
|
|
|
30740
|
-
def _typecheckingstub__ca802d0cfdb44c8f362bdb1d342a752f1a5ebd921d11a7b2fd0806cca5d9200a(
|
|
30741
|
-
value: typing.Any,
|
|
30742
|
-
) -> None:
|
|
30743
|
-
"""Type checking stubs"""
|
|
30744
|
-
pass
|
|
30745
|
-
|
|
30746
30767
|
def _typecheckingstub__e46534e1d83b58a93edc70a851ca891701ea58cfe9a3fc7dc106915c1a475fa6(
|
|
30747
30768
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnVersion.ProvisionedConcurrencyConfigurationProperty]],
|
|
30748
30769
|
) -> None:
|
|
@@ -30775,7 +30796,6 @@ def _typecheckingstub__63ba63c43bc52bb365203cebb308fd393d4c03a8aee52a0336a139696
|
|
|
30775
30796
|
function_name: builtins.str,
|
|
30776
30797
|
code_sha256: typing.Optional[builtins.str] = None,
|
|
30777
30798
|
description: typing.Optional[builtins.str] = None,
|
|
30778
|
-
policy: typing.Any = None,
|
|
30779
30799
|
provisioned_concurrency_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnVersion.ProvisionedConcurrencyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
30780
30800
|
runtime_policy: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnVersion.RuntimePolicyProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
30781
30801
|
) -> None:
|
aws_cdk/aws_lex/__init__.py
CHANGED
|
@@ -9898,9 +9898,10 @@ class CfnBot(
|
|
|
9898
9898
|
slot_type_id: builtins.str,
|
|
9899
9899
|
value_elicitation_setting: typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.SubSlotValueElicitationSettingProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
9900
9900
|
) -> None:
|
|
9901
|
-
'''
|
|
9902
|
-
|
|
9903
|
-
:param
|
|
9901
|
+
'''Subslot specifications.
|
|
9902
|
+
|
|
9903
|
+
:param slot_type_id: The unique identifier assigned to the slot type.
|
|
9904
|
+
:param value_elicitation_setting: Specifies the elicitation setting details for constituent sub slots of a composite slot.
|
|
9904
9905
|
|
|
9905
9906
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-specifications.html
|
|
9906
9907
|
:exampleMetadata: fixture=_generated
|
|
@@ -10186,7 +10187,8 @@ class CfnBot(
|
|
|
10186
10187
|
|
|
10187
10188
|
@builtins.property
|
|
10188
10189
|
def slot_type_id(self) -> builtins.str:
|
|
10189
|
-
'''
|
|
10190
|
+
'''The unique identifier assigned to the slot type.
|
|
10191
|
+
|
|
10190
10192
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-specifications.html#cfn-lex-bot-specifications-slottypeid
|
|
10191
10193
|
'''
|
|
10192
10194
|
result = self._values.get("slot_type_id")
|
|
@@ -10197,7 +10199,8 @@ class CfnBot(
|
|
|
10197
10199
|
def value_elicitation_setting(
|
|
10198
10200
|
self,
|
|
10199
10201
|
) -> typing.Union[_IResolvable_da3f097b, "CfnBot.SubSlotValueElicitationSettingProperty"]:
|
|
10200
|
-
'''
|
|
10202
|
+
'''Specifies the elicitation setting details for constituent sub slots of a composite slot.
|
|
10203
|
+
|
|
10201
10204
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-specifications.html#cfn-lex-bot-specifications-valueelicitationsetting
|
|
10202
10205
|
'''
|
|
10203
10206
|
result = self._values.get("value_elicitation_setting")
|
|
@@ -10391,9 +10394,10 @@ class CfnBot(
|
|
|
10391
10394
|
expression: typing.Optional[builtins.str] = None,
|
|
10392
10395
|
slot_specifications: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.SpecificationsProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
10393
10396
|
) -> None:
|
|
10394
|
-
'''
|
|
10395
|
-
|
|
10396
|
-
:param
|
|
10397
|
+
'''Specifications for the constituent sub slots and the expression for the composite slot.
|
|
10398
|
+
|
|
10399
|
+
:param expression: The expression text for defining the constituent sub slots in the composite slot using logical AND and OR operators.
|
|
10400
|
+
:param slot_specifications: Specifications for the constituent sub slots of a composite slot.
|
|
10397
10401
|
|
|
10398
10402
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-subslotsetting.html
|
|
10399
10403
|
:exampleMetadata: fixture=_generated
|
|
@@ -10685,7 +10689,8 @@ class CfnBot(
|
|
|
10685
10689
|
|
|
10686
10690
|
@builtins.property
|
|
10687
10691
|
def expression(self) -> typing.Optional[builtins.str]:
|
|
10688
|
-
'''
|
|
10692
|
+
'''The expression text for defining the constituent sub slots in the composite slot using logical AND and OR operators.
|
|
10693
|
+
|
|
10689
10694
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-subslotsetting.html#cfn-lex-bot-subslotsetting-expression
|
|
10690
10695
|
'''
|
|
10691
10696
|
result = self._values.get("expression")
|
|
@@ -10695,7 +10700,8 @@ class CfnBot(
|
|
|
10695
10700
|
def slot_specifications(
|
|
10696
10701
|
self,
|
|
10697
10702
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, "CfnBot.SpecificationsProperty"]]]]:
|
|
10698
|
-
'''
|
|
10703
|
+
'''Specifications for the constituent sub slots of a composite slot.
|
|
10704
|
+
|
|
10699
10705
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-subslotsetting.html#cfn-lex-bot-subslotsetting-slotspecifications
|
|
10700
10706
|
'''
|
|
10701
10707
|
result = self._values.get("slot_specifications")
|
|
@@ -10799,10 +10805,15 @@ class CfnBot(
|
|
|
10799
10805
|
sample_utterances: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.SampleUtteranceProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
10800
10806
|
wait_and_continue_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.WaitAndContinueSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10801
10807
|
) -> None:
|
|
10802
|
-
'''
|
|
10808
|
+
'''Subslot elicitation settings.
|
|
10809
|
+
|
|
10810
|
+
``DefaultValueSpecification`` is a list of default values for a constituent sub slot in a composite slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values. This is similar to ``DefaultValueSpecification`` for slots.
|
|
10811
|
+
|
|
10812
|
+
``PromptSpecification`` is the prompt that Amazon Lex uses to elicit the sub slot value from the user. This is similar to ``PromptSpecification`` for slots.
|
|
10813
|
+
|
|
10803
10814
|
:param default_value_specification:
|
|
10804
10815
|
:param prompt_specification:
|
|
10805
|
-
:param sample_utterances:
|
|
10816
|
+
:param sample_utterances: If you know a specific pattern that users might respond to an Amazon Lex request for a sub slot value, you can provide those utterances to improve accuracy. This is optional. In most cases Amazon Lex is capable of understanding user utterances. This is similar to ``SampleUtterances`` for slots.
|
|
10806
10817
|
:param wait_and_continue_specification:
|
|
10807
10818
|
|
|
10808
10819
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-subslotvalueelicitationsetting.html
|
|
@@ -11115,7 +11126,10 @@ class CfnBot(
|
|
|
11115
11126
|
def sample_utterances(
|
|
11116
11127
|
self,
|
|
11117
11128
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnBot.SampleUtteranceProperty"]]]]:
|
|
11118
|
-
'''
|
|
11129
|
+
'''If you know a specific pattern that users might respond to an Amazon Lex request for a sub slot value, you can provide those utterances to improve accuracy.
|
|
11130
|
+
|
|
11131
|
+
This is optional. In most cases Amazon Lex is capable of understanding user utterances. This is similar to ``SampleUtterances`` for slots.
|
|
11132
|
+
|
|
11119
11133
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-subslotvalueelicitationsetting.html#cfn-lex-bot-subslotvalueelicitationsetting-sampleutterances
|
|
11120
11134
|
'''
|
|
11121
11135
|
result = self._values.get("sample_utterances")
|