1. Packages
  2. AWS Native
  3. API Docs
  4. bedrock
  5. getAgent

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

aws-native.bedrock.getAgent

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

    Definition of AWS::Bedrock::Agent Resource Type

    Using getAgent

    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 getAgent(args: GetAgentArgs, opts?: InvokeOptions): Promise<GetAgentResult>
    function getAgentOutput(args: GetAgentOutputArgs, opts?: InvokeOptions): Output<GetAgentResult>
    def get_agent(agent_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetAgentResult
    def get_agent_output(agent_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetAgentResult]
    func LookupAgent(ctx *Context, args *LookupAgentArgs, opts ...InvokeOption) (*LookupAgentResult, error)
    func LookupAgentOutput(ctx *Context, args *LookupAgentOutputArgs, opts ...InvokeOption) LookupAgentResultOutput

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

    public static class GetAgent 
    {
        public static Task<GetAgentResult> InvokeAsync(GetAgentArgs args, InvokeOptions? opts = null)
        public static Output<GetAgentResult> Invoke(GetAgentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAgentResult> getAgent(GetAgentArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:bedrock:getAgent
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AgentId string
    Identifier for a resource.
    AgentId string
    Identifier for a resource.
    agentId String
    Identifier for a resource.
    agentId string
    Identifier for a resource.
    agent_id str
    Identifier for a resource.
    agentId String
    Identifier for a resource.

    getAgent Result

    The following output properties are available:

    ActionGroups List<Pulumi.AwsNative.Bedrock.Outputs.AgentActionGroup>
    List of ActionGroups
    AgentArn string
    Arn representation of the Agent.
    AgentId string
    Identifier for a resource.
    AgentName string
    Name for a resource.
    AgentResourceRoleArn string
    ARN of a IAM role.
    AgentStatus Pulumi.AwsNative.Bedrock.AgentStatus
    AgentVersion string
    Draft Agent Version.
    CreatedAt string
    Time Stamp.
    CustomerEncryptionKeyArn string
    A KMS key ARN
    Description string
    Description of the Resource.
    FailureReasons List<string>
    Failure Reasons for Error.
    FoundationModel string
    ARN or name of a Bedrock model.
    IdleSessionTtlInSeconds double
    Max Session Time.
    Instruction string
    Instruction for the agent.
    KnowledgeBases List<Pulumi.AwsNative.Bedrock.Outputs.AgentKnowledgeBase>
    List of Agent Knowledge Bases
    PreparedAt string
    Time Stamp.
    PromptOverrideConfiguration Pulumi.AwsNative.Bedrock.Outputs.AgentPromptOverrideConfiguration
    RecommendedActions List<string>
    The recommended actions users can take to resolve an error in failureReasons.
    Tags Dictionary<string, string>
    TestAliasTags Dictionary<string, string>
    UpdatedAt string
    Time Stamp.
    ActionGroups []AgentActionGroup
    List of ActionGroups
    AgentArn string
    Arn representation of the Agent.
    AgentId string
    Identifier for a resource.
    AgentName string
    Name for a resource.
    AgentResourceRoleArn string
    ARN of a IAM role.
    AgentStatus AgentStatus
    AgentVersion string
    Draft Agent Version.
    CreatedAt string
    Time Stamp.
    CustomerEncryptionKeyArn string
    A KMS key ARN
    Description string
    Description of the Resource.
    FailureReasons []string
    Failure Reasons for Error.
    FoundationModel string
    ARN or name of a Bedrock model.
    IdleSessionTtlInSeconds float64
    Max Session Time.
    Instruction string
    Instruction for the agent.
    KnowledgeBases []AgentKnowledgeBase
    List of Agent Knowledge Bases
    PreparedAt string
    Time Stamp.
    PromptOverrideConfiguration AgentPromptOverrideConfiguration
    RecommendedActions []string
    The recommended actions users can take to resolve an error in failureReasons.
    Tags map[string]string
    TestAliasTags map[string]string
    UpdatedAt string
    Time Stamp.
    actionGroups List<AgentActionGroup>
    List of ActionGroups
    agentArn String
    Arn representation of the Agent.
    agentId String
    Identifier for a resource.
    agentName String
    Name for a resource.
    agentResourceRoleArn String
    ARN of a IAM role.
    agentStatus AgentStatus
    agentVersion String
    Draft Agent Version.
    createdAt String
    Time Stamp.
    customerEncryptionKeyArn String
    A KMS key ARN
    description String
    Description of the Resource.
    failureReasons List<String>
    Failure Reasons for Error.
    foundationModel String
    ARN or name of a Bedrock model.
    idleSessionTtlInSeconds Double
    Max Session Time.
    instruction String
    Instruction for the agent.
    knowledgeBases List<AgentKnowledgeBase>
    List of Agent Knowledge Bases
    preparedAt String
    Time Stamp.
    promptOverrideConfiguration AgentPromptOverrideConfiguration
    recommendedActions List<String>
    The recommended actions users can take to resolve an error in failureReasons.
    tags Map<String,String>
    testAliasTags Map<String,String>
    updatedAt String
    Time Stamp.
    actionGroups AgentActionGroup[]
    List of ActionGroups
    agentArn string
    Arn representation of the Agent.
    agentId string
    Identifier for a resource.
    agentName string
    Name for a resource.
    agentResourceRoleArn string
    ARN of a IAM role.
    agentStatus AgentStatus
    agentVersion string
    Draft Agent Version.
    createdAt string
    Time Stamp.
    customerEncryptionKeyArn string
    A KMS key ARN
    description string
    Description of the Resource.
    failureReasons string[]
    Failure Reasons for Error.
    foundationModel string
    ARN or name of a Bedrock model.
    idleSessionTtlInSeconds number
    Max Session Time.
    instruction string
    Instruction for the agent.
    knowledgeBases AgentKnowledgeBase[]
    List of Agent Knowledge Bases
    preparedAt string
    Time Stamp.
    promptOverrideConfiguration AgentPromptOverrideConfiguration
    recommendedActions string[]
    The recommended actions users can take to resolve an error in failureReasons.
    tags {[key: string]: string}
    testAliasTags {[key: string]: string}
    updatedAt string
    Time Stamp.
    action_groups Sequence[AgentActionGroup]
    List of ActionGroups
    agent_arn str
    Arn representation of the Agent.
    agent_id str
    Identifier for a resource.
    agent_name str
    Name for a resource.
    agent_resource_role_arn str
    ARN of a IAM role.
    agent_status AgentStatus
    agent_version str
    Draft Agent Version.
    created_at str
    Time Stamp.
    customer_encryption_key_arn str
    A KMS key ARN
    description str
    Description of the Resource.
    failure_reasons Sequence[str]
    Failure Reasons for Error.
    foundation_model str
    ARN or name of a Bedrock model.
    idle_session_ttl_in_seconds float
    Max Session Time.
    instruction str
    Instruction for the agent.
    knowledge_bases Sequence[AgentKnowledgeBase]
    List of Agent Knowledge Bases
    prepared_at str
    Time Stamp.
    prompt_override_configuration AgentPromptOverrideConfiguration
    recommended_actions Sequence[str]
    The recommended actions users can take to resolve an error in failureReasons.
    tags Mapping[str, str]
    test_alias_tags Mapping[str, str]
    updated_at str
    Time Stamp.
    actionGroups List<Property Map>
    List of ActionGroups
    agentArn String
    Arn representation of the Agent.
    agentId String
    Identifier for a resource.
    agentName String
    Name for a resource.
    agentResourceRoleArn String
    ARN of a IAM role.
    agentStatus "CREATING" | "PREPARING" | "PREPARED" | "NOT_PREPARED" | "DELETING" | "FAILED" | "VERSIONING" | "UPDATING"
    agentVersion String
    Draft Agent Version.
    createdAt String
    Time Stamp.
    customerEncryptionKeyArn String
    A KMS key ARN
    description String
    Description of the Resource.
    failureReasons List<String>
    Failure Reasons for Error.
    foundationModel String
    ARN or name of a Bedrock model.
    idleSessionTtlInSeconds Number
    Max Session Time.
    instruction String
    Instruction for the agent.
    knowledgeBases List<Property Map>
    List of Agent Knowledge Bases
    preparedAt String
    Time Stamp.
    promptOverrideConfiguration Property Map
    recommendedActions List<String>
    The recommended actions users can take to resolve an error in failureReasons.
    tags Map<String>
    testAliasTags Map<String>
    updatedAt String
    Time Stamp.

    Supporting Types

    AgentActionGroup

    actionGroupName String
    Name of the action group
    actionGroupExecutor Property Map
    actionGroupState "ENABLED" | "DISABLED"
    apiSchema Property Map | Property Map
    description String
    Description of action group
    parentActionGroupSignature "AMAZON.UserInput"
    skipResourceInUseCheckOnDelete Boolean
    Specifies whether to allow deleting action group while it is in use.

    AgentActionGroupExecutor

    Lambda string
    ARN of a Lambda.
    Lambda string
    ARN of a Lambda.
    lambda String
    ARN of a Lambda.
    lambda string
    ARN of a Lambda.
    lambda_ str
    ARN of a Lambda.
    lambda String
    ARN of a Lambda.

    AgentActionGroupSignature

    AgentActionGroupState

    AgentApiSchema0Properties

    AgentApiSchema1Properties

    Payload string
    String OpenAPI Payload
    Payload string
    String OpenAPI Payload
    payload String
    String OpenAPI Payload
    payload string
    String OpenAPI Payload
    payload str
    String OpenAPI Payload
    payload String
    String OpenAPI Payload

    AgentCreationMode

    AgentInferenceConfiguration

    MaximumLength double
    Maximum length of output
    StopSequences List<string>
    List of stop sequences
    Temperature double
    Controls randomness, higher values increase diversity
    TopK double
    Sample from the k most likely next tokens
    TopP double
    Cumulative probability cutoff for token selection
    MaximumLength float64
    Maximum length of output
    StopSequences []string
    List of stop sequences
    Temperature float64
    Controls randomness, higher values increase diversity
    TopK float64
    Sample from the k most likely next tokens
    TopP float64
    Cumulative probability cutoff for token selection
    maximumLength Double
    Maximum length of output
    stopSequences List<String>
    List of stop sequences
    temperature Double
    Controls randomness, higher values increase diversity
    topK Double
    Sample from the k most likely next tokens
    topP Double
    Cumulative probability cutoff for token selection
    maximumLength number
    Maximum length of output
    stopSequences string[]
    List of stop sequences
    temperature number
    Controls randomness, higher values increase diversity
    topK number
    Sample from the k most likely next tokens
    topP number
    Cumulative probability cutoff for token selection
    maximum_length float
    Maximum length of output
    stop_sequences Sequence[str]
    List of stop sequences
    temperature float
    Controls randomness, higher values increase diversity
    top_k float
    Sample from the k most likely next tokens
    top_p float
    Cumulative probability cutoff for token selection
    maximumLength Number
    Maximum length of output
    stopSequences List<String>
    List of stop sequences
    temperature Number
    Controls randomness, higher values increase diversity
    topK Number
    Sample from the k most likely next tokens
    topP Number
    Cumulative probability cutoff for token selection

    AgentKnowledgeBase

    Description string
    Description of the Resource.
    KnowledgeBaseId string
    Identifier for a resource.
    KnowledgeBaseState Pulumi.AwsNative.Bedrock.AgentKnowledgeBaseState
    Description string
    Description of the Resource.
    KnowledgeBaseId string
    Identifier for a resource.
    KnowledgeBaseState AgentKnowledgeBaseState
    description String
    Description of the Resource.
    knowledgeBaseId String
    Identifier for a resource.
    knowledgeBaseState AgentKnowledgeBaseState
    description string
    Description of the Resource.
    knowledgeBaseId string
    Identifier for a resource.
    knowledgeBaseState AgentKnowledgeBaseState
    description str
    Description of the Resource.
    knowledge_base_id str
    Identifier for a resource.
    knowledge_base_state AgentKnowledgeBaseState
    description String
    Description of the Resource.
    knowledgeBaseId String
    Identifier for a resource.
    knowledgeBaseState "ENABLED" | "DISABLED"

    AgentKnowledgeBaseState

    AgentPromptConfiguration

    AgentPromptOverrideConfiguration

    PromptConfigurations []AgentPromptConfiguration
    List of BasePromptConfiguration
    OverrideLambda string
    ARN of a Lambda.
    promptConfigurations List<AgentPromptConfiguration>
    List of BasePromptConfiguration
    overrideLambda String
    ARN of a Lambda.
    promptConfigurations AgentPromptConfiguration[]
    List of BasePromptConfiguration
    overrideLambda string
    ARN of a Lambda.
    prompt_configurations Sequence[AgentPromptConfiguration]
    List of BasePromptConfiguration
    override_lambda str
    ARN of a Lambda.
    promptConfigurations List<Property Map>
    List of BasePromptConfiguration
    overrideLambda String
    ARN of a Lambda.

    AgentPromptState

    AgentPromptType

    AgentS3Identifier

    S3BucketName string
    A bucket in S3.
    S3ObjectKey string
    A object key in S3.
    S3BucketName string
    A bucket in S3.
    S3ObjectKey string
    A object key in S3.
    s3BucketName String
    A bucket in S3.
    s3ObjectKey String
    A object key in S3.
    s3BucketName string
    A bucket in S3.
    s3ObjectKey string
    A object key in S3.
    s3_bucket_name str
    A bucket in S3.
    s3_object_key str
    A object key in S3.
    s3BucketName String
    A bucket in S3.
    s3ObjectKey String
    A object key in S3.

    AgentStatus

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi