PromptAgentResourceProperty Struct
Contains specifications for an Amazon Bedrock agent with which to use the prompt.
For more information, see Create a prompt using Prompt management and Automate tasks in your application using conversational agents .
| Source | |
|---|---|
| Type last changed |
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 promptAgentResourceProperty: bedrock.CfnPromptVersion.PromptAgentResourceProperty = {
agentIdentifier: 'agentIdentifier',
};
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
prompt_agent_resource_property = bedrock.CfnPromptVersion.PromptAgentResourceProperty(
agent_identifier="agentIdentifier"
)
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.*;
PromptAgentResourceProperty promptAgentResourceProperty = PromptAgentResourceProperty.builder()
.agentIdentifier("agentIdentifier")
.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 promptAgentResourceProperty = new PromptAgentResourceProperty {
AgentIdentifier = "agentIdentifier"
};
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"
promptAgentResourceProperty := &PromptAgentResourceProperty{
AgentIdentifier: jsii.String("agentIdentifier"),
}
Properties
agentIdentifierstringagent_identifierstragentIdentifierStringAgentIdentifierstringAgentIdentifier*string required #The ARN of the agent with which to use the prompt.