Skip to content
v2.277.0

CfnPromptVersionProps Struct ​

Properties for defining a CfnPromptVersion.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const cfnPromptVersionProps: bedrock.CfnPromptVersionProps = {
  promptArn: 'promptArn',

  // the properties below are optional
  description: 'description',
  tags: {
    tagsKey: 'tags',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock

cfn_prompt_version_props = bedrock.CfnPromptVersionProps(
    prompt_arn="promptArn",

    # the properties below are optional
    description="description",
    tags={
        "tags_key": "tags"
    }
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;

CfnPromptVersionProps cfnPromptVersionProps = CfnPromptVersionProps.builder()
        .promptArn("promptArn")

        // the properties below are optional
        .description("description")
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;

var cfnPromptVersionProps = new CfnPromptVersionProps {
    PromptArn = "promptArn",

    // the properties below are optional
    Description = "description",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnPromptVersionProps := &CfnPromptVersionProps{
	PromptArn: jsii.String("promptArn"),

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The description of the prompt version.
promptArnstringprompt_arnstrpromptArnStringPromptArnstringPromptArn*stringrequired#
The Amazon Resource Name (ARN) of the version of the prompt.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string#
A map of tags attached to the prompt version and their values.