« blib/lib/Paws/Robomaker/SourceConfig.pm
↑ Summary
blib/lib/Paws/Robomaker/StartSimulationJobBatchResponse.pm »
| 1 | |||
| 2 | package Paws::Robomaker::StartSimulationJobBatch; | ||
| 3 | use Moose; | ||
| 4 | has BatchPolicy => (is => 'ro', isa => 'Paws::Robomaker::BatchPolicy', traits => ['NameInRequest'], request_name => 'batchPolicy'); | ||
| 5 | has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken'); | ||
| 6 | has CreateSimulationJobRequests => (is => 'ro', isa => 'ArrayRef[Paws::Robomaker::SimulationJobRequest]', traits => ['NameInRequest'], request_name => 'createSimulationJobRequests', required => 1); | ||
| 7 | has Tags => (is => 'ro', isa => 'Paws::Robomaker::TagMap', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartSimulationJobBatch'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/startSimulationJobBatch'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Robomaker::StartSimulationJobBatchResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::Robomaker::StartSimulationJobBatch - Arguments for method StartSimulationJobBatch on L<Paws::Robomaker> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method StartSimulationJobBatch on the | ||
| 26 | L<AWS RoboMaker|Paws::Robomaker> service. Use the attributes of this class | ||
| 27 | as arguments to method StartSimulationJobBatch. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartSimulationJobBatch. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $robomaker = Paws->service('Robomaker'); | ||
| 34 | my $StartSimulationJobBatchResponse = $robomaker->StartSimulationJobBatch( | ||
| 35 | CreateSimulationJobRequests => [ | ||
| 36 | { | ||
| 37 | MaxJobDurationInSeconds => 1, | ||
| 38 | Compute => { | ||
| 39 | SimulationUnitLimit => 1, # min: 1, max: 15; OPTIONAL | ||
| 40 | }, # OPTIONAL | ||
| 41 | DataSources => [ | ||
| 42 | { | ||
| 43 | Name => 'MyName', # min: 1, max: 255 | ||
| 44 | S3Bucket => 'MyS3Bucket', # min: 3, max: 63 | ||
| 45 | S3Keys => [ | ||
| 46 | 'MyS3Key', ... # min: 1, max: 1024 | ||
| 47 | ], # min: 1, max: 100 | ||
| 48 | |||
| 49 | }, | ||
| 50 | ... | ||
| 51 | ], # min: 1, max: 5; OPTIONAL | ||
| 52 | FailureBehavior => 'Fail', # values: Fail, Continue; OPTIONAL | ||
| 53 | IamRole => 'MyIamRole', # min: 1, max: 255; OPTIONAL | ||
| 54 | LoggingConfig => { | ||
| 55 | RecordAllRosTopics => 1, | ||
| 56 | |||
| 57 | }, # OPTIONAL | ||
| 58 | OutputLocation => { | ||
| 59 | S3Bucket => 'MyS3Bucket', # min: 3, max: 63 | ||
| 60 | S3Prefix => 'MyS3Key', # min: 1, max: 1024 | ||
| 61 | }, # OPTIONAL | ||
| 62 | RobotApplications => [ | ||
| 63 | { | ||
| 64 | Application => 'MyArn', # min: 1, max: 1224 | ||
| 65 | LaunchConfig => { | ||
| 66 | LaunchFile => 'MyCommand', # min: 1, max: 1024 | ||
| 67 | PackageName => 'MyCommand', # min: 1, max: 1024 | ||
| 68 | EnvironmentVariables => { | ||
| 69 | 'MyEnvironmentVariableKey' => 'MyEnvironmentVariableValue' | ||
| 70 | , # key: min: 1, max: 1024, value: min: 1, max: 1024 | ||
| 71 | }, # max: 16; OPTIONAL | ||
| 72 | PortForwardingConfig => { | ||
| 73 | PortMappings => [ | ||
| 74 | { | ||
| 75 | ApplicationPort => 1, # min: 1024, max: 65535 | ||
| 76 | JobPort => 1, # min: 1, max: 65535 | ||
| 77 | EnableOnPublicIp => 1, # OPTIONAL | ||
| 78 | }, | ||
| 79 | ... | ||
| 80 | ], # max: 10; OPTIONAL | ||
| 81 | }, # OPTIONAL | ||
| 82 | StreamUI => 1, # OPTIONAL | ||
| 83 | }, | ||
| 84 | ApplicationVersion => 'MyVersion', # min: 1, max: 255; OPTIONAL | ||
| 85 | Tools => [ | ||
| 86 | { | ||
| 87 | Command => 'MyUnrestrictedCommand', # min: 1, max: 1024 | ||
| 88 | Name => 'MyName', # min: 1, max: 255 | ||
| 89 | ExitBehavior => 'FAIL', # values: FAIL, RESTART; OPTIONAL | ||
| 90 | StreamOutputToCloudWatch => 1, | ||
| 91 | StreamUI => 1, | ||
| 92 | }, | ||
| 93 | ... | ||
| 94 | ], # max: 10; OPTIONAL | ||
| 95 | UploadConfigurations => [ | ||
| 96 | { | ||
| 97 | Name => 'MyName', # min: 1, max: 255 | ||
| 98 | Path => 'MyPath', # min: 1, max: 1024 | ||
| 99 | UploadBehavior => 'UPLOAD_ON_TERMINATE' | ||
| 100 | , # values: UPLOAD_ON_TERMINATE, UPLOAD_ROLLING_AUTO_REMOVE | ||
| 101 | |||
| 102 | }, | ||
| 103 | ... | ||
| 104 | ], # max: 10; OPTIONAL | ||
| 105 | UseDefaultTools => 1, | ||
| 106 | UseDefaultUploadConfigurations => 1, | ||
| 107 | }, | ||
| 108 | ... | ||
| 109 | ], # min: 1, max: 1; OPTIONAL | ||
| 110 | SimulationApplications => [ | ||
| 111 | { | ||
| 112 | Application => 'MyArn', # min: 1, max: 1224 | ||
| 113 | LaunchConfig => { | ||
| 114 | LaunchFile => 'MyCommand', # min: 1, max: 1024 | ||
| 115 | PackageName => 'MyCommand', # min: 1, max: 1024 | ||
| 116 | EnvironmentVariables => { | ||
| 117 | 'MyEnvironmentVariableKey' => 'MyEnvironmentVariableValue' | ||
| 118 | , # key: min: 1, max: 1024, value: min: 1, max: 1024 | ||
| 119 | }, # max: 16; OPTIONAL | ||
| 120 | PortForwardingConfig => { | ||
| 121 | PortMappings => [ | ||
| 122 | { | ||
| 123 | ApplicationPort => 1, # min: 1024, max: 65535 | ||
| 124 | JobPort => 1, # min: 1, max: 65535 | ||
| 125 | EnableOnPublicIp => 1, # OPTIONAL | ||
| 126 | }, | ||
| 127 | ... | ||
| 128 | ], # max: 10; OPTIONAL | ||
| 129 | }, # OPTIONAL | ||
| 130 | StreamUI => 1, # OPTIONAL | ||
| 131 | }, | ||
| 132 | ApplicationVersion => 'MyVersion', # min: 1, max: 255; OPTIONAL | ||
| 133 | Tools => [ | ||
| 134 | { | ||
| 135 | Command => 'MyUnrestrictedCommand', # min: 1, max: 1024 | ||
| 136 | Name => 'MyName', # min: 1, max: 255 | ||
| 137 | ExitBehavior => 'FAIL', # values: FAIL, RESTART; OPTIONAL | ||
| 138 | StreamOutputToCloudWatch => 1, | ||
| 139 | StreamUI => 1, | ||
| 140 | }, | ||
| 141 | ... | ||
| 142 | ], # max: 10; OPTIONAL | ||
| 143 | UploadConfigurations => [ | ||
| 144 | { | ||
| 145 | Name => 'MyName', # min: 1, max: 255 | ||
| 146 | Path => 'MyPath', # min: 1, max: 1024 | ||
| 147 | UploadBehavior => 'UPLOAD_ON_TERMINATE' | ||
| 148 | , # values: UPLOAD_ON_TERMINATE, UPLOAD_ROLLING_AUTO_REMOVE | ||
| 149 | |||
| 150 | }, | ||
| 151 | ... | ||
| 152 | ], # max: 10; OPTIONAL | ||
| 153 | UseDefaultTools => 1, | ||
| 154 | UseDefaultUploadConfigurations => 1, | ||
| 155 | WorldConfigs => [ | ||
| 156 | { | ||
| 157 | World => 'MyArn', # min: 1, max: 1224 | ||
| 158 | }, | ||
| 159 | ... | ||
| 160 | ], # max: 1; OPTIONAL | ||
| 161 | }, | ||
| 162 | ... | ||
| 163 | ], # min: 1, max: 1; OPTIONAL | ||
| 164 | Tags => { | ||
| 165 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 166 | }, # max: 50; OPTIONAL | ||
| 167 | UseDefaultApplications => 1, | ||
| 168 | VpcConfig => { | ||
| 169 | Subnets => [ | ||
| 170 | 'MyNonEmptyString', ... # min: 1, max: 255 | ||
| 171 | ], # min: 1, max: 16 | ||
| 172 | AssignPublicIp => 1, # OPTIONAL | ||
| 173 | SecurityGroups => [ | ||
| 174 | 'MyNonEmptyString', ... # min: 1, max: 255 | ||
| 175 | ], # min: 1, max: 5; OPTIONAL | ||
| 176 | }, # OPTIONAL | ||
| 177 | }, | ||
| 178 | ... | ||
| 179 | ], | ||
| 180 | BatchPolicy => { | ||
| 181 | MaxConcurrency => 1, # OPTIONAL | ||
| 182 | TimeoutInSeconds => 1, # OPTIONAL | ||
| 183 | }, # OPTIONAL | ||
| 184 | ClientRequestToken => 'MyClientRequestToken', # OPTIONAL | ||
| 185 | Tags => { | ||
| 186 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 187 | }, # OPTIONAL | ||
| 188 | ); | ||
| 189 | |||
| 190 | # Results: | ||
| 191 | my $Arn = $StartSimulationJobBatchResponse->Arn; | ||
| 192 | my $BatchPolicy = $StartSimulationJobBatchResponse->BatchPolicy; | ||
| 193 | my $ClientRequestToken = | ||
| 194 | $StartSimulationJobBatchResponse->ClientRequestToken; | ||
| 195 | my $CreatedAt = $StartSimulationJobBatchResponse->CreatedAt; | ||
| 196 | my $CreatedRequests = $StartSimulationJobBatchResponse->CreatedRequests; | ||
| 197 | my $FailedRequests = $StartSimulationJobBatchResponse->FailedRequests; | ||
| 198 | my $FailureCode = $StartSimulationJobBatchResponse->FailureCode; | ||
| 199 | my $FailureReason = $StartSimulationJobBatchResponse->FailureReason; | ||
| 200 | my $PendingRequests = $StartSimulationJobBatchResponse->PendingRequests; | ||
| 201 | my $Status = $StartSimulationJobBatchResponse->Status; | ||
| 202 | my $Tags = $StartSimulationJobBatchResponse->Tags; | ||
| 203 | |||
| 204 | # Returns a L<Paws::Robomaker::StartSimulationJobBatchResponse> object. | ||
| 205 | |||
| 206 | 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. | ||
| 207 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/robomaker/StartSimulationJobBatch> | ||
| 208 | |||
| 209 | =head1 ATTRIBUTES | ||
| 210 | |||
| 211 | |||
| 212 | =head2 BatchPolicy => L<Paws::Robomaker::BatchPolicy> | ||
| 213 | |||
| 214 | The batch policy. | ||
| 215 | |||
| 216 | |||
| 217 | |||
| 218 | =head2 ClientRequestToken => Str | ||
| 219 | |||
| 220 | Unique, case-sensitive identifier that you provide to ensure the | ||
| 221 | idempotency of the request. | ||
| 222 | |||
| 223 | |||
| 224 | |||
| 225 | =head2 B<REQUIRED> CreateSimulationJobRequests => ArrayRef[L<Paws::Robomaker::SimulationJobRequest>] | ||
| 226 | |||
| 227 | A list of simulation job requests to create in the batch. | ||
| 228 | |||
| 229 | |||
| 230 | |||
| 231 | =head2 Tags => L<Paws::Robomaker::TagMap> | ||
| 232 | |||
| 233 | A map that contains tag keys and tag values that are attached to the | ||
| 234 | deployment job batch. | ||
| 235 | |||
| 236 | |||
| 237 | |||
| 238 | |||
| 239 | =head1 SEE ALSO | ||
| 240 | |||
| 241 | This class forms part of L<Paws>, documenting arguments for method StartSimulationJobBatch in L<Paws::Robomaker> | ||
| 242 | |||
| 243 | =head1 BUGS and CONTRIBUTIONS | ||
| 244 | |||
| 245 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 246 | |||
| 247 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 248 | |||
| 249 | =cut | ||
| 250 |