Agent Agent Alias Args
data class AgentAgentAliasArgs(val agentAliasName: Output<String>? = null, val agentId: Output<String>? = null, val description: Output<String>? = null, val routingConfigurations: Output<List<AgentAgentAliasRoutingConfigurationArgs>>? = null, val tags: Output<Map<String, String>>? = null, val timeouts: Output<AgentAgentAliasTimeoutsArgs>? = null) : ConvertibleToJava<AgentAgentAliasArgs>
Resource for managing an AWS Agents for Amazon Bedrock Agent Alias.
Example Usage
Basic Usage
resources:
example:
type: aws:iam:Role
properties:
assumeRolePolicy: ${exampleAgentTrust.json}
namePrefix: AmazonBedrockExecutionRoleForAgents_
exampleRolePolicy:
type: aws:iam:RolePolicy
name: example
properties:
policy: ${exampleAgentPermissions.json}
role: ${example.id}
exampleAgentAgent:
type: aws:bedrock:AgentAgent
name: example
properties:
agentName: my-agent-name
agentResourceRoleArn: ${example.arn}
idleTtl: 500
foundationModel: anthropic.claude-v2
exampleAgentAgentAlias:
type: aws:bedrock:AgentAgentAlias
name: example
properties:
agentAliasName: my-agent-alias
agentId: ${exampleAgentAgent.agentId}
description: Test Alias
variables:
current:
fn::invoke:
function: aws:getCallerIdentity
arguments: {}
currentGetPartition:
fn::invoke:
function: aws:getPartition
arguments: {}
currentGetRegion:
fn::invoke:
function: aws:getRegion
arguments: {}
exampleAgentTrust:
fn::invoke:
function: aws:iam:getPolicyDocument
arguments:
statements:
- actions:
- sts:AssumeRole
principals:
- identifiers:
- bedrock.amazonaws.com
type: Service
conditions:
- test: StringEquals
values:
- ${current.accountId}
variable: aws:SourceAccount
- test: ArnLike
values:
- arn:${currentGetPartition.partition}:bedrock:${currentGetRegion.name}:${current.accountId}:agent/*
variable: AWS:SourceArn
exampleAgentPermissions:
fn::invoke:
function: aws:iam:getPolicyDocument
arguments:
statements:
- actions:
- bedrock:InvokeModel
resources:
- arn:${currentGetPartition.partition}:bedrock:${currentGetRegion.name}::foundation-model/anthropic.claude-v2
Content copied to clipboard
Import
Using pulumi import
, import Agents for Amazon Bedrock Agent Alias using the alias ID and the agent ID separated by ,
. For example:
$ pulumi import aws:bedrock/agentAgentAlias:AgentAgentAlias example 66IVY0GUTF,GGRRAED6JP
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(agentAliasName: Output<String>? = null, agentId: Output<String>? = null, description: Output<String>? = null, routingConfigurations: Output<List<AgentAgentAliasRoutingConfigurationArgs>>? = null, tags: Output<Map<String, String>>? = null, timeouts: Output<AgentAgentAliasTimeoutsArgs>? = null)