aws-cdk-lib 2.173.4__py3-none-any.whl → 2.174.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of aws-cdk-lib might be problematic. Click here for more details.

Files changed (91) hide show
  1. aws_cdk/__init__.py +210 -181
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.173.4.jsii.tgz → aws-cdk-lib@2.174.1.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +18 -0
  5. aws_cdk/aws_apigateway/__init__.py +127 -168
  6. aws_cdk/aws_appconfig/__init__.py +498 -1
  7. aws_cdk/aws_applicationautoscaling/__init__.py +4 -1
  8. aws_cdk/aws_appsync/__init__.py +4 -0
  9. aws_cdk/aws_autoscaling/__init__.py +96 -0
  10. aws_cdk/aws_batch/__init__.py +662 -237
  11. aws_cdk/aws_bedrock/__init__.py +2122 -181
  12. aws_cdk/aws_cassandra/__init__.py +476 -4
  13. aws_cdk/aws_cleanrooms/__init__.py +1227 -20
  14. aws_cdk/aws_cloudformation/__init__.py +172 -169
  15. aws_cdk/aws_cloudfront/__init__.py +773 -26
  16. aws_cdk/aws_cloudtrail/__init__.py +8 -2
  17. aws_cdk/aws_codebuild/__init__.py +83 -0
  18. aws_cdk/aws_codepipeline/__init__.py +2 -1
  19. aws_cdk/aws_cognito/__init__.py +232 -200
  20. aws_cdk/aws_connect/__init__.py +187 -36
  21. aws_cdk/aws_connectcampaignsv2/__init__.py +106 -12
  22. aws_cdk/aws_databrew/__init__.py +69 -1
  23. aws_cdk/aws_datasync/__init__.py +33 -28
  24. aws_cdk/aws_datazone/__init__.py +141 -41
  25. aws_cdk/aws_dlm/__init__.py +20 -10
  26. aws_cdk/aws_dms/__init__.py +736 -22
  27. aws_cdk/aws_docdb/__init__.py +134 -0
  28. aws_cdk/aws_dynamodb/__init__.py +76 -4
  29. aws_cdk/aws_ec2/__init__.py +1233 -65
  30. aws_cdk/aws_ecr/__init__.py +31 -0
  31. aws_cdk/aws_ecr_assets/__init__.py +5 -0
  32. aws_cdk/aws_ecs/__init__.py +88 -11
  33. aws_cdk/aws_efs/__init__.py +15 -8
  34. aws_cdk/aws_eks/__init__.py +114 -45
  35. aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
  36. aws_cdk/aws_emrserverless/__init__.py +143 -0
  37. aws_cdk/aws_events/__init__.py +50 -30
  38. aws_cdk/aws_fis/__init__.py +33 -33
  39. aws_cdk/aws_fsx/__init__.py +20 -10
  40. aws_cdk/aws_glue/__init__.py +34 -11
  41. aws_cdk/aws_greengrass/__init__.py +8 -8
  42. aws_cdk/aws_guardduty/__init__.py +1 -1
  43. aws_cdk/aws_imagebuilder/__init__.py +45 -47
  44. aws_cdk/aws_internetmonitor/__init__.py +3 -3
  45. aws_cdk/aws_invoicing/__init__.py +55 -30
  46. aws_cdk/aws_iot/__init__.py +1117 -4
  47. aws_cdk/aws_iot1click/__init__.py +17 -7
  48. aws_cdk/aws_kendra/__init__.py +4 -6
  49. aws_cdk/aws_lambda/__init__.py +15 -1
  50. aws_cdk/aws_logs/__init__.py +4011 -86
  51. aws_cdk/aws_m2/__init__.py +41 -0
  52. aws_cdk/aws_mediaconnect/__init__.py +202 -7
  53. aws_cdk/aws_mediaconvert/__init__.py +39 -0
  54. aws_cdk/aws_memorydb/__init__.py +22 -22
  55. aws_cdk/aws_networkmanager/__init__.py +758 -0
  56. aws_cdk/aws_opensearchservice/__init__.py +222 -0
  57. aws_cdk/aws_organizations/__init__.py +5 -3
  58. aws_cdk/aws_pcs/__init__.py +3038 -0
  59. aws_cdk/aws_pipes/__init__.py +10 -10
  60. aws_cdk/aws_qbusiness/__init__.py +415 -140
  61. aws_cdk/aws_quicksight/__init__.py +59795 -49748
  62. aws_cdk/aws_ram/__init__.py +5 -11
  63. aws_cdk/aws_rbin/__init__.py +28 -16
  64. aws_cdk/aws_rds/__init__.py +186 -31
  65. aws_cdk/aws_redshiftserverless/__init__.py +156 -0
  66. aws_cdk/aws_resiliencehub/__init__.py +2 -1
  67. aws_cdk/aws_route53_targets/__init__.py +5 -5
  68. aws_cdk/aws_s3/__init__.py +25 -15
  69. aws_cdk/aws_s3express/__init__.py +7 -7
  70. aws_cdk/aws_s3tables/__init__.py +683 -0
  71. aws_cdk/aws_sagemaker/__init__.py +580 -195
  72. aws_cdk/aws_secretsmanager/__init__.py +2 -0
  73. aws_cdk/aws_securityhub/__init__.py +41 -165
  74. aws_cdk/aws_servicediscovery/__init__.py +10 -3
  75. aws_cdk/aws_ses/__init__.py +190 -5
  76. aws_cdk/aws_sns/__init__.py +7 -3
  77. aws_cdk/aws_synthetics/__init__.py +29 -4
  78. aws_cdk/aws_transfer/__init__.py +8 -0
  79. aws_cdk/aws_vpclattice/__init__.py +147 -77
  80. aws_cdk/aws_wafv2/__init__.py +20 -8
  81. aws_cdk/aws_wisdom/__init__.py +162 -111
  82. aws_cdk/aws_workspaces/__init__.py +10 -4
  83. aws_cdk/cloud_assembly_schema/__init__.py +22 -0
  84. aws_cdk/custom_resources/__init__.py +31 -0
  85. aws_cdk/cx_api/__init__.py +19 -0
  86. {aws_cdk_lib-2.173.4.dist-info → aws_cdk_lib-2.174.1.dist-info}/LICENSE +1 -1
  87. {aws_cdk_lib-2.173.4.dist-info → aws_cdk_lib-2.174.1.dist-info}/METADATA +2 -2
  88. {aws_cdk_lib-2.173.4.dist-info → aws_cdk_lib-2.174.1.dist-info}/NOTICE +1 -1
  89. {aws_cdk_lib-2.173.4.dist-info → aws_cdk_lib-2.174.1.dist-info}/RECORD +91 -89
  90. {aws_cdk_lib-2.173.4.dist-info → aws_cdk_lib-2.174.1.dist-info}/WHEEL +0 -0
  91. {aws_cdk_lib-2.173.4.dist-info → aws_cdk_lib-2.174.1.dist-info}/top_level.txt +0 -0
