aws-cdk-lib 2.165.0__py3-none-any.whl → 2.167.0__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (60) hide show
  1. aws_cdk/__init__.py +1 -1
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.165.0.jsii.tgz → aws-cdk-lib@2.167.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigateway/__init__.py +9 -0
  5. aws_cdk/aws_appsync/__init__.py +2271 -359
  6. aws_cdk/aws_backup/__init__.py +57 -31
  7. aws_cdk/aws_bedrock/__init__.py +994 -197
  8. aws_cdk/aws_cleanrooms/__init__.py +66 -5
  9. aws_cdk/aws_cloudfront/__init__.py +21 -3
  10. aws_cdk/aws_cloudfront/experimental/__init__.py +3 -3
  11. aws_cdk/aws_codebuild/__init__.py +59 -29
  12. aws_cdk/aws_codepipeline/__init__.py +98 -5
  13. aws_cdk/aws_codestar/__init__.py +1 -1
  14. aws_cdk/aws_cognito/__init__.py +0 -8
  15. aws_cdk/aws_connect/__init__.py +1 -1
  16. aws_cdk/aws_datasync/__init__.py +60 -7
  17. aws_cdk/aws_devopsguru/__init__.py +2 -2
  18. aws_cdk/aws_dms/__init__.py +762 -0
  19. aws_cdk/aws_dynamodb/__init__.py +13 -8
  20. aws_cdk/aws_ec2/__init__.py +316 -11
  21. aws_cdk/aws_ecs/__init__.py +20 -7
  22. aws_cdk/aws_elasticache/__init__.py +16 -9
  23. aws_cdk/aws_elasticloadbalancingv2/__init__.py +73 -46
  24. aws_cdk/aws_emrserverless/__init__.py +35 -33
  25. aws_cdk/aws_events/__init__.py +25 -30
  26. aws_cdk/aws_gamelift/__init__.py +52 -40
  27. aws_cdk/aws_inspectorv2/__init__.py +6 -12
  28. aws_cdk/aws_kinesis/__init__.py +297 -1
  29. aws_cdk/aws_kms/__init__.py +2 -0
  30. aws_cdk/aws_lambda/__init__.py +339 -22
  31. aws_cdk/aws_lambda_nodejs/__init__.py +3 -3
  32. aws_cdk/aws_logs/__init__.py +214 -0
  33. aws_cdk/aws_m2/__init__.py +58 -58
  34. aws_cdk/aws_mediapackagev2/__init__.py +191 -0
  35. aws_cdk/aws_networkfirewall/__init__.py +14 -5
  36. aws_cdk/aws_nimblestudio/__init__.py +6 -103
  37. aws_cdk/aws_opensearchservice/__init__.py +969 -0
  38. aws_cdk/aws_pipes/__init__.py +1 -1
  39. aws_cdk/aws_qbusiness/__init__.py +2 -0
  40. aws_cdk/aws_quicksight/__init__.py +481 -10
  41. aws_cdk/aws_rds/__init__.py +667 -16
  42. aws_cdk/aws_route53/__init__.py +38 -12
  43. aws_cdk/aws_s3_assets/__init__.py +37 -0
  44. aws_cdk/aws_s3_deployment/__init__.py +18 -7
  45. aws_cdk/aws_sagemaker/__init__.py +61 -25
  46. aws_cdk/aws_secretsmanager/__init__.py +2 -1
  47. aws_cdk/aws_servicecatalog/__init__.py +52 -4
  48. aws_cdk/aws_ses/__init__.py +22 -1
  49. aws_cdk/aws_sqs/__init__.py +12 -9
  50. aws_cdk/aws_stepfunctions/__init__.py +8 -0
  51. aws_cdk/aws_synthetics/__init__.py +133 -1
  52. aws_cdk/aws_timestream/__init__.py +41 -0
  53. aws_cdk/aws_wisdom/__init__.py +2348 -54
  54. aws_cdk/triggers/__init__.py +3 -3
  55. {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/METADATA +1 -1
  56. {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/RECORD +60 -60
  57. {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/WHEEL +1 -1
  58. {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/LICENSE +0 -0
  59. {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/NOTICE +0 -0
  60. {aws_cdk_lib-2.165.0.dist-info → aws_cdk_lib-2.167.0.dist-info}/top_level.txt +0 -0
@@ -2834,6 +2834,469 @@ class CfnAgentProps:
2834
2834
  )
2835
2835
 
2836
2836
 
2837
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
2838
+ class CfnApplicationInferenceProfile(
2839
+ _CfnResource_9df397a6,
2840
+ metaclass=jsii.JSIIMeta,
2841
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnApplicationInferenceProfile",
2842
+ ):
2843
+ '''Specifies an inference profile as a resource in a top-level template.
2844
+
2845
+ Use the ``ModelSource`` field to specify the inference profile to copy into the resource. For more information about using inference profiles in Amazon Bedrock , see `Improve resilience with cross-region inference <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ .
2846
+
2847
+ See the *Properties* section below for descriptions of both the required and optional properties.
2848
+
2849
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html
2850
+ :cloudformationResource: AWS::Bedrock::ApplicationInferenceProfile
2851
+ :exampleMetadata: fixture=_generated
2852
+
2853
+ Example::
2854
+
2855
+ # The code below shows an example of how to instantiate this type.
2856
+ # The values are placeholders you should change.
2857
+ from aws_cdk import aws_bedrock as bedrock
2858
+
2859
+ cfn_application_inference_profile = bedrock.CfnApplicationInferenceProfile(self, "MyCfnApplicationInferenceProfile",
2860
+ inference_profile_name="inferenceProfileName",
2861
+
2862
+ # the properties below are optional
2863
+ description="description",
2864
+ model_source=bedrock.CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty(
2865
+ copy_from="copyFrom"
2866
+ ),
2867
+ tags=[CfnTag(
2868
+ key="key",
2869
+ value="value"
2870
+ )]
2871
+ )
2872
+ '''
2873
+
2874
+ def __init__(
2875
+ self,
2876
+ scope: _constructs_77d1e7e8.Construct,
2877
+ id: builtins.str,
2878
+ *,
2879
+ inference_profile_name: builtins.str,
2880
+ description: typing.Optional[builtins.str] = None,
2881
+ model_source: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
2882
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
2883
+ ) -> None:
2884
+ '''
2885
+ :param scope: Scope in which this resource is defined.
2886
+ :param id: Construct identifier for this resource (unique in its scope).
2887
+ :param inference_profile_name: The name of the inference profile.
2888
+ :param description: The description of the inference profile.
2889
+ :param model_source: Contains configurations for the inference profile to copy as the resource.
2890
+ :param tags: A list of tags associated with the inference profile.
2891
+ '''
2892
+ if __debug__:
2893
+ type_hints = typing.get_type_hints(_typecheckingstub__a2222de49518232a3824d971182922daf44d6255370c3805992fca295b2904ad)
2894
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
2895
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
2896
+ props = CfnApplicationInferenceProfileProps(
2897
+ inference_profile_name=inference_profile_name,
2898
+ description=description,
2899
+ model_source=model_source,
2900
+ tags=tags,
2901
+ )
2902
+
2903
+ jsii.create(self.__class__, self, [scope, id, props])
2904
+
2905
+ @jsii.member(jsii_name="inspect")
2906
+ def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
2907
+ '''Examines the CloudFormation resource and discloses attributes.
2908
+
2909
+ :param inspector: tree inspector to collect and process attributes.
2910
+ '''
2911
+ if __debug__:
2912
+ type_hints = typing.get_type_hints(_typecheckingstub__4d2e339334daf20f2a812f78dadefad7c0714dbaaafdfe61e138ba0cfb3f07e2)
2913
+ check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
2914
+ return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
2915
+
2916
+ @jsii.member(jsii_name="renderProperties")
2917
+ def _render_properties(
2918
+ self,
2919
+ props: typing.Mapping[builtins.str, typing.Any],
2920
+ ) -> typing.Mapping[builtins.str, typing.Any]:
2921
+ '''
2922
+ :param props: -
2923
+ '''
2924
+ if __debug__:
2925
+ type_hints = typing.get_type_hints(_typecheckingstub__d0b7fff48c27eff9823a04431a3cb684b46b8434a66cf5f1941f73cf8eba5762)
2926
+ check_type(argname="argument props", value=props, expected_type=type_hints["props"])
2927
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
2928
+
2929
+ @jsii.python.classproperty
2930
+ @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
2931
+ def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
2932
+ '''The CloudFormation resource type name for this resource class.'''
2933
+ return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
2934
+
2935
+ @builtins.property
2936
+ @jsii.member(jsii_name="attrCreatedAt")
2937
+ def attr_created_at(self) -> builtins.str:
2938
+ '''The time at which the inference profile was created.
2939
+
2940
+ :cloudformationAttribute: CreatedAt
2941
+ '''
2942
+ return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
2943
+
2944
+ @builtins.property
2945
+ @jsii.member(jsii_name="attrInferenceProfileArn")
2946
+ def attr_inference_profile_arn(self) -> builtins.str:
2947
+ '''The Amazon Resource Name (ARN) of the inference profile.
2948
+
2949
+ :cloudformationAttribute: InferenceProfileArn
2950
+ '''
2951
+ return typing.cast(builtins.str, jsii.get(self, "attrInferenceProfileArn"))
2952
+
2953
+ @builtins.property
2954
+ @jsii.member(jsii_name="attrInferenceProfileId")
2955
+ def attr_inference_profile_id(self) -> builtins.str:
2956
+ '''The unique identifier of the inference profile.
2957
+
2958
+ :cloudformationAttribute: InferenceProfileId
2959
+ '''
2960
+ return typing.cast(builtins.str, jsii.get(self, "attrInferenceProfileId"))
2961
+
2962
+ @builtins.property
2963
+ @jsii.member(jsii_name="attrInferenceProfileIdentifier")
2964
+ def attr_inference_profile_identifier(self) -> builtins.str:
2965
+ '''The ID or Amazon Resource Name (ARN) of the inference profile.
2966
+
2967
+ :cloudformationAttribute: InferenceProfileIdentifier
2968
+ '''
2969
+ return typing.cast(builtins.str, jsii.get(self, "attrInferenceProfileIdentifier"))
2970
+
2971
+ @builtins.property
2972
+ @jsii.member(jsii_name="attrModels")
2973
+ def attr_models(self) -> _IResolvable_da3f097b:
2974
+ '''A list of information about each model in the inference profile.
2975
+
2976
+ :cloudformationAttribute: Models
2977
+ '''
2978
+ return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrModels"))
2979
+
2980
+ @builtins.property
2981
+ @jsii.member(jsii_name="attrStatus")
2982
+ def attr_status(self) -> builtins.str:
2983
+ '''The status of the inference profile.
2984
+
2985
+ ``ACTIVE`` means that the inference profile is ready to be used.
2986
+
2987
+ :cloudformationAttribute: Status
2988
+ '''
2989
+ return typing.cast(builtins.str, jsii.get(self, "attrStatus"))
2990
+
2991
+ @builtins.property
2992
+ @jsii.member(jsii_name="attrType")
2993
+ def attr_type(self) -> builtins.str:
2994
+ '''The type of the inference profile. The following types are possible:.
2995
+
2996
+ - ``SYSTEM_DEFINED`` – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.
2997
+ - ``APPLICATION`` – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
2998
+
2999
+ :cloudformationAttribute: Type
3000
+ '''
3001
+ return typing.cast(builtins.str, jsii.get(self, "attrType"))
3002
+
3003
+ @builtins.property
3004
+ @jsii.member(jsii_name="attrUpdatedAt")
3005
+ def attr_updated_at(self) -> builtins.str:
3006
+ '''The time at which the inference profile was last updated.
3007
+
3008
+ :cloudformationAttribute: UpdatedAt
3009
+ '''
3010
+ return typing.cast(builtins.str, jsii.get(self, "attrUpdatedAt"))
3011
+
3012
+ @builtins.property
3013
+ @jsii.member(jsii_name="cdkTagManager")
3014
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
3015
+ '''Tag Manager which manages the tags for this resource.'''
3016
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
3017
+
3018
+ @builtins.property
3019
+ @jsii.member(jsii_name="cfnProperties")
3020
+ def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
3021
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
3022
+
3023
+ @builtins.property
3024
+ @jsii.member(jsii_name="inferenceProfileName")
3025
+ def inference_profile_name(self) -> builtins.str:
3026
+ '''The name of the inference profile.'''
3027
+ return typing.cast(builtins.str, jsii.get(self, "inferenceProfileName"))
3028
+
3029
+ @inference_profile_name.setter
3030
+ def inference_profile_name(self, value: builtins.str) -> None:
3031
+ if __debug__:
3032
+ type_hints = typing.get_type_hints(_typecheckingstub__6aae972c3170b196c6e4fa5bf8d0dd4b8b0b49a1c0f56c506e744e0442f85c7c)
3033
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
3034
+ jsii.set(self, "inferenceProfileName", value) # pyright: ignore[reportArgumentType]
3035
+
3036
+ @builtins.property
3037
+ @jsii.member(jsii_name="description")
3038
+ def description(self) -> typing.Optional[builtins.str]:
3039
+ '''The description of the inference profile.'''
3040
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
3041
+
3042
+ @description.setter
3043
+ def description(self, value: typing.Optional[builtins.str]) -> None:
3044
+ if __debug__:
3045
+ type_hints = typing.get_type_hints(_typecheckingstub__2c6572f5531b0a792b64f808b10a21a42b92c9f7be81c2527cca65319dc19869)
3046
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
3047
+ jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
3048
+
3049
+ @builtins.property
3050
+ @jsii.member(jsii_name="modelSource")
3051
+ def model_source(
3052
+ self,
3053
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty"]]:
3054
+ '''Contains configurations for the inference profile to copy as the resource.'''
3055
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty"]], jsii.get(self, "modelSource"))
3056
+
3057
+ @model_source.setter
3058
+ def model_source(
3059
+ self,
3060
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty"]],
3061
+ ) -> None:
3062
+ if __debug__:
3063
+ type_hints = typing.get_type_hints(_typecheckingstub__2237f6f7b3816378634fc620ae2448fa846fa47396f09bc7c0b5e8a0902d65ae)
3064
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
3065
+ jsii.set(self, "modelSource", value) # pyright: ignore[reportArgumentType]
3066
+
3067
+ @builtins.property
3068
+ @jsii.member(jsii_name="tags")
3069
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
3070
+ '''A list of tags associated with the inference profile.'''
3071
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
3072
+
3073
+ @tags.setter
3074
+ def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
3075
+ if __debug__:
3076
+ type_hints = typing.get_type_hints(_typecheckingstub__e13f50624dfcb2d9c61a18114e7992a8def4ddd2f6f340c352ac98a5668d7eea)
3077
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
3078
+ jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
3079
+
3080
+ @jsii.data_type(
3081
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnApplicationInferenceProfile.InferenceProfileModelProperty",
3082
+ jsii_struct_bases=[],
3083
+ name_mapping={"model_arn": "modelArn"},
3084
+ )
3085
+ class InferenceProfileModelProperty:
3086
+ def __init__(self, *, model_arn: typing.Optional[builtins.str] = None) -> None:
3087
+ '''Contains information about a model.
3088
+
3089
+ :param model_arn: The Amazon Resource Name (ARN) of the model.
3090
+
3091
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-applicationinferenceprofile-inferenceprofilemodel.html
3092
+ :exampleMetadata: fixture=_generated
3093
+
3094
+ Example::
3095
+
3096
+ # The code below shows an example of how to instantiate this type.
3097
+ # The values are placeholders you should change.
3098
+ from aws_cdk import aws_bedrock as bedrock
3099
+
3100
+ inference_profile_model_property = bedrock.CfnApplicationInferenceProfile.InferenceProfileModelProperty(
3101
+ model_arn="modelArn"
3102
+ )
3103
+ '''
3104
+ if __debug__:
3105
+ type_hints = typing.get_type_hints(_typecheckingstub__ef9de36422391b892f90691f22e956a086a03a2e131a35b0986b5b63d905255f)
3106
+ check_type(argname="argument model_arn", value=model_arn, expected_type=type_hints["model_arn"])
3107
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
3108
+ if model_arn is not None:
3109
+ self._values["model_arn"] = model_arn
3110
+
3111
+ @builtins.property
3112
+ def model_arn(self) -> typing.Optional[builtins.str]:
3113
+ '''The Amazon Resource Name (ARN) of the model.
3114
+
3115
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-applicationinferenceprofile-inferenceprofilemodel.html#cfn-bedrock-applicationinferenceprofile-inferenceprofilemodel-modelarn
3116
+ '''
3117
+ result = self._values.get("model_arn")
3118
+ return typing.cast(typing.Optional[builtins.str], result)
3119
+
3120
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
3121
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
3122
+
3123
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
3124
+ return not (rhs == self)
3125
+
3126
+ def __repr__(self) -> str:
3127
+ return "InferenceProfileModelProperty(%s)" % ", ".join(
3128
+ k + "=" + repr(v) for k, v in self._values.items()
3129
+ )
3130
+
3131
+ @jsii.data_type(
3132
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty",
3133
+ jsii_struct_bases=[],
3134
+ name_mapping={"copy_from": "copyFrom"},
3135
+ )
3136
+ class InferenceProfileModelSourceProperty:
3137
+ def __init__(self, *, copy_from: builtins.str) -> None:
3138
+ '''Contains information about the model or system-defined inference profile that is the source for an inference profile..
3139
+
3140
+ :param copy_from: The ARN of the model or system-defined inference profile that is the source for the inference profile.
3141
+
3142
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-applicationinferenceprofile-inferenceprofilemodelsource.html
3143
+ :exampleMetadata: fixture=_generated
3144
+
3145
+ Example::
3146
+
3147
+ # The code below shows an example of how to instantiate this type.
3148
+ # The values are placeholders you should change.
3149
+ from aws_cdk import aws_bedrock as bedrock
3150
+
3151
+ inference_profile_model_source_property = bedrock.CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty(
3152
+ copy_from="copyFrom"
3153
+ )
3154
+ '''
3155
+ if __debug__:
3156
+ type_hints = typing.get_type_hints(_typecheckingstub__4170b8c8243e2096b7c99037eb0c8874b28fe6d08432e8c6fd045defb2d99d81)
3157
+ check_type(argname="argument copy_from", value=copy_from, expected_type=type_hints["copy_from"])
3158
+ self._values: typing.Dict[builtins.str, typing.Any] = {
3159
+ "copy_from": copy_from,
3160
+ }
3161
+
3162
+ @builtins.property
3163
+ def copy_from(self) -> builtins.str:
3164
+ '''The ARN of the model or system-defined inference profile that is the source for the inference profile.
3165
+
3166
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-applicationinferenceprofile-inferenceprofilemodelsource.html#cfn-bedrock-applicationinferenceprofile-inferenceprofilemodelsource-copyfrom
3167
+ '''
3168
+ result = self._values.get("copy_from")
3169
+ assert result is not None, "Required property 'copy_from' is missing"
3170
+ return typing.cast(builtins.str, result)
3171
+
3172
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
3173
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
3174
+
3175
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
3176
+ return not (rhs == self)
3177
+
3178
+ def __repr__(self) -> str:
3179
+ return "InferenceProfileModelSourceProperty(%s)" % ", ".join(
3180
+ k + "=" + repr(v) for k, v in self._values.items()
3181
+ )
3182
+
3183
+
3184
+ @jsii.data_type(
3185
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnApplicationInferenceProfileProps",
3186
+ jsii_struct_bases=[],
3187
+ name_mapping={
3188
+ "inference_profile_name": "inferenceProfileName",
3189
+ "description": "description",
3190
+ "model_source": "modelSource",
3191
+ "tags": "tags",
3192
+ },
3193
+ )
3194
+ class CfnApplicationInferenceProfileProps:
3195
+ def __init__(
3196
+ self,
3197
+ *,
3198
+ inference_profile_name: builtins.str,
3199
+ description: typing.Optional[builtins.str] = None,
3200
+ model_source: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3201
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
3202
+ ) -> None:
3203
+ '''Properties for defining a ``CfnApplicationInferenceProfile``.
3204
+
3205
+ :param inference_profile_name: The name of the inference profile.
3206
+ :param description: The description of the inference profile.
3207
+ :param model_source: Contains configurations for the inference profile to copy as the resource.
3208
+ :param tags: A list of tags associated with the inference profile.
3209
+
3210
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html
3211
+ :exampleMetadata: fixture=_generated
3212
+
3213
+ Example::
3214
+
3215
+ # The code below shows an example of how to instantiate this type.
3216
+ # The values are placeholders you should change.
3217
+ from aws_cdk import aws_bedrock as bedrock
3218
+
3219
+ cfn_application_inference_profile_props = bedrock.CfnApplicationInferenceProfileProps(
3220
+ inference_profile_name="inferenceProfileName",
3221
+
3222
+ # the properties below are optional
3223
+ description="description",
3224
+ model_source=bedrock.CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty(
3225
+ copy_from="copyFrom"
3226
+ ),
3227
+ tags=[CfnTag(
3228
+ key="key",
3229
+ value="value"
3230
+ )]
3231
+ )
3232
+ '''
3233
+ if __debug__:
3234
+ type_hints = typing.get_type_hints(_typecheckingstub__396027668dce29a45dd42acb9bb8358fa9135a15e45d6925e8a78acced3bd78d)
3235
+ check_type(argname="argument inference_profile_name", value=inference_profile_name, expected_type=type_hints["inference_profile_name"])
3236
+ check_type(argname="argument description", value=description, expected_type=type_hints["description"])
3237
+ check_type(argname="argument model_source", value=model_source, expected_type=type_hints["model_source"])
3238
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
3239
+ self._values: typing.Dict[builtins.str, typing.Any] = {
3240
+ "inference_profile_name": inference_profile_name,
3241
+ }
3242
+ if description is not None:
3243
+ self._values["description"] = description
3244
+ if model_source is not None:
3245
+ self._values["model_source"] = model_source
3246
+ if tags is not None:
3247
+ self._values["tags"] = tags
3248
+
3249
+ @builtins.property
3250
+ def inference_profile_name(self) -> builtins.str:
3251
+ '''The name of the inference profile.
3252
+
3253
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html#cfn-bedrock-applicationinferenceprofile-inferenceprofilename
3254
+ '''
3255
+ result = self._values.get("inference_profile_name")
3256
+ assert result is not None, "Required property 'inference_profile_name' is missing"
3257
+ return typing.cast(builtins.str, result)
3258
+
3259
+ @builtins.property
3260
+ def description(self) -> typing.Optional[builtins.str]:
3261
+ '''The description of the inference profile.
3262
+
3263
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html#cfn-bedrock-applicationinferenceprofile-description
3264
+ '''
3265
+ result = self._values.get("description")
3266
+ return typing.cast(typing.Optional[builtins.str], result)
3267
+
3268
+ @builtins.property
3269
+ def model_source(
3270
+ self,
3271
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty]]:
3272
+ '''Contains configurations for the inference profile to copy as the resource.
3273
+
3274
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html#cfn-bedrock-applicationinferenceprofile-modelsource
3275
+ '''
3276
+ result = self._values.get("model_source")
3277
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty]], result)
3278
+
3279
+ @builtins.property
3280
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
3281
+ '''A list of tags associated with the inference profile.
3282
+
3283
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-applicationinferenceprofile.html#cfn-bedrock-applicationinferenceprofile-tags
3284
+ '''
3285
+ result = self._values.get("tags")
3286
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
3287
+
3288
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
3289
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
3290
+
3291
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
3292
+ return not (rhs == self)
3293
+
3294
+ def __repr__(self) -> str:
3295
+ return "CfnApplicationInferenceProfileProps(%s)" % ", ".join(
3296
+ k + "=" + repr(v) for k, v in self._values.items()
3297
+ )
3298
+
3299
+
2837
3300
  @jsii.implements(_IInspectable_c2943556)
2838
3301
  class CfnDataSource(
2839
3302
  _CfnResource_9df397a6,
@@ -6871,6 +7334,10 @@ class CfnFlow(
6871
7334
  knowledge_base_id="knowledgeBaseId",
6872
7335
 
6873
7336
  # the properties below are optional
7337
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
7338
+ guardrail_identifier="guardrailIdentifier",
7339
+ guardrail_version="guardrailVersion"
7340
+ ),
6874
7341
  model_id="modelId"
6875
7342
  ),
6876
7343
  lambda_function=bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty(
@@ -6903,7 +7370,6 @@ class CfnFlow(
6903
7370
  max_tokens=123,
6904
7371
  stop_sequences=["stopSequences"],
6905
7372
  temperature=123,
6906
- top_k=123,
6907
7373
  top_p=123
6908
7374
  )
6909
7375
  )
@@ -6911,6 +7377,12 @@ class CfnFlow(
6911
7377
  resource=bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty(
6912
7378
  prompt_arn="promptArn"
6913
7379
  )
7380
+ ),
7381
+
7382
+ # the properties below are optional
7383
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
7384
+ guardrail_identifier="guardrailIdentifier",
7385
+ guardrail_version="guardrailVersion"
6914
7386
  )
