AgentAgentAliasArgs

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

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

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)

Properties

Link copied to clipboard
val agentAliasName: Output<String>? = null

Name of the alias.

Link copied to clipboard
val agentId: Output<String>? = null

Identifier of the agent to create an alias for. The following arguments are optional:

Link copied to clipboard
val description: Output<String>? = null

Description of the alias.

Link copied to clipboard

Details about the routing configuration of the alias. See routing_configuration Block for details.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard

*/

Functions

Link copied to clipboard
open override fun toJava(): AgentAgentAliasArgs