@@ -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={"model_arn": "modelArn", "parsing_prompt": "parsingPrompt"},
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
- By default, the service converts the contents of each document into text before splitting it into chunks. To improve processing of PDF files with tables and images, you can configure the data source to convert the pages of text into images and use a model to describe the contents of each page.
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
- You can get the ARN of a model with the `ListFoundationModels <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html>`_ action. Standard model usage charges apply for the foundation model parsing strategy.
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 bedrock_foundation_model_configuration: Settings for a foundation model used to parse documents for a data source.
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
- '''Settings for a foundation model used to parse documents for a data source.
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
- '''An Amazon S3 location.
5453
+ '''A storage location in an S3 bucket.
5339
5454
 
5340
- :param uri: The location's URI. For example, ``s3://my-bucket/chunk-processor/`` .
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
- '''The location's URI.
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: A custom parser for data source documents.
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
- '''A custom parser for data source documents.
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," Guarrails 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* - *REDIT_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..
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," Guarrails recognizes "40 years" as an age.
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
- - *REDIT_DEBIT_CARD_CVV*
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
- vector_knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
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
- assert result is not None, "Required property 'vector_knowledge_base_configuration' is missing"
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.VectorKnowledgeBaseConfigurationProperty",
18201
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty",
17928
18202
  jsii_struct_bases=[],
17929
18203
  name_mapping={
17930
- "embedding_model_arn": "embeddingModelArn",
17931
- "embedding_model_configuration": "embeddingModelConfiguration",
18204
+ "supplemental_data_storage_locations": "supplementalDataStorageLocations",
17932
18205
  },
17933
18206
  )
17934
- class VectorKnowledgeBaseConfigurationProperty:
18207
+ class SupplementalDataStorageConfigurationProperty:
17935
18208
  def __init__(
17936
18209
  self,
17937
18210
  *,
17938
- embedding_model_arn: builtins.str,
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
- '''Contains details about the model used to create vector embeddings for the knowledge base.
18213
+ '''Specifies configurations for the storage location of the images extracted from multimodal documents in your data source.
17942
18214
 
17943
- :param embedding_model_arn: The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.
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
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html
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
- vector_knowledge_base_configuration_property = bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty(
17956
- embedding_model_arn="embeddingModelArn",
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
- # the properties below are optional
17959
- embedding_model_configuration=bedrock.CfnKnowledgeBase.EmbeddingModelConfigurationProperty(
17960
- bedrock_embedding_model_configuration=bedrock.CfnKnowledgeBase.BedrockEmbeddingModelConfigurationProperty(
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(_typecheckingstub__53b08e209954b21c35b746e5eee517d51370af30630f5f17b3e5435150898236)
17968
- check_type(argname="argument embedding_model_arn", value=embedding_model_arn, expected_type=type_hints["embedding_model_arn"])
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
- "embedding_model_arn": embedding_model_arn,
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 embedding_model_configuration(
18247
+ def supplemental_data_storage_locations(
17988
18248
  self,
17989
- ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.EmbeddingModelConfigurationProperty"]]:
17990
- '''The embeddings model configuration details for the vector model used in Knowledge Base.
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-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelconfiguration
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("embedding_model_configuration")
17995
- return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnKnowledgeBase.EmbeddingModelConfigurationProperty"]], result)
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 "VectorKnowledgeBaseConfigurationProperty(%s)" % ", ".join(
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
- @jsii.data_type(
18010
- jsii_type="aws-cdk-lib.aws_bedrock.CfnKnowledgeBaseProps",
18011
- jsii_struct_bases=[],
18012
- name_mapping={
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.PromptInferenceConfigurationProperty",
18997
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty",
18484
18998
  jsii_struct_bases=[],
18485
- name_mapping={"text": "text"},
18999
+ name_mapping={
19000
+ "messages": "messages",
19001
+ "input_variables": "inputVariables",
19002
+ "system": "system",
19003
+ "tool_configuration": "toolConfiguration",
19004
+ },
18486
19005
  )
18487
- class PromptInferenceConfigurationProperty:
19006
+ class ChatPromptTemplateConfigurationProperty:
18488
19007
  def __init__(
18489
19008
  self,
18490
19009
  *,
18491
- text: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptModelInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
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 inference configurations for the prompt.
19015
+ '''Contains configurations to use a prompt in a conversational format.
18494
19016
 
18495
- :param text: Contains inference configurations for a text prompt.
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
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinferenceconfiguration.html
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
- prompt_inference_configuration_property = bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
18507
- text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
18508
- max_tokens=123,
18509
- stop_sequences=["stopSequences"],
18510
- temperature=123,
18511
- top_p=123
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(_typecheckingstub__bd64a2009dff1bac3dd98571ac9a9cd65cbb030a3896121e0b1c8f24dfe6c74d)
18517
- check_type(argname="argument text", value=text, expected_type=type_hints["text"])
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
- "text": text,
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 text(
19093
+ def messages(
18524
19094
  self,
18525
- ) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptModelInferenceConfigurationProperty"]:
18526
- '''Contains inference configurations for a text prompt.
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-promptinferenceconfiguration.html#cfn-bedrock-prompt-promptinferenceconfiguration-text
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("text")
18531
- assert result is not None, "Required property 'text' is missing"
18532
- return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptModelInferenceConfigurationProperty"], result)
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
- text: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.TextPromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
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
- text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
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
- text="text",
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
- "text": text,
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
- assert result is not None, "Required property 'text' is missing"
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,117 @@ 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.
19969
+
19970
+ For example, ``{"tool" : {"name" : "Your tool name"}}`` . For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide
19971
+ .. epigraph::
19972
+
19973
+ This field is only supported by Anthropic Claude 3 models.
19974
+
19975
+ :param name: The name of the tool that the model must request.
19976
+
19977
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-specifictoolchoice.html
19978
+ :exampleMetadata: fixture=_generated
19979
+
19980
+ Example::
19981
+
19982
+ # The code below shows an example of how to instantiate this type.
19983
+ # The values are placeholders you should change.
19984
+ from aws_cdk import aws_bedrock as bedrock
19985
+
19986
+ specific_tool_choice_property = bedrock.CfnPrompt.SpecificToolChoiceProperty(
19987
+ name="name"
19988
+ )
19989
+ '''
19990
+ if __debug__:
19991
+ type_hints = typing.get_type_hints(_typecheckingstub__da5ae43b082eab1803451ea8230aaac824b9e7e5692a382e90523019503e98d8)
19992
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
19993
+ self._values: typing.Dict[builtins.str, typing.Any] = {
19994
+ "name": name,
19995
+ }
19996
+
19997
+ @builtins.property
19998
+ def name(self) -> builtins.str:
19999
+ '''The name of the tool that the model must request.
20000
+
20001
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-specifictoolchoice.html#cfn-bedrock-prompt-specifictoolchoice-name
20002
+ '''
20003
+ result = self._values.get("name")
20004
+ assert result is not None, "Required property 'name' is missing"
20005
+ return typing.cast(builtins.str, result)
20006
+
20007
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
20008
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
20009
+
20010
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
20011
+ return not (rhs == self)
20012
+
20013
+ def __repr__(self) -> str:
20014
+ return "SpecificToolChoiceProperty(%s)" % ", ".join(
20015
+ k + "=" + repr(v) for k, v in self._values.items()
20016
+ )
20017
+
20018
+ @jsii.data_type(
20019
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.SystemContentBlockProperty",
20020
+ jsii_struct_bases=[],
20021
+ name_mapping={"text": "text"},
20022
+ )
20023
+ class SystemContentBlockProperty:
20024
+ def __init__(self, *, text: builtins.str) -> None:
20025
+ '''Contains configurations for instructions to provide the model for how to handle input.
20026
+
20027
+ To learn more, see `Using the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html>`_ .
20028
+
20029
+ :param text: A system prompt for the model.
20030
+
20031
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html
20032
+ :exampleMetadata: fixture=_generated
20033
+
20034
+ Example::
20035
+
20036
+ # The code below shows an example of how to instantiate this type.
20037
+ # The values are placeholders you should change.
20038
+ from aws_cdk import aws_bedrock as bedrock
20039
+
20040
+ system_content_block_property = bedrock.CfnPrompt.SystemContentBlockProperty(
20041
+ text="text"
20042
+ )
20043
+ '''
20044
+ if __debug__:
20045
+ type_hints = typing.get_type_hints(_typecheckingstub__8684cdb8cfe450b629e96665dd0dbfcf0c5a9af74b282632d6f3c9b2aa9f3ba1)
20046
+ check_type(argname="argument text", value=text, expected_type=type_hints["text"])
20047
+ self._values: typing.Dict[builtins.str, typing.Any] = {
20048
+ "text": text,
20049
+ }
20050
+
20051
+ @builtins.property
20052
+ def text(self) -> builtins.str:
20053
+ '''A system prompt for the model.
20054
+
20055
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-systemcontentblock.html#cfn-bedrock-prompt-systemcontentblock-text
20056
+ '''
20057
+ result = self._values.get("text")
20058
+ assert result is not None, "Required property 'text' is missing"
20059
+ return typing.cast(builtins.str, result)
20060
+
20061
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
20062
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
20063
+
20064
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
20065
+ return not (rhs == self)
20066
+
20067
+ def __repr__(self) -> str:
20068
+ return "SystemContentBlockProperty(%s)" % ", ".join(
20069
+ k + "=" + repr(v) for k, v in self._values.items()
20070
+ )
20071
+
18926
20072
  @jsii.data_type(
18927
20073
  jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty",
18928
20074
  jsii_struct_bases=[],
@@ -19095,12 +20241,437 @@ class CfnPrompt(
19095
20241
  return typing.cast(builtins.str, result)
19096
20242
 
19097
20243
  @builtins.property
19098
- def version(self) -> typing.Optional[builtins.str]:
19099
- '''The version of the Amazon S3 location to use.
20244
+ def version(self) -> typing.Optional[builtins.str]:
20245
+ '''The version of the Amazon S3 location to use.
20246
+
20247
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html#cfn-bedrock-prompt-texts3location-version
20248
+ '''
20249
+ result = self._values.get("version")
20250
+ return typing.cast(typing.Optional[builtins.str], result)
20251
+
20252
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
20253
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
20254
+
20255
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
20256
+ return not (rhs == self)
20257
+
20258
+ def __repr__(self) -> str:
20259
+ return "TextS3LocationProperty(%s)" % ", ".join(
20260
+ k + "=" + repr(v) for k, v in self._values.items()
20261
+ )
20262
+
20263
+ @jsii.data_type(
20264
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolChoiceProperty",
20265
+ jsii_struct_bases=[],
20266
+ name_mapping={"any": "any", "auto": "auto", "tool": "tool"},
20267
+ )
20268
+ class ToolChoiceProperty:
20269
+ def __init__(
20270
+ self,
20271
+ *,
20272
+ any: typing.Any = None,
20273
+ auto: typing.Any = None,
20274
+ tool: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.SpecificToolChoiceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
20275
+ ) -> None:
20276
+ '''Determines which tools the model should request in a call to ``Converse`` or ``ConverseStream`` .
20277
+
20278
+ ``ToolChoice`` is only supported by Anthropic Claude 3 models and by Mistral AI Mistral Large. For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
20279
+
20280
+ :param any: The model must request at least one tool (no text is generated).
20281
+ :param auto: (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
20282
+ :param tool: The Model must request the specified tool. Only supported by Anthropic Claude 3 models.
20283
+
20284
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html
20285
+ :exampleMetadata: fixture=_generated
20286
+
20287
+ Example::
20288
+
20289
+ # The code below shows an example of how to instantiate this type.
20290
+ # The values are placeholders you should change.
20291
+ from aws_cdk import aws_bedrock as bedrock
20292
+
20293
+ # any: Any
20294
+ # auto: Any
20295
+
20296
+ tool_choice_property = bedrock.CfnPrompt.ToolChoiceProperty(
20297
+ any=any,
20298
+ auto=auto,
20299
+ tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
20300
+ name="name"
20301
+ )
20302
+ )
20303
+ '''
20304
+ if __debug__:
20305
+ type_hints = typing.get_type_hints(_typecheckingstub__ad9877c38015f6113fa32d864cca77d0c46ace16b3e5266c514440f59ad5d586)
20306
+ check_type(argname="argument any", value=any, expected_type=type_hints["any"])
20307
+ check_type(argname="argument auto", value=auto, expected_type=type_hints["auto"])
20308
+ check_type(argname="argument tool", value=tool, expected_type=type_hints["tool"])
20309
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
20310
+ if any is not None:
20311
+ self._values["any"] = any
20312
+ if auto is not None:
20313
+ self._values["auto"] = auto
20314
+ if tool is not None:
20315
+ self._values["tool"] = tool
20316
+
20317
+ @builtins.property
20318
+ def any(self) -> typing.Any:
20319
+ '''The model must request at least one tool (no text is generated).
20320
+
20321
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-any
20322
+ '''
20323
+ result = self._values.get("any")
20324
+ return typing.cast(typing.Any, result)
20325
+
20326
+ @builtins.property
20327
+ def auto(self) -> typing.Any:
20328
+ '''(Default).
20329
+
20330
+ The Model automatically decides if a tool should be called or whether to generate text instead.
20331
+
20332
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-auto
20333
+ '''
20334
+ result = self._values.get("auto")
20335
+ return typing.cast(typing.Any, result)
20336
+
20337
+ @builtins.property
20338
+ def tool(
20339
+ self,
20340
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SpecificToolChoiceProperty"]]:
20341
+ '''The Model must request the specified tool.
20342
+
20343
+ Only supported by Anthropic Claude 3 models.
20344
+
20345
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolchoice.html#cfn-bedrock-prompt-toolchoice-tool
20346
+ '''
20347
+ result = self._values.get("tool")
20348
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.SpecificToolChoiceProperty"]], result)
20349
+
20350
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
20351
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
20352
+
20353
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
20354
+ return not (rhs == self)
20355
+
20356
+ def __repr__(self) -> str:
20357
+ return "ToolChoiceProperty(%s)" % ", ".join(
20358
+ k + "=" + repr(v) for k, v in self._values.items()
20359
+ )
20360
+
20361
+ @jsii.data_type(
20362
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolConfigurationProperty",
20363
+ jsii_struct_bases=[],
20364
+ name_mapping={"tools": "tools", "tool_choice": "toolChoice"},
20365
+ )
20366
+ class ToolConfigurationProperty:
20367
+ def __init__(
20368
+ self,
20369
+ *,
20370
+ tools: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolProperty", typing.Dict[builtins.str, typing.Any]]]]],
20371
+ tool_choice: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolChoiceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
20372
+ ) -> None:
20373
+ '''Configuration information for the tools that you pass to a model.
20374
+
20375
+ 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.
20376
+
20377
+ :param tools: An array of tools that you want to pass to a model.
20378
+ :param tool_choice: If supported by model, forces the model to request a tool.
20379
+
20380
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolconfiguration.html
20381
+ :exampleMetadata: fixture=_generated
20382
+
20383
+ Example::
20384
+
20385
+ # The code below shows an example of how to instantiate this type.
20386
+ # The values are placeholders you should change.
20387
+ from aws_cdk import aws_bedrock as bedrock
20388
+
20389
+ # any: Any
20390
+ # auto: Any
20391
+ # json: Any
20392
+
20393
+ tool_configuration_property = bedrock.CfnPrompt.ToolConfigurationProperty(
20394
+ tools=[bedrock.CfnPrompt.ToolProperty(
20395
+ tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
20396
+ input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
20397
+ json=json
20398
+ ),
20399
+ name="name",
20400
+
20401
+ # the properties below are optional
20402
+ description="description"
20403
+ )
20404
+ )],
20405
+
20406
+ # the properties below are optional
20407
+ tool_choice=bedrock.CfnPrompt.ToolChoiceProperty(
20408
+ any=any,
20409
+ auto=auto,
20410
+ tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
20411
+ name="name"
20412
+ )
20413
+ )
20414
+ )
20415
+ '''
20416
+ if __debug__:
20417
+ type_hints = typing.get_type_hints(_typecheckingstub__58bef5956bcdc66861dfc71e6b8d5195db50ef860d563950a8cad8402be28a72)
20418
+ check_type(argname="argument tools", value=tools, expected_type=type_hints["tools"])
20419
+ check_type(argname="argument tool_choice", value=tool_choice, expected_type=type_hints["tool_choice"])
20420
+ self._values: typing.Dict[builtins.str, typing.Any] = {
20421
+ "tools": tools,
20422
+ }
20423
+ if tool_choice is not None:
20424
+ self._values["tool_choice"] = tool_choice
20425
+
20426
+ @builtins.property
20427
+ def tools(
20428
+ self,
20429
+ ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolProperty"]]]:
20430
+ '''An array of tools that you want to pass to a model.
20431
+
20432
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolconfiguration.html#cfn-bedrock-prompt-toolconfiguration-tools
20433
+ '''
20434
+ result = self._values.get("tools")
20435
+ assert result is not None, "Required property 'tools' is missing"
20436
+ return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolProperty"]]], result)
20437
+
20438
+ @builtins.property
20439
+ def tool_choice(
20440
+ self,
20441
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolChoiceProperty"]]:
20442
+ '''If supported by model, forces the model to request a tool.
20443
+
20444
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolconfiguration.html#cfn-bedrock-prompt-toolconfiguration-toolchoice
20445
+ '''
20446
+ result = self._values.get("tool_choice")
20447
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolChoiceProperty"]], result)
20448
+
20449
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
20450
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
20451
+
20452
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
20453
+ return not (rhs == self)
20454
+
20455
+ def __repr__(self) -> str:
20456
+ return "ToolConfigurationProperty(%s)" % ", ".join(
20457
+ k + "=" + repr(v) for k, v in self._values.items()
20458
+ )
20459
+
20460
+ @jsii.data_type(
20461
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolInputSchemaProperty",
20462
+ jsii_struct_bases=[],
20463
+ name_mapping={"json": "json"},
20464
+ )
20465
+ class ToolInputSchemaProperty:
20466
+ def __init__(self, *, json: typing.Any) -> None:
20467
+ '''The schema for the tool.
20468
+
20469
+ The top level schema type must be ``object`` . For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
20470
+
20471
+ :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>`_ .
20472
+
20473
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolinputschema.html
20474
+ :exampleMetadata: fixture=_generated
20475
+
20476
+ Example::
20477
+
20478
+ # The code below shows an example of how to instantiate this type.
20479
+ # The values are placeholders you should change.
20480
+ from aws_cdk import aws_bedrock as bedrock
20481
+
20482
+ # json: Any
20483
+
20484
+ tool_input_schema_property = bedrock.CfnPrompt.ToolInputSchemaProperty(
20485
+ json=json
20486
+ )
20487
+ '''
20488
+ if __debug__:
20489
+ type_hints = typing.get_type_hints(_typecheckingstub__53e39100fca2ebe3fae8a9a713a4d2e8e663f416119f9157301a00b1d678de97)
20490
+ check_type(argname="argument json", value=json, expected_type=type_hints["json"])
20491
+ self._values: typing.Dict[builtins.str, typing.Any] = {
20492
+ "json": json,
20493
+ }
20494
+
20495
+ @builtins.property
20496
+ def json(self) -> typing.Any:
20497
+ '''The JSON schema for the tool.
20498
+
20499
+ For more information, see `JSON Schema Reference <https://docs.aws.amazon.com/https://json-schema.org/understanding-json-schema/reference>`_ .
20500
+
20501
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolinputschema.html#cfn-bedrock-prompt-toolinputschema-json
20502
+ '''
20503
+ result = self._values.get("json")
20504
+ assert result is not None, "Required property 'json' is missing"
20505
+ return typing.cast(typing.Any, result)
20506
+
20507
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
20508
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
20509
+
20510
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
20511
+ return not (rhs == self)
20512
+
20513
+ def __repr__(self) -> str:
20514
+ return "ToolInputSchemaProperty(%s)" % ", ".join(
20515
+ k + "=" + repr(v) for k, v in self._values.items()
20516
+ )
20517
+
20518
+ @jsii.data_type(
20519
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolProperty",
20520
+ jsii_struct_bases=[],
20521
+ name_mapping={"tool_spec": "toolSpec"},
20522
+ )
20523
+ class ToolProperty:
20524
+ def __init__(
20525
+ self,
20526
+ *,
20527
+ tool_spec: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolSpecificationProperty", typing.Dict[builtins.str, typing.Any]]],
20528
+ ) -> None:
20529
+ '''Information about a tool that you can use with the Converse API.
20530
+
20531
+ For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
20532
+
20533
+ :param tool_spec: The specfication for the tool.
20534
+
20535
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html
20536
+ :exampleMetadata: fixture=_generated
20537
+
20538
+ Example::
20539
+
20540
+ # The code below shows an example of how to instantiate this type.
20541
+ # The values are placeholders you should change.
20542
+ from aws_cdk import aws_bedrock as bedrock
20543
+
20544
+ # json: Any
20545
+
20546
+ tool_property = bedrock.CfnPrompt.ToolProperty(
20547
+ tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
20548
+ input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
20549
+ json=json
20550
+ ),
20551
+ name="name",
20552
+
20553
+ # the properties below are optional
20554
+ description="description"
20555
+ )
20556
+ )
20557
+ '''
20558
+ if __debug__:
20559
+ type_hints = typing.get_type_hints(_typecheckingstub__e0724eccb0497cbb88041bf7ba797dcfaceb20385a8cb461c8adc1b539c869e2)
20560
+ check_type(argname="argument tool_spec", value=tool_spec, expected_type=type_hints["tool_spec"])
20561
+ self._values: typing.Dict[builtins.str, typing.Any] = {
20562
+ "tool_spec": tool_spec,
20563
+ }
20564
+
20565
+ @builtins.property
20566
+ def tool_spec(
20567
+ self,
20568
+ ) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"]:
20569
+ '''The specfication for the tool.
20570
+
20571
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tool.html#cfn-bedrock-prompt-tool-toolspec
20572
+ '''
20573
+ result = self._values.get("tool_spec")
20574
+ assert result is not None, "Required property 'tool_spec' is missing"
20575
+ return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolSpecificationProperty"], result)
20576
+
20577
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
20578
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
20579
+
20580
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
20581
+ return not (rhs == self)
20582
+
20583
+ def __repr__(self) -> str:
20584
+ return "ToolProperty(%s)" % ", ".join(
20585
+ k + "=" + repr(v) for k, v in self._values.items()
20586
+ )
20587
+
20588
+ @jsii.data_type(
20589
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.ToolSpecificationProperty",
20590
+ jsii_struct_bases=[],
20591
+ name_mapping={
20592
+ "input_schema": "inputSchema",
20593
+ "name": "name",
20594
+ "description": "description",
20595
+ },
20596
+ )
20597
+ class ToolSpecificationProperty:
20598
+ def __init__(
20599
+ self,
20600
+ *,
20601
+ input_schema: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.ToolInputSchemaProperty", typing.Dict[builtins.str, typing.Any]]],
20602
+ name: builtins.str,
20603
+ description: typing.Optional[builtins.str] = None,
20604
+ ) -> None:
20605
+ '''The specification for the tool.
20606
+
20607
+ For more information, see `Call a tool with the Converse API <https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html>`_ in the Amazon Bedrock User Guide.
20608
+
20609
+ :param input_schema: The input schema for the tool in JSON format.
20610
+ :param name: The name for the tool.
20611
+ :param description: The description for the tool.
20612
+
20613
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolspecification.html
20614
+ :exampleMetadata: fixture=_generated
20615
+
20616
+ Example::
20617
+
20618
+ # The code below shows an example of how to instantiate this type.
20619
+ # The values are placeholders you should change.
20620
+ from aws_cdk import aws_bedrock as bedrock
20621
+
20622
+ # json: Any
20623
+
20624
+ tool_specification_property = bedrock.CfnPrompt.ToolSpecificationProperty(
20625
+ input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
20626
+ json=json
20627
+ ),
20628
+ name="name",
20629
+
20630
+ # the properties below are optional
20631
+ description="description"
20632
+ )
20633
+ '''
20634
+ if __debug__:
20635
+ type_hints = typing.get_type_hints(_typecheckingstub__431488796f561e2bc20a8aab4af239c209e0fc67b16251fa2476c7a19e2add9d)
20636
+ check_type(argname="argument input_schema", value=input_schema, expected_type=type_hints["input_schema"])
20637
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
20638
+ check_type(argname="argument description", value=description, expected_type=type_hints["description"])
20639
+ self._values: typing.Dict[builtins.str, typing.Any] = {
20640
+ "input_schema": input_schema,
20641
+ "name": name,
20642
+ }
20643
+ if description is not None:
20644
+ self._values["description"] = description
20645
+
20646
+ @builtins.property
20647
+ def input_schema(
20648
+ self,
20649
+ ) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolInputSchemaProperty"]:
20650
+ '''The input schema for the tool in JSON format.
20651
+
20652
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolspecification.html#cfn-bedrock-prompt-toolspecification-inputschema
20653
+ '''
20654
+ result = self._values.get("input_schema")
20655
+ assert result is not None, "Required property 'input_schema' is missing"
20656
+ return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.ToolInputSchemaProperty"], result)
20657
+
20658
+ @builtins.property
20659
+ def name(self) -> builtins.str:
20660
+ '''The name for the tool.
20661
+
20662
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolspecification.html#cfn-bedrock-prompt-toolspecification-name
20663
+ '''
20664
+ result = self._values.get("name")
20665
+ assert result is not None, "Required property 'name' is missing"
20666
+ return typing.cast(builtins.str, result)
20667
+
20668
+ @builtins.property
20669
+ def description(self) -> typing.Optional[builtins.str]:
20670
+ '''The description for the tool.
19100
20671
 
19101
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html#cfn-bedrock-prompt-texts3location-version
20672
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-toolspecification.html#cfn-bedrock-prompt-toolspecification-description
19102
20673
  '''
19103
- result = self._values.get("version")
20674
+ result = self._values.get("description")
19104
20675
  return typing.cast(typing.Optional[builtins.str], result)
19105
20676
 
19106
20677
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
@@ -19110,7 +20681,7 @@ class CfnPrompt(
19110
20681
  return not (rhs == self)
19111
20682
 
19112
20683
  def __repr__(self) -> str:
19113
- return "TextS3LocationProperty(%s)" % ", ".join(
20684
+ return "ToolSpecificationProperty(%s)" % ", ".join(
19114
20685
  k + "=" + repr(v) for k, v in self._values.items()
19115
20686
  )
19116
20687
 
@@ -19156,6 +20727,10 @@ class CfnPromptProps:
19156
20727
  # The values are placeholders you should change.
19157
20728
  from aws_cdk import aws_bedrock as bedrock
19158
20729
 
20730
+ # any: Any
20731
+ # auto: Any
20732
+ # json: Any
20733
+
19159
20734
  cfn_prompt_props = bedrock.CfnPromptProps(
19160
20735
  name="name",
19161
20736
 
@@ -19169,6 +20744,44 @@ class CfnPromptProps:
19169
20744
  variants=[bedrock.CfnPrompt.PromptVariantProperty(
19170
20745
  name="name",
19171
20746
  template_configuration=bedrock.CfnPrompt.PromptTemplateConfigurationProperty(
20747
+ chat=bedrock.CfnPrompt.ChatPromptTemplateConfigurationProperty(
20748
+ messages=[bedrock.CfnPrompt.MessageProperty(
20749
+ content=[bedrock.CfnPrompt.ContentBlockProperty(
20750
+ text="text"
20751
+ )],
20752
+ role="role"
20753
+ )],
20754
+
20755
+ # the properties below are optional
20756
+ input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
20757
+ name="name"
20758
+ )],
20759
+ system=[bedrock.CfnPrompt.SystemContentBlockProperty(
20760
+ text="text"
20761
+ )],
20762
+ tool_configuration=bedrock.CfnPrompt.ToolConfigurationProperty(
20763
+ tools=[bedrock.CfnPrompt.ToolProperty(
20764
+ tool_spec=bedrock.CfnPrompt.ToolSpecificationProperty(
20765
+ input_schema=bedrock.CfnPrompt.ToolInputSchemaProperty(
20766
+ json=json
20767
+ ),
20768
+ name="name",
20769
+
20770
+ # the properties below are optional
20771
+ description="description"
20772
+ )
20773
+ )],
20774
+
20775
+ # the properties below are optional
20776
+ tool_choice=bedrock.CfnPrompt.ToolChoiceProperty(
20777
+ any=any,
20778
+ auto=auto,
20779
+ tool=bedrock.CfnPrompt.SpecificToolChoiceProperty(
20780
+ name="name"
20781
+ )
20782
+ )
20783
+ )
20784
+ ),
19172
20785
  text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
19173
20786
  input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
19174
20787
  name="name"
@@ -19186,6 +20799,11 @@ class CfnPromptProps:
19186
20799
  template_type="templateType",
19187
20800
 
19188
20801
  # the properties below are optional
20802
+ gen_ai_resource=bedrock.CfnPrompt.PromptGenAiResourceProperty(
20803
+ agent=bedrock.CfnPrompt.PromptAgentResourceProperty(
20804
+ agent_identifier="agentIdentifier"
20805
+ )
20806
+ ),
19189
20807
  inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
19190
20808
  text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
19191
20809
  max_tokens=123,
@@ -20162,7 +21780,12 @@ class FoundationModelIdentifier(
20162
21780
  @jsii.python.classproperty
20163
21781
  @jsii.member(jsii_name="AI21_J2_GRANDE_INSTRUCT")
20164
21782
  def AI21_J2_GRANDE_INSTRUCT(cls) -> "FoundationModelIdentifier":
20165
- '''Base model "ai21.j2-grande-instruct".'''
21783
+ '''(deprecated) Base model "ai21.j2-grande-instruct".
21784
+
21785
+ :deprecated: use latest version of the model
21786
+
21787
+ :stability: deprecated
21788
+ '''
20166
21789
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_GRANDE_INSTRUCT"))
20167
21790
 
20168
21791
  @jsii.python.classproperty
@@ -20174,19 +21797,34 @@ class FoundationModelIdentifier(
20174
21797
  @jsii.python.classproperty
20175
21798
  @jsii.member(jsii_name="AI21_J2_JUMBO_INSTRUCT")
20176
21799
  def AI21_J2_JUMBO_INSTRUCT(cls) -> "FoundationModelIdentifier":
20177
- '''Base model "ai21.j2-jumbo-instruct".'''
21800
+ '''(deprecated) Base model "ai21.j2-jumbo-instruct".
21801
+
21802
+ :deprecated: use latest version of the model
21803
+
21804
+ :stability: deprecated
21805
+ '''
20178
21806
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_JUMBO_INSTRUCT"))
20179
21807
 
20180
21808
  @jsii.python.classproperty
20181
21809
  @jsii.member(jsii_name="AI21_J2_MID")
20182
21810
  def AI21_J2_MID(cls) -> "FoundationModelIdentifier":
20183
- '''Base model "ai21.j2-mid".'''
21811
+ '''(deprecated) Base model "ai21.j2-mid".
21812
+
21813
+ :deprecated: use latest version of the model
21814
+
21815
+ :stability: deprecated
21816
+ '''
20184
21817
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_MID"))
20185
21818
 
20186
21819
  @jsii.python.classproperty
20187
21820
  @jsii.member(jsii_name="AI21_J2_ULTRA")
20188
21821
  def AI21_J2_ULTRA(cls) -> "FoundationModelIdentifier":
20189
- '''Base model "ai21.j2-ultra".'''
21822
+ '''(deprecated) Base model "ai21.j2-ultra".
21823
+
21824
+ :deprecated: use latest version of the model
21825
+
21826
+ :stability: deprecated
21827
+ '''
20190
21828
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_ULTRA"))
20191
21829
 
20192
21830
  @jsii.python.classproperty
@@ -20204,19 +21842,34 @@ class FoundationModelIdentifier(
20204
21842
  @jsii.python.classproperty
20205
21843
  @jsii.member(jsii_name="AI21_LABS_JURASSIC_2_MID_V1")
20206
21844
  def AI21_LABS_JURASSIC_2_MID_V1(cls) -> "FoundationModelIdentifier":
20207
- '''Base model "ai21.j2-mid-v1".'''
21845
+ '''(deprecated) Base model "ai21.j2-mid-v1".
21846
+
21847
+ :deprecated: use latest version of the model
21848
+
21849
+ :stability: deprecated
21850
+ '''
20208
21851
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_LABS_JURASSIC_2_MID_V1"))
20209
21852
 
20210
21853
  @jsii.python.classproperty
20211
21854
  @jsii.member(jsii_name="AI21_LABS_JURASSIC_2_ULTRA_V1")
20212
21855
  def AI21_LABS_JURASSIC_2_ULTRA_V1(cls) -> "FoundationModelIdentifier":
20213
- '''Base model "ai21.j2-ultra-v1".'''
21856
+ '''(deprecated) Base model "ai21.j2-ultra-v1".
21857
+
21858
+ :deprecated: use latest version of the model
21859
+
21860
+ :stability: deprecated
21861
+ '''
20214
21862
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_LABS_JURASSIC_2_ULTRA_V1"))
20215
21863
 
20216
21864
  @jsii.python.classproperty
20217
21865
  @jsii.member(jsii_name="AI21_LABS_JURASSIC_2_ULTRA_V1_0_8K")
20218
21866
  def AI21_LABS_JURASSIC_2_ULTRA_V1_0_8_K(cls) -> "FoundationModelIdentifier":
20219
- '''Base model "ai21.j2-ultra-v1:0:8k".'''
21867
+ '''(deprecated) Base model "ai21.j2-ultra-v1:0:8k".
21868
+
21869
+ :deprecated: use latest version of the model
21870
+
21871
+ :stability: deprecated
21872
+ '''
20220
21873
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_LABS_JURASSIC_2_ULTRA_V1_0_8K"))
20221
21874
 
20222
21875
  @jsii.python.classproperty
@@ -20387,12 +22040,60 @@ class FoundationModelIdentifier(
20387
22040
  '''Base model "anthropic.claude-3-5-sonnet-20240620-v1:0".'''
20388
22041
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0"))
20389
22042
 
22043
+ @jsii.python.classproperty
22044
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_18K")
22045
+ def ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_18_K(
22046
+ cls,
22047
+ ) -> "FoundationModelIdentifier":
22048
+ '''Base model "anthropic.claude-3-5-sonnet-20240620-v1:0:18k".'''
22049
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_18K"))
22050
+
22051
+ @jsii.python.classproperty
22052
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_200K")
22053
+ def ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_200_K(
22054
+ cls,
22055
+ ) -> "FoundationModelIdentifier":
22056
+ '''Base model "anthropic.claude-3-5-sonnet-20240620-v1:0:200k".'''
22057
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_200K"))
22058
+
22059
+ @jsii.python.classproperty
22060
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_51K")
22061
+ def ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_51_K(
22062
+ cls,
22063
+ ) -> "FoundationModelIdentifier":
22064
+ '''Base model "anthropic.claude-3-5-sonnet-20240620-v1:0:51k".'''
22065
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0_51K"))
22066
+
20390
22067
  @jsii.python.classproperty
20391
22068
  @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0")
20392
22069
  def ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0(cls) -> "FoundationModelIdentifier":
20393
22070
  '''Base model "anthropic.claude-3-5-sonnet-20241022-v2:0".'''
20394
22071
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0"))
20395
22072
 
22073
+ @jsii.python.classproperty
22074
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_18K")
22075
+ def ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_18_K(
22076
+ cls,
22077
+ ) -> "FoundationModelIdentifier":
22078
+ '''Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:18k".'''
22079
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_18K"))
22080
+
22081
+ @jsii.python.classproperty
22082
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_200K")
22083
+ def ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_200_K(
22084
+ cls,
22085
+ ) -> "FoundationModelIdentifier":
22086
+ '''Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:200k".'''
22087
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_200K"))
22088
+
22089
+ @jsii.python.classproperty
22090
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_51K")
22091
+ def ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_51_K(
22092
+ cls,
22093
+ ) -> "FoundationModelIdentifier":
22094
+ '''Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:51k".'''
22095
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_51K"))
22096
+
20396
22097
  @jsii.python.classproperty
20397
22098
  @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0")
20398
22099
  def ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0(cls) -> "FoundationModelIdentifier":
@@ -20419,6 +22120,24 @@ class FoundationModelIdentifier(
20419
22120
  '''Base model "anthropic.claude-3-opus-20240229-v1:0".'''
20420
22121
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0"))
20421
22122
 
22123
+ @jsii.python.classproperty
22124
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_12K")
22125
+ def ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_12_K(cls) -> "FoundationModelIdentifier":
22126
+ '''Base model "anthropic.claude-3-opus-20240229-v1:0:12k".'''
22127
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_12K"))
22128
+
22129
+ @jsii.python.classproperty
22130
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_200K")
22131
+ def ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_200_K(cls) -> "FoundationModelIdentifier":
22132
+ '''Base model "anthropic.claude-3-opus-20240229-v1:0:200k".'''
22133
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_200K"))
22134
+
22135
+ @jsii.python.classproperty
22136
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_28K")
22137
+ def ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_28_K(cls) -> "FoundationModelIdentifier":
22138
+ '''Base model "anthropic.claude-3-opus-20240229-v1:0:28k".'''
22139
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_28K"))
22140
+
20422
22141
  @jsii.python.classproperty
20423
22142
  @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_SONNET_20240229_V1_0")
20424
22143
  def ANTHROPIC_CLAUDE_3_SONNET_20240229_V1_0(cls) -> "FoundationModelIdentifier":
@@ -20569,49 +22288,89 @@ class FoundationModelIdentifier(
20569
22288
  @jsii.python.classproperty
20570
22289
  @jsii.member(jsii_name="META_LLAMA_2_13B_CHAT_V1_0_4K")
20571
22290
  def META_LLAMA_2_13_B_CHAT_V1_0_4_K(cls) -> "FoundationModelIdentifier":
20572
- '''Base model "meta.llama2-13b-chat-v1:0:4k".'''
22291
+ '''(deprecated) Base model "meta.llama2-13b-chat-v1:0:4k".
22292
+
22293
+ :deprecated: use latest version of the model
22294
+
22295
+ :stability: deprecated
22296
+ '''
20573
22297
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_13B_CHAT_V1_0_4K"))
20574
22298
 
20575
22299
  @jsii.python.classproperty
20576
22300
  @jsii.member(jsii_name="META_LLAMA_2_13B_V1")
20577
22301
  def META_LLAMA_2_13_B_V1(cls) -> "FoundationModelIdentifier":
20578
- '''Base model "meta.llama2-13b-v1".'''
22302
+ '''(deprecated) Base model "meta.llama2-13b-v1".
22303
+
22304
+ :deprecated: use latest version of the model
22305
+
22306
+ :stability: deprecated
22307
+ '''
20579
22308
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_13B_V1"))
20580
22309
 
20581
22310
  @jsii.python.classproperty
20582
22311
  @jsii.member(jsii_name="META_LLAMA_2_13B_V1_0_4K")
20583
22312
  def META_LLAMA_2_13_B_V1_0_4_K(cls) -> "FoundationModelIdentifier":
20584
- '''Base model "meta.llama2-13b-v1:0:4k".'''
22313
+ '''(deprecated) Base model "meta.llama2-13b-v1:0:4k".
22314
+
22315
+ :deprecated: use latest version of the model
22316
+
22317
+ :stability: deprecated
22318
+ '''
20585
22319
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_13B_V1_0_4K"))
20586
22320
 
20587
22321
  @jsii.python.classproperty
20588
22322
  @jsii.member(jsii_name="META_LLAMA_2_70B_CHAT_V1_0_4K")
20589
22323
  def META_LLAMA_2_70_B_CHAT_V1_0_4_K(cls) -> "FoundationModelIdentifier":
20590
- '''Base model "meta.llama2-70b-chat-v1:0:4k".'''
22324
+ '''(deprecated) Base model "meta.llama2-70b-chat-v1:0:4k".
22325
+
22326
+ :deprecated: use latest version of the model
22327
+
22328
+ :stability: deprecated
22329
+ '''
20591
22330
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_70B_CHAT_V1_0_4K"))
20592
22331
 
20593
22332
  @jsii.python.classproperty
20594
22333
  @jsii.member(jsii_name="META_LLAMA_2_70B_V1")
20595
22334
  def META_LLAMA_2_70_B_V1(cls) -> "FoundationModelIdentifier":
20596
- '''Base model "meta.llama2-70b-v1".'''
22335
+ '''(deprecated) Base model "meta.llama2-70b-v1".
22336
+
22337
+ :deprecated: use latest version of the model
22338
+
22339
+ :stability: deprecated
22340
+ '''
20597
22341
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_70B_V1"))
20598
22342
 
20599
22343
  @jsii.python.classproperty
20600
22344
  @jsii.member(jsii_name="META_LLAMA_2_70B_V1_0_4K")
20601
22345
  def META_LLAMA_2_70_B_V1_0_4_K(cls) -> "FoundationModelIdentifier":
20602
- '''Base model "meta.llama2-70b-v1:0:4k".'''
22346
+ '''(deprecated) Base model "meta.llama2-70b-v1:0:4k".
22347
+
22348
+ :deprecated: use latest version of the model
22349
+
22350
+ :stability: deprecated
22351
+ '''
20603
22352
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_70B_V1_0_4K"))
20604
22353
 
20605
22354
  @jsii.python.classproperty
20606
22355
  @jsii.member(jsii_name="META_LLAMA_2_CHAT_13B_V1")
20607
22356
  def META_LLAMA_2_CHAT_13_B_V1(cls) -> "FoundationModelIdentifier":
20608
- '''Base model "meta.llama2-13b-chat-v1".'''
22357
+ '''(deprecated) Base model "meta.llama2-13b-chat-v1".
22358
+
22359
+ :deprecated: use latest version of the model
22360
+
22361
+ :stability: deprecated
22362
+ '''
20609
22363
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_CHAT_13B_V1"))
20610
22364
 
20611
22365
  @jsii.python.classproperty
20612
22366
  @jsii.member(jsii_name="META_LLAMA_2_CHAT_70B_V1")
20613
22367
  def META_LLAMA_2_CHAT_70_B_V1(cls) -> "FoundationModelIdentifier":
20614
- '''Base model "meta.llama2-70b-chat-v1".'''
22368
+ '''(deprecated) Base model "meta.llama2-70b-chat-v1".
22369
+
22370
+ :deprecated: use latest version of the model
22371
+
22372
+ :stability: deprecated
22373
+ '''
20615
22374
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_2_CHAT_70B_V1"))
20616
22375
 
20617
22376
  @jsii.python.classproperty
@@ -20626,6 +22385,18 @@ class FoundationModelIdentifier(
20626
22385
  '''Base model "meta.llama3-1-70b-instruct-v1:0".'''
20627
22386
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_1_70_INSTRUCT_V1"))
20628
22387
 
22388
+ @jsii.python.classproperty
22389
+ @jsii.member(jsii_name="META_LLAMA_3_1_70_INSTRUCT_V1_128K")
22390
+ def META_LLAMA_3_1_70_INSTRUCT_V1_128_K(cls) -> "FoundationModelIdentifier":
22391
+ '''Base model "meta.llama3-1-70b-instruct-v1:0:128k".'''
22392
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_1_70_INSTRUCT_V1_128K"))
22393
+
22394
+ @jsii.python.classproperty
22395
+ @jsii.member(jsii_name="META_LLAMA_3_1_8B_INSTRUCT_V_128K")
22396
+ def META_LLAMA_3_1_8_B_INSTRUCT_V_128_K(cls) -> "FoundationModelIdentifier":
22397
+ '''Base model "meta.llama3-1-8b-instruct-v1:0:128".'''
22398
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_1_8B_INSTRUCT_V_128K"))
22399
+
20629
22400
  @jsii.python.classproperty
20630
22401
  @jsii.member(jsii_name="META_LLAMA_3_1_8B_INSTRUCT_V1")
20631
22402
  def META_LLAMA_3_1_8_B_INSTRUCT_V1(cls) -> "FoundationModelIdentifier":
@@ -20656,6 +22427,12 @@ class FoundationModelIdentifier(
20656
22427
  '''Base model "meta.llama3-2-90b-instruct-v1:0".'''
20657
22428
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_2_90B_INSTRUCT_V1"))
20658
22429
 
22430
+ @jsii.python.classproperty
22431
+ @jsii.member(jsii_name="META_LLAMA_3_3_70B_INSTRUCT_V1")
22432
+ def META_LLAMA_3_3_70_B_INSTRUCT_V1(cls) -> "FoundationModelIdentifier":
22433
+ '''Base model "meta.llama3-3-70b-instruct-v1:0".'''
22434
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "META_LLAMA_3_3_70B_INSTRUCT_V1"))
22435
+
20659
22436
  @jsii.python.classproperty
20660
22437
  @jsii.member(jsii_name="META_LLAMA_3_70_INSTRUCT_V1")
20661
22438
  def META_LLAMA_3_70_INSTRUCT_V1(cls) -> "FoundationModelIdentifier":
@@ -20698,6 +22475,12 @@ class FoundationModelIdentifier(
20698
22475
  '''Base model "mistral.mistral-small-2402-v1:0".'''
20699
22476
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "MISTRAL_SMALL_V0_1"))
20700
22477
 
22478
+ @jsii.python.classproperty
22479
+ @jsii.member(jsii_name="STABILITY_SD3_5_LARGE_V1_0")
22480
+ def STABILITY_SD3_5_LARGE_V1_0(cls) -> "FoundationModelIdentifier":
22481
+ '''Base model "stability.sd3-5-large-v1:0".'''
22482
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_SD3_5_LARGE_V1_0"))
22483
+
20701
22484
  @jsii.python.classproperty
20702
22485
  @jsii.member(jsii_name="STABILITY_SD3_LARGE_V1_0")
20703
22486
  def STABILITY_SD3_LARGE_V1_0(cls) -> "FoundationModelIdentifier":
@@ -20729,13 +22512,23 @@ class FoundationModelIdentifier(
20729
22512
  @jsii.python.classproperty
20730
22513
  @jsii.member(jsii_name="STABILITY_STABLE_DIFFUSION_XL_V1")
20731
22514
  def STABILITY_STABLE_DIFFUSION_XL_V1(cls) -> "FoundationModelIdentifier":
20732
- '''Base model "stability.stable-diffusion-xl-v1".'''
22515
+ '''(deprecated) Base model "stability.stable-diffusion-xl-v1".
22516
+
22517
+ :deprecated: use latest version of the model
22518
+
22519
+ :stability: deprecated
22520
+ '''
20733
22521
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_DIFFUSION_XL_V1"))
20734
22522
 
20735
22523
  @jsii.python.classproperty
20736
22524
  @jsii.member(jsii_name="STABILITY_STABLE_DIFFUSION_XL_V1_0")
20737
22525
  def STABILITY_STABLE_DIFFUSION_XL_V1_0(cls) -> "FoundationModelIdentifier":
20738
- '''Base model "stability.stable-diffusion-xl-v1:0".'''
22526
+ '''(deprecated) Base model "stability.stable-diffusion-xl-v1:0".
22527
+
22528
+ :deprecated: use latest version of the model
22529
+
22530
+ :stability: deprecated
22531
+ '''
20739
22532
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_DIFFUSION_XL_V1_0"))
20740
22533
 
20741
22534
  @jsii.python.classproperty
@@ -20744,12 +22537,24 @@ class FoundationModelIdentifier(
20744
22537
  '''Base model "stability.stable-image-core-v1:0".'''
20745
22538
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_CORE_V1_0"))
20746
22539
 
22540
+ @jsii.python.classproperty
22541
+ @jsii.member(jsii_name="STABILITY_STABLE_IMAGE_CORE_V1_1")
22542
+ def STABILITY_STABLE_IMAGE_CORE_V1_1(cls) -> "FoundationModelIdentifier":
22543
+ '''Base model "stability.stable-image-core-v1:1".'''
22544
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_CORE_V1_1"))
22545
+
20747
22546
  @jsii.python.classproperty
20748
22547
  @jsii.member(jsii_name="STABILITY_STABLE_IMAGE_ULTRA_V1_0")
20749
22548
  def STABILITY_STABLE_IMAGE_ULTRA_V1_0(cls) -> "FoundationModelIdentifier":
20750
22549
  '''Base model "stability.stable-image-ultra-v1:0".'''
20751
22550
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_ULTRA_V1_0"))
20752
22551
 
22552
+ @jsii.python.classproperty
22553
+ @jsii.member(jsii_name="STABILITY_STABLE_IMAGE_ULTRA_V1_1")
22554
+ def STABILITY_STABLE_IMAGE_ULTRA_V1_1(cls) -> "FoundationModelIdentifier":
22555
+ '''Base model "stability.stable-image-ultra-v1:1".'''
22556
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_ULTRA_V1_1"))
22557
+
20753
22558
  @builtins.property
20754
22559
  @jsii.member(jsii_name="modelId")
20755
22560
  def model_id(self) -> builtins.str:
@@ -21115,6 +22920,7 @@ def _typecheckingstub__19341a6c1d4ad6e6ceea8110fa1f82a06ec1a28df35e4ccc6cdb16f02
21115
22920
  name: builtins.str,
21116
22921
  description: typing.Optional[builtins.str] = None,
21117
22922
  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,
22923
+ require_confirmation: typing.Optional[builtins.str] = None,
21118
22924
  ) -> None:
21119
22925
  """Type checking stubs"""
21120
22926
  pass
@@ -21426,9 +23232,17 @@ def _typecheckingstub__033990e14b671fe96b02a12658cd4beadf8bae975b4e0c94984d3e419
21426
23232
  """Type checking stubs"""
21427
23233
  pass
21428
23234
 
23235
+ def _typecheckingstub__d1c9cf855ebecb64cb9a92684072efa631cc07e2bded88aa0e8cfa6319f97834(
23236
+ *,
23237
+ parsing_modality: typing.Optional[builtins.str] = None,
23238
+ ) -> None:
23239
+ """Type checking stubs"""
23240
+ pass
23241
+
21429
23242
  def _typecheckingstub__1988b824c4171f598d30cf03abdb56bc617fd654dd3daf3e641d11499c0e04ac(
21430
23243
  *,
21431
23244
  model_arn: builtins.str,
23245
+ parsing_modality: typing.Optional[builtins.str] = None,
21432
23246
  parsing_prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.ParsingPromptProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
21433
23247
  ) -> None:
21434
23248
  """Type checking stubs"""
@@ -21530,6 +23344,7 @@ def _typecheckingstub__5bdd915748b8cf592aa9f03cf95eac889f69f61263bafe87a0ba9aa14
21530
23344
  def _typecheckingstub__26a14ade018e836fe8686ec2de5e50a05435a92d8d540814f0759c1bb3893ef0(
21531
23345
  *,
21532
23346
  parsing_strategy: builtins.str,
23347
+ bedrock_data_automation_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.BedrockDataAutomationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
21533
23348
  bedrock_foundation_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataSource.BedrockFoundationModelConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
21534
23349
  ) -> None:
21535
23350
  """Type checking stubs"""
@@ -22739,8 +24554,8 @@ def _typecheckingstub__6ef81b8dcbedbd76b5a39a6fd5a967ba49aa887b63aad45e2bc246c96
22739
24554
  knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
22740
24555
  name: builtins.str,
22741
24556
  role_arn: builtins.str,
22742
- storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
22743
24557
  description: typing.Optional[builtins.str] = None,
24558
+ storage_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
22744
24559
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
22745
24560
  ) -> None:
22746
24561
  """Type checking stubs"""
@@ -22776,14 +24591,14 @@ def _typecheckingstub__e6281f2d1ed9a2f71b02754159fe6b2d8c70d3527e97d2d060434dc34
22776
24591
  """Type checking stubs"""
22777
24592
  pass
22778
24593
 
22779
- def _typecheckingstub__9c3409dc5fcb9799e2f638dda4e66d2391cf6984b3e10eb29b36e85981cfc59b(
22780
- value: typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty],
24594
+ def _typecheckingstub__f9fef7f262d2bad58c7f37c90b8756dd028b772a93aa036a4caf0c9565a7fff1(
24595
+ value: typing.Optional[builtins.str],
22781
24596
  ) -> None:
22782
24597
  """Type checking stubs"""
22783
24598
  pass
22784
24599
 
22785
- def _typecheckingstub__f9fef7f262d2bad58c7f37c90b8756dd028b772a93aa036a4caf0c9565a7fff1(
22786
- value: typing.Optional[builtins.str],
24600
+ def _typecheckingstub__9c3409dc5fcb9799e2f638dda4e66d2391cf6984b3e10eb29b36e85981cfc59b(
24601
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnKnowledgeBase.StorageConfigurationProperty]],
22787
24602
  ) -> None:
22788
24603
  """Type checking stubs"""
22789
24604
  pass
@@ -22808,10 +24623,18 @@ def _typecheckingstub__a2105581ffba179dfd90baf9c36dfefb76ca74a5c6cfca17d6c87aec8
22808
24623
  """Type checking stubs"""
22809
24624
  pass
22810
24625
 
24626
+ def _typecheckingstub__f49108183c657ffec5628bb187155a62b4da5dfc81f77718084a35d0e1296bfd(
24627
+ *,
24628
+ kendra_index_arn: builtins.str,
24629
+ ) -> None:
24630
+ """Type checking stubs"""
24631
+ pass
24632
+
22811
24633
  def _typecheckingstub__f2ca26f28cc4cf3a289e62f58643faf6a7d98ea3e55e7ff4f0f77530fa0294b4(
22812
24634
  *,
22813
24635
  type: builtins.str,
22814
- vector_knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
24636
+ kendra_knowledge_base_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KendraKnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
24637
+ vector_knowledge_base_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
22815
24638
  ) -> None:
22816
24639
  """Type checking stubs"""
22817
24640
  pass
@@ -22873,6 +24696,13 @@ def _typecheckingstub__0060deafed28d2f4c1690bf8921de0b9aca79fe88ac4c5ca53f29b4ef
22873
24696
  """Type checking stubs"""
22874
24697
  pass
22875
24698
 
24699
+ def _typecheckingstub__2d65bf934dc283aa920ce8366929ceeb84863f6a3de2b775a4f2d2ee019979bc(
24700
+ *,
24701
+ uri: builtins.str,
24702
+ ) -> None:
24703
+ """Type checking stubs"""
24704
+ pass
24705
+
22876
24706
  def _typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c32272af4(
22877
24707
  *,
22878
24708
  type: builtins.str,
@@ -22883,10 +24713,26 @@ def _typecheckingstub__fa4cccae88d65689f5f3cabcb8393a082af16eb90d7613332a03867c3
22883
24713
  """Type checking stubs"""
22884
24714
  pass
22885
24715
 
24716
+ def _typecheckingstub__23aedf500d0c089aa233b40ff3fc0bdc7842b000954e996faef806cf0f44c930(
24717
+ *,
24718
+ supplemental_data_storage_locations: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.SupplementalDataStorageLocationProperty, typing.Dict[builtins.str, typing.Any]]]]],
24719
+ ) -> None:
24720
+ """Type checking stubs"""
24721
+ pass
24722
+
24723
+ def _typecheckingstub__754c3d05d3167c3b2203485932c3bc498a24c9d4555c672a7d5069d4d86f73d6(
24724
+ *,
24725
+ supplemental_data_storage_location_type: builtins.str,
24726
+ s3_location: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.S3LocationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
24727
+ ) -> None:
24728
+ """Type checking stubs"""
24729
+ pass
24730
+
22886
24731
  def _typecheckingstub__53b08e209954b21c35b746e5eee517d51370af30630f5f17b3e5435150898236(
22887
24732
  *,
22888
24733
  embedding_model_arn: builtins.str,
22889
24734
  embedding_model_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.EmbeddingModelConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
24735
+ supplemental_data_storage_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
22890
24736
  ) -> None:
22891
24737
  """Type checking stubs"""
22892
24738
  pass
@@ -22896,8 +24742,8 @@ def _typecheckingstub__a5f6560ff734e79a877ac4cd934408cd79b9c6a6c1dac195972f27ac4
22896
24742
  knowledge_base_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.KnowledgeBaseConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
22897
24743
  name: builtins.str,
22898
24744
  role_arn: builtins.str,
22899
- storage_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
22900
24745
  description: typing.Optional[builtins.str] = None,
24746
+ storage_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnKnowledgeBase.StorageConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
22901
24747
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
22902
24748
  ) -> None:
22903
24749
  """Type checking stubs"""
@@ -22965,6 +24811,45 @@ def _typecheckingstub__b92123c0073f901a0741c026473098ec639beea3bd80ea47a9b53798e
22965
24811
  """Type checking stubs"""
22966
24812
  pass
22967
24813
 
24814
+ def _typecheckingstub__9c6a58ca5edb4fe7249a2b37babee7b708f1fc92b3adcd4af4c3afa45077ee55(
24815
+ *,
24816
+ messages: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.MessageProperty, typing.Dict[builtins.str, typing.Any]]]]],
24817
+ 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,
24818
+ system: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.SystemContentBlockProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
24819
+ tool_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
24820
+ ) -> None:
24821
+ """Type checking stubs"""
24822
+ pass
24823
+
24824
+ def _typecheckingstub__2d0cf0f0136b9d804a0809956c82c64b1f75a73d35d6c0fa6f1007666d629ec6(
24825
+ *,
24826
+ text: builtins.str,
24827
+ ) -> None:
24828
+ """Type checking stubs"""
24829
+ pass
24830
+
24831
+ def _typecheckingstub__42b42b22130352586f0ff208cc8c3ce6b3705d340f12b03331553326e9b7585b(
24832
+ *,
24833
+ content: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ContentBlockProperty, typing.Dict[builtins.str, typing.Any]]]]],
24834
+ role: builtins.str,
24835
+ ) -> None:
24836
+ """Type checking stubs"""
24837
+ pass
24838
+
24839
+ def _typecheckingstub__d28921d18df971112b15d156471e2c5279000c3080bd4f0620f849341fd6a896(
24840
+ *,
24841
+ agent_identifier: builtins.str,
24842
+ ) -> None:
24843
+ """Type checking stubs"""
24844
+ pass
24845
+
24846
+ def _typecheckingstub__64cff76991e320523c3338e0c04d15db173e4f0d91de163069f07878d8c88123(
24847
+ *,
24848
+ agent: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptAgentResourceProperty, typing.Dict[builtins.str, typing.Any]]],
24849
+ ) -> None:
24850
+ """Type checking stubs"""
24851
+ pass
24852
+
22968
24853
  def _typecheckingstub__bd64a2009dff1bac3dd98571ac9a9cd65cbb030a3896121e0b1c8f24dfe6c74d(
22969
24854
  *,
22970
24855
  text: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptModelInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
@@ -22991,7 +24876,8 @@ def _typecheckingstub__d348efba187570a443093419bc85fbc24f754a9496fbfc85e29bb7e40
22991
24876
 
22992
24877
  def _typecheckingstub__fde740ede958bf60edc6a98392bd083868fd4fd5f6ba5698705fc5e13de4d2bc(
22993
24878
  *,
22994
- text: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.TextPromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
24879
+ chat: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ChatPromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
24880
+ text: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.TextPromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
22995
24881
  ) -> None:
22996
24882
  """Type checking stubs"""
22997
24883
  pass
@@ -23001,12 +24887,27 @@ def _typecheckingstub__84ac4a525676aedbb60bd913121b2941e7f39f8599421758678b789b5
23001
24887
  name: builtins.str,
23002
24888
  template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
23003
24889
  template_type: builtins.str,
24890
+ gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptGenAiResourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
23004
24891
  inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
23005
24892
  model_id: typing.Optional[builtins.str] = None,
23006
24893
  ) -> None:
23007
24894
  """Type checking stubs"""
23008
24895
  pass
23009
24896
 
24897
+ def _typecheckingstub__da5ae43b082eab1803451ea8230aaac824b9e7e5692a382e90523019503e98d8(
24898
+ *,
24899
+ name: builtins.str,
24900
+ ) -> None:
24901
+ """Type checking stubs"""
24902
+ pass
24903
+
24904
+ def _typecheckingstub__8684cdb8cfe450b629e96665dd0dbfcf0c5a9af74b282632d6f3c9b2aa9f3ba1(
24905
+ *,
24906
+ text: builtins.str,
24907
+ ) -> None:
24908
+ """Type checking stubs"""
24909
+ pass
24910
+
23010
24911
  def _typecheckingstub__01b3fa0f925290ea253625fab81f78f897a7a15beed843aec623b58c22593c4c(
23011
24912
  *,
23012
24913
  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 +24926,46 @@ def _typecheckingstub__d1287781cb0d3129610c849bcac59920b6cd9c4ee3463830e5e8a9c13
23025
24926
  """Type checking stubs"""
23026
24927
  pass
23027
24928
 
24929
+ def _typecheckingstub__ad9877c38015f6113fa32d864cca77d0c46ace16b3e5266c514440f59ad5d586(
24930
+ *,
24931
+ any: typing.Any = None,
24932
+ auto: typing.Any = None,
24933
+ tool: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.SpecificToolChoiceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
24934
+ ) -> None:
24935
+ """Type checking stubs"""
24936
+ pass
24937
+
24938
+ def _typecheckingstub__58bef5956bcdc66861dfc71e6b8d5195db50ef860d563950a8cad8402be28a72(
24939
+ *,
24940
+ tools: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolProperty, typing.Dict[builtins.str, typing.Any]]]]],
24941
+ tool_choice: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolChoiceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
24942
+ ) -> None:
24943
+ """Type checking stubs"""
24944
+ pass
24945
+
24946
+ def _typecheckingstub__53e39100fca2ebe3fae8a9a713a4d2e8e663f416119f9157301a00b1d678de97(
24947
+ *,
24948
+ json: typing.Any,
24949
+ ) -> None:
24950
+ """Type checking stubs"""
24951
+ pass
24952
+
24953
+ def _typecheckingstub__e0724eccb0497cbb88041bf7ba797dcfaceb20385a8cb461c8adc1b539c869e2(
24954
+ *,
24955
+ tool_spec: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolSpecificationProperty, typing.Dict[builtins.str, typing.Any]]],
24956
+ ) -> None:
24957
+ """Type checking stubs"""
24958
+ pass
24959
+
24960
+ def _typecheckingstub__431488796f561e2bc20a8aab4af239c209e0fc67b16251fa2476c7a19e2add9d(
24961
+ *,
24962
+ input_schema: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.ToolInputSchemaProperty, typing.Dict[builtins.str, typing.Any]]],
24963
+ name: builtins.str,
24964
+ description: typing.Optional[builtins.str] = None,
24965
+ ) -> None:
24966
+ """Type checking stubs"""
24967
+ pass
24968
+
23028
24969
  def _typecheckingstub__ae555e4fe530af3f71499cdb465b902eb20b6de3d58aa48f4003015a29807bf9(
23029
24970
  *,
23030
24971
  name: builtins.str,