6915
7387
  ),
6916
7388
  retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
@@ -7881,6 +8353,10 @@ class CfnFlow(
7881
8353
  knowledge_base_id="knowledgeBaseId",
7882
8354
 
7883
8355
  # the properties below are optional
8356
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
8357
+ guardrail_identifier="guardrailIdentifier",
8358
+ guardrail_version="guardrailVersion"
8359
+ ),
7884
8360
  model_id="modelId"
7885
8361
  ),
7886
8362
  lambda_function=bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty(
@@ -7913,7 +8389,6 @@ class CfnFlow(
7913
8389
  max_tokens=123,
7914
8390
  stop_sequences=["stopSequences"],
7915
8391
  temperature=123,
7916
- top_k=123,
7917
8392
  top_p=123
7918
8393
  )
7919
8394
  )
@@ -7921,6 +8396,12 @@ class CfnFlow(
7921
8396
  resource=bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty(
7922
8397
  prompt_arn="promptArn"
7923
8398
  )
8399
+ ),
8400
+
8401
+ # the properties below are optional
8402
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
8403
+ guardrail_identifier="guardrailIdentifier",
8404
+ guardrail_version="guardrailVersion"
7924
8405
  )
7925
8406
  ),
7926
8407
  retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
@@ -8078,6 +8559,10 @@ class CfnFlow(
8078
8559
  knowledge_base_id="knowledgeBaseId",
8079
8560
 
8080
8561
  # the properties below are optional
8562
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
8563
+ guardrail_identifier="guardrailIdentifier",
8564
+ guardrail_version="guardrailVersion"
8565
+ ),
8081
8566
  model_id="modelId"
