aws-cdk-lib 2.195.0__py3-none-any.whl → 2.196.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 +433 -20
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.195.0.jsii.tgz → aws-cdk-lib@2.196.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +1 -1
- aws_cdk/aws_amazonmq/__init__.py +2 -2
- aws_cdk/aws_apigateway/__init__.py +148 -69
- aws_cdk/aws_apigatewayv2/__init__.py +155 -24
- aws_cdk/aws_appconfig/__init__.py +24 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +6 -0
- aws_cdk/aws_appmesh/__init__.py +42 -0
- aws_cdk/aws_appsync/__init__.py +92 -20
- aws_cdk/aws_autoscaling/__init__.py +24 -0
- aws_cdk/aws_backup/__init__.py +53 -14
- aws_cdk/aws_batch/__init__.py +72 -0
- aws_cdk/aws_bedrock/__init__.py +620 -14
- aws_cdk/aws_budgets/__init__.py +569 -0
- aws_cdk/aws_certificatemanager/__init__.py +21 -0
- aws_cdk/aws_chatbot/__init__.py +6 -0
- aws_cdk/aws_cloudfront/__init__.py +87 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +6 -0
- aws_cdk/aws_cloudtrail/__init__.py +6 -0
- aws_cdk/aws_cloudwatch/__init__.py +18 -0
- aws_cdk/aws_cloudwatch_actions/__init__.py +75 -1
- aws_cdk/aws_codebuild/__init__.py +48 -0
- aws_cdk/aws_codecommit/__init__.py +6 -0
- aws_cdk/aws_codedeploy/__init__.py +63 -0
- aws_cdk/aws_codeguruprofiler/__init__.py +6 -0
- aws_cdk/aws_codepipeline/__init__.py +6 -0
- aws_cdk/aws_codepipeline_actions/__init__.py +4 -4
- aws_cdk/aws_codestarnotifications/__init__.py +6 -0
- aws_cdk/aws_cognito/__init__.py +91 -12
- aws_cdk/aws_cognito_identitypool/__init__.py +6 -0
- aws_cdk/aws_config/__init__.py +36 -0
- aws_cdk/aws_datazone/__init__.py +557 -14
- aws_cdk/aws_docdb/__init__.py +27 -3
- aws_cdk/aws_dsql/__init__.py +21 -13
- aws_cdk/aws_dynamodb/__init__.py +20 -8
- aws_cdk/aws_ec2/__init__.py +282 -21
- aws_cdk/aws_ecr/__init__.py +6 -0
- aws_cdk/aws_ecr_assets/__init__.py +6 -0
- aws_cdk/aws_ecs/__init__.py +112 -19
- aws_cdk/aws_ecs_patterns/__init__.py +58 -0
- aws_cdk/aws_efs/__init__.py +12 -0
- aws_cdk/aws_eks/__init__.py +42 -0
- aws_cdk/aws_elasticloadbalancing/__init__.py +6 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +112 -9
- aws_cdk/aws_elasticsearch/__init__.py +9 -0
- aws_cdk/aws_events/__init__.py +36 -0
- aws_cdk/aws_events_targets/__init__.py +10 -10
- aws_cdk/aws_fsx/__init__.py +6 -0
- aws_cdk/aws_globalaccelerator/__init__.py +18 -0
- aws_cdk/aws_iam/__init__.py +66 -0
- aws_cdk/aws_imagebuilder/__init__.py +21 -16
- aws_cdk/aws_inspector/__init__.py +6 -0
- aws_cdk/aws_kinesis/__init__.py +19 -1
- aws_cdk/aws_kinesisanalytics/__init__.py +9 -11
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +9 -11
- aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
- aws_cdk/aws_kms/__init__.py +16 -4
- aws_cdk/aws_lambda/__init__.py +76 -6
- aws_cdk/aws_lambda_nodejs/__init__.py +6 -0
- aws_cdk/aws_logs/__init__.py +155 -12
- aws_cdk/aws_opensearchservice/__init__.py +6 -0
- aws_cdk/aws_quicksight/__init__.py +22 -22
- aws_cdk/aws_rds/__init__.py +306 -30
- aws_cdk/aws_redshiftserverless/__init__.py +7 -7
- aws_cdk/aws_route53/__init__.py +723 -25
- aws_cdk/aws_s3/__init__.py +37 -10
- aws_cdk/aws_s3_deployment/__init__.py +6 -0
- aws_cdk/aws_sagemaker/__init__.py +199 -4
- aws_cdk/aws_scheduler/__init__.py +12 -0
- aws_cdk/aws_secretsmanager/__init__.py +24 -0
- aws_cdk/aws_servicecatalog/__init__.py +24 -0
- aws_cdk/aws_servicediscovery/__init__.py +48 -0
- aws_cdk/aws_ses/__init__.py +133 -33
- aws_cdk/aws_signer/__init__.py +6 -0
- aws_cdk/aws_sns/__init__.py +18 -0
- aws_cdk/aws_sns_subscriptions/__init__.py +6 -0
- aws_cdk/aws_sqs/__init__.py +12 -0
- aws_cdk/aws_ssm/__init__.py +12 -0
- aws_cdk/aws_ssmcontacts/__init__.py +53 -2
- aws_cdk/aws_ssmguiconnect/__init__.py +7 -7
- aws_cdk/aws_stepfunctions/__init__.py +153 -7
- aws_cdk/aws_stepfunctions_tasks/__init__.py +46 -10
- aws_cdk/aws_synthetics/__init__.py +32 -0
- aws_cdk/aws_verifiedpermissions/__init__.py +168 -3
- aws_cdk/aws_vpclattice/__init__.py +3 -1
- aws_cdk/aws_wisdom/__init__.py +6 -4
- aws_cdk/custom_resources/__init__.py +18 -0
- aws_cdk/cx_api/__init__.py +33 -0
- aws_cdk/lambda_layer_awscli/__init__.py +6 -0
- aws_cdk/lambda_layer_node_proxy_agent/__init__.py +6 -0
- aws_cdk/pipelines/__init__.py +10 -10
- aws_cdk/triggers/__init__.py +6 -0
- {aws_cdk_lib-2.195.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/METADATA +83 -5
- {aws_cdk_lib-2.195.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/RECORD +100 -100
- {aws_cdk_lib-2.195.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.195.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.195.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.195.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -1372,7 +1372,7 @@ class CfnAgent(
|
|
|
1372
1372
|
*,
|
|
1373
1373
|
executor: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.OrchestrationExecutorProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1374
1374
|
) -> None:
|
|
1375
|
-
'''
|
|
1375
|
+
'''Contains details of the custom orchestration configured for the agent.
|
|
1376
1376
|
|
|
1377
1377
|
:param executor: The structure of the executor invoking the actions in custom orchestration.
|
|
1378
1378
|
|
|
@@ -1929,7 +1929,7 @@ class CfnAgent(
|
|
|
1929
1929
|
)
|
|
1930
1930
|
class OrchestrationExecutorProperty:
|
|
1931
1931
|
def __init__(self, *, lambda_: builtins.str) -> None:
|
|
1932
|
-
'''
|
|
1932
|
+
'''The structure of the executor invoking the actions in custom orchestration.
|
|
1933
1933
|
|
|
1934
1934
|
:param lambda_: The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
|
|
1935
1935
|
|
|
@@ -13301,7 +13301,7 @@ class CfnFlow(
|
|
|
13301
13301
|
|
|
13302
13302
|
:param agent: Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
|
|
13303
13303
|
:param collector: Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
|
|
13304
|
-
:param condition: Contains configurations for a
|
|
13304
|
+
:param condition: Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
|
|
13305
13305
|
:param input: Contains configurations for an input flow node in your flow. The first node in the flow. ``inputs`` can't be specified for this node.
|
|
13306
13306
|
:param iterator: Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
|
|
13307
13307
|
:param knowledge_base: Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
|
|
@@ -13309,8 +13309,8 @@ class CfnFlow(
|
|
|
13309
13309
|
:param lex: Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
|
|
13310
13310
|
:param output: Contains configurations for an output flow node in your flow. The last node in the flow. ``outputs`` can't be specified for this node.
|
|
13311
13311
|
:param prompt: Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
|
|
13312
|
-
:param retrieval: Contains configurations for a
|
|
13313
|
-
:param storage: Contains configurations for a
|
|
13312
|
+
:param retrieval: Contains configurations for a retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
|
|
13313
|
+
:param storage: Contains configurations for a storage node in your flow. Stores an input in an Amazon S3 location.
|
|
13314
13314
|
|
|
13315
13315
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html
|
|
13316
13316
|
:exampleMetadata: fixture=_generated
|
|
@@ -13480,7 +13480,7 @@ class CfnFlow(
|
|
|
13480
13480
|
def condition(
|
|
13481
13481
|
self,
|
|
13482
13482
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.ConditionFlowNodeConfigurationProperty"]]:
|
|
13483
|
-
'''Contains configurations for a
|
|
13483
|
+
'''Contains configurations for a condition node in your flow.
|
|
13484
13484
|
|
|
13485
13485
|
Defines conditions that lead to different branches of the flow.
|
|
13486
13486
|
|
|
@@ -13580,7 +13580,7 @@ class CfnFlow(
|
|
|
13580
13580
|
def retrieval(
|
|
13581
13581
|
self,
|
|
13582
13582
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.RetrievalFlowNodeConfigurationProperty"]]:
|
|
13583
|
-
'''Contains configurations for a
|
|
13583
|
+
'''Contains configurations for a retrieval node in your flow.
|
|
13584
13584
|
|
|
13585
13585
|
Retrieves data from an Amazon S3 location and returns it as the output.
|
|
13586
13586
|
|
|
@@ -13593,7 +13593,7 @@ class CfnFlow(
|
|
|
13593
13593
|
def storage(
|
|
13594
13594
|
self,
|
|
13595
13595
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.StorageFlowNodeConfigurationProperty"]]:
|
|
13596
|
-
'''Contains configurations for a
|
|
13596
|
+
'''Contains configurations for a storage node in your flow.
|
|
13597
13597
|
|
|
13598
13598
|
Stores an input in an Amazon S3 location.
|
|
13599
13599
|
|
|
@@ -17291,7 +17291,7 @@ class CfnFlowVersion(
|
|
|
17291
17291
|
|
|
17292
17292
|
:param agent: Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
|
|
17293
17293
|
:param collector: Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
|
|
17294
|
-
:param condition: Contains configurations for a
|
|
17294
|
+
:param condition: Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
|
|
17295
17295
|
:param input: Contains configurations for an input flow node in your flow. The first node in the flow. ``inputs`` can't be specified for this node.
|
|
17296
17296
|
:param iterator: Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
|
|
17297
17297
|
:param knowledge_base: Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
|
|
@@ -17299,8 +17299,8 @@ class CfnFlowVersion(
|
|
|
17299
17299
|
:param lex: Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
|
|
17300
17300
|
:param output: Contains configurations for an output flow node in your flow. The last node in the flow. ``outputs`` can't be specified for this node.
|
|
17301
17301
|
:param prompt: Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
|
|
17302
|
-
:param retrieval: Contains configurations for a
|
|
17303
|
-
:param storage: Contains configurations for a
|
|
17302
|
+
:param retrieval: Contains configurations for a retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
|
|
17303
|
+
:param storage: Contains configurations for a storage node in your flow. Stores an input in an Amazon S3 location.
|
|
17304
17304
|
|
|
17305
17305
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html
|
|
17306
17306
|
:exampleMetadata: fixture=_generated
|
|
@@ -17470,7 +17470,7 @@ class CfnFlowVersion(
|
|
|
17470
17470
|
def condition(
|
|
17471
17471
|
self,
|
|
17472
17472
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.ConditionFlowNodeConfigurationProperty"]]:
|
|
17473
|
-
'''Contains configurations for a
|
|
17473
|
+
'''Contains configurations for a condition node in your flow.
|
|
17474
17474
|
|
|
17475
17475
|
Defines conditions that lead to different branches of the flow.
|
|
17476
17476
|
|
|
@@ -17570,7 +17570,7 @@ class CfnFlowVersion(
|
|
|
17570
17570
|
def retrieval(
|
|
17571
17571
|
self,
|
|
17572
17572
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.RetrievalFlowNodeConfigurationProperty"]]:
|
|
17573
|
-
'''Contains configurations for a
|
|
17573
|
+
'''Contains configurations for a retrieval node in your flow.
|
|
17574
17574
|
|
|
17575
17575
|
Retrieves data from an Amazon S3 location and returns it as the output.
|
|
17576
17576
|
|
|
@@ -17583,7 +17583,7 @@ class CfnFlowVersion(
|
|
|
17583
17583
|
def storage(
|
|
17584
17584
|
self,
|
|
17585
17585
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.StorageFlowNodeConfigurationProperty"]]:
|
|
17586
|
-
'''Contains configurations for a
|
|
17586
|
+
'''Contains configurations for a storage node in your flow.
|
|
17587
17587
|
|
|
17588
17588
|
Stores an input in an Amazon S3 location.
|
|
17589
17589
|
|
|
@@ -22055,6 +22055,522 @@ class CfnGuardrailVersionProps:
|
|
|
22055
22055
|
)
|
|
22056
22056
|
|
|
22057
22057
|
|
|
22058
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
22059
|
+
class CfnIntelligentPromptRouter(
|
|
22060
|
+
_CfnResource_9df397a6,
|
|
22061
|
+
metaclass=jsii.JSIIMeta,
|
|
22062
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnIntelligentPromptRouter",
|
|
22063
|
+
):
|
|
22064
|
+
'''Definition of AWS::Bedrock::IntelligentPromptRouter Resource Type.
|
|
22065
|
+
|
|
22066
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html
|
|
22067
|
+
:cloudformationResource: AWS::Bedrock::IntelligentPromptRouter
|
|
22068
|
+
:exampleMetadata: fixture=_generated
|
|
22069
|
+
|
|
22070
|
+
Example::
|
|
22071
|
+
|
|
22072
|
+
# The code below shows an example of how to instantiate this type.
|
|
22073
|
+
# The values are placeholders you should change.
|
|
22074
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
22075
|
+
|
|
22076
|
+
cfn_intelligent_prompt_router = bedrock.CfnIntelligentPromptRouter(self, "MyCfnIntelligentPromptRouter",
|
|
22077
|
+
fallback_model=bedrock.CfnIntelligentPromptRouter.PromptRouterTargetModelProperty(
|
|
22078
|
+
model_arn="modelArn"
|
|
22079
|
+
),
|
|
22080
|
+
models=[bedrock.CfnIntelligentPromptRouter.PromptRouterTargetModelProperty(
|
|
22081
|
+
model_arn="modelArn"
|
|
22082
|
+
)],
|
|
22083
|
+
prompt_router_name="promptRouterName",
|
|
22084
|
+
routing_criteria=bedrock.CfnIntelligentPromptRouter.RoutingCriteriaProperty(
|
|
22085
|
+
response_quality_difference=123
|
|
22086
|
+
),
|
|
22087
|
+
|
|
22088
|
+
# the properties below are optional
|
|
22089
|
+
description="description",
|
|
22090
|
+
tags=[CfnTag(
|
|
22091
|
+
key="key",
|
|
22092
|
+
value="value"
|
|
22093
|
+
)]
|
|
22094
|
+
)
|
|
22095
|
+
'''
|
|
22096
|
+
|
|
22097
|
+
def __init__(
|
|
22098
|
+
self,
|
|
22099
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
22100
|
+
id: builtins.str,
|
|
22101
|
+
*,
|
|
22102
|
+
fallback_model: typing.Union[_IResolvable_da3f097b, typing.Union["CfnIntelligentPromptRouter.PromptRouterTargetModelProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
22103
|
+
models: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnIntelligentPromptRouter.PromptRouterTargetModelProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
22104
|
+
prompt_router_name: builtins.str,
|
|
22105
|
+
routing_criteria: typing.Union[_IResolvable_da3f097b, typing.Union["CfnIntelligentPromptRouter.RoutingCriteriaProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
22106
|
+
description: typing.Optional[builtins.str] = None,
|
|
22107
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22108
|
+
) -> None:
|
|
22109
|
+
'''
|
|
22110
|
+
:param scope: Scope in which this resource is defined.
|
|
22111
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
22112
|
+
:param fallback_model: Model configuration.
|
|
22113
|
+
:param models: List of model configuration.
|
|
22114
|
+
:param prompt_router_name: Name of the Prompt Router.
|
|
22115
|
+
:param routing_criteria: Routing criteria for a prompt router.
|
|
22116
|
+
:param description: Description of the Prompt Router.
|
|
22117
|
+
:param tags: List of Tags.
|
|
22118
|
+
'''
|
|
22119
|
+
if __debug__:
|
|
22120
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a5d2e514af9553d15e3be6a1c57dd1062d7a60fee139dbca24ce0ced551672eb)
|
|
22121
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
22122
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
22123
|
+
props = CfnIntelligentPromptRouterProps(
|
|
22124
|
+
fallback_model=fallback_model,
|
|
22125
|
+
models=models,
|
|
22126
|
+
prompt_router_name=prompt_router_name,
|
|
22127
|
+
routing_criteria=routing_criteria,
|
|
22128
|
+
description=description,
|
|
22129
|
+
tags=tags,
|
|
22130
|
+
)
|
|
22131
|
+
|
|
22132
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
22133
|
+
|
|
22134
|
+
@jsii.member(jsii_name="inspect")
|
|
22135
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
22136
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
22137
|
+
|
|
22138
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
22139
|
+
'''
|
|
22140
|
+
if __debug__:
|
|
22141
|
+
type_hints = typing.get_type_hints(_typecheckingstub__03b0b2936dfa8c510b4e2f9e5f7110304e75b128876e0272df9b9ac91dd26930)
|
|
22142
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
22143
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
22144
|
+
|
|
22145
|
+
@jsii.member(jsii_name="renderProperties")
|
|
22146
|
+
def _render_properties(
|
|
22147
|
+
self,
|
|
22148
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
22149
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
22150
|
+
'''
|
|
22151
|
+
:param props: -
|
|
22152
|
+
'''
|
|
22153
|
+
if __debug__:
|
|
22154
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9feb5c424ea1c452676a08cce16f75eb90f9235e27c9bfc0b9cbd839871891f3)
|
|
22155
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
22156
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
22157
|
+
|
|
22158
|
+
@jsii.python.classproperty
|
|
22159
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
22160
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
22161
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
22162
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
22163
|
+
|
|
22164
|
+
@builtins.property
|
|
22165
|
+
@jsii.member(jsii_name="attrCreatedAt")
|
|
22166
|
+
def attr_created_at(self) -> builtins.str:
|
|
22167
|
+
'''Time Stamp.
|
|
22168
|
+
|
|
22169
|
+
:cloudformationAttribute: CreatedAt
|
|
22170
|
+
'''
|
|
22171
|
+
return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
|
|
22172
|
+
|
|
22173
|
+
@builtins.property
|
|
22174
|
+
@jsii.member(jsii_name="attrPromptRouterArn")
|
|
22175
|
+
def attr_prompt_router_arn(self) -> builtins.str:
|
|
22176
|
+
'''Arn of the Prompt Router.
|
|
22177
|
+
|
|
22178
|
+
:cloudformationAttribute: PromptRouterArn
|
|
22179
|
+
'''
|
|
22180
|
+
return typing.cast(builtins.str, jsii.get(self, "attrPromptRouterArn"))
|
|
22181
|
+
|
|
22182
|
+
@builtins.property
|
|
22183
|
+
@jsii.member(jsii_name="attrStatus")
|
|
22184
|
+
def attr_status(self) -> builtins.str:
|
|
22185
|
+
'''Status of a PromptRouter.
|
|
22186
|
+
|
|
22187
|
+
:cloudformationAttribute: Status
|
|
22188
|
+
'''
|
|
22189
|
+
return typing.cast(builtins.str, jsii.get(self, "attrStatus"))
|
|
22190
|
+
|
|
22191
|
+
@builtins.property
|
|
22192
|
+
@jsii.member(jsii_name="attrType")
|
|
22193
|
+
def attr_type(self) -> builtins.str:
|
|
22194
|
+
'''Type of a Prompt Router.
|
|
22195
|
+
|
|
22196
|
+
:cloudformationAttribute: Type
|
|
22197
|
+
'''
|
|
22198
|
+
return typing.cast(builtins.str, jsii.get(self, "attrType"))
|
|
22199
|
+
|
|
22200
|
+
@builtins.property
|
|
22201
|
+
@jsii.member(jsii_name="attrUpdatedAt")
|
|
22202
|
+
def attr_updated_at(self) -> builtins.str:
|
|
22203
|
+
'''Time Stamp.
|
|
22204
|
+
|
|
22205
|
+
:cloudformationAttribute: UpdatedAt
|
|
22206
|
+
'''
|
|
22207
|
+
return typing.cast(builtins.str, jsii.get(self, "attrUpdatedAt"))
|
|
22208
|
+
|
|
22209
|
+
@builtins.property
|
|
22210
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
22211
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
22212
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
22213
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
22214
|
+
|
|
22215
|
+
@builtins.property
|
|
22216
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
22217
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
22218
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
22219
|
+
|
|
22220
|
+
@builtins.property
|
|
22221
|
+
@jsii.member(jsii_name="fallbackModel")
|
|
22222
|
+
def fallback_model(
|
|
22223
|
+
self,
|
|
22224
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnIntelligentPromptRouter.PromptRouterTargetModelProperty"]:
|
|
22225
|
+
'''Model configuration.'''
|
|
22226
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnIntelligentPromptRouter.PromptRouterTargetModelProperty"], jsii.get(self, "fallbackModel"))
|
|
22227
|
+
|
|
22228
|
+
@fallback_model.setter
|
|
22229
|
+
def fallback_model(
|
|
22230
|
+
self,
|
|
22231
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnIntelligentPromptRouter.PromptRouterTargetModelProperty"],
|
|
22232
|
+
) -> None:
|
|
22233
|
+
if __debug__:
|
|
22234
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cd80df76a813246a8e4277e3bc440f0bd9af1683df43577473a9071026d3b6bf)
|
|
22235
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
22236
|
+
jsii.set(self, "fallbackModel", value) # pyright: ignore[reportArgumentType]
|
|
22237
|
+
|
|
22238
|
+
@builtins.property
|
|
22239
|
+
@jsii.member(jsii_name="models")
|
|
22240
|
+
def models(
|
|
22241
|
+
self,
|
|
22242
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnIntelligentPromptRouter.PromptRouterTargetModelProperty"]]]:
|
|
22243
|
+
'''List of model configuration.'''
|
|
22244
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnIntelligentPromptRouter.PromptRouterTargetModelProperty"]]], jsii.get(self, "models"))
|
|
22245
|
+
|
|
22246
|
+
@models.setter
|
|
22247
|
+
def models(
|
|
22248
|
+
self,
|
|
22249
|
+
value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnIntelligentPromptRouter.PromptRouterTargetModelProperty"]]],
|
|
22250
|
+
) -> None:
|
|
22251
|
+
if __debug__:
|
|
22252
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a25f72fc5023b70494fc722f22f88047d6a2c0242e2e3e9faf9709606670791a)
|
|
22253
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
22254
|
+
jsii.set(self, "models", value) # pyright: ignore[reportArgumentType]
|
|
22255
|
+
|
|
22256
|
+
@builtins.property
|
|
22257
|
+
@jsii.member(jsii_name="promptRouterName")
|
|
22258
|
+
def prompt_router_name(self) -> builtins.str:
|
|
22259
|
+
'''Name of the Prompt Router.'''
|
|
22260
|
+
return typing.cast(builtins.str, jsii.get(self, "promptRouterName"))
|
|
22261
|
+
|
|
22262
|
+
@prompt_router_name.setter
|
|
22263
|
+
def prompt_router_name(self, value: builtins.str) -> None:
|
|
22264
|
+
if __debug__:
|
|
22265
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ec21107d1eca7e309bcd9f3df4a7749c2b99c2f6c11a70183255fce541a6087f)
|
|
22266
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
22267
|
+
jsii.set(self, "promptRouterName", value) # pyright: ignore[reportArgumentType]
|
|
22268
|
+
|
|
22269
|
+
@builtins.property
|
|
22270
|
+
@jsii.member(jsii_name="routingCriteria")
|
|
22271
|
+
def routing_criteria(
|
|
22272
|
+
self,
|
|
22273
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnIntelligentPromptRouter.RoutingCriteriaProperty"]:
|
|
22274
|
+
'''Routing criteria for a prompt router.'''
|
|
22275
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnIntelligentPromptRouter.RoutingCriteriaProperty"], jsii.get(self, "routingCriteria"))
|
|
22276
|
+
|
|
22277
|
+
@routing_criteria.setter
|
|
22278
|
+
def routing_criteria(
|
|
22279
|
+
self,
|
|
22280
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnIntelligentPromptRouter.RoutingCriteriaProperty"],
|
|
22281
|
+
) -> None:
|
|
22282
|
+
if __debug__:
|
|
22283
|
+
type_hints = typing.get_type_hints(_typecheckingstub__803bc18993ea7d90a900939d6578f087141fb630c6e5d87b74ad4e7fa6b91af8)
|
|
22284
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
22285
|
+
jsii.set(self, "routingCriteria", value) # pyright: ignore[reportArgumentType]
|
|
22286
|
+
|
|
22287
|
+
@builtins.property
|
|
22288
|
+
@jsii.member(jsii_name="description")
|
|
22289
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
22290
|
+
'''Description of the Prompt Router.'''
|
|
22291
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
22292
|
+
|
|
22293
|
+
@description.setter
|
|
22294
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
22295
|
+
if __debug__:
|
|
22296
|
+
type_hints = typing.get_type_hints(_typecheckingstub__08709ed1bc4a3037160cec605e0b1bd4113b22ec101704d31096b5c625a9d9cf)
|
|
22297
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
22298
|
+
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
22299
|
+
|
|
22300
|
+
@builtins.property
|
|
22301
|
+
@jsii.member(jsii_name="tags")
|
|
22302
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
22303
|
+
'''List of Tags.'''
|
|
22304
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
22305
|
+
|
|
22306
|
+
@tags.setter
|
|
22307
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
22308
|
+
if __debug__:
|
|
22309
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3c6153dd14f4fef3c8f916f48185faa26c1372a89eb9c48120b46b15741ed8d3)
|
|
22310
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
22311
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
22312
|
+
|
|
22313
|
+
@jsii.data_type(
|
|
22314
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnIntelligentPromptRouter.PromptRouterTargetModelProperty",
|
|
22315
|
+
jsii_struct_bases=[],
|
|
22316
|
+
name_mapping={"model_arn": "modelArn"},
|
|
22317
|
+
)
|
|
22318
|
+
class PromptRouterTargetModelProperty:
|
|
22319
|
+
def __init__(self, *, model_arn: builtins.str) -> None:
|
|
22320
|
+
'''The target model for a prompt router.
|
|
22321
|
+
|
|
22322
|
+
:param model_arn: The target model's ARN.
|
|
22323
|
+
|
|
22324
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-promptroutertargetmodel.html
|
|
22325
|
+
:exampleMetadata: fixture=_generated
|
|
22326
|
+
|
|
22327
|
+
Example::
|
|
22328
|
+
|
|
22329
|
+
# The code below shows an example of how to instantiate this type.
|
|
22330
|
+
# The values are placeholders you should change.
|
|
22331
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
22332
|
+
|
|
22333
|
+
prompt_router_target_model_property = bedrock.CfnIntelligentPromptRouter.PromptRouterTargetModelProperty(
|
|
22334
|
+
model_arn="modelArn"
|
|
22335
|
+
)
|
|
22336
|
+
'''
|
|
22337
|
+
if __debug__:
|
|
22338
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f13c2a7cb42b0b44b093f57856aeb21f6e80f9a98941ae4c0bcca2d340bc4c74)
|
|
22339
|
+
check_type(argname="argument model_arn", value=model_arn, expected_type=type_hints["model_arn"])
|
|
22340
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22341
|
+
"model_arn": model_arn,
|
|
22342
|
+
}
|
|
22343
|
+
|
|
22344
|
+
@builtins.property
|
|
22345
|
+
def model_arn(self) -> builtins.str:
|
|
22346
|
+
'''The target model's ARN.
|
|
22347
|
+
|
|
22348
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-promptroutertargetmodel.html#cfn-bedrock-intelligentpromptrouter-promptroutertargetmodel-modelarn
|
|
22349
|
+
'''
|
|
22350
|
+
result = self._values.get("model_arn")
|
|
22351
|
+
assert result is not None, "Required property 'model_arn' is missing"
|
|
22352
|
+
return typing.cast(builtins.str, result)
|
|
22353
|
+
|
|
22354
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22355
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22356
|
+
|
|
22357
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
22358
|
+
return not (rhs == self)
|
|
22359
|
+
|
|
22360
|
+
def __repr__(self) -> str:
|
|
22361
|
+
return "PromptRouterTargetModelProperty(%s)" % ", ".join(
|
|
22362
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
22363
|
+
)
|
|
22364
|
+
|
|
22365
|
+
@jsii.data_type(
|
|
22366
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnIntelligentPromptRouter.RoutingCriteriaProperty",
|
|
22367
|
+
jsii_struct_bases=[],
|
|
22368
|
+
name_mapping={"response_quality_difference": "responseQualityDifference"},
|
|
22369
|
+
)
|
|
22370
|
+
class RoutingCriteriaProperty:
|
|
22371
|
+
def __init__(self, *, response_quality_difference: jsii.Number) -> None:
|
|
22372
|
+
'''Routing criteria for a prompt router.
|
|
22373
|
+
|
|
22374
|
+
:param response_quality_difference: The criteria's response quality difference.
|
|
22375
|
+
|
|
22376
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-routingcriteria.html
|
|
22377
|
+
:exampleMetadata: fixture=_generated
|
|
22378
|
+
|
|
22379
|
+
Example::
|
|
22380
|
+
|
|
22381
|
+
# The code below shows an example of how to instantiate this type.
|
|
22382
|
+
# The values are placeholders you should change.
|
|
22383
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
22384
|
+
|
|
22385
|
+
routing_criteria_property = bedrock.CfnIntelligentPromptRouter.RoutingCriteriaProperty(
|
|
22386
|
+
response_quality_difference=123
|
|
22387
|
+
)
|
|
22388
|
+
'''
|
|
22389
|
+
if __debug__:
|
|
22390
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7b122742002952822ca4101c16f95952147a47cfb8a5ad666e4a2aa644ea2023)
|
|
22391
|
+
check_type(argname="argument response_quality_difference", value=response_quality_difference, expected_type=type_hints["response_quality_difference"])
|
|
22392
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22393
|
+
"response_quality_difference": response_quality_difference,
|
|
22394
|
+
}
|
|
22395
|
+
|
|
22396
|
+
@builtins.property
|
|
22397
|
+
def response_quality_difference(self) -> jsii.Number:
|
|
22398
|
+
'''The criteria's response quality difference.
|
|
22399
|
+
|
|
22400
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-routingcriteria.html#cfn-bedrock-intelligentpromptrouter-routingcriteria-responsequalitydifference
|
|
22401
|
+
'''
|
|
22402
|
+
result = self._values.get("response_quality_difference")
|
|
22403
|
+
assert result is not None, "Required property 'response_quality_difference' is missing"
|
|
22404
|
+
return typing.cast(jsii.Number, result)
|
|
22405
|
+
|
|
22406
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22407
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22408
|
+
|
|
22409
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
22410
|
+
return not (rhs == self)
|
|
22411
|
+
|
|
22412
|
+
def __repr__(self) -> str:
|
|
22413
|
+
return "RoutingCriteriaProperty(%s)" % ", ".join(
|
|
22414
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
22415
|
+
)
|
|
22416
|
+
|
|
22417
|
+
|
|
22418
|
+
@jsii.data_type(
|
|
22419
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnIntelligentPromptRouterProps",
|
|
22420
|
+
jsii_struct_bases=[],
|
|
22421
|
+
name_mapping={
|
|
22422
|
+
"fallback_model": "fallbackModel",
|
|
22423
|
+
"models": "models",
|
|
22424
|
+
"prompt_router_name": "promptRouterName",
|
|
22425
|
+
"routing_criteria": "routingCriteria",
|
|
22426
|
+
"description": "description",
|
|
22427
|
+
"tags": "tags",
|
|
22428
|
+
},
|
|
22429
|
+
)
|
|
22430
|
+
class CfnIntelligentPromptRouterProps:
|
|
22431
|
+
def __init__(
|
|
22432
|
+
self,
|
|
22433
|
+
*,
|
|
22434
|
+
fallback_model: typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntelligentPromptRouter.PromptRouterTargetModelProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
22435
|
+
models: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntelligentPromptRouter.PromptRouterTargetModelProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
22436
|
+
prompt_router_name: builtins.str,
|
|
22437
|
+
routing_criteria: typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntelligentPromptRouter.RoutingCriteriaProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
22438
|
+
description: typing.Optional[builtins.str] = None,
|
|
22439
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22440
|
+
) -> None:
|
|
22441
|
+
'''Properties for defining a ``CfnIntelligentPromptRouter``.
|
|
22442
|
+
|
|
22443
|
+
:param fallback_model: Model configuration.
|
|
22444
|
+
:param models: List of model configuration.
|
|
22445
|
+
:param prompt_router_name: Name of the Prompt Router.
|
|
22446
|
+
:param routing_criteria: Routing criteria for a prompt router.
|
|
22447
|
+
:param description: Description of the Prompt Router.
|
|
22448
|
+
:param tags: List of Tags.
|
|
22449
|
+
|
|
22450
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html
|
|
22451
|
+
:exampleMetadata: fixture=_generated
|
|
22452
|
+
|
|
22453
|
+
Example::
|
|
22454
|
+
|
|
22455
|
+
# The code below shows an example of how to instantiate this type.
|
|
22456
|
+
# The values are placeholders you should change.
|
|
22457
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
22458
|
+
|
|
22459
|
+
cfn_intelligent_prompt_router_props = bedrock.CfnIntelligentPromptRouterProps(
|
|
22460
|
+
fallback_model=bedrock.CfnIntelligentPromptRouter.PromptRouterTargetModelProperty(
|
|
22461
|
+
model_arn="modelArn"
|
|
22462
|
+
),
|
|
22463
|
+
models=[bedrock.CfnIntelligentPromptRouter.PromptRouterTargetModelProperty(
|
|
22464
|
+
model_arn="modelArn"
|
|
22465
|
+
)],
|
|
22466
|
+
prompt_router_name="promptRouterName",
|
|
22467
|
+
routing_criteria=bedrock.CfnIntelligentPromptRouter.RoutingCriteriaProperty(
|
|
22468
|
+
response_quality_difference=123
|
|
22469
|
+
),
|
|
22470
|
+
|
|
22471
|
+
# the properties below are optional
|
|
22472
|
+
description="description",
|
|
22473
|
+
tags=[CfnTag(
|
|
22474
|
+
key="key",
|
|
22475
|
+
value="value"
|
|
22476
|
+
)]
|
|
22477
|
+
)
|
|
22478
|
+
'''
|
|
22479
|
+
if __debug__:
|
|
22480
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ac97327bebd43ad8b942919c24917e1378d3c55caa8d2363928873ac029be7da)
|
|
22481
|
+
check_type(argname="argument fallback_model", value=fallback_model, expected_type=type_hints["fallback_model"])
|
|
22482
|
+
check_type(argname="argument models", value=models, expected_type=type_hints["models"])
|
|
22483
|
+
check_type(argname="argument prompt_router_name", value=prompt_router_name, expected_type=type_hints["prompt_router_name"])
|
|
22484
|
+
check_type(argname="argument routing_criteria", value=routing_criteria, expected_type=type_hints["routing_criteria"])
|
|
22485
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
22486
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
22487
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22488
|
+
"fallback_model": fallback_model,
|
|
22489
|
+
"models": models,
|
|
22490
|
+
"prompt_router_name": prompt_router_name,
|
|
22491
|
+
"routing_criteria": routing_criteria,
|
|
22492
|
+
}
|
|
22493
|
+
if description is not None:
|
|
22494
|
+
self._values["description"] = description
|
|
22495
|
+
if tags is not None:
|
|
22496
|
+
self._values["tags"] = tags
|
|
22497
|
+
|
|
22498
|
+
@builtins.property
|
|
22499
|
+
def fallback_model(
|
|
22500
|
+
self,
|
|
22501
|
+
) -> typing.Union[_IResolvable_da3f097b, CfnIntelligentPromptRouter.PromptRouterTargetModelProperty]:
|
|
22502
|
+
'''Model configuration.
|
|
22503
|
+
|
|
22504
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-fallbackmodel
|
|
22505
|
+
'''
|
|
22506
|
+
result = self._values.get("fallback_model")
|
|
22507
|
+
assert result is not None, "Required property 'fallback_model' is missing"
|
|
22508
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnIntelligentPromptRouter.PromptRouterTargetModelProperty], result)
|
|
22509
|
+
|
|
22510
|
+
@builtins.property
|
|
22511
|
+
def models(
|
|
22512
|
+
self,
|
|
22513
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnIntelligentPromptRouter.PromptRouterTargetModelProperty]]]:
|
|
22514
|
+
'''List of model configuration.
|
|
22515
|
+
|
|
22516
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-models
|
|
22517
|
+
'''
|
|
22518
|
+
result = self._values.get("models")
|
|
22519
|
+
assert result is not None, "Required property 'models' is missing"
|
|
22520
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnIntelligentPromptRouter.PromptRouterTargetModelProperty]]], result)
|
|
22521
|
+
|
|
22522
|
+
@builtins.property
|
|
22523
|
+
def prompt_router_name(self) -> builtins.str:
|
|
22524
|
+
'''Name of the Prompt Router.
|
|
22525
|
+
|
|
22526
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-promptroutername
|
|
22527
|
+
'''
|
|
22528
|
+
result = self._values.get("prompt_router_name")
|
|
22529
|
+
assert result is not None, "Required property 'prompt_router_name' is missing"
|
|
22530
|
+
return typing.cast(builtins.str, result)
|
|
22531
|
+
|
|
22532
|
+
@builtins.property
|
|
22533
|
+
def routing_criteria(
|
|
22534
|
+
self,
|
|
22535
|
+
) -> typing.Union[_IResolvable_da3f097b, CfnIntelligentPromptRouter.RoutingCriteriaProperty]:
|
|
22536
|
+
'''Routing criteria for a prompt router.
|
|
22537
|
+
|
|
22538
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-routingcriteria
|
|
22539
|
+
'''
|
|
22540
|
+
result = self._values.get("routing_criteria")
|
|
22541
|
+
assert result is not None, "Required property 'routing_criteria' is missing"
|
|
22542
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnIntelligentPromptRouter.RoutingCriteriaProperty], result)
|
|
22543
|
+
|
|
22544
|
+
@builtins.property
|
|
22545
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
22546
|
+
'''Description of the Prompt Router.
|
|
22547
|
+
|
|
22548
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-description
|
|
22549
|
+
'''
|
|
22550
|
+
result = self._values.get("description")
|
|
22551
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
22552
|
+
|
|
22553
|
+
@builtins.property
|
|
22554
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
22555
|
+
'''List of Tags.
|
|
22556
|
+
|
|
22557
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#cfn-bedrock-intelligentpromptrouter-tags
|
|
22558
|
+
'''
|
|
22559
|
+
result = self._values.get("tags")
|
|
22560
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
22561
|
+
|
|
22562
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
22563
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
22564
|
+
|
|
22565
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
22566
|
+
return not (rhs == self)
|
|
22567
|
+
|
|
22568
|
+
def __repr__(self) -> str:
|
|
22569
|
+
return "CfnIntelligentPromptRouterProps(%s)" % ", ".join(
|
|
22570
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
22571
|
+
)
|
|
22572
|
+
|
|
22573
|
+
|
|
22058
22574
|
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
22059
22575
|
class CfnKnowledgeBase(
|
|
22060
22576
|
_CfnResource_9df397a6,
|
|
@@ -32260,6 +32776,8 @@ __all__ = [
|
|
|
32260
32776
|
"CfnGuardrailProps",
|
|
32261
32777
|
"CfnGuardrailVersion",
|
|
32262
32778
|
"CfnGuardrailVersionProps",
|
|
32779
|
+
"CfnIntelligentPromptRouter",
|
|
32780
|
+
"CfnIntelligentPromptRouterProps",
|
|
32263
32781
|
"CfnKnowledgeBase",
|
|
32264
32782
|
"CfnKnowledgeBaseProps",
|
|
32265
32783
|
"CfnPrompt",
|
|
@@ -34637,6 +35155,94 @@ def _typecheckingstub__e07f1ed805e6d73c6e83274e605414f148ca0a10b6065c654e3b54502
|
|
|
34637
35155
|
"""Type checking stubs"""
|
|
34638
35156
|
pass
|
|
34639
35157
|
|
|
35158
|
+
def _typecheckingstub__a5d2e514af9553d15e3be6a1c57dd1062d7a60fee139dbca24ce0ced551672eb(
|
|
35159
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
35160
|
+
id: builtins.str,
|
|
35161
|
+
*,
|
|
35162
|
+
fallback_model: typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntelligentPromptRouter.PromptRouterTargetModelProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
35163
|
+
models: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntelligentPromptRouter.PromptRouterTargetModelProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
35164
|
+
prompt_router_name: builtins.str,
|
|
35165
|
+
routing_criteria: typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntelligentPromptRouter.RoutingCriteriaProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
35166
|
+
description: typing.Optional[builtins.str] = None,
|
|
35167
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
35168
|
+
) -> None:
|
|
35169
|
+
"""Type checking stubs"""
|
|
35170
|
+
pass
|
|
35171
|
+
|
|
35172
|
+
def _typecheckingstub__03b0b2936dfa8c510b4e2f9e5f7110304e75b128876e0272df9b9ac91dd26930(
|
|
35173
|
+
inspector: _TreeInspector_488e0dd5,
|
|
35174
|
+
) -> None:
|
|
35175
|
+
"""Type checking stubs"""
|
|
35176
|
+
pass
|
|
35177
|
+
|
|
35178
|
+
def _typecheckingstub__9feb5c424ea1c452676a08cce16f75eb90f9235e27c9bfc0b9cbd839871891f3(
|
|
35179
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
35180
|
+
) -> None:
|
|
35181
|
+
"""Type checking stubs"""
|
|
35182
|
+
pass
|
|
35183
|
+
|
|
35184
|
+
def _typecheckingstub__cd80df76a813246a8e4277e3bc440f0bd9af1683df43577473a9071026d3b6bf(
|
|
35185
|
+
value: typing.Union[_IResolvable_da3f097b, CfnIntelligentPromptRouter.PromptRouterTargetModelProperty],
|
|
35186
|
+
) -> None:
|
|
35187
|
+
"""Type checking stubs"""
|
|
35188
|
+
pass
|
|
35189
|
+
|
|
35190
|
+
def _typecheckingstub__a25f72fc5023b70494fc722f22f88047d6a2c0242e2e3e9faf9709606670791a(
|
|
35191
|
+
value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnIntelligentPromptRouter.PromptRouterTargetModelProperty]]],
|
|
35192
|
+
) -> None:
|
|
35193
|
+
"""Type checking stubs"""
|
|
35194
|
+
pass
|
|
35195
|
+
|
|
35196
|
+
def _typecheckingstub__ec21107d1eca7e309bcd9f3df4a7749c2b99c2f6c11a70183255fce541a6087f(
|
|
35197
|
+
value: builtins.str,
|
|
35198
|
+
) -> None:
|
|
35199
|
+
"""Type checking stubs"""
|
|
35200
|
+
pass
|
|
35201
|
+
|
|
35202
|
+
def _typecheckingstub__803bc18993ea7d90a900939d6578f087141fb630c6e5d87b74ad4e7fa6b91af8(
|
|
35203
|
+
value: typing.Union[_IResolvable_da3f097b, CfnIntelligentPromptRouter.RoutingCriteriaProperty],
|
|
35204
|
+
) -> None:
|
|
35205
|
+
"""Type checking stubs"""
|
|
35206
|
+
pass
|
|
35207
|
+
|
|
35208
|
+
def _typecheckingstub__08709ed1bc4a3037160cec605e0b1bd4113b22ec101704d31096b5c625a9d9cf(
|
|
35209
|
+
value: typing.Optional[builtins.str],
|
|
35210
|
+
) -> None:
|
|
35211
|
+
"""Type checking stubs"""
|
|
35212
|
+
pass
|
|
35213
|
+
|
|
35214
|
+
def _typecheckingstub__3c6153dd14f4fef3c8f916f48185faa26c1372a89eb9c48120b46b15741ed8d3(
|
|
35215
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
35216
|
+
) -> None:
|
|
35217
|
+
"""Type checking stubs"""
|
|
35218
|
+
pass
|
|
35219
|
+
|
|
35220
|
+
def _typecheckingstub__f13c2a7cb42b0b44b093f57856aeb21f6e80f9a98941ae4c0bcca2d340bc4c74(
|
|
35221
|
+
*,
|
|
35222
|
+
model_arn: builtins.str,
|
|
35223
|
+
) -> None:
|
|
35224
|
+
"""Type checking stubs"""
|
|
35225
|
+
pass
|
|
35226
|
+
|
|
35227
|
+
def _typecheckingstub__7b122742002952822ca4101c16f95952147a47cfb8a5ad666e4a2aa644ea2023(
|
|
35228
|
+
*,
|
|
35229
|
+
response_quality_difference: jsii.Number,
|
|
35230
|
+
) -> None:
|
|
35231
|
+
"""Type checking stubs"""
|
|
35232
|
+
pass
|
|
35233
|
+
|
|
35234
|
+
def _typecheckingstub__ac97327bebd43ad8b942919c24917e1378d3c55caa8d2363928873ac029be7da(
|
|
35235
|
+
*,
|
|
35236
|
+
fallback_model: typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntelligentPromptRouter.PromptRouterTargetModelProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
35237
|
+
models: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntelligentPromptRouter.PromptRouterTargetModelProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
35238
|
+
prompt_router_name: builtins.str,
|
|
35239
|
+
routing_criteria: typing.Union[_IResolvable_da3f097b, typing.Union[CfnIntelligentPromptRouter.RoutingCriteriaProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
35240
|
+
description: typing.Optional[builtins.str] = None,
|
|
35241
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
35242
|
+
) -> None:
|
|
35243
|
+
"""Type checking stubs"""
|
|
35244
|
+
pass
|
|
35245
|
+
|
|
34640
35246
|
def _typecheckingstub__6ef81b8dcbedbd76b5a39a6fd5a967ba49aa887b63aad45e2bc246c96c7abcec(
|
|
34641
35247
|
scope: _constructs_77d1e7e8.Construct,
|
|
34642
35248
|
id: builtins.str,
|