class PromptGenAiResource
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.PromptGenAiResource |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#PromptGenAiResource |
![]() | software.amazon.awscdk.services.bedrock.alpha.PromptGenAiResource |
![]() | aws_cdk.aws_bedrock_alpha.PromptGenAiResource |
![]() | @aws-cdk/aws-bedrock-alpha » PromptGenAiResource |
Abstract base class for prompt GenAI resource configurations.
This provides a high-level abstraction over the underlying CloudFormation GenAI resource properties, offering a more developer-friendly interface while maintaining full compatibility with the underlying AWS Bedrock service.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';
declare const agentAlias: bedrock_alpha.AgentAlias;
const promptGenAiResource = bedrock_alpha.PromptGenAiResource.agent({
agentAlias: agentAlias,
});
Initializer
new PromptGenAiResource()
Methods
Name | Description |
---|---|
static agent(props) | Creates an agent GenAI resource configuration. |
static agent(props)
public static agent(props: AgentGenAiResourceProps): PromptGenAiResource
Parameters
- props
Agent
Gen Ai Resource Props
Returns
Creates an agent GenAI resource configuration.