8082
8567
  ),
8083
8568
  lambda_function=bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty(
@@ -8110,7 +8595,6 @@ class CfnFlow(
8110
8595
  max_tokens=123,
8111
8596
  stop_sequences=["stopSequences"],
8112
8597
  temperature=123,
8113
- top_k=123,
8114
8598
  top_p=123
8115
8599
  )
8116
8600
  )
@@ -8118,6 +8602,12 @@ class CfnFlow(
8118
8602
  resource=bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty(
8119
8603
  prompt_arn="promptArn"
8120
8604
  )
8605
+ ),
8606
+
8607
+ # the properties below are optional
8608
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
8609
+ guardrail_identifier="guardrailIdentifier",
8610
+ guardrail_version="guardrailVersion"
8121
8611
  )
8122
8612
  ),
8123
8613
  retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
@@ -8562,6 +9052,10 @@ class CfnFlow(
8562
9052
  knowledge_base_id="knowledgeBaseId",
8563
9053
 
8564
9054
  # the properties below are optional
9055
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
9056
+ guardrail_identifier="guardrailIdentifier",
9057
+ guardrail_version="guardrailVersion"
9058
+ ),
8565
9059
  model_id="modelId"
8566
9060
  ),
8567
9061
  lambda_function=bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty(
@@ -8594,7 +9088,6 @@ class CfnFlow(
8594
9088
  max_tokens=123,
8595
9089
  stop_sequences=["stopSequences"],
8596
9090
  temperature=123,
8597
- top_k=123,
8598
9091
  top_p=123
8599
9092
  )
8600
9093
  )
@@ -8602,6 +9095,12 @@ class CfnFlow(
8602
9095
  resource=bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty(
8603
9096
  prompt_arn="promptArn"
8604
9097
  )
9098
+ ),
9099
+
9100
+ # the properties below are optional
9101
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
9102
+ guardrail_identifier="guardrailIdentifier",
9103
+ guardrail_version="guardrailVersion"
8605
9104
  )
8606
9105
  ),
8607
9106
  retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
@@ -8771,16 +9270,94 @@ class CfnFlow(
8771
9270
  k + "=" + repr(v) for k, v in self._values.items()
8772
9271
  )
8773
9272
 
9273
+ @jsii.data_type(
9274
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.GuardrailConfigurationProperty",
9275
+ jsii_struct_bases=[],
9276
+ name_mapping={
9277
+ "guardrail_identifier": "guardrailIdentifier",
9278
+ "guardrail_version": "guardrailVersion",
9279
+ },
9280
+ )
9281
+ class GuardrailConfigurationProperty:
9282
+ def __init__(
9283
+ self,
9284
+ *,
9285
+ guardrail_identifier: typing.Optional[builtins.str] = None,
9286
+ guardrail_version: typing.Optional[builtins.str] = None,
9287
+ ) -> None:
9288
+ '''Configuration information for a guardrail that you use with the `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ operation.
9289
+
9290
+ :param guardrail_identifier: The identifier for the guardrail.
9291
+ :param guardrail_version: The version of the guardrail.
9292
+
9293
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-guardrailconfiguration.html
9294
+ :exampleMetadata: fixture=_generated
9295
+
9296
+ Example::
9297
+
9298
+ # The code below shows an example of how to instantiate this type.
9299
+ # The values are placeholders you should change.
9300
+ from aws_cdk import aws_bedrock as bedrock
9301
+
9302
+ guardrail_configuration_property = bedrock.CfnFlow.GuardrailConfigurationProperty(
9303
+ guardrail_identifier="guardrailIdentifier",
9304
+ guardrail_version="guardrailVersion"
9305
+ )
9306
+ '''
9307
+ if __debug__:
9308
+ type_hints = typing.get_type_hints(_typecheckingstub__7a58b1756431d0127fbde4a9b98f71b8bd861fde50f58d8b27f6621481f6898a)
9309
+ check_type(argname="argument guardrail_identifier", value=guardrail_identifier, expected_type=type_hints["guardrail_identifier"])
9310
+ check_type(argname="argument guardrail_version", value=guardrail_version, expected_type=type_hints["guardrail_version"])
9311
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
9312
+ if guardrail_identifier is not None:
9313
+ self._values["guardrail_identifier"] = guardrail_identifier
9314
+ if guardrail_version is not None:
9315
+ self._values["guardrail_version"] = guardrail_version
9316
+
9317
+ @builtins.property
9318
+ def guardrail_identifier(self) -> typing.Optional[builtins.str]:
9319
+ '''The identifier for the guardrail.
9320
+
9321
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-guardrailconfiguration.html#cfn-bedrock-flow-guardrailconfiguration-guardrailidentifier
9322
+ '''
9323
+ result = self._values.get("guardrail_identifier")
9324
+ return typing.cast(typing.Optional[builtins.str], result)
9325
+
9326
+ @builtins.property
9327
+ def guardrail_version(self) -> typing.Optional[builtins.str]:
9328
+ '''The version of the guardrail.
9329
+
9330
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-guardrailconfiguration.html#cfn-bedrock-flow-guardrailconfiguration-guardrailversion
9331
+ '''
9332
+ result = self._values.get("guardrail_version")
9333
+ return typing.cast(typing.Optional[builtins.str], result)
9334
+
9335
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
9336
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
9337
+
9338
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
9339
+ return not (rhs == self)
9340
+
9341
+ def __repr__(self) -> str:
9342
+ return "GuardrailConfigurationProperty(%s)" % ", ".join(
9343
+ k + "=" + repr(v) for k, v in self._values.items()
9344
+ )
9345
+
8774
9346
  @jsii.data_type(
8775
9347
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty",
8776
9348
  jsii_struct_bases=[],
8777
- name_mapping={"knowledge_base_id": "knowledgeBaseId", "model_id": "modelId"},
9349
+ name_mapping={
9350
+ "knowledge_base_id": "knowledgeBaseId",
9351
+ "guardrail_configuration": "guardrailConfiguration",
9352
+ "model_id": "modelId",
9353
+ },
8778
9354
  )
8779
9355
  class KnowledgeBaseFlowNodeConfigurationProperty:
8780
9356
  def __init__(
8781
9357
  self,
8782
9358
  *,
8783
9359
  knowledge_base_id: builtins.str,
9360
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.GuardrailConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
8784
9361
  model_id: typing.Optional[builtins.str] = None,
8785
9362
  ) -> None:
8786
9363
  '''Contains configurations for a knowledge base node in a flow.
@@ -8788,6 +9365,7 @@ class CfnFlow(
8788
9365
  This node takes a query as the input and returns, as the output, the retrieved responses directly (as an array) or a response generated based on the retrieved responses. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
8789
9366
 
8790
9367
  :param knowledge_base_id: The unique identifier of the knowledge base to query.
9368
+ :param guardrail_configuration: Configuration for a guardrail.
8791
9369
  :param model_id: The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.
8792
9370
 
8793
9371
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-knowledgebaseflownodeconfiguration.html
@@ -8803,16 +9381,23 @@ class CfnFlow(
8803
9381
  knowledge_base_id="knowledgeBaseId",
8804
9382
 
8805
9383
  # the properties below are optional
9384
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
9385
+ guardrail_identifier="guardrailIdentifier",
9386
+ guardrail_version="guardrailVersion"
9387
+ ),
8806
9388
  model_id="modelId"
8807
9389
  )
8808
9390
  '''
8809
9391
  if __debug__:
8810
9392
  type_hints = typing.get_type_hints(_typecheckingstub__004ed148a98b01e41f3efd077553224d0e5ce97fd3842fc0c6be6c28accdc6cc)
8811
9393
  check_type(argname="argument knowledge_base_id", value=knowledge_base_id, expected_type=type_hints["knowledge_base_id"])
9394
+ check_type(argname="argument guardrail_configuration", value=guardrail_configuration, expected_type=type_hints["guardrail_configuration"])
8812
9395
  check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
8813
9396
  self._values: typing.Dict[builtins.str, typing.Any] = {
8814
9397
  "knowledge_base_id": knowledge_base_id,
8815
9398
  }
9399
+ if guardrail_configuration is not None:
9400
+ self._values["guardrail_configuration"] = guardrail_configuration
8816
9401
  if model_id is not None:
8817
9402
  self._values["model_id"] = model_id
8818
9403
 
@@ -8826,6 +9411,17 @@ class CfnFlow(
8826
9411
  assert result is not None, "Required property 'knowledge_base_id' is missing"
8827
9412
  return typing.cast(builtins.str, result)
8828
9413
 
9414
+ @builtins.property
9415
+ def guardrail_configuration(
9416
+ self,
9417
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.GuardrailConfigurationProperty"]]:
9418
+ '''Configuration for a guardrail.
9419
+
9420
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flow-knowledgebaseflownodeconfiguration-guardrailconfiguration
9421
+ '''
9422
+ result = self._values.get("guardrail_configuration")
9423
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.GuardrailConfigurationProperty"]], result)
9424
+
8829
9425
  @builtins.property
8830
9426
  def model_id(self) -> typing.Optional[builtins.str]:
8831
9427
  '''The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.
@@ -8976,19 +9572,24 @@ class CfnFlow(
8976
9572
  @jsii.data_type(
8977
9573
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.PromptFlowNodeConfigurationProperty",
8978
9574
  jsii_struct_bases=[],
8979
- name_mapping={"source_configuration": "sourceConfiguration"},
9575
+ name_mapping={
9576
+ "source_configuration": "sourceConfiguration",
9577
+ "guardrail_configuration": "guardrailConfiguration",
9578
+ },
8980
9579
  )
8981
9580
  class PromptFlowNodeConfigurationProperty:
8982
9581
  def __init__(
8983
9582
  self,
8984
9583
  *,
8985
9584
  source_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.PromptFlowNodeSourceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
9585
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.GuardrailConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
8986
9586
  ) -> None:
8987
9587
  '''Contains configurations for a prompt node in the flow.
8988
9588
 
8989
9589
  You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
8990
9590
 
8991
9591
  :param source_configuration: Specifies whether the prompt is from Prompt management or defined inline.
9592
+ :param guardrail_configuration: Configuration for a guardrail.
8992
9593
 
8993
9594
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeconfiguration.html
8994
9595
  :exampleMetadata: fixture=_generated
@@ -9021,7 +9622,6 @@ class CfnFlow(
9021
9622
  max_tokens=123,
9022
9623
  stop_sequences=["stopSequences"],
9023
9624
  temperature=123,
9024
- top_k=123,
9025
9625
  top_p=123
9026
9626
  )
9027
9627
  )
@@ -9029,15 +9629,24 @@ class CfnFlow(
9029
9629
  resource=bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty(
9030
9630
  prompt_arn="promptArn"
9031
9631
  )
9632
+ ),
9633
+
9634
+ # the properties below are optional
9635
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
9636
+ guardrail_identifier="guardrailIdentifier",
9637
+ guardrail_version="guardrailVersion"
9032
9638
  )
9033
9639
  )
9034
9640
  '''
9035
9641
  if __debug__:
9036
9642
  type_hints = typing.get_type_hints(_typecheckingstub__b9e2aaf75cba4595f32ad6457fae055981f8fb7d76d181537ab0d3241fa7866d)
9037
9643
  check_type(argname="argument source_configuration", value=source_configuration, expected_type=type_hints["source_configuration"])
9644
+ check_type(argname="argument guardrail_configuration", value=guardrail_configuration, expected_type=type_hints["guardrail_configuration"])
9038
9645
  self._values: typing.Dict[builtins.str, typing.Any] = {
9039
9646
  "source_configuration": source_configuration,
9040
9647
  }
9648
+ if guardrail_configuration is not None:
9649
+ self._values["guardrail_configuration"] = guardrail_configuration
9041
9650
 
9042
9651
  @builtins.property
9043
9652
  def source_configuration(
@@ -9051,6 +9660,17 @@ class CfnFlow(
9051
9660
  assert result is not None, "Required property 'source_configuration' is missing"
9052
9661
  return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnFlow.PromptFlowNodeSourceConfigurationProperty"], result)
9053
9662
 
9663
+ @builtins.property
9664
+ def guardrail_configuration(
9665
+ self,
9666
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.GuardrailConfigurationProperty"]]:
9667
+ '''Configuration for a guardrail.
9668
+
9669
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeconfiguration.html#cfn-bedrock-flow-promptflownodeconfiguration-guardrailconfiguration
9670
+ '''
9671
+ result = self._values.get("guardrail_configuration")
9672
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.GuardrailConfigurationProperty"]], result)
9673
+
9054
9674
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
9055
9675
  return isinstance(rhs, self.__class__) and rhs._values == self._values
9056
9676
 
@@ -9117,7 +9737,6 @@ class CfnFlow(
9117
9737
  max_tokens=123,
9118
9738
  stop_sequences=["stopSequences"],
9119
9739
  temperature=123,
9120
- top_k=123,
9121
9740
  top_p=123
9122
9741
  )
9123
9742
  )
@@ -9290,7 +9909,6 @@ class CfnFlow(
9290
9909
  max_tokens=123,
9291
9910
  stop_sequences=["stopSequences"],
9292
9911
  temperature=123,
9293
- top_k=123,
9294
9912
  top_p=123
9295
9913
  )
9296
9914
  )
@@ -9372,7 +9990,6 @@ class CfnFlow(
9372
9990
  max_tokens=123,
9373
9991
  stop_sequences=["stopSequences"],
9374
9992
  temperature=123,
9375
- top_k=123,
9376
9993
  top_p=123
9377
9994
  )
9378
9995
  )
@@ -9465,7 +10082,6 @@ class CfnFlow(
9465
10082
  "max_tokens": "maxTokens",
9466
10083
  "stop_sequences": "stopSequences",
9467
10084
  "temperature": "temperature",
9468
- "top_k": "topK",
9469
10085
  "top_p": "topP",
9470
10086
  },
9471
10087
  )
@@ -9476,7 +10092,6 @@ class CfnFlow(
9476
10092
  max_tokens: typing.Optional[jsii.Number] = None,
9477
10093
  stop_sequences: typing.Optional[typing.Sequence[builtins.str]] = None,
9478
10094
  temperature: typing.Optional[jsii.Number] = None,
9479
- top_k: typing.Optional[jsii.Number] = None,
9480
10095
  top_p: typing.Optional[jsii.Number] = None,
9481
10096
  ) -> None:
9482
10097
  '''Contains inference configurations related to model inference for a prompt.
@@ -9486,7 +10101,6 @@ class CfnFlow(
9486
10101
  :param max_tokens: The maximum number of tokens to return in the response.
9487
10102
  :param stop_sequences: A list of strings that define sequences after which the model will stop generating.
9488
10103
  :param temperature: Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
9489
- :param top_k: Sample from the k most likely next tokens.
9490
10104
  :param top_p: The percentage of most-likely candidates that the model considers for the next token.
9491
10105
 
9492
10106
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html
@@ -9502,7 +10116,6 @@ class CfnFlow(
9502
10116
  max_tokens=123,
9503
10117
  stop_sequences=["stopSequences"],
9504
10118
  temperature=123,
9505
- top_k=123,
9506
10119
  top_p=123
9507
10120
  )
9508
10121
  '''
@@ -9511,7 +10124,6 @@ class CfnFlow(
9511
10124
  check_type(argname="argument max_tokens", value=max_tokens, expected_type=type_hints["max_tokens"])
9512
10125
  check_type(argname="argument stop_sequences", value=stop_sequences, expected_type=type_hints["stop_sequences"])
9513
10126
  check_type(argname="argument temperature", value=temperature, expected_type=type_hints["temperature"])
9514
- check_type(argname="argument top_k", value=top_k, expected_type=type_hints["top_k"])
9515
10127
  check_type(argname="argument top_p", value=top_p, expected_type=type_hints["top_p"])
9516
10128
  self._values: typing.Dict[builtins.str, typing.Any] = {}
9517
10129
  if max_tokens is not None:
@@ -9520,8 +10132,6 @@ class CfnFlow(
9520
10132
  self._values["stop_sequences"] = stop_sequences
9521
10133
  if temperature is not None:
9522
10134
  self._values["temperature"] = temperature
9523
- if top_k is not None:
9524
- self._values["top_k"] = top_k
9525
10135
  if top_p is not None:
9526
10136
  self._values["top_p"] = top_p
9527
10137
 
@@ -9554,15 +10164,6 @@ class CfnFlow(
9554
10164
  result = self._values.get("temperature")
9555
10165
  return typing.cast(typing.Optional[jsii.Number], result)
9556
10166
 
9557
- @builtins.property
9558
- def top_k(self) -> typing.Optional[jsii.Number]:
9559
- '''Sample from the k most likely next tokens.
9560
-
9561
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptmodelinferenceconfiguration.html#cfn-bedrock-flow-promptmodelinferenceconfiguration-topk
9562
- '''
9563
- result = self._values.get("top_k")
9564
- return typing.cast(typing.Optional[jsii.Number], result)
9565
-
9566
10167
  @builtins.property
9567
10168
  def top_p(self) -> typing.Optional[jsii.Number]:
9568
10169
  '''The percentage of most-likely candidates that the model considers for the next token.
@@ -10697,6 +11298,10 @@ class CfnFlowProps:
10697
11298
  knowledge_base_id="knowledgeBaseId",
10698
11299
 
10699
11300
  # the properties below are optional
11301
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
11302
+ guardrail_identifier="guardrailIdentifier",
11303
+ guardrail_version="guardrailVersion"
11304
+ ),
10700
11305
  model_id="modelId"
10701
11306
  ),
10702
11307
  lambda_function=bedrock.CfnFlow.LambdaFunctionFlowNodeConfigurationProperty(
@@ -10729,7 +11334,6 @@ class CfnFlowProps:
10729
11334
  max_tokens=123,
10730
11335
  stop_sequences=["stopSequences"],
10731
11336
  temperature=123,
10732
- top_k=123,
10733
11337
  top_p=123
10734
11338
  )
10735
11339
  )
@@ -10737,6 +11341,12 @@ class CfnFlowProps:
10737
11341
  resource=bedrock.CfnFlow.PromptFlowNodeResourceConfigurationProperty(
10738
11342
  prompt_arn="promptArn"
10739
11343
  )
11344
+ ),
11345
+
11346
+ # the properties below are optional
11347
+ guardrail_configuration=bedrock.CfnFlow.GuardrailConfigurationProperty(
11348
+ guardrail_identifier="guardrailIdentifier",
11349
+ guardrail_version="guardrailVersion"
10740
11350
  )
10741
11351
  ),
10742
11352
  retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
