aws logo
AWS Classic v5.34.0, Mar 30 23

aws.sagemaker.FlowDefinition

Provides a SageMaker Flow Definition resource.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Sagemaker.FlowDefinition("example", new()
    {
        FlowDefinitionName = "example",
        RoleArn = aws_iam_role.Example.Arn,
        HumanLoopConfig = new Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopConfigArgs
        {
            HumanTaskUiArn = aws_sagemaker_human_task_ui.Example.Arn,
            TaskAvailabilityLifetimeInSeconds = 1,
            TaskCount = 1,
            TaskDescription = "example",
            TaskTitle = "example",
            WorkteamArn = aws_sagemaker_workteam.Example.Arn,
        },
        OutputConfig = new Aws.Sagemaker.Inputs.FlowDefinitionOutputConfigArgs
        {
            S3OutputPath = $"s3://{aws_s3_bucket.Example.Bucket}/",
        },
    });

});
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sagemaker"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sagemaker.NewFlowDefinition(ctx, "example", &sagemaker.FlowDefinitionArgs{
			FlowDefinitionName: pulumi.String("example"),
			RoleArn:            pulumi.Any(aws_iam_role.Example.Arn),
			HumanLoopConfig: &sagemaker.FlowDefinitionHumanLoopConfigArgs{
				HumanTaskUiArn:                    pulumi.Any(aws_sagemaker_human_task_ui.Example.Arn),
				TaskAvailabilityLifetimeInSeconds: pulumi.Int(1),
				TaskCount:                         pulumi.Int(1),
				TaskDescription:                   pulumi.String("example"),
				TaskTitle:                         pulumi.String("example"),
				WorkteamArn:                       pulumi.Any(aws_sagemaker_workteam.Example.Arn),
			},
			OutputConfig: &sagemaker.FlowDefinitionOutputConfigArgs{
				S3OutputPath: pulumi.String(fmt.Sprintf("s3://%v/", aws_s3_bucket.Example.Bucket)),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.FlowDefinition;
import com.pulumi.aws.sagemaker.FlowDefinitionArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionHumanLoopConfigArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionOutputConfigArgs;
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 FlowDefinition("example", FlowDefinitionArgs.builder()        
            .flowDefinitionName("example")
            .roleArn(aws_iam_role.example().arn())
            .humanLoopConfig(FlowDefinitionHumanLoopConfigArgs.builder()
                .humanTaskUiArn(aws_sagemaker_human_task_ui.example().arn())
                .taskAvailabilityLifetimeInSeconds(1)
                .taskCount(1)
                .taskDescription("example")
                .taskTitle("example")
                .workteamArn(aws_sagemaker_workteam.example().arn())
                .build())
            .outputConfig(FlowDefinitionOutputConfigArgs.builder()
                .s3OutputPath(String.format("s3://%s/", aws_s3_bucket.example().bucket()))
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.sagemaker.FlowDefinition("example",
    flow_definition_name="example",
    role_arn=aws_iam_role["example"]["arn"],
    human_loop_config=aws.sagemaker.FlowDefinitionHumanLoopConfigArgs(
        human_task_ui_arn=aws_sagemaker_human_task_ui["example"]["arn"],
        task_availability_lifetime_in_seconds=1,
        task_count=1,
        task_description="example",
        task_title="example",
        workteam_arn=aws_sagemaker_workteam["example"]["arn"],
    ),
    output_config=aws.sagemaker.FlowDefinitionOutputConfigArgs(
        s3_output_path=f"s3://{aws_s3_bucket['example']['bucket']}/",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.sagemaker.FlowDefinition("example", {
    flowDefinitionName: "example",
    roleArn: aws_iam_role.example.arn,
    humanLoopConfig: {
        humanTaskUiArn: aws_sagemaker_human_task_ui.example.arn,
        taskAvailabilityLifetimeInSeconds: 1,
        taskCount: 1,
        taskDescription: "example",
        taskTitle: "example",
        workteamArn: aws_sagemaker_workteam.example.arn,
    },
    outputConfig: {
        s3OutputPath: `s3://${aws_s3_bucket.example.bucket}/`,
    },
});
resources:
  example:
    type: aws:sagemaker:FlowDefinition
    properties:
      flowDefinitionName: example
      roleArn: ${aws_iam_role.example.arn}
      humanLoopConfig:
        humanTaskUiArn: ${aws_sagemaker_human_task_ui.example.arn}
        taskAvailabilityLifetimeInSeconds: 1
        taskCount: 1
        taskDescription: example
        taskTitle: example
        workteamArn: ${aws_sagemaker_workteam.example.arn}
      outputConfig:
        s3OutputPath: s3://${aws_s3_bucket.example.bucket}/

Public Workteam Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Sagemaker.FlowDefinition("example", new()
    {
        FlowDefinitionName = "example",
        RoleArn = aws_iam_role.Example.Arn,
        HumanLoopConfig = new Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopConfigArgs
        {
            HumanTaskUiArn = aws_sagemaker_human_task_ui.Example.Arn,
            TaskAvailabilityLifetimeInSeconds = 1,
            TaskCount = 1,
            TaskDescription = "example",
            TaskTitle = "example",
            WorkteamArn = $"arn:aws:sagemaker:{data.Aws_region.Current.Name}:394669845002:workteam/public-crowd/default",
            PublicWorkforceTaskPrice = new Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceArgs
            {
                AmountInUsd = new Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsdArgs
                {
                    Cents = 1,
                    TenthFractionsOfACent = 2,
                },
            },
        },
        OutputConfig = new Aws.Sagemaker.Inputs.FlowDefinitionOutputConfigArgs
        {
            S3OutputPath = $"s3://{aws_s3_bucket.Example.Bucket}/",
        },
    });

});
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sagemaker"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sagemaker.NewFlowDefinition(ctx, "example", &sagemaker.FlowDefinitionArgs{
			FlowDefinitionName: pulumi.String("example"),
			RoleArn:            pulumi.Any(aws_iam_role.Example.Arn),
			HumanLoopConfig: &sagemaker.FlowDefinitionHumanLoopConfigArgs{
				HumanTaskUiArn:                    pulumi.Any(aws_sagemaker_human_task_ui.Example.Arn),
				TaskAvailabilityLifetimeInSeconds: pulumi.Int(1),
				TaskCount:                         pulumi.Int(1),
				TaskDescription:                   pulumi.String("example"),
				TaskTitle:                         pulumi.String("example"),
				WorkteamArn:                       pulumi.String(fmt.Sprintf("arn:aws:sagemaker:%v:394669845002:workteam/public-crowd/default", data.Aws_region.Current.Name)),
				PublicWorkforceTaskPrice: &sagemaker.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceArgs{
					AmountInUsd: &sagemaker.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsdArgs{
						Cents:                 pulumi.Int(1),
						TenthFractionsOfACent: pulumi.Int(2),
					},
				},
			},
			OutputConfig: &sagemaker.FlowDefinitionOutputConfigArgs{
				S3OutputPath: pulumi.String(fmt.Sprintf("s3://%v/", aws_s3_bucket.Example.Bucket)),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.FlowDefinition;
import com.pulumi.aws.sagemaker.FlowDefinitionArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionHumanLoopConfigArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsdArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionOutputConfigArgs;
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 FlowDefinition("example", FlowDefinitionArgs.builder()        
            .flowDefinitionName("example")
            .roleArn(aws_iam_role.example().arn())
            .humanLoopConfig(FlowDefinitionHumanLoopConfigArgs.builder()
                .humanTaskUiArn(aws_sagemaker_human_task_ui.example().arn())
                .taskAvailabilityLifetimeInSeconds(1)
                .taskCount(1)
                .taskDescription("example")
                .taskTitle("example")
                .workteamArn(String.format("arn:aws:sagemaker:%s:394669845002:workteam/public-crowd/default", data.aws_region().current().name()))
                .publicWorkforceTaskPrice(FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceArgs.builder()
                    .amountInUsd(FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsdArgs.builder()
                        .cents(1)
                        .tenthFractionsOfACent(2)
                        .build())
                    .build())
                .build())
            .outputConfig(FlowDefinitionOutputConfigArgs.builder()
                .s3OutputPath(String.format("s3://%s/", aws_s3_bucket.example().bucket()))
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.sagemaker.FlowDefinition("example",
    flow_definition_name="example",
    role_arn=aws_iam_role["example"]["arn"],
    human_loop_config=aws.sagemaker.FlowDefinitionHumanLoopConfigArgs(
        human_task_ui_arn=aws_sagemaker_human_task_ui["example"]["arn"],
        task_availability_lifetime_in_seconds=1,
        task_count=1,
        task_description="example",
        task_title="example",
        workteam_arn=f"arn:aws:sagemaker:{data['aws_region']['current']['name']}:394669845002:workteam/public-crowd/default",
        public_workforce_task_price=aws.sagemaker.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceArgs(
            amount_in_usd=aws.sagemaker.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsdArgs(
                cents=1,
                tenth_fractions_of_a_cent=2,
            ),
        ),
    ),
    output_config=aws.sagemaker.FlowDefinitionOutputConfigArgs(
        s3_output_path=f"s3://{aws_s3_bucket['example']['bucket']}/",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.sagemaker.FlowDefinition("example", {
    flowDefinitionName: "example",
    roleArn: aws_iam_role.example.arn,
    humanLoopConfig: {
        humanTaskUiArn: aws_sagemaker_human_task_ui.example.arn,
        taskAvailabilityLifetimeInSeconds: 1,
        taskCount: 1,
        taskDescription: "example",
        taskTitle: "example",
        workteamArn: `arn:aws:sagemaker:${data.aws_region.current.name}:394669845002:workteam/public-crowd/default`,
        publicWorkforceTaskPrice: {
            amountInUsd: {
                cents: 1,
                tenthFractionsOfACent: 2,
            },
        },
    },
    outputConfig: {
        s3OutputPath: `s3://${aws_s3_bucket.example.bucket}/`,
    },
});
resources:
  example:
    type: aws:sagemaker:FlowDefinition
    properties:
      flowDefinitionName: example
      roleArn: ${aws_iam_role.example.arn}
      humanLoopConfig:
        humanTaskUiArn: ${aws_sagemaker_human_task_ui.example.arn}
        taskAvailabilityLifetimeInSeconds: 1
        taskCount: 1
        taskDescription: example
        taskTitle: example
        workteamArn: arn:aws:sagemaker:${data.aws_region.current.name}:394669845002:workteam/public-crowd/default
        publicWorkforceTaskPrice:
          amountInUsd:
            cents: 1
            tenthFractionsOfACent: 2
      outputConfig:
        s3OutputPath: s3://${aws_s3_bucket.example.bucket}/

Human Loop Activation Config Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Sagemaker.FlowDefinition("example", new()
    {
        FlowDefinitionName = "example",
        RoleArn = aws_iam_role.Example.Arn,
        HumanLoopConfig = new Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopConfigArgs
        {
            HumanTaskUiArn = aws_sagemaker_human_task_ui.Example.Arn,
            TaskAvailabilityLifetimeInSeconds = 1,
            TaskCount = 1,
            TaskDescription = "example",
            TaskTitle = "example",
            WorkteamArn = aws_sagemaker_workteam.Example.Arn,
        },
        HumanLoopRequestSource = new Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopRequestSourceArgs
        {
            AwsManagedHumanLoopRequestSource = "AWS/Textract/AnalyzeDocument/Forms/V1",
        },
        HumanLoopActivationConfig = new Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopActivationConfigArgs
        {
            HumanLoopActivationConditionsConfig = new Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfigArgs
            {
                HumanLoopActivationConditions = @"        {
			""Conditions"": [
			  {
				""ConditionType"": ""Sampling"",
				""ConditionParameters"": {
				  ""RandomSamplingPercentage"": 5
				}
			  }
			]
		}
",
            },
        },
        OutputConfig = new Aws.Sagemaker.Inputs.FlowDefinitionOutputConfigArgs
        {
            S3OutputPath = $"s3://{aws_s3_bucket.Example.Bucket}/",
        },
    });

});
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sagemaker"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sagemaker.NewFlowDefinition(ctx, "example", &sagemaker.FlowDefinitionArgs{
			FlowDefinitionName: pulumi.String("example"),
			RoleArn:            pulumi.Any(aws_iam_role.Example.Arn),
			HumanLoopConfig: &sagemaker.FlowDefinitionHumanLoopConfigArgs{
				HumanTaskUiArn:                    pulumi.Any(aws_sagemaker_human_task_ui.Example.Arn),
				TaskAvailabilityLifetimeInSeconds: pulumi.Int(1),
				TaskCount:                         pulumi.Int(1),
				TaskDescription:                   pulumi.String("example"),
				TaskTitle:                         pulumi.String("example"),
				WorkteamArn:                       pulumi.Any(aws_sagemaker_workteam.Example.Arn),
			},
			HumanLoopRequestSource: &sagemaker.FlowDefinitionHumanLoopRequestSourceArgs{
				AwsManagedHumanLoopRequestSource: pulumi.String("AWS/Textract/AnalyzeDocument/Forms/V1"),
			},
			HumanLoopActivationConfig: &sagemaker.FlowDefinitionHumanLoopActivationConfigArgs{
				HumanLoopActivationConditionsConfig: &sagemaker.FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfigArgs{
					HumanLoopActivationConditions: pulumi.String("        {\n			\"Conditions\": [\n			  {\n				\"ConditionType\": \"Sampling\",\n				\"ConditionParameters\": {\n				  \"RandomSamplingPercentage\": 5\n				}\n			  }\n			]\n		}\n"),
				},
			},
			OutputConfig: &sagemaker.FlowDefinitionOutputConfigArgs{
				S3OutputPath: pulumi.String(fmt.Sprintf("s3://%v/", aws_s3_bucket.Example.Bucket)),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.FlowDefinition;
import com.pulumi.aws.sagemaker.FlowDefinitionArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionHumanLoopConfigArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionHumanLoopRequestSourceArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionHumanLoopActivationConfigArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfigArgs;
import com.pulumi.aws.sagemaker.inputs.FlowDefinitionOutputConfigArgs;
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 FlowDefinition("example", FlowDefinitionArgs.builder()        
            .flowDefinitionName("example")
            .roleArn(aws_iam_role.example().arn())
            .humanLoopConfig(FlowDefinitionHumanLoopConfigArgs.builder()
                .humanTaskUiArn(aws_sagemaker_human_task_ui.example().arn())
                .taskAvailabilityLifetimeInSeconds(1)
                .taskCount(1)
                .taskDescription("example")
                .taskTitle("example")
                .workteamArn(aws_sagemaker_workteam.example().arn())
                .build())
            .humanLoopRequestSource(FlowDefinitionHumanLoopRequestSourceArgs.builder()
                .awsManagedHumanLoopRequestSource("AWS/Textract/AnalyzeDocument/Forms/V1")
                .build())
            .humanLoopActivationConfig(FlowDefinitionHumanLoopActivationConfigArgs.builder()
                .humanLoopActivationConditionsConfig(FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfigArgs.builder()
                    .humanLoopActivationConditions("""
        {
			"Conditions": [
			  {
				"ConditionType": "Sampling",
				"ConditionParameters": {
				  "RandomSamplingPercentage": 5
				}
			  }
			]
		}
                    """)
                    .build())
                .build())
            .outputConfig(FlowDefinitionOutputConfigArgs.builder()
                .s3OutputPath(String.format("s3://%s/", aws_s3_bucket.example().bucket()))
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.sagemaker.FlowDefinition("example",
    flow_definition_name="example",
    role_arn=aws_iam_role["example"]["arn"],
    human_loop_config=aws.sagemaker.FlowDefinitionHumanLoopConfigArgs(
        human_task_ui_arn=aws_sagemaker_human_task_ui["example"]["arn"],
        task_availability_lifetime_in_seconds=1,
        task_count=1,
        task_description="example",
        task_title="example",
        workteam_arn=aws_sagemaker_workteam["example"]["arn"],
    ),
    human_loop_request_source=aws.sagemaker.FlowDefinitionHumanLoopRequestSourceArgs(
        aws_managed_human_loop_request_source="AWS/Textract/AnalyzeDocument/Forms/V1",
    ),
    human_loop_activation_config=aws.sagemaker.FlowDefinitionHumanLoopActivationConfigArgs(
        human_loop_activation_conditions_config=aws.sagemaker.FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfigArgs(
            human_loop_activation_conditions="""        {
			"Conditions": [
			  {
				"ConditionType": "Sampling",
				"ConditionParameters": {
				  "RandomSamplingPercentage": 5
				}
			  }
			]
		}
""",
        ),
    ),
    output_config=aws.sagemaker.FlowDefinitionOutputConfigArgs(
        s3_output_path=f"s3://{aws_s3_bucket['example']['bucket']}/",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.sagemaker.FlowDefinition("example", {
    flowDefinitionName: "example",
    roleArn: aws_iam_role.example.arn,
    humanLoopConfig: {
        humanTaskUiArn: aws_sagemaker_human_task_ui.example.arn,
        taskAvailabilityLifetimeInSeconds: 1,
        taskCount: 1,
        taskDescription: "example",
        taskTitle: "example",
        workteamArn: aws_sagemaker_workteam.example.arn,
    },
    humanLoopRequestSource: {
        awsManagedHumanLoopRequestSource: "AWS/Textract/AnalyzeDocument/Forms/V1",
    },
    humanLoopActivationConfig: {
        humanLoopActivationConditionsConfig: {
            humanLoopActivationConditions: `        {
			"Conditions": [
			  {
				"ConditionType": "Sampling",
				"ConditionParameters": {
				  "RandomSamplingPercentage": 5
				}
			  }
			]
		}
`,
        },
    },
    outputConfig: {
        s3OutputPath: `s3://${aws_s3_bucket.example.bucket}/`,
    },
});
resources:
  example:
    type: aws:sagemaker:FlowDefinition
    properties:
      flowDefinitionName: example
      roleArn: ${aws_iam_role.example.arn}
      humanLoopConfig:
        humanTaskUiArn: ${aws_sagemaker_human_task_ui.example.arn}
        taskAvailabilityLifetimeInSeconds: 1
        taskCount: 1
        taskDescription: example
        taskTitle: example
        workteamArn: ${aws_sagemaker_workteam.example.arn}
      humanLoopRequestSource:
        awsManagedHumanLoopRequestSource: AWS/Textract/AnalyzeDocument/Forms/V1
      humanLoopActivationConfig:
        humanLoopActivationConditionsConfig:
          humanLoopActivationConditions: |2
                    {
            			"Conditions": [
            			  {
            				"ConditionType": "Sampling",
            				"ConditionParameters": {
            				  "RandomSamplingPercentage": 5
            				}
            			  }
            			]
            		}
      outputConfig:
        s3OutputPath: s3://${aws_s3_bucket.example.bucket}/

Create FlowDefinition Resource

new FlowDefinition(name: string, args: FlowDefinitionArgs, opts?: CustomResourceOptions);
@overload
def FlowDefinition(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   flow_definition_name: Optional[str] = None,
                   human_loop_activation_config: Optional[FlowDefinitionHumanLoopActivationConfigArgs] = None,
                   human_loop_config: Optional[FlowDefinitionHumanLoopConfigArgs] = None,
                   human_loop_request_source: Optional[FlowDefinitionHumanLoopRequestSourceArgs] = None,
                   output_config: Optional[FlowDefinitionOutputConfigArgs] = None,
                   role_arn: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = None)
@overload
def FlowDefinition(resource_name: str,
                   args: FlowDefinitionArgs,
                   opts: Optional[ResourceOptions] = None)
func NewFlowDefinition(ctx *Context, name string, args FlowDefinitionArgs, opts ...ResourceOption) (*FlowDefinition, error)
public FlowDefinition(string name, FlowDefinitionArgs args, CustomResourceOptions? opts = null)
public FlowDefinition(String name, FlowDefinitionArgs args)
public FlowDefinition(String name, FlowDefinitionArgs args, CustomResourceOptions options)
type: aws:sagemaker:FlowDefinition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FlowDefinitionArgs
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 FlowDefinitionArgs
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 FlowDefinitionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FlowDefinitionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FlowDefinitionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FlowDefinition Resource Properties

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

Inputs

The FlowDefinition resource accepts the following input properties:

FlowDefinitionName string

The name of your flow definition.

HumanLoopConfig Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

OutputConfig Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

RoleArn string

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

HumanLoopActivationConfig Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

HumanLoopRequestSource Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

Tags Dictionary<string, string>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

FlowDefinitionName string

The name of your flow definition.

HumanLoopConfig FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

OutputConfig FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

RoleArn string

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

HumanLoopActivationConfig FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

HumanLoopRequestSource FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

Tags map[string]string

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

flowDefinitionName String

The name of your flow definition.

humanLoopConfig FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

outputConfig FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

roleArn String

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

humanLoopActivationConfig FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

humanLoopRequestSource FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

tags Map<String,String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

flowDefinitionName string

The name of your flow definition.

humanLoopConfig FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

outputConfig FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

roleArn string

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

humanLoopActivationConfig FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

humanLoopRequestSource FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

tags {[key: string]: string}

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

flow_definition_name str

The name of your flow definition.

human_loop_config FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

output_config FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

role_arn str

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

human_loop_activation_config FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

human_loop_request_source FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

tags Mapping[str, str]

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

flowDefinitionName String

The name of your flow definition.

humanLoopConfig Property Map

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

outputConfig Property Map

An object containing information about where the human review results will be uploaded. See Output Config details below.

roleArn String

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

humanLoopActivationConfig Property Map

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

humanLoopRequestSource Property Map

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

tags Map<String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

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

Arn string

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Arn string

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn string

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

id string

The provider-assigned unique ID for this managed resource.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn str

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

id str

The provider-assigned unique ID for this managed resource.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Look up Existing FlowDefinition Resource

Get an existing FlowDefinition 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?: FlowDefinitionState, opts?: CustomResourceOptions): FlowDefinition
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        flow_definition_name: Optional[str] = None,
        human_loop_activation_config: Optional[FlowDefinitionHumanLoopActivationConfigArgs] = None,
        human_loop_config: Optional[FlowDefinitionHumanLoopConfigArgs] = None,
        human_loop_request_source: Optional[FlowDefinitionHumanLoopRequestSourceArgs] = None,
        output_config: Optional[FlowDefinitionOutputConfigArgs] = None,
        role_arn: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> FlowDefinition
func GetFlowDefinition(ctx *Context, name string, id IDInput, state *FlowDefinitionState, opts ...ResourceOption) (*FlowDefinition, error)
public static FlowDefinition Get(string name, Input<string> id, FlowDefinitionState? state, CustomResourceOptions? opts = null)
public static FlowDefinition get(String name, Output<String> id, FlowDefinitionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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) assigned by AWS to this Flow Definition.

FlowDefinitionName string

The name of your flow definition.

HumanLoopActivationConfig Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

HumanLoopConfig Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

HumanLoopRequestSource Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

OutputConfig Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

RoleArn string

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

Tags Dictionary<string, string>

A map of tags to assign to the resource. 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.

Arn string

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

FlowDefinitionName string

The name of your flow definition.

HumanLoopActivationConfig FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

HumanLoopConfig FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

HumanLoopRequestSource FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

OutputConfig FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

RoleArn string

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

Tags map[string]string

A map of tags to assign to the resource. 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.

arn String

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

flowDefinitionName String

The name of your flow definition.

humanLoopActivationConfig FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

humanLoopConfig FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

humanLoopRequestSource FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

outputConfig FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

roleArn String

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

tags Map<String,String>

A map of tags to assign to the resource. 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.

arn string

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

flowDefinitionName string

The name of your flow definition.

humanLoopActivationConfig FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

humanLoopConfig FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

humanLoopRequestSource FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

outputConfig FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

roleArn string

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

tags {[key: string]: string}

A map of tags to assign to the resource. 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.

arn str

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

flow_definition_name str

The name of your flow definition.

human_loop_activation_config FlowDefinitionHumanLoopActivationConfigArgs

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

human_loop_config FlowDefinitionHumanLoopConfigArgs

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

human_loop_request_source FlowDefinitionHumanLoopRequestSourceArgs

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

output_config FlowDefinitionOutputConfigArgs

An object containing information about where the human review results will be uploaded. See Output Config details below.

role_arn str

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

tags Mapping[str, str]

A map of tags to assign to the resource. 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.

arn String

The Amazon Resource Name (ARN) assigned by AWS to this Flow Definition.

flowDefinitionName String

The name of your flow definition.

humanLoopActivationConfig Property Map

An object containing information about the events that trigger a human workflow. See Human Loop Activation Config details below.

humanLoopConfig Property Map

An object containing information about the tasks the human reviewers will perform. See Human Loop Config details below.

humanLoopRequestSource Property Map

Container for configuring the source of human task requests. Use to specify if Amazon Rekognition or Amazon Textract is used as an integration source. See Human Loop Request Source details below.

outputConfig Property Map

An object containing information about where the human review results will be uploaded. See Output Config details below.

roleArn String

The Amazon Resource Name (ARN) of the role needed to call other services on your behalf.

tags Map<String>

A map of tags to assign to the resource. 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.

Supporting Types

FlowDefinitionHumanLoopActivationConfig

HumanLoopActivationConditionsConfig Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig

defines under what conditions SageMaker creates a human loop. See Human Loop Activation Conditions Config details below.

HumanLoopActivationConditionsConfig FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig

defines under what conditions SageMaker creates a human loop. See Human Loop Activation Conditions Config details below.

humanLoopActivationConditionsConfig FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig

defines under what conditions SageMaker creates a human loop. See Human Loop Activation Conditions Config details below.

humanLoopActivationConditionsConfig FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig

defines under what conditions SageMaker creates a human loop. See Human Loop Activation Conditions Config details below.

human_loop_activation_conditions_config FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig

defines under what conditions SageMaker creates a human loop. See Human Loop Activation Conditions Config details below.

humanLoopActivationConditionsConfig Property Map

defines under what conditions SageMaker creates a human loop. See Human Loop Activation Conditions Config details below.

FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig

HumanLoopActivationConditions string

A JSON expressing use-case specific conditions declaratively. If any condition is matched, atomic tasks are created against the configured work team. For more information about how to structure the JSON, see JSON Schema for Human Loop Activation Conditions in Amazon Augmented AI.

HumanLoopActivationConditions string

A JSON expressing use-case specific conditions declaratively. If any condition is matched, atomic tasks are created against the configured work team. For more information about how to structure the JSON, see JSON Schema for Human Loop Activation Conditions in Amazon Augmented AI.

humanLoopActivationConditions String

A JSON expressing use-case specific conditions declaratively. If any condition is matched, atomic tasks are created against the configured work team. For more information about how to structure the JSON, see JSON Schema for Human Loop Activation Conditions in Amazon Augmented AI.

humanLoopActivationConditions string

A JSON expressing use-case specific conditions declaratively. If any condition is matched, atomic tasks are created against the configured work team. For more information about how to structure the JSON, see JSON Schema for Human Loop Activation Conditions in Amazon Augmented AI.

human_loop_activation_conditions str

A JSON expressing use-case specific conditions declaratively. If any condition is matched, atomic tasks are created against the configured work team. For more information about how to structure the JSON, see JSON Schema for Human Loop Activation Conditions in Amazon Augmented AI.

humanLoopActivationConditions String

A JSON expressing use-case specific conditions declaratively. If any condition is matched, atomic tasks are created against the configured work team. For more information about how to structure the JSON, see JSON Schema for Human Loop Activation Conditions in Amazon Augmented AI.

FlowDefinitionHumanLoopConfig

HumanTaskUiArn string

The Amazon Resource Name (ARN) of the human task user interface.

TaskCount int

The number of distinct workers who will perform the same task on each object. Valid value range between 1 and 3.

TaskDescription string

A description for the human worker task.

TaskTitle string

A title for the human worker task.

WorkteamArn string

The Amazon Resource Name (ARN) of the human task user interface. Amazon Resource Name (ARN) of a team of workers. For Public workforces see AWS Docs.

PublicWorkforceTaskPrice Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice

Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. See Public Workforce Task Price details below.

TaskAvailabilityLifetimeInSeconds int

The length of time that a task remains available for review by human workers. Valid value range between 1 and 864000.

TaskKeywords List<string>

An array of keywords used to describe the task so that workers can discover the task.

TaskTimeLimitInSeconds int

The amount of time that a worker has to complete a task. The default value is 3600 seconds.

HumanTaskUiArn string

The Amazon Resource Name (ARN) of the human task user interface.

TaskCount int

The number of distinct workers who will perform the same task on each object. Valid value range between 1 and 3.

TaskDescription string

A description for the human worker task.

TaskTitle string

A title for the human worker task.

WorkteamArn string

The Amazon Resource Name (ARN) of the human task user interface. Amazon Resource Name (ARN) of a team of workers. For Public workforces see AWS Docs.

PublicWorkforceTaskPrice FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice

Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. See Public Workforce Task Price details below.

TaskAvailabilityLifetimeInSeconds int

The length of time that a task remains available for review by human workers. Valid value range between 1 and 864000.

TaskKeywords []string

An array of keywords used to describe the task so that workers can discover the task.

TaskTimeLimitInSeconds int

The amount of time that a worker has to complete a task. The default value is 3600 seconds.

humanTaskUiArn String

The Amazon Resource Name (ARN) of the human task user interface.

taskCount Integer

The number of distinct workers who will perform the same task on each object. Valid value range between 1 and 3.

taskDescription String

A description for the human worker task.

taskTitle String

A title for the human worker task.

workteamArn String

The Amazon Resource Name (ARN) of the human task user interface. Amazon Resource Name (ARN) of a team of workers. For Public workforces see AWS Docs.

publicWorkforceTaskPrice FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice

Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. See Public Workforce Task Price details below.

taskAvailabilityLifetimeInSeconds Integer

The length of time that a task remains available for review by human workers. Valid value range between 1 and 864000.

taskKeywords List<String>

An array of keywords used to describe the task so that workers can discover the task.

taskTimeLimitInSeconds Integer

The amount of time that a worker has to complete a task. The default value is 3600 seconds.

humanTaskUiArn string

The Amazon Resource Name (ARN) of the human task user interface.

taskCount number

The number of distinct workers who will perform the same task on each object. Valid value range between 1 and 3.

taskDescription string

A description for the human worker task.

taskTitle string

A title for the human worker task.

workteamArn string

The Amazon Resource Name (ARN) of the human task user interface. Amazon Resource Name (ARN) of a team of workers. For Public workforces see AWS Docs.

publicWorkforceTaskPrice FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice

Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. See Public Workforce Task Price details below.

taskAvailabilityLifetimeInSeconds number

The length of time that a task remains available for review by human workers. Valid value range between 1 and 864000.

taskKeywords string[]

An array of keywords used to describe the task so that workers can discover the task.

taskTimeLimitInSeconds number

The amount of time that a worker has to complete a task. The default value is 3600 seconds.

human_task_ui_arn str

The Amazon Resource Name (ARN) of the human task user interface.

task_count int

The number of distinct workers who will perform the same task on each object. Valid value range between 1 and 3.

task_description str

A description for the human worker task.

task_title str

A title for the human worker task.

workteam_arn str

The Amazon Resource Name (ARN) of the human task user interface. Amazon Resource Name (ARN) of a team of workers. For Public workforces see AWS Docs.

public_workforce_task_price FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice

Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. See Public Workforce Task Price details below.

task_availability_lifetime_in_seconds int

The length of time that a task remains available for review by human workers. Valid value range between 1 and 864000.

task_keywords Sequence[str]

An array of keywords used to describe the task so that workers can discover the task.

task_time_limit_in_seconds int

The amount of time that a worker has to complete a task. The default value is 3600 seconds.

humanTaskUiArn String

The Amazon Resource Name (ARN) of the human task user interface.

taskCount Number

The number of distinct workers who will perform the same task on each object. Valid value range between 1 and 3.

taskDescription String

A description for the human worker task.

taskTitle String

A title for the human worker task.

workteamArn String

The Amazon Resource Name (ARN) of the human task user interface. Amazon Resource Name (ARN) of a team of workers. For Public workforces see AWS Docs.

publicWorkforceTaskPrice Property Map

Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. See Public Workforce Task Price details below.

taskAvailabilityLifetimeInSeconds Number

The length of time that a task remains available for review by human workers. Valid value range between 1 and 864000.

taskKeywords List<String>

An array of keywords used to describe the task so that workers can discover the task.

taskTimeLimitInSeconds Number

The amount of time that a worker has to complete a task. The default value is 3600 seconds.

FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice

AmountInUsd Pulumi.Aws.Sagemaker.Inputs.FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd

Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars. See Amount In Usd details below.

AmountInUsd FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd

Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars. See Amount In Usd details below.

amountInUsd FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd

Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars. See Amount In Usd details below.

amountInUsd FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd

Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars. See Amount In Usd details below.

amount_in_usd FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd

Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars. See Amount In Usd details below.

amountInUsd Property Map

Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars. See Amount In Usd details below.

FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd

Cents int

The fractional portion, in cents, of the amount. Valid value range between 0 and 99.

Dollars int

The whole number of dollars in the amount. Valid value range between 0 and 2.

TenthFractionsOfACent int

Fractions of a cent, in tenths. Valid value range between 0 and 9.

Cents int

The fractional portion, in cents, of the amount. Valid value range between 0 and 99.

Dollars int

The whole number of dollars in the amount. Valid value range between 0 and 2.

TenthFractionsOfACent int

Fractions of a cent, in tenths. Valid value range between 0 and 9.

cents Integer

The fractional portion, in cents, of the amount. Valid value range between 0 and 99.

dollars Integer

The whole number of dollars in the amount. Valid value range between 0 and 2.

tenthFractionsOfACent Integer

Fractions of a cent, in tenths. Valid value range between 0 and 9.

cents number

The fractional portion, in cents, of the amount. Valid value range between 0 and 99.

dollars number

The whole number of dollars in the amount. Valid value range between 0 and 2.

tenthFractionsOfACent number

Fractions of a cent, in tenths. Valid value range between 0 and 9.

cents int

The fractional portion, in cents, of the amount. Valid value range between 0 and 99.

dollars int

The whole number of dollars in the amount. Valid value range between 0 and 2.

tenth_fractions_of_a_cent int

Fractions of a cent, in tenths. Valid value range between 0 and 9.

cents Number

The fractional portion, in cents, of the amount. Valid value range between 0 and 99.

dollars Number

The whole number of dollars in the amount. Valid value range between 0 and 2.

tenthFractionsOfACent Number

Fractions of a cent, in tenths. Valid value range between 0 and 9.

FlowDefinitionHumanLoopRequestSource

AwsManagedHumanLoopRequestSource string

Specifies whether Amazon Rekognition or Amazon Textract are used as the integration source. Valid values are: AWS/Rekognition/DetectModerationLabels/Image/V3 and AWS/Textract/AnalyzeDocument/Forms/V1.

AwsManagedHumanLoopRequestSource string

Specifies whether Amazon Rekognition or Amazon Textract are used as the integration source. Valid values are: AWS/Rekognition/DetectModerationLabels/Image/V3 and AWS/Textract/AnalyzeDocument/Forms/V1.

awsManagedHumanLoopRequestSource String

Specifies whether Amazon Rekognition or Amazon Textract are used as the integration source. Valid values are: AWS/Rekognition/DetectModerationLabels/Image/V3 and AWS/Textract/AnalyzeDocument/Forms/V1.

awsManagedHumanLoopRequestSource string

Specifies whether Amazon Rekognition or Amazon Textract are used as the integration source. Valid values are: AWS/Rekognition/DetectModerationLabels/Image/V3 and AWS/Textract/AnalyzeDocument/Forms/V1.

aws_managed_human_loop_request_source str

Specifies whether Amazon Rekognition or Amazon Textract are used as the integration source. Valid values are: AWS/Rekognition/DetectModerationLabels/Image/V3 and AWS/Textract/AnalyzeDocument/Forms/V1.

awsManagedHumanLoopRequestSource String

Specifies whether Amazon Rekognition or Amazon Textract are used as the integration source. Valid values are: AWS/Rekognition/DetectModerationLabels/Image/V3 and AWS/Textract/AnalyzeDocument/Forms/V1.

FlowDefinitionOutputConfig

S3OutputPath string

The Amazon S3 path where the object containing human output will be made available.

KmsKeyId string

The Amazon Key Management Service (KMS) key ARN for server-side encryption.

S3OutputPath string

The Amazon S3 path where the object containing human output will be made available.

KmsKeyId string

The Amazon Key Management Service (KMS) key ARN for server-side encryption.

s3OutputPath String

The Amazon S3 path where the object containing human output will be made available.

kmsKeyId String

The Amazon Key Management Service (KMS) key ARN for server-side encryption.

s3OutputPath string

The Amazon S3 path where the object containing human output will be made available.

kmsKeyId string

The Amazon Key Management Service (KMS) key ARN for server-side encryption.

s3_output_path str

The Amazon S3 path where the object containing human output will be made available.

kms_key_id str

The Amazon Key Management Service (KMS) key ARN for server-side encryption.

s3OutputPath String

The Amazon S3 path where the object containing human output will be made available.

kmsKeyId String

The Amazon Key Management Service (KMS) key ARN for server-side encryption.

Import

SageMaker Flow Definitions can be imported using the flow_definition_name, e.g.,

 $ pulumi import aws:sagemaker/flowDefinition:FlowDefinition example example

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.