class CfnPromptVersionPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnPromptVersionPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnPromptVersionPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnPromptVersionPropsMixin |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnPromptVersionPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnPromptVersionPropsMixin |
Implements
IMixin
Extends
Mixin
Creates a static snapshot of your prompt that can be deployed to production.
For more information, see Deploy prompts using Prompt management by creating versions in the Amazon Bedrock User Guide.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
import * as cdk from 'aws-cdk-lib';
declare const mergeStrategy: cdk.IMergeStrategy;
const cfnPromptVersionPropsMixin = new bedrock_mixins.CfnPromptVersionPropsMixin({
description: 'description',
promptArn: 'promptArn',
tags: {
tagsKey: 'tags',
},
}, /* all optional props */ {
strategy: mergeStrategy,
});
Initializer
new CfnPromptVersionPropsMixin(props: CfnPromptVersionMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Prompt Version Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Bedrock::PromptVersion.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | IMerge | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
IMerge
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): void
Parameters
- construct
IConstruct
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript