get Agent Agent Versions
suspend fun getAgentAgentVersions(argument: GetAgentAgentVersionsPlainArgs): GetAgentAgentVersionsResult
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,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
test = aws.bedrock.get_agent_agent_versions(agent_id=test_aws_bedrockagent_agent["agentId"])
Content copied to clipboard
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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
test:
fn::invoke:
function: aws:bedrock:getAgentAgentVersions
arguments:
agentId: ${testAwsBedrockagentAgent.agentId}
Content copied to clipboard
Return
A collection of values returned by getAgentAgentVersions.
Parameters
argument
A collection of arguments for invoking getAgentAgentVersions.
suspend fun getAgentAgentVersions(agentId: String, agentVersionSummaries: List<GetAgentAgentVersionsAgentVersionSummary>? = null): GetAgentAgentVersionsResult
Return
A collection of values returned by getAgentAgentVersions.
Parameters
agent Id
Unique identifier of the agent.
agent Version Summaries
List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
See also
suspend fun getAgentAgentVersions(argument: suspend GetAgentAgentVersionsPlainArgsBuilder.() -> Unit): GetAgentAgentVersionsResult
Return
A collection of values returned by getAgentAgentVersions.
Parameters
argument
Builder for com.pulumi.aws.bedrock.kotlin.inputs.GetAgentAgentVersionsPlainArgs.