« blib/lib/Paws/SageMaker/CreateFeatureGroupResponse.pm
↑ Summary
blib/lib/Paws/SageMaker/CreateFlowDefinitionResponse.pm »
| 1 | |||
| 2 | package Paws::SageMaker::CreateFlowDefinition; | ||
| 3 | use Moose; | ||
| 4 | has FlowDefinitionName => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has HumanLoopActivationConfig => (is => 'ro', isa => 'Paws::SageMaker::HumanLoopActivationConfig'); | ||
| 6 | has HumanLoopConfig => (is => 'ro', isa => 'Paws::SageMaker::HumanLoopConfig', required => 1); | ||
| 7 | has HumanLoopRequestSource => (is => 'ro', isa => 'Paws::SageMaker::HumanLoopRequestSource'); | ||
| 8 | has OutputConfig => (is => 'ro', isa => 'Paws::SageMaker::FlowDefinitionOutputConfig', required => 1); | ||
| 9 | has RoleArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 10 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::SageMaker::Tag]'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateFlowDefinition'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SageMaker::CreateFlowDefinitionResponse'); | ||
| 16 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::SageMaker::CreateFlowDefinition - Arguments for method CreateFlowDefinition on L<Paws::SageMaker> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateFlowDefinition on the | ||
| 28 | L<Amazon SageMaker Service|Paws::SageMaker> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateFlowDefinition. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateFlowDefinition. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $api.sagemaker = Paws->service('SageMaker'); | ||
| 36 | my $CreateFlowDefinitionResponse = $api . sagemaker->CreateFlowDefinition( | ||
| 37 | FlowDefinitionName => 'MyFlowDefinitionName', | ||
| 38 | HumanLoopConfig => { | ||
| 39 | HumanTaskUiArn => 'MyHumanTaskUiArn', # max: 1024 | ||
| 40 | TaskCount => 1, # min: 1, max: 3 | ||
| 41 | TaskDescription => 'MyFlowDefinitionTaskDescription', # min: 1, max: 255 | ||
| 42 | TaskTitle => 'MyFlowDefinitionTaskTitle', # min: 1, max: 128 | ||
| 43 | WorkteamArn => 'MyWorkteamArn', # max: 256 | ||
| 44 | PublicWorkforceTaskPrice => { | ||
| 45 | AmountInUsd => { | ||
| 46 | Cents => 1, # max: 99; OPTIONAL | ||
| 47 | Dollars => 1, # max: 2; OPTIONAL | ||
| 48 | TenthFractionsOfACent => 1, # max: 9; OPTIONAL | ||
| 49 | }, # OPTIONAL | ||
| 50 | }, # OPTIONAL | ||
| 51 | TaskAvailabilityLifetimeInSeconds => 1, # min: 1, max: 864000; OPTIONAL | ||
| 52 | TaskKeywords => [ | ||
| 53 | 'MyFlowDefinitionTaskKeyword', ... # min: 1, max: 30 | ||
| 54 | ], # min: 1, max: 5; OPTIONAL | ||
| 55 | TaskTimeLimitInSeconds => 1, # min: 30, max: 28800; OPTIONAL | ||
| 56 | }, | ||
| 57 | OutputConfig => { | ||
| 58 | S3OutputPath => 'MyS3Uri', # max: 1024 | ||
| 59 | KmsKeyId => 'MyKmsKeyId', # max: 2048; OPTIONAL | ||
| 60 | }, | ||
| 61 | RoleArn => 'MyRoleArn', | ||
| 62 | HumanLoopActivationConfig => { | ||
| 63 | HumanLoopActivationConditionsConfig => { | ||
| 64 | HumanLoopActivationConditions => | ||
| 65 | 'MyHumanLoopActivationConditions', # max: 10240 | ||
| 66 | |||
| 67 | }, | ||
| 68 | |||
| 69 | }, # OPTIONAL | ||
| 70 | HumanLoopRequestSource => { | ||
| 71 | AwsManagedHumanLoopRequestSource => | ||
| 72 | 'AWS/Rekognition/DetectModerationLabels/Image/V3' | ||
| 73 | , # values: AWS/Rekognition/DetectModerationLabels/Image/V3, AWS/Textract/AnalyzeDocument/Forms/V1 | ||
| 74 | |||
| 75 | }, # OPTIONAL | ||
| 76 | Tags => [ | ||
| 77 | { | ||
| 78 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 79 | Value => 'MyTagValue', # max: 256 | ||
| 80 | |||
| 81 | }, | ||
| 82 | ... | ||
| 83 | ], # OPTIONAL | ||
| 84 | ); | ||
| 85 | |||
| 86 | # Results: | ||
| 87 | my $FlowDefinitionArn = $CreateFlowDefinitionResponse->FlowDefinitionArn; | ||
| 88 | |||
| 89 | # Returns a L<Paws::SageMaker::CreateFlowDefinitionResponse> object. | ||
| 90 | |||
| 91 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 92 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.sagemaker/CreateFlowDefinition> | ||
| 93 | |||
| 94 | =head1 ATTRIBUTES | ||
| 95 | |||
| 96 | |||
| 97 | =head2 B<REQUIRED> FlowDefinitionName => Str | ||
| 98 | |||
| 99 | The name of your flow definition. | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | =head2 HumanLoopActivationConfig => L<Paws::SageMaker::HumanLoopActivationConfig> | ||
| 104 | |||
| 105 | An object containing information about the events that trigger a human | ||
| 106 | workflow. | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | =head2 B<REQUIRED> HumanLoopConfig => L<Paws::SageMaker::HumanLoopConfig> | ||
| 111 | |||
| 112 | An object containing information about the tasks the human reviewers | ||
| 113 | will perform. | ||
| 114 | |||
| 115 | |||
| 116 | |||
| 117 | =head2 HumanLoopRequestSource => L<Paws::SageMaker::HumanLoopRequestSource> | ||
| 118 | |||
| 119 | Container for configuring the source of human task requests. Use to | ||
| 120 | specify if Amazon Rekognition or Amazon Textract is used as an | ||
| 121 | integration source. | ||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | =head2 B<REQUIRED> OutputConfig => L<Paws::SageMaker::FlowDefinitionOutputConfig> | ||
| 126 | |||
| 127 | An object containing information about where the human review results | ||
| 128 | will be uploaded. | ||
| 129 | |||
| 130 | |||
| 131 | |||
| 132 | =head2 B<REQUIRED> RoleArn => Str | ||
| 133 | |||
| 134 | The Amazon Resource Name (ARN) of the role needed to call other | ||
| 135 | services on your behalf. For example, | ||
| 136 | C<arn:aws:iam::1234567890:role/service-role/AmazonSageMaker-ExecutionRole-20180111T151298>. | ||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | =head2 Tags => ArrayRef[L<Paws::SageMaker::Tag>] | ||
| 141 | |||
| 142 | An array of key-value pairs that contain metadata to help you | ||
| 143 | categorize and organize a flow definition. Each tag consists of a key | ||
| 144 | and a value, both of which you define. | ||
| 145 | |||
| 146 | |||
| 147 | |||
| 148 | |||
| 149 | =head1 SEE ALSO | ||
| 150 | |||
| 151 | This class forms part of L<Paws>, documenting arguments for method CreateFlowDefinition in L<Paws::SageMaker> | ||
| 152 | |||
| 153 | =head1 BUGS and CONTRIBUTIONS | ||
| 154 | |||
| 155 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 156 | |||
| 157 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 158 | |||
| 159 | =cut | ||
| 160 |