aws-cdk-lib 2.173.3__py3-none-any.whl → 2.174.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 +210 -181
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.173.3.jsii.tgz → aws-cdk-lib@2.174.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +127 -168
- aws_cdk/aws_appconfig/__init__.py +498 -1
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -1
- aws_cdk/aws_appsync/__init__.py +4 -0
- aws_cdk/aws_autoscaling/__init__.py +96 -0
- aws_cdk/aws_batch/__init__.py +1084 -233
- aws_cdk/aws_bedrock/__init__.py +2119 -181
- aws_cdk/aws_cassandra/__init__.py +476 -4
- aws_cdk/aws_cleanrooms/__init__.py +543 -17
- aws_cdk/aws_cloudformation/__init__.py +172 -169
- aws_cdk/aws_cloudfront/__init__.py +773 -26
- aws_cdk/aws_cloudtrail/__init__.py +8 -2
- aws_cdk/aws_codebuild/__init__.py +83 -0
- aws_cdk/aws_codepipeline/__init__.py +2 -1
- aws_cdk/aws_cognito/__init__.py +232 -200
- aws_cdk/aws_connect/__init__.py +187 -36
- aws_cdk/aws_connectcampaignsv2/__init__.py +106 -12
- aws_cdk/aws_databrew/__init__.py +69 -1
- aws_cdk/aws_datasync/__init__.py +33 -28
- aws_cdk/aws_datazone/__init__.py +141 -41
- aws_cdk/aws_dlm/__init__.py +20 -10
- aws_cdk/aws_dms/__init__.py +722 -30
- aws_cdk/aws_dynamodb/__init__.py +76 -4
- aws_cdk/aws_ec2/__init__.py +1233 -65
- aws_cdk/aws_ecr/__init__.py +31 -0
- aws_cdk/aws_ecr_assets/__init__.py +5 -0
- aws_cdk/aws_ecs/__init__.py +88 -11
- aws_cdk/aws_efs/__init__.py +15 -8
- aws_cdk/aws_eks/__init__.py +114 -45
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
- aws_cdk/aws_emrserverless/__init__.py +143 -0
- aws_cdk/aws_events/__init__.py +50 -30
- aws_cdk/aws_fis/__init__.py +33 -33
- aws_cdk/aws_fsx/__init__.py +20 -10
- aws_cdk/aws_glue/__init__.py +34 -11
- aws_cdk/aws_greengrass/__init__.py +8 -8
- aws_cdk/aws_guardduty/__init__.py +1 -1
- aws_cdk/aws_imagebuilder/__init__.py +45 -47
- aws_cdk/aws_internetmonitor/__init__.py +3 -3
- aws_cdk/aws_invoicing/__init__.py +55 -30
- aws_cdk/aws_iot/__init__.py +1117 -4
- aws_cdk/aws_iot1click/__init__.py +17 -7
- aws_cdk/aws_kendra/__init__.py +4 -6
- aws_cdk/aws_lambda/__init__.py +15 -1
- aws_cdk/aws_logs/__init__.py +4011 -86
- aws_cdk/aws_m2/__init__.py +41 -0
- aws_cdk/aws_mediaconnect/__init__.py +202 -7
- aws_cdk/aws_memorydb/__init__.py +22 -22
- aws_cdk/aws_networkmanager/__init__.py +758 -0
- aws_cdk/aws_opensearchservice/__init__.py +222 -0
- aws_cdk/aws_organizations/__init__.py +5 -3
- aws_cdk/aws_pcs/__init__.py +3038 -0
- aws_cdk/aws_pipes/__init__.py +10 -10
- aws_cdk/aws_qbusiness/__init__.py +415 -140
- aws_cdk/aws_quicksight/__init__.py +15932 -6448
- aws_cdk/aws_ram/__init__.py +5 -11
- aws_cdk/aws_rbin/__init__.py +28 -16
- aws_cdk/aws_rds/__init__.py +184 -24
- aws_cdk/aws_redshiftserverless/__init__.py +156 -0
- aws_cdk/aws_resiliencehub/__init__.py +2 -1
- aws_cdk/aws_route53_targets/__init__.py +5 -5
- aws_cdk/aws_s3/__init__.py +25 -15
- aws_cdk/aws_s3express/__init__.py +7 -7
- aws_cdk/aws_s3tables/__init__.py +683 -0
- aws_cdk/aws_sagemaker/__init__.py +574 -189
- aws_cdk/aws_secretsmanager/__init__.py +2 -0
- aws_cdk/aws_securityhub/__init__.py +41 -165
- aws_cdk/aws_servicediscovery/__init__.py +10 -3
- aws_cdk/aws_ses/__init__.py +190 -5
- aws_cdk/aws_sns/__init__.py +7 -3
- aws_cdk/aws_synthetics/__init__.py +29 -4
- aws_cdk/aws_transfer/__init__.py +8 -0
- aws_cdk/aws_vpclattice/__init__.py +147 -77
- aws_cdk/aws_wafv2/__init__.py +20 -8
- aws_cdk/aws_wisdom/__init__.py +162 -111
- aws_cdk/aws_workspaces/__init__.py +10 -4
- aws_cdk/cloud_assembly_schema/__init__.py +22 -0
- aws_cdk/custom_resources/__init__.py +31 -0
- aws_cdk/cx_api/__init__.py +19 -0
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/LICENSE +1 -1
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/NOTICE +1 -1
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/RECORD +88 -86
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.173.3.dist-info → aws_cdk_lib-2.174.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -135,7 +135,8 @@ class CfnAgent(
|
|
|
135
135
|
description="description",
|
|
136
136
|
required=False
|
|
137
137
|
)
|
|
138
|
-
}
|
|
138
|
+
},
|
|
139
|
+
require_confirmation="requireConfirmation"
|
|
139
140
|
)]
|
|
140
141
|
),
|
|
141
142
|
parent_action_group_signature="parentActionGroupSignature",
|
|
@@ -846,7 +847,8 @@ class CfnAgent(
|
|
|
846
847
|
description="description",
|
|
847
848
|
required=False
|
|
848
849
|
)
|
|
849
|
-
}
|
|
850
|
+
},
|
|
851
|
+
require_confirmation="requireConfirmation"
|
|
850
852
|
)]
|
|
851
853
|
),
|
|
852
854
|
parent_action_group_signature="parentActionGroupSignature",
|
|
@@ -1080,6 +1082,7 @@ class CfnAgent(
|
|
|
1080
1082
|
"name": "name",
|
|
1081
1083
|
"description": "description",
|
|
1082
1084
|
"parameters": "parameters",
|
|
1085
|
+
"require_confirmation": "requireConfirmation",
|
|
1083
1086
|
},
|
|
1084
1087
|
)
|
|
1085
1088
|
class FunctionProperty:
|
|
@@ -1089,6 +1092,7 @@ class CfnAgent(
|
|
|
1089
1092
|
name: builtins.str,
|
|
1090
1093
|
description: typing.Optional[builtins.str] = None,
|
|
1091
1094
|
parameters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.ParameterDetailProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1095
|
+
require_confirmation: typing.Optional[builtins.str] = None,
|
|
1092
1096
|
) -> None:
|
|
1093
1097
|
'''Defines parameters that the agent needs to invoke from the user to complete the function.
|
|
1094
1098
|
|
|
@@ -1105,6 +1109,7 @@ class CfnAgent(
|
|
|
1105
1109
|
:param name: A name for the function.
|
|
1106
1110
|
:param description: A description of the function and its purpose.
|
|
1107
1111
|
:param parameters: The parameters that the agent elicits from the user to fulfill the function.
|
|
1112
|
+
:param require_confirmation: Contains information if user confirmation is required to invoke the function.
|
|
1108
1113
|
|
|
1109
1114
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html
|
|
1110
1115
|
:exampleMetadata: fixture=_generated
|
|
@@ -1128,7 +1133,8 @@ class CfnAgent(
|
|
|
1128
1133
|
description="description",
|
|
1129
1134
|
required=False
|
|
1130
1135
|
)
|
|
1131
|
-
}
|
|
1136
|
+
},
|
|
1137
|
+
require_confirmation="requireConfirmation"
|
|
1132
1138
|
)
|
|
1133
1139
|
'''
|
|
1134
1140
|
if __debug__:
|
|
@@ -1136,6 +1142,7 @@ class CfnAgent(
|
|
|
1136
1142
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
1137
1143
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
1138
1144
|
check_type(argname="argument parameters", value=parameters, expected_type=type_hints["parameters"])
|
|
1145
|
+
check_type(argname="argument require_confirmation", value=require_confirmation, expected_type=type_hints["require_confirmation"])
|
|
1139
1146
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1140
1147
|
"name": name,
|
|
1141
1148
|
}
|
|
@@ -1143,6 +1150,8 @@ class CfnAgent(
|
|
|
1143
1150
|
self._values["description"] = description
|
|
1144
1151
|
if parameters is not None:
|
|
1145
1152
|
self._values["parameters"] = parameters
|
|
1153
|
+
if require_confirmation is not None:
|
|
1154
|
+
self._values["require_confirmation"] = require_confirmation
|
|
1146
1155
|
|
|
1147
1156
|
@builtins.property
|
|
1148
1157
|
def name(self) -> builtins.str:
|
|
@@ -1174,6 +1183,15 @@ class CfnAgent(
|
|
|
1174
1183
|
result = self._values.get("parameters")
|
|
1175
1184
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, "CfnAgent.ParameterDetailProperty"]]]], result)
|
|
1176
1185
|
|
|
1186
|
+
@builtins.property
|
|
1187
|
+
def require_confirmation(self) -> typing.Optional[builtins.str]:
|
|
1188
|
+
'''Contains information if user confirmation is required to invoke the function.
|
|
1189
|
+
|
|
1190
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-function.html#cfn-bedrock-agent-function-requireconfirmation
|
|
1191
|
+
'''
|
|
1192
|
+
result = self._values.get("require_confirmation")
|
|
1193
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1194
|
+
|
|
1177
1195
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1178
1196
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1179
1197
|
|
|
@@ -1223,7 +1241,8 @@ class CfnAgent(
|
|
|
1223
1241
|
description="description",
|
|
1224
1242
|
required=False
|
|
1225
1243
|
)
|
|
1226
|
-
}
|
|
1244
|
+
},
|
|
1245
|
+
require_confirmation="requireConfirmation"
|
|
1227
1246
|
)]
|
|
1228
1247
|
)
|
|
1229
1248
|
'''
|
|
@@ -2529,7 +2548,8 @@ class CfnAgentProps:
|
|
|
2529
2548
|
description="description",
|
|
2530
2549
|
required=False
|
|
2531
2550
|
)
|
|
2532
|
-
}
|
|
2551
|
+
},
|
|
2552
|
+
require_confirmation="requireConfirmation"
|
|
2533
2553
|
)]
|
|
2534
2554
|
),
|
|
2535
2555
|
parent_action_group_signature="parentActionGroupSignature",
|
|
@@ -3462,10 +3482,14 @@ class CfnDataSource(
|
|
|
3462
3482
|
parsing_strategy="parsingStrategy",
|
|
3463
3483
|
|
|
3464
3484
|
# the properties below are optional
|
|
3485
|
+
bedrock_data_automation_configuration=bedrock.CfnDataSource.BedrockDataAutomationConfigurationProperty(
|
|
3486
|
+
parsing_modality="parsingModality"
|
|
3487
|
+
),
|
|
3465
3488
|
bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty(
|
|
3466
3489
|
model_arn="modelArn",
|
|
3467
3490
|
|
|
3468
3491
|
# the properties below are optional
|
|
3492
|
+
parsing_modality="parsingModality",
|
|
3469
3493
|
parsing_prompt=bedrock.CfnDataSource.ParsingPromptProperty(
|
|
3470
3494
|
parsing_prompt_text="parsingPromptText"
|
|
3471
3495
|
)
|
|
@@ -3704,21 +3728,82 @@ class CfnDataSource(
|
|
|
3704
3728
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3705
3729
|
jsii.set(self, "vectorIngestionConfiguration", value) # pyright: ignore[reportArgumentType]
|
|
3706
3730
|
|
|
3731
|
+
@jsii.data_type(
|
|
3732
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.BedrockDataAutomationConfigurationProperty",
|
|
3733
|
+
jsii_struct_bases=[],
|
|
3734
|
+
name_mapping={"parsing_modality": "parsingModality"},
|
|
3735
|
+
)
|
|
3736
|
+
class BedrockDataAutomationConfigurationProperty:
|
|
3737
|
+
def __init__(
|
|
3738
|
+
self,
|
|
3739
|
+
*,
|
|
3740
|
+
parsing_modality: typing.Optional[builtins.str] = None,
|
|
3741
|
+
) -> None:
|
|
3742
|
+
'''Contains configurations for using Amazon Bedrock Data Automation as the parser for ingesting your data sources.
|
|
3743
|
+
|
|
3744
|
+
:param parsing_modality: Specifies whether to enable parsing of multimodal data, including both text and/or images.
|
|
3745
|
+
|
|
3746
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockdataautomationconfiguration.html
|
|
3747
|
+
:exampleMetadata: fixture=_generated
|
|
3748
|
+
|
|
3749
|
+
Example::
|
|
3750
|
+
|
|
3751
|
+
# The code below shows an example of how to instantiate this type.
|
|
3752
|
+
# The values are placeholders you should change.
|
|
3753
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
3754
|
+
|
|
3755
|
+
bedrock_data_automation_configuration_property = bedrock.CfnDataSource.BedrockDataAutomationConfigurationProperty(
|
|
3756
|
+
parsing_modality="parsingModality"
|
|
3757
|
+
)
|
|
3758
|
+
'''
|
|
3759
|
+
if __debug__:
|
|
3760
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d1c9cf855ebecb64cb9a92684072efa631cc07e2bded88aa0e8cfa6319f97834)
|
|
3761
|
+
check_type(argname="argument parsing_modality", value=parsing_modality, expected_type=type_hints["parsing_modality"])
|
|
3762
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
3763
|
+
if parsing_modality is not None:
|
|
3764
|
+
self._values["parsing_modality"] = parsing_modality
|
|
3765
|
+
|
|
3766
|
+
@builtins.property
|
|
3767
|
+
def parsing_modality(self) -> typing.Optional[builtins.str]:
|
|
3768
|
+
'''Specifies whether to enable parsing of multimodal data, including both text and/or images.
|
|
3769
|
+
|
|
3770
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockdataautomationconfiguration.html#cfn-bedrock-datasource-bedrockdataautomationconfiguration-parsingmodality
|
|
3771
|
+
'''
|
|
3772
|
+
result = self._values.get("parsing_modality")
|
|
3773
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3774
|
+
|
|
3775
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3776
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3777
|
+
|
|
3778
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3779
|
+
return not (rhs == self)
|
|
3780
|
+
|
|
3781
|
+
def __repr__(self) -> str:
|
|
3782
|
+
return "BedrockDataAutomationConfigurationProperty(%s)" % ", ".join(
|
|
3783
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3784
|
+
)
|
|
3785
|
+
|
|
3707
3786
|
@jsii.data_type(
|
|
3708
3787
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty",
|
|
3709
3788
|
jsii_struct_bases=[],
|
|
3710
|
-
name_mapping={
|
|
3789
|
+
name_mapping={
|
|
3790
|
+
"model_arn": "modelArn",
|
|
3791
|
+
"parsing_modality": "parsingModality",
|
|
3792
|
+
"parsing_prompt": "parsingPrompt",
|
|
3793
|
+
},
|
|
3711
3794
|
)
|
|
3712
3795
|
class BedrockFoundationModelConfigurationProperty:
|
|
3713
3796
|
def __init__(
|
|
3714
3797
|
self,
|
|
3715
3798
|
*,
|
|
3716
3799
|
model_arn: builtins.str,
|
|
3800
|
+
parsing_modality: typing.Optional[builtins.str] = None,
|
|
3717
3801
|
parsing_prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.ParsingPromptProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3718
3802
|
) -> None:
|
|
3719
3803
|
'''Settings for a foundation model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ used to parse documents for a data source.
|
|
3720
3804
|
|
|
3721
|
-
:param model_arn: The ARN of the foundation model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ .
|
|
3805
|
+
:param model_arn: The ARN of the foundation model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ to use for parsing.
|
|
3806
|
+
:param parsing_modality: Specifies whether to enable parsing of multimodal data, including both text and/or images.
|
|
3722
3807
|
:param parsing_prompt: Instructions for interpreting the contents of a document.
|
|
3723
3808
|
|
|
3724
3809
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html
|
|
@@ -3734,6 +3819,7 @@ class CfnDataSource(
|
|
|
3734
3819
|
model_arn="modelArn",
|
|
3735
3820
|
|
|
3736
3821
|
# the properties below are optional
|
|
3822
|
+
parsing_modality="parsingModality",
|
|
3737
3823
|
parsing_prompt=bedrock.CfnDataSource.ParsingPromptProperty(
|
|
3738
3824
|
parsing_prompt_text="parsingPromptText"
|
|
3739
3825
|
)
|
|
@@ -3742,16 +3828,19 @@ class CfnDataSource(
|
|
|
3742
3828
|
if __debug__:
|
|
3743
3829
|
type_hints = typing.get_type_hints(_typecheckingstub__1988b824c4171f598d30cf03abdb56bc617fd654dd3daf3e641d11499c0e04ac)
|
|
3744
3830
|
check_type(argname="argument model_arn", value=model_arn, expected_type=type_hints["model_arn"])
|
|
3831
|
+
check_type(argname="argument parsing_modality", value=parsing_modality, expected_type=type_hints["parsing_modality"])
|
|
3745
3832
|
check_type(argname="argument parsing_prompt", value=parsing_prompt, expected_type=type_hints["parsing_prompt"])
|
|
3746
3833
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3747
3834
|
"model_arn": model_arn,
|
|
3748
3835
|
}
|
|
3836
|
+
if parsing_modality is not None:
|
|
3837
|
+
self._values["parsing_modality"] = parsing_modality
|
|
3749
3838
|
if parsing_prompt is not None:
|
|
3750
3839
|
self._values["parsing_prompt"] = parsing_prompt
|
|
3751
3840
|
|
|
3752
3841
|
@builtins.property
|
|
3753
3842
|
def model_arn(self) -> builtins.str:
|
|
3754
|
-
'''The ARN of the foundation model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ .
|
|
3843
|
+
'''The ARN of the foundation model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ to use for parsing.
|
|
3755
3844
|
|
|
3756
3845
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelconfiguration-modelarn
|
|
3757
3846
|
'''
|
|
@@ -3759,6 +3848,15 @@ class CfnDataSource(
|
|
|
3759
3848
|
assert result is not None, "Required property 'model_arn' is missing"
|
|
3760
3849
|
return typing.cast(builtins.str, result)
|
|
3761
3850
|
|
|
3851
|
+
@builtins.property
|
|
3852
|
+
def parsing_modality(self) -> typing.Optional[builtins.str]:
|
|
3853
|
+
'''Specifies whether to enable parsing of multimodal data, including both text and/or images.
|
|
3854
|
+
|
|
3855
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-bedrockfoundationmodelconfiguration.html#cfn-bedrock-datasource-bedrockfoundationmodelconfiguration-parsingmodality
|
|
3856
|
+
'''
|
|
3857
|
+
result = self._values.get("parsing_modality")
|
|
3858
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3859
|
+
|
|
3762
3860
|
@builtins.property
|
|
3763
3861
|
def parsing_prompt(
|
|
3764
3862
|
self,
|
|
@@ -4929,6 +5027,7 @@ class CfnDataSource(
|
|
|
4929
5027
|
jsii_struct_bases=[],
|
|
4930
5028
|
name_mapping={
|
|
4931
5029
|
"parsing_strategy": "parsingStrategy",
|
|
5030
|
+
"bedrock_data_automation_configuration": "bedrockDataAutomationConfiguration",
|
|
4932
5031
|
"bedrock_foundation_model_configuration": "bedrockFoundationModelConfiguration",
|
|
4933
5032
|
},
|
|
4934
5033
|
)
|
|
@@ -4937,21 +5036,19 @@ class CfnDataSource(
|
|
|
4937
5036
|
self,
|
|
4938
5037
|
*,
|
|
4939
5038
|
parsing_strategy: builtins.str,
|
|
5039
|
+
bedrock_data_automation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.BedrockDataAutomationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4940
5040
|
bedrock_foundation_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataSource.BedrockFoundationModelConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4941
5041
|
) -> None:
|
|
4942
5042
|
'''Settings for parsing document contents.
|
|
4943
5043
|
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
To use a model to parse PDF documents, set the parsing strategy to ``BEDROCK_FOUNDATION_MODEL`` and specify the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ to use by ARN. You can also override the default parsing prompt with instructions for how to interpret images and tables in your documents. The following models are supported.
|
|
4947
|
-
|
|
4948
|
-
- Anthropic Claude 3 Sonnet - ``anthropic.claude-3-sonnet-20240229-v1:0``
|
|
4949
|
-
- Anthropic Claude 3 Haiku - ``anthropic.claude-3-haiku-20240307-v1:0``
|
|
5044
|
+
If you exclude this field, the default parser converts the contents of each document into text before splitting it into chunks. Specify the parsing strategy to use in the ``parsingStrategy`` field and include the relevant configuration, or omit it to use the Amazon Bedrock default parser. For more information, see `Parsing options for your data source <https://docs.aws.amazon.com/bedrock/latest/userguide/kb-advanced-parsing.html>`_ .
|
|
5045
|
+
.. epigraph::
|
|
4950
5046
|
|
|
4951
|
-
|
|
5047
|
+
If you specify ``BEDROCK_DATA_AUTOMATION`` or ``BEDROCK_FOUNDATION_MODEL`` and it fails to parse a file, the Amazon Bedrock default parser will be used instead.
|
|
4952
5048
|
|
|
4953
5049
|
:param parsing_strategy: The parsing strategy for the data source.
|
|
4954
|
-
:param
|
|
5050
|
+
:param bedrock_data_automation_configuration: If you specify ``BEDROCK_DATA_AUTOMATION`` as the parsing strategy for ingesting your data source, use this object to modify configurations for using the Amazon Bedrock Data Automation parser.
|
|
5051
|
+
:param bedrock_foundation_model_configuration: If you specify ``BEDROCK_FOUNDATION_MODEL`` as the parsing strategy for ingesting your data source, use this object to modify configurations for using a foundation model to parse documents.
|
|
4955
5052
|
|
|
4956
5053
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingconfiguration.html
|
|
4957
5054
|
:exampleMetadata: fixture=_generated
|
|
@@ -4966,10 +5063,14 @@ class CfnDataSource(
|
|
|
4966
5063
|
parsing_strategy="parsingStrategy",
|
|
4967
5064
|
|
|
4968
5065
|
# the properties below are optional
|
|
5066
|
+
bedrock_data_automation_configuration=bedrock.CfnDataSource.BedrockDataAutomationConfigurationProperty(
|
|
5067
|
+
parsing_modality="parsingModality"
|
|
5068
|
+
),
|
|
4969
5069
|
bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty(
|
|
4970
5070
|
model_arn="modelArn",
|
|
4971
5071
|
|
|
4972
5072
|
# the properties below are optional
|
|
5073
|
+
parsing_modality="parsingModality",
|
|
4973
5074
|
parsing_prompt=bedrock.CfnDataSource.ParsingPromptProperty(
|
|
4974
5075
|
parsing_prompt_text="parsingPromptText"
|
|
4975
5076
|
)
|
|
@@ -4979,10 +5080,13 @@ class CfnDataSource(
|
|
|
4979
5080
|
if __debug__:
|
|
4980
5081
|
type_hints = typing.get_type_hints(_typecheckingstub__26a14ade018e836fe8686ec2de5e50a05435a92d8d540814f0759c1bb3893ef0)
|
|
4981
5082
|
check_type(argname="argument parsing_strategy", value=parsing_strategy, expected_type=type_hints["parsing_strategy"])
|
|
5083
|
+
check_type(argname="argument bedrock_data_automation_configuration", value=bedrock_data_automation_configuration, expected_type=type_hints["bedrock_data_automation_configuration"])
|
|
4982
5084
|
check_type(argname="argument bedrock_foundation_model_configuration", value=bedrock_foundation_model_configuration, expected_type=type_hints["bedrock_foundation_model_configuration"])
|
|
4983
5085
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
4984
5086
|
"parsing_strategy": parsing_strategy,
|
|
4985
5087
|
}
|
|
5088
|
+
if bedrock_data_automation_configuration is not None:
|
|
5089
|
+
self._values["bedrock_data_automation_configuration"] = bedrock_data_automation_configuration
|
|
4986
5090
|
if bedrock_foundation_model_configuration is not None:
|
|
4987
5091
|
self._values["bedrock_foundation_model_configuration"] = bedrock_foundation_model_configuration
|
|
4988
5092
|
|
|
@@ -4996,11 +5100,22 @@ class CfnDataSource(
|
|
|
4996
5100
|
assert result is not None, "Required property 'parsing_strategy' is missing"
|
|
4997
5101
|
return typing.cast(builtins.str, result)
|
|
4998
5102
|
|
|
5103
|
+
@builtins.property
|
|
5104
|
+
def bedrock_data_automation_configuration(
|
|
5105
|
+
self,
|
|
5106
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.BedrockDataAutomationConfigurationProperty"]]:
|
|
5107
|
+
'''If you specify ``BEDROCK_DATA_AUTOMATION`` as the parsing strategy for ingesting your data source, use this object to modify configurations for using the Amazon Bedrock Data Automation parser.
|
|
5108
|
+
|
|
5109
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingconfiguration.html#cfn-bedrock-datasource-parsingconfiguration-bedrockdataautomationconfiguration
|
|
5110
|
+
'''
|
|
5111
|
+
result = self._values.get("bedrock_data_automation_configuration")
|
|
5112
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.BedrockDataAutomationConfigurationProperty"]], result)
|
|
5113
|
+
|
|
4999
5114
|
@builtins.property
|
|
5000
5115
|
def bedrock_foundation_model_configuration(
|
|
5001
5116
|
self,
|
|
5002
5117
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.BedrockFoundationModelConfigurationProperty"]]:
|
|
5003
|
-
'''
|
|
5118
|
+
'''If you specify ``BEDROCK_FOUNDATION_MODEL`` as the parsing strategy for ingesting your data source, use this object to modify configurations for using a foundation model to parse documents.
|
|
5004
5119
|
|
|
5005
5120
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-parsingconfiguration.html#cfn-bedrock-datasource-parsingconfiguration-bedrockfoundationmodelconfiguration
|
|
5006
5121
|
'''
|
|
@@ -5335,9 +5450,9 @@ class CfnDataSource(
|
|
|
5335
5450
|
)
|
|
5336
5451
|
class S3LocationProperty:
|
|
5337
5452
|
def __init__(self, *, uri: builtins.str) -> None:
|
|
5338
|
-
'''
|
|
5453
|
+
'''A storage location in an S3 bucket.
|
|
5339
5454
|
|
|
5340
|
-
:param uri:
|
|
5455
|
+
:param uri: An object URI starting with ``s3://`` .
|
|
5341
5456
|
|
|
5342
5457
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3location.html
|
|
5343
5458
|
:exampleMetadata: fixture=_generated
|
|
@@ -5361,9 +5476,7 @@ class CfnDataSource(
|
|
|
5361
5476
|
|
|
5362
5477
|
@builtins.property
|
|
5363
5478
|
def uri(self) -> builtins.str:
|
|
5364
|
-
'''
|
|
5365
|
-
|
|
5366
|
-
For example, ``s3://my-bucket/chunk-processor/`` .
|
|
5479
|
+
'''An object URI starting with ``s3://`` .
|
|
5367
5480
|
|
|
5368
5481
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-s3location.html#cfn-bedrock-datasource-s3location-uri
|
|
5369
5482
|
'''
|
|
@@ -6455,7 +6568,7 @@ class CfnDataSource(
|
|
|
6455
6568
|
|
|
6456
6569
|
:param chunking_configuration: Details about how to chunk the documents in the data source. A *chunk* refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
|
|
6457
6570
|
:param custom_transformation_configuration: A custom document transformer for parsed data source documents.
|
|
6458
|
-
:param parsing_configuration:
|
|
6571
|
+
:param parsing_configuration: Configurations for a parser to use for parsing documents in your data source. If you exclude this field, the default parser will be used.
|
|
6459
6572
|
|
|
6460
6573
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html
|
|
6461
6574
|
:exampleMetadata: fixture=_generated
|
|
@@ -6506,10 +6619,14 @@ class CfnDataSource(
|
|
|
6506
6619
|
parsing_strategy="parsingStrategy",
|
|
6507
6620
|
|
|
6508
6621
|
# the properties below are optional
|
|
6622
|
+
bedrock_data_automation_configuration=bedrock.CfnDataSource.BedrockDataAutomationConfigurationProperty(
|
|
6623
|
+
parsing_modality="parsingModality"
|
|
6624
|
+
),
|
|
6509
6625
|
bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty(
|
|
6510
6626
|
model_arn="modelArn",
|
|
6511
6627
|
|
|
6512
6628
|
# the properties below are optional
|
|
6629
|
+
parsing_modality="parsingModality",
|
|
6513
6630
|
parsing_prompt=bedrock.CfnDataSource.ParsingPromptProperty(
|
|
6514
6631
|
parsing_prompt_text="parsingPromptText"
|
|
6515
6632
|
)
|
|
@@ -6558,7 +6675,9 @@ class CfnDataSource(
|
|
|
6558
6675
|
def parsing_configuration(
|
|
6559
6676
|
self,
|
|
6560
6677
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataSource.ParsingConfigurationProperty"]]:
|
|
6561
|
-
'''
|
|
6678
|
+
'''Configurations for a parser to use for parsing documents in your data source.
|
|
6679
|
+
|
|
6680
|
+
If you exclude this field, the default parser will be used.
|
|
6562
6681
|
|
|
6563
6682
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-vectoringestionconfiguration.html#cfn-bedrock-datasource-vectoringestionconfiguration-parsingconfiguration
|
|
6564
6683
|
'''
|
|
@@ -7110,10 +7229,14 @@ class CfnDataSourceProps:
|
|
|
7110
7229
|
parsing_strategy="parsingStrategy",
|
|
7111
7230
|
|
|
7112
7231
|
# the properties below are optional
|
|
7232
|
+
bedrock_data_automation_configuration=bedrock.CfnDataSource.BedrockDataAutomationConfigurationProperty(
|
|
7233
|
+
parsing_modality="parsingModality"
|
|
7234
|
+
),
|
|
7113
7235
|
bedrock_foundation_model_configuration=bedrock.CfnDataSource.BedrockFoundationModelConfigurationProperty(
|
|
7114
7236
|
model_arn="modelArn",
|
|
7115
7237
|
|
|
7116
7238
|
# the properties below are optional
|
|
7239
|
+
parsing_modality="parsingModality",
|
|
7117
7240
|
parsing_prompt=bedrock.CfnDataSource.ParsingPromptProperty(
|
|
7118
7241
|
parsing_prompt_text="parsingPromptText"
|
|
7119
7242
|
)
|
|
@@ -15448,7 +15571,7 @@ class CfnGuardrail(
|
|
|
15448
15571
|
'''The PII entity to configure for the guardrail.
|
|
15449
15572
|
|
|
15450
15573
|
:param action: Configure guardrail action when the PII entity is detected.
|
|
15451
|
-
:param type: Configure guardrail type when the PII entity is detected. The following PIIs are used to block or mask sensitive information: - *General* - *ADDRESS* A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". An address can include information such as the street, building, location, city, state, country, county, zip code, precinct, and neighborhood. - *AGE* An individual's age, including the quantity and unit of time. For example, in the phrase "I am 40 years old,"
|
|
15574
|
+
:param type: Configure guardrail type when the PII entity is detected. The following PIIs are used to block or mask sensitive information: - *General* - *ADDRESS* A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". An address can include information such as the street, building, location, city, state, country, county, zip code, precinct, and neighborhood. - *AGE* An individual's age, including the quantity and unit of time. For example, in the phrase "I am 40 years old," Guardrails recognizes "40 years" as an age. - *NAME* An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or Miss. guardrails doesn't apply this entity type to names that are part of organizations or addresses. For example, guardrails recognizes the "John Doe Organization" as an organization, and it recognizes "Jane Doe Street" as an address. - *EMAIL* An email address, such as *marymajor@email.com* . - *PHONE* A phone number. This entity type also includes fax and pager numbers. - *USERNAME* A user name that identifies an account, such as a login name, screen name, nick name, or handle. - *PASSWORD* An alphanumeric string that is used as a password, such as "* *very20special#pass** ". - *DRIVER_ID* The number assigned to a driver's license, which is an official document permitting an individual to operate one or more motorized vehicles on a public road. A driver's license number consists of alphanumeric characters. - *LICENSE_PLATE* A license plate for a vehicle is issued by the state or country where the vehicle is registered. The format for passenger vehicles is typically five to eight digits, consisting of upper-case letters and numbers. The format varies depending on the location of the issuing state or country. - *VEHICLE_IDENTIFICATION_NUMBER* A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format are defined in the *ISO 3779* specification. Each country has specific codes and formats for VINs. - *Finance* - *CREDIT_DEBIT_CARD_CVV* A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover credit and debit cards. For American Express credit or debit cards, the CVV is a four-digit numeric code. - *CREDIT_DEBIT_CARD_EXPIRY* The expiration date for a credit or debit card. This number is usually four digits long and is often formatted as *month/year* or *MM/YY* . Guardrails recognizes expiration dates such as *01/21* , *01/2021* , and *Jan 2021* . - *CREDIT_DEBIT_CARD_NUMBER* The number for a credit or debit card. These numbers can vary from 13 to 16 digits in length. However, Amazon Comprehend also recognizes credit or debit card numbers when only the last four digits are present. - *PIN* A four-digit personal identification number (PIN) with which you can access your bank account. - *INTERNATIONAL_BANK_ACCOUNT_NUMBER* An International Bank Account Number has specific formats in each country. For more information, see `www.iban.com/structure <https://docs.aws.amazon.com/https://www.iban.com/structure>`_ . - *SWIFT_CODE* A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a particular bank or branch. Banks use these codes for money transfers such as international wire transfers. SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or primary office. - *IT* - *IP_ADDRESS* An IPv4 address, such as *198.51.100.0* . - *MAC_ADDRESS* A *media access control* (MAC) address is a unique identifier assigned to a network interface controller (NIC). - *URL* A web address, such as *www.example.com* . - *AWS_ACCESS_KEY* A unique identifier that's associated with a secret access key; you use the access key ID and secret access key to sign programmatic AWS requests cryptographically. - *AWS_SECRET_KEY* A unique identifier that's associated with an access key. You use the access key ID and secret access key to sign programmatic AWS requests cryptographically. - *USA specific* - *US_BANK_ACCOUNT_NUMBER* A US bank account number, which is typically 10 to 12 digits long. - *US_BANK_ROUTING_NUMBER* A US bank account routing number. These are typically nine digits long, - *US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER* A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts with a "9" and contain a "7" or "8" as the fourth digit. An ITIN can be formatted with a space or a dash after the third and forth digits. - *US_PASSPORT_NUMBER* A US passport number. Passport numbers range from six to nine alphanumeric characters. - *US_SOCIAL_SECURITY_NUMBER* A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, permanent residents, and temporary working residents. - *Canada specific* - *CA_HEALTH_NUMBER* A Canadian Health Service Number is a 10-digit unique identifier, required for individuals to access healthcare benefits. - *CA_SOCIAL_INSURANCE_NUMBER* A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for individuals to access government programs and benefits. The SIN is formatted as three groups of three digits, such as *123-456-789* . A SIN can be validated through a simple check-digit process called the `Luhn algorithm <https://docs.aws.amazon.com/https://www.wikipedia.org/wiki/Luhn_algorithm>`_ . - *UK Specific* - *UK_NATIONAL_HEALTH_SERVICE_NUMBER* A UK National Health Service Number is a 10-17 digit number, such as *485 777 3456* . The current system formats the 10-digit number with spaces after the third and sixth digits. The final digit is an error-detecting checksum. - *UK_NATIONAL_INSURANCE_NUMBER* A UK National Insurance Number (NINO) provides individuals with access to National Insurance (social security) benefits. It is also used for some purposes in the UK tax system. The number is nine digits long and starts with two letters, followed by six numbers and one letter. A NINO can be formatted with a space or a dash after the two letters and after the second, forth, and sixth digits. - *UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER* A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a business. - *Custom* - *Regex filter* - You can use a regular expressions to define patterns for a guardrail to recognize and act upon such as serial number, booking ID etc..
|
|
15452
15575
|
|
|
15453
15576
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html
|
|
15454
15577
|
:exampleMetadata: fixture=_generated
|
|
@@ -15496,7 +15619,7 @@ class CfnGuardrail(
|
|
|
15496
15619
|
|
|
15497
15620
|
- *AGE*
|
|
15498
15621
|
|
|
15499
|
-
An individual's age, including the quantity and unit of time. For example, in the phrase "I am 40 years old,"
|
|
15622
|
+
An individual's age, including the quantity and unit of time. For example, in the phrase "I am 40 years old," Guardrails recognizes "40 years" as an age.
|
|
15500
15623
|
|
|
15501
15624
|
- *NAME*
|
|
15502
15625
|
|
|
@@ -15531,7 +15654,7 @@ class CfnGuardrail(
|
|
|
15531
15654
|
A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format are defined in the *ISO 3779* specification. Each country has specific codes and formats for VINs.
|
|
15532
15655
|
|
|
15533
15656
|
- *Finance*
|
|
15534
|
-
- *
|
|
15657
|
+
- *CREDIT_DEBIT_CARD_CVV*
|
|
15535
15658
|
|
|
15536
15659
|
A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover credit and debit cards. For American Express credit or debit cards, the CVV is a four-digit numeric code.
|
|
15537
15660
|
|
|
@@ -16677,6 +16800,11 @@ class CfnKnowledgeBase(
|
|
|
16677
16800
|
cfn_knowledge_base = bedrock.CfnKnowledgeBase(self, "MyCfnKnowledgeBase",
|
|
16678
16801
|
knowledge_base_configuration=bedrock.CfnKnowledgeBase.KnowledgeBaseConfigurationProperty(
|
|
16679
16802
|
type="type",
|
|
16803
|
+
|
|
16804
|
+
# the properties below are optional
|
|
16805
|
+
kendra_knowledge_base_configuration=bedrock.CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty(
|
|
16806
|
+
kendra_index_arn="kendraIndexArn"
|
|
16807
|
+
),
|
|
16680
16808
|
vector_knowledge_base_configuration=bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
|
|
16681
16809
|
embedding_model_arn="embeddingModelArn",
|
|
16682
16810
|
|
|
@@ -16685,11 +16813,24 @@ class CfnKnowledgeBase(
|
|
|
16685
16813
|
bedrock_embedding_model_configuration=bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty(
|
|
16686
16814
|
dimensions=123
|
|
16687
16815
|
)
|
|
16816
|
+
),
|
|
16817
|
+
supplemental_data_storage_configuration=bedrock.CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty(
|
|
16818
|
+
supplemental_data_storage_locations=[bedrock.CfnKnowledgeBase.SupplementalDataStorageLocationProperty(
|
|
16819
|
+
supplemental_data_storage_location_type="supplementalDataStorageLocationType",
|
|
16820
|
+
|
|
16821
|
+
# the properties below are optional
|
|
16822
|
+
s3_location=bedrock.CfnKnowledgeBase.S3LocationProperty(
|
|
16823
|
+
uri="uri"
|
|
16824
|
+
)
|
|
16825
|
+
)]
|
|
16688
16826
|
)
|
|
16689
16827
|
)
|
|
16690
16828
|
),
|
|
16691
16829
|
name="name",
|
|
16692
16830
|
role_arn="roleArn",
|
|
16831
|
+
|
|
16832
|
+
# the properties below are optional
|
|
16833
|
+
description="description",
|
|
16693
16834
|
storage_configuration=bedrock.CfnKnowledgeBase.StorageConfigurationProperty(
|
|
16694
16835
|
type="type",
|
|
16695
16836
|
|
|
@@ -16727,9 +16868,6 @@ class CfnKnowledgeBase(
|
|
|
16727
16868
|
table_name="tableName"
|
|
16728
16869
|
)
|
|
16729
16870
|
),
|
|
16730
|
-
|
|
16731
|
-
# the properties below are optional
|
|
16732
|
-
description="description",
|
|
16733
16871
|
tags={
|
|
16734
16872
|
"tags_key": "tags"
|
|
16735
16873
|
}
|
|
@@ -16744,8 +16882,8 @@ class CfnKnowledgeBase(
|
|
|
16744
16882
|
knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.KnowledgeBaseConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
16745
16883
|
name: builtins.str,
|
|
16746
16884
|
role_arn: builtins.str,
|
|
16747
|
-
storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.StorageConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
16748
16885
|
description: typing.Optional[builtins.str] = None,
|
|
16886
|
+
storage_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.StorageConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
16749
16887
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
16750
16888
|
) -> None:
|
|
16751
16889
|
'''
|
|
@@ -16754,8 +16892,8 @@ class CfnKnowledgeBase(
|
|
|
16754
16892
|
:param knowledge_base_configuration: Contains details about the embeddings configuration of the knowledge base.
|
|
16755
16893
|
:param name: The name of the knowledge base.
|
|
16756
16894
|
:param role_arn: The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
|
|
16757
|
-
:param storage_configuration: Contains details about the storage configuration of the knowledge base.
|
|
16758
16895
|
:param description: The description of the knowledge base associated with the inline agent.
|
|
16896
|
+
:param storage_configuration: Contains details about the storage configuration of the knowledge base.
|
|
16759
16897
|
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
16760
16898
|
'''
|
|
16761
16899
|
if __debug__:
|
|
@@ -16766,8 +16904,8 @@ class CfnKnowledgeBase(
|
|
|
16766
16904
|
knowledge_base_configuration=knowledge_base_configuration,
|
|
16767
16905
|
name=name,
|
|
16768
16906
|
role_arn=role_arn,
|
|
16769
|
-
storage_configuration=storage_configuration,
|
|
16770
16907
|
description=description,
|
|
16908
|
+
storage_configuration=storage_configuration,
|
|
16771
16909
|
tags=tags,
|
|
16772
16910
|
)
|
|
16773
16911
|
|
|
@@ -16912,37 +17050,37 @@ class CfnKnowledgeBase(
|
|
|
16912
17050
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
16913
17051
|
jsii.set(self, "roleArn", value) # pyright: ignore[reportArgumentType]
|
|
16914
17052
|
|
|
17053
|
+
@builtins.property
|
|
17054
|
+
@jsii.member(jsii_name="description")
|
|
17055
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
17056
|
+
'''The description of the knowledge base associated with the inline agent.'''
|
|
17057
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
17058
|
+
|
|
17059
|
+
@description.setter
|
|
17060
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
17061
|
+
if __debug__:
|
|
17062
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f9fef7f262d2bad58c7f37c90b8756dd028b772a93aa036a4caf0c9565a7fff1)
|
|
17063
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
17064
|
+
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
17065
|
+
|
|
16915
17066
|
@builtins.property
|
|
16916
17067
|
@jsii.member(jsii_name="storageConfiguration")
|
|
16917
17068
|
def storage_configuration(
|
|
16918
17069
|
self,
|
|
16919
|
-
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.StorageConfigurationProperty"]:
|
|
17070
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.StorageConfigurationProperty"]]:
|
|
16920
17071
|
'''Contains details about the storage configuration of the knowledge base.'''
|
|
16921
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.StorageConfigurationProperty"], jsii.get(self, "storageConfiguration"))
|
|
17072
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.StorageConfigurationProperty"]], jsii.get(self, "storageConfiguration"))
|
|
16922
17073
|
|
|
16923
17074
|
@storage_configuration.setter
|
|
16924
17075
|
def storage_configuration(
|
|
16925
17076
|
self,
|
|
16926
|
-
value: typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.StorageConfigurationProperty"],
|
|
17077
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.StorageConfigurationProperty"]],
|
|
16927
17078
|
) -> None:
|
|
16928
17079
|
if __debug__:
|
|
16929
17080
|
type_hints = typing.get_type_hints(_typecheckingstub__9c3409dc5fcb9799e2f638dda4e66d2391cf6984b3e10eb29b36e85981cfc59b)
|
|
16930
17081
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
16931
17082
|
jsii.set(self, "storageConfiguration", value) # pyright: ignore[reportArgumentType]
|
|
16932
17083
|
|
|
16933
|
-
@builtins.property
|
|
16934
|
-
@jsii.member(jsii_name="description")
|
|
16935
|
-
def description(self) -> typing.Optional[builtins.str]:
|
|
16936
|
-
'''The description of the knowledge base associated with the inline agent.'''
|
|
16937
|
-
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
16938
|
-
|
|
16939
|
-
@description.setter
|
|
16940
|
-
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
16941
|
-
if __debug__:
|
|
16942
|
-
type_hints = typing.get_type_hints(_typecheckingstub__f9fef7f262d2bad58c7f37c90b8756dd028b772a93aa036a4caf0c9565a7fff1)
|
|
16943
|
-
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
16944
|
-
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
16945
|
-
|
|
16946
17084
|
@builtins.property
|
|
16947
17085
|
@jsii.member(jsii_name="tags")
|
|
16948
17086
|
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
@@ -17074,11 +17212,64 @@ class CfnKnowledgeBase(
|
|
|
17074
17212
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
17075
17213
|
)
|
|
17076
17214
|
|
|
17215
|
+
@jsii.data_type(
|
|
17216
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty",
|
|
17217
|
+
jsii_struct_bases=[],
|
|
17218
|
+
name_mapping={"kendra_index_arn": "kendraIndexArn"},
|
|
17219
|
+
)
|
|
17220
|
+
class KendraKnowledgeBaseConfigurationProperty:
|
|
17221
|
+
def __init__(self, *, kendra_index_arn: builtins.str) -> None:
|
|
17222
|
+
'''Settings for an Amazon Kendra knowledge base.
|
|
17223
|
+
|
|
17224
|
+
:param kendra_index_arn: The ARN of the Amazon Kendra index.
|
|
17225
|
+
|
|
17226
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-kendraknowledgebaseconfiguration.html
|
|
17227
|
+
:exampleMetadata: fixture=_generated
|
|
17228
|
+
|
|
17229
|
+
Example::
|
|
17230
|
+
|
|
17231
|
+
# The code below shows an example of how to instantiate this type.
|
|
17232
|
+
# The values are placeholders you should change.
|
|
17233
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
17234
|
+
|
|
17235
|
+
kendra_knowledge_base_configuration_property = bedrock.CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty(
|
|
17236
|
+
kendra_index_arn="kendraIndexArn"
|
|
17237
|
+
)
|
|
17238
|
+
'''
|
|
17239
|
+
if __debug__:
|
|
17240
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f49108183c657ffec5628bb187155a62b4da5dfc81f77718084a35d0e1296bfd)
|
|
17241
|
+
check_type(argname="argument kendra_index_arn", value=kendra_index_arn, expected_type=type_hints["kendra_index_arn"])
|
|
17242
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
17243
|
+
"kendra_index_arn": kendra_index_arn,
|
|
17244
|
+
}
|
|
17245
|
+
|
|
17246
|
+
@builtins.property
|
|
17247
|
+
def kendra_index_arn(self) -> builtins.str:
|
|
17248
|
+
'''The ARN of the Amazon Kendra index.
|
|
17249
|
+
|
|
17250
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-kendraknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-kendraknowledgebaseconfiguration-kendraindexarn
|
|
17251
|
+
'''
|
|
17252
|
+
result = self._values.get("kendra_index_arn")
|
|
17253
|
+
assert result is not None, "Required property 'kendra_index_arn' is missing"
|
|
17254
|
+
return typing.cast(builtins.str, result)
|
|
17255
|
+
|
|
17256
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
17257
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
17258
|
+
|
|
17259
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
17260
|
+
return not (rhs == self)
|
|
17261
|
+
|
|
17262
|
+
def __repr__(self) -> str:
|
|
17263
|
+
return "KendraKnowledgeBaseConfigurationProperty(%s)" % ", ".join(
|
|
17264
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
17265
|
+
)
|
|
17266
|
+
|
|
17077
17267
|
@jsii.data_type(
|
|
17078
17268
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.KnowledgeBaseConfigurationProperty",
|
|
17079
17269
|
jsii_struct_bases=[],
|
|
17080
17270
|
name_mapping={
|
|
17081
17271
|
"type": "type",
|
|
17272
|
+
"kendra_knowledge_base_configuration": "kendraKnowledgeBaseConfiguration",
|
|
17082
17273
|
"vector_knowledge_base_configuration": "vectorKnowledgeBaseConfiguration",
|
|
17083
17274
|
},
|
|
17084
17275
|
)
|
|
@@ -17087,13 +17278,15 @@ class CfnKnowledgeBase(
|
|
|
17087
17278
|
self,
|
|
17088
17279
|
*,
|
|
17089
17280
|
type: builtins.str,
|
|
17090
|
-
|
|
17281
|
+
kendra_knowledge_base_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
17282
|
+
vector_knowledge_base_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
17091
17283
|
) -> None:
|
|
17092
17284
|
'''Configurations to apply to a knowledge base attached to the agent during query.
|
|
17093
17285
|
|
|
17094
17286
|
For more information, see `Knowledge base retrieval configurations <https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html#session-state-kb>`_ .
|
|
17095
17287
|
|
|
17096
17288
|
:param type: The type of data that the data source is converted into for the knowledge base.
|
|
17289
|
+
:param kendra_knowledge_base_configuration: Settings for an Amazon Kendra knowledge base.
|
|
17097
17290
|
:param vector_knowledge_base_configuration: Contains details about the model that's used to convert the data source into vector embeddings.
|
|
17098
17291
|
|
|
17099
17292
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-knowledgebaseconfiguration.html
|
|
@@ -17107,6 +17300,11 @@ class CfnKnowledgeBase(
|
|
|
17107
17300
|
|
|
17108
17301
|
knowledge_base_configuration_property = bedrock.CfnKnowledgeBase.KnowledgeBaseConfigurationProperty(
|
|
17109
17302
|
type="type",
|
|
17303
|
+
|
|
17304
|
+
# the properties below are optional
|
|
17305
|
+
kendra_knowledge_base_configuration=bedrock.CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty(
|
|
17306
|
+
kendra_index_arn="kendraIndexArn"
|
|
17307
|
+
),
|
|
17110
17308
|
vector_knowledge_base_configuration=bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
|
|
17111
17309
|
embedding_model_arn="embeddingModelArn",
|
|
17112
17310
|
|
|
@@ -17115,6 +17313,16 @@ class CfnKnowledgeBase(
|
|
|
17115
17313
|
bedrock_embedding_model_configuration=bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty(
|
|
17116
17314
|
dimensions=123
|
|
17117
17315
|
)
|
|
17316
|
+
),
|
|
17317
|
+
supplemental_data_storage_configuration=bedrock.CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty(
|
|
17318
|
+
supplemental_data_storage_locations=[bedrock.CfnKnowledgeBase.SupplementalDataStorageLocationProperty(
|
|
17319
|
+
supplemental_data_storage_location_type="supplementalDataStorageLocationType",
|
|
17320
|
+
|
|
17321
|
+
# the properties below are optional
|
|
17322
|
+
s3_location=bedrock.CfnKnowledgeBase.S3LocationProperty(
|
|
17323
|
+
uri="uri"
|
|
17324
|
+
)
|
|
17325
|
+
)]
|
|
17118
17326
|
)
|
|
17119
17327
|
)
|
|
17120
17328
|
)
|
|
@@ -17122,11 +17330,15 @@ class CfnKnowledgeBase(
|
|
|
17122
17330
|
if __debug__:
|
|
17123
17331
|
type_hints = typing.get_type_hints(_typecheckingstub__f2ca26f28cc4cf3a289e62f58643faf6a7d98ea3e55e7ff4f0f77530fa0294b4)
|
|
17124
17332
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
17333
|
+
check_type(argname="argument kendra_knowledge_base_configuration", value=kendra_knowledge_base_configuration, expected_type=type_hints["kendra_knowledge_base_configuration"])
|
|
17125
17334
|
check_type(argname="argument vector_knowledge_base_configuration", value=vector_knowledge_base_configuration, expected_type=type_hints["vector_knowledge_base_configuration"])
|
|
17126
17335
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
17127
17336
|
"type": type,
|
|
17128
|
-
"vector_knowledge_base_configuration": vector_knowledge_base_configuration,
|
|
17129
17337
|
}
|
|
17338
|
+
if kendra_knowledge_base_configuration is not None:
|
|
17339
|
+
self._values["kendra_knowledge_base_configuration"] = kendra_knowledge_base_configuration
|
|
17340
|
+
if vector_knowledge_base_configuration is not None:
|
|
17341
|
+
self._values["vector_knowledge_base_configuration"] = vector_knowledge_base_configuration
|
|
17130
17342
|
|
|
17131
17343
|
@builtins.property
|
|
17132
17344
|
def type(self) -> builtins.str:
|
|
@@ -17138,17 +17350,27 @@ class CfnKnowledgeBase(
|
|
|
17138
17350
|
assert result is not None, "Required property 'type' is missing"
|
|
17139
17351
|
return typing.cast(builtins.str, result)
|
|
17140
17352
|
|
|
17353
|
+
@builtins.property
|
|
17354
|
+
def kendra_knowledge_base_configuration(
|
|
17355
|
+
self,
|
|
17356
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty"]]:
|
|
17357
|
+
'''Settings for an Amazon Kendra knowledge base.
|
|
17358
|
+
|
|
17359
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-knowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-knowledgebaseconfiguration-kendraknowledgebaseconfiguration
|
|
17360
|
+
'''
|
|
17361
|
+
result = self._values.get("kendra_knowledge_base_configuration")
|
|
17362
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty"]], result)
|
|
17363
|
+
|
|
17141
17364
|
@builtins.property
|
|
17142
17365
|
def vector_knowledge_base_configuration(
|
|
17143
17366
|
self,
|
|
17144
|
-
) -> typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty"]:
|
|
17367
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty"]]:
|
|
17145
17368
|
'''Contains details about the model that's used to convert the data source into vector embeddings.
|
|
17146
17369
|
|
|
17147
17370
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-knowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-knowledgebaseconfiguration-vectorknowledgebaseconfiguration
|
|
17148
17371
|
'''
|
|
17149
17372
|
result = self._values.get("vector_knowledge_base_configuration")
|
|
17150
|
-
|
|
17151
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty"], result)
|
|
17373
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty"]], result)
|
|
17152
17374
|
|
|
17153
17375
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
17154
17376
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -17778,6 +18000,58 @@ class CfnKnowledgeBase(
|
|
|
17778
18000
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
17779
18001
|
)
|
|
17780
18002
|
|
|
18003
|
+
@jsii.data_type(
|
|
18004
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.S3LocationProperty",
|
|
18005
|
+
jsii_struct_bases=[],
|
|
18006
|
+
name_mapping={"uri": "uri"},
|
|
18007
|
+
)
|
|
18008
|
+
class S3LocationProperty:
|
|
18009
|
+
def __init__(self, *, uri: builtins.str) -> None:
|
|
18010
|
+
'''A storage location in an S3 bucket.
|
|
18011
|
+
|
|
18012
|
+
:param uri: An object URI starting with ``s3://`` .
|
|
18013
|
+
|
|
18014
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-s3location.html
|
|
18015
|
+
:exampleMetadata: fixture=_generated
|
|
18016
|
+
|
|
18017
|
+
Example::
|
|
18018
|
+
|
|
18019
|
+
# The code below shows an example of how to instantiate this type.
|
|
18020
|
+
# The values are placeholders you should change.
|
|
18021
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
18022
|
+
|
|
18023
|
+
s3_location_property = bedrock.CfnKnowledgeBase.S3LocationProperty(
|
|
18024
|
+
uri="uri"
|
|
18025
|
+
)
|
|
18026
|
+
'''
|
|
18027
|
+
if __debug__:
|
|
18028
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2d65bf934dc283aa920ce8366929ceeb84863f6a3de2b775a4f2d2ee019979bc)
|
|
18029
|
+
check_type(argname="argument uri", value=uri, expected_type=type_hints["uri"])
|
|
18030
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
18031
|
+
"uri": uri,
|
|
18032
|
+
}
|
|
18033
|
+
|
|
18034
|
+
@builtins.property
|
|
18035
|
+
def uri(self) -> builtins.str:
|
|
18036
|
+
'''An object URI starting with ``s3://`` .
|
|
18037
|
+
|
|
18038
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-s3location.html#cfn-bedrock-knowledgebase-s3location-uri
|
|
18039
|
+
'''
|
|
18040
|
+
result = self._values.get("uri")
|
|
18041
|
+
assert result is not None, "Required property 'uri' is missing"
|
|
18042
|
+
return typing.cast(builtins.str, result)
|
|
18043
|
+
|
|
18044
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
18045
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
18046
|
+
|
|
18047
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
18048
|
+
return not (rhs == self)
|
|
18049
|
+
|
|
18050
|
+
def __repr__(self) -> str:
|
|
18051
|
+
return "S3LocationProperty(%s)" % ", ".join(
|
|
18052
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
18053
|
+
)
|
|
18054
|
+
|
|
17781
18055
|
@jsii.data_type(
|
|
17782
18056
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.StorageConfigurationProperty",
|
|
17783
18057
|
jsii_struct_bases=[],
|
|
@@ -17924,26 +18198,25 @@ class CfnKnowledgeBase(
|
|
|
17924
18198
|
)
|
|
17925
18199
|
|
|
17926
18200
|
@jsii.data_type(
|
|
17927
|
-
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.
|
|
18201
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty",
|
|
17928
18202
|
jsii_struct_bases=[],
|
|
17929
18203
|
name_mapping={
|
|
17930
|
-
"
|
|
17931
|
-
"embedding_model_configuration": "embeddingModelConfiguration",
|
|
18204
|
+
"supplemental_data_storage_locations": "supplementalDataStorageLocations",
|
|
17932
18205
|
},
|
|
17933
18206
|
)
|
|
17934
|
-
class
|
|
18207
|
+
class SupplementalDataStorageConfigurationProperty:
|
|
17935
18208
|
def __init__(
|
|
17936
18209
|
self,
|
|
17937
18210
|
*,
|
|
17938
|
-
|
|
17939
|
-
embedding_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.EmbeddingModelConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18211
|
+
supplemental_data_storage_locations: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.SupplementalDataStorageLocationProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
17940
18212
|
) -> None:
|
|
17941
|
-
'''
|
|
18213
|
+
'''Specifies configurations for the storage location of the images extracted from multimodal documents in your data source.
|
|
17942
18214
|
|
|
17943
|
-
|
|
17944
|
-
:param embedding_model_configuration: The embeddings model configuration details for the vector model used in Knowledge Base.
|
|
18215
|
+
These images can be retrieved and returned to the end user.
|
|
17945
18216
|
|
|
17946
|
-
:
|
|
18217
|
+
:param supplemental_data_storage_locations: List of supplemental data storage locations.
|
|
18218
|
+
|
|
18219
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-supplementaldatastorageconfiguration.html
|
|
17947
18220
|
:exampleMetadata: fixture=_generated
|
|
17948
18221
|
|
|
17949
18222
|
Example::
|
|
@@ -17952,47 +18225,35 @@ class CfnKnowledgeBase(
|
|
|
17952
18225
|
# The values are placeholders you should change.
|
|
17953
18226
|
from aws_cdk import aws_bedrock as bedrock
|
|
17954
18227
|
|
|
17955
|
-
|
|
17956
|
-
|
|
18228
|
+
supplemental_data_storage_configuration_property = bedrock.CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty(
|
|
18229
|
+
supplemental_data_storage_locations=[bedrock.CfnKnowledgeBase.SupplementalDataStorageLocationProperty(
|
|
18230
|
+
supplemental_data_storage_location_type="supplementalDataStorageLocationType",
|
|
17957
18231
|
|
|
17958
|
-
|
|
17959
|
-
|
|
17960
|
-
|
|
17961
|
-
dimensions=123
|
|
18232
|
+
# the properties below are optional
|
|
18233
|
+
s3_location=bedrock.CfnKnowledgeBase.S3LocationProperty(
|
|
18234
|
+
uri="uri"
|
|
17962
18235
|
)
|
|
17963
|
-
)
|
|
18236
|
+
)]
|
|
17964
18237
|
)
|
|
17965
18238
|
'''
|
|
17966
18239
|
if __debug__:
|
|
17967
|
-
type_hints = typing.get_type_hints(
|
|
17968
|
-
check_type(argname="argument
|
|
17969
|
-
check_type(argname="argument embedding_model_configuration", value=embedding_model_configuration, expected_type=type_hints["embedding_model_configuration"])
|
|
18240
|
+
type_hints = typing.get_type_hints(_typecheckingstub__23aedf500d0c089aa233b40ff3fc0bdc7842b000954e996faef806cf0f44c930)
|
|
18241
|
+
check_type(argname="argument supplemental_data_storage_locations", value=supplemental_data_storage_locations, expected_type=type_hints["supplemental_data_storage_locations"])
|
|
17970
18242
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
17971
|
-
"
|
|
18243
|
+
"supplemental_data_storage_locations": supplemental_data_storage_locations,
|
|
17972
18244
|
}
|
|
17973
|
-
if embedding_model_configuration is not None:
|
|
17974
|
-
self._values["embedding_model_configuration"] = embedding_model_configuration
|
|
17975
|
-
|
|
17976
|
-
@builtins.property
|
|
17977
|
-
def embedding_model_arn(self) -> builtins.str:
|
|
17978
|
-
'''The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.
|
|
17979
|
-
|
|
17980
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelarn
|
|
17981
|
-
'''
|
|
17982
|
-
result = self._values.get("embedding_model_arn")
|
|
17983
|
-
assert result is not None, "Required property 'embedding_model_arn' is missing"
|
|
17984
|
-
return typing.cast(builtins.str, result)
|
|
17985
18245
|
|
|
17986
18246
|
@builtins.property
|
|
17987
|
-
def
|
|
18247
|
+
def supplemental_data_storage_locations(
|
|
17988
18248
|
self,
|
|
17989
|
-
) -> typing.
|
|
17990
|
-
'''
|
|
18249
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.SupplementalDataStorageLocationProperty"]]]:
|
|
18250
|
+
'''List of supplemental data storage locations.
|
|
17991
18251
|
|
|
17992
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-
|
|
18252
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-supplementaldatastorageconfiguration.html#cfn-bedrock-knowledgebase-supplementaldatastorageconfiguration-supplementaldatastoragelocations
|
|
17993
18253
|
'''
|
|
17994
|
-
result = self._values.get("
|
|
17995
|
-
|
|
18254
|
+
result = self._values.get("supplemental_data_storage_locations")
|
|
18255
|
+
assert result is not None, "Required property 'supplemental_data_storage_locations' is missing"
|
|
18256
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.SupplementalDataStorageLocationProperty"]]], result)
|
|
17996
18257
|
|
|
17997
18258
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
17998
18259
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -18001,20 +18262,211 @@ class CfnKnowledgeBase(
|
|
|
18001
18262
|
return not (rhs == self)
|
|
18002
18263
|
|
|
18003
18264
|
def __repr__(self) -> str:
|
|
18004
|
-
return "
|
|
18265
|
+
return "SupplementalDataStorageConfigurationProperty(%s)" % ", ".join(
|
|
18005
18266
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
18006
18267
|
)
|
|
18007
18268
|
|
|
18269
|
+
@jsii.data_type(
|
|
18270
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.SupplementalDataStorageLocationProperty",
|
|
18271
|
+
jsii_struct_bases=[],
|
|
18272
|
+
name_mapping={
|
|
18273
|
+
"supplemental_data_storage_location_type": "supplementalDataStorageLocationType",
|
|
18274
|
+
"s3_location": "s3Location",
|
|
18275
|
+
},
|
|
18276
|
+
)
|
|
18277
|
+
class SupplementalDataStorageLocationProperty:
|
|
18278
|
+
def __init__(
|
|
18279
|
+
self,
|
|
18280
|
+
*,
|
|
18281
|
+
supplemental_data_storage_location_type: builtins.str,
|
|
18282
|
+
s3_location: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.S3LocationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18283
|
+
) -> None:
|
|
18284
|
+
'''Contains information about a storage location for images extracted from multimodal documents in your data source.
|
|
18008
18285
|
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18286
|
+
:param supplemental_data_storage_location_type: Supplemental data storage location type.
|
|
18287
|
+
:param s3_location: Contains information about the Amazon S3 location for the extracted images.
|
|
18288
|
+
|
|
18289
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-supplementaldatastoragelocation.html
|
|
18290
|
+
:exampleMetadata: fixture=_generated
|
|
18291
|
+
|
|
18292
|
+
Example::
|
|
18293
|
+
|
|
18294
|
+
# The code below shows an example of how to instantiate this type.
|
|
18295
|
+
# The values are placeholders you should change.
|
|
18296
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
18297
|
+
|
|
18298
|
+
supplemental_data_storage_location_property = bedrock.CfnKnowledgeBase.SupplementalDataStorageLocationProperty(
|
|
18299
|
+
supplemental_data_storage_location_type="supplementalDataStorageLocationType",
|
|
18300
|
+
|
|
18301
|
+
# the properties below are optional
|
|
18302
|
+
s3_location=bedrock.CfnKnowledgeBase.S3LocationProperty(
|
|
18303
|
+
uri="uri"
|
|
18304
|
+
)
|
|
18305
|
+
)
|
|
18306
|
+
'''
|
|
18307
|
+
if __debug__:
|
|
18308
|
+
type_hints = typing.get_type_hints(_typecheckingstub__754c3d05d3167c3b2203485932c3bc498a24c9d4555c672a7d5069d4d86f73d6)
|
|
18309
|
+
check_type(argname="argument supplemental_data_storage_location_type", value=supplemental_data_storage_location_type, expected_type=type_hints["supplemental_data_storage_location_type"])
|
|
18310
|
+
check_type(argname="argument s3_location", value=s3_location, expected_type=type_hints["s3_location"])
|
|
18311
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
18312
|
+
"supplemental_data_storage_location_type": supplemental_data_storage_location_type,
|
|
18313
|
+
}
|
|
18314
|
+
if s3_location is not None:
|
|
18315
|
+
self._values["s3_location"] = s3_location
|
|
18316
|
+
|
|
18317
|
+
@builtins.property
|
|
18318
|
+
def supplemental_data_storage_location_type(self) -> builtins.str:
|
|
18319
|
+
'''Supplemental data storage location type.
|
|
18320
|
+
|
|
18321
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-supplementaldatastoragelocation.html#cfn-bedrock-knowledgebase-supplementaldatastoragelocation-supplementaldatastoragelocationtype
|
|
18322
|
+
'''
|
|
18323
|
+
result = self._values.get("supplemental_data_storage_location_type")
|
|
18324
|
+
assert result is not None, "Required property 'supplemental_data_storage_location_type' is missing"
|
|
18325
|
+
return typing.cast(builtins.str, result)
|
|
18326
|
+
|
|
18327
|
+
@builtins.property
|
|
18328
|
+
def s3_location(
|
|
18329
|
+
self,
|
|
18330
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.S3LocationProperty"]]:
|
|
18331
|
+
'''Contains information about the Amazon S3 location for the extracted images.
|
|
18332
|
+
|
|
18333
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-supplementaldatastoragelocation.html#cfn-bedrock-knowledgebase-supplementaldatastoragelocation-s3location
|
|
18334
|
+
'''
|
|
18335
|
+
result = self._values.get("s3_location")
|
|
18336
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.S3LocationProperty"]], result)
|
|
18337
|
+
|
|
18338
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
18339
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
18340
|
+
|
|
18341
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
18342
|
+
return not (rhs == self)
|
|
18343
|
+
|
|
18344
|
+
def __repr__(self) -> str:
|
|
18345
|
+
return "SupplementalDataStorageLocationProperty(%s)" % ", ".join(
|
|
18346
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
18347
|
+
)
|
|
18348
|
+
|
|
18349
|
+
@jsii.data_type(
|
|
18350
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty",
|
|
18351
|
+
jsii_struct_bases=[],
|
|
18352
|
+
name_mapping={
|
|
18353
|
+
"embedding_model_arn": "embeddingModelArn",
|
|
18354
|
+
"embedding_model_configuration": "embeddingModelConfiguration",
|
|
18355
|
+
"supplemental_data_storage_configuration": "supplementalDataStorageConfiguration",
|
|
18356
|
+
},
|
|
18357
|
+
)
|
|
18358
|
+
class VectorKnowledgeBaseConfigurationProperty:
|
|
18359
|
+
def __init__(
|
|
18360
|
+
self,
|
|
18361
|
+
*,
|
|
18362
|
+
embedding_model_arn: builtins.str,
|
|
18363
|
+
embedding_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.EmbeddingModelConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18364
|
+
supplemental_data_storage_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18365
|
+
) -> None:
|
|
18366
|
+
'''Contains details about the model used to create vector embeddings for the knowledge base.
|
|
18367
|
+
|
|
18368
|
+
:param embedding_model_arn: The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.
|
|
18369
|
+
:param embedding_model_configuration: The embeddings model configuration details for the vector model used in Knowledge Base.
|
|
18370
|
+
:param supplemental_data_storage_configuration: If you include multimodal data from your data source, use this object to specify configurations for the storage location of the images extracted from your documents. These images can be retrieved and returned to the end user. They can also be used in generation when using `RetrieveAndGenerate <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html>`_ .
|
|
18371
|
+
|
|
18372
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html
|
|
18373
|
+
:exampleMetadata: fixture=_generated
|
|
18374
|
+
|
|
18375
|
+
Example::
|
|
18376
|
+
|
|
18377
|
+
# The code below shows an example of how to instantiate this type.
|
|
18378
|
+
# The values are placeholders you should change.
|
|
18379
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
18380
|
+
|
|
18381
|
+
vector_knowledge_base_configuration_property = bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
|
|
18382
|
+
embedding_model_arn="embeddingModelArn",
|
|
18383
|
+
|
|
18384
|
+
# the properties below are optional
|
|
18385
|
+
embedding_model_configuration=bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty(
|
|
18386
|
+
bedrock_embedding_model_configuration=bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty(
|
|
18387
|
+
dimensions=123
|
|
18388
|
+
)
|
|
18389
|
+
),
|
|
18390
|
+
supplemental_data_storage_configuration=bedrock.CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty(
|
|
18391
|
+
supplemental_data_storage_locations=[bedrock.CfnKnowledgeBase.SupplementalDataStorageLocationProperty(
|
|
18392
|
+
supplemental_data_storage_location_type="supplementalDataStorageLocationType",
|
|
18393
|
+
|
|
18394
|
+
# the properties below are optional
|
|
18395
|
+
s3_location=bedrock.CfnKnowledgeBase.S3LocationProperty(
|
|
18396
|
+
uri="uri"
|
|
18397
|
+
)
|
|
18398
|
+
)]
|
|
18399
|
+
)
|
|
18400
|
+
)
|
|
18401
|
+
'''
|
|
18402
|
+
if __debug__:
|
|
18403
|
+
type_hints = typing.get_type_hints(_typecheckingstub__53b08e209954b21c35b746e5eee517d51370af30630f5f17b3e5435150898236)
|
|
18404
|
+
check_type(argname="argument embedding_model_arn", value=embedding_model_arn, expected_type=type_hints["embedding_model_arn"])
|
|
18405
|
+
check_type(argname="argument embedding_model_configuration", value=embedding_model_configuration, expected_type=type_hints["embedding_model_configuration"])
|
|
18406
|
+
check_type(argname="argument supplemental_data_storage_configuration", value=supplemental_data_storage_configuration, expected_type=type_hints["supplemental_data_storage_configuration"])
|
|
18407
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
18408
|
+
"embedding_model_arn": embedding_model_arn,
|
|
18409
|
+
}
|
|
18410
|
+
if embedding_model_configuration is not None:
|
|
18411
|
+
self._values["embedding_model_configuration"] = embedding_model_configuration
|
|
18412
|
+
if supplemental_data_storage_configuration is not None:
|
|
18413
|
+
self._values["supplemental_data_storage_configuration"] = supplemental_data_storage_configuration
|
|
18414
|
+
|
|
18415
|
+
@builtins.property
|
|
18416
|
+
def embedding_model_arn(self) -> builtins.str:
|
|
18417
|
+
'''The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.
|
|
18418
|
+
|
|
18419
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelarn
|
|
18420
|
+
'''
|
|
18421
|
+
result = self._values.get("embedding_model_arn")
|
|
18422
|
+
assert result is not None, "Required property 'embedding_model_arn' is missing"
|
|
18423
|
+
return typing.cast(builtins.str, result)
|
|
18424
|
+
|
|
18425
|
+
@builtins.property
|
|
18426
|
+
def embedding_model_configuration(
|
|
18427
|
+
self,
|
|
18428
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.EmbeddingModelConfigurationProperty"]]:
|
|
18429
|
+
'''The embeddings model configuration details for the vector model used in Knowledge Base.
|
|
18430
|
+
|
|
18431
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelconfiguration
|
|
18432
|
+
'''
|
|
18433
|
+
result = self._values.get("embedding_model_configuration")
|
|
18434
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.EmbeddingModelConfigurationProperty"]], result)
|
|
18435
|
+
|
|
18436
|
+
@builtins.property
|
|
18437
|
+
def supplemental_data_storage_configuration(
|
|
18438
|
+
self,
|
|
18439
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty"]]:
|
|
18440
|
+
'''If you include multimodal data from your data source, use this object to specify configurations for the storage location of the images extracted from your documents.
|
|
18441
|
+
|
|
18442
|
+
These images can be retrieved and returned to the end user. They can also be used in generation when using `RetrieveAndGenerate <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html>`_ .
|
|
18443
|
+
|
|
18444
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-supplementaldatastorageconfiguration
|
|
18445
|
+
'''
|
|
18446
|
+
result = self._values.get("supplemental_data_storage_configuration")
|
|
18447
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty"]], result)
|
|
18448
|
+
|
|
18449
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
18450
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
18451
|
+
|
|
18452
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
18453
|
+
return not (rhs == self)
|
|
18454
|
+
|
|
18455
|
+
def __repr__(self) -> str:
|
|
18456
|
+
return "VectorKnowledgeBaseConfigurationProperty(%s)" % ", ".join(
|
|
18457
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
18458
|
+
)
|
|
18459
|
+
|
|
18460
|
+
|
|
18461
|
+
@jsii.data_type(
|
|
18462
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBaseProps",
|
|
18463
|
+
jsii_struct_bases=[],
|
|
18464
|
+
name_mapping={
|
|
18013
18465
|
"knowledge_base_configuration": "knowledgeBaseConfiguration",
|
|
18014
18466
|
"name": "name",
|
|
18015
18467
|
"role_arn": "roleArn",
|
|
18016
|
-
"storage_configuration": "storageConfiguration",
|
|
18017
18468
|
"description": "description",
|
|
18469
|
+
"storage_configuration": "storageConfiguration",
|
|
18018
18470
|
"tags": "tags",
|
|
18019
18471
|
},
|
|
18020
18472
|
)
|
|
@@ -18025,8 +18477,8 @@ class CfnKnowledgeBaseProps:
|
|
|
18025
18477
|
knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
18026
18478
|
name: builtins.str,
|
|
18027
18479
|
role_arn: builtins.str,
|
|
18028
|
-
storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
18029
18480
|
description: typing.Optional[builtins.str] = None,
|
|
18481
|
+
storage_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18030
18482
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
18031
18483
|
) -> None:
|
|
18032
18484
|
'''Properties for defining a ``CfnKnowledgeBase``.
|
|
@@ -18034,8 +18486,8 @@ class CfnKnowledgeBaseProps:
|
|
|
18034
18486
|
:param knowledge_base_configuration: Contains details about the embeddings configuration of the knowledge base.
|
|
18035
18487
|
:param name: The name of the knowledge base.
|
|
18036
18488
|
:param role_arn: The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
|
|
18037
|
-
:param storage_configuration: Contains details about the storage configuration of the knowledge base.
|
|
18038
18489
|
:param description: The description of the knowledge base associated with the inline agent.
|
|
18490
|
+
:param storage_configuration: Contains details about the storage configuration of the knowledge base.
|
|
18039
18491
|
:param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
|
|
18040
18492
|
|
|
18041
18493
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-knowledgebase.html
|
|
@@ -18050,6 +18502,11 @@ class CfnKnowledgeBaseProps:
|
|
|
18050
18502
|
cfn_knowledge_base_props = bedrock.CfnKnowledgeBaseProps(
|
|
18051
18503
|
knowledge_base_configuration=bedrock.CfnKnowledgeBase.KnowledgeBaseConfigurationProperty(
|
|
18052
18504
|
type="type",
|
|
18505
|
+
|
|
18506
|
+
# the properties below are optional
|
|
18507
|
+
kendra_knowledge_base_configuration=bedrock.CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty(
|
|
18508
|
+
kendra_index_arn="kendraIndexArn"
|
|
18509
|
+
),
|
|
18053
18510
|
vector_knowledge_base_configuration=bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
|
|
18054
18511
|
embedding_model_arn="embeddingModelArn",
|
|
18055
18512
|
|
|
@@ -18058,11 +18515,24 @@ class CfnKnowledgeBaseProps:
|
|
|
18058
18515
|
bedrock_embedding_model_configuration=bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty(
|
|
18059
18516
|
dimensions=123
|
|
18060
18517
|
)
|
|
18518
|
+
),
|
|
18519
|
+
supplemental_data_storage_configuration=bedrock.CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty(
|
|
18520
|
+
supplemental_data_storage_locations=[bedrock.CfnKnowledgeBase.SupplementalDataStorageLocationProperty(
|
|
18521
|
+
supplemental_data_storage_location_type="supplementalDataStorageLocationType",
|
|
18522
|
+
|
|
18523
|
+
# the properties below are optional
|
|
18524
|
+
s3_location=bedrock.CfnKnowledgeBase.S3LocationProperty(
|
|
18525
|
+
uri="uri"
|
|
18526
|
+
)
|
|
18527
|
+
)]
|
|
18061
18528
|
)
|
|
18062
18529
|
)
|
|
18063
18530
|
),
|
|
18064
18531
|
name="name",
|
|
18065
18532
|
role_arn="roleArn",
|
|
18533
|
+
|
|
18534
|
+
# the properties below are optional
|
|
18535
|
+
description="description",
|
|
18066
18536
|
storage_configuration=bedrock.CfnKnowledgeBase.StorageConfigurationProperty(
|
|
18067
18537
|
type="type",
|
|
18068
18538
|
|
|
@@ -18100,9 +18570,6 @@ class CfnKnowledgeBaseProps:
|
|
|
18100
18570
|
table_name="tableName"
|
|
18101
18571
|
)
|
|
18102
18572
|
),
|
|
18103
|
-
|
|
18104
|
-
# the properties below are optional
|
|
18105
|
-
description="description",
|
|
18106
18573
|
tags={
|
|
18107
18574
|
"tags_key": "tags"
|
|
18108
18575
|
}
|
|
@@ -18113,17 +18580,18 @@ class CfnKnowledgeBaseProps:
|
|
|
18113
18580
|
check_type(argname="argument knowledge_base_configuration", value=knowledge_base_configuration, expected_type=type_hints["knowledge_base_configuration"])
|
|
18114
18581
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
18115
18582
|
check_type(argname="argument role_arn", value=role_arn, expected_type=type_hints["role_arn"])
|
|
18116
|
-
check_type(argname="argument storage_configuration", value=storage_configuration, expected_type=type_hints["storage_configuration"])
|
|
18117
18583
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
18584
|
+
check_type(argname="argument storage_configuration", value=storage_configuration, expected_type=type_hints["storage_configuration"])
|
|
18118
18585
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
18119
18586
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
18120
18587
|
"knowledge_base_configuration": knowledge_base_configuration,
|
|
18121
18588
|
"name": name,
|
|
18122
18589
|
"role_arn": role_arn,
|
|
18123
|
-
"storage_configuration": storage_configuration,
|
|
18124
18590
|
}
|
|
18125
18591
|
if description is not None:
|
|
18126
18592
|
self._values["description"] = description
|
|
18593
|
+
if storage_configuration is not None:
|
|
18594
|
+
self._values["storage_configuration"] = storage_configuration
|
|
18127
18595
|
if tags is not None:
|
|
18128
18596
|
self._values["tags"] = tags
|
|
18129
18597
|
|
|
@@ -18159,18 +18627,6 @@ class CfnKnowledgeBaseProps:
|
|
|
18159
18627
|
assert result is not None, "Required property 'role_arn' is missing"
|
|
18160
18628
|
return typing.cast(builtins.str, result)
|
|
18161
18629
|
|
|
18162
|
-
@builtins.property
|
|
18163
|
-
def storage_configuration(
|
|
18164
|
-
self,
|
|
18165
|
-
) -> typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty]:
|
|
18166
|
-
'''Contains details about the storage configuration of the knowledge base.
|
|
18167
|
-
|
|
18168
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-knowledgebase.html#cfn-bedrock-knowledgebase-storageconfiguration
|
|
18169
|
-
'''
|
|
18170
|
-
result = self._values.get("storage_configuration")
|
|
18171
|
-
assert result is not None, "Required property 'storage_configuration' is missing"
|
|
18172
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty], result)
|
|
18173
|
-
|
|
18174
18630
|
@builtins.property
|
|
18175
18631
|
def description(self) -> typing.Optional[builtins.str]:
|
|
18176
18632
|
'''The description of the knowledge base associated with the inline agent.
|
|
@@ -18180,6 +18636,17 @@ class CfnKnowledgeBaseProps:
|
|
|
18180
18636
|
result = self._values.get("description")
|
|
18181
18637
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
18182
18638
|
|
|
18639
|
+
@builtins.property
|
|
18640
|
+
def storage_configuration(
|
|
18641
|
+
self,
|
|
18642
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty]]:
|
|
18643
|
+
'''Contains details about the storage configuration of the knowledge base.
|
|
18644
|
+
|
|
18645
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-knowledgebase.html#cfn-bedrock-knowledgebase-storageconfiguration
|
|
18646
|
+
'''
|
|
18647
|
+
result = self._values.get("storage_configuration")
|
|
18648
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty]], result)
|
|
18649
|
+
|
|
18183
18650
|
@builtins.property
|
|
18184
18651
|
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
18185
18652
|
'''Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.
|
|
@@ -18224,6 +18691,10 @@ class CfnPrompt(
|
|
|
18224
18691
|
# The values are placeholders you should change.
|
|
18225
18692
|
from aws_cdk import aws_bedrock as bedrock
|
|
18226
18693
|
|
|
18694
|
+
# any: Any
|
|
18695
|
+
# auto: Any
|
|
18696
|
+
# json: Any
|
|
18697
|
+
|
|
18227
18698
|
cfn_prompt = bedrock.CfnPrompt(self, "MyCfnPrompt",
|
|
18228
18699
|
name="name",
|
|
18229
18700
|
|
|
@@ -18237,6 +18708,44 @@ class CfnPrompt(
|
|
|
18237
18708
|
variants=[bedrock.CfnPrompt.PromptVariantProperty(
|
|
18238
18709
|
name="name",
|
|
18239
18710
|
template_configuration=bedrock.CfnPrompt.PromptTemplateConfigurationProperty(
|
|
18711
|
+
chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
18712
|
+
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
18713
|
+
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
18714
|
+
text="text"
|
|
18715
|
+
)],
|
|
18716
|
+
role="role"
|
|
18717
|
+
)],
|
|
18718
|
+
|
|
18719
|
+
# the properties below are optional
|
|
18720
|
+
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
18721
|
+
name="name"
|
|
18722
|
+
)],
|
|
18723
|
+
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
18724
|
+
text="text"
|
|
18725
|
+
)],
|
|
18726
|
+
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
18727
|
+
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
18728
|
+
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
18729
|
+
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
18730
|
+
json=json
|
|
18731
|
+
),
|
|
18732
|
+
name="name",
|
|
18733
|
+
|
|
18734
|
+
# the properties below are optional
|
|
18735
|
+
description="description"
|
|
18736
|
+
)
|
|
18737
|
+
)],
|
|
18738
|
+
|
|
18739
|
+
# the properties below are optional
|
|
18740
|
+
tool_choice=bedrock.CfnPrompt.ToolChoiceProperty(
|
|
18741
|
+
any=any,
|
|
18742
|
+
auto=auto,
|
|
18743
|
+
tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
|
|
18744
|
+
name="name"
|
|
18745
|
+
)
|
|
18746
|
+
)
|
|
18747
|
+
)
|
|
18748
|
+
),
|
|
18240
18749
|
text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
|
|
18241
18750
|
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
18242
18751
|
name="name"
|
|
@@ -18254,6 +18763,11 @@ class CfnPrompt(
|
|
|
18254
18763
|
template_type="templateType",
|
|
18255
18764
|
|
|
18256
18765
|
# the properties below are optional
|
|
18766
|
+
gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
|
|
18767
|
+
agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
|
|
18768
|
+
agent_identifier="agentIdentifier"
|
|
18769
|
+
)
|
|
18770
|
+
),
|
|
18257
18771
|
inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
|
|
18258
18772
|
text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
|
|
18259
18773
|
max_tokens=123,
|
|
@@ -18480,21 +18994,34 @@ class CfnPrompt(
|
|
|
18480
18994
|
jsii.set(self, "variants", value) # pyright: ignore[reportArgumentType]
|
|
18481
18995
|
|
|
18482
18996
|
@jsii.data_type(
|
|
18483
|
-
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.
|
|
18997
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty",
|
|
18484
18998
|
jsii_struct_bases=[],
|
|
18485
|
-
name_mapping={
|
|
18999
|
+
name_mapping={
|
|
19000
|
+
"messages": "messages",
|
|
19001
|
+
"input_variables": "inputVariables",
|
|
19002
|
+
"system": "system",
|
|
19003
|
+
"tool_configuration": "toolConfiguration",
|
|
19004
|
+
},
|
|
18486
19005
|
)
|
|
18487
|
-
class
|
|
19006
|
+
class ChatPromptTemplateConfigurationProperty:
|
|
18488
19007
|
def __init__(
|
|
18489
19008
|
self,
|
|
18490
19009
|
*,
|
|
18491
|
-
|
|
19010
|
+
messages: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.MessageProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
19011
|
+
input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptInputVariableProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
19012
|
+
system: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.SystemContentBlockProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
19013
|
+
tool_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18492
19014
|
) -> None:
|
|
18493
|
-
'''Contains
|
|
19015
|
+
'''Contains configurations to use a prompt in a conversational format.
|
|
18494
19016
|
|
|
18495
|
-
|
|
19017
|
+
For more information, see `Create a prompt using Prompt management <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html>`_ .
|
|
18496
19018
|
|
|
18497
|
-
:
|
|
19019
|
+
:param messages: Contains messages in the chat for the prompt.
|
|
19020
|
+
:param input_variables: An array of the variables in the prompt template.
|
|
19021
|
+
:param system: Contains system prompts to provide context to the model or to describe how it should behave.
|
|
19022
|
+
:param tool_configuration: Configuration information for the tools that the model can use when generating a response.
|
|
19023
|
+
|
|
19024
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-chatprompttemplateconfiguration.html
|
|
18498
19025
|
:exampleMetadata: fixture=_generated
|
|
18499
19026
|
|
|
18500
19027
|
Example::
|
|
@@ -18503,33 +19030,420 @@ class CfnPrompt(
|
|
|
18503
19030
|
# The values are placeholders you should change.
|
|
18504
19031
|
from aws_cdk import aws_bedrock as bedrock
|
|
18505
19032
|
|
|
18506
|
-
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
|
|
18510
|
-
|
|
18511
|
-
|
|
19033
|
+
# any: Any
|
|
19034
|
+
# auto: Any
|
|
19035
|
+
# json: Any
|
|
19036
|
+
|
|
19037
|
+
chat_prompt_template_configuration_property = bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
19038
|
+
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
19039
|
+
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
19040
|
+
text="text"
|
|
19041
|
+
)],
|
|
19042
|
+
role="role"
|
|
19043
|
+
)],
|
|
19044
|
+
|
|
19045
|
+
# the properties below are optional
|
|
19046
|
+
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
19047
|
+
name="name"
|
|
19048
|
+
)],
|
|
19049
|
+
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
19050
|
+
text="text"
|
|
19051
|
+
)],
|
|
19052
|
+
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
19053
|
+
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
19054
|
+
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
19055
|
+
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
19056
|
+
json=json
|
|
19057
|
+
),
|
|
19058
|
+
name="name",
|
|
19059
|
+
|
|
19060
|
+
# the properties below are optional
|
|
19061
|
+
description="description"
|
|
19062
|
+
)
|
|
19063
|
+
)],
|
|
19064
|
+
|
|
19065
|
+
# the properties below are optional
|
|
19066
|
+
tool_choice=bedrock.CfnPrompt.ToolChoiceProperty(
|
|
19067
|
+
any=any,
|
|
19068
|
+
auto=auto,
|
|
19069
|
+
tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
|
|
19070
|
+
name="name"
|
|
19071
|
+
)
|
|
19072
|
+
)
|
|
18512
19073
|
)
|
|
18513
19074
|
)
|
|
18514
19075
|
'''
|
|
18515
19076
|
if __debug__:
|
|
18516
|
-
type_hints = typing.get_type_hints(
|
|
18517
|
-
check_type(argname="argument
|
|
19077
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9c6a58ca5edb4fe7249a2b37babee7b708f1fc92b3adcd4af4c3afa45077ee55)
|
|
19078
|
+
check_type(argname="argument messages", value=messages, expected_type=type_hints["messages"])
|
|
19079
|
+
check_type(argname="argument input_variables", value=input_variables, expected_type=type_hints["input_variables"])
|
|
19080
|
+
check_type(argname="argument system", value=system, expected_type=type_hints["system"])
|
|
19081
|
+
check_type(argname="argument tool_configuration", value=tool_configuration, expected_type=type_hints["tool_configuration"])
|
|
18518
19082
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
18519
|
-
"
|
|
19083
|
+
"messages": messages,
|
|
18520
19084
|
}
|
|
19085
|
+
if input_variables is not None:
|
|
19086
|
+
self._values["input_variables"] = input_variables
|
|
19087
|
+
if system is not None:
|
|
19088
|
+
self._values["system"] = system
|
|
19089
|
+
if tool_configuration is not None:
|
|
19090
|
+
self._values["tool_configuration"] = tool_configuration
|
|
18521
19091
|
|
|
18522
19092
|
@builtins.property
|
|
18523
|
-
def
|
|
19093
|
+
def messages(
|
|
18524
19094
|
self,
|
|
18525
|
-
) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.
|
|
18526
|
-
'''Contains
|
|
19095
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.MessageProperty"]]]:
|
|
19096
|
+
'''Contains messages in the chat for the prompt.
|
|
18527
19097
|
|
|
18528
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-
|
|
19098
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-chatprompttemplateconfiguration.html#cfn-bedrock-prompt-chatprompttemplateconfiguration-messages
|
|
18529
19099
|
'''
|
|
18530
|
-
result = self._values.get("
|
|
18531
|
-
assert result is not None, "Required property '
|
|
18532
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.
|
|
19100
|
+
result = self._values.get("messages")
|
|
19101
|
+
assert result is not None, "Required property 'messages' is missing"
|
|
19102
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.MessageProperty"]]], result)
|
|
19103
|
+
|
|
19104
|
+
@builtins.property
|
|
19105
|
+
def input_variables(
|
|
19106
|
+
self,
|
|
19107
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptInputVariableProperty"]]]]:
|
|
19108
|
+
'''An array of the variables in the prompt template.
|
|
19109
|
+
|
|
19110
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-chatprompttemplateconfiguration.html#cfn-bedrock-prompt-chatprompttemplateconfiguration-inputvariables
|
|
19111
|
+
'''
|
|
19112
|
+
result = self._values.get("input_variables")
|
|
19113
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptInputVariableProperty"]]]], result)
|
|
19114
|
+
|
|
19115
|
+
@builtins.property
|
|
19116
|
+
def system(
|
|
19117
|
+
self,
|
|
19118
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SystemContentBlockProperty"]]]]:
|
|
19119
|
+
'''Contains system prompts to provide context to the model or to describe how it should behave.
|
|
19120
|
+
|
|
19121
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-chatprompttemplateconfiguration.html#cfn-bedrock-prompt-chatprompttemplateconfiguration-system
|
|
19122
|
+
'''
|
|
19123
|
+
result = self._values.get("system")
|
|
19124
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SystemContentBlockProperty"]]]], result)
|
|
19125
|
+
|
|
19126
|
+
@builtins.property
|
|
19127
|
+
def tool_configuration(
|
|
19128
|
+
self,
|
|
19129
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolConfigurationProperty"]]:
|
|
19130
|
+
'''Configuration information for the tools that the model can use when generating a response.
|
|
19131
|
+
|
|
19132
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-chatprompttemplateconfiguration.html#cfn-bedrock-prompt-chatprompttemplateconfiguration-toolconfiguration
|
|
19133
|
+
'''
|
|
19134
|
+
result = self._values.get("tool_configuration")
|
|
19135
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolConfigurationProperty"]], result)
|
|
19136
|
+
|
|
19137
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19138
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19139
|
+
|
|
19140
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
19141
|
+
return not (rhs == self)
|
|
19142
|
+
|
|
19143
|
+
def __repr__(self) -> str:
|
|
19144
|
+
return "ChatPromptTemplateConfigurationProperty(%s)" % ", ".join(
|
|
19145
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
19146
|
+
)
|
|
19147
|
+
|
|
19148
|
+
@jsii.data_type(
|
|
19149
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ContentBlockProperty",
|
|
19150
|
+
jsii_struct_bases=[],
|
|
19151
|
+
name_mapping={"text": "text"},
|
|
19152
|
+
)
|
|
19153
|
+
class ContentBlockProperty:
|
|
19154
|
+
def __init__(self, *, text: builtins.str) -> None:
|
|
19155
|
+
'''A block of content for a message that you pass to, or receive from, a model with the `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ or `ConverseStream <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html>`_ API operations.
|
|
19156
|
+
|
|
19157
|
+
:param text: Text to include in the message.
|
|
19158
|
+
|
|
19159
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html
|
|
19160
|
+
:exampleMetadata: fixture=_generated
|
|
19161
|
+
|
|
19162
|
+
Example::
|
|
19163
|
+
|
|
19164
|
+
# The code below shows an example of how to instantiate this type.
|
|
19165
|
+
# The values are placeholders you should change.
|
|
19166
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
19167
|
+
|
|
19168
|
+
content_block_property = bedrock.CfnPrompt.ContentBlockProperty(
|
|
19169
|
+
text="text"
|
|
19170
|
+
)
|
|
19171
|
+
'''
|
|
19172
|
+
if __debug__:
|
|
19173
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2d0cf0f0136b9d804a0809956c82c64b1f75a73d35d6c0fa6f1007666d629ec6)
|
|
19174
|
+
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
19175
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19176
|
+
"text": text,
|
|
19177
|
+
}
|
|
19178
|
+
|
|
19179
|
+
@builtins.property
|
|
19180
|
+
def text(self) -> builtins.str:
|
|
19181
|
+
'''Text to include in the message.
|
|
19182
|
+
|
|
19183
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-contentblock.html#cfn-bedrock-prompt-contentblock-text
|
|
19184
|
+
'''
|
|
19185
|
+
result = self._values.get("text")
|
|
19186
|
+
assert result is not None, "Required property 'text' is missing"
|
|
19187
|
+
return typing.cast(builtins.str, result)
|
|
19188
|
+
|
|
19189
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19190
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19191
|
+
|
|
19192
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
19193
|
+
return not (rhs == self)
|
|
19194
|
+
|
|
19195
|
+
def __repr__(self) -> str:
|
|
19196
|
+
return "ContentBlockProperty(%s)" % ", ".join(
|
|
19197
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
19198
|
+
)
|
|
19199
|
+
|
|
19200
|
+
@jsii.data_type(
|
|
19201
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.MessageProperty",
|
|
19202
|
+
jsii_struct_bases=[],
|
|
19203
|
+
name_mapping={"content": "content", "role": "role"},
|
|
19204
|
+
)
|
|
19205
|
+
class MessageProperty:
|
|
19206
|
+
def __init__(
|
|
19207
|
+
self,
|
|
19208
|
+
*,
|
|
19209
|
+
content: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ContentBlockProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
19210
|
+
role: builtins.str,
|
|
19211
|
+
) -> None:
|
|
19212
|
+
'''A message input, or returned from, a call to `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ or `ConverseStream <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html>`_ .
|
|
19213
|
+
|
|
19214
|
+
:param content: The message content. Note the following restrictions:. - You can include up to 20 images. Each image's size, height, and width must be no more than 3.75 MB, 8000 px, and 8000 px, respectively. - You can include up to five documents. Each document's size must be no more than 4.5 MB. - If you include a ``ContentBlock`` with a ``document`` field in the array, you must also include a ``ContentBlock`` with a ``text`` field. - You can only include images and documents if the ``role`` is ``user`` .
|
|
19215
|
+
:param role: The role that the message plays in the message.
|
|
19216
|
+
|
|
19217
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-message.html
|
|
19218
|
+
:exampleMetadata: fixture=_generated
|
|
19219
|
+
|
|
19220
|
+
Example::
|
|
19221
|
+
|
|
19222
|
+
# The code below shows an example of how to instantiate this type.
|
|
19223
|
+
# The values are placeholders you should change.
|
|
19224
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
19225
|
+
|
|
19226
|
+
message_property = bedrock.CfnPrompt.MessageProperty(
|
|
19227
|
+
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
19228
|
+
text="text"
|
|
19229
|
+
)],
|
|
19230
|
+
role="role"
|
|
19231
|
+
)
|
|
19232
|
+
'''
|
|
19233
|
+
if __debug__:
|
|
19234
|
+
type_hints = typing.get_type_hints(_typecheckingstub__42b42b22130352586f0ff208cc8c3ce6b3705d340f12b03331553326e9b7585b)
|
|
19235
|
+
check_type(argname="argument content", value=content, expected_type=type_hints["content"])
|
|
19236
|
+
check_type(argname="argument role", value=role, expected_type=type_hints["role"])
|
|
19237
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19238
|
+
"content": content,
|
|
19239
|
+
"role": role,
|
|
19240
|
+
}
|
|
19241
|
+
|
|
19242
|
+
@builtins.property
|
|
19243
|
+
def content(
|
|
19244
|
+
self,
|
|
19245
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ContentBlockProperty"]]]:
|
|
19246
|
+
'''The message content. Note the following restrictions:.
|
|
19247
|
+
|
|
19248
|
+
- You can include up to 20 images. Each image's size, height, and width must be no more than 3.75 MB, 8000 px, and 8000 px, respectively.
|
|
19249
|
+
- You can include up to five documents. Each document's size must be no more than 4.5 MB.
|
|
19250
|
+
- If you include a ``ContentBlock`` with a ``document`` field in the array, you must also include a ``ContentBlock`` with a ``text`` field.
|
|
19251
|
+
- You can only include images and documents if the ``role`` is ``user`` .
|
|
19252
|
+
|
|
19253
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-message.html#cfn-bedrock-prompt-message-content
|
|
19254
|
+
'''
|
|
19255
|
+
result = self._values.get("content")
|
|
19256
|
+
assert result is not None, "Required property 'content' is missing"
|
|
19257
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ContentBlockProperty"]]], result)
|
|
19258
|
+
|
|
19259
|
+
@builtins.property
|
|
19260
|
+
def role(self) -> builtins.str:
|
|
19261
|
+
'''The role that the message plays in the message.
|
|
19262
|
+
|
|
19263
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-message.html#cfn-bedrock-prompt-message-role
|
|
19264
|
+
'''
|
|
19265
|
+
result = self._values.get("role")
|
|
19266
|
+
assert result is not None, "Required property 'role' is missing"
|
|
19267
|
+
return typing.cast(builtins.str, result)
|
|
19268
|
+
|
|
19269
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19270
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19271
|
+
|
|
19272
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
19273
|
+
return not (rhs == self)
|
|
19274
|
+
|
|
19275
|
+
def __repr__(self) -> str:
|
|
19276
|
+
return "MessageProperty(%s)" % ", ".join(
|
|
19277
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
19278
|
+
)
|
|
19279
|
+
|
|
19280
|
+
@jsii.data_type(
|
|
19281
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.PromptAgentResourceProperty",
|
|
19282
|
+
jsii_struct_bases=[],
|
|
19283
|
+
name_mapping={"agent_identifier": "agentIdentifier"},
|
|
19284
|
+
)
|
|
19285
|
+
class PromptAgentResourceProperty:
|
|
19286
|
+
def __init__(self, *, agent_identifier: builtins.str) -> None:
|
|
19287
|
+
'''Contains specifications for an Amazon Bedrock agent with which to use the prompt.
|
|
19288
|
+
|
|
19289
|
+
For more information, see `Create a prompt using Prompt management <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html>`_ and `Automate tasks in your application using conversational agents <https://docs.aws.amazon.com/bedrock/latest/userguide/agents.html>`_ .
|
|
19290
|
+
|
|
19291
|
+
:param agent_identifier: The ARN of the agent with which to use the prompt.
|
|
19292
|
+
|
|
19293
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptagentresource.html
|
|
19294
|
+
:exampleMetadata: fixture=_generated
|
|
19295
|
+
|
|
19296
|
+
Example::
|
|
19297
|
+
|
|
19298
|
+
# The code below shows an example of how to instantiate this type.
|
|
19299
|
+
# The values are placeholders you should change.
|
|
19300
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
19301
|
+
|
|
19302
|
+
prompt_agent_resource_property = bedrock.CfnPrompt.PromptAgentResourceProperty(
|
|
19303
|
+
agent_identifier="agentIdentifier"
|
|
19304
|
+
)
|
|
19305
|
+
'''
|
|
19306
|
+
if __debug__:
|
|
19307
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d28921d18df971112b15d156471e2c5279000c3080bd4f0620f849341fd6a896)
|
|
19308
|
+
check_type(argname="argument agent_identifier", value=agent_identifier, expected_type=type_hints["agent_identifier"])
|
|
19309
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19310
|
+
"agent_identifier": agent_identifier,
|
|
19311
|
+
}
|
|
19312
|
+
|
|
19313
|
+
@builtins.property
|
|
19314
|
+
def agent_identifier(self) -> builtins.str:
|
|
19315
|
+
'''The ARN of the agent with which to use the prompt.
|
|
19316
|
+
|
|
19317
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptagentresource.html#cfn-bedrock-prompt-promptagentresource-agentidentifier
|
|
19318
|
+
'''
|
|
19319
|
+
result = self._values.get("agent_identifier")
|
|
19320
|
+
assert result is not None, "Required property 'agent_identifier' is missing"
|
|
19321
|
+
return typing.cast(builtins.str, result)
|
|
19322
|
+
|
|
19323
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19324
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19325
|
+
|
|
19326
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
19327
|
+
return not (rhs == self)
|
|
19328
|
+
|
|
19329
|
+
def __repr__(self) -> str:
|
|
19330
|
+
return "PromptAgentResourceProperty(%s)" % ", ".join(
|
|
19331
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
19332
|
+
)
|
|
19333
|
+
|
|
19334
|
+
@jsii.data_type(
|
|
19335
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.PromptGenAiResourceProperty",
|
|
19336
|
+
jsii_struct_bases=[],
|
|
19337
|
+
name_mapping={"agent": "agent"},
|
|
19338
|
+
)
|
|
19339
|
+
class PromptGenAiResourceProperty:
|
|
19340
|
+
def __init__(
|
|
19341
|
+
self,
|
|
19342
|
+
*,
|
|
19343
|
+
agent: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptAgentResourceProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
19344
|
+
) -> None:
|
|
19345
|
+
'''Contains specifications for a generative AI resource with which to use the prompt.
|
|
19346
|
+
|
|
19347
|
+
For more information, see `Create a prompt using Prompt management <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html>`_ .
|
|
19348
|
+
|
|
19349
|
+
:param agent: Specifies an Amazon Bedrock agent with which to use the prompt.
|
|
19350
|
+
|
|
19351
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptgenairesource.html
|
|
19352
|
+
:exampleMetadata: fixture=_generated
|
|
19353
|
+
|
|
19354
|
+
Example::
|
|
19355
|
+
|
|
19356
|
+
# The code below shows an example of how to instantiate this type.
|
|
19357
|
+
# The values are placeholders you should change.
|
|
19358
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
19359
|
+
|
|
19360
|
+
prompt_gen_ai_resource_property = bedrock.CfnPrompt.PromptGenAiResourceProperty(
|
|
19361
|
+
agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
|
|
19362
|
+
agent_identifier="agentIdentifier"
|
|
19363
|
+
)
|
|
19364
|
+
)
|
|
19365
|
+
'''
|
|
19366
|
+
if __debug__:
|
|
19367
|
+
type_hints = typing.get_type_hints(_typecheckingstub__64cff76991e320523c3338e0c04d15db173e4f0d91de163069f07878d8c88123)
|
|
19368
|
+
check_type(argname="argument agent", value=agent, expected_type=type_hints["agent"])
|
|
19369
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19370
|
+
"agent": agent,
|
|
19371
|
+
}
|
|
19372
|
+
|
|
19373
|
+
@builtins.property
|
|
19374
|
+
def agent(
|
|
19375
|
+
self,
|
|
19376
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptAgentResourceProperty"]:
|
|
19377
|
+
'''Specifies an Amazon Bedrock agent with which to use the prompt.
|
|
19378
|
+
|
|
19379
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptgenairesource.html#cfn-bedrock-prompt-promptgenairesource-agent
|
|
19380
|
+
'''
|
|
19381
|
+
result = self._values.get("agent")
|
|
19382
|
+
assert result is not None, "Required property 'agent' is missing"
|
|
19383
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptAgentResourceProperty"], result)
|
|
19384
|
+
|
|
19385
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
19386
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
19387
|
+
|
|
19388
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
19389
|
+
return not (rhs == self)
|
|
19390
|
+
|
|
19391
|
+
def __repr__(self) -> str:
|
|
19392
|
+
return "PromptGenAiResourceProperty(%s)" % ", ".join(
|
|
19393
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
19394
|
+
)
|
|
19395
|
+
|
|
19396
|
+
@jsii.data_type(
|
|
19397
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.PromptInferenceConfigurationProperty",
|
|
19398
|
+
jsii_struct_bases=[],
|
|
19399
|
+
name_mapping={"text": "text"},
|
|
19400
|
+
)
|
|
19401
|
+
class PromptInferenceConfigurationProperty:
|
|
19402
|
+
def __init__(
|
|
19403
|
+
self,
|
|
19404
|
+
*,
|
|
19405
|
+
text: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptModelInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
19406
|
+
) -> None:
|
|
19407
|
+
'''Contains inference configurations for the prompt.
|
|
19408
|
+
|
|
19409
|
+
:param text: Contains inference configurations for a text prompt.
|
|
19410
|
+
|
|
19411
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinferenceconfiguration.html
|
|
19412
|
+
:exampleMetadata: fixture=_generated
|
|
19413
|
+
|
|
19414
|
+
Example::
|
|
19415
|
+
|
|
19416
|
+
# The code below shows an example of how to instantiate this type.
|
|
19417
|
+
# The values are placeholders you should change.
|
|
19418
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
19419
|
+
|
|
19420
|
+
prompt_inference_configuration_property = bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
|
|
19421
|
+
text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
|
|
19422
|
+
max_tokens=123,
|
|
19423
|
+
stop_sequences=["stopSequences"],
|
|
19424
|
+
temperature=123,
|
|
19425
|
+
top_p=123
|
|
19426
|
+
)
|
|
19427
|
+
)
|
|
19428
|
+
'''
|
|
19429
|
+
if __debug__:
|
|
19430
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bd64a2009dff1bac3dd98571ac9a9cd65cbb030a3896121e0b1c8f24dfe6c74d)
|
|
19431
|
+
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
19432
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19433
|
+
"text": text,
|
|
19434
|
+
}
|
|
19435
|
+
|
|
19436
|
+
@builtins.property
|
|
19437
|
+
def text(
|
|
19438
|
+
self,
|
|
19439
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptModelInferenceConfigurationProperty"]:
|
|
19440
|
+
'''Contains inference configurations for a text prompt.
|
|
19441
|
+
|
|
19442
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinferenceconfiguration.html#cfn-bedrock-prompt-promptinferenceconfiguration-text
|
|
19443
|
+
'''
|
|
19444
|
+
result = self._values.get("text")
|
|
19445
|
+
assert result is not None, "Required property 'text' is missing"
|
|
19446
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptModelInferenceConfigurationProperty"], result)
|
|
18533
19447
|
|
|
18534
19448
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
18535
19449
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -18705,18 +19619,20 @@ class CfnPrompt(
|
|
|
18705
19619
|
@jsii.data_type(
|
|
18706
19620
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.PromptTemplateConfigurationProperty",
|
|
18707
19621
|
jsii_struct_bases=[],
|
|
18708
|
-
name_mapping={"text": "text"},
|
|
19622
|
+
name_mapping={"chat": "chat", "text": "text"},
|
|
18709
19623
|
)
|
|
18710
19624
|
class PromptTemplateConfigurationProperty:
|
|
18711
19625
|
def __init__(
|
|
18712
19626
|
self,
|
|
18713
19627
|
*,
|
|
18714
|
-
|
|
19628
|
+
chat: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ChatPromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
19629
|
+
text: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.TextPromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18715
19630
|
) -> None:
|
|
18716
19631
|
'''Contains the message for a prompt.
|
|
18717
19632
|
|
|
18718
19633
|
For more information, see `Construct and store reusable prompts with Prompt management in Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html>`_ .
|
|
18719
19634
|
|
|
19635
|
+
:param chat: Contains configurations to use the prompt in a conversational format.
|
|
18720
19636
|
:param text: Contains configurations for the text in a message for a prompt.
|
|
18721
19637
|
|
|
18722
19638
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-prompttemplateconfiguration.html
|
|
@@ -18728,12 +19644,54 @@ class CfnPrompt(
|
|
|
18728
19644
|
# The values are placeholders you should change.
|
|
18729
19645
|
from aws_cdk import aws_bedrock as bedrock
|
|
18730
19646
|
|
|
19647
|
+
# any: Any
|
|
19648
|
+
# auto: Any
|
|
19649
|
+
# json: Any
|
|
19650
|
+
|
|
18731
19651
|
prompt_template_configuration_property = bedrock.CfnPrompt.PromptTemplateConfigurationProperty(
|
|
18732
|
-
|
|
19652
|
+
chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
19653
|
+
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
19654
|
+
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
19655
|
+
text="text"
|
|
19656
|
+
)],
|
|
19657
|
+
role="role"
|
|
19658
|
+
)],
|
|
19659
|
+
|
|
19660
|
+
# the properties below are optional
|
|
18733
19661
|
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
18734
19662
|
name="name"
|
|
18735
19663
|
)],
|
|
18736
|
-
|
|
19664
|
+
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
19665
|
+
text="text"
|
|
19666
|
+
)],
|
|
19667
|
+
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
19668
|
+
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
19669
|
+
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
19670
|
+
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
19671
|
+
json=json
|
|
19672
|
+
),
|
|
19673
|
+
name="name",
|
|
19674
|
+
|
|
19675
|
+
# the properties below are optional
|
|
19676
|
+
description="description"
|
|
19677
|
+
)
|
|
19678
|
+
)],
|
|
19679
|
+
|
|
19680
|
+
# the properties below are optional
|
|
19681
|
+
tool_choice=bedrock.CfnPrompt.ToolChoiceProperty(
|
|
19682
|
+
any=any,
|
|
19683
|
+
auto=auto,
|
|
19684
|
+
tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
|
|
19685
|
+
name="name"
|
|
19686
|
+
)
|
|
19687
|
+
)
|
|
19688
|
+
)
|
|
19689
|
+
),
|
|
19690
|
+
text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
|
|
19691
|
+
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
19692
|
+
name="name"
|
|
19693
|
+
)],
|
|
19694
|
+
text="text",
|
|
18737
19695
|
text_s3_location=bedrock.CfnPrompt.TextS3LocationProperty(
|
|
18738
19696
|
bucket="bucket",
|
|
18739
19697
|
key="key",
|
|
@@ -18746,22 +19704,35 @@ class CfnPrompt(
|
|
|
18746
19704
|
'''
|
|
18747
19705
|
if __debug__:
|
|
18748
19706
|
type_hints = typing.get_type_hints(_typecheckingstub__fde740ede958bf60edc6a98392bd083868fd4fd5f6ba5698705fc5e13de4d2bc)
|
|
19707
|
+
check_type(argname="argument chat", value=chat, expected_type=type_hints["chat"])
|
|
18749
19708
|
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
18750
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
18751
|
-
|
|
18752
|
-
|
|
19709
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
19710
|
+
if chat is not None:
|
|
19711
|
+
self._values["chat"] = chat
|
|
19712
|
+
if text is not None:
|
|
19713
|
+
self._values["text"] = text
|
|
19714
|
+
|
|
19715
|
+
@builtins.property
|
|
19716
|
+
def chat(
|
|
19717
|
+
self,
|
|
19718
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ChatPromptTemplateConfigurationProperty"]]:
|
|
19719
|
+
'''Contains configurations to use the prompt in a conversational format.
|
|
19720
|
+
|
|
19721
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-prompttemplateconfiguration.html#cfn-bedrock-prompt-prompttemplateconfiguration-chat
|
|
19722
|
+
'''
|
|
19723
|
+
result = self._values.get("chat")
|
|
19724
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ChatPromptTemplateConfigurationProperty"]], result)
|
|
18753
19725
|
|
|
18754
19726
|
@builtins.property
|
|
18755
19727
|
def text(
|
|
18756
19728
|
self,
|
|
18757
|
-
) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.TextPromptTemplateConfigurationProperty"]:
|
|
19729
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.TextPromptTemplateConfigurationProperty"]]:
|
|
18758
19730
|
'''Contains configurations for the text in a message for a prompt.
|
|
18759
19731
|
|
|
18760
19732
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-prompttemplateconfiguration.html#cfn-bedrock-prompt-prompttemplateconfiguration-text
|
|
18761
19733
|
'''
|
|
18762
19734
|
result = self._values.get("text")
|
|
18763
|
-
|
|
18764
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.TextPromptTemplateConfigurationProperty"], result)
|
|
19735
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.TextPromptTemplateConfigurationProperty"]], result)
|
|
18765
19736
|
|
|
18766
19737
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
18767
19738
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -18781,6 +19752,7 @@ class CfnPrompt(
|
|
|
18781
19752
|
"name": "name",
|
|
18782
19753
|
"template_configuration": "templateConfiguration",
|
|
18783
19754
|
"template_type": "templateType",
|
|
19755
|
+
"gen_ai_resource": "genAiResource",
|
|
18784
19756
|
"inference_configuration": "inferenceConfiguration",
|
|
18785
19757
|
"model_id": "modelId",
|
|
18786
19758
|
},
|
|
@@ -18792,6 +19764,7 @@ class CfnPrompt(
|
|
|
18792
19764
|
name: builtins.str,
|
|
18793
19765
|
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
18794
19766
|
template_type: builtins.str,
|
|
19767
|
+
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptGenAiResourceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18795
19768
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18796
19769
|
model_id: typing.Optional[builtins.str] = None,
|
|
18797
19770
|
) -> None:
|
|
@@ -18800,6 +19773,7 @@ class CfnPrompt(
|
|
|
18800
19773
|
:param name: The name of the prompt variant.
|
|
18801
19774
|
:param template_configuration: Contains configurations for the prompt template.
|
|
18802
19775
|
:param template_type: The type of prompt template to use.
|
|
19776
|
+
:param gen_ai_resource: Specifies a generative AI resource with which to use the prompt.
|
|
18803
19777
|
:param inference_configuration: Contains inference configurations for the prompt variant.
|
|
18804
19778
|
:param model_id: The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ with which to run inference on the prompt.
|
|
18805
19779
|
|
|
@@ -18812,9 +19786,51 @@ class CfnPrompt(
|
|
|
18812
19786
|
# The values are placeholders you should change.
|
|
18813
19787
|
from aws_cdk import aws_bedrock as bedrock
|
|
18814
19788
|
|
|
19789
|
+
# any: Any
|
|
19790
|
+
# auto: Any
|
|
19791
|
+
# json: Any
|
|
19792
|
+
|
|
18815
19793
|
prompt_variant_property = bedrock.CfnPrompt.PromptVariantProperty(
|
|
18816
19794
|
name="name",
|
|
18817
19795
|
template_configuration=bedrock.CfnPrompt.PromptTemplateConfigurationProperty(
|
|
19796
|
+
chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
19797
|
+
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
19798
|
+
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
19799
|
+
text="text"
|
|
19800
|
+
)],
|
|
19801
|
+
role="role"
|
|
19802
|
+
)],
|
|
19803
|
+
|
|
19804
|
+
# the properties below are optional
|
|
19805
|
+
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
19806
|
+
name="name"
|
|
19807
|
+
)],
|
|
19808
|
+
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
19809
|
+
text="text"
|
|
19810
|
+
)],
|
|
19811
|
+
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
19812
|
+
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
19813
|
+
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
19814
|
+
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
19815
|
+
json=json
|
|
19816
|
+
),
|
|
19817
|
+
name="name",
|
|
19818
|
+
|
|
19819
|
+
# the properties below are optional
|
|
19820
|
+
description="description"
|
|
19821
|
+
)
|
|
19822
|
+
)],
|
|
19823
|
+
|
|
19824
|
+
# the properties below are optional
|
|
19825
|
+
tool_choice=bedrock.CfnPrompt.ToolChoiceProperty(
|
|
19826
|
+
any=any,
|
|
19827
|
+
auto=auto,
|
|
19828
|
+
tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
|
|
19829
|
+
name="name"
|
|
19830
|
+
)
|
|
19831
|
+
)
|
|
19832
|
+
)
|
|
19833
|
+
),
|
|
18818
19834
|
text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
|
|
18819
19835
|
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
18820
19836
|
name="name"
|
|
@@ -18832,6 +19848,11 @@ class CfnPrompt(
|
|
|
18832
19848
|
template_type="templateType",
|
|
18833
19849
|
|
|
18834
19850
|
# the properties below are optional
|
|
19851
|
+
gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
|
|
19852
|
+
agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
|
|
19853
|
+
agent_identifier="agentIdentifier"
|
|
19854
|
+
)
|
|
19855
|
+
),
|
|
18835
19856
|
inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
|
|
18836
19857
|
text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
|
|
18837
19858
|
max_tokens=123,
|
|
@@ -18848,6 +19869,7 @@ class CfnPrompt(
|
|
|
18848
19869
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
18849
19870
|
check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
|
|
18850
19871
|
check_type(argname="argument template_type", value=template_type, expected_type=type_hints["template_type"])
|
|
19872
|
+
check_type(argname="argument gen_ai_resource", value=gen_ai_resource, expected_type=type_hints["gen_ai_resource"])
|
|
18851
19873
|
check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
|
|
18852
19874
|
check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
|
|
18853
19875
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -18855,6 +19877,8 @@ class CfnPrompt(
|
|
|
18855
19877
|
"template_configuration": template_configuration,
|
|
18856
19878
|
"template_type": template_type,
|
|
18857
19879
|
}
|
|
19880
|
+
if gen_ai_resource is not None:
|
|
19881
|
+
self._values["gen_ai_resource"] = gen_ai_resource
|
|
18858
19882
|
if inference_configuration is not None:
|
|
18859
19883
|
self._values["inference_configuration"] = inference_configuration
|
|
18860
19884
|
if model_id is not None:
|
|
@@ -18892,6 +19916,17 @@ class CfnPrompt(
|
|
|
18892
19916
|
assert result is not None, "Required property 'template_type' is missing"
|
|
18893
19917
|
return typing.cast(builtins.str, result)
|
|
18894
19918
|
|
|
19919
|
+
@builtins.property
|
|
19920
|
+
def gen_ai_resource(
|
|
19921
|
+
self,
|
|
19922
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptGenAiResourceProperty"]]:
|
|
19923
|
+
'''Specifies a generative AI resource with which to use the prompt.
|
|
19924
|
+
|
|
19925
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-genairesource
|
|
19926
|
+
'''
|
|
19927
|
+
result = self._values.get("gen_ai_resource")
|
|
19928
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptGenAiResourceProperty"]], result)
|
|
19929
|
+
|
|
18895
19930
|
@builtins.property
|
|
18896
19931
|
def inference_configuration(
|
|
18897
19932
|
self,
|
|
@@ -18923,6 +19958,116 @@ class CfnPrompt(
|
|
|
18923
19958
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
18924
19959
|
)
|
|
18925
19960
|
|
|
19961
|
+
@jsii.data_type(
|
|
19962
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.SpecificToolChoiceProperty",
|
|
19963
|
+
jsii_struct_bases=[],
|
|
19964
|
+
name_mapping={"name": "name"},
|
|
19965
|
+
)
|
|
19966
|
+
class SpecificToolChoiceProperty:
|
|
19967
|
+
def __init__(self, *, name: builtins.str) -> None:
|
|
19968
|
+
'''The model must request a specific tool. For example, ``{"tool" : {"name" : "Your tool name"}}`` .
|
|
19969
|
+
|
|
19970
|
+
.. epigraph::
|
|
19971
|
+
|
|
19972
|
+
This field is only supported by Anthropic Claude 3 models.
|
|
19973
|
+
|
|
19974
|
+
:param name: The name of the tool that the model must request.
|
|
19975
|
+
|
|
19976
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-specifictoolchoice.html
|
|
19977
|
+
:exampleMetadata: fixture=_generated
|
|
19978
|
+
|
|
19979
|
+
Example::
|
|
19980
|
+
|
|
19981
|
+
# The code below shows an example of how to instantiate this type.
|
|
19982
|
+
# The values are placeholders you should change.
|
|
19983
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
19984
|
+
|
|
19985
|
+
specific_tool_choice_property = bedrock.CfnPrompt.SpecificToolChoiceProperty(
|
|
19986
|
+
name="name"
|
|
19987
|
+
)
|
|
19988
|
+
'''
|
|
19989
|
+
if __debug__:
|
|
19990
|
+
type_hints = typing.get_type_hints(_typecheckingstub__da5ae43b082eab1803451ea8230aaac824b9e7e5692a382e90523019503e98d8)
|
|
19991
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
19992
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
19993
|
+
"name": name,
|
|
19994
|
+
}
|
|
19995
|
+
|
|
19996
|
+
@builtins.property
|
|
19997
|
+
def name(self) -> builtins.str:
|
|
19998
|
+
'''The name of the tool that the model must request.
|
|
19999
|
+
|
|
20000
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-specifictoolchoice.html#cfn-bedrock-prompt-specifictoolchoice-name
|
|
20001
|
+
'''
|
|
20002
|
+
result = self._values.get("name")
|
|
20003
|
+
assert result is not None, "Required property 'name' is missing"
|
|
20004
|
+
return typing.cast(builtins.str, result)
|
|
20005
|
+
|
|
20006
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20007
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20008
|
+
|
|
20009
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
20010
|
+
return not (rhs == self)
|
|
20011
|
+
|
|
20012
|
+
def __repr__(self) -> str:
|
|
20013
|
+
return "SpecificToolChoiceProperty(%s)" % ", ".join(
|
|
20014
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
20015
|
+
)
|
|
20016
|
+
|
|
20017
|
+
@jsii.data_type(
|
|
20018
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.SystemContentBlockProperty",
|
|
20019
|
+
jsii_struct_bases=[],
|
|
20020
|
+
name_mapping={"text": "text"},
|
|
20021
|
+
)
|
|
20022
|
+
class SystemContentBlockProperty:
|
|
20023
|
+
def __init__(self, *, text: builtins.str) -> None:
|
|
20024
|
+
'''Contains configurations for instructions to provide the model for how to handle input.
|
|
20025
|
+
|
|
20026
|
+
To learn more, see `Using the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html>`_ .
|
|
20027
|
+
|
|
20028
|
+
:param text: A system prompt for the model.
|
|
20029
|
+
|
|
20030
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html
|
|
20031
|
+
:exampleMetadata: fixture=_generated
|
|
20032
|
+
|
|
20033
|
+
Example::
|
|
20034
|
+
|
|
20035
|
+
# The code below shows an example of how to instantiate this type.
|
|
20036
|
+
# The values are placeholders you should change.
|
|
20037
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
20038
|
+
|
|
20039
|
+
system_content_block_property = bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
20040
|
+
text="text"
|
|
20041
|
+
)
|
|
20042
|
+
'''
|
|
20043
|
+
if __debug__:
|
|
20044
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8684cdb8cfe450b629e96665dd0dbfcf0c5a9af74b282632d6f3c9b2aa9f3ba1)
|
|
20045
|
+
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
20046
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
20047
|
+
"text": text,
|
|
20048
|
+
}
|
|
20049
|
+
|
|
20050
|
+
@builtins.property
|
|
20051
|
+
def text(self) -> builtins.str:
|
|
20052
|
+
'''A system prompt for the model.
|
|
20053
|
+
|
|
20054
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html#cfn-bedrock-prompt-systemcontentblock-text
|
|
20055
|
+
'''
|
|
20056
|
+
result = self._values.get("text")
|
|
20057
|
+
assert result is not None, "Required property 'text' is missing"
|
|
20058
|
+
return typing.cast(builtins.str, result)
|
|
20059
|
+
|
|
20060
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20061
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20062
|
+
|
|
20063
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
20064
|
+
return not (rhs == self)
|
|
20065
|
+
|
|
20066
|
+
def __repr__(self) -> str:
|
|
20067
|
+
return "SystemContentBlockProperty(%s)" % ", ".join(
|
|
20068
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
20069
|
+
)
|
|
20070
|
+
|
|
18926
20071
|
@jsii.data_type(
|
|
18927
20072
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty",
|
|
18928
20073
|
jsii_struct_bases=[],
|
|
@@ -19095,12 +20240,435 @@ class CfnPrompt(
|
|
|
19095
20240
|
return typing.cast(builtins.str, result)
|
|
19096
20241
|
|
|
19097
20242
|
@builtins.property
|
|
19098
|
-
def version(self) -> typing.Optional[builtins.str]:
|
|
19099
|
-
'''The version of the Amazon S3 location to use.
|
|
20243
|
+
def version(self) -> typing.Optional[builtins.str]:
|
|
20244
|
+
'''The version of the Amazon S3 location to use.
|
|
20245
|
+
|
|
20246
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html#cfn-bedrock-prompt-texts3location-version
|
|
20247
|
+
'''
|
|
20248
|
+
result = self._values.get("version")
|
|
20249
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
20250
|
+
|
|
20251
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20252
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20253
|
+
|
|
20254
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
20255
|
+
return not (rhs == self)
|
|
20256
|
+
|
|
20257
|
+
def __repr__(self) -> str:
|
|
20258
|
+
return "TextS3LocationProperty(%s)" % ", ".join(
|
|
20259
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
20260
|
+
)
|
|
20261
|
+
|
|
20262
|
+
@jsii.data_type(
|
|
20263
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolChoiceProperty",
|
|
20264
|
+
jsii_struct_bases=[],
|
|
20265
|
+
name_mapping={"any": "any", "auto": "auto", "tool": "tool"},
|
|
20266
|
+
)
|
|
20267
|
+
class ToolChoiceProperty:
|
|
20268
|
+
def __init__(
|
|
20269
|
+
self,
|
|
20270
|
+
*,
|
|
20271
|
+
any: typing.Any = None,
|
|
20272
|
+
auto: typing.Any = None,
|
|
20273
|
+
tool: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.SpecificToolChoiceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
20274
|
+
) -> None:
|
|
20275
|
+
'''Determines which tools the model should request in a call to ``Converse`` or ``ConverseStream`` .
|
|
20276
|
+
|
|
20277
|
+
``ToolChoice`` is only supported by Anthropic Claude 3 models and by Mistral AI Mistral Large.
|
|
20278
|
+
|
|
20279
|
+
:param any: The model must request at least one tool (no text is generated).
|
|
20280
|
+
:param auto: (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
|
|
20281
|
+
:param tool: The Model must request the specified tool. Only supported by Anthropic Claude 3 models.
|
|
20282
|
+
|
|
20283
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html
|
|
20284
|
+
:exampleMetadata: fixture=_generated
|
|
20285
|
+
|
|
20286
|
+
Example::
|
|
20287
|
+
|
|
20288
|
+
# The code below shows an example of how to instantiate this type.
|
|
20289
|
+
# The values are placeholders you should change.
|
|
20290
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
20291
|
+
|
|
20292
|
+
# any: Any
|
|
20293
|
+
# auto: Any
|
|
20294
|
+
|
|
20295
|
+
tool_choice_property = bedrock.CfnPrompt.ToolChoiceProperty(
|
|
20296
|
+
any=any,
|
|
20297
|
+
auto=auto,
|
|
20298
|
+
tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
|
|
20299
|
+
name="name"
|
|
20300
|
+
)
|
|
20301
|
+
)
|
|
20302
|
+
'''
|
|
20303
|
+
if __debug__:
|
|
20304
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ad9877c38015f6113fa32d864cca77d0c46ace16b3e5266c514440f59ad5d586)
|
|
20305
|
+
check_type(argname="argument any", value=any, expected_type=type_hints["any"])
|
|
20306
|
+
check_type(argname="argument auto", value=auto, expected_type=type_hints["auto"])
|
|
20307
|
+
check_type(argname="argument tool", value=tool, expected_type=type_hints["tool"])
|
|
20308
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
20309
|
+
if any is not None:
|
|
20310
|
+
self._values["any"] = any
|
|
20311
|
+
if auto is not None:
|
|
20312
|
+
self._values["auto"] = auto
|
|
20313
|
+
if tool is not None:
|
|
20314
|
+
self._values["tool"] = tool
|
|
20315
|
+
|
|
20316
|
+
@builtins.property
|
|
20317
|
+
def any(self) -> typing.Any:
|
|
20318
|
+
'''The model must request at least one tool (no text is generated).
|
|
20319
|
+
|
|
20320
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-any
|
|
20321
|
+
'''
|
|
20322
|
+
result = self._values.get("any")
|
|
20323
|
+
return typing.cast(typing.Any, result)
|
|
20324
|
+
|
|
20325
|
+
@builtins.property
|
|
20326
|
+
def auto(self) -> typing.Any:
|
|
20327
|
+
'''(Default).
|
|
20328
|
+
|
|
20329
|
+
The Model automatically decides if a tool should be called or whether to generate text instead.
|
|
20330
|
+
|
|
20331
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-auto
|
|
20332
|
+
'''
|
|
20333
|
+
result = self._values.get("auto")
|
|
20334
|
+
return typing.cast(typing.Any, result)
|
|
20335
|
+
|
|
20336
|
+
@builtins.property
|
|
20337
|
+
def tool(
|
|
20338
|
+
self,
|
|
20339
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SpecificToolChoiceProperty"]]:
|
|
20340
|
+
'''The Model must request the specified tool.
|
|
20341
|
+
|
|
20342
|
+
Only supported by Anthropic Claude 3 models.
|
|
20343
|
+
|
|
20344
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-tool
|
|
20345
|
+
'''
|
|
20346
|
+
result = self._values.get("tool")
|
|
20347
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SpecificToolChoiceProperty"]], result)
|
|
20348
|
+
|
|
20349
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20350
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20351
|
+
|
|
20352
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
20353
|
+
return not (rhs == self)
|
|
20354
|
+
|
|
20355
|
+
def __repr__(self) -> str:
|
|
20356
|
+
return "ToolChoiceProperty(%s)" % ", ".join(
|
|
20357
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
20358
|
+
)
|
|
20359
|
+
|
|
20360
|
+
@jsii.data_type(
|
|
20361
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolConfigurationProperty",
|
|
20362
|
+
jsii_struct_bases=[],
|
|
20363
|
+
name_mapping={"tools": "tools", "tool_choice": "toolChoice"},
|
|
20364
|
+
)
|
|
20365
|
+
class ToolConfigurationProperty:
|
|
20366
|
+
def __init__(
|
|
20367
|
+
self,
|
|
20368
|
+
*,
|
|
20369
|
+
tools: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
20370
|
+
tool_choice: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolChoiceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
20371
|
+
) -> None:
|
|
20372
|
+
'''Configuration information for the tools that you pass to a model.
|
|
20373
|
+
|
|
20374
|
+
For more information, see `Tool use (function calling) <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
|
|
20375
|
+
|
|
20376
|
+
:param tools: An array of tools that you want to pass to a model.
|
|
20377
|
+
:param tool_choice: If supported by model, forces the model to request a tool.
|
|
20378
|
+
|
|
20379
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolconfiguration.html
|
|
20380
|
+
:exampleMetadata: fixture=_generated
|
|
20381
|
+
|
|
20382
|
+
Example::
|
|
20383
|
+
|
|
20384
|
+
# The code below shows an example of how to instantiate this type.
|
|
20385
|
+
# The values are placeholders you should change.
|
|
20386
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
20387
|
+
|
|
20388
|
+
# any: Any
|
|
20389
|
+
# auto: Any
|
|
20390
|
+
# json: Any
|
|
20391
|
+
|
|
20392
|
+
tool_configuration_property = bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
20393
|
+
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
20394
|
+
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
20395
|
+
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
20396
|
+
json=json
|
|
20397
|
+
),
|
|
20398
|
+
name="name",
|
|
20399
|
+
|
|
20400
|
+
# the properties below are optional
|
|
20401
|
+
description="description"
|
|
20402
|
+
)
|
|
20403
|
+
)],
|
|
20404
|
+
|
|
20405
|
+
# the properties below are optional
|
|
20406
|
+
tool_choice=bedrock.CfnPrompt.ToolChoiceProperty(
|
|
20407
|
+
any=any,
|
|
20408
|
+
auto=auto,
|
|
20409
|
+
tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
|
|
20410
|
+
name="name"
|
|
20411
|
+
)
|
|
20412
|
+
)
|
|
20413
|
+
)
|
|
20414
|
+
'''
|
|
20415
|
+
if __debug__:
|
|
20416
|
+
type_hints = typing.get_type_hints(_typecheckingstub__58bef5956bcdc66861dfc71e6b8d5195db50ef860d563950a8cad8402be28a72)
|
|
20417
|
+
check_type(argname="argument tools", value=tools, expected_type=type_hints["tools"])
|
|
20418
|
+
check_type(argname="argument tool_choice", value=tool_choice, expected_type=type_hints["tool_choice"])
|
|
20419
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
20420
|
+
"tools": tools,
|
|
20421
|
+
}
|
|
20422
|
+
if tool_choice is not None:
|
|
20423
|
+
self._values["tool_choice"] = tool_choice
|
|
20424
|
+
|
|
20425
|
+
@builtins.property
|
|
20426
|
+
def tools(
|
|
20427
|
+
self,
|
|
20428
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolProperty"]]]:
|
|
20429
|
+
'''An array of tools that you want to pass to a model.
|
|
20430
|
+
|
|
20431
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolconfiguration.html#cfn-bedrock-prompt-toolconfiguration-tools
|
|
20432
|
+
'''
|
|
20433
|
+
result = self._values.get("tools")
|
|
20434
|
+
assert result is not None, "Required property 'tools' is missing"
|
|
20435
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolProperty"]]], result)
|
|
20436
|
+
|
|
20437
|
+
@builtins.property
|
|
20438
|
+
def tool_choice(
|
|
20439
|
+
self,
|
|
20440
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolChoiceProperty"]]:
|
|
20441
|
+
'''If supported by model, forces the model to request a tool.
|
|
20442
|
+
|
|
20443
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolconfiguration.html#cfn-bedrock-prompt-toolconfiguration-toolchoice
|
|
20444
|
+
'''
|
|
20445
|
+
result = self._values.get("tool_choice")
|
|
20446
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolChoiceProperty"]], result)
|
|
20447
|
+
|
|
20448
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20449
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20450
|
+
|
|
20451
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
20452
|
+
return not (rhs == self)
|
|
20453
|
+
|
|
20454
|
+
def __repr__(self) -> str:
|
|
20455
|
+
return "ToolConfigurationProperty(%s)" % ", ".join(
|
|
20456
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
20457
|
+
)
|
|
20458
|
+
|
|
20459
|
+
@jsii.data_type(
|
|
20460
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolInputSchemaProperty",
|
|
20461
|
+
jsii_struct_bases=[],
|
|
20462
|
+
name_mapping={"json": "json"},
|
|
20463
|
+
)
|
|
20464
|
+
class ToolInputSchemaProperty:
|
|
20465
|
+
def __init__(self, *, json: typing.Any) -> None:
|
|
20466
|
+
'''The schema for the tool.
|
|
20467
|
+
|
|
20468
|
+
The top level schema type must be ``object`` .
|
|
20469
|
+
|
|
20470
|
+
:param json: The JSON schema for the tool. For more information, see `JSON Schema Reference <https://docs.aws.amazon.com/https://json-schema.org/understanding-json-schema/reference>`_ .
|
|
20471
|
+
|
|
20472
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolinputschema.html
|
|
20473
|
+
:exampleMetadata: fixture=_generated
|
|
20474
|
+
|
|
20475
|
+
Example::
|
|
20476
|
+
|
|
20477
|
+
# The code below shows an example of how to instantiate this type.
|
|
20478
|
+
# The values are placeholders you should change.
|
|
20479
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
20480
|
+
|
|
20481
|
+
# json: Any
|
|
20482
|
+
|
|
20483
|
+
tool_input_schema_property = bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
20484
|
+
json=json
|
|
20485
|
+
)
|
|
20486
|
+
'''
|
|
20487
|
+
if __debug__:
|
|
20488
|
+
type_hints = typing.get_type_hints(_typecheckingstub__53e39100fca2ebe3fae8a9a713a4d2e8e663f416119f9157301a00b1d678de97)
|
|
20489
|
+
check_type(argname="argument json", value=json, expected_type=type_hints["json"])
|
|
20490
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
20491
|
+
"json": json,
|
|
20492
|
+
}
|
|
20493
|
+
|
|
20494
|
+
@builtins.property
|
|
20495
|
+
def json(self) -> typing.Any:
|
|
20496
|
+
'''The JSON schema for the tool.
|
|
20497
|
+
|
|
20498
|
+
For more information, see `JSON Schema Reference <https://docs.aws.amazon.com/https://json-schema.org/understanding-json-schema/reference>`_ .
|
|
20499
|
+
|
|
20500
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolinputschema.html#cfn-bedrock-prompt-toolinputschema-json
|
|
20501
|
+
'''
|
|
20502
|
+
result = self._values.get("json")
|
|
20503
|
+
assert result is not None, "Required property 'json' is missing"
|
|
20504
|
+
return typing.cast(typing.Any, result)
|
|
20505
|
+
|
|
20506
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20507
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20508
|
+
|
|
20509
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
20510
|
+
return not (rhs == self)
|
|
20511
|
+
|
|
20512
|
+
def __repr__(self) -> str:
|
|
20513
|
+
return "ToolInputSchemaProperty(%s)" % ", ".join(
|
|
20514
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
20515
|
+
)
|
|
20516
|
+
|
|
20517
|
+
@jsii.data_type(
|
|
20518
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolProperty",
|
|
20519
|
+
jsii_struct_bases=[],
|
|
20520
|
+
name_mapping={"tool_spec": "toolSpec"},
|
|
20521
|
+
)
|
|
20522
|
+
class ToolProperty:
|
|
20523
|
+
def __init__(
|
|
20524
|
+
self,
|
|
20525
|
+
*,
|
|
20526
|
+
tool_spec: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolSpecificationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
20527
|
+
) -> None:
|
|
20528
|
+
'''Information about a tool that you can use with the Converse API.
|
|
20529
|
+
|
|
20530
|
+
For more information, see `Tool use (function calling) <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
|
|
20531
|
+
|
|
20532
|
+
:param tool_spec: The specfication for the tool.
|
|
20533
|
+
|
|
20534
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html
|
|
20535
|
+
:exampleMetadata: fixture=_generated
|
|
20536
|
+
|
|
20537
|
+
Example::
|
|
20538
|
+
|
|
20539
|
+
# The code below shows an example of how to instantiate this type.
|
|
20540
|
+
# The values are placeholders you should change.
|
|
20541
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
20542
|
+
|
|
20543
|
+
# json: Any
|
|
20544
|
+
|
|
20545
|
+
tool_property = bedrock.CfnPrompt.ToolProperty(
|
|
20546
|
+
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
20547
|
+
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
20548
|
+
json=json
|
|
20549
|
+
),
|
|
20550
|
+
name="name",
|
|
20551
|
+
|
|
20552
|
+
# the properties below are optional
|
|
20553
|
+
description="description"
|
|
20554
|
+
)
|
|
20555
|
+
)
|
|
20556
|
+
'''
|
|
20557
|
+
if __debug__:
|
|
20558
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e0724eccb0497cbb88041bf7ba797dcfaceb20385a8cb461c8adc1b539c869e2)
|
|
20559
|
+
check_type(argname="argument tool_spec", value=tool_spec, expected_type=type_hints["tool_spec"])
|
|
20560
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
20561
|
+
"tool_spec": tool_spec,
|
|
20562
|
+
}
|
|
20563
|
+
|
|
20564
|
+
@builtins.property
|
|
20565
|
+
def tool_spec(
|
|
20566
|
+
self,
|
|
20567
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"]:
|
|
20568
|
+
'''The specfication for the tool.
|
|
20569
|
+
|
|
20570
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html#cfn-bedrock-prompt-tool-toolspec
|
|
20571
|
+
'''
|
|
20572
|
+
result = self._values.get("tool_spec")
|
|
20573
|
+
assert result is not None, "Required property 'tool_spec' is missing"
|
|
20574
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"], result)
|
|
20575
|
+
|
|
20576
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
20577
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
20578
|
+
|
|
20579
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
20580
|
+
return not (rhs == self)
|
|
20581
|
+
|
|
20582
|
+
def __repr__(self) -> str:
|
|
20583
|
+
return "ToolProperty(%s)" % ", ".join(
|
|
20584
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
20585
|
+
)
|
|
20586
|
+
|
|
20587
|
+
@jsii.data_type(
|
|
20588
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolSpecificationProperty",
|
|
20589
|
+
jsii_struct_bases=[],
|
|
20590
|
+
name_mapping={
|
|
20591
|
+
"input_schema": "inputSchema",
|
|
20592
|
+
"name": "name",
|
|
20593
|
+
"description": "description",
|
|
20594
|
+
},
|
|
20595
|
+
)
|
|
20596
|
+
class ToolSpecificationProperty:
|
|
20597
|
+
def __init__(
|
|
20598
|
+
self,
|
|
20599
|
+
*,
|
|
20600
|
+
input_schema: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolInputSchemaProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
20601
|
+
name: builtins.str,
|
|
20602
|
+
description: typing.Optional[builtins.str] = None,
|
|
20603
|
+
) -> None:
|
|
20604
|
+
'''The specification for the tool.
|
|
20605
|
+
|
|
20606
|
+
:param input_schema: The input schema for the tool in JSON format.
|
|
20607
|
+
:param name: The name for the tool.
|
|
20608
|
+
:param description: The description for the tool.
|
|
20609
|
+
|
|
20610
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolspecification.html
|
|
20611
|
+
:exampleMetadata: fixture=_generated
|
|
20612
|
+
|
|
20613
|
+
Example::
|
|
20614
|
+
|
|
20615
|
+
# The code below shows an example of how to instantiate this type.
|
|
20616
|
+
# The values are placeholders you should change.
|
|
20617
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
20618
|
+
|
|
20619
|
+
# json: Any
|
|
20620
|
+
|
|
20621
|
+
tool_specification_property = bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
20622
|
+
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
20623
|
+
json=json
|
|
20624
|
+
),
|
|
20625
|
+
name="name",
|
|
20626
|
+
|
|
20627
|
+
# the properties below are optional
|
|
20628
|
+
description="description"
|
|
20629
|
+
)
|
|
20630
|
+
'''
|
|
20631
|
+
if __debug__:
|
|
20632
|
+
type_hints = typing.get_type_hints(_typecheckingstub__431488796f561e2bc20a8aab4af239c209e0fc67b16251fa2476c7a19e2add9d)
|
|
20633
|
+
check_type(argname="argument input_schema", value=input_schema, expected_type=type_hints["input_schema"])
|
|
20634
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
20635
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
20636
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
20637
|
+
"input_schema": input_schema,
|
|
20638
|
+
"name": name,
|
|
20639
|
+
}
|
|
20640
|
+
if description is not None:
|
|
20641
|
+
self._values["description"] = description
|
|
20642
|
+
|
|
20643
|
+
@builtins.property
|
|
20644
|
+
def input_schema(
|
|
20645
|
+
self,
|
|
20646
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolInputSchemaProperty"]:
|
|
20647
|
+
'''The input schema for the tool in JSON format.
|
|
20648
|
+
|
|
20649
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolspecification.html#cfn-bedrock-prompt-toolspecification-inputschema
|
|
20650
|
+
'''
|
|
20651
|
+
result = self._values.get("input_schema")
|
|
20652
|
+
assert result is not None, "Required property 'input_schema' is missing"
|
|
20653
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolInputSchemaProperty"], result)
|
|
20654
|
+
|
|
20655
|
+
@builtins.property
|
|
20656
|
+
def name(self) -> builtins.str:
|
|
20657
|
+
'''The name for the tool.
|
|
20658
|
+
|
|
20659
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolspecification.html#cfn-bedrock-prompt-toolspecification-name
|
|
20660
|
+
'''
|
|
20661
|
+
result = self._values.get("name")
|
|
20662
|
+
assert result is not None, "Required property 'name' is missing"
|
|
20663
|
+
return typing.cast(builtins.str, result)
|
|
20664
|
+
|
|
20665
|
+
@builtins.property
|
|
20666
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
20667
|
+
'''The description for the tool.
|
|
19100
20668
|
|
|
19101
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-
|
|
20669
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolspecification.html#cfn-bedrock-prompt-toolspecification-description
|
|
19102
20670
|
'''
|
|
19103
|
-
result = self._values.get("
|
|
20671
|
+
result = self._values.get("description")
|
|
19104
20672
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
19105
20673
|
|
|
19106
20674
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
@@ -19110,7 +20678,7 @@ class CfnPrompt(
|
|
|
19110
20678
|
return not (rhs == self)
|
|
19111
20679
|
|
|
19112
20680
|
def __repr__(self) -> str:
|
|
19113
|
-
return "
|
|
20681
|
+
return "ToolSpecificationProperty(%s)" % ", ".join(
|
|
19114
20682
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
19115
20683
|
)
|
|
19116
20684
|
|
|
@@ -19156,6 +20724,10 @@ class CfnPromptProps:
|
|
|
19156
20724
|
# The values are placeholders you should change.
|
|
19157
20725
|
from aws_cdk import aws_bedrock as bedrock
|
|
19158
20726
|
|
|
20727
|
+
# any: Any
|
|
20728
|
+
# auto: Any
|
|
20729
|
+
# json: Any
|
|
20730
|
+
|
|
19159
20731
|
cfn_prompt_props = bedrock.CfnPromptProps(
|
|
19160
20732
|
name="name",
|
|
19161
20733
|
|
|
@@ -19169,6 +20741,44 @@ class CfnPromptProps:
|
|
|
19169
20741
|
variants=[bedrock.CfnPrompt.PromptVariantProperty(
|
|
19170
20742
|
name="name",
|
|
19171
20743
|
template_configuration=bedrock.CfnPrompt.PromptTemplateConfigurationProperty(
|
|
20744
|
+
chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
|
|
20745
|
+
messages=[bedrock.CfnPrompt.MessageProperty(
|
|
20746
|
+
content=[bedrock.CfnPrompt.ContentBlockProperty(
|
|
20747
|
+
text="text"
|
|
20748
|
+
)],
|
|
20749
|
+
role="role"
|
|
20750
|
+
)],
|
|
20751
|
+
|
|
20752
|
+
# the properties below are optional
|
|
20753
|
+
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
20754
|
+
name="name"
|
|
20755
|
+
)],
|
|
20756
|
+
system=[bedrock.CfnPrompt.SystemContentBlockProperty(
|
|
20757
|
+
text="text"
|
|
20758
|
+
)],
|
|
20759
|
+
tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
|
|
20760
|
+
tools=[bedrock.CfnPrompt.ToolProperty(
|
|
20761
|
+
tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
|
|
20762
|
+
input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
|
|
20763
|
+
json=json
|
|
20764
|
+
),
|
|
20765
|
+
name="name",
|
|
20766
|
+
|
|
20767
|
+
# the properties below are optional
|
|
20768
|
+
description="description"
|
|
20769
|
+
)
|
|
20770
|
+
)],
|
|
20771
|
+
|
|
20772
|
+
# the properties below are optional
|
|
20773
|
+
tool_choice=bedrock.CfnPrompt.ToolChoiceProperty(
|
|
20774
|
+
any=any,
|
|
20775
|
+
auto=auto,
|
|
20776
|
+
tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
|
|
20777
|
+
name="name"
|
|
20778
|
+
)
|
|
20779
|
+
)
|
|
20780
|
+
)
|
|
20781
|
+
),
|
|
19172
20782
|
text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
|
|
19173
20783
|
input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
|
|
19174
20784
|
name="name"
|
|
@@ -19186,6 +20796,11 @@ class CfnPromptProps:
|
|
|
19186
20796
|
template_type="templateType",
|
|
19187
20797
|
|
|
19188
20798
|
# the properties below are optional
|
|
20799
|
+
gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
|
|
20800
|
+
agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
|
|
20801
|
+
agent_identifier="agentIdentifier"
|
|
20802
|
+
)
|
|
20803
|
+
),
|
|
19189
20804
|
inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
|
|
19190
20805
|
text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
|
|
19191
20806
|
max_tokens=123,
|
|
@@ -20162,7 +21777,12 @@ class FoundationModelIdentifier(
|
|
|
20162
21777
|
@jsii.python.classproperty
|
|
20163
21778
|
@jsii.member(jsii_name="AI21_J2_GRANDE_INSTRUCT")
|
|
20164
21779
|
def AI21_J2_GRANDE_INSTRUCT(cls) -> "FoundationModelIdentifier":
|
|
20165
|
-
'''Base model "ai21.j2-grande-instruct".
|
|
21780
|
+
'''(deprecated) Base model "ai21.j2-grande-instruct".
|
|
21781
|
+
|
|
21782
|
+
:deprecated: use latest version of the model
|
|
21783
|
+
|
|
21784
|
+
:stability: deprecated
|
|
21785
|
+
'''
|
|
20166
21786
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_GRANDE_INSTRUCT"))
|
|
20167
21787
|
|
|
20168
21788
|
@jsii.python.classproperty
|
|
@@ -20174,19 +21794,34 @@ class FoundationModelIdentifier(
|
|
|
20174
21794
|
@jsii.python.classproperty
|
|
20175
21795
|
@jsii.member(jsii_name="AI21_J2_JUMBO_INSTRUCT")
|
|
20176
21796
|
def AI21_J2_JUMBO_INSTRUCT(cls) -> "FoundationModelIdentifier":
|
|
20177
|
-
'''Base model "ai21.j2-jumbo-instruct".
|
|
21797
|
+
'''(deprecated) Base model "ai21.j2-jumbo-instruct".
|
|
21798
|
+
|
|
21799
|
+
:deprecated: use latest version of the model
|
|
21800
|
+
|
|
21801
|
+
:stability: deprecated
|
|
21802
|
+
'''
|
|
20178
21803
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_JUMBO_INSTRUCT"))
|
|
20179
21804
|
|
|
20180
21805
|
@jsii.python.classproperty
|
|
20181
21806
|
@jsii.member(jsii_name="AI21_J2_MID")
|
|
20182
21807
|
def AI21_J2_MID(cls) -> "FoundationModelIdentifier":
|
|
20183
|
-
'''Base model "ai21.j2-mid".
|
|
21808
|
+
'''(deprecated) Base model "ai21.j2-mid".
|
|
21809
|
+
|
|
21810
|
+
:deprecated: use latest version of the model
|
|
21811
|
+
|
|
21812
|
+
:stability: deprecated
|
|
21813
|
+
'''
|
|
20184
21814
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_MID"))
|
|
20185
21815
|
|
|
20186
21816
|
@jsii.python.classproperty
|
|
20187
21817
|
@jsii.member(jsii_name="AI21_J2_ULTRA")
|
|
20188
21818
|
def AI21_J2_ULTRA(cls) -> "FoundationModelIdentifier":
|
|
20189
|
-
'''Base model "ai21.j2-ultra".
|
|
21819
|
+
'''(deprecated) Base model "ai21.j2-ultra".
|
|
21820
|
+
|
|
21821
|
+
:deprecated: use latest version of the model
|
|
21822
|
+
|
|
21823
|
+
:stability: deprecated
|
|
21824
|
+
'''
|
|
20190
21825
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_ULTRA"))
|
|
20191
21826
|
|
|
20192
21827
|
@jsii.python.classproperty
|
|
@@ -20204,19 +21839,34 @@ class FoundationModelIdentifier(
|
|
|
20204
21839
|
@jsii.python.classproperty
|
|
20205
21840
|
@jsii.member(jsii_name="AI21_LABS_JURASSIC_2_MID_V1")
|
|
20206
21841
|
def AI21_LABS_JURASSIC_2_MID_V1(cls) -> "FoundationModelIdentifier":
|
|
20207
|
-
'''Base model "ai21.j2-mid-v1".
|
|
21842
|
+
'''(deprecated) Base model "ai21.j2-mid-v1".
|
|
21843
|
+
|
|
21844
|
+
:deprecated: use latest version of the model
|
|
21845
|
+
|
|
21846
|
+
:stability: deprecated
|
|
21847
|
+
'''
|
|
20208
21848
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_LABS_JURASSIC_2_MID_V1"))
|
|
20209
21849
|
|
|
20210
21850
|
@jsii.python.classproperty
|
|
20211
21851
|
@jsii.member(jsii_name="AI21_LABS_JURASSIC_2_ULTRA_V1")
|
|
20212
21852
|
def AI21_LABS_JURASSIC_2_ULTRA_V1(cls) -> "FoundationModelIdentifier":
|
|
20213
|
-
'''Base model "ai21.j2-ultra-v1".
|
|
21853
|
+
'''(deprecated) Base model "ai21.j2-ultra-v1".
|
|
21854
|
+
|
|
21855
|
+
:deprecated: use latest version of the model
|
|
21856
|
+
|
|
21857
|
+
:stability: deprecated
|
|
21858
|
+
'''
|
|
20214
21859
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_LABS_JURASSIC_2_ULTRA_V1"))
|
|
20215
21860
|
|
|
20216
21861
|
@jsii.python.classproperty
|
|
20217
21862
|
@jsii.member(jsii_name="AI21_LABS_JURASSIC_2_ULTRA_V1_0_8K")
|
|
20218
21863
|
def AI21_LABS_JURASSIC_2_ULTRA_V1_0_8_K(cls) -> "FoundationModelIdentifier":
|
|
20219
|
-
'''Base model "ai21.j2-ultra-v1:0:8k".
|
|
21864
|
+
'''(deprecated) Base model "ai21.j2-ultra-v1:0:8k".
|
|
21865
|
+
|
|
21866
|
+
:deprecated: use latest version of the model
|
|
21867
|
+
|
|
21868
|
+
:stability: deprecated
|
|
21869
|
+
'''
|
|
20220
21870
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_LABS_JURASSIC_2_ULTRA_V1_0_8K"))
|
|
20221
21871
|
|
|
20222
21872
|
@jsii.python.classproperty
|
|
@@ -20387,12 +22037,60 @@ class FoundationModelIdentifier(
|
|
|
20387
22037
|
'''Base model "anthropic.claude-3-5-sonnet-20240620-v1:0".'''
|
|
20388
22038
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0"))
|
|
20389
22039
|
|
|
22040
|
+
@jsii.python.classproperty
|
|
22041
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_18K")
|
|
22042
|
+
def ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_18_K(
|
|
22043
|
+
cls,
|
|
22044
|
+
) -> "FoundationModelIdentifier":
|
|
22045
|
+
'''Base model "anthropic.claude-3-5-sonnet-20240620-v1:0:18k".'''
|
|
22046
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_18K"))
|
|
22047
|
+
|
|
22048
|
+
@jsii.python.classproperty
|
|
22049
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_200K")
|
|
22050
|
+
def ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_200_K(
|
|
22051
|
+
cls,
|
|
22052
|
+
) -> "FoundationModelIdentifier":
|
|
22053
|
+
'''Base model "anthropic.claude-3-5-sonnet-20240620-v1:0:200k".'''
|
|
22054
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_200K"))
|
|
22055
|
+
|
|
22056
|
+
@jsii.python.classproperty
|
|
22057
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_51K")
|
|
22058
|
+
def ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_51_K(
|
|
22059
|
+
cls,
|
|
22060
|
+
) -> "FoundationModelIdentifier":
|
|
22061
|
+
'''Base model "anthropic.claude-3-5-sonnet-20240620-v1:0:51k".'''
|
|
22062
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_51K"))
|
|
22063
|
+
|
|
20390
22064
|
@jsii.python.classproperty
|
|
20391
22065
|
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0")
|
|
20392
22066
|
def ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0(cls) -> "FoundationModelIdentifier":
|
|
20393
22067
|
'''Base model "anthropic.claude-3-5-sonnet-20241022-v2:0".'''
|
|
20394
22068
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0"))
|
|
20395
22069
|
|
|
22070
|
+
@jsii.python.classproperty
|
|
22071
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_18K")
|
|
22072
|
+
def ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_18_K(
|
|
22073
|
+
cls,
|
|
22074
|
+
) -> "FoundationModelIdentifier":
|
|
22075
|
+
'''Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:18k".'''
|
|
22076
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_18K"))
|
|
22077
|
+
|
|
22078
|
+
@jsii.python.classproperty
|
|
22079
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_200K")
|
|
22080
|
+
def ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_200_K(
|
|
22081
|
+
cls,
|
|
22082
|
+
) -> "FoundationModelIdentifier":
|
|
22083
|
+
'''Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:200k".'''
|
|
22084
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_200K"))
|
|
22085
|
+
|
|
22086
|
+
@jsii.python.classproperty
|
|
22087
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_51K")
|
|
22088
|
+
def ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_51_K(
|
|
22089
|
+
cls,
|
|
22090
|
+
) -> "FoundationModelIdentifier":
|
|
22091
|
+
'''Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:51k".'''
|
|
22092
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_51K"))
|
|
22093
|
+
|
|
20396
22094
|
@jsii.python.classproperty
|
|
20397
22095
|
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0")
|
|
20398
22096
|
def ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0(cls) -> "FoundationModelIdentifier":
|
|
@@ -20419,6 +22117,24 @@ class FoundationModelIdentifier(
|
|
|
20419
22117
|
'''Base model "anthropic.claude-3-opus-20240229-v1:0".'''
|
|
20420
22118
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0"))
|
|
20421
22119
|
|
|
22120
|
+
@jsii.python.classproperty
|
|
22121
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_12K")
|
|
22122
|
+
def ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_12_K(cls) -> "FoundationModelIdentifier":
|
|
22123
|
+
'''Base model "anthropic.claude-3-opus-20240229-v1:0:12k".'''
|
|
22124
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_12K"))
|
|
22125
|
+
|
|
22126
|
+
@jsii.python.classproperty
|
|
22127
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_200K")
|
|
22128
|
+
def ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_200_K(cls) -> "FoundationModelIdentifier":
|
|
22129
|
+
'''Base model "anthropic.claude-3-opus-20240229-v1:0:200k".'''
|
|
22130
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_200K"))
|
|
22131
|
+
|
|
22132
|
+
@jsii.python.classproperty
|
|
22133
|
+
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_28K")
|
|
22134
|
+
def ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_28_K(cls) -> "FoundationModelIdentifier":
|
|
22135
|
+
'''Base model "anthropic.claude-3-opus-20240229-v1:0:28k".'''
|
|
22136
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_28K"))
|
|
22137
|
+
|
|
20422
22138
|
@jsii.python.classproperty
|
|
20423
22139
|
@jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_SONNET_20240229_V1_0")
|
|
20424
22140
|
def ANTHROPIC_CLAUDE_3_SONNET_20240229_V1_0(cls) -> "FoundationModelIdentifier":
|
|
@@ -20569,49 +22285,89 @@ class FoundationModelIdentifier(
|
|
|
20569
22285
|
@jsii.python.classproperty
|
|
20570
22286
|
@jsii.member(jsii_name="META_LLAMA_2_13B_CHAT_V1_0_4K")
|
|
20571
22287
|
def META_LLAMA_2_13_B_CHAT_V1_0_4_K(cls) -> "FoundationModelIdentifier":
|
|
20572
|
-
'''Base model "meta.llama2-13b-chat-v1:0:4k".
|
|
22288
|
+
'''(deprecated) Base model "meta.llama2-13b-chat-v1:0:4k".
|
|
22289
|
+
|
|
22290
|
+
:deprecated: use latest version of the model
|
|
22291
|
+
|
|
22292
|
+
:stability: deprecated
|
|
22293
|
+
'''
|
|
20573
22294
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_13B_CHAT_V1_0_4K"))
|
|
20574
22295
|
|
|
20575
22296
|
@jsii.python.classproperty
|
|
20576
22297
|
@jsii.member(jsii_name="META_LLAMA_2_13B_V1")
|
|
20577
22298
|
def META_LLAMA_2_13_B_V1(cls) -> "FoundationModelIdentifier":
|
|
20578
|
-
'''Base model "meta.llama2-13b-v1".
|
|
22299
|
+
'''(deprecated) Base model "meta.llama2-13b-v1".
|
|
22300
|
+
|
|
22301
|
+
:deprecated: use latest version of the model
|
|
22302
|
+
|
|
22303
|
+
:stability: deprecated
|
|
22304
|
+
'''
|
|
20579
22305
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_13B_V1"))
|
|
20580
22306
|
|
|
20581
22307
|
@jsii.python.classproperty
|
|
20582
22308
|
@jsii.member(jsii_name="META_LLAMA_2_13B_V1_0_4K")
|
|
20583
22309
|
def META_LLAMA_2_13_B_V1_0_4_K(cls) -> "FoundationModelIdentifier":
|
|
20584
|
-
'''Base model "meta.llama2-13b-v1:0:4k".
|
|
22310
|
+
'''(deprecated) Base model "meta.llama2-13b-v1:0:4k".
|
|
22311
|
+
|
|
22312
|
+
:deprecated: use latest version of the model
|
|
22313
|
+
|
|
22314
|
+
:stability: deprecated
|
|
22315
|
+
'''
|
|
20585
22316
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_13B_V1_0_4K"))
|
|
20586
22317
|
|
|
20587
22318
|
@jsii.python.classproperty
|
|
20588
22319
|
@jsii.member(jsii_name="META_LLAMA_2_70B_CHAT_V1_0_4K")
|
|
20589
22320
|
def META_LLAMA_2_70_B_CHAT_V1_0_4_K(cls) -> "FoundationModelIdentifier":
|
|
20590
|
-
'''Base model "meta.llama2-70b-chat-v1:0:4k".
|
|
22321
|
+
'''(deprecated) Base model "meta.llama2-70b-chat-v1:0:4k".
|
|
22322
|
+
|
|
22323
|
+
:deprecated: use latest version of the model
|
|
22324
|
+
|
|
22325
|
+
:stability: deprecated
|
|
22326
|
+
'''
|
|
20591
22327
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_70B_CHAT_V1_0_4K"))
|
|
20592
22328
|
|
|
20593
22329
|
@jsii.python.classproperty
|
|
20594
22330
|
@jsii.member(jsii_name="META_LLAMA_2_70B_V1")
|
|
20595
22331
|
def META_LLAMA_2_70_B_V1(cls) -> "FoundationModelIdentifier":
|
|
20596
|
-
'''Base model "meta.llama2-70b-v1".
|
|
22332
|
+
'''(deprecated) Base model "meta.llama2-70b-v1".
|
|
22333
|
+
|
|
22334
|
+
:deprecated: use latest version of the model
|
|
22335
|
+
|
|
22336
|
+
:stability: deprecated
|
|
22337
|
+
'''
|
|
20597
22338
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_70B_V1"))
|
|
20598
22339
|
|
|
20599
22340
|
@jsii.python.classproperty
|
|
20600
22341
|
@jsii.member(jsii_name="META_LLAMA_2_70B_V1_0_4K")
|
|
20601
22342
|
def META_LLAMA_2_70_B_V1_0_4_K(cls) -> "FoundationModelIdentifier":
|
|
20602
|
-
'''Base model "meta.llama2-70b-v1:0:4k".
|
|
22343
|
+
'''(deprecated) Base model "meta.llama2-70b-v1:0:4k".
|
|
22344
|
+
|
|
22345
|
+
:deprecated: use latest version of the model
|
|
22346
|
+
|
|
22347
|
+
:stability: deprecated
|
|
22348
|
+
'''
|
|
20603
22349
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_70B_V1_0_4K"))
|
|
20604
22350
|
|
|
20605
22351
|
@jsii.python.classproperty
|
|
20606
22352
|
@jsii.member(jsii_name="META_LLAMA_2_CHAT_13B_V1")
|
|
20607
22353
|
def META_LLAMA_2_CHAT_13_B_V1(cls) -> "FoundationModelIdentifier":
|
|
20608
|
-
'''Base model "meta.llama2-13b-chat-v1".
|
|
22354
|
+
'''(deprecated) Base model "meta.llama2-13b-chat-v1".
|
|
22355
|
+
|
|
22356
|
+
:deprecated: use latest version of the model
|
|
22357
|
+
|
|
22358
|
+
:stability: deprecated
|
|
22359
|
+
'''
|
|
20609
22360
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_CHAT_13B_V1"))
|
|
20610
22361
|
|
|
20611
22362
|
@jsii.python.classproperty
|
|
20612
22363
|
@jsii.member(jsii_name="META_LLAMA_2_CHAT_70B_V1")
|
|
20613
22364
|
def META_LLAMA_2_CHAT_70_B_V1(cls) -> "FoundationModelIdentifier":
|
|
20614
|
-
'''Base model "meta.llama2-70b-chat-v1".
|
|
22365
|
+
'''(deprecated) Base model "meta.llama2-70b-chat-v1".
|
|
22366
|
+
|
|
22367
|
+
:deprecated: use latest version of the model
|
|
22368
|
+
|
|
22369
|
+
:stability: deprecated
|
|
22370
|
+
'''
|
|
20615
22371
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_CHAT_70B_V1"))
|
|
20616
22372
|
|
|
20617
22373
|
@jsii.python.classproperty
|
|
@@ -20626,6 +22382,18 @@ class FoundationModelIdentifier(
|
|
|
20626
22382
|
'''Base model "meta.llama3-1-70b-instruct-v1:0".'''
|
|
20627
22383
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_1_70_INSTRUCT_V1"))
|
|
20628
22384
|
|
|
22385
|
+
@jsii.python.classproperty
|
|
22386
|
+
@jsii.member(jsii_name="META_LLAMA_3_1_70_INSTRUCT_V1_128K")
|
|
22387
|
+
def META_LLAMA_3_1_70_INSTRUCT_V1_128_K(cls) -> "FoundationModelIdentifier":
|
|
22388
|
+
'''Base model "meta.llama3-1-70b-instruct-v1:0:128k".'''
|
|
22389
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_1_70_INSTRUCT_V1_128K"))
|
|
22390
|
+
|
|
22391
|
+
@jsii.python.classproperty
|
|
22392
|
+
@jsii.member(jsii_name="META_LLAMA_3_1_8B_INSTRUCT_V_128K")
|
|
22393
|
+
def META_LLAMA_3_1_8_B_INSTRUCT_V_128_K(cls) -> "FoundationModelIdentifier":
|
|
22394
|
+
'''Base model "meta.llama3-1-8b-instruct-v1:0:128".'''
|
|
22395
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_1_8B_INSTRUCT_V_128K"))
|
|
22396
|
+
|
|
20629
22397
|
@jsii.python.classproperty
|
|
20630
22398
|
@jsii.member(jsii_name="META_LLAMA_3_1_8B_INSTRUCT_V1")
|
|
20631
22399
|
def META_LLAMA_3_1_8_B_INSTRUCT_V1(cls) -> "FoundationModelIdentifier":
|
|
@@ -20656,6 +22424,12 @@ class FoundationModelIdentifier(
|
|
|
20656
22424
|
'''Base model "meta.llama3-2-90b-instruct-v1:0".'''
|
|
20657
22425
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_2_90B_INSTRUCT_V1"))
|
|
20658
22426
|
|
|
22427
|
+
@jsii.python.classproperty
|
|
22428
|
+
@jsii.member(jsii_name="META_LLAMA_3_3_70B_INSTRUCT_V1")
|
|
22429
|
+
def META_LLAMA_3_3_70_B_INSTRUCT_V1(cls) -> "FoundationModelIdentifier":
|
|
22430
|
+
'''Base model "meta.llama3-3-70b-instruct-v1:0".'''
|
|
22431
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_3_70B_INSTRUCT_V1"))
|
|
22432
|
+
|
|
20659
22433
|
@jsii.python.classproperty
|
|
20660
22434
|
@jsii.member(jsii_name="META_LLAMA_3_70_INSTRUCT_V1")
|
|
20661
22435
|
def META_LLAMA_3_70_INSTRUCT_V1(cls) -> "FoundationModelIdentifier":
|
|
@@ -20698,6 +22472,12 @@ class FoundationModelIdentifier(
|
|
|
20698
22472
|
'''Base model "mistral.mistral-small-2402-v1:0".'''
|
|
20699
22473
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "MISTRAL_SMALL_V0_1"))
|
|
20700
22474
|
|
|
22475
|
+
@jsii.python.classproperty
|
|
22476
|
+
@jsii.member(jsii_name="STABILITY_SD3_5_LARGE_V1_0")
|
|
22477
|
+
def STABILITY_SD3_5_LARGE_V1_0(cls) -> "FoundationModelIdentifier":
|
|
22478
|
+
'''Base model "stability.sd3-5-large-v1:0".'''
|
|
22479
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_SD3_5_LARGE_V1_0"))
|
|
22480
|
+
|
|
20701
22481
|
@jsii.python.classproperty
|
|
20702
22482
|
@jsii.member(jsii_name="STABILITY_SD3_LARGE_V1_0")
|
|
20703
22483
|
def STABILITY_SD3_LARGE_V1_0(cls) -> "FoundationModelIdentifier":
|
|
@@ -20729,13 +22509,23 @@ class FoundationModelIdentifier(
|
|
|
20729
22509
|
@jsii.python.classproperty
|
|
20730
22510
|
@jsii.member(jsii_name="STABILITY_STABLE_DIFFUSION_XL_V1")
|
|
20731
22511
|
def STABILITY_STABLE_DIFFUSION_XL_V1(cls) -> "FoundationModelIdentifier":
|
|
20732
|
-
'''Base model "stability.stable-diffusion-xl-v1".
|
|
22512
|
+
'''(deprecated) Base model "stability.stable-diffusion-xl-v1".
|
|
22513
|
+
|
|
22514
|
+
:deprecated: use latest version of the model
|
|
22515
|
+
|
|
22516
|
+
:stability: deprecated
|
|
22517
|
+
'''
|
|
20733
22518
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_DIFFUSION_XL_V1"))
|
|
20734
22519
|
|
|
20735
22520
|
@jsii.python.classproperty
|
|
20736
22521
|
@jsii.member(jsii_name="STABILITY_STABLE_DIFFUSION_XL_V1_0")
|
|
20737
22522
|
def STABILITY_STABLE_DIFFUSION_XL_V1_0(cls) -> "FoundationModelIdentifier":
|
|
20738
|
-
'''Base model "stability.stable-diffusion-xl-v1:0".
|
|
22523
|
+
'''(deprecated) Base model "stability.stable-diffusion-xl-v1:0".
|
|
22524
|
+
|
|
22525
|
+
:deprecated: use latest version of the model
|
|
22526
|
+
|
|
22527
|
+
:stability: deprecated
|
|
22528
|
+
'''
|
|
20739
22529
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_DIFFUSION_XL_V1_0"))
|
|
20740
22530
|
|
|
20741
22531
|
@jsii.python.classproperty
|
|
@@ -20744,12 +22534,24 @@ class FoundationModelIdentifier(
|
|
|
20744
22534
|
'''Base model "stability.stable-image-core-v1:0".'''
|
|
20745
22535
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_CORE_V1_0"))
|
|
20746
22536
|
|
|
22537
|
+
@jsii.python.classproperty
|
|
22538
|
+
@jsii.member(jsii_name="STABILITY_STABLE_IMAGE_CORE_V1_1")
|
|
22539
|
+
def STABILITY_STABLE_IMAGE_CORE_V1_1(cls) -> "FoundationModelIdentifier":
|
|
22540
|
+
'''Base model "stability.stable-image-core-v1:1".'''
|
|
22541
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_CORE_V1_1"))
|
|
22542
|
+
|
|
20747
22543
|
@jsii.python.classproperty
|
|
20748
22544
|
@jsii.member(jsii_name="STABILITY_STABLE_IMAGE_ULTRA_V1_0")
|
|
20749
22545
|
def STABILITY_STABLE_IMAGE_ULTRA_V1_0(cls) -> "FoundationModelIdentifier":
|
|
20750
22546
|
'''Base model "stability.stable-image-ultra-v1:0".'''
|
|
20751
22547
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_ULTRA_V1_0"))
|
|
20752
22548
|
|
|
22549
|
+
@jsii.python.classproperty
|
|
22550
|
+
@jsii.member(jsii_name="STABILITY_STABLE_IMAGE_ULTRA_V1_1")
|
|
22551
|
+
def STABILITY_STABLE_IMAGE_ULTRA_V1_1(cls) -> "FoundationModelIdentifier":
|
|
22552
|
+
'''Base model "stability.stable-image-ultra-v1:1".'''
|
|
22553
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_ULTRA_V1_1"))
|
|
22554
|
+
|
|
20753
22555
|
@builtins.property
|
|
20754
22556
|
@jsii.member(jsii_name="modelId")
|
|
20755
22557
|
def model_id(self) -> builtins.str:
|
|
@@ -21115,6 +22917,7 @@ def _typecheckingstub__19341a6c1d4ad6e6ceea8110fa1f82a06ec1a28df35e4ccc6cdb16f02
|
|
|
21115
22917
|
name: builtins.str,
|
|
21116
22918
|
description: typing.Optional[builtins.str] = None,
|
|
21117
22919
|
parameters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.ParameterDetailProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
22920
|
+
require_confirmation: typing.Optional[builtins.str] = None,
|
|
21118
22921
|
) -> None:
|
|
21119
22922
|
"""Type checking stubs"""
|
|
21120
22923
|
pass
|
|
@@ -21426,9 +23229,17 @@ def _typecheckingstub__033990e14b671fe96b02a12658cd4beadf8bae975b4e0c94984d3e419
|
|
|
21426
23229
|
"""Type checking stubs"""
|
|
21427
23230
|
pass
|
|
21428
23231
|
|
|
23232
|
+
def _typecheckingstub__d1c9cf855ebecb64cb9a92684072efa631cc07e2bded88aa0e8cfa6319f97834(
|
|
23233
|
+
*,
|
|
23234
|
+
parsing_modality: typing.Optional[builtins.str] = None,
|
|
23235
|
+
) -> None:
|
|
23236
|
+
"""Type checking stubs"""
|
|
23237
|
+
pass
|
|
23238
|
+
|
|
21429
23239
|
def _typecheckingstub__1988b824c4171f598d30cf03abdb56bc617fd654dd3daf3e641d11499c0e04ac(
|
|
21430
23240
|
*,
|
|
21431
23241
|
model_arn: builtins.str,
|
|
23242
|
+
parsing_modality: typing.Optional[builtins.str] = None,
|
|
21432
23243
|
parsing_prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ParsingPromptProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21433
23244
|
) -> None:
|
|
21434
23245
|
"""Type checking stubs"""
|
|
@@ -21530,6 +23341,7 @@ def _typecheckingstub__5bdd915748b8cf592aa9f03cf95eac889f69f61263bafe87a0ba9aa14
|
|
|
21530
23341
|
def _typecheckingstub__26a14ade018e836fe8686ec2de5e50a05435a92d8d540814f0759c1bb3893ef0(
|
|
21531
23342
|
*,
|
|
21532
23343
|
parsing_strategy: builtins.str,
|
|
23344
|
+
bedrock_data_automation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.BedrockDataAutomationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21533
23345
|
bedrock_foundation_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.BedrockFoundationModelConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21534
23346
|
) -> None:
|
|
21535
23347
|
"""Type checking stubs"""
|
|
@@ -22739,8 +24551,8 @@ def _typecheckingstub__6ef81b8dcbedbd76b5a39a6fd5a967ba49aa887b63aad45e2bc246c96
|
|
|
22739
24551
|
knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
22740
24552
|
name: builtins.str,
|
|
22741
24553
|
role_arn: builtins.str,
|
|
22742
|
-
storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
22743
24554
|
description: typing.Optional[builtins.str] = None,
|
|
24555
|
+
storage_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22744
24556
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
22745
24557
|
) -> None:
|
|
22746
24558
|
"""Type checking stubs"""
|
|
@@ -22776,14 +24588,14 @@ def _typecheckingstub__e6281f2d1ed9a2f71b02754159fe6b2d8c70d3527e97d2d060434dc34
|
|
|
22776
24588
|
"""Type checking stubs"""
|
|
22777
24589
|
pass
|
|
22778
24590
|
|
|
22779
|
-
def
|
|
22780
|
-
value: typing.
|
|
24591
|
+
def _typecheckingstub__f9fef7f262d2bad58c7f37c90b8756dd028b772a93aa036a4caf0c9565a7fff1(
|
|
24592
|
+
value: typing.Optional[builtins.str],
|
|
22781
24593
|
) -> None:
|
|
22782
24594
|
"""Type checking stubs"""
|
|
22783
24595
|
pass
|
|
22784
24596
|
|
|
22785
|
-
def
|
|
22786
|
-
value: typing.Optional[
|
|
24597
|
+
def _typecheckingstub__9c3409dc5fcb9799e2f638dda4e66d2391cf6984b3e10eb29b36e85981cfc59b(
|
|
24598
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty]],
|
|
22787
24599
|
) -> None:
|
|
22788
24600
|
"""Type checking stubs"""
|
|
22789
24601
|
pass
|
|
@@ -22808,10 +24620,18 @@ def _typecheckingstub__a2105581ffba179dfd90baf9c36dfefb76ca74a5c6cfca17d6c87aec8
|
|
|
22808
24620
|
"""Type checking stubs"""
|
|
22809
24621
|
pass
|
|
22810
24622
|
|
|
24623
|
+
def _typecheckingstub__f49108183c657ffec5628bb187155a62b4da5dfc81f77718084a35d0e1296bfd(
|
|
24624
|
+
*,
|
|
24625
|
+
kendra_index_arn: builtins.str,
|
|
24626
|
+
) -> None:
|
|
24627
|
+
"""Type checking stubs"""
|
|
24628
|
+
pass
|
|
24629
|
+
|
|
22811
24630
|
def _typecheckingstub__f2ca26f28cc4cf3a289e62f58643faf6a7d98ea3e55e7ff4f0f77530fa0294b4(
|
|
22812
24631
|
*,
|
|
22813
24632
|
type: builtins.str,
|
|
22814
|
-
|
|
24633
|
+
kendra_knowledge_base_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24634
|
+
vector_knowledge_base_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22815
24635
|
) -> None:
|
|
22816
24636
|
"""Type checking stubs"""
|
|
22817
24637
|
pass
|
|
@@ -22873,6 +24693,13 @@ def _typecheckingstub__0060deafed28d2f4c1690bf8921de0b9aca79fe88ac4c5ca53f29b4ef
|
|
|
22873
24693
|
"""Type checking stubs"""
|
|
22874
24694
|
pass
|
|
22875
24695
|
|
|
24696
|
+
def _typecheckingstub__2d65bf934dc283aa920ce8366929ceeb84863f6a3de2b775a4f2d2ee019979bc(
|
|
24697
|
+
*,
|
|
24698
|
+
uri: builtins.str,
|
|
24699
|
+
) -> None:
|
|
24700
|
+
"""Type checking stubs"""
|
|
24701
|
+
pass
|
|
24702
|
+
|
|
22876
24703
|
def _typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c32272af4(
|
|
22877
24704
|
*,
|
|
22878
24705
|
type: builtins.str,
|
|
@@ -22883,10 +24710,26 @@ def _typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c3
|
|
|
22883
24710
|
"""Type checking stubs"""
|
|
22884
24711
|
pass
|
|
22885
24712
|
|
|
24713
|
+
def _typecheckingstub__23aedf500d0c089aa233b40ff3fc0bdc7842b000954e996faef806cf0f44c930(
|
|
24714
|
+
*,
|
|
24715
|
+
supplemental_data_storage_locations: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.SupplementalDataStorageLocationProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
24716
|
+
) -> None:
|
|
24717
|
+
"""Type checking stubs"""
|
|
24718
|
+
pass
|
|
24719
|
+
|
|
24720
|
+
def _typecheckingstub__754c3d05d3167c3b2203485932c3bc498a24c9d4555c672a7d5069d4d86f73d6(
|
|
24721
|
+
*,
|
|
24722
|
+
supplemental_data_storage_location_type: builtins.str,
|
|
24723
|
+
s3_location: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.S3LocationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24724
|
+
) -> None:
|
|
24725
|
+
"""Type checking stubs"""
|
|
24726
|
+
pass
|
|
24727
|
+
|
|
22886
24728
|
def _typecheckingstub__53b08e209954b21c35b746e5eee517d51370af30630f5f17b3e5435150898236(
|
|
22887
24729
|
*,
|
|
22888
24730
|
embedding_model_arn: builtins.str,
|
|
22889
24731
|
embedding_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.EmbeddingModelConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24732
|
+
supplemental_data_storage_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22890
24733
|
) -> None:
|
|
22891
24734
|
"""Type checking stubs"""
|
|
22892
24735
|
pass
|
|
@@ -22896,8 +24739,8 @@ def _typecheckingstub__a5f6560ff734e79a877ac4cd934408cd79b9c6a6c1dac195972f27ac4
|
|
|
22896
24739
|
knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
22897
24740
|
name: builtins.str,
|
|
22898
24741
|
role_arn: builtins.str,
|
|
22899
|
-
storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
22900
24742
|
description: typing.Optional[builtins.str] = None,
|
|
24743
|
+
storage_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22901
24744
|
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
22902
24745
|
) -> None:
|
|
22903
24746
|
"""Type checking stubs"""
|
|
@@ -22965,6 +24808,45 @@ def _typecheckingstub__b92123c0073f901a0741c026473098ec639beea3bd80ea47a9b53798e
|
|
|
22965
24808
|
"""Type checking stubs"""
|
|
22966
24809
|
pass
|
|
22967
24810
|
|
|
24811
|
+
def _typecheckingstub__9c6a58ca5edb4fe7249a2b37babee7b708f1fc92b3adcd4af4c3afa45077ee55(
|
|
24812
|
+
*,
|
|
24813
|
+
messages: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.MessageProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
24814
|
+
input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInputVariableProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
24815
|
+
system: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.SystemContentBlockProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
24816
|
+
tool_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24817
|
+
) -> None:
|
|
24818
|
+
"""Type checking stubs"""
|
|
24819
|
+
pass
|
|
24820
|
+
|
|
24821
|
+
def _typecheckingstub__2d0cf0f0136b9d804a0809956c82c64b1f75a73d35d6c0fa6f1007666d629ec6(
|
|
24822
|
+
*,
|
|
24823
|
+
text: builtins.str,
|
|
24824
|
+
) -> None:
|
|
24825
|
+
"""Type checking stubs"""
|
|
24826
|
+
pass
|
|
24827
|
+
|
|
24828
|
+
def _typecheckingstub__42b42b22130352586f0ff208cc8c3ce6b3705d340f12b03331553326e9b7585b(
|
|
24829
|
+
*,
|
|
24830
|
+
content: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ContentBlockProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
24831
|
+
role: builtins.str,
|
|
24832
|
+
) -> None:
|
|
24833
|
+
"""Type checking stubs"""
|
|
24834
|
+
pass
|
|
24835
|
+
|
|
24836
|
+
def _typecheckingstub__d28921d18df971112b15d156471e2c5279000c3080bd4f0620f849341fd6a896(
|
|
24837
|
+
*,
|
|
24838
|
+
agent_identifier: builtins.str,
|
|
24839
|
+
) -> None:
|
|
24840
|
+
"""Type checking stubs"""
|
|
24841
|
+
pass
|
|
24842
|
+
|
|
24843
|
+
def _typecheckingstub__64cff76991e320523c3338e0c04d15db173e4f0d91de163069f07878d8c88123(
|
|
24844
|
+
*,
|
|
24845
|
+
agent: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptAgentResourceProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
24846
|
+
) -> None:
|
|
24847
|
+
"""Type checking stubs"""
|
|
24848
|
+
pass
|
|
24849
|
+
|
|
22968
24850
|
def _typecheckingstub__bd64a2009dff1bac3dd98571ac9a9cd65cbb030a3896121e0b1c8f24dfe6c74d(
|
|
22969
24851
|
*,
|
|
22970
24852
|
text: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptModelInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
@@ -22991,7 +24873,8 @@ def _typecheckingstub__d348efba187570a443093419bc85fbc24f754a9496fbfc85e29bb7e40
|
|
|
22991
24873
|
|
|
22992
24874
|
def _typecheckingstub__fde740ede958bf60edc6a98392bd083868fd4fd5f6ba5698705fc5e13de4d2bc(
|
|
22993
24875
|
*,
|
|
22994
|
-
|
|
24876
|
+
chat: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ChatPromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24877
|
+
text: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.TextPromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22995
24878
|
) -> None:
|
|
22996
24879
|
"""Type checking stubs"""
|
|
22997
24880
|
pass
|
|
@@ -23001,12 +24884,27 @@ def _typecheckingstub__84ac4a525676aedbb60bd913121b2941e7f39f8599421758678b789b5
|
|
|
23001
24884
|
name: builtins.str,
|
|
23002
24885
|
template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
23003
24886
|
template_type: builtins.str,
|
|
24887
|
+
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptGenAiResourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23004
24888
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23005
24889
|
model_id: typing.Optional[builtins.str] = None,
|
|
23006
24890
|
) -> None:
|
|
23007
24891
|
"""Type checking stubs"""
|
|
23008
24892
|
pass
|
|
23009
24893
|
|
|
24894
|
+
def _typecheckingstub__da5ae43b082eab1803451ea8230aaac824b9e7e5692a382e90523019503e98d8(
|
|
24895
|
+
*,
|
|
24896
|
+
name: builtins.str,
|
|
24897
|
+
) -> None:
|
|
24898
|
+
"""Type checking stubs"""
|
|
24899
|
+
pass
|
|
24900
|
+
|
|
24901
|
+
def _typecheckingstub__8684cdb8cfe450b629e96665dd0dbfcf0c5a9af74b282632d6f3c9b2aa9f3ba1(
|
|
24902
|
+
*,
|
|
24903
|
+
text: builtins.str,
|
|
24904
|
+
) -> None:
|
|
24905
|
+
"""Type checking stubs"""
|
|
24906
|
+
pass
|
|
24907
|
+
|
|
23010
24908
|
def _typecheckingstub__01b3fa0f925290ea253625fab81f78f897a7a15beed843aec623b58c22593c4c(
|
|
23011
24909
|
*,
|
|
23012
24910
|
input_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInputVariableProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
@@ -23025,6 +24923,46 @@ def _typecheckingstub__d1287781cb0d3129610c849bcac59920b6cd9c4ee3463830e5e8a9c13
|
|
|
23025
24923
|
"""Type checking stubs"""
|
|
23026
24924
|
pass
|
|
23027
24925
|
|
|
24926
|
+
def _typecheckingstub__ad9877c38015f6113fa32d864cca77d0c46ace16b3e5266c514440f59ad5d586(
|
|
24927
|
+
*,
|
|
24928
|
+
any: typing.Any = None,
|
|
24929
|
+
auto: typing.Any = None,
|
|
24930
|
+
tool: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.SpecificToolChoiceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24931
|
+
) -> None:
|
|
24932
|
+
"""Type checking stubs"""
|
|
24933
|
+
pass
|
|
24934
|
+
|
|
24935
|
+
def _typecheckingstub__58bef5956bcdc66861dfc71e6b8d5195db50ef860d563950a8cad8402be28a72(
|
|
24936
|
+
*,
|
|
24937
|
+
tools: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
24938
|
+
tool_choice: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolChoiceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24939
|
+
) -> None:
|
|
24940
|
+
"""Type checking stubs"""
|
|
24941
|
+
pass
|
|
24942
|
+
|
|
24943
|
+
def _typecheckingstub__53e39100fca2ebe3fae8a9a713a4d2e8e663f416119f9157301a00b1d678de97(
|
|
24944
|
+
*,
|
|
24945
|
+
json: typing.Any,
|
|
24946
|
+
) -> None:
|
|
24947
|
+
"""Type checking stubs"""
|
|
24948
|
+
pass
|
|
24949
|
+
|
|
24950
|
+
def _typecheckingstub__e0724eccb0497cbb88041bf7ba797dcfaceb20385a8cb461c8adc1b539c869e2(
|
|
24951
|
+
*,
|
|
24952
|
+
tool_spec: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolSpecificationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
24953
|
+
) -> None:
|
|
24954
|
+
"""Type checking stubs"""
|
|
24955
|
+
pass
|
|
24956
|
+
|
|
24957
|
+
def _typecheckingstub__431488796f561e2bc20a8aab4af239c209e0fc67b16251fa2476c7a19e2add9d(
|
|
24958
|
+
*,
|
|
24959
|
+
input_schema: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolInputSchemaProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
24960
|
+
name: builtins.str,
|
|
24961
|
+
description: typing.Optional[builtins.str] = None,
|
|
24962
|
+
) -> None:
|
|
24963
|
+
"""Type checking stubs"""
|
|
24964
|
+
pass
|
|
24965
|
+
|
|
23028
24966
|
def _typecheckingstub__ae555e4fe530af3f71499cdb465b902eb20b6de3d58aa48f4003015a29807bf9(
|
|
23029
24967
|
*,
|
|
23030
24968
|
name: builtins.str,
|