getAgentAgentVersions function

Future<GetAgentAgentVersionsResult> getAgentAgentVersions(
  1. GetAgentAgentVersionsArgs args, {
  2. InvokeOptions? options,
})

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,
});
import pulumi
import pulumi_aws as aws

test = aws.bedrock.get_agent_agent_versions(agent_id=test_aws_bedrockagent_agent["agentId"])
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,
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/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
	})
}
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

data "aws_bedrock_getagentagentversions" "test" {
  agent_id = testAwsBedrockagentAgent.agentId
}
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.ArrayList;
import java.util.Arrays;
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());

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

args Arguments passed to this invoke. Arguments for getAgentAgentVersions. options Invoke options controlling this call.

Implementation

Future<GetAgentAgentVersionsResult> getAgentAgentVersions(
  GetAgentAgentVersionsArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'aws:bedrock/getAgentAgentVersions:getAgentAgentVersions',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetAgentAgentVersionsResult.fromMap(result);
}