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: "ABDJFOWER1",
agentVersion: "DRAFT",
skipResourceInUseCheck: true,
actionGroupExecutor: {
lambda: "arn:aws:lambda:us-east-1: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="ABDJFOWER1",
agent_version="DRAFT",
skip_resource_in_use_check=True,
action_group_executor=aws.bedrock.AgentAgentActionGroupActionGroupExecutorArgs(
lambda_="arn:aws:lambda:us-east-1: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 = "ABDJFOWER1",
AgentVersion = "DRAFT",
SkipResourceInUseCheck = true,
ActionGroupExecutor = new Aws.Bedrock.Inputs.AgentAgentActionGroupActionGroupExecutorArgs
{
Lambda = "arn:aws:lambda:us-east-1: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("ABDJFOWER1"),
AgentVersion: pulumi.String("DRAFT"),
SkipResourceInUseCheck: pulumi.Bool(true),
ActionGroupExecutor: &bedrock.AgentAgentActionGroupActionGroupExecutorArgs{
Lambda: pulumi.String("arn:aws:lambda:us-east-1: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("ABDJFOWER1")
.agentVersion("DRAFT")
.skipResourceInUseCheck(true)
.actionGroupExecutor(AgentAgentActionGroupActionGroupExecutorArgs.builder()
.lambda("arn:aws:lambda:us-east-1: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: ABDJFOWER1
agentVersion: DRAFT
skipResourceInUseCheck: true
actionGroupExecutor:
lambda: arn:aws:lambda:us-east-1: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 using the example_id_arg. For example:

$ pulumi import aws:bedrock/agentAgentActionGroup:AgentAgentActionGroup example ABDJFOWER1,HSKTNKANI4,DRAFT

Constructors

Link copied to clipboard
fun AgentAgentActionGroupArgs(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)

Functions

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

Properties

Link copied to clipboard

Configuration of the executor for the Action Group.

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

Name of the Agent Action Group.

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

Id of the Agent for the Action Group.

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

Version of the Agent to attach the Action Group to.

Link copied to clipboard

Configuration of the API Schema for the Action Group.

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