interface PromptAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.PromptAttributes |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#PromptAttributes |
![]() | software.amazon.awscdk.services.bedrock.alpha.PromptAttributes |
![]() | aws_cdk.aws_bedrock_alpha.PromptAttributes |
![]() | @aws-cdk/aws-bedrock-alpha ยป PromptAttributes |
Attributes for specifying an imported Bedrock Prompt.
Example
// Import an existing prompt by ARN
const importedPrompt = bedrock.Prompt.fromPromptAttributes(this, 'ImportedPrompt', {
promptArn: 'arn:aws:bedrock:region:account:prompt/prompt-id',
kmsKey: kms.Key.fromKeyArn(this, 'ImportedKey', 'arn:aws:kms:region:account:key/key-id'), // optional
promptVersion: '1', // optional, defaults to 'DRAFT'
});
Properties
Name | Type | Description |
---|---|---|
prompt | string | The ARN of the prompt. |
kms | IKey | Optional KMS encryption key associated with this prompt. |
prompt | string | The version of the prompt. |
promptArn
Type:
string
The ARN of the prompt. Example
"arn:aws:bedrock:us-east-1:123456789012:prompt/PROMPT12345"
kmsKey?
Type:
IKey
(optional, default: undefined - An AWS managed key is used)
Optional KMS encryption key associated with this prompt.
promptVersion?
Type:
string
(optional, default: "DRAFT")
The version of the prompt.