@@ -11033,7 +11643,7 @@ class CfnFlowVersion(
11033
11643
  @builtins.property
11034
11644
  @jsii.member(jsii_name="attrCustomerEncryptionKeyArn")
11035
11645
  def attr_customer_encryption_key_arn(self) -> builtins.str:
11036
- '''A KMS key ARN.
11646
+ '''The Amazon Resource Name (ARN) of the KMS key that the flow version is encrypted with.
11037
11647
 
11038
11648
  :cloudformationAttribute: CustomerEncryptionKeyArn
11039
11649
  '''
@@ -11733,6 +12343,10 @@ class CfnFlowVersion(
11733
12343
  knowledge_base_id="knowledgeBaseId",
11734
12344
 
11735
12345
  # the properties below are optional
12346
+ guardrail_configuration=bedrock.CfnFlowVersion.GuardrailConfigurationProperty(
12347
+ guardrail_identifier="guardrailIdentifier",
12348
+ guardrail_version="guardrailVersion"
12349
+ ),
11736
12350
  model_id="modelId"
11737
12351
  ),
11738
12352
  lambda_function=bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty(
@@ -11765,7 +12379,6 @@ class CfnFlowVersion(
11765
12379
  max_tokens=123,
11766
12380
  stop_sequences=["stopSequences"],
11767
12381
  temperature=123,
11768
- top_k=123,
11769
12382
  top_p=123
11770
12383
  )
11771
12384
  )
@@ -11773,6 +12386,12 @@ class CfnFlowVersion(
11773
12386
  resource=bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty(
11774
12387
  prompt_arn="promptArn"
11775
12388
  )
12389
+ ),
12390
+
12391
+ # the properties below are optional
12392
+ guardrail_configuration=bedrock.CfnFlowVersion.GuardrailConfigurationProperty(
12393
+ guardrail_identifier="guardrailIdentifier",
12394
+ guardrail_version="guardrailVersion"
11776
12395
  )
11777
12396
  ),
11778
12397
  retrieval=bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty(
@@ -11930,6 +12549,10 @@ class CfnFlowVersion(
11930
12549
  knowledge_base_id="knowledgeBaseId",
11931
12550
 
11932
12551
  # the properties below are optional
12552
+ guardrail_configuration=bedrock.CfnFlowVersion.GuardrailConfigurationProperty(
12553
+ guardrail_identifier="guardrailIdentifier",
12554
+ guardrail_version="guardrailVersion"
12555
+ ),
11933
12556
  model_id="modelId"
11934
12557
  ),
11935
12558
  lambda_function=bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty(
@@ -11962,7 +12585,6 @@ class CfnFlowVersion(
11962
12585
  max_tokens=123,
11963
12586
  stop_sequences=["stopSequences"],
11964
12587
  temperature=123,
11965
- top_k=123,
11966
12588
  top_p=123
11967
12589
  )
11968
12590
  )
@@ -11970,6 +12592,12 @@ class CfnFlowVersion(
11970
12592
  resource=bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty(
11971
12593
  prompt_arn="promptArn"
11972
12594
  )
12595
+ ),
12596
+
12597
+ # the properties below are optional
12598
+ guardrail_configuration=bedrock.CfnFlowVersion.GuardrailConfigurationProperty(
12599
+ guardrail_identifier="guardrailIdentifier",
12600
+ guardrail_version="guardrailVersion"
11973
12601
  )
11974
12602
  ),
11975
12603
  retrieval=bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty(
@@ -12414,6 +13042,10 @@ class CfnFlowVersion(
12414
13042
  knowledge_base_id="knowledgeBaseId",
12415
13043
 
12416
13044
  # the properties below are optional
13045
+ guardrail_configuration=bedrock.CfnFlowVersion.GuardrailConfigurationProperty(
13046
+ guardrail_identifier="guardrailIdentifier",
13047
+ guardrail_version="guardrailVersion"
13048
+ ),
12417
13049
  model_id="modelId"
12418
13050
  ),
12419
13051
  lambda_function=bedrock.CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty(
@@ -12446,7 +13078,6 @@ class CfnFlowVersion(
12446
13078
  max_tokens=123,
12447
13079
  stop_sequences=["stopSequences"],
12448
13080
  temperature=123,
12449
- top_k=123,
12450
13081
  top_p=123
12451
13082
  )
12452
13083
  )
@@ -12454,6 +13085,12 @@ class CfnFlowVersion(
12454
13085
  resource=bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty(
12455
13086
  prompt_arn="promptArn"
12456
13087
  )
13088
+ ),
13089
+
13090
+ # the properties below are optional
13091
+ guardrail_configuration=bedrock.CfnFlowVersion.GuardrailConfigurationProperty(
13092
+ guardrail_identifier="guardrailIdentifier",
13093
+ guardrail_version="guardrailVersion"
12457
13094
  )
12458
13095
  ),
12459
13096
  retrieval=bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty(
@@ -12566,16 +13203,94 @@ class CfnFlowVersion(
12566
13203
  k + "=" + repr(v) for k, v in self._values.items()
12567
13204
  )
12568
13205
 
13206
+ @jsii.data_type(
13207
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.GuardrailConfigurationProperty",
13208
+ jsii_struct_bases=[],
13209
+ name_mapping={
13210
+ "guardrail_identifier": "guardrailIdentifier",
13211
+ "guardrail_version": "guardrailVersion",
13212
+ },
13213
+ )
13214
+ class GuardrailConfigurationProperty:
13215
+ def __init__(
13216
+ self,
13217
+ *,
13218
+ guardrail_identifier: typing.Optional[builtins.str] = None,
13219
+ guardrail_version: typing.Optional[builtins.str] = None,
13220
+ ) -> None:
13221
+ '''Configuration information for a guardrail that you use with the `Converse <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html>`_ operation.
13222
+
13223
+ :param guardrail_identifier: The identifier for the guardrail.
13224
+ :param guardrail_version: The version of the guardrail.
13225
+
13226
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-guardrailconfiguration.html
13227
+ :exampleMetadata: fixture=_generated
13228
+
13229
+ Example::
13230
+
13231
+ # The code below shows an example of how to instantiate this type.
13232
+ # The values are placeholders you should change.
13233
+ from aws_cdk import aws_bedrock as bedrock
13234
+
13235
+ guardrail_configuration_property = bedrock.CfnFlowVersion.GuardrailConfigurationProperty(
13236
+ guardrail_identifier="guardrailIdentifier",
13237
+ guardrail_version="guardrailVersion"
13238
+ )
13239
+ '''
13240
+ if __debug__:
13241
+ type_hints = typing.get_type_hints(_typecheckingstub__e730caca77d30abef7bb7cb2c01702883c895d80378652c3f9f4bd88643dc186)
13242
+ check_type(argname="argument guardrail_identifier", value=guardrail_identifier, expected_type=type_hints["guardrail_identifier"])
13243
+ check_type(argname="argument guardrail_version", value=guardrail_version, expected_type=type_hints["guardrail_version"])
13244
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
13245
+ if guardrail_identifier is not None:
13246
+ self._values["guardrail_identifier"] = guardrail_identifier
13247
+ if guardrail_version is not None:
13248
+ self._values["guardrail_version"] = guardrail_version
13249
+
13250
+ @builtins.property
13251
+ def guardrail_identifier(self) -> typing.Optional[builtins.str]:
13252
+ '''The identifier for the guardrail.
13253
+
13254
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-guardrailconfiguration.html#cfn-bedrock-flowversion-guardrailconfiguration-guardrailidentifier
13255
+ '''
13256
+ result = self._values.get("guardrail_identifier")
13257
+ return typing.cast(typing.Optional[builtins.str], result)
13258
+
13259
+ @builtins.property
13260
+ def guardrail_version(self) -> typing.Optional[builtins.str]:
13261
+ '''The version of the guardrail.
13262
+
13263
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-guardrailconfiguration.html#cfn-bedrock-flowversion-guardrailconfiguration-guardrailversion
13264
+ '''
13265
+ result = self._values.get("guardrail_version")
13266
+ return typing.cast(typing.Optional[builtins.str], result)
13267
+
13268
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
13269
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
13270
+
13271
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
13272
+ return not (rhs == self)
13273
+
13274
+ def __repr__(self) -> str:
13275
+ return "GuardrailConfigurationProperty(%s)" % ", ".join(
13276
+ k + "=" + repr(v) for k, v in self._values.items()
13277
+ )
13278
+
12569
13279
  @jsii.data_type(
12570
13280
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty",
12571
13281
  jsii_struct_bases=[],
12572
- name_mapping={"knowledge_base_id": "knowledgeBaseId", "model_id": "modelId"},
13282
+ name_mapping={
13283
+ "knowledge_base_id": "knowledgeBaseId",
13284
+ "guardrail_configuration": "guardrailConfiguration",
13285
+ "model_id": "modelId",
13286
+ },
12573
13287
  )
12574
13288
  class KnowledgeBaseFlowNodeConfigurationProperty:
12575
13289
  def __init__(
12576
13290
  self,
12577
13291
  *,
12578
13292
  knowledge_base_id: builtins.str,
13293
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.GuardrailConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
12579
13294
  model_id: typing.Optional[builtins.str] = None,
12580
13295
  ) -> None:
12581
13296
  '''Contains configurations for a knowledge base node in a flow.
@@ -12583,6 +13298,7 @@ class CfnFlowVersion(
12583
13298
  This node takes a query as the input and returns, as the output, the retrieved responses directly (as an array) or a response generated based on the retrieved responses. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
12584
13299
 
12585
13300
  :param knowledge_base_id: The unique identifier of the knowledge base to query.
13301
+ :param guardrail_configuration: Configuration for a guardrail.
12586
13302
  :param model_id: The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.
12587
13303
 
12588
13304
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-knowledgebaseflownodeconfiguration.html
@@ -12598,16 +13314,23 @@ class CfnFlowVersion(
12598
13314
  knowledge_base_id="knowledgeBaseId",
12599
13315
 
12600
13316
  # the properties below are optional
13317
+ guardrail_configuration=bedrock.CfnFlowVersion.GuardrailConfigurationProperty(
13318
+ guardrail_identifier="guardrailIdentifier",
13319
+ guardrail_version="guardrailVersion"
13320
+ ),
12601
13321
  model_id="modelId"
12602
13322
  )
12603
13323
  '''
12604
13324
  if __debug__:
12605
13325
  type_hints = typing.get_type_hints(_typecheckingstub__17b9fe30408d688aaf08f87e21950af81c63d804d7021f8f66de0b47e6aa51be)
12606
13326
  check_type(argname="argument knowledge_base_id", value=knowledge_base_id, expected_type=type_hints["knowledge_base_id"])
13327
+ check_type(argname="argument guardrail_configuration", value=guardrail_configuration, expected_type=type_hints["guardrail_configuration"])
12607
13328
  check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
12608
13329
  self._values: typing.Dict[builtins.str, typing.Any] = {
12609
13330
  "knowledge_base_id": knowledge_base_id,
12610
13331
  }
13332
+ if guardrail_configuration is not None:
13333
+ self._values["guardrail_configuration"] = guardrail_configuration
12611
13334
  if model_id is not None:
12612
13335
  self._values["model_id"] = model_id
12613
13336
 
@@ -12621,6 +13344,17 @@ class CfnFlowVersion(
12621
13344
  assert result is not None, "Required property 'knowledge_base_id' is missing"
12622
13345
  return typing.cast(builtins.str, result)
12623
13346
 
13347
+ @builtins.property
13348
+ def guardrail_configuration(
13349
+ self,
13350
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.GuardrailConfigurationProperty"]]:
13351
+ '''Configuration for a guardrail.
13352
+
13353
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-knowledgebaseflownodeconfiguration.html#cfn-bedrock-flowversion-knowledgebaseflownodeconfiguration-guardrailconfiguration
13354
+ '''
13355
+ result = self._values.get("guardrail_configuration")
13356
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.GuardrailConfigurationProperty"]], result)
13357
+
12624
13358
  @builtins.property
12625
13359
  def model_id(self) -> typing.Optional[builtins.str]:
12626
13360
  '''The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array.
@@ -12771,19 +13505,24 @@ class CfnFlowVersion(
12771
13505
  @jsii.data_type(
12772
13506
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.PromptFlowNodeConfigurationProperty",
12773
13507
  jsii_struct_bases=[],
12774
- name_mapping={"source_configuration": "sourceConfiguration"},
13508
+ name_mapping={
13509
+ "source_configuration": "sourceConfiguration",
13510
+ "guardrail_configuration": "guardrailConfiguration",
13511
+ },
12775
13512
  )
12776
13513
  class PromptFlowNodeConfigurationProperty:
12777
13514
  def __init__(
12778
13515
  self,
12779
13516
  *,
12780
13517
  source_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
13518
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.GuardrailConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
12781
13519
  ) -> None:
12782
13520
  '''Contains configurations for a prompt node in the flow.
12783
13521
 
12784
13522
  You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
12785
13523
 
12786
13524
  :param source_configuration: Specifies whether the prompt is from Prompt management or defined inline.
13525
+ :param guardrail_configuration: Configuration for a guardrail.
12787
13526
 
12788
13527
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeconfiguration.html
12789
13528
  :exampleMetadata: fixture=_generated
@@ -12816,7 +13555,6 @@ class CfnFlowVersion(
12816
13555
  max_tokens=123,
12817
13556
  stop_sequences=["stopSequences"],
12818
13557
  temperature=123,
12819
- top_k=123,
12820
13558
  top_p=123
12821
13559
  )
12822
13560
  )
@@ -12824,15 +13562,24 @@ class CfnFlowVersion(
12824
13562
  resource=bedrock.CfnFlowVersion.PromptFlowNodeResourceConfigurationProperty(
12825
13563
  prompt_arn="promptArn"
12826
13564
  )
13565
+ ),
13566
+
13567
+ # the properties below are optional
13568
+ guardrail_configuration=bedrock.CfnFlowVersion.GuardrailConfigurationProperty(
13569
+ guardrail_identifier="guardrailIdentifier",
13570
+ guardrail_version="guardrailVersion"
12827
13571
  )
12828
13572
  )
12829
13573
  '''
12830
13574
  if __debug__:
12831
13575
  type_hints = typing.get_type_hints(_typecheckingstub__62c4630f7833caba0eae680e960eadd4fb8eef6ef080839f7a47f079f386a1be)
12832
13576
  check_type(argname="argument source_configuration", value=source_configuration, expected_type=type_hints["source_configuration"])
13577
+ check_type(argname="argument guardrail_configuration", value=guardrail_configuration, expected_type=type_hints["guardrail_configuration"])
12833
13578
  self._values: typing.Dict[builtins.str, typing.Any] = {
12834
13579
  "source_configuration": source_configuration,
12835
13580
  }
13581
+ if guardrail_configuration is not None:
13582
+ self._values["guardrail_configuration"] = guardrail_configuration
12836
13583
 
12837
13584
  @builtins.property
12838
13585
  def source_configuration(
@@ -12846,6 +13593,17 @@ class CfnFlowVersion(
12846
13593
  assert result is not None, "Required property 'source_configuration' is missing"
12847
13594
  return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty"], result)
12848
13595
 
13596
+ @builtins.property
13597
+ def guardrail_configuration(
13598
+ self,
13599
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.GuardrailConfigurationProperty"]]:
13600
+ '''Configuration for a guardrail.
13601
+
13602
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodeconfiguration.html#cfn-bedrock-flowversion-promptflownodeconfiguration-guardrailconfiguration
13603
+ '''
13604
+ result = self._values.get("guardrail_configuration")
13605
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.GuardrailConfigurationProperty"]], result)
13606
+
12849
13607
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
12850
13608
  return isinstance(rhs, self.__class__) and rhs._values == self._values
12851
13609
 
@@ -12912,7 +13670,6 @@ class CfnFlowVersion(
12912
13670
  max_tokens=123,
12913
13671
  stop_sequences=["stopSequences"],
12914
13672
  temperature=123,
12915
- top_k=123,
12916
13673
  top_p=123
12917
13674
  )
12918
13675
  )
@@ -13085,7 +13842,6 @@ class CfnFlowVersion(
13085
13842
  max_tokens=123,
13086
13843
  stop_sequences=["stopSequences"],
13087
13844
  temperature=123,
13088
- top_k=123,
13089
13845
  top_p=123
13090
13846
  )
13091
13847
  )
@@ -13167,7 +13923,6 @@ class CfnFlowVersion(
13167
13923
  max_tokens=123,
13168
13924
  stop_sequences=["stopSequences"],
13169
13925
  temperature=123,
13170
- top_k=123,
13171
13926
  top_p=123
13172
13927
  )
13173
13928
  )
@@ -13260,7 +14015,6 @@ class CfnFlowVersion(
13260
14015
  "max_tokens": "maxTokens",
13261
14016
  "stop_sequences": "stopSequences",
13262
14017
  "temperature": "temperature",
13263
- "top_k": "topK",
13264
14018
  "top_p": "topP",
13265
14019
  },
13266
14020
  )
@@ -13271,7 +14025,6 @@ class CfnFlowVersion(
13271
14025
  max_tokens: typing.Optional[jsii.Number] = None,
13272
14026
  stop_sequences: typing.Optional[typing.Sequence[builtins.str]] = None,
13273
14027
  temperature: typing.Optional[jsii.Number] = None,
13274
- top_k: typing.Optional[jsii.Number] = None,
13275
14028
  top_p: typing.Optional[jsii.Number] = None,
13276
14029
  ) -> None:
13277
14030
  '''Contains inference configurations related to model inference for a prompt.
@@ -13281,7 +14034,6 @@ class CfnFlowVersion(
13281
14034
  :param max_tokens: The maximum number of tokens to return in the response.
13282
14035
  :param stop_sequences: A list of strings that define sequences after which the model will stop generating.
13283
14036
  :param temperature: Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
13284
- :param top_k: Sample from the k most likely next tokens.
13285
14037
  :param top_p: The percentage of most-likely candidates that the model considers for the next token.
13286
14038
 
13287
14039
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html
@@ -13297,7 +14049,6 @@ class CfnFlowVersion(
13297
14049
  max_tokens=123,
13298
14050
  stop_sequences=["stopSequences"],
13299
14051
  temperature=123,
13300
- top_k=123,
13301
14052
  top_p=123
13302
14053
  )
13303
14054
  '''
@@ -13306,7 +14057,6 @@ class CfnFlowVersion(
13306
14057
  check_type(argname="argument max_tokens", value=max_tokens, expected_type=type_hints["max_tokens"])
13307
14058
  check_type(argname="argument stop_sequences", value=stop_sequences, expected_type=type_hints["stop_sequences"])
13308
14059
  check_type(argname="argument temperature", value=temperature, expected_type=type_hints["temperature"])
13309
- check_type(argname="argument top_k", value=top_k, expected_type=type_hints["top_k"])
13310
14060
  check_type(argname="argument top_p", value=top_p, expected_type=type_hints["top_p"])
13311
14061
  self._values: typing.Dict[builtins.str, typing.Any] = {}
13312
14062
  if max_tokens is not None:
@@ -13315,8 +14065,6 @@ class CfnFlowVersion(
13315
14065
  self._values["stop_sequences"] = stop_sequences
13316
14066
  if temperature is not None:
13317
14067
  self._values["temperature"] = temperature
13318
- if top_k is not None:
13319
- self._values["top_k"] = top_k
13320
14068
  if top_p is not None:
13321
14069
  self._values["top_p"] = top_p
13322
14070
 
@@ -13349,15 +14097,6 @@ class CfnFlowVersion(
13349
14097
  result = self._values.get("temperature")
13350
14098
  return typing.cast(typing.Optional[jsii.Number], result)
13351
14099
 
13352
- @builtins.property
13353
- def top_k(self) -> typing.Optional[jsii.Number]:
13354
- '''Sample from the k most likely next tokens.
13355
-
13356
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-topk
13357
- '''
13358
- result = self._values.get("top_k")
13359
- return typing.cast(typing.Optional[jsii.Number], result)
13360
-
13361
14100
  @builtins.property
13362
14101
  def top_p(self) -> typing.Optional[jsii.Number]:
13363
14102
  '''The percentage of most-likely candidates that the model considers for the next token.
@@ -17225,7 +17964,7 @@ class CfnKnowledgeBase(
17225
17964
  ) -> None:
17226
17965
  '''Contains details about the model used to create vector embeddings for the knowledge base.
17227
17966
 
17228
- :param embedding_model_arn: The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
17967
+ :param embedding_model_arn: The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.
17229
17968
  :param embedding_model_configuration: The embeddings model configuration details for the vector model used in Knowledge Base.
17230
17969
 
17231
17970
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html
@@ -17260,7 +17999,7 @@ class CfnKnowledgeBase(
17260
17999
 
17261
18000
  @builtins.property
17262
18001
  def embedding_model_arn(self) -> builtins.str:
17263
- '''The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.
18002
+ '''The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.
17264
18003
 
17265
18004
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-vectorknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-vectorknowledgebaseconfiguration-embeddingmodelarn
17266
18005
  '''
@@ -17512,28 +18251,15 @@ class CfnPrompt(
17512
18251
  cfn_prompt = bedrock.CfnPrompt(self, "MyCfnPrompt",
17513
18252
  name="name",
17514
18253
 
17515
- # the properties below are optional
17516
- customer_encryption_key_arn="customerEncryptionKeyArn",
17517
- default_variant="defaultVariant",
17518
- description="description",
17519
- tags={
17520
- "tags_key": "tags"
17521
- },
17522
- variants=[bedrock.CfnPrompt.PromptVariantProperty(
17523
- name="name",
17524
- template_type="templateType",
17525
-
17526
- # the properties below are optional
17527
- inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
17528
- text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
17529
- max_tokens=123,
17530
- stop_sequences=["stopSequences"],
17531
- temperature=123,
17532
- top_k=123,
17533
- top_p=123
17534
- )
17535
- ),
17536
- model_id="modelId",
18254
+ # the properties below are optional
18255
+ customer_encryption_key_arn="customerEncryptionKeyArn",
18256
+ default_variant="defaultVariant",
18257
+ description="description",
18258
+ tags={
18259
+ "tags_key": "tags"
18260
+ },
18261
+ variants=[bedrock.CfnPrompt.PromptVariantProperty(
18262
+ name="name",
17537
18263
  template_configuration=bedrock.CfnPrompt.PromptTemplateConfigurationProperty(
17538
18264
  text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
17539
18265
  input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
@@ -17548,7 +18274,19 @@ class CfnPrompt(
17548
18274
  version="version"
17549
18275
  )
17550
18276
  )
17551
- )
18277
+ ),
18278
+ template_type="templateType",
18279
+
18280
+ # the properties below are optional
18281
+ inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
18282
+ text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
18283
+ max_tokens=123,
18284
+ stop_sequences=["stopSequences"],
18285
+ temperature=123,
18286
+ top_p=123
18287
+ )
18288
+ ),
18289
+ model_id="modelId"
17552
18290
  )]
17553
18291
  )
17554
18292
  '''
@@ -17794,7 +18532,6 @@ class CfnPrompt(
17794
18532
  max_tokens=123,
17795
18533
  stop_sequences=["stopSequences"],
17796
18534
  temperature=123,
17797
- top_k=123,
17798
18535
  top_p=123
17799
18536
  )
17800
18537
  )
@@ -17887,7 +18624,6 @@ class CfnPrompt(
17887
18624
  "max_tokens": "maxTokens",
17888
18625
  "stop_sequences": "stopSequences",
17889
18626
  "temperature": "temperature",
17890
- "top_k": "topK",
17891
18627
  "top_p": "topP",
17892
18628
  },
17893
18629
  )
@@ -17898,7 +18634,6 @@ class CfnPrompt(
17898
18634
  max_tokens: typing.Optional[jsii.Number] = None,
17899
18635
  stop_sequences: typing.Optional[typing.Sequence[builtins.str]] = None,
17900
18636
  temperature: typing.Optional[jsii.Number] = None,
17901
- top_k: typing.Optional[jsii.Number] = None,
17902
18637
  top_p: typing.Optional[jsii.Number] = None,
17903
18638
  ) -> None:
17904
18639
  '''Contains inference configurations related to model inference for a prompt.
@@ -17908,7 +18643,6 @@ class CfnPrompt(
17908
18643
  :param max_tokens: The maximum number of tokens to return in the response.
17909
18644
  :param stop_sequences: A list of strings that define sequences after which the model will stop generating.
17910
18645
  :param temperature: Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
17911
- :param top_k: Sample from the k most likely next tokens.
17912
18646
  :param top_p: The percentage of most-likely candidates that the model considers for the next token.
17913
18647
 
17914
18648
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html
@@ -17924,7 +18658,6 @@ class CfnPrompt(
17924
18658
  max_tokens=123,
17925
18659
  stop_sequences=["stopSequences"],
17926
18660
  temperature=123,
17927
- top_k=123,
17928
18661
  top_p=123
17929
18662
  )
17930
18663
  '''
@@ -17933,7 +18666,6 @@ class CfnPrompt(
17933
18666
  check_type(argname="argument max_tokens", value=max_tokens, expected_type=type_hints["max_tokens"])
17934
18667
  check_type(argname="argument stop_sequences", value=stop_sequences, expected_type=type_hints["stop_sequences"])
17935
18668
  check_type(argname="argument temperature", value=temperature, expected_type=type_hints["temperature"])
17936
- check_type(argname="argument top_k", value=top_k, expected_type=type_hints["top_k"])
17937
18669
  check_type(argname="argument top_p", value=top_p, expected_type=type_hints["top_p"])
17938
18670
  self._values: typing.Dict[builtins.str, typing.Any] = {}
17939
18671
  if max_tokens is not None:
@@ -17942,8 +18674,6 @@ class CfnPrompt(
17942
18674
  self._values["stop_sequences"] = stop_sequences
17943
18675
  if temperature is not None:
17944
18676
  self._values["temperature"] = temperature
17945
- if top_k is not None:
17946
- self._values["top_k"] = top_k
17947
18677
  if top_p is not None:
17948
18678
  self._values["top_p"] = top_p
17949
18679
 
@@ -17976,15 +18706,6 @@ class CfnPrompt(
17976
18706
  result = self._values.get("temperature")
17977
18707
  return typing.cast(typing.Optional[jsii.Number], result)
17978
18708
 
17979
- @builtins.property
17980
- def top_k(self) -> typing.Optional[jsii.Number]:
17981
- '''Sample from the k most likely next tokens.
17982
-
17983
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html#cfn-bedrock-prompt-promptmodelinferenceconfiguration-topk
17984
- '''
17985
- result = self._values.get("top_k")
17986
- return typing.cast(typing.Optional[jsii.Number], result)
17987
-
17988
18709
  @builtins.property
17989
18710
  def top_p(self) -> typing.Optional[jsii.Number]:
17990
18711
  '''The percentage of most-likely candidates that the model considers for the next token.
@@ -18082,10 +18803,10 @@ class CfnPrompt(
18082
18803
  jsii_struct_bases=[],
18083
18804
  name_mapping={
18084
18805
  "name": "name",
18806
+ "template_configuration": "templateConfiguration",
18085
18807
  "template_type": "templateType",
18086
18808
  "inference_configuration": "inferenceConfiguration",
18087
18809
  "model_id": "modelId",
18088
- "template_configuration": "templateConfiguration",
18089
18810
  },
18090
18811
  )
18091
18812
  class PromptVariantProperty:
@@ -18093,18 +18814,18 @@ class CfnPrompt(
18093
18814
  self,
18094
18815
  *,
18095
18816
  name: builtins.str,
18817
+ template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
18096
18818
  template_type: builtins.str,
18097
18819
  inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
18098
18820
  model_id: typing.Optional[builtins.str] = None,
18099
- template_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
18100
18821
  ) -> None:
18101
18822
  '''Contains details about a variant of the prompt.
18102
18823
 
18103
18824
  :param name: The name of the prompt variant.
18825
+ :param template_configuration: Contains configurations for the prompt template.
18104
18826
  :param template_type: The type of prompt template to use.
18105
18827
  :param inference_configuration: Contains inference configurations for the prompt variant.
18106
18828
  :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.
18107
- :param template_configuration: Contains configurations for the prompt template.
18108
18829
 
18109
18830
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html
18110
18831
  :exampleMetadata: fixture=_generated
@@ -18117,19 +18838,6 @@ class CfnPrompt(
18117
18838
 
18118
18839
  prompt_variant_property = bedrock.CfnPrompt.PromptVariantProperty(
18119
18840
  name="name",
18120
- template_type="templateType",
18121
-
18122
- # the properties below are optional
18123
- inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
18124
- text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
18125
- max_tokens=123,
18126
- stop_sequences=["stopSequences"],
18127
- temperature=123,
18128
- top_k=123,
18129
- top_p=123
18130
- )
18131
- ),
18132
- model_id="modelId",
18133
18841
  template_configuration=bedrock.CfnPrompt.PromptTemplateConfigurationProperty(
18134
18842
  text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
18135
18843
  input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
@@ -18144,26 +18852,37 @@ class CfnPrompt(
18144
18852
  version="version"
18145
18853
  )
18146
18854
  )
18147
- )
18855
+ ),
18856
+ template_type="templateType",
18857
+
18858
+ # the properties below are optional
18859
+ inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
18860
+ text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
18861
+ max_tokens=123,
18862
+ stop_sequences=["stopSequences"],
18863
+ temperature=123,
18864
+ top_p=123
18865
+ )
18866
+ ),
18867
+ model_id="modelId"
18148
18868
  )
18149
18869
  '''
18150
18870
  if __debug__:
18151
18871
  type_hints = typing.get_type_hints(_typecheckingstub__84ac4a525676aedbb60bd913121b2941e7f39f8599421758678b789b5ad67a98)
18152
18872
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
18873
+ check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
18153
18874
  check_type(argname="argument template_type", value=template_type, expected_type=type_hints["template_type"])
18154
18875
  check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
18155
18876
  check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
18156
- check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
18157
18877
  self._values: typing.Dict[builtins.str, typing.Any] = {
18158
18878
  "name": name,
18879
+ "template_configuration": template_configuration,
18159
18880
  "template_type": template_type,
18160
18881
  }
18161
18882
  if inference_configuration is not None:
18162
18883
  self._values["inference_configuration"] = inference_configuration
18163
18884
  if model_id is not None:
18164
18885
  self._values["model_id"] = model_id
18165
- if template_configuration is not None:
18166
- self._values["template_configuration"] = template_configuration
18167
18886
 
18168
18887
  @builtins.property
18169
18888
  def name(self) -> builtins.str:
@@ -18175,6 +18894,18 @@ class CfnPrompt(
18175
18894
  assert result is not None, "Required property 'name' is missing"
18176
18895
  return typing.cast(builtins.str, result)
18177
18896
 
18897
+ @builtins.property
18898
+ def template_configuration(
18899
+ self,
18900
+ ) -> typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptTemplateConfigurationProperty"]:
18901
+ '''Contains configurations for the prompt template.
18902
+
18903
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-templateconfiguration
18904
+ '''
18905
+ result = self._values.get("template_configuration")
18906
+ assert result is not None, "Required property 'template_configuration' is missing"
18907
+ return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptTemplateConfigurationProperty"], result)
18908
+
18178
18909
  @builtins.property
18179
18910
  def template_type(self) -> builtins.str:
18180
18911
  '''The type of prompt template to use.
@@ -18205,17 +18936,6 @@ class CfnPrompt(
18205
18936
  result = self._values.get("model_id")
18206
18937
  return typing.cast(typing.Optional[builtins.str], result)
18207
18938
 
18208
- @builtins.property
18209
- def template_configuration(
18210
- self,
18211
- ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptTemplateConfigurationProperty"]]:
18212
- '''Contains configurations for the prompt template.
18213
-
18214
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-templateconfiguration
18215
- '''
18216
- result = self._values.get("template_configuration")
18217
- return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptTemplateConfigurationProperty"]], result)
18218
-
18219
18939
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
18220
18940
  return isinstance(rhs, self.__class__) and rhs._values == self._values
18221
18941
 
@@ -18472,19 +19192,6 @@ class CfnPromptProps:
18472
19192
  },
18473
19193
  variants=[bedrock.CfnPrompt.PromptVariantProperty(
18474
19194
  name="name",
18475
- template_type="templateType",
18476
-
18477
- # the properties below are optional
18478
- inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
18479
- text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
18480
- max_tokens=123,
18481
- stop_sequences=["stopSequences"],
18482
- temperature=123,
18483
- top_k=123,
18484
- top_p=123
18485
- )
18486
- ),
18487
- model_id="modelId",
18488
19195
  template_configuration=bedrock.CfnPrompt.PromptTemplateConfigurationProperty(
18489
19196
  text=bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty(
18490
19197
  input_variables=[bedrock.CfnPrompt.PromptInputVariableProperty(
@@ -18499,7 +19206,19 @@ class CfnPromptProps:
18499
19206
  version="version"
18500
19207
  )
18501
19208
  )
18502
- )
19209
+ ),
19210
+ template_type="templateType",
19211
+
19212
+ # the properties below are optional
19213
+ inference_configuration=bedrock.CfnPrompt.PromptInferenceConfigurationProperty(
19214
+ text=bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty(
19215
+ max_tokens=123,
19216
+ stop_sequences=["stopSequences"],
19217
+ temperature=123,
19218
+ top_p=123
19219
+ )
19220
+ ),
19221
+ model_id="modelId"
18503
19222
  )]
18504
19223
  )
