Skip to content

Create Agent Alias

bedrockagent_create_agent_alias R Documentation

Creates an alias of an agent that can be used to deploy the agent

Description

Creates an alias of an agent that can be used to deploy the agent.

Usage

bedrockagent_create_agent_alias(agentAliasName, agentId, clientToken,
  description, routingConfiguration, tags)

Arguments

agentAliasName

[required] The name of the alias.

agentId

[required] The unique identifier of the agent.

clientToken

A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.

description

A description of the alias of the agent.

routingConfiguration

Contains details about the routing configuration of the alias.

tags

Any tags that you want to attach to the alias of the agent.

Value

A list with the following syntax:

list(
  agentAlias = list(
    agentAliasArn = "string",
    agentAliasHistoryEvents = list(
      list(
        endDate = as.POSIXct(
          "2015-01-01"
        ),
        routingConfiguration = list(
          list(
            agentVersion = "string",
            provisionedThroughput = "string"
          )
        ),
        startDate = as.POSIXct(
          "2015-01-01"
        )
      )
    ),
    agentAliasId = "string",
    agentAliasName = "string",
    agentAliasStatus = "CREATING"|"PREPARED"|"FAILED"|"UPDATING"|"DELETING",
    agentId = "string",
    clientToken = "string",
    createdAt = as.POSIXct(
      "2015-01-01"
    ),
    description = "string",
    failureReasons = list(
      "string"
    ),
    routingConfiguration = list(
      list(
        agentVersion = "string",
        provisionedThroughput = "string"
      )
    ),
    updatedAt = as.POSIXct(
      "2015-01-01"
    )
  )
)

Request syntax

svc$create_agent_alias(
  agentAliasName = "string",
  agentId = "string",
  clientToken = "string",
  description = "string",
  routingConfiguration = list(
    list(
      agentVersion = "string",
      provisionedThroughput = "string"
    )
  ),
  tags = list(
    "string"
  )
)