AgentAgentActionGroupArgs

data class AgentAgentActionGroupArgs(val actionGroupExecutor: Output<AgentAgentActionGroupActionGroupExecutorArgs>? = null, val actionGroupName: Output<String>? = null, val actionGroupState: Output<String>? = null, val agentId: Output<String>? = null, val agentVersion: Output<String>? = null, val apiSchema: Output<AgentAgentActionGroupApiSchemaArgs>? = null, val description: Output<String>? = null, val parentActionGroupSignature: Output<String>? = null, val skipResourceInUseCheck: Output<Boolean>? = null) : ConvertibleToJava<AgentAgentActionGroupArgs>

Resource for managing an AWS Agents for Amazon Bedrock Agent Action Group.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.bedrock.AgentAgentActionGroup("example", {
actionGroupName: "example",
agentId: "GGRRAED6JP",
agentVersion: "DRAFT",
skipResourceInUseCheck: true,
actionGroupExecutor: {
lambda: "arn:aws:lambda:us-west-2:123456789012:function:example-function",
},
apiSchema: {
s3: {
s3BucketName: "example-bucket",
s3ObjectKey: "path/to/schema.json",
},
},
});
import pulumi
import pulumi_aws as aws
example = aws.bedrock.AgentAgentActionGroup("example",
action_group_name="example",
agent_id="GGRRAED6JP",
agent_version="DRAFT",
skip_resource_in_use_check=True,
action_group_executor=aws.bedrock.AgentAgentActionGroupActionGroupExecutorArgs(
lambda_="arn:aws:lambda:us-west-2:123456789012:function:example-function",
),
api_schema=aws.bedrock.AgentAgentActionGroupApiSchemaArgs(
s3=aws.bedrock.AgentAgentActionGroupApiSchemaS3Args(
s3_bucket_name="example-bucket",
s3_object_key="path/to/schema.json",
),
))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Bedrock.AgentAgentActionGroup("example", new()
{
ActionGroupName = "example",
AgentId = "GGRRAED6JP",
AgentVersion = "DRAFT",
SkipResourceInUseCheck = true,
ActionGroupExecutor = new Aws.Bedrock.Inputs.AgentAgentActionGroupActionGroupExecutorArgs
{
Lambda = "arn:aws:lambda:us-west-2:123456789012:function:example-function",
},
ApiSchema = new Aws.Bedrock.Inputs.AgentAgentActionGroupApiSchemaArgs
{
S3 = new Aws.Bedrock.Inputs.AgentAgentActionGroupApiSchemaS3Args
{
S3BucketName = "example-bucket",
S3ObjectKey = "path/to/schema.json",
},
},
});
});
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.NewAgentAgentActionGroup(ctx, "example", &bedrock.AgentAgentActionGroupArgs{
ActionGroupName: pulumi.String("example"),
AgentId: pulumi.String("GGRRAED6JP"),
AgentVersion: pulumi.String("DRAFT"),
SkipResourceInUseCheck: pulumi.Bool(true),
ActionGroupExecutor: &bedrock.AgentAgentActionGroupActionGroupExecutorArgs{
Lambda: pulumi.String("arn:aws:lambda:us-west-2:123456789012:function:example-function"),
},
ApiSchema: &bedrock.AgentAgentActionGroupApiSchemaArgs{
S3: &bedrock.AgentAgentActionGroupApiSchemaS3Args{
S3BucketName: pulumi.String("example-bucket"),
S3ObjectKey: pulumi.String("path/to/schema.json"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentAgentActionGroup;
import com.pulumi.aws.bedrock.AgentAgentActionGroupArgs;
import com.pulumi.aws.bedrock.inputs.AgentAgentActionGroupActionGroupExecutorArgs;
import com.pulumi.aws.bedrock.inputs.AgentAgentActionGroupApiSchemaArgs;
import com.pulumi.aws.bedrock.inputs.AgentAgentActionGroupApiSchemaS3Args;
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) {
var example = new AgentAgentActionGroup("example", AgentAgentActionGroupArgs.builder()
.actionGroupName("example")
.agentId("GGRRAED6JP")
.agentVersion("DRAFT")
.skipResourceInUseCheck(true)
.actionGroupExecutor(AgentAgentActionGroupActionGroupExecutorArgs.builder()
.lambda("arn:aws:lambda:us-west-2:123456789012:function:example-function")
.build())
.apiSchema(AgentAgentActionGroupApiSchemaArgs.builder()
.s3(AgentAgentActionGroupApiSchemaS3Args.builder()
.s3BucketName("example-bucket")
.s3ObjectKey("path/to/schema.json")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:bedrock:AgentAgentActionGroup
properties:
actionGroupName: example
agentId: GGRRAED6JP
agentVersion: DRAFT
skipResourceInUseCheck: true
actionGroupExecutor:
lambda: arn:aws:lambda:us-west-2:123456789012:function:example-function
apiSchema:
s3:
s3BucketName: example-bucket
s3ObjectKey: path/to/schema.json

Import

Using pulumi import, import Agents for Amazon Bedrock Agent Action Group the action group ID, the agent ID, and the agent version separated by ,. For example:

$ pulumi import aws:bedrock/agentAgentActionGroup:AgentAgentActionGroup example MMAUDBZTH4,GGRRAED6JP,DRAFT

Constructors

Link copied to clipboard
constructor(actionGroupExecutor: Output<AgentAgentActionGroupActionGroupExecutorArgs>? = null, actionGroupName: Output<String>? = null, actionGroupState: Output<String>? = null, agentId: Output<String>? = null, agentVersion: Output<String>? = null, apiSchema: Output<AgentAgentActionGroupApiSchemaArgs>? = null, description: Output<String>? = null, parentActionGroupSignature: Output<String>? = null, skipResourceInUseCheck: Output<Boolean>? = null)

Properties

Link copied to clipboard

ARN of the Lambda function containing the business logic that is carried out upon invoking the action or custom control method for handling the information elicited from the user. See action_group_executor block for details.

Link copied to clipboard
val actionGroupName: Output<String>? = null

Name of the action group.

Link copied to clipboard
val actionGroupState: Output<String>? = null

Whether the action group is available for the agent to invoke or not when sending an InvokeAgent request. Valid values: ENABLED, DISABLED.

Link copied to clipboard
val agentId: Output<String>? = null

The unique identifier of the agent for which to create the action group.

Link copied to clipboard
val agentVersion: Output<String>? = null

Version of the agent for which to create the action group. Valid values: DRAFT.

Link copied to clipboard

Either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas. See api_schema block for details. The following arguments are optional:

Link copied to clipboard
val description: Output<String>? = null

Description of the action group.

Link copied to clipboard
val parentActionGroupSignature: Output<String>? = null

To allow your agent to request the user for additional information when trying to complete a task, set this argument to AMAZON.UserInput. You must leave the description, api_schema, and action_group_executor arguments blank for this action group. Valid values: AMAZON.UserInput.

Link copied to clipboard
val skipResourceInUseCheck: Output<Boolean>? = null

Whether the in-use check is skipped when deleting the action group.

Functions

Link copied to clipboard
open override fun toJava(): AgentAgentActionGroupArgs