1. Packages
  2. AWS
  3. API Docs
  4. bedrock
  5. AgentFlow
AWS v7.4.0 published on Wednesday, Aug 13, 2025 by Pulumi

aws.bedrock.AgentFlow

Explore with Pulumi AI

aws logo
AWS v7.4.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Resource for managing an AWS Bedrock Agents Flow.

    Example Usage

    The default definition:

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.bedrock.AgentFlow("example", {
        name: "example",
        executionRoleArn: exampleAwsIamRole.arn,
        definition: {
            connections: [
                {
                    name: "FlowInputNodeFlowInputNode0ToPrompt_1PromptsNode0",
                    source: "FlowInputNode",
                    target: "Prompt_1",
                    type: "Data",
                    configuration: {
                        data: {
                            sourceOutput: "document",
                            targetInput: "topic",
                        },
                    },
                },
                {
                    name: "Prompt_1PromptsNode0ToFlowOutputNodeFlowOutputNode0",
                    source: "Prompt_1",
                    target: "FlowOutputNode",
                    type: "Data",
                    configuration: {
                        data: {
                            sourceOutput: "modelCompletion",
                            targetInput: "document",
                        },
                    },
                },
            ],
            nodes: [
                {
                    name: "FlowInputNode",
                    type: "Input",
                    configuration: {
                        input: {},
                    },
                    outputs: [{
                        name: "document",
                        type: "String",
                    }],
                },
                {
                    name: "Prompt_1",
                    type: "Prompt",
                    configuration: {
                        prompt: {
                            sourceConfiguration: {
                                inline: {
                                    modelId: "amazon.titan-text-express-v1",
                                    templateType: "TEXT",
                                    inferenceConfiguration: {
                                        text: {
                                            maxTokens: 2048,
                                            stopSequences: ["User:"],
                                            temperature: 0,
                                            topP: 0.8999999761581421,
                                        },
                                    },
                                    templateConfiguration: {
                                        text: {
                                            text: "Write a paragraph about {{topic}}.",
                                            inputVariables: [{
                                                name: "topic",
                                            }],
                                        },
                                    },
                                },
                            },
                        },
                    },
                    inputs: [{
                        expression: "$.data",
                        name: "topic",
                        type: "String",
                    }],
                    outputs: [{
                        name: "modelCompletion",
                        type: "String",
                    }],
                },
                {
                    name: "FlowOutputNode",
                    type: "Output",
                    configuration: {
                        output: {},
                    },
                    inputs: [{
                        expression: "$.data",
                        name: "document",
                        type: "String",
                    }],
                },
            ],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.bedrock.AgentFlow("example",
        name="example",
        execution_role_arn=example_aws_iam_role["arn"],
        definition={
            "connections": [
                {
                    "name": "FlowInputNodeFlowInputNode0ToPrompt_1PromptsNode0",
                    "source": "FlowInputNode",
                    "target": "Prompt_1",
                    "type": "Data",
                    "configuration": {
                        "data": {
                            "source_output": "document",
                            "target_input": "topic",
                        },
                    },
                },
                {
                    "name": "Prompt_1PromptsNode0ToFlowOutputNodeFlowOutputNode0",
                    "source": "Prompt_1",
                    "target": "FlowOutputNode",
                    "type": "Data",
                    "configuration": {
                        "data": {
                            "source_output": "modelCompletion",
                            "target_input": "document",
                        },
                    },
                },
            ],
            "nodes": [
                {
                    "name": "FlowInputNode",
                    "type": "Input",
                    "configuration": {
                        "input": {},
                    },
                    "outputs": [{
                        "name": "document",
                        "type": "String",
                    }],
                },
                {
                    "name": "Prompt_1",
                    "type": "Prompt",
                    "configuration": {
                        "prompt": {
                            "source_configuration": {
                                "inline": {
                                    "model_id": "amazon.titan-text-express-v1",
                                    "template_type": "TEXT",
                                    "inference_configuration": {
                                        "text": {
                                            "max_tokens": 2048,
                                            "stop_sequences": ["User:"],
                                            "temperature": 0,
                                            "top_p": 0.8999999761581421,
                                        },
                                    },
                                    "template_configuration": {
                                        "text": {
                                            "text": "Write a paragraph about {{topic}}.",
                                            "input_variables": [{
                                                "name": "topic",
                                            }],
                                        },
                                    },
                                },
                            },
                        },
                    },
                    "inputs": [{
                        "expression": "$.data",
                        "name": "topic",
                        "type": "String",
                    }],
                    "outputs": [{
                        "name": "modelCompletion",
                        "type": "String",
                    }],
                },
                {
                    "name": "FlowOutputNode",
                    "type": "Output",
                    "configuration": {
                        "output": {},
                    },
                    "inputs": [{
                        "expression": "$.data",
                        "name": "document",
                        "type": "String",
                    }],
                },
            ],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := bedrock.NewAgentFlow(ctx, "example", &bedrock.AgentFlowArgs{
    			Name:             pulumi.String("example"),
    			ExecutionRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
    			Definition: &bedrock.AgentFlowDefinitionArgs{
    				Connections: bedrock.AgentFlowDefinitionConnectionArray{
    					&bedrock.AgentFlowDefinitionConnectionArgs{
    						Name:   pulumi.String("FlowInputNodeFlowInputNode0ToPrompt_1PromptsNode0"),
    						Source: pulumi.String("FlowInputNode"),
    						Target: pulumi.String("Prompt_1"),
    						Type:   pulumi.String("Data"),
    						Configuration: &bedrock.AgentFlowDefinitionConnectionConfigurationArgs{
    							Data: &bedrock.AgentFlowDefinitionConnectionConfigurationDataArgs{
    								SourceOutput: pulumi.String("document"),
    								TargetInput:  pulumi.String("topic"),
    							},
    						},
    					},
    					&bedrock.AgentFlowDefinitionConnectionArgs{
    						Name:   pulumi.String("Prompt_1PromptsNode0ToFlowOutputNodeFlowOutputNode0"),
    						Source: pulumi.String("Prompt_1"),
    						Target: pulumi.String("FlowOutputNode"),
    						Type:   pulumi.String("Data"),
    						Configuration: &bedrock.AgentFlowDefinitionConnectionConfigurationArgs{
    							Data: &bedrock.AgentFlowDefinitionConnectionConfigurationDataArgs{
    								SourceOutput: pulumi.String("modelCompletion"),
    								TargetInput:  pulumi.String("document"),
    							},
    						},
    					},
    				},
    				Nodes: bedrock.AgentFlowDefinitionNodeArray{
    					&bedrock.AgentFlowDefinitionNodeArgs{
    						Name: pulumi.String("FlowInputNode"),
    						Type: pulumi.String("Input"),
    						Configuration: &bedrock.AgentFlowDefinitionNodeConfigurationArgs{
    							Input: &bedrock.AgentFlowDefinitionNodeConfigurationInputTypeArgs{},
    						},
    						Outputs: bedrock.AgentFlowDefinitionNodeOutputTypeArray{
    							&bedrock.AgentFlowDefinitionNodeOutputTypeArgs{
    								Name: pulumi.String("document"),
    								Type: pulumi.String("String"),
    							},
    						},
    					},
    					&bedrock.AgentFlowDefinitionNodeArgs{
    						Name: pulumi.String("Prompt_1"),
    						Type: pulumi.String("Prompt"),
    						Configuration: &bedrock.AgentFlowDefinitionNodeConfigurationArgs{
    							Prompt: &bedrock.AgentFlowDefinitionNodeConfigurationPromptArgs{
    								SourceConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationArgs{
    									Inline: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineArgs{
    										ModelId:      pulumi.String("amazon.titan-text-express-v1"),
    										TemplateType: pulumi.String("TEXT"),
    										InferenceConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationArgs{
    											Text: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationTextArgs{
    												MaxTokens: pulumi.Int(2048),
    												StopSequences: pulumi.StringArray{
    													pulumi.String("User:"),
    												},
    												Temperature: pulumi.Float64(0),
    												TopP:        pulumi.Float64(0.8999999761581421),
    											},
    										},
    										TemplateConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationArgs{
    											Text: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextArgs{
    												Text: pulumi.String("Write a paragraph about {{topic}}."),
    												InputVariables: bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariableArray{
    													&bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariableArgs{
    														Name: pulumi.String("topic"),
    													},
    												},
    											},
    										},
    									},
    								},
    							},
    						},
    						Inputs: bedrock.AgentFlowDefinitionNodeInputTypeArray{
    							&bedrock.AgentFlowDefinitionNodeInputTypeArgs{
    								Expression: pulumi.String("$.data"),
    								Name:       pulumi.String("topic"),
    								Type:       pulumi.String("String"),
    							},
    						},
    						Outputs: bedrock.AgentFlowDefinitionNodeOutputTypeArray{
    							&bedrock.AgentFlowDefinitionNodeOutputTypeArgs{
    								Name: pulumi.String("modelCompletion"),
    								Type: pulumi.String("String"),
    							},
    						},
    					},
    					&bedrock.AgentFlowDefinitionNodeArgs{
    						Name: pulumi.String("FlowOutputNode"),
    						Type: pulumi.String("Output"),
    						Configuration: &bedrock.AgentFlowDefinitionNodeConfigurationArgs{
    							Output: &bedrock.AgentFlowDefinitionNodeConfigurationOutputTypeArgs{},
    						},
    						Inputs: bedrock.AgentFlowDefinitionNodeInputTypeArray{
    							&bedrock.AgentFlowDefinitionNodeInputTypeArgs{
    								Expression: pulumi.String("$.data"),
    								Name:       pulumi.String("document"),
    								Type:       pulumi.String("String"),
    							},
    						},
    					},
    				},
    			},
    		})
    		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 example = new Aws.Bedrock.AgentFlow("example", new()
        {
            Name = "example",
            ExecutionRoleArn = exampleAwsIamRole.Arn,
            Definition = new Aws.Bedrock.Inputs.AgentFlowDefinitionArgs
            {
                Connections = new[]
                {
                    new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionArgs
                    {
                        Name = "FlowInputNodeFlowInputNode0ToPrompt_1PromptsNode0",
                        Source = "FlowInputNode",
                        Target = "Prompt_1",
                        Type = "Data",
                        Configuration = new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionConfigurationArgs
                        {
                            Data = new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionConfigurationDataArgs
                            {
                                SourceOutput = "document",
                                TargetInput = "topic",
                            },
                        },
                    },
                    new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionArgs
                    {
                        Name = "Prompt_1PromptsNode0ToFlowOutputNodeFlowOutputNode0",
                        Source = "Prompt_1",
                        Target = "FlowOutputNode",
                        Type = "Data",
                        Configuration = new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionConfigurationArgs
                        {
                            Data = new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionConfigurationDataArgs
                            {
                                SourceOutput = "modelCompletion",
                                TargetInput = "document",
                            },
                        },
                    },
                },
                Nodes = new[]
                {
                    new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeArgs
                    {
                        Name = "FlowInputNode",
                        Type = "Input",
                        Configuration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationArgs
                        {
                            Input = null,
                        },
                        Outputs = new[]
                        {
                            new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeOutputArgs
                            {
                                Name = "document",
                                Type = "String",
                            },
                        },
                    },
                    new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeArgs
                    {
                        Name = "Prompt_1",
                        Type = "Prompt",
                        Configuration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationArgs
                        {
                            Prompt = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptArgs
                            {
                                SourceConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationArgs
                                {
                                    Inline = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineArgs
                                    {
                                        ModelId = "amazon.titan-text-express-v1",
                                        TemplateType = "TEXT",
                                        InferenceConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationArgs
                                        {
                                            Text = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationTextArgs
                                            {
                                                MaxTokens = 2048,
                                                StopSequences = new[]
                                                {
                                                    "User:",
                                                },
                                                Temperature = 0,
                                                TopP = 0.8999999761581421,
                                            },
                                        },
                                        TemplateConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationArgs
                                        {
                                            Text = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextArgs
                                            {
                                                Text = "Write a paragraph about {{topic}}.",
                                                InputVariables = new[]
                                                {
                                                    new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariableArgs
                                                    {
                                                        Name = "topic",
                                                    },
                                                },
                                            },
                                        },
                                    },
                                },
                            },
                        },
                        Inputs = new[]
                        {
                            new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeInputArgs
                            {
                                Expression = "$.data",
                                Name = "topic",
                                Type = "String",
                            },
                        },
                        Outputs = new[]
                        {
                            new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeOutputArgs
                            {
                                Name = "modelCompletion",
                                Type = "String",
                            },
                        },
                    },
                    new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeArgs
                    {
                        Name = "FlowOutputNode",
                        Type = "Output",
                        Configuration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationArgs
                        {
                            Output = null,
                        },
                        Inputs = new[]
                        {
                            new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeInputArgs
                            {
                                Expression = "$.data",
                                Name = "document",
                                Type = "String",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.bedrock.AgentFlow;
    import com.pulumi.aws.bedrock.AgentFlowArgs;
    import com.pulumi.aws.bedrock.inputs.AgentFlowDefinitionArgs;
    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 AgentFlow("example", AgentFlowArgs.builder()
                .name("example")
                .executionRoleArn(exampleAwsIamRole.arn())
                .definition(AgentFlowDefinitionArgs.builder()
                    .connections(                
                        AgentFlowDefinitionConnectionArgs.builder()
                            .name("FlowInputNodeFlowInputNode0ToPrompt_1PromptsNode0")
                            .source("FlowInputNode")
                            .target("Prompt_1")
                            .type("Data")
                            .configuration(AgentFlowDefinitionConnectionConfigurationArgs.builder()
                                .data(AgentFlowDefinitionConnectionConfigurationDataArgs.builder()
                                    .sourceOutput("document")
                                    .targetInput("topic")
                                    .build())
                                .build())
                            .build(),
                        AgentFlowDefinitionConnectionArgs.builder()
                            .name("Prompt_1PromptsNode0ToFlowOutputNodeFlowOutputNode0")
                            .source("Prompt_1")
                            .target("FlowOutputNode")
                            .type("Data")
                            .configuration(AgentFlowDefinitionConnectionConfigurationArgs.builder()
                                .data(AgentFlowDefinitionConnectionConfigurationDataArgs.builder()
                                    .sourceOutput("modelCompletion")
                                    .targetInput("document")
                                    .build())
                                .build())
                            .build())
                    .nodes(                
                        AgentFlowDefinitionNodeArgs.builder()
                            .name("FlowInputNode")
                            .type("Input")
                            .configuration(AgentFlowDefinitionNodeConfigurationArgs.builder()
                                .input(AgentFlowDefinitionNodeConfigurationInputArgs.builder()
                                    .build())
                                .build())
                            .outputs(AgentFlowDefinitionNodeOutputArgs.builder()
                                .name("document")
                                .type("String")
                                .build())
                            .build(),
                        AgentFlowDefinitionNodeArgs.builder()
                            .name("Prompt_1")
                            .type("Prompt")
                            .configuration(AgentFlowDefinitionNodeConfigurationArgs.builder()
                                .prompt(AgentFlowDefinitionNodeConfigurationPromptArgs.builder()
                                    .sourceConfiguration(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationArgs.builder()
                                        .inline(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineArgs.builder()
                                            .modelId("amazon.titan-text-express-v1")
                                            .templateType("TEXT")
                                            .inferenceConfiguration(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationArgs.builder()
                                                .text(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationTextArgs.builder()
                                                    .maxTokens(2048)
                                                    .stopSequences("User:")
                                                    .temperature(0.0)
                                                    .topP(0.8999999761581421)
                                                    .build())
                                                .build())
                                            .templateConfiguration(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationArgs.builder()
                                                .text(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextArgs.builder()
                                                    .text("Write a paragraph about {{topic}}.")
                                                    .inputVariables(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariableArgs.builder()
                                                        .name("topic")
                                                        .build())
                                                    .build())
                                                .build())
                                            .build())
                                        .build())
                                    .build())
                                .build())
                            .inputs(AgentFlowDefinitionNodeInputArgs.builder()
                                .expression("$.data")
                                .name("topic")
                                .type("String")
                                .build())
                            .outputs(AgentFlowDefinitionNodeOutputArgs.builder()
                                .name("modelCompletion")
                                .type("String")
                                .build())
                            .build(),
                        AgentFlowDefinitionNodeArgs.builder()
                            .name("FlowOutputNode")
                            .type("Output")
                            .configuration(AgentFlowDefinitionNodeConfigurationArgs.builder()
                                .output(AgentFlowDefinitionNodeConfigurationOutputArgs.builder()
                                    .build())
                                .build())
                            .inputs(AgentFlowDefinitionNodeInputArgs.builder()
                                .expression("$.data")
                                .name("document")
                                .type("String")
                                .build())
                            .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:bedrock:AgentFlow
        properties:
          name: example
          executionRoleArn: ${exampleAwsIamRole.arn}
          definition:
            connections:
              - name: FlowInputNodeFlowInputNode0ToPrompt_1PromptsNode0
                source: FlowInputNode
                target: Prompt_1
                type: Data
                configuration:
                  data:
                    sourceOutput: document
                    targetInput: topic
              - name: Prompt_1PromptsNode0ToFlowOutputNodeFlowOutputNode0
                source: Prompt_1
                target: FlowOutputNode
                type: Data
                configuration:
                  data:
                    sourceOutput: modelCompletion
                    targetInput: document
            nodes:
              - name: FlowInputNode
                type: Input
                configuration:
                  input: {}
                outputs:
                  - name: document
                    type: String
              - name: Prompt_1
                type: Prompt
                configuration:
                  prompt:
                    sourceConfiguration:
                      inline:
                        modelId: amazon.titan-text-express-v1
                        templateType: TEXT
                        inferenceConfiguration:
                          text:
                            maxTokens: 2048
                            stopSequences:
                              - 'User:'
                            temperature: 0
                            topP: 0.8999999761581421
                        templateConfiguration:
                          text:
                            text: Write a paragraph about {{topic}}.
                            inputVariables:
                              - name: topic
                inputs:
                  - expression: $.data
                    name: topic
                    type: String
                outputs:
                  - name: modelCompletion
                    type: String
              - name: FlowOutputNode
                type: Output
                configuration:
                  output: {}
                inputs:
                  - expression: $.data
                    name: document
                    type: String
    

    Create AgentFlow Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AgentFlow(name: string, args: AgentFlowArgs, opts?: CustomResourceOptions);
    @overload
    def AgentFlow(resource_name: str,
                  args: AgentFlowArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AgentFlow(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  execution_role_arn: Optional[str] = None,
                  customer_encryption_key_arn: Optional[str] = None,
                  definition: Optional[AgentFlowDefinitionArgs] = None,
                  description: Optional[str] = None,
                  name: Optional[str] = None,
                  region: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  timeouts: Optional[AgentFlowTimeoutsArgs] = None)
    func NewAgentFlow(ctx *Context, name string, args AgentFlowArgs, opts ...ResourceOption) (*AgentFlow, error)
    public AgentFlow(string name, AgentFlowArgs args, CustomResourceOptions? opts = null)
    public AgentFlow(String name, AgentFlowArgs args)
    public AgentFlow(String name, AgentFlowArgs args, CustomResourceOptions options)
    
    type: aws:bedrock:AgentFlow
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AgentFlowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AgentFlowArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AgentFlowArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AgentFlowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgentFlowArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var agentFlowResource = new Aws.Bedrock.AgentFlow("agentFlowResource", new()
    {
        ExecutionRoleArn = "string",
        CustomerEncryptionKeyArn = "string",
        Definition = new Aws.Bedrock.Inputs.AgentFlowDefinitionArgs
        {
            Connections = new[]
            {
                new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionArgs
                {
                    Name = "string",
                    Source = "string",
                    Target = "string",
                    Type = "string",
                    Configuration = new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionConfigurationArgs
                    {
                        Conditional = new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionConfigurationConditionalArgs
                        {
                            Condition = "string",
                        },
                        Data = new Aws.Bedrock.Inputs.AgentFlowDefinitionConnectionConfigurationDataArgs
                        {
                            SourceOutput = "string",
                            TargetInput = "string",
                        },
                    },
                },
            },
            Nodes = new[]
            {
                new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeArgs
                {
                    Name = "string",
                    Type = "string",
                    Configuration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationArgs
                    {
                        Agent = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationAgentArgs
                        {
                            AgentAliasArn = "string",
                        },
                        Collector = null,
                        Condition = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationConditionArgs
                        {
                            Conditions = new[]
                            {
                                new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationConditionConditionArgs
                                {
                                    Name = "string",
                                    Expression = "string",
                                },
                            },
                        },
                        InlineCode = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationInlineCodeArgs
                        {
                            Code = "string",
                            Language = "string",
                        },
                        Input = null,
                        Iterator = null,
                        KnowledgeBase = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationKnowledgeBaseArgs
                        {
                            KnowledgeBaseId = "string",
                            ModelId = "string",
                            GuardrailConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfigurationArgs
                            {
                                GuardrailIdentifier = "string",
                                GuardrailVersion = "string",
                            },
                            InferenceConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationArgs
                            {
                                Text = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationTextArgs
                                {
                                    MaxTokens = 0,
                                    StopSequences = new[]
                                    {
                                        "string",
                                    },
                                    Temperature = 0,
                                    TopP = 0,
                                },
                            },
                            NumberOfResults = 0,
                        },
                        LambdaFunction = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationLambdaFunctionArgs
                        {
                            LambdaArn = "string",
                        },
                        Lex = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationLexArgs
                        {
                            BotAliasArn = "string",
                            LocaleId = "string",
                        },
                        Output = null,
                        Prompt = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptArgs
                        {
                            GuardrailConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptGuardrailConfigurationArgs
                            {
                                GuardrailIdentifier = "string",
                                GuardrailVersion = "string",
                            },
                            SourceConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationArgs
                            {
                                Inline = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineArgs
                                {
                                    ModelId = "string",
                                    TemplateType = "string",
                                    AdditionalModelRequestFields = "string",
                                    InferenceConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationArgs
                                    {
                                        Text = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationTextArgs
                                        {
                                            MaxTokens = 0,
                                            StopSequences = new[]
                                            {
                                                "string",
                                            },
                                            Temperature = 0,
                                            TopP = 0,
                                        },
                                    },
                                    TemplateConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationArgs
                                    {
                                        Chat = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatArgs
                                        {
                                            InputVariables = new[]
                                            {
                                                new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariableArgs
                                                {
                                                    Name = "string",
                                                },
                                            },
                                            Messages = new[]
                                            {
                                                new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageArgs
                                                {
                                                    Role = "string",
                                                    Content = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContentArgs
                                                    {
                                                        CachePoint = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContentCachePointArgs
                                                        {
                                                            Type = "string",
                                                        },
                                                        Text = "string",
                                                    },
                                                },
                                            },
                                            Systems = new[]
                                            {
                                                new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemArgs
                                                {
                                                    CachePoint = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePointArgs
                                                    {
                                                        Type = "string",
                                                    },
                                                    Text = "string",
                                                },
                                            },
                                            ToolConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationArgs
                                            {
                                                ToolChoice = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceArgs
                                                {
                                                    Any = null,
                                                    Auto = null,
                                                    Tool = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceToolArgs
                                                    {
                                                        Name = "string",
                                                    },
                                                },
                                                Tools = new[]
                                                {
                                                    new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolArgs
                                                    {
                                                        CachePoint = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolCachePointArgs
                                                        {
                                                            Type = "string",
                                                        },
                                                        ToolSpec = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecArgs
                                                        {
                                                            Name = "string",
                                                            Description = "string",
                                                            InputSchema = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchemaArgs
                                                            {
                                                                Json = "string",
                                                            },
                                                        },
                                                    },
                                                },
                                            },
                                        },
                                        Text = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextArgs
                                        {
                                            Text = "string",
                                            CachePoint = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextCachePointArgs
                                            {
                                                Type = "string",
                                            },
                                            InputVariables = new[]
                                            {
                                                new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariableArgs
                                                {
                                                    Name = "string",
                                                },
                                            },
                                        },
                                    },
                                },
                                Resource = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResourceArgs
                                {
                                    PromptArn = "string",
                                },
                            },
                        },
                        Retrieval = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationRetrievalArgs
                        {
                            ServiceConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationRetrievalServiceConfigurationArgs
                            {
                                S3 = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationRetrievalServiceConfigurationS3Args
                                {
                                    BucketName = "string",
                                },
                            },
                        },
                        Storage = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationStorageArgs
                        {
                            ServiceConfiguration = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationStorageServiceConfigurationArgs
                            {
                                S3 = new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeConfigurationStorageServiceConfigurationS3Args
                                {
                                    BucketName = "string",
                                },
                            },
                        },
                    },
                    Inputs = new[]
                    {
                        new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeInputArgs
                        {
                            Expression = "string",
                            Name = "string",
                            Type = "string",
                            Category = "string",
                        },
                    },
                    Outputs = new[]
                    {
                        new Aws.Bedrock.Inputs.AgentFlowDefinitionNodeOutputArgs
                        {
                            Name = "string",
                            Type = "string",
                        },
                    },
                },
            },
        },
        Description = "string",
        Name = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Bedrock.Inputs.AgentFlowTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := bedrock.NewAgentFlow(ctx, "agentFlowResource", &bedrock.AgentFlowArgs{
    	ExecutionRoleArn:         pulumi.String("string"),
    	CustomerEncryptionKeyArn: pulumi.String("string"),
    	Definition: &bedrock.AgentFlowDefinitionArgs{
    		Connections: bedrock.AgentFlowDefinitionConnectionArray{
    			&bedrock.AgentFlowDefinitionConnectionArgs{
    				Name:   pulumi.String("string"),
    				Source: pulumi.String("string"),
    				Target: pulumi.String("string"),
    				Type:   pulumi.String("string"),
    				Configuration: &bedrock.AgentFlowDefinitionConnectionConfigurationArgs{
    					Conditional: &bedrock.AgentFlowDefinitionConnectionConfigurationConditionalArgs{
    						Condition: pulumi.String("string"),
    					},
    					Data: &bedrock.AgentFlowDefinitionConnectionConfigurationDataArgs{
    						SourceOutput: pulumi.String("string"),
    						TargetInput:  pulumi.String("string"),
    					},
    				},
    			},
    		},
    		Nodes: bedrock.AgentFlowDefinitionNodeArray{
    			&bedrock.AgentFlowDefinitionNodeArgs{
    				Name: pulumi.String("string"),
    				Type: pulumi.String("string"),
    				Configuration: &bedrock.AgentFlowDefinitionNodeConfigurationArgs{
    					Agent: &bedrock.AgentFlowDefinitionNodeConfigurationAgentArgs{
    						AgentAliasArn: pulumi.String("string"),
    					},
    					Collector: &bedrock.AgentFlowDefinitionNodeConfigurationCollectorArgs{},
    					Condition: &bedrock.AgentFlowDefinitionNodeConfigurationConditionArgs{
    						Conditions: bedrock.AgentFlowDefinitionNodeConfigurationConditionConditionArray{
    							&bedrock.AgentFlowDefinitionNodeConfigurationConditionConditionArgs{
    								Name:       pulumi.String("string"),
    								Expression: pulumi.String("string"),
    							},
    						},
    					},
    					InlineCode: &bedrock.AgentFlowDefinitionNodeConfigurationInlineCodeArgs{
    						Code:     pulumi.String("string"),
    						Language: pulumi.String("string"),
    					},
    					Input:    &bedrock.AgentFlowDefinitionNodeConfigurationInputTypeArgs{},
    					Iterator: &bedrock.AgentFlowDefinitionNodeConfigurationIteratorArgs{},
    					KnowledgeBase: &bedrock.AgentFlowDefinitionNodeConfigurationKnowledgeBaseArgs{
    						KnowledgeBaseId: pulumi.String("string"),
    						ModelId:         pulumi.String("string"),
    						GuardrailConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfigurationArgs{
    							GuardrailIdentifier: pulumi.String("string"),
    							GuardrailVersion:    pulumi.String("string"),
    						},
    						InferenceConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationArgs{
    							Text: &bedrock.AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationTextArgs{
    								MaxTokens: pulumi.Int(0),
    								StopSequences: pulumi.StringArray{
    									pulumi.String("string"),
    								},
    								Temperature: pulumi.Float64(0),
    								TopP:        pulumi.Float64(0),
    							},
    						},
    						NumberOfResults: pulumi.Int(0),
    					},
    					LambdaFunction: &bedrock.AgentFlowDefinitionNodeConfigurationLambdaFunctionArgs{
    						LambdaArn: pulumi.String("string"),
    					},
    					Lex: &bedrock.AgentFlowDefinitionNodeConfigurationLexArgs{
    						BotAliasArn: pulumi.String("string"),
    						LocaleId:    pulumi.String("string"),
    					},
    					Output: &bedrock.AgentFlowDefinitionNodeConfigurationOutputTypeArgs{},
    					Prompt: &bedrock.AgentFlowDefinitionNodeConfigurationPromptArgs{
    						GuardrailConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationPromptGuardrailConfigurationArgs{
    							GuardrailIdentifier: pulumi.String("string"),
    							GuardrailVersion:    pulumi.String("string"),
    						},
    						SourceConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationArgs{
    							Inline: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineArgs{
    								ModelId:                      pulumi.String("string"),
    								TemplateType:                 pulumi.String("string"),
    								AdditionalModelRequestFields: pulumi.String("string"),
    								InferenceConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationArgs{
    									Text: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationTextArgs{
    										MaxTokens: pulumi.Int(0),
    										StopSequences: pulumi.StringArray{
    											pulumi.String("string"),
    										},
    										Temperature: pulumi.Float64(0),
    										TopP:        pulumi.Float64(0),
    									},
    								},
    								TemplateConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationArgs{
    									Chat: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatArgs{
    										InputVariables: bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariableArray{
    											&bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariableArgs{
    												Name: pulumi.String("string"),
    											},
    										},
    										Messages: bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageArray{
    											&bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageArgs{
    												Role: pulumi.String("string"),
    												Content: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContentArgs{
    													CachePoint: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContentCachePointArgs{
    														Type: pulumi.String("string"),
    													},
    													Text: pulumi.String("string"),
    												},
    											},
    										},
    										Systems: bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemArray{
    											&bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemArgs{
    												CachePoint: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePointArgs{
    													Type: pulumi.String("string"),
    												},
    												Text: pulumi.String("string"),
    											},
    										},
    										ToolConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationArgs{
    											ToolChoice: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceArgs{
    												Any:  &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAnyArgs{},
    												Auto: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAutoArgs{},
    												Tool: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceToolArgs{
    													Name: pulumi.String("string"),
    												},
    											},
    											Tools: bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolArray{
    												&bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolArgs{
    													CachePoint: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolCachePointArgs{
    														Type: pulumi.String("string"),
    													},
    													ToolSpec: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecArgs{
    														Name:        pulumi.String("string"),
    														Description: pulumi.String("string"),
    														InputSchema: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchemaArgs{
    															Json: pulumi.String("string"),
    														},
    													},
    												},
    											},
    										},
    									},
    									Text: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextArgs{
    										Text: pulumi.String("string"),
    										CachePoint: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextCachePointArgs{
    											Type: pulumi.String("string"),
    										},
    										InputVariables: bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariableArray{
    											&bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariableArgs{
    												Name: pulumi.String("string"),
    											},
    										},
    									},
    								},
    							},
    							Resource: &bedrock.AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResourceArgs{
    								PromptArn: pulumi.String("string"),
    							},
    						},
    					},
    					Retrieval: &bedrock.AgentFlowDefinitionNodeConfigurationRetrievalArgs{
    						ServiceConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationRetrievalServiceConfigurationArgs{
    							S3: &bedrock.AgentFlowDefinitionNodeConfigurationRetrievalServiceConfigurationS3Args{
    								BucketName: pulumi.String("string"),
    							},
    						},
    					},
    					Storage: &bedrock.AgentFlowDefinitionNodeConfigurationStorageArgs{
    						ServiceConfiguration: &bedrock.AgentFlowDefinitionNodeConfigurationStorageServiceConfigurationArgs{
    							S3: &bedrock.AgentFlowDefinitionNodeConfigurationStorageServiceConfigurationS3Args{
    								BucketName: pulumi.String("string"),
    							},
    						},
    					},
    				},
    				Inputs: bedrock.AgentFlowDefinitionNodeInputTypeArray{
    					&bedrock.AgentFlowDefinitionNodeInputTypeArgs{
    						Expression: pulumi.String("string"),
    						Name:       pulumi.String("string"),
    						Type:       pulumi.String("string"),
    						Category:   pulumi.String("string"),
    					},
    				},
    				Outputs: bedrock.AgentFlowDefinitionNodeOutputTypeArray{
    					&bedrock.AgentFlowDefinitionNodeOutputTypeArgs{
    						Name: pulumi.String("string"),
    						Type: pulumi.String("string"),
    					},
    				},
    			},
    		},
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Region:      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &bedrock.AgentFlowTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var agentFlowResource = new AgentFlow("agentFlowResource", AgentFlowArgs.builder()
        .executionRoleArn("string")
        .customerEncryptionKeyArn("string")
        .definition(AgentFlowDefinitionArgs.builder()
            .connections(AgentFlowDefinitionConnectionArgs.builder()
                .name("string")
                .source("string")
                .target("string")
                .type("string")
                .configuration(AgentFlowDefinitionConnectionConfigurationArgs.builder()
                    .conditional(AgentFlowDefinitionConnectionConfigurationConditionalArgs.builder()
                        .condition("string")
                        .build())
                    .data(AgentFlowDefinitionConnectionConfigurationDataArgs.builder()
                        .sourceOutput("string")
                        .targetInput("string")
                        .build())
                    .build())
                .build())
            .nodes(AgentFlowDefinitionNodeArgs.builder()
                .name("string")
                .type("string")
                .configuration(AgentFlowDefinitionNodeConfigurationArgs.builder()
                    .agent(AgentFlowDefinitionNodeConfigurationAgentArgs.builder()
                        .agentAliasArn("string")
                        .build())
                    .collector(AgentFlowDefinitionNodeConfigurationCollectorArgs.builder()
                        .build())
                    .condition(AgentFlowDefinitionNodeConfigurationConditionArgs.builder()
                        .conditions(AgentFlowDefinitionNodeConfigurationConditionConditionArgs.builder()
                            .name("string")
                            .expression("string")
                            .build())
                        .build())
                    .inlineCode(AgentFlowDefinitionNodeConfigurationInlineCodeArgs.builder()
                        .code("string")
                        .language("string")
                        .build())
                    .input(AgentFlowDefinitionNodeConfigurationInputArgs.builder()
                        .build())
                    .iterator(AgentFlowDefinitionNodeConfigurationIteratorArgs.builder()
                        .build())
                    .knowledgeBase(AgentFlowDefinitionNodeConfigurationKnowledgeBaseArgs.builder()
                        .knowledgeBaseId("string")
                        .modelId("string")
                        .guardrailConfiguration(AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfigurationArgs.builder()
                            .guardrailIdentifier("string")
                            .guardrailVersion("string")
                            .build())
                        .inferenceConfiguration(AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationArgs.builder()
                            .text(AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationTextArgs.builder()
                                .maxTokens(0)
                                .stopSequences("string")
                                .temperature(0.0)
                                .topP(0.0)
                                .build())
                            .build())
                        .numberOfResults(0)
                        .build())
                    .lambdaFunction(AgentFlowDefinitionNodeConfigurationLambdaFunctionArgs.builder()
                        .lambdaArn("string")
                        .build())
                    .lex(AgentFlowDefinitionNodeConfigurationLexArgs.builder()
                        .botAliasArn("string")
                        .localeId("string")
                        .build())
                    .output(AgentFlowDefinitionNodeConfigurationOutputArgs.builder()
                        .build())
                    .prompt(AgentFlowDefinitionNodeConfigurationPromptArgs.builder()
                        .guardrailConfiguration(AgentFlowDefinitionNodeConfigurationPromptGuardrailConfigurationArgs.builder()
                            .guardrailIdentifier("string")
                            .guardrailVersion("string")
                            .build())
                        .sourceConfiguration(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationArgs.builder()
                            .inline(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineArgs.builder()
                                .modelId("string")
                                .templateType("string")
                                .additionalModelRequestFields("string")
                                .inferenceConfiguration(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationArgs.builder()
                                    .text(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationTextArgs.builder()
                                        .maxTokens(0)
                                        .stopSequences("string")
                                        .temperature(0.0)
                                        .topP(0.0)
                                        .build())
                                    .build())
                                .templateConfiguration(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationArgs.builder()
                                    .chat(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatArgs.builder()
                                        .inputVariables(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariableArgs.builder()
                                            .name("string")
                                            .build())
                                        .messages(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageArgs.builder()
                                            .role("string")
                                            .content(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContentArgs.builder()
                                                .cachePoint(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContentCachePointArgs.builder()
                                                    .type("string")
                                                    .build())
                                                .text("string")
                                                .build())
                                            .build())
                                        .systems(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemArgs.builder()
                                            .cachePoint(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePointArgs.builder()
                                                .type("string")
                                                .build())
                                            .text("string")
                                            .build())
                                        .toolConfiguration(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationArgs.builder()
                                            .toolChoice(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceArgs.builder()
                                                .any(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAnyArgs.builder()
                                                    .build())
                                                .auto(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAutoArgs.builder()
                                                    .build())
                                                .tool(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceToolArgs.builder()
                                                    .name("string")
                                                    .build())
                                                .build())
                                            .tools(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolArgs.builder()
                                                .cachePoint(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolCachePointArgs.builder()
                                                    .type("string")
                                                    .build())
                                                .toolSpec(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecArgs.builder()
                                                    .name("string")
                                                    .description("string")
                                                    .inputSchema(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchemaArgs.builder()
                                                        .json("string")
                                                        .build())
                                                    .build())
                                                .build())
                                            .build())
                                        .build())
                                    .text(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextArgs.builder()
                                        .text("string")
                                        .cachePoint(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextCachePointArgs.builder()
                                            .type("string")
                                            .build())
                                        .inputVariables(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariableArgs.builder()
                                            .name("string")
                                            .build())
                                        .build())
                                    .build())
                                .build())
                            .resource(AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResourceArgs.builder()
                                .promptArn("string")
                                .build())
                            .build())
                        .build())
                    .retrieval(AgentFlowDefinitionNodeConfigurationRetrievalArgs.builder()
                        .serviceConfiguration(AgentFlowDefinitionNodeConfigurationRetrievalServiceConfigurationArgs.builder()
                            .s3(AgentFlowDefinitionNodeConfigurationRetrievalServiceConfigurationS3Args.builder()
                                .bucketName("string")
                                .build())
                            .build())
                        .build())
                    .storage(AgentFlowDefinitionNodeConfigurationStorageArgs.builder()
                        .serviceConfiguration(AgentFlowDefinitionNodeConfigurationStorageServiceConfigurationArgs.builder()
                            .s3(AgentFlowDefinitionNodeConfigurationStorageServiceConfigurationS3Args.builder()
                                .bucketName("string")
                                .build())
                            .build())
                        .build())
                    .build())
                .inputs(AgentFlowDefinitionNodeInputArgs.builder()
                    .expression("string")
                    .name("string")
                    .type("string")
                    .category("string")
                    .build())
                .outputs(AgentFlowDefinitionNodeOutputArgs.builder()
                    .name("string")
                    .type("string")
                    .build())
                .build())
            .build())
        .description("string")
        .name("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .timeouts(AgentFlowTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    agent_flow_resource = aws.bedrock.AgentFlow("agentFlowResource",
        execution_role_arn="string",
        customer_encryption_key_arn="string",
        definition={
            "connections": [{
                "name": "string",
                "source": "string",
                "target": "string",
                "type": "string",
                "configuration": {
                    "conditional": {
                        "condition": "string",
                    },
                    "data": {
                        "source_output": "string",
                        "target_input": "string",
                    },
                },
            }],
            "nodes": [{
                "name": "string",
                "type": "string",
                "configuration": {
                    "agent": {
                        "agent_alias_arn": "string",
                    },
                    "collector": {},
                    "condition": {
                        "conditions": [{
                            "name": "string",
                            "expression": "string",
                        }],
                    },
                    "inline_code": {
                        "code": "string",
                        "language": "string",
                    },
                    "input": {},
                    "iterator": {},
                    "knowledge_base": {
                        "knowledge_base_id": "string",
                        "model_id": "string",
                        "guardrail_configuration": {
                            "guardrail_identifier": "string",
                            "guardrail_version": "string",
                        },
                        "inference_configuration": {
                            "text": {
                                "max_tokens": 0,
                                "stop_sequences": ["string"],
                                "temperature": 0,
                                "top_p": 0,
                            },
                        },
                        "number_of_results": 0,
                    },
                    "lambda_function": {
                        "lambda_arn": "string",
                    },
                    "lex": {
                        "bot_alias_arn": "string",
                        "locale_id": "string",
                    },
                    "output": {},
                    "prompt": {
                        "guardrail_configuration": {
                            "guardrail_identifier": "string",
                            "guardrail_version": "string",
                        },
                        "source_configuration": {
                            "inline": {
                                "model_id": "string",
                                "template_type": "string",
                                "additional_model_request_fields": "string",
                                "inference_configuration": {
                                    "text": {
                                        "max_tokens": 0,
                                        "stop_sequences": ["string"],
                                        "temperature": 0,
                                        "top_p": 0,
                                    },
                                },
                                "template_configuration": {
                                    "chat": {
                                        "input_variables": [{
                                            "name": "string",
                                        }],
                                        "messages": [{
                                            "role": "string",
                                            "content": {
                                                "cache_point": {
                                                    "type": "string",
                                                },
                                                "text": "string",
                                            },
                                        }],
                                        "systems": [{
                                            "cache_point": {
                                                "type": "string",
                                            },
                                            "text": "string",
                                        }],
                                        "tool_configuration": {
                                            "tool_choice": {
                                                "any": {},
                                                "auto": {},
                                                "tool": {
                                                    "name": "string",
                                                },
                                            },
                                            "tools": [{
                                                "cache_point": {
                                                    "type": "string",
                                                },
                                                "tool_spec": {
                                                    "name": "string",
                                                    "description": "string",
                                                    "input_schema": {
                                                        "json": "string",
                                                    },
                                                },
                                            }],
                                        },
                                    },
                                    "text": {
                                        "text": "string",
                                        "cache_point": {
                                            "type": "string",
                                        },
                                        "input_variables": [{
                                            "name": "string",
                                        }],
                                    },
                                },
                            },
                            "resource": {
                                "prompt_arn": "string",
                            },
                        },
                    },
                    "retrieval": {
                        "service_configuration": {
                            "s3": {
                                "bucket_name": "string",
                            },
                        },
                    },
                    "storage": {
                        "service_configuration": {
                            "s3": {
                                "bucket_name": "string",
                            },
                        },
                    },
                },
                "inputs": [{
                    "expression": "string",
                    "name": "string",
                    "type": "string",
                    "category": "string",
                }],
                "outputs": [{
                    "name": "string",
                    "type": "string",
                }],
            }],
        },
        description="string",
        name="string",
        region="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const agentFlowResource = new aws.bedrock.AgentFlow("agentFlowResource", {
        executionRoleArn: "string",
        customerEncryptionKeyArn: "string",
        definition: {
            connections: [{
                name: "string",
                source: "string",
                target: "string",
                type: "string",
                configuration: {
                    conditional: {
                        condition: "string",
                    },
                    data: {
                        sourceOutput: "string",
                        targetInput: "string",
                    },
                },
            }],
            nodes: [{
                name: "string",
                type: "string",
                configuration: {
                    agent: {
                        agentAliasArn: "string",
                    },
                    collector: {},
                    condition: {
                        conditions: [{
                            name: "string",
                            expression: "string",
                        }],
                    },
                    inlineCode: {
                        code: "string",
                        language: "string",
                    },
                    input: {},
                    iterator: {},
                    knowledgeBase: {
                        knowledgeBaseId: "string",
                        modelId: "string",
                        guardrailConfiguration: {
                            guardrailIdentifier: "string",
                            guardrailVersion: "string",
                        },
                        inferenceConfiguration: {
                            text: {
                                maxTokens: 0,
                                stopSequences: ["string"],
                                temperature: 0,
                                topP: 0,
                            },
                        },
                        numberOfResults: 0,
                    },
                    lambdaFunction: {
                        lambdaArn: "string",
                    },
                    lex: {
                        botAliasArn: "string",
                        localeId: "string",
                    },
                    output: {},
                    prompt: {
                        guardrailConfiguration: {
                            guardrailIdentifier: "string",
                            guardrailVersion: "string",
                        },
                        sourceConfiguration: {
                            inline: {
                                modelId: "string",
                                templateType: "string",
                                additionalModelRequestFields: "string",
                                inferenceConfiguration: {
                                    text: {
                                        maxTokens: 0,
                                        stopSequences: ["string"],
                                        temperature: 0,
                                        topP: 0,
                                    },
                                },
                                templateConfiguration: {
                                    chat: {
                                        inputVariables: [{
                                            name: "string",
                                        }],
                                        messages: [{
                                            role: "string",
                                            content: {
                                                cachePoint: {
                                                    type: "string",
                                                },
                                                text: "string",
                                            },
                                        }],
                                        systems: [{
                                            cachePoint: {
                                                type: "string",
                                            },
                                            text: "string",
                                        }],
                                        toolConfiguration: {
                                            toolChoice: {
                                                any: {},
                                                auto: {},
                                                tool: {
                                                    name: "string",
                                                },
                                            },
                                            tools: [{
                                                cachePoint: {
                                                    type: "string",
                                                },
                                                toolSpec: {
                                                    name: "string",
                                                    description: "string",
                                                    inputSchema: {
                                                        json: "string",
                                                    },
                                                },
                                            }],
                                        },
                                    },
                                    text: {
                                        text: "string",
                                        cachePoint: {
                                            type: "string",
                                        },
                                        inputVariables: [{
                                            name: "string",
                                        }],
                                    },
                                },
                            },
                            resource: {
                                promptArn: "string",
                            },
                        },
                    },
                    retrieval: {
                        serviceConfiguration: {
                            s3: {
                                bucketName: "string",
                            },
                        },
                    },
                    storage: {
                        serviceConfiguration: {
                            s3: {
                                bucketName: "string",
                            },
                        },
                    },
                },
                inputs: [{
                    expression: "string",
                    name: "string",
                    type: "string",
                    category: "string",
                }],
                outputs: [{
                    name: "string",
                    type: "string",
                }],
            }],
        },
        description: "string",
        name: "string",
        region: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:bedrock:AgentFlow
    properties:
        customerEncryptionKeyArn: string
        definition:
            connections:
                - configuration:
                    conditional:
                        condition: string
                    data:
                        sourceOutput: string
                        targetInput: string
                  name: string
                  source: string
                  target: string
                  type: string
            nodes:
                - configuration:
                    agent:
                        agentAliasArn: string
                    collector: {}
                    condition:
                        conditions:
                            - expression: string
                              name: string
                    inlineCode:
                        code: string
                        language: string
                    input: {}
                    iterator: {}
                    knowledgeBase:
                        guardrailConfiguration:
                            guardrailIdentifier: string
                            guardrailVersion: string
                        inferenceConfiguration:
                            text:
                                maxTokens: 0
                                stopSequences:
                                    - string
                                temperature: 0
                                topP: 0
                        knowledgeBaseId: string
                        modelId: string
                        numberOfResults: 0
                    lambdaFunction:
                        lambdaArn: string
                    lex:
                        botAliasArn: string
                        localeId: string
                    output: {}
                    prompt:
                        guardrailConfiguration:
                            guardrailIdentifier: string
                            guardrailVersion: string
                        sourceConfiguration:
                            inline:
                                additionalModelRequestFields: string
                                inferenceConfiguration:
                                    text:
                                        maxTokens: 0
                                        stopSequences:
                                            - string
                                        temperature: 0
                                        topP: 0
                                modelId: string
                                templateConfiguration:
                                    chat:
                                        inputVariables:
                                            - name: string
                                        messages:
                                            - content:
                                                cachePoint:
                                                    type: string
                                                text: string
                                              role: string
                                        systems:
                                            - cachePoint:
                                                type: string
                                              text: string
                                        toolConfiguration:
                                            toolChoice:
                                                any: {}
                                                auto: {}
                                                tool:
                                                    name: string
                                            tools:
                                                - cachePoint:
                                                    type: string
                                                  toolSpec:
                                                    description: string
                                                    inputSchema:
                                                        json: string
                                                    name: string
                                    text:
                                        cachePoint:
                                            type: string
                                        inputVariables:
                                            - name: string
                                        text: string
                                templateType: string
                            resource:
                                promptArn: string
                    retrieval:
                        serviceConfiguration:
                            s3:
                                bucketName: string
                    storage:
                        serviceConfiguration:
                            s3:
                                bucketName: string
                  inputs:
                    - category: string
                      expression: string
                      name: string
                      type: string
                  name: string
                  outputs:
                    - name: string
                      type: string
                  type: string
        description: string
        executionRoleArn: string
        name: string
        region: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
    

    AgentFlow Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AgentFlow resource accepts the following input properties:

    ExecutionRoleArn string

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    CustomerEncryptionKeyArn string
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    Definition AgentFlowDefinition
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    Description string
    A description for the flow.
    Name string
    A name for the flow.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts AgentFlowTimeouts
    ExecutionRoleArn string

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    CustomerEncryptionKeyArn string
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    Definition AgentFlowDefinitionArgs
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    Description string
    A description for the flow.
    Name string
    A name for the flow.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts AgentFlowTimeoutsArgs
    executionRoleArn String

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    customerEncryptionKeyArn String
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    definition AgentFlowDefinition
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    description String
    A description for the flow.
    name String
    A name for the flow.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts AgentFlowTimeouts
    executionRoleArn string

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    customerEncryptionKeyArn string
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    definition AgentFlowDefinition
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    description string
    A description for the flow.
    name string
    A name for the flow.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts AgentFlowTimeouts
    execution_role_arn str

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    customer_encryption_key_arn str
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    definition AgentFlowDefinitionArgs
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    description str
    A description for the flow.
    name str
    A name for the flow.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts AgentFlowTimeoutsArgs
    executionRoleArn String

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    customerEncryptionKeyArn String
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    definition Property Map
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    description String
    A description for the flow.
    name String
    A name for the flow.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AgentFlow resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) of the flow.
    CreatedAt string
    The time at which the flow was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the flow.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    UpdatedAt string
    The time at which the flow was last updated.
    Version string
    The version of the flow.
    Arn string
    The Amazon Resource Name (ARN) of the flow.
    CreatedAt string
    The time at which the flow was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the flow.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    UpdatedAt string
    The time at which the flow was last updated.
    Version string
    The version of the flow.
    arn String
    The Amazon Resource Name (ARN) of the flow.
    createdAt String
    The time at which the flow was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the flow.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    updatedAt String
    The time at which the flow was last updated.
    version String
    The version of the flow.
    arn string
    The Amazon Resource Name (ARN) of the flow.
    createdAt string
    The time at which the flow was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the flow.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    updatedAt string
    The time at which the flow was last updated.
    version string
    The version of the flow.
    arn str
    The Amazon Resource Name (ARN) of the flow.
    created_at str
    The time at which the flow was created.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the flow.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    updated_at str
    The time at which the flow was last updated.
    version str
    The version of the flow.
    arn String
    The Amazon Resource Name (ARN) of the flow.
    createdAt String
    The time at which the flow was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the flow.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    updatedAt String
    The time at which the flow was last updated.
    version String
    The version of the flow.

    Look up Existing AgentFlow Resource

    Get an existing AgentFlow resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AgentFlowState, opts?: CustomResourceOptions): AgentFlow
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            created_at: Optional[str] = None,
            customer_encryption_key_arn: Optional[str] = None,
            definition: Optional[AgentFlowDefinitionArgs] = None,
            description: Optional[str] = None,
            execution_role_arn: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            timeouts: Optional[AgentFlowTimeoutsArgs] = None,
            updated_at: Optional[str] = None,
            version: Optional[str] = None) -> AgentFlow
    func GetAgentFlow(ctx *Context, name string, id IDInput, state *AgentFlowState, opts ...ResourceOption) (*AgentFlow, error)
    public static AgentFlow Get(string name, Input<string> id, AgentFlowState? state, CustomResourceOptions? opts = null)
    public static AgentFlow get(String name, Output<String> id, AgentFlowState state, CustomResourceOptions options)
    resources:  _:    type: aws:bedrock:AgentFlow    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    The Amazon Resource Name (ARN) of the flow.
    CreatedAt string
    The time at which the flow was created.
    CustomerEncryptionKeyArn string
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    Definition AgentFlowDefinition
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    Description string
    A description for the flow.
    ExecutionRoleArn string

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    Name string
    A name for the flow.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Status string
    The status of the flow.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Timeouts AgentFlowTimeouts
    UpdatedAt string
    The time at which the flow was last updated.
    Version string
    The version of the flow.
    Arn string
    The Amazon Resource Name (ARN) of the flow.
    CreatedAt string
    The time at which the flow was created.
    CustomerEncryptionKeyArn string
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    Definition AgentFlowDefinitionArgs
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    Description string
    A description for the flow.
    ExecutionRoleArn string

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    Name string
    A name for the flow.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Status string
    The status of the flow.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Timeouts AgentFlowTimeoutsArgs
    UpdatedAt string
    The time at which the flow was last updated.
    Version string
    The version of the flow.
    arn String
    The Amazon Resource Name (ARN) of the flow.
    createdAt String
    The time at which the flow was created.
    customerEncryptionKeyArn String
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    definition AgentFlowDefinition
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    description String
    A description for the flow.
    executionRoleArn String

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    name String
    A name for the flow.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status String
    The status of the flow.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts AgentFlowTimeouts
    updatedAt String
    The time at which the flow was last updated.
    version String
    The version of the flow.
    arn string
    The Amazon Resource Name (ARN) of the flow.
    createdAt string
    The time at which the flow was created.
    customerEncryptionKeyArn string
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    definition AgentFlowDefinition
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    description string
    A description for the flow.
    executionRoleArn string

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    name string
    A name for the flow.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status string
    The status of the flow.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts AgentFlowTimeouts
    updatedAt string
    The time at which the flow was last updated.
    version string
    The version of the flow.
    arn str
    The Amazon Resource Name (ARN) of the flow.
    created_at str
    The time at which the flow was created.
    customer_encryption_key_arn str
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    definition AgentFlowDefinitionArgs
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    description str
    A description for the flow.
    execution_role_arn str

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    name str
    A name for the flow.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status str
    The status of the flow.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts AgentFlowTimeoutsArgs
    updated_at str
    The time at which the flow was last updated.
    version str
    The version of the flow.
    arn String
    The Amazon Resource Name (ARN) of the flow.
    createdAt String
    The time at which the flow was created.
    customerEncryptionKeyArn String
    The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
    definition Property Map
    A definition of the nodes and connections between nodes in the flow. See Definition for more information.
    description String
    A description for the flow.
    executionRoleArn String

    The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

    The following arguments are optional:

    name String
    A name for the flow.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status String
    The status of the flow.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts Property Map
    updatedAt String
    The time at which the flow was last updated.
    version String
    The version of the flow.

    Supporting Types

    AgentFlowDefinition, AgentFlowDefinitionArgs

    Connections List<AgentFlowDefinitionConnection>
    A list of connection definitions in the flow. See Connection for more information.
    Nodes List<AgentFlowDefinitionNode>
    A list of node definitions in the flow. See Node for more information.
    Connections []AgentFlowDefinitionConnection
    A list of connection definitions in the flow. See Connection for more information.
    Nodes []AgentFlowDefinitionNode
    A list of node definitions in the flow. See Node for more information.
    connections List<AgentFlowDefinitionConnection>
    A list of connection definitions in the flow. See Connection for more information.
    nodes List<AgentFlowDefinitionNode>
    A list of node definitions in the flow. See Node for more information.
    connections AgentFlowDefinitionConnection[]
    A list of connection definitions in the flow. See Connection for more information.
    nodes AgentFlowDefinitionNode[]
    A list of node definitions in the flow. See Node for more information.
    connections Sequence[AgentFlowDefinitionConnection]
    A list of connection definitions in the flow. See Connection for more information.
    nodes Sequence[AgentFlowDefinitionNode]
    A list of node definitions in the flow. See Node for more information.
    connections List<Property Map>
    A list of connection definitions in the flow. See Connection for more information.
    nodes List<Property Map>
    A list of node definitions in the flow. See Node for more information.

    AgentFlowDefinitionConnection, AgentFlowDefinitionConnectionArgs

    Name string
    A name for the connection that you can reference.
    Source string
    The node that the connection starts at.
    Target string
    The node that the connection ends at.
    Type string
    Whether the source node that the connection begins from is a condition node Conditional or not Data.
    Configuration AgentFlowDefinitionConnectionConfiguration
    Configuration of the connection. See Connection Configuration for more information.
    Name string
    A name for the connection that you can reference.
    Source string
    The node that the connection starts at.
    Target string
    The node that the connection ends at.
    Type string
    Whether the source node that the connection begins from is a condition node Conditional or not Data.
    Configuration AgentFlowDefinitionConnectionConfiguration
    Configuration of the connection. See Connection Configuration for more information.
    name String
    A name for the connection that you can reference.
    source String
    The node that the connection starts at.
    target String
    The node that the connection ends at.
    type String
    Whether the source node that the connection begins from is a condition node Conditional or not Data.
    configuration AgentFlowDefinitionConnectionConfiguration
    Configuration of the connection. See Connection Configuration for more information.
    name string
    A name for the connection that you can reference.
    source string
    The node that the connection starts at.
    target string
    The node that the connection ends at.
    type string
    Whether the source node that the connection begins from is a condition node Conditional or not Data.
    configuration AgentFlowDefinitionConnectionConfiguration
    Configuration of the connection. See Connection Configuration for more information.
    name str
    A name for the connection that you can reference.
    source str
    The node that the connection starts at.
    target str
    The node that the connection ends at.
    type str
    Whether the source node that the connection begins from is a condition node Conditional or not Data.
    configuration AgentFlowDefinitionConnectionConfiguration
    Configuration of the connection. See Connection Configuration for more information.
    name String
    A name for the connection that you can reference.
    source String
    The node that the connection starts at.
    target String
    The node that the connection ends at.
    type String
    Whether the source node that the connection begins from is a condition node Conditional or not Data.
    configuration Property Map
    Configuration of the connection. See Connection Configuration for more information.

    AgentFlowDefinitionConnectionConfiguration, AgentFlowDefinitionConnectionConfigurationArgs

    Conditional AgentFlowDefinitionConnectionConfigurationConditional
    The configuration of a connection originating from a Condition node. See Conditional Connection Configuration for more information.
    Data AgentFlowDefinitionConnectionConfigurationData
    The configuration of a connection originating from a node that isn’t a Condition node. See Data Connection Configuration for more information.
    Conditional AgentFlowDefinitionConnectionConfigurationConditional
    The configuration of a connection originating from a Condition node. See Conditional Connection Configuration for more information.
    Data AgentFlowDefinitionConnectionConfigurationData
    The configuration of a connection originating from a node that isn’t a Condition node. See Data Connection Configuration for more information.
    conditional AgentFlowDefinitionConnectionConfigurationConditional
    The configuration of a connection originating from a Condition node. See Conditional Connection Configuration for more information.
    data AgentFlowDefinitionConnectionConfigurationData
    The configuration of a connection originating from a node that isn’t a Condition node. See Data Connection Configuration for more information.
    conditional AgentFlowDefinitionConnectionConfigurationConditional
    The configuration of a connection originating from a Condition node. See Conditional Connection Configuration for more information.
    data AgentFlowDefinitionConnectionConfigurationData
    The configuration of a connection originating from a node that isn’t a Condition node. See Data Connection Configuration for more information.
    conditional AgentFlowDefinitionConnectionConfigurationConditional
    The configuration of a connection originating from a Condition node. See Conditional Connection Configuration for more information.
    data AgentFlowDefinitionConnectionConfigurationData
    The configuration of a connection originating from a node that isn’t a Condition node. See Data Connection Configuration for more information.
    conditional Property Map
    The configuration of a connection originating from a Condition node. See Conditional Connection Configuration for more information.
    data Property Map
    The configuration of a connection originating from a node that isn’t a Condition node. See Data Connection Configuration for more information.

    AgentFlowDefinitionConnectionConfigurationConditional, AgentFlowDefinitionConnectionConfigurationConditionalArgs

    Condition string
    Condition string
    condition String
    condition string
    condition String

    AgentFlowDefinitionConnectionConfigurationData, AgentFlowDefinitionConnectionConfigurationDataArgs

    SourceOutput string
    The name of the output in the source node that the connection begins from.
    TargetInput string
    The name of the input in the target node that the connection ends at.
    SourceOutput string
    The name of the output in the source node that the connection begins from.
    TargetInput string
    The name of the input in the target node that the connection ends at.
    sourceOutput String
    The name of the output in the source node that the connection begins from.
    targetInput String
    The name of the input in the target node that the connection ends at.
    sourceOutput string
    The name of the output in the source node that the connection begins from.
    targetInput string
    The name of the input in the target node that the connection ends at.
    source_output str
    The name of the output in the source node that the connection begins from.
    target_input str
    The name of the input in the target node that the connection ends at.
    sourceOutput String
    The name of the output in the source node that the connection begins from.
    targetInput String
    The name of the input in the target node that the connection ends at.

    AgentFlowDefinitionNode, AgentFlowDefinitionNodeArgs

    Name string
    A name for the node.
    Type string
    The type of node. This value must match the name of the key that you provide in the configuration. Valid values: Agent, Collector, Condition, Input, Iterator, KnowledgeBase, LambdaFunction, Lex, Output, Prompt, Retrieval, Storage
    Configuration AgentFlowDefinitionNodeConfiguration
    Contains configurations for the node. See Node Configuration for more information.
    Inputs List<AgentFlowDefinitionNodeInput>
    A list of objects containing information about an input into the node. See Node Input for more information.
    Outputs List<AgentFlowDefinitionNodeOutput>
    A list of objects containing information about an output from the node. See Node Output for more information.
    Name string
    A name for the node.
    Type string
    The type of node. This value must match the name of the key that you provide in the configuration. Valid values: Agent, Collector, Condition, Input, Iterator, KnowledgeBase, LambdaFunction, Lex, Output, Prompt, Retrieval, Storage
    Configuration AgentFlowDefinitionNodeConfiguration
    Contains configurations for the node. See Node Configuration for more information.
    Inputs []AgentFlowDefinitionNodeInputType
    A list of objects containing information about an input into the node. See Node Input for more information.
    Outputs []AgentFlowDefinitionNodeOutputType
    A list of objects containing information about an output from the node. See Node Output for more information.
    name String
    A name for the node.
    type String
    The type of node. This value must match the name of the key that you provide in the configuration. Valid values: Agent, Collector, Condition, Input, Iterator, KnowledgeBase, LambdaFunction, Lex, Output, Prompt, Retrieval, Storage
    configuration AgentFlowDefinitionNodeConfiguration
    Contains configurations for the node. See Node Configuration for more information.
    inputs List<AgentFlowDefinitionNodeInput>
    A list of objects containing information about an input into the node. See Node Input for more information.
    outputs List<AgentFlowDefinitionNodeOutput>
    A list of objects containing information about an output from the node. See Node Output for more information.
    name string
    A name for the node.
    type string
    The type of node. This value must match the name of the key that you provide in the configuration. Valid values: Agent, Collector, Condition, Input, Iterator, KnowledgeBase, LambdaFunction, Lex, Output, Prompt, Retrieval, Storage
    configuration AgentFlowDefinitionNodeConfiguration
    Contains configurations for the node. See Node Configuration for more information.
    inputs AgentFlowDefinitionNodeInput[]
    A list of objects containing information about an input into the node. See Node Input for more information.
    outputs AgentFlowDefinitionNodeOutput[]
    A list of objects containing information about an output from the node. See Node Output for more information.
    name str
    A name for the node.
    type str
    The type of node. This value must match the name of the key that you provide in the configuration. Valid values: Agent, Collector, Condition, Input, Iterator, KnowledgeBase, LambdaFunction, Lex, Output, Prompt, Retrieval, Storage
    configuration AgentFlowDefinitionNodeConfiguration
    Contains configurations for the node. See Node Configuration for more information.
    inputs Sequence[AgentFlowDefinitionNodeInput]
    A list of objects containing information about an input into the node. See Node Input for more information.
    outputs Sequence[AgentFlowDefinitionNodeOutput]
    A list of objects containing information about an output from the node. See Node Output for more information.
    name String
    A name for the node.
    type String
    The type of node. This value must match the name of the key that you provide in the configuration. Valid values: Agent, Collector, Condition, Input, Iterator, KnowledgeBase, LambdaFunction, Lex, Output, Prompt, Retrieval, Storage
    configuration Property Map
    Contains configurations for the node. See Node Configuration for more information.
    inputs List<Property Map>
    A list of objects containing information about an input into the node. See Node Input for more information.
    outputs List<Property Map>
    A list of objects containing information about an output from the node. See Node Output for more information.

    AgentFlowDefinitionNodeConfiguration, AgentFlowDefinitionNodeConfigurationArgs

    Agent AgentFlowDefinitionNodeConfigurationAgent
    Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response. See Agent Node Configuration for more information.
    Collector AgentFlowDefinitionNodeConfigurationCollector
    Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs. This object has no fields.
    Condition AgentFlowDefinitionNodeConfigurationCondition
    InlineCode AgentFlowDefinitionNodeConfigurationInlineCode
    Contains configurations for an inline code node in your flow. See Inline Code Node Configuration for more information.
    Input AgentFlowDefinitionNodeConfigurationInput
    Iterator AgentFlowDefinitionNodeConfigurationIterator
    Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node. This object has no fields.
    KnowledgeBase AgentFlowDefinitionNodeConfigurationKnowledgeBase
    Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response. See Knowledge Base Node Configuration for more information.
    LambdaFunction AgentFlowDefinitionNodeConfigurationLambdaFunction
    Contains configurations for a Lambda function node in your flow. Invokes a Lambda function. See Lambda Function Node Configuration for more information.
    Lex AgentFlowDefinitionNodeConfigurationLex
    Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output. See Lex Node Configuration for more information.
    Output AgentFlowDefinitionNodeConfigurationOutput
    Prompt AgentFlowDefinitionNodeConfigurationPrompt
    Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node. See Prompt Node Configuration for more information.
    Retrieval AgentFlowDefinitionNodeConfigurationRetrieval
    Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output. See Retrieval Node Configuration for more information.
    Storage AgentFlowDefinitionNodeConfigurationStorage
    Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location. See Storage Node Configuration for more information.
    Agent AgentFlowDefinitionNodeConfigurationAgent
    Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response. See Agent Node Configuration for more information.
    Collector AgentFlowDefinitionNodeConfigurationCollector
    Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs. This object has no fields.
    Condition AgentFlowDefinitionNodeConfigurationCondition
    InlineCode AgentFlowDefinitionNodeConfigurationInlineCode
    Contains configurations for an inline code node in your flow. See Inline Code Node Configuration for more information.
    Input AgentFlowDefinitionNodeConfigurationInputType
    Iterator AgentFlowDefinitionNodeConfigurationIterator
    Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node. This object has no fields.
    KnowledgeBase AgentFlowDefinitionNodeConfigurationKnowledgeBase
    Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response. See Knowledge Base Node Configuration for more information.
    LambdaFunction AgentFlowDefinitionNodeConfigurationLambdaFunction
    Contains configurations for a Lambda function node in your flow. Invokes a Lambda function. See Lambda Function Node Configuration for more information.
    Lex AgentFlowDefinitionNodeConfigurationLex
    Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output. See Lex Node Configuration for more information.
    Output AgentFlowDefinitionNodeConfigurationOutputType
    Prompt AgentFlowDefinitionNodeConfigurationPrompt
    Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node. See Prompt Node Configuration for more information.
    Retrieval AgentFlowDefinitionNodeConfigurationRetrieval
    Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output. See Retrieval Node Configuration for more information.
    Storage AgentFlowDefinitionNodeConfigurationStorage
    Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location. See Storage Node Configuration for more information.
    agent AgentFlowDefinitionNodeConfigurationAgent
    Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response. See Agent Node Configuration for more information.
    collector AgentFlowDefinitionNodeConfigurationCollector
    Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs. This object has no fields.
    condition AgentFlowDefinitionNodeConfigurationCondition
    inlineCode AgentFlowDefinitionNodeConfigurationInlineCode
    Contains configurations for an inline code node in your flow. See Inline Code Node Configuration for more information.
    input AgentFlowDefinitionNodeConfigurationInput
    iterator AgentFlowDefinitionNodeConfigurationIterator
    Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node. This object has no fields.
    knowledgeBase AgentFlowDefinitionNodeConfigurationKnowledgeBase
    Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response. See Knowledge Base Node Configuration for more information.
    lambdaFunction AgentFlowDefinitionNodeConfigurationLambdaFunction
    Contains configurations for a Lambda function node in your flow. Invokes a Lambda function. See Lambda Function Node Configuration for more information.
    lex AgentFlowDefinitionNodeConfigurationLex
    Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output. See Lex Node Configuration for more information.
    output AgentFlowDefinitionNodeConfigurationOutput
    prompt AgentFlowDefinitionNodeConfigurationPrompt
    Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node. See Prompt Node Configuration for more information.
    retrieval AgentFlowDefinitionNodeConfigurationRetrieval
    Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output. See Retrieval Node Configuration for more information.
    storage AgentFlowDefinitionNodeConfigurationStorage
    Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location. See Storage Node Configuration for more information.
    agent AgentFlowDefinitionNodeConfigurationAgent
    Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response. See Agent Node Configuration for more information.
    collector AgentFlowDefinitionNodeConfigurationCollector
    Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs. This object has no fields.
    condition AgentFlowDefinitionNodeConfigurationCondition
    inlineCode AgentFlowDefinitionNodeConfigurationInlineCode
    Contains configurations for an inline code node in your flow. See Inline Code Node Configuration for more information.
    input AgentFlowDefinitionNodeConfigurationInput
    iterator AgentFlowDefinitionNodeConfigurationIterator
    Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node. This object has no fields.
    knowledgeBase AgentFlowDefinitionNodeConfigurationKnowledgeBase
    Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response. See Knowledge Base Node Configuration for more information.
    lambdaFunction AgentFlowDefinitionNodeConfigurationLambdaFunction
    Contains configurations for a Lambda function node in your flow. Invokes a Lambda function. See Lambda Function Node Configuration for more information.
    lex AgentFlowDefinitionNodeConfigurationLex
    Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output. See Lex Node Configuration for more information.
    output AgentFlowDefinitionNodeConfigurationOutput
    prompt AgentFlowDefinitionNodeConfigurationPrompt
    Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node. See Prompt Node Configuration for more information.
    retrieval AgentFlowDefinitionNodeConfigurationRetrieval
    Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output. See Retrieval Node Configuration for more information.
    storage AgentFlowDefinitionNodeConfigurationStorage
    Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location. See Storage Node Configuration for more information.
    agent AgentFlowDefinitionNodeConfigurationAgent
    Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response. See Agent Node Configuration for more information.
    collector AgentFlowDefinitionNodeConfigurationCollector
    Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs. This object has no fields.
    condition AgentFlowDefinitionNodeConfigurationCondition
    inline_code AgentFlowDefinitionNodeConfigurationInlineCode
    Contains configurations for an inline code node in your flow. See Inline Code Node Configuration for more information.
    input AgentFlowDefinitionNodeConfigurationInput
    iterator AgentFlowDefinitionNodeConfigurationIterator
    Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node. This object has no fields.
    knowledge_base AgentFlowDefinitionNodeConfigurationKnowledgeBase
    Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response. See Knowledge Base Node Configuration for more information.
    lambda_function AgentFlowDefinitionNodeConfigurationLambdaFunction
    Contains configurations for a Lambda function node in your flow. Invokes a Lambda function. See Lambda Function Node Configuration for more information.
    lex AgentFlowDefinitionNodeConfigurationLex
    Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output. See Lex Node Configuration for more information.
    output AgentFlowDefinitionNodeConfigurationOutput
    prompt AgentFlowDefinitionNodeConfigurationPrompt
    Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node. See Prompt Node Configuration for more information.
    retrieval AgentFlowDefinitionNodeConfigurationRetrieval
    Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output. See Retrieval Node Configuration for more information.
    storage AgentFlowDefinitionNodeConfigurationStorage
    Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location. See Storage Node Configuration for more information.
    agent Property Map
    Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response. See Agent Node Configuration for more information.
    collector Property Map
    Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs. This object has no fields.
    condition Property Map
    inlineCode Property Map
    Contains configurations for an inline code node in your flow. See Inline Code Node Configuration for more information.
    input Property Map
    iterator Property Map
    Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node. This object has no fields.
    knowledgeBase Property Map
    Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response. See Knowledge Base Node Configuration for more information.
    lambdaFunction Property Map
    Contains configurations for a Lambda function node in your flow. Invokes a Lambda function. See Lambda Function Node Configuration for more information.
    lex Property Map
    Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output. See Lex Node Configuration for more information.
    output Property Map
    prompt Property Map
    Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node. See Prompt Node Configuration for more information.
    retrieval Property Map
    Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output. See Retrieval Node Configuration for more information.
    storage Property Map
    Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location. See Storage Node Configuration for more information.

    AgentFlowDefinitionNodeConfigurationAgent, AgentFlowDefinitionNodeConfigurationAgentArgs

    AgentAliasArn string
    The Amazon Resource Name (ARN) of the alias of the agent to invoke.
    AgentAliasArn string
    The Amazon Resource Name (ARN) of the alias of the agent to invoke.
    agentAliasArn String
    The Amazon Resource Name (ARN) of the alias of the agent to invoke.
    agentAliasArn string
    The Amazon Resource Name (ARN) of the alias of the agent to invoke.
    agent_alias_arn str
    The Amazon Resource Name (ARN) of the alias of the agent to invoke.
    agentAliasArn String
    The Amazon Resource Name (ARN) of the alias of the agent to invoke.

    AgentFlowDefinitionNodeConfigurationCondition, AgentFlowDefinitionNodeConfigurationConditionArgs

    AgentFlowDefinitionNodeConfigurationConditionCondition, AgentFlowDefinitionNodeConfigurationConditionConditionArgs

    Name string
    A name for the flow.
    Expression string
    Name string
    A name for the flow.
    Expression string
    name String
    A name for the flow.
    expression String
    name string
    A name for the flow.
    expression string
    name str
    A name for the flow.
    expression str
    name String
    A name for the flow.
    expression String

    AgentFlowDefinitionNodeConfigurationInlineCode, AgentFlowDefinitionNodeConfigurationInlineCodeArgs

    Code string
    The code that's executed in your inline code node.
    Language string
    The programming language used by your inline code node.
    Code string
    The code that's executed in your inline code node.
    Language string
    The programming language used by your inline code node.
    code String
    The code that's executed in your inline code node.
    language String
    The programming language used by your inline code node.
    code string
    The code that's executed in your inline code node.
    language string
    The programming language used by your inline code node.
    code str
    The code that's executed in your inline code node.
    language str
    The programming language used by your inline code node.
    code String
    The code that's executed in your inline code node.
    language String
    The programming language used by your inline code node.

    AgentFlowDefinitionNodeConfigurationKnowledgeBase, AgentFlowDefinitionNodeConfigurationKnowledgeBaseArgs

    KnowledgeBaseId string
    The unique identifier of the knowledge base to query.
    ModelId string
    GuardrailConfiguration AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    InferenceConfiguration AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    NumberOfResults int
    KnowledgeBaseId string
    The unique identifier of the knowledge base to query.
    ModelId string
    GuardrailConfiguration AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    InferenceConfiguration AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    NumberOfResults int
    knowledgeBaseId String
    The unique identifier of the knowledge base to query.
    modelId String
    guardrailConfiguration AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    inferenceConfiguration AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    numberOfResults Integer
    knowledgeBaseId string
    The unique identifier of the knowledge base to query.
    modelId string
    guardrailConfiguration AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    inferenceConfiguration AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    numberOfResults number
    knowledge_base_id str
    The unique identifier of the knowledge base to query.
    model_id str
    guardrail_configuration AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    inference_configuration AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    number_of_results int
    knowledgeBaseId String
    The unique identifier of the knowledge base to query.
    modelId String
    guardrailConfiguration Property Map
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    inferenceConfiguration Property Map
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    numberOfResults Number

    AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfiguration, AgentFlowDefinitionNodeConfigurationKnowledgeBaseGuardrailConfigurationArgs

    GuardrailIdentifier string
    The unique identifier of the guardrail.
    GuardrailVersion string
    The version of the guardrail.
    GuardrailIdentifier string
    The unique identifier of the guardrail.
    GuardrailVersion string
    The version of the guardrail.
    guardrailIdentifier String
    The unique identifier of the guardrail.
    guardrailVersion String
    The version of the guardrail.
    guardrailIdentifier string
    The unique identifier of the guardrail.
    guardrailVersion string
    The version of the guardrail.
    guardrail_identifier str
    The unique identifier of the guardrail.
    guardrail_version str
    The version of the guardrail.
    guardrailIdentifier String
    The unique identifier of the guardrail.
    guardrailVersion String
    The version of the guardrail.

    AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfiguration, AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationArgs

    AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationText, AgentFlowDefinitionNodeConfigurationKnowledgeBaseInferenceConfigurationTextArgs

    MaxTokens int
    Maximum number of tokens to return in the response.
    StopSequences List<string>
    List of strings that define sequences after which the model will stop generating.
    Temperature double
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    TopP double
    Percentage of most-likely candidates that the model considers for the next token.
    MaxTokens int
    Maximum number of tokens to return in the response.
    StopSequences []string
    List of strings that define sequences after which the model will stop generating.
    Temperature float64
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    TopP float64
    Percentage of most-likely candidates that the model considers for the next token.
    maxTokens Integer
    Maximum number of tokens to return in the response.
    stopSequences List<String>
    List of strings that define sequences after which the model will stop generating.
    temperature Double
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    topP Double
    Percentage of most-likely candidates that the model considers for the next token.
    maxTokens number
    Maximum number of tokens to return in the response.
    stopSequences string[]
    List of strings that define sequences after which the model will stop generating.
    temperature number
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    topP number
    Percentage of most-likely candidates that the model considers for the next token.
    max_tokens int
    Maximum number of tokens to return in the response.
    stop_sequences Sequence[str]
    List of strings that define sequences after which the model will stop generating.
    temperature float
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    top_p float
    Percentage of most-likely candidates that the model considers for the next token.
    maxTokens Number
    Maximum number of tokens to return in the response.
    stopSequences List<String>
    List of strings that define sequences after which the model will stop generating.
    temperature Number
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    topP Number
    Percentage of most-likely candidates that the model considers for the next token.

    AgentFlowDefinitionNodeConfigurationLambdaFunction, AgentFlowDefinitionNodeConfigurationLambdaFunctionArgs

    LambdaArn string
    The Amazon Resource Name (ARN) of the Lambda function to invoke.
    LambdaArn string
    The Amazon Resource Name (ARN) of the Lambda function to invoke.
    lambdaArn String
    The Amazon Resource Name (ARN) of the Lambda function to invoke.
    lambdaArn string
    The Amazon Resource Name (ARN) of the Lambda function to invoke.
    lambda_arn str
    The Amazon Resource Name (ARN) of the Lambda function to invoke.
    lambdaArn String
    The Amazon Resource Name (ARN) of the Lambda function to invoke.

    AgentFlowDefinitionNodeConfigurationLex, AgentFlowDefinitionNodeConfigurationLexArgs

    BotAliasArn string
    The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.
    LocaleId string
    The Region to invoke the Amazon Lex bot in
    BotAliasArn string
    The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.
    LocaleId string
    The Region to invoke the Amazon Lex bot in
    botAliasArn String
    The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.
    localeId String
    The Region to invoke the Amazon Lex bot in
    botAliasArn string
    The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.
    localeId string
    The Region to invoke the Amazon Lex bot in
    bot_alias_arn str
    The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.
    locale_id str
    The Region to invoke the Amazon Lex bot in
    botAliasArn String
    The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.
    localeId String
    The Region to invoke the Amazon Lex bot in

    AgentFlowDefinitionNodeConfigurationPrompt, AgentFlowDefinitionNodeConfigurationPromptArgs

    GuardrailConfiguration AgentFlowDefinitionNodeConfigurationPromptGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    SourceConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfiguration
    GuardrailConfiguration AgentFlowDefinitionNodeConfigurationPromptGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    SourceConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfiguration
    guardrailConfiguration AgentFlowDefinitionNodeConfigurationPromptGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    sourceConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfiguration
    guardrailConfiguration AgentFlowDefinitionNodeConfigurationPromptGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    sourceConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfiguration
    guardrail_configuration AgentFlowDefinitionNodeConfigurationPromptGuardrailConfiguration
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    source_configuration AgentFlowDefinitionNodeConfigurationPromptSourceConfiguration
    guardrailConfiguration Property Map
    Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration. See Guardrail Configuration for more information.
    sourceConfiguration Property Map

    AgentFlowDefinitionNodeConfigurationPromptGuardrailConfiguration, AgentFlowDefinitionNodeConfigurationPromptGuardrailConfigurationArgs

    GuardrailIdentifier string
    The unique identifier of the guardrail.
    GuardrailVersion string
    The version of the guardrail.
    GuardrailIdentifier string
    The unique identifier of the guardrail.
    GuardrailVersion string
    The version of the guardrail.
    guardrailIdentifier String
    The unique identifier of the guardrail.
    guardrailVersion String
    The version of the guardrail.
    guardrailIdentifier string
    The unique identifier of the guardrail.
    guardrailVersion string
    The version of the guardrail.
    guardrail_identifier str
    The unique identifier of the guardrail.
    guardrail_version str
    The version of the guardrail.
    guardrailIdentifier String
    The unique identifier of the guardrail.
    guardrailVersion String
    The version of the guardrail.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfiguration, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationArgs

    Inline AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInline
    Contains configurations for a prompt that is defined inline. See Prompt Inline Configuration for more information.
    Resource AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResource
    Contains configurations for a prompt from Prompt management. See Prompt Resource Configuration for more information.
    Inline AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInline
    Contains configurations for a prompt that is defined inline. See Prompt Inline Configuration for more information.
    Resource AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResource
    Contains configurations for a prompt from Prompt management. See Prompt Resource Configuration for more information.
    inline AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInline
    Contains configurations for a prompt that is defined inline. See Prompt Inline Configuration for more information.
    resource AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResource
    Contains configurations for a prompt from Prompt management. See Prompt Resource Configuration for more information.
    inline AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInline
    Contains configurations for a prompt that is defined inline. See Prompt Inline Configuration for more information.
    resource AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResource
    Contains configurations for a prompt from Prompt management. See Prompt Resource Configuration for more information.
    inline AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInline
    Contains configurations for a prompt that is defined inline. See Prompt Inline Configuration for more information.
    resource AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResource
    Contains configurations for a prompt from Prompt management. See Prompt Resource Configuration for more information.
    inline Property Map
    Contains configurations for a prompt that is defined inline. See Prompt Inline Configuration for more information.
    resource Property Map
    Contains configurations for a prompt from Prompt management. See Prompt Resource Configuration for more information.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInline, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineArgs

    ModelId string
    TemplateType string
    The type of prompt template. Valid values: TEXT, CHAT.
    AdditionalModelRequestFields string
    Additional fields to be included in the model request for the Prompt node.
    InferenceConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    TemplateConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfiguration
    Contains a prompt and variables in the prompt that can be replaced with values at runtime. See Prompt Template Configuration for more information.
    ModelId string
    TemplateType string
    The type of prompt template. Valid values: TEXT, CHAT.
    AdditionalModelRequestFields string
    Additional fields to be included in the model request for the Prompt node.
    InferenceConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    TemplateConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfiguration
    Contains a prompt and variables in the prompt that can be replaced with values at runtime. See Prompt Template Configuration for more information.
    modelId String
    templateType String
    The type of prompt template. Valid values: TEXT, CHAT.
    additionalModelRequestFields String
    Additional fields to be included in the model request for the Prompt node.
    inferenceConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    templateConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfiguration
    Contains a prompt and variables in the prompt that can be replaced with values at runtime. See Prompt Template Configuration for more information.
    modelId string
    templateType string
    The type of prompt template. Valid values: TEXT, CHAT.
    additionalModelRequestFields string
    Additional fields to be included in the model request for the Prompt node.
    inferenceConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    templateConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfiguration
    Contains a prompt and variables in the prompt that can be replaced with values at runtime. See Prompt Template Configuration for more information.
    model_id str
    template_type str
    The type of prompt template. Valid values: TEXT, CHAT.
    additional_model_request_fields str
    Additional fields to be included in the model request for the Prompt node.
    inference_configuration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfiguration
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    template_configuration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfiguration
    Contains a prompt and variables in the prompt that can be replaced with values at runtime. See Prompt Template Configuration for more information.
    modelId String
    templateType String
    The type of prompt template. Valid values: TEXT, CHAT.
    additionalModelRequestFields String
    Additional fields to be included in the model request for the Prompt node.
    inferenceConfiguration Property Map
    Contains inference configurations for the prompt. See Prompt Inference Configuration for more information.
    templateConfiguration Property Map
    Contains a prompt and variables in the prompt that can be replaced with values at runtime. See Prompt Template Configuration for more information.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfiguration, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationArgs

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationText, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineInferenceConfigurationTextArgs

    MaxTokens int
    Maximum number of tokens to return in the response.
    StopSequences List<string>
    List of strings that define sequences after which the model will stop generating.
    Temperature double
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    TopP double
    Percentage of most-likely candidates that the model considers for the next token.
    MaxTokens int
    Maximum number of tokens to return in the response.
    StopSequences []string
    List of strings that define sequences after which the model will stop generating.
    Temperature float64
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    TopP float64
    Percentage of most-likely candidates that the model considers for the next token.
    maxTokens Integer
    Maximum number of tokens to return in the response.
    stopSequences List<String>
    List of strings that define sequences after which the model will stop generating.
    temperature Double
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    topP Double
    Percentage of most-likely candidates that the model considers for the next token.
    maxTokens number
    Maximum number of tokens to return in the response.
    stopSequences string[]
    List of strings that define sequences after which the model will stop generating.
    temperature number
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    topP number
    Percentage of most-likely candidates that the model considers for the next token.
    max_tokens int
    Maximum number of tokens to return in the response.
    stop_sequences Sequence[str]
    List of strings that define sequences after which the model will stop generating.
    temperature float
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    top_p float
    Percentage of most-likely candidates that the model considers for the next token.
    maxTokens Number
    Maximum number of tokens to return in the response.
    stopSequences List<String>
    List of strings that define sequences after which the model will stop generating.
    temperature Number
    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
    topP Number
    Percentage of most-likely candidates that the model considers for the next token.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfiguration, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationArgs

    chat Property Map
    Contains configurations to use the prompt in a conversational format. See Chat Template Configuration for more information.
    text Property Map

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChat, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatArgs

    InputVariables List<AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariable>
    Messages List<AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessage>
    A list of messages in the chat for the prompt. See Message for more information.
    Systems List<AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystem>
    A list of system prompts to provide context to the model or to describe how it should behave. See System for more information.
    ToolConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfiguration
    Configuration information for the tools that the model can use when generating a response. See Tool Configuration for more information.
    InputVariables []AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariable
    Messages []AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessage
    A list of messages in the chat for the prompt. See Message for more information.
    Systems []AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystem
    A list of system prompts to provide context to the model or to describe how it should behave. See System for more information.
    ToolConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfiguration
    Configuration information for the tools that the model can use when generating a response. See Tool Configuration for more information.
    inputVariables List<AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariable>
    messages List<AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessage>
    A list of messages in the chat for the prompt. See Message for more information.
    systems List<AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystem>
    A list of system prompts to provide context to the model or to describe how it should behave. See System for more information.
    toolConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfiguration
    Configuration information for the tools that the model can use when generating a response. See Tool Configuration for more information.
    inputVariables AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariable[]
    messages AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessage[]
    A list of messages in the chat for the prompt. See Message for more information.
    systems AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystem[]
    A list of system prompts to provide context to the model or to describe how it should behave. See System for more information.
    toolConfiguration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfiguration
    Configuration information for the tools that the model can use when generating a response. See Tool Configuration for more information.
    input_variables Sequence[AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariable]
    messages Sequence[AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessage]
    A list of messages in the chat for the prompt. See Message for more information.
    systems Sequence[AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystem]
    A list of system prompts to provide context to the model or to describe how it should behave. See System for more information.
    tool_configuration AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfiguration
    Configuration information for the tools that the model can use when generating a response. See Tool Configuration for more information.
    inputVariables List<Property Map>
    messages List<Property Map>
    A list of messages in the chat for the prompt. See Message for more information.
    systems List<Property Map>
    A list of system prompts to provide context to the model or to describe how it should behave. See System for more information.
    toolConfiguration Property Map
    Configuration information for the tools that the model can use when generating a response. See Tool Configuration for more information.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariable, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatInputVariableArgs

    Name string
    The name of the variable.
    Name string
    The name of the variable.
    name String
    The name of the variable.
    name string
    The name of the variable.
    name str
    The name of the variable.
    name String
    The name of the variable.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessage, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageArgs

    Role string
    The role that the message belongs to.
    Content AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContent
    Contains the content for the message you pass to, or receive from a model. See [Message Content] for more information.
    Role string
    The role that the message belongs to.
    Content AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContent
    Contains the content for the message you pass to, or receive from a model. See [Message Content] for more information.
    role String
    The role that the message belongs to.
    content AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContent
    Contains the content for the message you pass to, or receive from a model. See [Message Content] for more information.
    role string
    The role that the message belongs to.
    content AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContent
    Contains the content for the message you pass to, or receive from a model. See [Message Content] for more information.
    role str
    The role that the message belongs to.
    content AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContent
    Contains the content for the message you pass to, or receive from a model. See [Message Content] for more information.
    role String
    The role that the message belongs to.
    content Property Map
    Contains the content for the message you pass to, or receive from a model. See [Message Content] for more information.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContent, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContentArgs

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContentCachePoint, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatMessageContentCachePointArgs

    Type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    Type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type String
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type str
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type String
    Indicates that the CachePointBlock is of the default type. Valid values: default.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystem, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemArgs

    CachePoint AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePoint
    Creates a cache checkpoint within a tool designation. See Cache Point for more information.
    Text string
    The text in the system prompt.
    CachePoint AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePoint
    Creates a cache checkpoint within a tool designation. See Cache Point for more information.
    Text string
    The text in the system prompt.
    cachePoint AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePoint
    Creates a cache checkpoint within a tool designation. See Cache Point for more information.
    text String
    The text in the system prompt.
    cachePoint AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePoint
    Creates a cache checkpoint within a tool designation. See Cache Point for more information.
    text string
    The text in the system prompt.
    cache_point AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePoint
    Creates a cache checkpoint within a tool designation. See Cache Point for more information.
    text str
    The text in the system prompt.
    cachePoint Property Map
    Creates a cache checkpoint within a tool designation. See Cache Point for more information.
    text String
    The text in the system prompt.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePoint, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatSystemCachePointArgs

    Type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    Type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type String
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type str
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type String
    Indicates that the CachePointBlock is of the default type. Valid values: default.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfiguration, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationArgs

    toolChoice Property Map
    Defines which tools the model should request when invoked. See Tool Choice for more information.
    tools List<Property Map>
    A list of tools to pass to a model. See Tool for more information.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationTool, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolArgs

    cachePoint Property Map
    Creates a cache checkpoint within a tool designation. See Cache Point for more information.
    toolSpec Property Map
    The specification for the tool. See Tool Specification for more information.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolCachePoint, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolCachePointArgs

    Type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    Type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type String
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type str
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type String
    Indicates that the CachePointBlock is of the default type. Valid values: default.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoice, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceArgs

    Any AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAny
    Defines tools, at least one of which must be requested by the model. No text is generated but the results of tool use are sent back to the model to help generate a response. This object has no fields.
    Auto AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAuto
    Defines tools. The model automatically decides whether to call a tool or to generate text instead. This object has no fields.
    Tool AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceTool
    Defines a specific tool that the model must request. No text is generated but the results of tool use are sent back to the model to help generate a response. See Named Tool for more information.
    Any AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAny
    Defines tools, at least one of which must be requested by the model. No text is generated but the results of tool use are sent back to the model to help generate a response. This object has no fields.
    Auto AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAuto
    Defines tools. The model automatically decides whether to call a tool or to generate text instead. This object has no fields.
    Tool AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceTool
    Defines a specific tool that the model must request. No text is generated but the results of tool use are sent back to the model to help generate a response. See Named Tool for more information.
    any AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAny
    Defines tools, at least one of which must be requested by the model. No text is generated but the results of tool use are sent back to the model to help generate a response. This object has no fields.
    auto AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAuto
    Defines tools. The model automatically decides whether to call a tool or to generate text instead. This object has no fields.
    tool AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceTool
    Defines a specific tool that the model must request. No text is generated but the results of tool use are sent back to the model to help generate a response. See Named Tool for more information.
    any AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAny
    Defines tools, at least one of which must be requested by the model. No text is generated but the results of tool use are sent back to the model to help generate a response. This object has no fields.
    auto AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAuto
    Defines tools. The model automatically decides whether to call a tool or to generate text instead. This object has no fields.
    tool AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceTool
    Defines a specific tool that the model must request. No text is generated but the results of tool use are sent back to the model to help generate a response. See Named Tool for more information.
    any AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAny
    Defines tools, at least one of which must be requested by the model. No text is generated but the results of tool use are sent back to the model to help generate a response. This object has no fields.
    auto AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceAuto
    Defines tools. The model automatically decides whether to call a tool or to generate text instead. This object has no fields.
    tool AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceTool
    Defines a specific tool that the model must request. No text is generated but the results of tool use are sent back to the model to help generate a response. See Named Tool for more information.
    any Property Map
    Defines tools, at least one of which must be requested by the model. No text is generated but the results of tool use are sent back to the model to help generate a response. This object has no fields.
    auto Property Map
    Defines tools. The model automatically decides whether to call a tool or to generate text instead. This object has no fields.
    tool Property Map
    Defines a specific tool that the model must request. No text is generated but the results of tool use are sent back to the model to help generate a response. See Named Tool for more information.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceTool, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolChoiceToolArgs

    Name string
    A name for the flow.
    Name string
    A name for the flow.
    name String
    A name for the flow.
    name string
    A name for the flow.
    name str
    A name for the flow.
    name String
    A name for the flow.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpec, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecArgs

    Name string
    A name for the flow.
    Description string
    A description for the flow.
    InputSchema AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchema
    The input schema of the tool. See Tool Input Schema for more information.
    Name string
    A name for the flow.
    Description string
    A description for the flow.
    InputSchema AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchema
    The input schema of the tool. See Tool Input Schema for more information.
    name String
    A name for the flow.
    description String
    A description for the flow.
    inputSchema AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchema
    The input schema of the tool. See Tool Input Schema for more information.
    name string
    A name for the flow.
    description string
    A description for the flow.
    inputSchema AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchema
    The input schema of the tool. See Tool Input Schema for more information.
    name str
    A name for the flow.
    description str
    A description for the flow.
    input_schema AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchema
    The input schema of the tool. See Tool Input Schema for more information.
    name String
    A name for the flow.
    description String
    A description for the flow.
    inputSchema Property Map
    The input schema of the tool. See Tool Input Schema for more information.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchema, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationChatToolConfigurationToolToolSpecInputSchemaArgs

    Json string
    A JSON object defining the input schema for the tool.
    Json string
    A JSON object defining the input schema for the tool.
    json String
    A JSON object defining the input schema for the tool.
    json string
    A JSON object defining the input schema for the tool.
    json str
    A JSON object defining the input schema for the tool.
    json String
    A JSON object defining the input schema for the tool.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationText, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextArgs

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextCachePoint, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextCachePointArgs

    Type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    Type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type String
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type string
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type str
    Indicates that the CachePointBlock is of the default type. Valid values: default.
    type String
    Indicates that the CachePointBlock is of the default type. Valid values: default.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariable, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationInlineTemplateConfigurationTextInputVariableArgs

    Name string
    The name of the variable.
    Name string
    The name of the variable.
    name String
    The name of the variable.
    name string
    The name of the variable.
    name str
    The name of the variable.
    name String
    The name of the variable.

    AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResource, AgentFlowDefinitionNodeConfigurationPromptSourceConfigurationResourceArgs

    PromptArn string
    The Amazon Resource Name (ARN) of the prompt from Prompt management.
    PromptArn string
    The Amazon Resource Name (ARN) of the prompt from Prompt management.
    promptArn String
    The Amazon Resource Name (ARN) of the prompt from Prompt management.
    promptArn string
    The Amazon Resource Name (ARN) of the prompt from Prompt management.
    prompt_arn str
    The Amazon Resource Name (ARN) of the prompt from Prompt management.
    promptArn String
    The Amazon Resource Name (ARN) of the prompt from Prompt management.

    AgentFlowDefinitionNodeConfigurationRetrieval, AgentFlowDefinitionNodeConfigurationRetrievalArgs

    AgentFlowDefinitionNodeConfigurationRetrievalServiceConfiguration, AgentFlowDefinitionNodeConfigurationRetrievalServiceConfigurationArgs

    AgentFlowDefinitionNodeConfigurationRetrievalServiceConfigurationS3, AgentFlowDefinitionNodeConfigurationRetrievalServiceConfigurationS3Args

    BucketName string
    BucketName string
    bucketName String
    bucketName string
    bucketName String

    AgentFlowDefinitionNodeConfigurationStorage, AgentFlowDefinitionNodeConfigurationStorageArgs

    AgentFlowDefinitionNodeConfigurationStorageServiceConfiguration, AgentFlowDefinitionNodeConfigurationStorageServiceConfigurationArgs

    AgentFlowDefinitionNodeConfigurationStorageServiceConfigurationS3, AgentFlowDefinitionNodeConfigurationStorageServiceConfigurationS3Args

    BucketName string
    BucketName string
    bucketName String
    bucketName string
    bucketName String

    AgentFlowDefinitionNodeInput, AgentFlowDefinitionNodeInputArgs

    Expression string
    Name string
    A name for the flow.
    Type string
    Category string
    How input data flows between iterations in a DoWhile loop.
    Expression string
    Name string
    A name for the flow.
    Type string
    Category string
    How input data flows between iterations in a DoWhile loop.
    expression String
    name String
    A name for the flow.
    type String
    category String
    How input data flows between iterations in a DoWhile loop.
    expression string
    name string
    A name for the flow.
    type string
    category string
    How input data flows between iterations in a DoWhile loop.
    expression str
    name str
    A name for the flow.
    type str
    category str
    How input data flows between iterations in a DoWhile loop.
    expression String
    name String
    A name for the flow.
    type String
    category String
    How input data flows between iterations in a DoWhile loop.

    AgentFlowDefinitionNodeOutput, AgentFlowDefinitionNodeOutputArgs

    Name string
    A name for the flow.
    Type string
    Name string
    A name for the flow.
    Type string
    name String
    A name for the flow.
    type String
    name string
    A name for the flow.
    type string
    name str
    A name for the flow.
    type str
    name String
    A name for the flow.
    type String

    AgentFlowTimeouts, AgentFlowTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Using pulumi import, import Bedrock Agents Flow using the id. For example:

    $ pulumi import aws:bedrock/agentFlow:AgentFlow example ABCDEFGHIJ
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v7.4.0 published on Wednesday, Aug 13, 2025 by Pulumi