18505
19224
  '''
@@ -18644,7 +19363,7 @@ class CfnPromptVersion(
18644
19363
  :param id: Construct identifier for this resource (unique in its scope).
18645
19364
  :param prompt_arn: The Amazon Resource Name (ARN) of the version of the prompt.
18646
19365
  :param description: The description of the prompt version.
18647
- :param tags: A map of tag keys and values.
19366
+ :param tags: A map of tags attached to the prompt version and their values.
18648
19367
  '''
18649
19368
  if __debug__:
18650
19369
  type_hints = typing.get_type_hints(_typecheckingstub__655fee944eb77092f564ba8ce6cc99b8af558f5e4f24168d280a8d548f092789)
@@ -18707,7 +19426,7 @@ class CfnPromptVersion(
18707
19426
  @builtins.property
18708
19427
  @jsii.member(jsii_name="attrCustomerEncryptionKeyArn")
18709
19428
  def attr_customer_encryption_key_arn(self) -> builtins.str:
18710
- '''A KMS key ARN.
19429
+ '''The Amazon Resource Name (ARN) of the KMS key that the prompt version is encrypted with.
18711
19430
 
18712
19431
  :cloudformationAttribute: CustomerEncryptionKeyArn
18713
19432
  '''
@@ -18809,7 +19528,7 @@ class CfnPromptVersion(
18809
19528
  @builtins.property
18810
19529
  @jsii.member(jsii_name="tags")
18811
19530
  def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
18812
- '''A map of tag keys and values.'''
19531
+ '''A map of tags attached to the prompt version and their values.'''
18813
19532
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
18814
19533
 
18815
19534
  @tags.setter
@@ -18851,7 +19570,6 @@ class CfnPromptVersion(
18851
19570
  max_tokens=123,
18852
19571
  stop_sequences=["stopSequences"],
18853
19572
  temperature=123,
18854
- top_k=123,
18855
19573
  top_p=123
18856
19574
  )
18857
19575
  )
@@ -18944,7 +19662,6 @@ class CfnPromptVersion(
18944
19662
  "max_tokens": "maxTokens",
18945
19663
  "stop_sequences": "stopSequences",
18946
19664
  "temperature": "temperature",
18947
- "top_k": "topK",
18948
19665
  "top_p": "topP",
18949
19666
  },
18950
19667
  )
@@ -18955,7 +19672,6 @@ class CfnPromptVersion(
18955
19672
  max_tokens: typing.Optional[jsii.Number] = None,
18956
19673
  stop_sequences: typing.Optional[typing.Sequence[builtins.str]] = None,
18957
19674
  temperature: typing.Optional[jsii.Number] = None,
18958
- top_k: typing.Optional[jsii.Number] = None,
18959
19675
  top_p: typing.Optional[jsii.Number] = None,
18960
19676
  ) -> None:
18961
19677
  '''Contains inference configurations related to model inference for a prompt.
@@ -18965,7 +19681,6 @@ class CfnPromptVersion(
18965
19681
  :param max_tokens: The maximum number of tokens to return in the response.
18966
19682
  :param stop_sequences: A list of strings that define sequences after which the model will stop generating.
18967
19683
  :param temperature: Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
18968
- :param top_k: Sample from the k most likely next tokens.
18969
19684
  :param top_p: The percentage of most-likely candidates that the model considers for the next token.
18970
19685
 
18971
19686
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html
@@ -18981,7 +19696,6 @@ class CfnPromptVersion(
18981
19696
  max_tokens=123,
18982
19697
  stop_sequences=["stopSequences"],
18983
19698
  temperature=123,
18984
- top_k=123,
18985
19699
  top_p=123
18986
19700
  )
18987
19701
  '''
@@ -18990,7 +19704,6 @@ class CfnPromptVersion(
18990
19704
  check_type(argname="argument max_tokens", value=max_tokens, expected_type=type_hints["max_tokens"])
18991
19705
  check_type(argname="argument stop_sequences", value=stop_sequences, expected_type=type_hints["stop_sequences"])
18992
19706
  check_type(argname="argument temperature", value=temperature, expected_type=type_hints["temperature"])
18993
- check_type(argname="argument top_k", value=top_k, expected_type=type_hints["top_k"])
18994
19707
  check_type(argname="argument top_p", value=top_p, expected_type=type_hints["top_p"])
18995
19708
  self._values: typing.Dict[builtins.str, typing.Any] = {}
18996
19709
  if max_tokens is not None:
@@ -18999,8 +19712,6 @@ class CfnPromptVersion(
18999
19712
  self._values["stop_sequences"] = stop_sequences
19000
19713
  if temperature is not None:
19001
19714
  self._values["temperature"] = temperature
19002
- if top_k is not None:
19003
- self._values["top_k"] = top_k
19004
19715
  if top_p is not None:
19005
19716
  self._values["top_p"] = top_p
19006
19717
 
@@ -19033,15 +19744,6 @@ class CfnPromptVersion(
19033
19744
  result = self._values.get("temperature")
19034
19745
  return typing.cast(typing.Optional[jsii.Number], result)
19035
19746
 
19036
- @builtins.property
19037
- def top_k(self) -> typing.Optional[jsii.Number]:
19038
- '''Sample from the k most likely next tokens.
19039
-
19040
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html#cfn-bedrock-promptversion-promptmodelinferenceconfiguration-topk
19041
- '''
19042
- result = self._values.get("top_k")
19043
- return typing.cast(typing.Optional[jsii.Number], result)
19044
-
19045
19747
  @builtins.property
19046
19748
  def top_p(self) -> typing.Optional[jsii.Number]:
19047
19749
  '''The percentage of most-likely candidates that the model considers for the next token.
@@ -19134,10 +19836,10 @@ class CfnPromptVersion(
19134
19836
  jsii_struct_bases=[],
19135
19837
  name_mapping={
19136
19838
  "name": "name",
19839
+ "template_configuration": "templateConfiguration",
19137
19840
  "template_type": "templateType",
19138
19841
  "inference_configuration": "inferenceConfiguration",
19139
19842
  "model_id": "modelId",
19140
- "template_configuration": "templateConfiguration",
19141
19843
  },
19142
19844
  )
19143
19845
  class PromptVariantProperty:
@@ -19145,18 +19847,18 @@ class CfnPromptVersion(
19145
19847
  self,
19146
19848
  *,
19147
19849
  name: builtins.str,
19850
+ template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
19148
19851
  template_type: builtins.str,
19149
19852
  inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
19150
19853
  model_id: typing.Optional[builtins.str] = None,
19151
- template_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
19152
19854
  ) -> None:
19153
19855
  '''Contains details about a variant of the prompt.
19154
19856
 
19155
19857
  :param name: The name of the prompt variant.
19858
+ :param template_configuration: Contains configurations for the prompt template.
19156
19859
  :param template_type: The type of prompt template to use.
19157
19860
  :param inference_configuration: Contains inference configurations for the prompt variant.
19158
19861
  :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.
19159
- :param template_configuration: Contains configurations for the prompt template.
19160
19862
 
19161
19863
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html
19162
19864
  :exampleMetadata: fixture=_generated
@@ -19169,6 +19871,16 @@ class CfnPromptVersion(
19169
19871
 
19170
19872
  prompt_variant_property = bedrock.CfnPromptVersion.PromptVariantProperty(
19171
19873
  name="name",
19874
+ template_configuration=bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty(
19875
+ text=bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty(
19876
+ text="text",
19877
+
19878
+ # the properties below are optional
19879
+ input_variables=[bedrock.CfnPromptVersion.PromptInputVariableProperty(
19880
+ name="name"
19881
+ )]
19882
+ )
19883
+ ),
19172
19884
  template_type="templateType",
19173
19885
 
19174
19886
  # the properties below are optional
@@ -19177,40 +19889,28 @@ class CfnPromptVersion(
19177
19889
  max_tokens=123,
19178
19890
  stop_sequences=["stopSequences"],
19179
19891
  temperature=123,
19180
- top_k=123,
19181
19892
  top_p=123
19182
19893
  )
19183
19894
  ),
19184
- model_id="modelId",
19185
- template_configuration=bedrock.CfnPromptVersion.PromptTemplateConfigurationProperty(
19186
- text=bedrock.CfnPromptVersion.TextPromptTemplateConfigurationProperty(
19187
- text="text",
19188
-
19189
- # the properties below are optional
19190
- input_variables=[bedrock.CfnPromptVersion.PromptInputVariableProperty(
19191
- name="name"
19192
- )]
19193
- )
19194
- )
19895
+ model_id="modelId"
19195
19896
  )
19196
19897
  '''
19197
19898
  if __debug__:
19198
19899
  type_hints = typing.get_type_hints(_typecheckingstub__0527e63017fac779f764e66c7e3ec7544382203f5ff233de501b3fde25894461)
19199
19900
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
19901
+ check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
19200
19902
  check_type(argname="argument template_type", value=template_type, expected_type=type_hints["template_type"])
19201
19903
  check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
19202
19904
  check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
19203
- check_type(argname="argument template_configuration", value=template_configuration, expected_type=type_hints["template_configuration"])
19204
19905
  self._values: typing.Dict[builtins.str, typing.Any] = {
19205
19906
  "name": name,
19907
+ "template_configuration": template_configuration,
19206
19908
  "template_type": template_type,
19207
19909
  }
19208
19910
  if inference_configuration is not None:
19209
19911
  self._values["inference_configuration"] = inference_configuration
19210
19912
  if model_id is not None:
19211
19913
  self._values["model_id"] = model_id
19212
- if template_configuration is not None:
19213
- self._values["template_configuration"] = template_configuration
19214
19914
 
19215
19915
  @builtins.property
19216
19916
  def name(self) -> builtins.str:
@@ -19222,6 +19922,18 @@ class CfnPromptVersion(
19222
19922
  assert result is not None, "Required property 'name' is missing"
19223
19923
  return typing.cast(builtins.str, result)
19224
19924
 
19925
+ @builtins.property
19926
+ def template_configuration(
19927
+ self,
19928
+ ) -> typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.PromptTemplateConfigurationProperty"]:
19929
+ '''Contains configurations for the prompt template.
19930
+
19931
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-templateconfiguration
19932
+ '''
19933
+ result = self._values.get("template_configuration")
19934
+ assert result is not None, "Required property 'template_configuration' is missing"
19935
+ return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.PromptTemplateConfigurationProperty"], result)
19936
+
19225
19937
  @builtins.property
19226
19938
  def template_type(self) -> builtins.str:
19227
19939
  '''The type of prompt template to use.
@@ -19252,17 +19964,6 @@ class CfnPromptVersion(
19252
19964
  result = self._values.get("model_id")
19253
19965
  return typing.cast(typing.Optional[builtins.str], result)
19254
19966
 
19255
- @builtins.property
19256
- def template_configuration(
19257
- self,
19258
- ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.PromptTemplateConfigurationProperty"]]:
19259
- '''Contains configurations for the prompt template.
19260
-
19261
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-templateconfiguration
19262
- '''
19263
- result = self._values.get("template_configuration")
19264
- return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.PromptTemplateConfigurationProperty"]], result)
19265
-
19266
19967
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
19267
19968
  return isinstance(rhs, self.__class__) and rhs._values == self._values
19268
19969
 
@@ -19375,7 +20076,7 @@ class CfnPromptVersionProps:
19375
20076
 
19376
20077
  :param prompt_arn: The Amazon Resource Name (ARN) of the version of the prompt.
19377
20078
  :param description: The description of the prompt version.
19378
- :param tags: A map of tag keys and values.
20079
+ :param tags: A map of tags attached to the prompt version and their values.
19379
20080
 
19380
20081
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html
19381
20082
  :exampleMetadata: fixture=_generated
@@ -19430,7 +20131,7 @@ class CfnPromptVersionProps:
19430
20131
 
19431
20132
  @builtins.property
19432
20133
  def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
19433
- '''A map of tag keys and values.
20134
+ '''A map of tags attached to the prompt version and their values.
19434
20135
 
19435
20136
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-tags
19436
20137
  '''
@@ -19644,6 +20345,12 @@ class FoundationModelIdentifier(
19644
20345
  '''Base model "amazon.titan-tg1-large".'''
19645
20346
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_TG1_LARGE"))
19646
20347
 
20348
+ @jsii.python.classproperty
20349
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_HAIKU_20241022_V1_0")
20350
+ def ANTHROPIC_CLAUDE_3_5_HAIKU_20241022_V1_0(cls) -> "FoundationModelIdentifier":
20351
+ '''Base model "anthropic.claude-3-5-haiku-20241022-v1:0".'''
20352
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_HAIKU_20241022_V1_0"))
20353
+
19647
20354
  @jsii.python.classproperty
19648
20355
  @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0")
19649
20356
  def ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0(cls) -> "FoundationModelIdentifier":
@@ -20175,6 +20882,8 @@ __all__ = [
20175
20882
  "CfnAgentAlias",
20176
20883
  "CfnAgentAliasProps",
20177
20884
  "CfnAgentProps",
20885
+ "CfnApplicationInferenceProfile",
20886
+ "CfnApplicationInferenceProfileProps",
20178
20887
  "CfnDataSource",
20179
20888
  "CfnDataSourceProps",
20180
20889
  "CfnFlow",
@@ -20540,6 +21249,78 @@ def _typecheckingstub__b4f714080f6d4f9b0a3fe85a8425a8ba69698695e35d6fbd9d710ca5d
20540
21249
  """Type checking stubs"""
20541
21250
  pass
20542
21251
 
21252
+ def _typecheckingstub__a2222de49518232a3824d971182922daf44d6255370c3805992fca295b2904ad(
21253
+ scope: _constructs_77d1e7e8.Construct,
21254
+ id: builtins.str,
21255
+ *,
21256
+ inference_profile_name: builtins.str,
21257
+ description: typing.Optional[builtins.str] = None,
21258
+ model_source: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
21259
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
21260
+ ) -> None:
21261
+ """Type checking stubs"""
21262
+ pass
21263
+
21264
+ def _typecheckingstub__4d2e339334daf20f2a812f78dadefad7c0714dbaaafdfe61e138ba0cfb3f07e2(
21265
+ inspector: _TreeInspector_488e0dd5,
21266
+ ) -> None:
21267
+ """Type checking stubs"""
21268
+ pass
21269
+
21270
+ def _typecheckingstub__d0b7fff48c27eff9823a04431a3cb684b46b8434a66cf5f1941f73cf8eba5762(
21271
+ props: typing.Mapping[builtins.str, typing.Any],
21272
+ ) -> None:
21273
+ """Type checking stubs"""
21274
+ pass
21275
+
21276
+ def _typecheckingstub__6aae972c3170b196c6e4fa5bf8d0dd4b8b0b49a1c0f56c506e744e0442f85c7c(
21277
+ value: builtins.str,
21278
+ ) -> None:
21279
+ """Type checking stubs"""
21280
+ pass
21281
+
21282
+ def _typecheckingstub__2c6572f5531b0a792b64f808b10a21a42b92c9f7be81c2527cca65319dc19869(
21283
+ value: typing.Optional[builtins.str],
21284
+ ) -> None:
21285
+ """Type checking stubs"""
21286
+ pass
21287
+
21288
+ def _typecheckingstub__2237f6f7b3816378634fc620ae2448fa846fa47396f09bc7c0b5e8a0902d65ae(
21289
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty]],
21290
+ ) -> None:
21291
+ """Type checking stubs"""
21292
+ pass
21293
+
21294
+ def _typecheckingstub__e13f50624dfcb2d9c61a18114e7992a8def4ddd2f6f340c352ac98a5668d7eea(
21295
+ value: typing.Optional[typing.List[_CfnTag_f6864754]],
21296
+ ) -> None:
21297
+ """Type checking stubs"""
21298
+ pass
21299
+
21300
+ def _typecheckingstub__ef9de36422391b892f90691f22e956a086a03a2e131a35b0986b5b63d905255f(
21301
+ *,
21302
+ model_arn: typing.Optional[builtins.str] = None,
21303
+ ) -> None:
21304
+ """Type checking stubs"""
21305
+ pass
21306
+
21307
+ def _typecheckingstub__4170b8c8243e2096b7c99037eb0c8874b28fe6d08432e8c6fd045defb2d99d81(
21308
+ *,
21309
+ copy_from: builtins.str,
21310
+ ) -> None:
21311
+ """Type checking stubs"""
21312
+ pass
21313
+
21314
+ def _typecheckingstub__396027668dce29a45dd42acb9bb8358fa9135a15e45d6925e8a78acced3bd78d(
21315
+ *,
21316
+ inference_profile_name: builtins.str,
21317
+ description: typing.Optional[builtins.str] = None,
21318
+ model_source: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
21319
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
21320
+ ) -> None:
21321
+ """Type checking stubs"""
21322
+ pass
21323
+
20543
21324
  def _typecheckingstub__8b6230da788965416b3262c41917eaab2193b3cfccf7a03f313a8c19186a6b75(
20544
21325
  scope: _constructs_77d1e7e8.Construct,
20545
21326
  id: builtins.str,
@@ -21121,9 +21902,18 @@ def _typecheckingstub__3eab89f770734deb893367e044b113c86911377a918b039f1ba9310a3
21121
21902
  """Type checking stubs"""
21122
21903
  pass
21123
21904
 
21905
+ def _typecheckingstub__7a58b1756431d0127fbde4a9b98f71b8bd861fde50f58d8b27f6621481f6898a(
21906
+ *,
21907
+ guardrail_identifier: typing.Optional[builtins.str] = None,
21908
+ guardrail_version: typing.Optional[builtins.str] = None,
21909
+ ) -> None:
21910
+ """Type checking stubs"""
21911
+ pass
21912
+
21124
21913
  def _typecheckingstub__004ed148a98b01e41f3efd077553224d0e5ce97fd3842fc0c6be6c28accdc6cc(
21125
21914
  *,
21126
21915
  knowledge_base_id: builtins.str,
21916
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
21127
21917
  model_id: typing.Optional[builtins.str] = None,
21128
21918
  ) -> None:
21129
21919
  """Type checking stubs"""
@@ -21147,6 +21937,7 @@ def _typecheckingstub__38478491ab5facb49d25af7399145bf3032f8b76fc619392d4da744bd
21147
21937
  def _typecheckingstub__b9e2aaf75cba4595f32ad6457fae055981f8fb7d76d181537ab0d3241fa7866d(
21148
21938
  *,
21149
21939
  source_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.PromptFlowNodeSourceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
21940
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
21150
21941
  ) -> None:
21151
21942
  """Type checking stubs"""
21152
21943
  pass
@@ -21195,7 +21986,6 @@ def _typecheckingstub__4b72bde5473c072da139578869709761ca3585ad0bf7391b769225231
21195
21986
  max_tokens: typing.Optional[jsii.Number] = None,
21196
21987
  stop_sequences: typing.Optional[typing.Sequence[builtins.str]] = None,
21197
21988
  temperature: typing.Optional[jsii.Number] = None,
21198
- top_k: typing.Optional[jsii.Number] = None,
21199
21989
  top_p: typing.Optional[jsii.Number] = None,
21200
21990
  ) -> None:
21201
21991
  """Type checking stubs"""
@@ -21500,9 +22290,18 @@ def _typecheckingstub__9b55ad1cfa9b68dc6dff2440039243220846238d1a04de053105a499f
21500
22290
  """Type checking stubs"""
21501
22291
  pass
21502
22292
 
22293
+ def _typecheckingstub__e730caca77d30abef7bb7cb2c01702883c895d80378652c3f9f4bd88643dc186(
22294
+ *,
22295
+ guardrail_identifier: typing.Optional[builtins.str] = None,
22296
+ guardrail_version: typing.Optional[builtins.str] = None,
22297
+ ) -> None:
22298
+ """Type checking stubs"""
22299
+ pass
22300
+
21503
22301
  def _typecheckingstub__17b9fe30408d688aaf08f87e21950af81c63d804d7021f8f66de0b47e6aa51be(
21504
22302
  *,
21505
22303
  knowledge_base_id: builtins.str,
22304
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
21506
22305
  model_id: typing.Optional[builtins.str] = None,
21507
22306
  ) -> None:
21508
22307
  """Type checking stubs"""
@@ -21526,6 +22325,7 @@ def _typecheckingstub__5ed3b9d7d58ce0e3983c2d3d2353ab30d7ce6785a86992996e15622f2
21526
22325
  def _typecheckingstub__62c4630f7833caba0eae680e960eadd4fb8eef6ef080839f7a47f079f386a1be(
21527
22326
  *,
21528
22327
  source_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
22328
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
21529
22329
  ) -> None:
21530
22330
  """Type checking stubs"""
21531
22331
  pass
@@ -21574,7 +22374,6 @@ def _typecheckingstub__296008f3af7867aca83108accdbdf386a68d143c6a178bb785d89777b
21574
22374
  max_tokens: typing.Optional[jsii.Number] = None,
21575
22375
  stop_sequences: typing.Optional[typing.Sequence[builtins.str]] = None,
21576
22376
  temperature: typing.Optional[jsii.Number] = None,
21577
- top_k: typing.Optional[jsii.Number] = None,
21578
22377
  top_p: typing.Optional[jsii.Number] = None,
21579
22378
  ) -> None:
21580
22379
  """Type checking stubs"""
@@ -22149,7 +22948,6 @@ def _typecheckingstub__d348efba187570a443093419bc85fbc24f754a9496fbfc85e29bb7e40
22149
22948
  max_tokens: typing.Optional[jsii.Number] = None,
22150
22949
  stop_sequences: typing.Optional[typing.Sequence[builtins.str]] = None,
22151
22950
  temperature: typing.Optional[jsii.Number] = None,
22152
- top_k: typing.Optional[jsii.Number] = None,
22153
22951
  top_p: typing.Optional[jsii.Number] = None,
22154
22952
  ) -> None:
22155
22953
  """Type checking stubs"""
@@ -22165,10 +22963,10 @@ def _typecheckingstub__fde740ede958bf60edc6a98392bd083868fd4fd5f6ba5698705fc5e13
22165
22963
  def _typecheckingstub__84ac4a525676aedbb60bd913121b2941e7f39f8599421758678b789b5ad67a98(
22166
22964
  *,
22167
22965
  name: builtins.str,
22966
+ template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
22168
22967
  template_type: builtins.str,
22169
22968
  inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
22170
22969
  model_id: typing.Optional[builtins.str] = None,
22171
- template_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
22172
22970
  ) -> None:
22173
22971
  """Type checking stubs"""
22174
22972
  pass
@@ -22263,7 +23061,6 @@ def _typecheckingstub__b58a287b31d21450a61de44a5befbea1f8751449646ed0bbe2b063a20
22263
23061
  max_tokens: typing.Optional[jsii.Number] = None,
22264
23062
  stop_sequences: typing.Optional[typing.Sequence[builtins.str]] = None,
22265
23063
  temperature: typing.Optional[jsii.Number] = None,
22266
- top_k: typing.Optional[jsii.Number] = None,
22267
23064
  top_p: typing.Optional[jsii.Number] = None,
22268
23065
  ) -> None:
22269
23066
  """Type checking stubs"""
@@ -22279,10 +23076,10 @@ def _typecheckingstub__9e84f158eefe2c7ea195f2b73e039de98ab2e293bd6d8b830e0e8b2f1
22279
23076
  def _typecheckingstub__0527e63017fac779f764e66c7e3ec7544382203f5ff233de501b3fde25894461(
22280
23077
  *,
22281
23078
  name: builtins.str,
23079
+ template_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
22282
23080
  template_type: builtins.str,
22283
23081
  inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
22284
23082
  model_id: typing.Optional[builtins.str] = None,
22285
- template_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptTemplateConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
22286
23083
  ) -> None:
22287
23084
  """Type checking stubs"""
22288
23085
  pass