import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing an AWS Bedrock Agents Flow. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.bedrock.AgentFlow("example", { * name: "example-flow", * executionRoleArn: exampleAwsIamRole.arn, * }); * ``` * * ### Default definition * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.bedrock.AgentFlow("example", { * definition: { * connections: [ * { * configuration: { * data: { * sourceOutput: "document", * targetInput: "topic", * }, * }, * name: "FlowInputNodeFlowInputNode0ToPrompt_1PromptsNode0", * source: "FlowInputNode", * target: "Prompt_1", * type: "Data", * }, * { * configuration: { * data: { * sourceOutput: "modelCompletion", * targetInput: "document", * }, * }, * name: "Prompt_1PromptsNode0ToFlowOutputNodeFlowOutputNode0", * source: "Prompt_1", * target: "FlowOutputNode", * type: "Data", * }, * ], * nodes: [ * { * configuration: { * input: {}, * }, * outputs: [{ * name: "document", * type: "String", * }], * name: "FlowInputNode", * type: "Input", * }, * { * configuration: { * prompt: { * sourceConfiguration: { * inline: { * inferenceConfiguration: { * text: { * maxTokens: 2048, * stopSequences: ["User:"], * temperature: 0, * topP: 0.8999999761581421, * }, * }, * templateConfiguration: { * text: { * inputVariables: [{ * name: "topic", * }], * text: "Write a paragraph about {{topic}}.", * }, * }, * modelId: "amazon.titan-text-express-v1", * templateType: "TEXT", * }, * }, * }, * }, * inputs: [{ * expression: "$.data", * name: "topic", * type: "String", * }], * outputs: [{ * name: "modelCompletion", * type: "String", * }], * name: "Prompt_1", * type: "Prompt", * }, * { * configuration: { * output: {}, * }, * inputs: [{ * expression: "$.data", * name: "document", * type: "String", * }], * name: "FlowOutputNode", * type: "Output", * }, * ], * }, * name: "example", * executionRoleArn: exampleAwsIamRole.arn, * }); * ``` * * ## Import * * Using `pulumi import`, import Bedrock Agents Flow using the `id`. For example: * * ```sh * $ pulumi import aws:bedrock/agentFlow:AgentFlow example ABCDEFGHIJ * ``` */ export declare class AgentFlow extends pulumi.CustomResource { /** * Get an existing AgentFlow resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AgentFlowState, opts?: pulumi.CustomResourceOptions): AgentFlow; /** * Returns true if the given object is an instance of AgentFlow. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AgentFlow; /** * ARN of the flow. */ readonly arn: pulumi.Output; /** * Time at which the flow was created. */ readonly createdAt: pulumi.Output; /** * ARN of the KMS key to encrypt the flow. */ readonly customerEncryptionKeyArn: pulumi.Output; /** * Nodes and connections between nodes in the flow. See `definition` Block for details. */ readonly definition: pulumi.Output; /** * Description for the flow. */ readonly description: pulumi.Output; /** * 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](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the Amazon Bedrock User Guide. */ readonly executionRoleArn: pulumi.Output; /** * Name for the flow. * * The following arguments are optional: */ readonly name: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Status of the flow. */ readonly status: pulumi.Output; /** * Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; readonly timeouts: pulumi.Output; /** * Time at which the flow was last updated. */ readonly updatedAt: pulumi.Output; /** * Version of the flow. */ readonly version: pulumi.Output; /** * Create a AgentFlow resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AgentFlowArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AgentFlow resources. */ export interface AgentFlowState { /** * ARN of the flow. */ arn?: pulumi.Input; /** * Time at which the flow was created. */ createdAt?: pulumi.Input; /** * ARN of the KMS key to encrypt the flow. */ customerEncryptionKeyArn?: pulumi.Input; /** * Nodes and connections between nodes in the flow. See `definition` Block for details. */ definition?: pulumi.Input; /** * Description for the flow. */ description?: pulumi.Input; /** * 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](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the Amazon Bedrock User Guide. */ executionRoleArn?: pulumi.Input; /** * Name for the flow. * * The following arguments are optional: */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Status of the flow. */ status?: pulumi.Input; /** * Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; /** * Time at which the flow was last updated. */ updatedAt?: pulumi.Input; /** * Version of the flow. */ version?: pulumi.Input; } /** * The set of arguments for constructing a AgentFlow resource. */ export interface AgentFlowArgs { /** * ARN of the KMS key to encrypt the flow. */ customerEncryptionKeyArn?: pulumi.Input; /** * Nodes and connections between nodes in the flow. See `definition` Block for details. */ definition?: pulumi.Input; /** * Description for the flow. */ description?: pulumi.Input; /** * 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](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) in the Amazon Bedrock User Guide. */ executionRoleArn: pulumi.Input; /** * Name for the flow. * * The following arguments are optional: */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; } //# sourceMappingURL=agentFlow.d.ts.map