AWS v6.54.0 published on Friday, Sep 27, 2024 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,
});
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:
- Agent
Id string - Unique identifier of the agent.
- Agent
Version List<GetSummaries Agent Agent Versions Agent Version Summary> - List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
- Agent
Id string - Unique identifier of the agent.
- Agent
Version []GetSummaries Agent Agent Versions Agent Version Summary - List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
- agent
Id String - Unique identifier of the agent.
- agent
Version List<GetSummaries Agent Agent Versions Agent Version Summary> - List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
- agent
Id string - Unique identifier of the agent.
- agent
Version GetSummaries Agent Agent Versions Agent Version Summary[] - 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_ Sequence[Getsummaries Agent Agent Versions Agent Version Summary] - List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
- agent
Id String - Unique identifier of the agent.
- agent
Version List<Property Map>Summaries - 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:
- Agent
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Agent
Version List<GetSummaries Agent Agent Versions Agent Version Summary> - List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
- Agent
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Agent
Version []GetSummaries Agent Agent Versions Agent Version Summary - List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
- agent
Id String - id String
- The provider-assigned unique ID for this managed resource.
- agent
Version List<GetSummaries Agent Agent Versions Agent Version Summary> - List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
- agent
Id string - id string
- The provider-assigned unique ID for this managed resource.
- agent
Version GetSummaries Agent Agent Versions Agent Version Summary[] - 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_ Sequence[Getsummaries Agent Agent Versions Agent Version Summary] - List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
- agent
Id String - id String
- The provider-assigned unique ID for this managed resource.
- agent
Version List<Property Map>Summaries - List of objects, each of which contains information about a version of the agent. See Agent Version Summaries
Supporting Types
GetAgentAgentVersionsAgentVersionSummary
- Agent
Name string - Name of agent to which the version belongs.
- Agent
Status string - Status of the agent to which the version belongs.
- Agent
Version string - Version of the agent.
- Created
At 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
- Updated
At string - Time at which the version was last updated.
- Guardrail
Configurations List<GetAgent Agent Versions Agent Version Summary Guardrail Configuration>
- Agent
Name string - Name of agent to which the version belongs.
- Agent
Status string - Status of the agent to which the version belongs.
- Agent
Version string - Version of the agent.
- Created
At 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
- Updated
At string - Time at which the version was last updated.
- Guardrail
Configurations []GetAgent Agent Versions Agent Version Summary Guardrail Configuration
- agent
Name String - Name of agent to which the version belongs.
- agent
Status String - Status of the agent to which the version belongs.
- agent
Version String - Version of the agent.
- created
At 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
- updated
At String - Time at which the version was last updated.
- guardrail
Configurations List<GetAgent Agent Versions Agent Version Summary Guardrail Configuration>
- agent
Name string - Name of agent to which the version belongs.
- agent
Status string - Status of the agent to which the version belongs.
- agent
Version string - Version of the agent.
- created
At 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
- updated
At string - Time at which the version was last updated.
- guardrail
Configurations GetAgent Agent Versions Agent Version Summary Guardrail Configuration[]
- 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[GetAgent Agent Versions Agent Version Summary Guardrail Configuration]
- agent
Name String - Name of agent to which the version belongs.
- agent
Status String - Status of the agent to which the version belongs.
- agent
Version String - Version of the agent.
- created
At 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
- updated
At String - Time at which the version was last updated.
- guardrail
Configurations List<Property Map>
GetAgentAgentVersionsAgentVersionSummaryGuardrailConfiguration
- Guardrail
Identifier string - Unique identifier of the guardrail.
- Guardrail
Version string - Version of the guardrail.
- Guardrail
Identifier string - Unique identifier of the guardrail.
- Guardrail
Version string - Version of the guardrail.
- guardrail
Identifier String - Unique identifier of the guardrail.
- guardrail
Version String - Version of the guardrail.
- guardrail
Identifier string - Unique identifier of the guardrail.
- guardrail
Version string - Version of the guardrail.
- guardrail_
identifier str - Unique identifier of the guardrail.
- guardrail_
version str - Version of the guardrail.
- guardrail
Identifier String - Unique identifier of the guardrail.
- guardrail
Version 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.