1. Packages
  2. AWS
  3. API Docs
  4. bedrock
  5. getAgentAgentVersions
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.bedrock.getAgentAgentVersions

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    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"])
    
    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
    	})
    }
    
    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 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());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: aws:bedrock:getAgentAgentVersions
          Arguments:
            agentId: ${testAwsBedrockagentAgent.agentId}
    

    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>
    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]
    func GetAgentAgentVersions(ctx *Context, args *GetAgentAgentVersionsArgs, opts ...InvokeOption) (*GetAgentAgentVersionsResult, error)
    func GetAgentAgentVersionsOutput(ctx *Context, args *GetAgentAgentVersionsOutputArgs, opts ...InvokeOption) GetAgentAgentVersionsResultOutput

    > 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)
    }
    public static CompletableFuture<GetAgentAgentVersionsResult> getAgentAgentVersions(GetAgentAgentVersionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:bedrock/getAgentAgentVersions:getAgentAgentVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AgentId 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 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 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 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 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 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 string
    Name of agent to which the version belongs.
    AgentStatus string
    Status of the agent to which the version belongs.
    AgentVersion string
    Version of the agent.
    CreatedAt string
    Time at which the version was created.
    Description string
    Description of the version of the agent.

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

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

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

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

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

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

    GetAgentAgentVersionsAgentVersionSummaryGuardrailConfiguration

    GuardrailIdentifier string
    Unique identifier of the guardrail.
    GuardrailVersion string
    Version of the guardrail.
    GuardrailIdentifier string
    Unique identifier of the guardrail.
    GuardrailVersion string
    Version of the guardrail.
    guardrailIdentifier String
    Unique identifier of the guardrail.
    guardrailVersion String
    Version of the guardrail.
    guardrailIdentifier string
    Unique identifier of the guardrail.
    guardrailVersion string
    Version of the guardrail.
    guardrail_identifier str
    Unique identifier of the guardrail.
    guardrail_version str
    Version of the guardrail.
    guardrailIdentifier String
    Unique identifier of the guardrail.
    guardrailVersion 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.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi