1. Packages
  2. AWS
  3. API Docs
  4. bedrock
  5. getAgentAgentVersions
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.bedrock.getAgentAgentVersions

Explore with Pulumi AI

Data source for managing an AWS Amazon BedrockAgent Agent Versions.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = aws.bedrock.getAgentAgentVersions({
    agentId: testAwsBedrockagentAgent.agentId,
});
Copy
import pulumi
import pulumi_aws as aws

test = aws.bedrock.get_agent_agent_versions(agent_id=test_aws_bedrockagent_agent["agentId"])
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/bedrock"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bedrock.GetAgentAgentVersions(ctx, &bedrock.GetAgentAgentVersionsArgs{
			AgentId: testAwsBedrockagentAgent.AgentId,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var test = Aws.Bedrock.GetAgentAgentVersions.Invoke(new()
    {
        AgentId = testAwsBedrockagentAgent.AgentId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.BedrockFunctions;
import com.pulumi.aws.bedrock.inputs.GetAgentAgentVersionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var test = BedrockFunctions.getAgentAgentVersions(GetAgentAgentVersionsArgs.builder()
            .agentId(testAwsBedrockagentAgent.agentId())
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: aws:bedrock:getAgentAgentVersions
      arguments:
        agentId: ${testAwsBedrockagentAgent.agentId}
Copy

Using getAgentAgentVersions

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAgentAgentVersions(args: GetAgentAgentVersionsArgs, opts?: InvokeOptions): Promise<GetAgentAgentVersionsResult>
function getAgentAgentVersionsOutput(args: GetAgentAgentVersionsOutputArgs, opts?: InvokeOptions): Output<GetAgentAgentVersionsResult>
Copy
def get_agent_agent_versions(agent_id: Optional[str] = None,
                             agent_version_summaries: Optional[Sequence[GetAgentAgentVersionsAgentVersionSummary]] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAgentAgentVersionsResult
def get_agent_agent_versions_output(agent_id: Optional[pulumi.Input[str]] = None,
                             agent_version_summaries: Optional[pulumi.Input[Sequence[pulumi.Input[GetAgentAgentVersionsAgentVersionSummaryArgs]]]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAgentAgentVersionsResult]
Copy
func GetAgentAgentVersions(ctx *Context, args *GetAgentAgentVersionsArgs, opts ...InvokeOption) (*GetAgentAgentVersionsResult, error)
func GetAgentAgentVersionsOutput(ctx *Context, args *GetAgentAgentVersionsOutputArgs, opts ...InvokeOption) GetAgentAgentVersionsResultOutput
Copy

> Note: This function is named GetAgentAgentVersions in the Go SDK.

public static class GetAgentAgentVersions 
{
    public static Task<GetAgentAgentVersionsResult> InvokeAsync(GetAgentAgentVersionsArgs args, InvokeOptions? opts = null)
    public static Output<GetAgentAgentVersionsResult> Invoke(GetAgentAgentVersionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAgentAgentVersionsResult> getAgentAgentVersions(GetAgentAgentVersionsArgs args, InvokeOptions options)
public static Output<GetAgentAgentVersionsResult> getAgentAgentVersions(GetAgentAgentVersionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:bedrock/getAgentAgentVersions:getAgentAgentVersions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AgentId This property is required. string
Unique identifier of the agent.
AgentVersionSummaries List<GetAgentAgentVersionsAgentVersionSummary>
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
AgentId This property is required. string
Unique identifier of the agent.
AgentVersionSummaries []GetAgentAgentVersionsAgentVersionSummary
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
agentId This property is required. String
Unique identifier of the agent.
agentVersionSummaries List<GetAgentAgentVersionsAgentVersionSummary>
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
agentId This property is required. string
Unique identifier of the agent.
agentVersionSummaries GetAgentAgentVersionsAgentVersionSummary[]
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
agent_id This property is required. str
Unique identifier of the agent.
agent_version_summaries Sequence[GetAgentAgentVersionsAgentVersionSummary]
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
agentId This property is required. String
Unique identifier of the agent.
agentVersionSummaries List<Property Map>
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries

getAgentAgentVersions Result

The following output properties are available:

AgentId string
Id string
The provider-assigned unique ID for this managed resource.
AgentVersionSummaries List<GetAgentAgentVersionsAgentVersionSummary>
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
AgentId string
Id string
The provider-assigned unique ID for this managed resource.
AgentVersionSummaries []GetAgentAgentVersionsAgentVersionSummary
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
agentId String
id String
The provider-assigned unique ID for this managed resource.
agentVersionSummaries List<GetAgentAgentVersionsAgentVersionSummary>
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
agentId string
id string
The provider-assigned unique ID for this managed resource.
agentVersionSummaries GetAgentAgentVersionsAgentVersionSummary[]
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
agent_id str
id str
The provider-assigned unique ID for this managed resource.
agent_version_summaries Sequence[GetAgentAgentVersionsAgentVersionSummary]
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
agentId String
id String
The provider-assigned unique ID for this managed resource.
agentVersionSummaries List<Property Map>
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries

Supporting Types

GetAgentAgentVersionsAgentVersionSummary

AgentName This property is required. string
Name of agent to which the version belongs.
AgentStatus This property is required. string
Status of the agent to which the version belongs.
AgentVersion This property is required. string
Version of the agent.
CreatedAt This property is required. string
Time at which the version was created.
Description This property is required. string
Description of the version of the agent.

  • GuardrailConfiguration - Details aout the guardrail associated with the agent. See Guardrail Configuration
UpdatedAt This property is required. string
Time at which the version was last updated.
GuardrailConfigurations List<GetAgentAgentVersionsAgentVersionSummaryGuardrailConfiguration>
AgentName This property is required. string
Name of agent to which the version belongs.
AgentStatus This property is required. string
Status of the agent to which the version belongs.
AgentVersion This property is required. string
Version of the agent.
CreatedAt This property is required. string
Time at which the version was created.
Description This property is required. string
Description of the version of the agent.

  • GuardrailConfiguration - Details aout the guardrail associated with the agent. See Guardrail Configuration
UpdatedAt This property is required. string
Time at which the version was last updated.
GuardrailConfigurations []GetAgentAgentVersionsAgentVersionSummaryGuardrailConfiguration
agentName This property is required. String
Name of agent to which the version belongs.
agentStatus This property is required. String
Status of the agent to which the version belongs.
agentVersion This property is required. String
Version of the agent.
createdAt This property is required. String
Time at which the version was created.
description This property is required. String
Description of the version of the agent.

  • GuardrailConfiguration - Details aout the guardrail associated with the agent. See Guardrail Configuration
updatedAt This property is required. String
Time at which the version was last updated.
guardrailConfigurations List<GetAgentAgentVersionsAgentVersionSummaryGuardrailConfiguration>
agentName This property is required. string
Name of agent to which the version belongs.
agentStatus This property is required. string
Status of the agent to which the version belongs.
agentVersion This property is required. string
Version of the agent.
createdAt This property is required. string
Time at which the version was created.
description This property is required. string
Description of the version of the agent.

  • GuardrailConfiguration - Details aout the guardrail associated with the agent. See Guardrail Configuration
updatedAt This property is required. string
Time at which the version was last updated.
guardrailConfigurations GetAgentAgentVersionsAgentVersionSummaryGuardrailConfiguration[]
agent_name This property is required. str
Name of agent to which the version belongs.
agent_status This property is required. str
Status of the agent to which the version belongs.
agent_version This property is required. str
Version of the agent.
created_at This property is required. str
Time at which the version was created.
description This property is required. str
Description of the version of the agent.

  • GuardrailConfiguration - Details aout the guardrail associated with the agent. See Guardrail Configuration
updated_at This property is required. str
Time at which the version was last updated.
guardrail_configurations Sequence[GetAgentAgentVersionsAgentVersionSummaryGuardrailConfiguration]
agentName This property is required. String
Name of agent to which the version belongs.
agentStatus This property is required. String
Status of the agent to which the version belongs.
agentVersion This property is required. String
Version of the agent.
createdAt This property is required. String
Time at which the version was created.
description This property is required. String
Description of the version of the agent.

  • GuardrailConfiguration - Details aout the guardrail associated with the agent. See Guardrail Configuration
updatedAt This property is required. String
Time at which the version was last updated.
guardrailConfigurations List<Property Map>

GetAgentAgentVersionsAgentVersionSummaryGuardrailConfiguration

GuardrailIdentifier This property is required. string
Unique identifier of the guardrail.
GuardrailVersion This property is required. string
Version of the guardrail.
GuardrailIdentifier This property is required. string
Unique identifier of the guardrail.
GuardrailVersion This property is required. string
Version of the guardrail.
guardrailIdentifier This property is required. String
Unique identifier of the guardrail.
guardrailVersion This property is required. String
Version of the guardrail.
guardrailIdentifier This property is required. string
Unique identifier of the guardrail.
guardrailVersion This property is required. string
Version of the guardrail.
guardrail_identifier This property is required. str
Unique identifier of the guardrail.
guardrail_version This property is required. str
Version of the guardrail.
guardrailIdentifier This property is required. String
Unique identifier of the guardrail.
guardrailVersion This property is required. String
Version of the guardrail.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.