aws-cdk-lib 2.202.0__py3-none-any.whl → 2.203.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 +46 -47
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.202.0.jsii.tgz → aws-cdk-lib@2.203.0.jsii.tgz} +0 -0
- aws_cdk/aws_accessanalyzer/__init__.py +310 -4
- aws_cdk/aws_aiops/__init__.py +964 -0
- aws_cdk/aws_amplify/__init__.py +127 -0
- aws_cdk/aws_arczonalshift/__init__.py +8 -8
- aws_cdk/aws_b2bi/__init__.py +782 -3
- aws_cdk/aws_backup/__init__.py +22 -0
- aws_cdk/aws_batch/__init__.py +53 -1
- aws_cdk/aws_bedrock/__init__.py +123 -9
- aws_cdk/aws_cleanrooms/__init__.py +157 -154
- aws_cdk/aws_cloudformation/__init__.py +28 -28
- aws_cdk/aws_cloudfront/__init__.py +61 -18
- aws_cdk/aws_cloudfront/experimental/__init__.py +37 -3
- aws_cdk/aws_cloudwatch/__init__.py +228 -2
- aws_cdk/aws_connect/__init__.py +120 -8
- aws_cdk/aws_connectcampaignsv2/__init__.py +25 -4
- aws_cdk/aws_customerprofiles/__init__.py +140 -20
- aws_cdk/aws_datazone/__init__.py +23 -4
- aws_cdk/aws_deadline/__init__.py +4 -4
- aws_cdk/aws_dsql/__init__.py +148 -0
- aws_cdk/aws_ec2/__init__.py +159 -7
- aws_cdk/aws_ecr/__init__.py +3 -3
- aws_cdk/aws_ecs/__init__.py +48 -13
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -2
- aws_cdk/aws_emrserverless/__init__.py +118 -0
- aws_cdk/aws_fsx/__init__.py +891 -0
- aws_cdk/aws_iam/__init__.py +8 -8
- aws_cdk/aws_inspectorv2/__init__.py +442 -3
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kms/__init__.py +14 -8
- aws_cdk/aws_lambda/__init__.py +191 -24
- aws_cdk/aws_lambda_nodejs/__init__.py +37 -3
- aws_cdk/aws_lex/__init__.py +703 -0
- aws_cdk/aws_logs/__init__.py +144 -0
- aws_cdk/aws_mediatailor/__init__.py +399 -0
- aws_cdk/aws_mpa/__init__.py +1475 -0
- aws_cdk/aws_networkfirewall/__init__.py +4 -2
- aws_cdk/aws_networkmanager/__init__.py +51 -3
- aws_cdk/aws_opsworkscm/__init__.py +44 -2
- aws_cdk/aws_rds/__init__.py +171 -41
- aws_cdk/aws_redshiftserverless/__init__.py +632 -0
- aws_cdk/aws_route53resolver/__init__.py +58 -10
- aws_cdk/aws_s3/__init__.py +3 -1
- aws_cdk/aws_s3tables/__init__.py +230 -0
- aws_cdk/aws_sagemaker/__init__.py +6 -2
- aws_cdk/aws_securityhub/__init__.py +2887 -56
- aws_cdk/aws_synthetics/__init__.py +21 -0
- aws_cdk/aws_vpclattice/__init__.py +6 -4
- aws_cdk/aws_wafv2/__init__.py +156 -51
- aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
- aws_cdk/cloud_assembly_schema/__init__.py +200 -4
- aws_cdk/cx_api/__init__.py +15 -14
- aws_cdk/pipelines/__init__.py +31 -3
- aws_cdk/triggers/__init__.py +41 -4
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/RECORD +62 -59
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_lex/__init__.py
CHANGED
|
@@ -1600,6 +1600,7 @@ class CfnBot(
|
|
|
1600
1600
|
"nlu_confidence_threshold": "nluConfidenceThreshold",
|
|
1601
1601
|
"custom_vocabulary": "customVocabulary",
|
|
1602
1602
|
"description": "description",
|
|
1603
|
+
"generative_ai_settings": "generativeAiSettings",
|
|
1603
1604
|
"intents": "intents",
|
|
1604
1605
|
"slot_types": "slotTypes",
|
|
1605
1606
|
"voice_settings": "voiceSettings",
|
|
@@ -1613,6 +1614,7 @@ class CfnBot(
|
|
|
1613
1614
|
nlu_confidence_threshold: jsii.Number,
|
|
1614
1615
|
custom_vocabulary: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.CustomVocabularyProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1615
1616
|
description: typing.Optional[builtins.str] = None,
|
|
1617
|
+
generative_ai_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.GenerativeAISettingsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1616
1618
|
intents: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.IntentProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1617
1619
|
slot_types: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.SlotTypeProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1618
1620
|
voice_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.VoiceSettingsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -1623,6 +1625,7 @@ class CfnBot(
|
|
|
1623
1625
|
:param nlu_confidence_threshold: Determines the threshold where Amazon Lex will insert the ``AMAZON.FallbackIntent`` , ``AMAZON.KendraSearchIntent`` , or both when returning alternative intents. You must configure an ``AMAZON.FallbackIntent`` . ``AMAZON.KendraSearchIntent`` is only inserted if it is configured for the bot.
|
|
1624
1626
|
:param custom_vocabulary: Specifies a custom vocabulary to use with a specific locale.
|
|
1625
1627
|
:param description: A description of the bot locale. Use this to help identify the bot locale in lists.
|
|
1628
|
+
:param generative_ai_settings:
|
|
1626
1629
|
:param intents: One or more intents defined for the locale.
|
|
1627
1630
|
:param slot_types: One or more slot types defined for the locale.
|
|
1628
1631
|
:param voice_settings: Defines settings for using an Amazon Polly voice to communicate with a user. Valid values include: - ``standard`` - ``neural`` - ``long-form`` - ``generative``
|
|
@@ -1640,6 +1643,7 @@ class CfnBot(
|
|
|
1640
1643
|
check_type(argname="argument nlu_confidence_threshold", value=nlu_confidence_threshold, expected_type=type_hints["nlu_confidence_threshold"])
|
|
1641
1644
|
check_type(argname="argument custom_vocabulary", value=custom_vocabulary, expected_type=type_hints["custom_vocabulary"])
|
|
1642
1645
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
1646
|
+
check_type(argname="argument generative_ai_settings", value=generative_ai_settings, expected_type=type_hints["generative_ai_settings"])
|
|
1643
1647
|
check_type(argname="argument intents", value=intents, expected_type=type_hints["intents"])
|
|
1644
1648
|
check_type(argname="argument slot_types", value=slot_types, expected_type=type_hints["slot_types"])
|
|
1645
1649
|
check_type(argname="argument voice_settings", value=voice_settings, expected_type=type_hints["voice_settings"])
|
|
@@ -1651,6 +1655,8 @@ class CfnBot(
|
|
|
1651
1655
|
self._values["custom_vocabulary"] = custom_vocabulary
|
|
1652
1656
|
if description is not None:
|
|
1653
1657
|
self._values["description"] = description
|
|
1658
|
+
if generative_ai_settings is not None:
|
|
1659
|
+
self._values["generative_ai_settings"] = generative_ai_settings
|
|
1654
1660
|
if intents is not None:
|
|
1655
1661
|
self._values["intents"] = intents
|
|
1656
1662
|
if slot_types is not None:
|
|
@@ -1702,6 +1708,16 @@ class CfnBot(
|
|
|
1702
1708
|
result = self._values.get("description")
|
|
1703
1709
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1704
1710
|
|
|
1711
|
+
@builtins.property
|
|
1712
|
+
def generative_ai_settings(
|
|
1713
|
+
self,
|
|
1714
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.GenerativeAISettingsProperty"]]:
|
|
1715
|
+
'''
|
|
1716
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-botlocale.html#cfn-lex-bot-botlocale-generativeaisettings
|
|
1717
|
+
'''
|
|
1718
|
+
result = self._values.get("generative_ai_settings")
|
|
1719
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.GenerativeAISettingsProperty"]], result)
|
|
1720
|
+
|
|
1705
1721
|
@builtins.property
|
|
1706
1722
|
def intents(
|
|
1707
1723
|
self,
|
|
@@ -1753,6 +1769,110 @@ class CfnBot(
|
|
|
1753
1769
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1754
1770
|
)
|
|
1755
1771
|
|
|
1772
|
+
@jsii.data_type(
|
|
1773
|
+
jsii_type="aws-cdk-lib.aws_lex.CfnBot.BuildtimeSettingsProperty",
|
|
1774
|
+
jsii_struct_bases=[],
|
|
1775
|
+
name_mapping={
|
|
1776
|
+
"descriptive_bot_builder_specification": "descriptiveBotBuilderSpecification",
|
|
1777
|
+
"sample_utterance_generation_specification": "sampleUtteranceGenerationSpecification",
|
|
1778
|
+
},
|
|
1779
|
+
)
|
|
1780
|
+
class BuildtimeSettingsProperty:
|
|
1781
|
+
def __init__(
|
|
1782
|
+
self,
|
|
1783
|
+
*,
|
|
1784
|
+
descriptive_bot_builder_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.DescriptiveBotBuilderSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1785
|
+
sample_utterance_generation_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.SampleUtteranceGenerationSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1786
|
+
) -> None:
|
|
1787
|
+
'''
|
|
1788
|
+
:param descriptive_bot_builder_specification:
|
|
1789
|
+
:param sample_utterance_generation_specification:
|
|
1790
|
+
|
|
1791
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-buildtimesettings.html
|
|
1792
|
+
:exampleMetadata: fixture=_generated
|
|
1793
|
+
|
|
1794
|
+
Example::
|
|
1795
|
+
|
|
1796
|
+
# The code below shows an example of how to instantiate this type.
|
|
1797
|
+
# The values are placeholders you should change.
|
|
1798
|
+
from aws_cdk import aws_lex as lex
|
|
1799
|
+
|
|
1800
|
+
buildtime_settings_property = lex.CfnBot.BuildtimeSettingsProperty(
|
|
1801
|
+
descriptive_bot_builder_specification=lex.CfnBot.DescriptiveBotBuilderSpecificationProperty(
|
|
1802
|
+
enabled=False,
|
|
1803
|
+
|
|
1804
|
+
# the properties below are optional
|
|
1805
|
+
bedrock_model_specification=lex.CfnBot.BedrockModelSpecificationProperty(
|
|
1806
|
+
model_arn="modelArn",
|
|
1807
|
+
|
|
1808
|
+
# the properties below are optional
|
|
1809
|
+
bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
|
|
1810
|
+
bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
|
|
1811
|
+
bedrock_guardrail_version="bedrockGuardrailVersion"
|
|
1812
|
+
),
|
|
1813
|
+
bedrock_model_custom_prompt="bedrockModelCustomPrompt",
|
|
1814
|
+
bedrock_trace_status="bedrockTraceStatus"
|
|
1815
|
+
)
|
|
1816
|
+
),
|
|
1817
|
+
sample_utterance_generation_specification=lex.CfnBot.SampleUtteranceGenerationSpecificationProperty(
|
|
1818
|
+
enabled=False,
|
|
1819
|
+
|
|
1820
|
+
# the properties below are optional
|
|
1821
|
+
bedrock_model_specification=lex.CfnBot.BedrockModelSpecificationProperty(
|
|
1822
|
+
model_arn="modelArn",
|
|
1823
|
+
|
|
1824
|
+
# the properties below are optional
|
|
1825
|
+
bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
|
|
1826
|
+
bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
|
|
1827
|
+
bedrock_guardrail_version="bedrockGuardrailVersion"
|
|
1828
|
+
),
|
|
1829
|
+
bedrock_model_custom_prompt="bedrockModelCustomPrompt",
|
|
1830
|
+
bedrock_trace_status="bedrockTraceStatus"
|
|
1831
|
+
)
|
|
1832
|
+
)
|
|
1833
|
+
)
|
|
1834
|
+
'''
|
|
1835
|
+
if __debug__:
|
|
1836
|
+
type_hints = typing.get_type_hints(_typecheckingstub__55f55af8a135ebdc8d2d68a3f39bdd435c48864ae190d23d1774d92a289587a1)
|
|
1837
|
+
check_type(argname="argument descriptive_bot_builder_specification", value=descriptive_bot_builder_specification, expected_type=type_hints["descriptive_bot_builder_specification"])
|
|
1838
|
+
check_type(argname="argument sample_utterance_generation_specification", value=sample_utterance_generation_specification, expected_type=type_hints["sample_utterance_generation_specification"])
|
|
1839
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1840
|
+
if descriptive_bot_builder_specification is not None:
|
|
1841
|
+
self._values["descriptive_bot_builder_specification"] = descriptive_bot_builder_specification
|
|
1842
|
+
if sample_utterance_generation_specification is not None:
|
|
1843
|
+
self._values["sample_utterance_generation_specification"] = sample_utterance_generation_specification
|
|
1844
|
+
|
|
1845
|
+
@builtins.property
|
|
1846
|
+
def descriptive_bot_builder_specification(
|
|
1847
|
+
self,
|
|
1848
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.DescriptiveBotBuilderSpecificationProperty"]]:
|
|
1849
|
+
'''
|
|
1850
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-buildtimesettings.html#cfn-lex-bot-buildtimesettings-descriptivebotbuilderspecification
|
|
1851
|
+
'''
|
|
1852
|
+
result = self._values.get("descriptive_bot_builder_specification")
|
|
1853
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.DescriptiveBotBuilderSpecificationProperty"]], result)
|
|
1854
|
+
|
|
1855
|
+
@builtins.property
|
|
1856
|
+
def sample_utterance_generation_specification(
|
|
1857
|
+
self,
|
|
1858
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.SampleUtteranceGenerationSpecificationProperty"]]:
|
|
1859
|
+
'''
|
|
1860
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-buildtimesettings.html#cfn-lex-bot-buildtimesettings-sampleutterancegenerationspecification
|
|
1861
|
+
'''
|
|
1862
|
+
result = self._values.get("sample_utterance_generation_specification")
|
|
1863
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.SampleUtteranceGenerationSpecificationProperty"]], result)
|
|
1864
|
+
|
|
1865
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1866
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1867
|
+
|
|
1868
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1869
|
+
return not (rhs == self)
|
|
1870
|
+
|
|
1871
|
+
def __repr__(self) -> str:
|
|
1872
|
+
return "BuildtimeSettingsProperty(%s)" % ", ".join(
|
|
1873
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1874
|
+
)
|
|
1875
|
+
|
|
1756
1876
|
@jsii.data_type(
|
|
1757
1877
|
jsii_type="aws-cdk-lib.aws_lex.CfnBot.ButtonProperty",
|
|
1758
1878
|
jsii_struct_bases=[],
|
|
@@ -3295,6 +3415,91 @@ class CfnBot(
|
|
|
3295
3415
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
3296
3416
|
)
|
|
3297
3417
|
|
|
3418
|
+
@jsii.data_type(
|
|
3419
|
+
jsii_type="aws-cdk-lib.aws_lex.CfnBot.DescriptiveBotBuilderSpecificationProperty",
|
|
3420
|
+
jsii_struct_bases=[],
|
|
3421
|
+
name_mapping={
|
|
3422
|
+
"enabled": "enabled",
|
|
3423
|
+
"bedrock_model_specification": "bedrockModelSpecification",
|
|
3424
|
+
},
|
|
3425
|
+
)
|
|
3426
|
+
class DescriptiveBotBuilderSpecificationProperty:
|
|
3427
|
+
def __init__(
|
|
3428
|
+
self,
|
|
3429
|
+
*,
|
|
3430
|
+
enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
3431
|
+
bedrock_model_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.BedrockModelSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3432
|
+
) -> None:
|
|
3433
|
+
'''
|
|
3434
|
+
:param enabled:
|
|
3435
|
+
:param bedrock_model_specification:
|
|
3436
|
+
|
|
3437
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-descriptivebotbuilderspecification.html
|
|
3438
|
+
:exampleMetadata: fixture=_generated
|
|
3439
|
+
|
|
3440
|
+
Example::
|
|
3441
|
+
|
|
3442
|
+
# The code below shows an example of how to instantiate this type.
|
|
3443
|
+
# The values are placeholders you should change.
|
|
3444
|
+
from aws_cdk import aws_lex as lex
|
|
3445
|
+
|
|
3446
|
+
descriptive_bot_builder_specification_property = lex.CfnBot.DescriptiveBotBuilderSpecificationProperty(
|
|
3447
|
+
enabled=False,
|
|
3448
|
+
|
|
3449
|
+
# the properties below are optional
|
|
3450
|
+
bedrock_model_specification=lex.CfnBot.BedrockModelSpecificationProperty(
|
|
3451
|
+
model_arn="modelArn",
|
|
3452
|
+
|
|
3453
|
+
# the properties below are optional
|
|
3454
|
+
bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
|
|
3455
|
+
bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
|
|
3456
|
+
bedrock_guardrail_version="bedrockGuardrailVersion"
|
|
3457
|
+
),
|
|
3458
|
+
bedrock_model_custom_prompt="bedrockModelCustomPrompt",
|
|
3459
|
+
bedrock_trace_status="bedrockTraceStatus"
|
|
3460
|
+
)
|
|
3461
|
+
)
|
|
3462
|
+
'''
|
|
3463
|
+
if __debug__:
|
|
3464
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ea3cb55a84af77a42088fb1190880b1ceae0ef66ce41f41f8a469a0b1dfd352d)
|
|
3465
|
+
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
3466
|
+
check_type(argname="argument bedrock_model_specification", value=bedrock_model_specification, expected_type=type_hints["bedrock_model_specification"])
|
|
3467
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3468
|
+
"enabled": enabled,
|
|
3469
|
+
}
|
|
3470
|
+
if bedrock_model_specification is not None:
|
|
3471
|
+
self._values["bedrock_model_specification"] = bedrock_model_specification
|
|
3472
|
+
|
|
3473
|
+
@builtins.property
|
|
3474
|
+
def enabled(self) -> typing.Union[builtins.bool, _IResolvable_da3f097b]:
|
|
3475
|
+
'''
|
|
3476
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-descriptivebotbuilderspecification.html#cfn-lex-bot-descriptivebotbuilderspecification-enabled
|
|
3477
|
+
'''
|
|
3478
|
+
result = self._values.get("enabled")
|
|
3479
|
+
assert result is not None, "Required property 'enabled' is missing"
|
|
3480
|
+
return typing.cast(typing.Union[builtins.bool, _IResolvable_da3f097b], result)
|
|
3481
|
+
|
|
3482
|
+
@builtins.property
|
|
3483
|
+
def bedrock_model_specification(
|
|
3484
|
+
self,
|
|
3485
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.BedrockModelSpecificationProperty"]]:
|
|
3486
|
+
'''
|
|
3487
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-descriptivebotbuilderspecification.html#cfn-lex-bot-descriptivebotbuilderspecification-bedrockmodelspecification
|
|
3488
|
+
'''
|
|
3489
|
+
result = self._values.get("bedrock_model_specification")
|
|
3490
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.BedrockModelSpecificationProperty"]], result)
|
|
3491
|
+
|
|
3492
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3493
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3494
|
+
|
|
3495
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3496
|
+
return not (rhs == self)
|
|
3497
|
+
|
|
3498
|
+
def __repr__(self) -> str:
|
|
3499
|
+
return "DescriptiveBotBuilderSpecificationProperty(%s)" % ", ".join(
|
|
3500
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3501
|
+
)
|
|
3502
|
+
|
|
3298
3503
|
@jsii.data_type(
|
|
3299
3504
|
jsii_type="aws-cdk-lib.aws_lex.CfnBot.DialogActionProperty",
|
|
3300
3505
|
jsii_struct_bases=[],
|
|
@@ -4507,6 +4712,133 @@ class CfnBot(
|
|
|
4507
4712
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
4508
4713
|
)
|
|
4509
4714
|
|
|
4715
|
+
@jsii.data_type(
|
|
4716
|
+
jsii_type="aws-cdk-lib.aws_lex.CfnBot.GenerativeAISettingsProperty",
|
|
4717
|
+
jsii_struct_bases=[],
|
|
4718
|
+
name_mapping={
|
|
4719
|
+
"buildtime_settings": "buildtimeSettings",
|
|
4720
|
+
"runtime_settings": "runtimeSettings",
|
|
4721
|
+
},
|
|
4722
|
+
)
|
|
4723
|
+
class GenerativeAISettingsProperty:
|
|
4724
|
+
def __init__(
|
|
4725
|
+
self,
|
|
4726
|
+
*,
|
|
4727
|
+
buildtime_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.BuildtimeSettingsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4728
|
+
runtime_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.RuntimeSettingsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4729
|
+
) -> None:
|
|
4730
|
+
'''
|
|
4731
|
+
:param buildtime_settings:
|
|
4732
|
+
:param runtime_settings:
|
|
4733
|
+
|
|
4734
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-generativeaisettings.html
|
|
4735
|
+
:exampleMetadata: fixture=_generated
|
|
4736
|
+
|
|
4737
|
+
Example::
|
|
4738
|
+
|
|
4739
|
+
# The code below shows an example of how to instantiate this type.
|
|
4740
|
+
# The values are placeholders you should change.
|
|
4741
|
+
from aws_cdk import aws_lex as lex
|
|
4742
|
+
|
|
4743
|
+
generative_aISettings_property = lex.CfnBot.GenerativeAISettingsProperty(
|
|
4744
|
+
buildtime_settings=lex.CfnBot.BuildtimeSettingsProperty(
|
|
4745
|
+
descriptive_bot_builder_specification=lex.CfnBot.DescriptiveBotBuilderSpecificationProperty(
|
|
4746
|
+
enabled=False,
|
|
4747
|
+
|
|
4748
|
+
# the properties below are optional
|
|
4749
|
+
bedrock_model_specification=lex.CfnBot.BedrockModelSpecificationProperty(
|
|
4750
|
+
model_arn="modelArn",
|
|
4751
|
+
|
|
4752
|
+
# the properties below are optional
|
|
4753
|
+
bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
|
|
4754
|
+
bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
|
|
4755
|
+
bedrock_guardrail_version="bedrockGuardrailVersion"
|
|
4756
|
+
),
|
|
4757
|
+
bedrock_model_custom_prompt="bedrockModelCustomPrompt",
|
|
4758
|
+
bedrock_trace_status="bedrockTraceStatus"
|
|
4759
|
+
)
|
|
4760
|
+
),
|
|
4761
|
+
sample_utterance_generation_specification=lex.CfnBot.SampleUtteranceGenerationSpecificationProperty(
|
|
4762
|
+
enabled=False,
|
|
4763
|
+
|
|
4764
|
+
# the properties below are optional
|
|
4765
|
+
bedrock_model_specification=lex.CfnBot.BedrockModelSpecificationProperty(
|
|
4766
|
+
model_arn="modelArn",
|
|
4767
|
+
|
|
4768
|
+
# the properties below are optional
|
|
4769
|
+
bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
|
|
4770
|
+
bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
|
|
4771
|
+
bedrock_guardrail_version="bedrockGuardrailVersion"
|
|
4772
|
+
),
|
|
4773
|
+
bedrock_model_custom_prompt="bedrockModelCustomPrompt",
|
|
4774
|
+
bedrock_trace_status="bedrockTraceStatus"
|
|
4775
|
+
)
|
|
4776
|
+
)
|
|
4777
|
+
),
|
|
4778
|
+
runtime_settings=lex.CfnBot.RuntimeSettingsProperty(
|
|
4779
|
+
nlu_improvement_specification=lex.CfnBot.NluImprovementSpecificationProperty(
|
|
4780
|
+
enabled=False
|
|
4781
|
+
),
|
|
4782
|
+
slot_resolution_improvement_specification=lex.CfnBot.SlotResolutionImprovementSpecificationProperty(
|
|
4783
|
+
enabled=False,
|
|
4784
|
+
|
|
4785
|
+
# the properties below are optional
|
|
4786
|
+
bedrock_model_specification=lex.CfnBot.BedrockModelSpecificationProperty(
|
|
4787
|
+
model_arn="modelArn",
|
|
4788
|
+
|
|
4789
|
+
# the properties below are optional
|
|
4790
|
+
bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
|
|
4791
|
+
bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
|
|
4792
|
+
bedrock_guardrail_version="bedrockGuardrailVersion"
|
|
4793
|
+
),
|
|
4794
|
+
bedrock_model_custom_prompt="bedrockModelCustomPrompt",
|
|
4795
|
+
bedrock_trace_status="bedrockTraceStatus"
|
|
4796
|
+
)
|
|
4797
|
+
)
|
|
4798
|
+
)
|
|
4799
|
+
)
|
|
4800
|
+
'''
|
|
4801
|
+
if __debug__:
|
|
4802
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c5af637ac1b1b7f3d07ce0df6ed177b23f0681b4005949bd8e68a29b6cd3ed88)
|
|
4803
|
+
check_type(argname="argument buildtime_settings", value=buildtime_settings, expected_type=type_hints["buildtime_settings"])
|
|
4804
|
+
check_type(argname="argument runtime_settings", value=runtime_settings, expected_type=type_hints["runtime_settings"])
|
|
4805
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
4806
|
+
if buildtime_settings is not None:
|
|
4807
|
+
self._values["buildtime_settings"] = buildtime_settings
|
|
4808
|
+
if runtime_settings is not None:
|
|
4809
|
+
self._values["runtime_settings"] = runtime_settings
|
|
4810
|
+
|
|
4811
|
+
@builtins.property
|
|
4812
|
+
def buildtime_settings(
|
|
4813
|
+
self,
|
|
4814
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.BuildtimeSettingsProperty"]]:
|
|
4815
|
+
'''
|
|
4816
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-generativeaisettings.html#cfn-lex-bot-generativeaisettings-buildtimesettings
|
|
4817
|
+
'''
|
|
4818
|
+
result = self._values.get("buildtime_settings")
|
|
4819
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.BuildtimeSettingsProperty"]], result)
|
|
4820
|
+
|
|
4821
|
+
@builtins.property
|
|
4822
|
+
def runtime_settings(
|
|
4823
|
+
self,
|
|
4824
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.RuntimeSettingsProperty"]]:
|
|
4825
|
+
'''
|
|
4826
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-generativeaisettings.html#cfn-lex-bot-generativeaisettings-runtimesettings
|
|
4827
|
+
'''
|
|
4828
|
+
result = self._values.get("runtime_settings")
|
|
4829
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.RuntimeSettingsProperty"]], result)
|
|
4830
|
+
|
|
4831
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4832
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4833
|
+
|
|
4834
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
4835
|
+
return not (rhs == self)
|
|
4836
|
+
|
|
4837
|
+
def __repr__(self) -> str:
|
|
4838
|
+
return "GenerativeAISettingsProperty(%s)" % ", ".join(
|
|
4839
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
4840
|
+
)
|
|
4841
|
+
|
|
4510
4842
|
@jsii.data_type(
|
|
4511
4843
|
jsii_type="aws-cdk-lib.aws_lex.CfnBot.GrammarSlotTypeSettingProperty",
|
|
4512
4844
|
jsii_struct_bases=[],
|
|
@@ -6482,6 +6814,60 @@ class CfnBot(
|
|
|
6482
6814
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
6483
6815
|
)
|
|
6484
6816
|
|
|
6817
|
+
@jsii.data_type(
|
|
6818
|
+
jsii_type="aws-cdk-lib.aws_lex.CfnBot.NluImprovementSpecificationProperty",
|
|
6819
|
+
jsii_struct_bases=[],
|
|
6820
|
+
name_mapping={"enabled": "enabled"},
|
|
6821
|
+
)
|
|
6822
|
+
class NluImprovementSpecificationProperty:
|
|
6823
|
+
def __init__(
|
|
6824
|
+
self,
|
|
6825
|
+
*,
|
|
6826
|
+
enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
6827
|
+
) -> None:
|
|
6828
|
+
'''
|
|
6829
|
+
:param enabled:
|
|
6830
|
+
|
|
6831
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-nluimprovementspecification.html
|
|
6832
|
+
:exampleMetadata: fixture=_generated
|
|
6833
|
+
|
|
6834
|
+
Example::
|
|
6835
|
+
|
|
6836
|
+
# The code below shows an example of how to instantiate this type.
|
|
6837
|
+
# The values are placeholders you should change.
|
|
6838
|
+
from aws_cdk import aws_lex as lex
|
|
6839
|
+
|
|
6840
|
+
nlu_improvement_specification_property = lex.CfnBot.NluImprovementSpecificationProperty(
|
|
6841
|
+
enabled=False
|
|
6842
|
+
)
|
|
6843
|
+
'''
|
|
6844
|
+
if __debug__:
|
|
6845
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f80adb05041a59edc5a47ce2b664a9d75275b5e3ff27a1ebb50e164ad1b82019)
|
|
6846
|
+
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
6847
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
6848
|
+
"enabled": enabled,
|
|
6849
|
+
}
|
|
6850
|
+
|
|
6851
|
+
@builtins.property
|
|
6852
|
+
def enabled(self) -> typing.Union[builtins.bool, _IResolvable_da3f097b]:
|
|
6853
|
+
'''
|
|
6854
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-nluimprovementspecification.html#cfn-lex-bot-nluimprovementspecification-enabled
|
|
6855
|
+
'''
|
|
6856
|
+
result = self._values.get("enabled")
|
|
6857
|
+
assert result is not None, "Required property 'enabled' is missing"
|
|
6858
|
+
return typing.cast(typing.Union[builtins.bool, _IResolvable_da3f097b], result)
|
|
6859
|
+
|
|
6860
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
6861
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
6862
|
+
|
|
6863
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
6864
|
+
return not (rhs == self)
|
|
6865
|
+
|
|
6866
|
+
def __repr__(self) -> str:
|
|
6867
|
+
return "NluImprovementSpecificationProperty(%s)" % ", ".join(
|
|
6868
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
6869
|
+
)
|
|
6870
|
+
|
|
6485
6871
|
@jsii.data_type(
|
|
6486
6872
|
jsii_type="aws-cdk-lib.aws_lex.CfnBot.ObfuscationSettingProperty",
|
|
6487
6873
|
jsii_struct_bases=[],
|
|
@@ -8047,6 +8433,97 @@ class CfnBot(
|
|
|
8047
8433
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
8048
8434
|
)
|
|
8049
8435
|
|
|
8436
|
+
@jsii.data_type(
|
|
8437
|
+
jsii_type="aws-cdk-lib.aws_lex.CfnBot.RuntimeSettingsProperty",
|
|
8438
|
+
jsii_struct_bases=[],
|
|
8439
|
+
name_mapping={
|
|
8440
|
+
"nlu_improvement_specification": "nluImprovementSpecification",
|
|
8441
|
+
"slot_resolution_improvement_specification": "slotResolutionImprovementSpecification",
|
|
8442
|
+
},
|
|
8443
|
+
)
|
|
8444
|
+
class RuntimeSettingsProperty:
|
|
8445
|
+
def __init__(
|
|
8446
|
+
self,
|
|
8447
|
+
*,
|
|
8448
|
+
nlu_improvement_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.NluImprovementSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8449
|
+
slot_resolution_improvement_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.SlotResolutionImprovementSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8450
|
+
) -> None:
|
|
8451
|
+
'''
|
|
8452
|
+
:param nlu_improvement_specification:
|
|
8453
|
+
:param slot_resolution_improvement_specification:
|
|
8454
|
+
|
|
8455
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-runtimesettings.html
|
|
8456
|
+
:exampleMetadata: fixture=_generated
|
|
8457
|
+
|
|
8458
|
+
Example::
|
|
8459
|
+
|
|
8460
|
+
# The code below shows an example of how to instantiate this type.
|
|
8461
|
+
# The values are placeholders you should change.
|
|
8462
|
+
from aws_cdk import aws_lex as lex
|
|
8463
|
+
|
|
8464
|
+
runtime_settings_property = lex.CfnBot.RuntimeSettingsProperty(
|
|
8465
|
+
nlu_improvement_specification=lex.CfnBot.NluImprovementSpecificationProperty(
|
|
8466
|
+
enabled=False
|
|
8467
|
+
),
|
|
8468
|
+
slot_resolution_improvement_specification=lex.CfnBot.SlotResolutionImprovementSpecificationProperty(
|
|
8469
|
+
enabled=False,
|
|
8470
|
+
|
|
8471
|
+
# the properties below are optional
|
|
8472
|
+
bedrock_model_specification=lex.CfnBot.BedrockModelSpecificationProperty(
|
|
8473
|
+
model_arn="modelArn",
|
|
8474
|
+
|
|
8475
|
+
# the properties below are optional
|
|
8476
|
+
bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
|
|
8477
|
+
bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
|
|
8478
|
+
bedrock_guardrail_version="bedrockGuardrailVersion"
|
|
8479
|
+
),
|
|
8480
|
+
bedrock_model_custom_prompt="bedrockModelCustomPrompt",
|
|
8481
|
+
bedrock_trace_status="bedrockTraceStatus"
|
|
8482
|
+
)
|
|
8483
|
+
)
|
|
8484
|
+
)
|
|
8485
|
+
'''
|
|
8486
|
+
if __debug__:
|
|
8487
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a71a2cf14755fdfc2af80bc68d24e71b9e9676019f96eb3437af9ee26c51479b)
|
|
8488
|
+
check_type(argname="argument nlu_improvement_specification", value=nlu_improvement_specification, expected_type=type_hints["nlu_improvement_specification"])
|
|
8489
|
+
check_type(argname="argument slot_resolution_improvement_specification", value=slot_resolution_improvement_specification, expected_type=type_hints["slot_resolution_improvement_specification"])
|
|
8490
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
8491
|
+
if nlu_improvement_specification is not None:
|
|
8492
|
+
self._values["nlu_improvement_specification"] = nlu_improvement_specification
|
|
8493
|
+
if slot_resolution_improvement_specification is not None:
|
|
8494
|
+
self._values["slot_resolution_improvement_specification"] = slot_resolution_improvement_specification
|
|
8495
|
+
|
|
8496
|
+
@builtins.property
|
|
8497
|
+
def nlu_improvement_specification(
|
|
8498
|
+
self,
|
|
8499
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.NluImprovementSpecificationProperty"]]:
|
|
8500
|
+
'''
|
|
8501
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-runtimesettings.html#cfn-lex-bot-runtimesettings-nluimprovementspecification
|
|
8502
|
+
'''
|
|
8503
|
+
result = self._values.get("nlu_improvement_specification")
|
|
8504
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.NluImprovementSpecificationProperty"]], result)
|
|
8505
|
+
|
|
8506
|
+
@builtins.property
|
|
8507
|
+
def slot_resolution_improvement_specification(
|
|
8508
|
+
self,
|
|
8509
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.SlotResolutionImprovementSpecificationProperty"]]:
|
|
8510
|
+
'''
|
|
8511
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-runtimesettings.html#cfn-lex-bot-runtimesettings-slotresolutionimprovementspecification
|
|
8512
|
+
'''
|
|
8513
|
+
result = self._values.get("slot_resolution_improvement_specification")
|
|
8514
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.SlotResolutionImprovementSpecificationProperty"]], result)
|
|
8515
|
+
|
|
8516
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
8517
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
8518
|
+
|
|
8519
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
8520
|
+
return not (rhs == self)
|
|
8521
|
+
|
|
8522
|
+
def __repr__(self) -> str:
|
|
8523
|
+
return "RuntimeSettingsProperty(%s)" % ", ".join(
|
|
8524
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
8525
|
+
)
|
|
8526
|
+
|
|
8050
8527
|
@jsii.data_type(
|
|
8051
8528
|
jsii_type="aws-cdk-lib.aws_lex.CfnBot.S3BucketLogDestinationProperty",
|
|
8052
8529
|
jsii_struct_bases=[],
|
|
@@ -8283,6 +8760,91 @@ class CfnBot(
|
|
|
8283
8760
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
8284
8761
|
)
|
|
8285
8762
|
|
|
8763
|
+
@jsii.data_type(
|
|
8764
|
+
jsii_type="aws-cdk-lib.aws_lex.CfnBot.SampleUtteranceGenerationSpecificationProperty",
|
|
8765
|
+
jsii_struct_bases=[],
|
|
8766
|
+
name_mapping={
|
|
8767
|
+
"enabled": "enabled",
|
|
8768
|
+
"bedrock_model_specification": "bedrockModelSpecification",
|
|
8769
|
+
},
|
|
8770
|
+
)
|
|
8771
|
+
class SampleUtteranceGenerationSpecificationProperty:
|
|
8772
|
+
def __init__(
|
|
8773
|
+
self,
|
|
8774
|
+
*,
|
|
8775
|
+
enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
8776
|
+
bedrock_model_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.BedrockModelSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8777
|
+
) -> None:
|
|
8778
|
+
'''
|
|
8779
|
+
:param enabled:
|
|
8780
|
+
:param bedrock_model_specification:
|
|
8781
|
+
|
|
8782
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-sampleutterancegenerationspecification.html
|
|
8783
|
+
:exampleMetadata: fixture=_generated
|
|
8784
|
+
|
|
8785
|
+
Example::
|
|
8786
|
+
|
|
8787
|
+
# The code below shows an example of how to instantiate this type.
|
|
8788
|
+
# The values are placeholders you should change.
|
|
8789
|
+
from aws_cdk import aws_lex as lex
|
|
8790
|
+
|
|
8791
|
+
sample_utterance_generation_specification_property = lex.CfnBot.SampleUtteranceGenerationSpecificationProperty(
|
|
8792
|
+
enabled=False,
|
|
8793
|
+
|
|
8794
|
+
# the properties below are optional
|
|
8795
|
+
bedrock_model_specification=lex.CfnBot.BedrockModelSpecificationProperty(
|
|
8796
|
+
model_arn="modelArn",
|
|
8797
|
+
|
|
8798
|
+
# the properties below are optional
|
|
8799
|
+
bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
|
|
8800
|
+
bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
|
|
8801
|
+
bedrock_guardrail_version="bedrockGuardrailVersion"
|
|
8802
|
+
),
|
|
8803
|
+
bedrock_model_custom_prompt="bedrockModelCustomPrompt",
|
|
8804
|
+
bedrock_trace_status="bedrockTraceStatus"
|
|
8805
|
+
)
|
|
8806
|
+
)
|
|
8807
|
+
'''
|
|
8808
|
+
if __debug__:
|
|
8809
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e657dbc1492761e5faf255622014eb530caa458acfdde6b55e366b251a3ae148)
|
|
8810
|
+
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
8811
|
+
check_type(argname="argument bedrock_model_specification", value=bedrock_model_specification, expected_type=type_hints["bedrock_model_specification"])
|
|
8812
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
8813
|
+
"enabled": enabled,
|
|
8814
|
+
}
|
|
8815
|
+
if bedrock_model_specification is not None:
|
|
8816
|
+
self._values["bedrock_model_specification"] = bedrock_model_specification
|
|
8817
|
+
|
|
8818
|
+
@builtins.property
|
|
8819
|
+
def enabled(self) -> typing.Union[builtins.bool, _IResolvable_da3f097b]:
|
|
8820
|
+
'''
|
|
8821
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-sampleutterancegenerationspecification.html#cfn-lex-bot-sampleutterancegenerationspecification-enabled
|
|
8822
|
+
'''
|
|
8823
|
+
result = self._values.get("enabled")
|
|
8824
|
+
assert result is not None, "Required property 'enabled' is missing"
|
|
8825
|
+
return typing.cast(typing.Union[builtins.bool, _IResolvable_da3f097b], result)
|
|
8826
|
+
|
|
8827
|
+
@builtins.property
|
|
8828
|
+
def bedrock_model_specification(
|
|
8829
|
+
self,
|
|
8830
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.BedrockModelSpecificationProperty"]]:
|
|
8831
|
+
'''
|
|
8832
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-sampleutterancegenerationspecification.html#cfn-lex-bot-sampleutterancegenerationspecification-bedrockmodelspecification
|
|
8833
|
+
'''
|
|
8834
|
+
result = self._values.get("bedrock_model_specification")
|
|
8835
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.BedrockModelSpecificationProperty"]], result)
|
|
8836
|
+
|
|
8837
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
8838
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
8839
|
+
|
|
8840
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
8841
|
+
return not (rhs == self)
|
|
8842
|
+
|
|
8843
|
+
def __repr__(self) -> str:
|
|
8844
|
+
return "SampleUtteranceGenerationSpecificationProperty(%s)" % ", ".join(
|
|
8845
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
8846
|
+
)
|
|
8847
|
+
|
|
8286
8848
|
@jsii.data_type(
|
|
8287
8849
|
jsii_type="aws-cdk-lib.aws_lex.CfnBot.SampleUtteranceProperty",
|
|
8288
8850
|
jsii_struct_bases=[],
|
|
@@ -9034,6 +9596,91 @@ class CfnBot(
|
|
|
9034
9596
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
9035
9597
|
)
|
|
9036
9598
|
|
|
9599
|
+
@jsii.data_type(
|
|
9600
|
+
jsii_type="aws-cdk-lib.aws_lex.CfnBot.SlotResolutionImprovementSpecificationProperty",
|
|
9601
|
+
jsii_struct_bases=[],
|
|
9602
|
+
name_mapping={
|
|
9603
|
+
"enabled": "enabled",
|
|
9604
|
+
"bedrock_model_specification": "bedrockModelSpecification",
|
|
9605
|
+
},
|
|
9606
|
+
)
|
|
9607
|
+
class SlotResolutionImprovementSpecificationProperty:
|
|
9608
|
+
def __init__(
|
|
9609
|
+
self,
|
|
9610
|
+
*,
|
|
9611
|
+
enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
9612
|
+
bedrock_model_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBot.BedrockModelSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9613
|
+
) -> None:
|
|
9614
|
+
'''
|
|
9615
|
+
:param enabled:
|
|
9616
|
+
:param bedrock_model_specification:
|
|
9617
|
+
|
|
9618
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slotresolutionimprovementspecification.html
|
|
9619
|
+
:exampleMetadata: fixture=_generated
|
|
9620
|
+
|
|
9621
|
+
Example::
|
|
9622
|
+
|
|
9623
|
+
# The code below shows an example of how to instantiate this type.
|
|
9624
|
+
# The values are placeholders you should change.
|
|
9625
|
+
from aws_cdk import aws_lex as lex
|
|
9626
|
+
|
|
9627
|
+
slot_resolution_improvement_specification_property = lex.CfnBot.SlotResolutionImprovementSpecificationProperty(
|
|
9628
|
+
enabled=False,
|
|
9629
|
+
|
|
9630
|
+
# the properties below are optional
|
|
9631
|
+
bedrock_model_specification=lex.CfnBot.BedrockModelSpecificationProperty(
|
|
9632
|
+
model_arn="modelArn",
|
|
9633
|
+
|
|
9634
|
+
# the properties below are optional
|
|
9635
|
+
bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
|
|
9636
|
+
bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
|
|
9637
|
+
bedrock_guardrail_version="bedrockGuardrailVersion"
|
|
9638
|
+
),
|
|
9639
|
+
bedrock_model_custom_prompt="bedrockModelCustomPrompt",
|
|
9640
|
+
bedrock_trace_status="bedrockTraceStatus"
|
|
9641
|
+
)
|
|
9642
|
+
)
|
|
9643
|
+
'''
|
|
9644
|
+
if __debug__:
|
|
9645
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cfa728c6d1ad54e6065258e5a5281c799d2b880a392d0bf7354d8a00baffdd93)
|
|
9646
|
+
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
9647
|
+
check_type(argname="argument bedrock_model_specification", value=bedrock_model_specification, expected_type=type_hints["bedrock_model_specification"])
|
|
9648
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
9649
|
+
"enabled": enabled,
|
|
9650
|
+
}
|
|
9651
|
+
if bedrock_model_specification is not None:
|
|
9652
|
+
self._values["bedrock_model_specification"] = bedrock_model_specification
|
|
9653
|
+
|
|
9654
|
+
@builtins.property
|
|
9655
|
+
def enabled(self) -> typing.Union[builtins.bool, _IResolvable_da3f097b]:
|
|
9656
|
+
'''
|
|
9657
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slotresolutionimprovementspecification.html#cfn-lex-bot-slotresolutionimprovementspecification-enabled
|
|
9658
|
+
'''
|
|
9659
|
+
result = self._values.get("enabled")
|
|
9660
|
+
assert result is not None, "Required property 'enabled' is missing"
|
|
9661
|
+
return typing.cast(typing.Union[builtins.bool, _IResolvable_da3f097b], result)
|
|
9662
|
+
|
|
9663
|
+
@builtins.property
|
|
9664
|
+
def bedrock_model_specification(
|
|
9665
|
+
self,
|
|
9666
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.BedrockModelSpecificationProperty"]]:
|
|
9667
|
+
'''
|
|
9668
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-slotresolutionimprovementspecification.html#cfn-lex-bot-slotresolutionimprovementspecification-bedrockmodelspecification
|
|
9669
|
+
'''
|
|
9670
|
+
result = self._values.get("bedrock_model_specification")
|
|
9671
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnBot.BedrockModelSpecificationProperty"]], result)
|
|
9672
|
+
|
|
9673
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9674
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9675
|
+
|
|
9676
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
9677
|
+
return not (rhs == self)
|
|
9678
|
+
|
|
9679
|
+
def __repr__(self) -> str:
|
|
9680
|
+
return "SlotResolutionImprovementSpecificationProperty(%s)" % ", ".join(
|
|
9681
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
9682
|
+
)
|
|
9683
|
+
|
|
9037
9684
|
@jsii.data_type(
|
|
9038
9685
|
jsii_type="aws-cdk-lib.aws_lex.CfnBot.SlotTypeProperty",
|
|
9039
9686
|
jsii_struct_bases=[],
|
|
@@ -14389,6 +15036,7 @@ def _typecheckingstub__2ad20956b5309c4b6154f09c947ce4023f20ed7a602b3cfa60f2bd3cf
|
|
|
14389
15036
|
nlu_confidence_threshold: jsii.Number,
|
|
14390
15037
|
custom_vocabulary: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.CustomVocabularyProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
14391
15038
|
description: typing.Optional[builtins.str] = None,
|
|
15039
|
+
generative_ai_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.GenerativeAISettingsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
14392
15040
|
intents: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.IntentProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
14393
15041
|
slot_types: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.SlotTypeProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
14394
15042
|
voice_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.VoiceSettingsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -14396,6 +15044,14 @@ def _typecheckingstub__2ad20956b5309c4b6154f09c947ce4023f20ed7a602b3cfa60f2bd3cf
|
|
|
14396
15044
|
"""Type checking stubs"""
|
|
14397
15045
|
pass
|
|
14398
15046
|
|
|
15047
|
+
def _typecheckingstub__55f55af8a135ebdc8d2d68a3f39bdd435c48864ae190d23d1774d92a289587a1(
|
|
15048
|
+
*,
|
|
15049
|
+
descriptive_bot_builder_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.DescriptiveBotBuilderSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15050
|
+
sample_utterance_generation_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.SampleUtteranceGenerationSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15051
|
+
) -> None:
|
|
15052
|
+
"""Type checking stubs"""
|
|
15053
|
+
pass
|
|
15054
|
+
|
|
14399
15055
|
def _typecheckingstub__d0208df4d8ce79e1029770ef72acb7332713a8684db0810b60ddcd684dc98bcd(
|
|
14400
15056
|
*,
|
|
14401
15057
|
text: builtins.str,
|
|
@@ -14517,6 +15173,14 @@ def _typecheckingstub__b17d7f375530a3080dd7a04795acd6231e37882d54e677880209844b3
|
|
|
14517
15173
|
"""Type checking stubs"""
|
|
14518
15174
|
pass
|
|
14519
15175
|
|
|
15176
|
+
def _typecheckingstub__ea3cb55a84af77a42088fb1190880b1ceae0ef66ce41f41f8a469a0b1dfd352d(
|
|
15177
|
+
*,
|
|
15178
|
+
enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
15179
|
+
bedrock_model_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.BedrockModelSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15180
|
+
) -> None:
|
|
15181
|
+
"""Type checking stubs"""
|
|
15182
|
+
pass
|
|
15183
|
+
|
|
14520
15184
|
def _typecheckingstub__e376869d573dbc5f07a8bacbcb08139f9ccf20789d86cfdc88afd3db242dd177(
|
|
14521
15185
|
*,
|
|
14522
15186
|
type: builtins.str,
|
|
@@ -14613,6 +15277,14 @@ def _typecheckingstub__500ed503fae8fece46360727878fdf9250149c5d237d5f4414d8191ff
|
|
|
14613
15277
|
"""Type checking stubs"""
|
|
14614
15278
|
pass
|
|
14615
15279
|
|
|
15280
|
+
def _typecheckingstub__c5af637ac1b1b7f3d07ce0df6ed177b23f0681b4005949bd8e68a29b6cd3ed88(
|
|
15281
|
+
*,
|
|
15282
|
+
buildtime_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.BuildtimeSettingsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15283
|
+
runtime_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.RuntimeSettingsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15284
|
+
) -> None:
|
|
15285
|
+
"""Type checking stubs"""
|
|
15286
|
+
pass
|
|
15287
|
+
|
|
14616
15288
|
def _typecheckingstub__7607729da805dba490266bfccf35e40fc22f0e3b3c4d78038e129d897dd21483(
|
|
14617
15289
|
*,
|
|
14618
15290
|
source: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.GrammarSlotTypeSourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -14758,6 +15430,13 @@ def _typecheckingstub__5d243896aac9e5978582c7a17b393ee26ecc4d0b53d8eeecb47f9b8e6
|
|
|
14758
15430
|
"""Type checking stubs"""
|
|
14759
15431
|
pass
|
|
14760
15432
|
|
|
15433
|
+
def _typecheckingstub__f80adb05041a59edc5a47ce2b664a9d75275b5e3ff27a1ebb50e164ad1b82019(
|
|
15434
|
+
*,
|
|
15435
|
+
enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
15436
|
+
) -> None:
|
|
15437
|
+
"""Type checking stubs"""
|
|
15438
|
+
pass
|
|
15439
|
+
|
|
14761
15440
|
def _typecheckingstub__a795f3c1800daacb8fa1b1f53ef1260088f1fa8ef905157a69c25f1fb6aaf260(
|
|
14762
15441
|
*,
|
|
14763
15442
|
obfuscation_setting_type: builtins.str,
|
|
@@ -14890,6 +15569,14 @@ def _typecheckingstub__41b902a3461c6b590e44c1b70d9b5197da38bf30395535518dbeee15b
|
|
|
14890
15569
|
"""Type checking stubs"""
|
|
14891
15570
|
pass
|
|
14892
15571
|
|
|
15572
|
+
def _typecheckingstub__a71a2cf14755fdfc2af80bc68d24e71b9e9676019f96eb3437af9ee26c51479b(
|
|
15573
|
+
*,
|
|
15574
|
+
nlu_improvement_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.NluImprovementSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15575
|
+
slot_resolution_improvement_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.SlotResolutionImprovementSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15576
|
+
) -> None:
|
|
15577
|
+
"""Type checking stubs"""
|
|
15578
|
+
pass
|
|
15579
|
+
|
|
14893
15580
|
def _typecheckingstub__ded78dd4eccaf929584502bf9d04303df195ccea074a52fa76a797748ee0e43b(
|
|
14894
15581
|
*,
|
|
14895
15582
|
log_prefix: builtins.str,
|
|
@@ -14915,6 +15602,14 @@ def _typecheckingstub__0c9fd5a338093c2843c71a2fd67ef382cd74c7db746e18dcc56d46f70
|
|
|
14915
15602
|
"""Type checking stubs"""
|
|
14916
15603
|
pass
|
|
14917
15604
|
|
|
15605
|
+
def _typecheckingstub__e657dbc1492761e5faf255622014eb530caa458acfdde6b55e366b251a3ae148(
|
|
15606
|
+
*,
|
|
15607
|
+
enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
15608
|
+
bedrock_model_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.BedrockModelSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15609
|
+
) -> None:
|
|
15610
|
+
"""Type checking stubs"""
|
|
15611
|
+
pass
|
|
15612
|
+
|
|
14918
15613
|
def _typecheckingstub__0142d6efc46c3cefacaba45fb4bc73266bcc186db01a160e97d3c9792a68f815(
|
|
14919
15614
|
*,
|
|
14920
15615
|
utterance: builtins.str,
|
|
@@ -14993,6 +15688,14 @@ def _typecheckingstub__ef126475ab56636b361ebc97f72cf09bd8480c4e5dad06e8da998fba1
|
|
|
14993
15688
|
"""Type checking stubs"""
|
|
14994
15689
|
pass
|
|
14995
15690
|
|
|
15691
|
+
def _typecheckingstub__cfa728c6d1ad54e6065258e5a5281c799d2b880a392d0bf7354d8a00baffdd93(
|
|
15692
|
+
*,
|
|
15693
|
+
enabled: typing.Union[builtins.bool, _IResolvable_da3f097b],
|
|
15694
|
+
bedrock_model_specification: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBot.BedrockModelSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15695
|
+
) -> None:
|
|
15696
|
+
"""Type checking stubs"""
|
|
15697
|
+
pass
|
|
15698
|
+
|
|
14996
15699
|
def _typecheckingstub__d99d82598958085799a77f6b5114773dd5d435a8eed078da9626b631bffcfeea(
|
|
14997
15700
|
*,
|
|
14998
15701
|
name: builtins.str,
|