| 1 | |||
| 2 | package Paws::IoT::CreateJobTemplate; | ||
| 3 | use Moose; | ||
| 4 | has AbortConfig => (is => 'ro', isa => 'Paws::IoT::AbortConfig', traits => ['NameInRequest'], request_name => 'abortConfig'); | ||
| 5 | has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description', required => 1); | ||
| 6 | has Document => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'document'); | ||
| 7 | has DocumentSource => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'documentSource'); | ||
| 8 | has JobArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'jobArn'); | ||
| 9 | has JobExecutionsRolloutConfig => (is => 'ro', isa => 'Paws::IoT::JobExecutionsRolloutConfig', traits => ['NameInRequest'], request_name => 'jobExecutionsRolloutConfig'); | ||
| 10 | has JobTemplateId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'jobTemplateId', required => 1); | ||
| 11 | has PresignedUrlConfig => (is => 'ro', isa => 'Paws::IoT::PresignedUrlConfig', traits => ['NameInRequest'], request_name => 'presignedUrlConfig'); | ||
| 12 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoT::Tag]', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 13 | has TimeoutConfig => (is => 'ro', isa => 'Paws::IoT::TimeoutConfig', traits => ['NameInRequest'], request_name => 'timeoutConfig'); | ||
| 14 | |||
| 15 | use MooseX::ClassAttribute; | ||
| 16 | |||
| 17 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateJobTemplate'); | ||
| 18 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/job-templates/{jobTemplateId}'); | ||
| 19 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 20 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::CreateJobTemplateResponse'); | ||
| 21 | 1; | ||
| 22 | |||
| 23 | ### main pod documentation begin ### | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | Paws::IoT::CreateJobTemplate - Arguments for method CreateJobTemplate on L<Paws::IoT> | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | This class represents the parameters used for calling the method CreateJobTemplate on the | ||
| 32 | L<AWS IoT|Paws::IoT> service. Use the attributes of this class | ||
| 33 | as arguments to method CreateJobTemplate. | ||
| 34 | |||
| 35 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateJobTemplate. | ||
| 36 | |||
| 37 | =head1 SYNOPSIS | ||
| 38 | |||
| 39 | my $iot = Paws->service('IoT'); | ||
| 40 | my $CreateJobTemplateResponse = $iot->CreateJobTemplate( | ||
| 41 | Description => 'MyJobDescription', | ||
| 42 | JobTemplateId => 'MyJobTemplateId', | ||
| 43 | AbortConfig => { | ||
| 44 | CriteriaList => [ | ||
| 45 | { | ||
| 46 | Action => 'CANCEL', # values: CANCEL | ||
| 47 | FailureType => 'FAILED', # values: FAILED, REJECTED, TIMED_OUT, ALL | ||
| 48 | MinNumberOfExecutedThings => 1, # min: 1 | ||
| 49 | ThresholdPercentage => 1, # max: 100 | ||
| 50 | |||
| 51 | }, | ||
| 52 | ... | ||
| 53 | ], # min: 1 | ||
| 54 | |||
| 55 | }, # OPTIONAL | ||
| 56 | Document => 'MyJobDocument', # OPTIONAL | ||
| 57 | DocumentSource => 'MyJobDocumentSource', # OPTIONAL | ||
| 58 | JobArn => 'MyJobArn', # OPTIONAL | ||
| 59 | JobExecutionsRolloutConfig => { | ||
| 60 | ExponentialRate => { | ||
| 61 | BaseRatePerMinute => 1, # min: 1, max: 1000 | ||
| 62 | IncrementFactor => 1, # min: 1, max: 5 | ||
| 63 | RateIncreaseCriteria => { | ||
| 64 | NumberOfNotifiedThings => 1, # min: 1; OPTIONAL | ||
| 65 | NumberOfSucceededThings => 1, # min: 1; OPTIONAL | ||
| 66 | }, | ||
| 67 | |||
| 68 | }, # OPTIONAL | ||
| 69 | MaximumPerMinute => 1, # min: 1; OPTIONAL | ||
| 70 | }, # OPTIONAL | ||
| 71 | PresignedUrlConfig => { | ||
| 72 | ExpiresInSec => 1, # min: 60, max: 3600; OPTIONAL | ||
| 73 | RoleArn => 'MyRoleArn', # min: 20, max: 2048; OPTIONAL | ||
| 74 | }, # OPTIONAL | ||
| 75 | Tags => [ | ||
| 76 | { | ||
| 77 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 78 | Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL | ||
| 79 | }, | ||
| 80 | ... | ||
| 81 | ], # OPTIONAL | ||
| 82 | TimeoutConfig => { | ||
| 83 | InProgressTimeoutInMinutes => 1, # OPTIONAL | ||
| 84 | }, # OPTIONAL | ||
| 85 | ); | ||
| 86 | |||
| 87 | # Results: | ||
| 88 | my $JobTemplateArn = $CreateJobTemplateResponse->JobTemplateArn; | ||
| 89 | my $JobTemplateId = $CreateJobTemplateResponse->JobTemplateId; | ||
| 90 | |||
| 91 | # Returns a L<Paws::IoT::CreateJobTemplateResponse> object. | ||
| 92 | |||
| 93 | 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. | ||
| 94 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/CreateJobTemplate> | ||
| 95 | |||
| 96 | =head1 ATTRIBUTES | ||
| 97 | |||
| 98 | |||
| 99 | =head2 AbortConfig => L<Paws::IoT::AbortConfig> | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | =head2 B<REQUIRED> Description => Str | ||
| 106 | |||
| 107 | A description of the job document. | ||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | =head2 Document => Str | ||
| 112 | |||
| 113 | The job document. Required if you don't specify a value for | ||
| 114 | C<documentSource>. | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | =head2 DocumentSource => Str | ||
| 119 | |||
| 120 | An S3 link to the job document to use in the template. Required if you | ||
| 121 | don't specify a value for C<document>. | ||
| 122 | |||
| 123 | If the job document resides in an S3 bucket, you must use a placeholder | ||
| 124 | link when specifying the document. | ||
| 125 | |||
| 126 | The placeholder link is of the following form: | ||
| 127 | |||
| 128 | C<${aws:iot:s3-presigned-url:https://s3.amazonaws.com/I<bucket>/I<key>}> | ||
| 129 | |||
| 130 | where I<bucket> is your bucket name and I<key> is the object in the | ||
| 131 | bucket to which you are linking. | ||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | =head2 JobArn => Str | ||
| 136 | |||
| 137 | The ARN of the job to use as the basis for the job template. | ||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | =head2 JobExecutionsRolloutConfig => L<Paws::IoT::JobExecutionsRolloutConfig> | ||
| 142 | |||
| 143 | |||
| 144 | |||
| 145 | |||
| 146 | |||
| 147 | =head2 B<REQUIRED> JobTemplateId => Str | ||
| 148 | |||
| 149 | A unique identifier for the job template. We recommend using a UUID. | ||
| 150 | Alpha-numeric characters, "-", and "_" are valid for use here. | ||
| 151 | |||
| 152 | |||
| 153 | |||
| 154 | =head2 PresignedUrlConfig => L<Paws::IoT::PresignedUrlConfig> | ||
| 155 | |||
| 156 | |||
| 157 | |||
| 158 | |||
| 159 | |||
| 160 | =head2 Tags => ArrayRef[L<Paws::IoT::Tag>] | ||
| 161 | |||
| 162 | Metadata that can be used to manage the job template. | ||
| 163 | |||
| 164 | |||
| 165 | |||
| 166 | =head2 TimeoutConfig => L<Paws::IoT::TimeoutConfig> | ||
| 167 | |||
| 168 | |||
| 169 | |||
| 170 | |||
| 171 | |||
| 172 | |||
| 173 | =head1 SEE ALSO | ||
| 174 | |||
| 175 | This class forms part of L<Paws>, documenting arguments for method CreateJobTemplate in L<Paws::IoT> | ||
| 176 | |||
| 177 | =head1 BUGS and CONTRIBUTIONS | ||
| 178 | |||
| 179 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 180 | |||
| 181 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 182 | |||
| 183 | =cut | ||
| 184 |