CfnPromptMixinProps
- class aws_cdk.mixins_preview.aws_bedrock.mixins.CfnPromptMixinProps(*, customer_encryption_key_arn=None, default_variant=None, description=None, name=None, tags=None, variants=None)
Bases:
objectProperties for CfnPromptPropsMixin.
- Parameters:
customer_encryption_key_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.default_variant (
Optional[str]) – The name of the default variant for the prompt. This value must match thenamefield in the relevant PromptVariant object.description (
Optional[str]) – The description of the prompt.name (
Optional[str]) – The name of the prompt.tags (
Optional[Mapping[str,str]]) – Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - Tag naming limits and requirements - Tagging best practicesvariants (
Union[IResolvable,Sequence[Union[IResolvable,PromptVariantProperty,Dict[str,Any]]],None]) – A list of objects, each containing details about a variant of the prompt.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrock import mixins as bedrock_mixins # additional_model_request_fields: Any # any: Any # auto: Any # json: Any cfn_prompt_mixin_props = bedrock_mixins.CfnPromptMixinProps( customer_encryption_key_arn="customerEncryptionKeyArn", default_variant="defaultVariant", description="description", name="name", tags={ "tags_key": "tags" }, variants=[bedrock_mixins.CfnPromptPropsMixin.PromptVariantProperty( additional_model_request_fields=additional_model_request_fields, gen_ai_resource=bedrock_mixins.CfnPromptPropsMixin.PromptGenAiResourceProperty( agent=bedrock_mixins.CfnPromptPropsMixin.PromptAgentResourceProperty( agent_identifier="agentIdentifier" ) ), inference_configuration=bedrock_mixins.CfnPromptPropsMixin.PromptInferenceConfigurationProperty( text=bedrock_mixins.CfnPromptPropsMixin.PromptModelInferenceConfigurationProperty( max_tokens=123, stop_sequences=["stopSequences"], temperature=123, top_p=123 ) ), metadata=[bedrock_mixins.CfnPromptPropsMixin.PromptMetadataEntryProperty( key="key", value="value" )], model_id="modelId", name="name", template_configuration=bedrock_mixins.CfnPromptPropsMixin.PromptTemplateConfigurationProperty( chat=bedrock_mixins.CfnPromptPropsMixin.ChatPromptTemplateConfigurationProperty( input_variables=[bedrock_mixins.CfnPromptPropsMixin.PromptInputVariableProperty( name="name" )], messages=[bedrock_mixins.CfnPromptPropsMixin.MessageProperty( content=[bedrock_mixins.CfnPromptPropsMixin.ContentBlockProperty( cache_point=bedrock_mixins.CfnPromptPropsMixin.CachePointBlockProperty( type="type" ), text="text" )], role="role" )], system=[bedrock_mixins.CfnPromptPropsMixin.SystemContentBlockProperty( cache_point=bedrock_mixins.CfnPromptPropsMixin.CachePointBlockProperty( type="type" ), text="text" )], tool_configuration=bedrock_mixins.CfnPromptPropsMixin.ToolConfigurationProperty( tool_choice=bedrock_mixins.CfnPromptPropsMixin.ToolChoiceProperty( any=any, auto=auto, tool=bedrock_mixins.CfnPromptPropsMixin.SpecificToolChoiceProperty( name="name" ) ), tools=[bedrock_mixins.CfnPromptPropsMixin.ToolProperty( cache_point=bedrock_mixins.CfnPromptPropsMixin.CachePointBlockProperty( type="type" ), tool_spec=bedrock_mixins.CfnPromptPropsMixin.ToolSpecificationProperty( description="description", input_schema=bedrock_mixins.CfnPromptPropsMixin.ToolInputSchemaProperty( json=json ), name="name" ) )] ) ), text=bedrock_mixins.CfnPromptPropsMixin.TextPromptTemplateConfigurationProperty( cache_point=bedrock_mixins.CfnPromptPropsMixin.CachePointBlockProperty( type="type" ), input_variables=[bedrock_mixins.CfnPromptPropsMixin.PromptInputVariableProperty( name="name" )], text="text", text_s3_location=bedrock_mixins.CfnPromptPropsMixin.TextS3LocationProperty( bucket="bucket", key="key", version="version" ) ) ), template_type="templateType" )] )
Attributes
- customer_encryption_key_arn
The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.
- default_variant
The name of the default variant for the prompt.
This value must match the
namefield in the relevant PromptVariant object.
- description
The description of the prompt.
- name
The name of the prompt.
- tags
.
- See:
- Type:
Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources
- variants
A list of objects, each containing details about a variant of the prompt.