blib/lib/Paws/Robomaker/CreateSimulationJob.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 36 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Robomaker::CreateSimulationJob;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken');
5 has Compute => (is => 'ro', isa => 'Paws::Robomaker::Compute', traits => ['NameInRequest'], request_name => 'compute');
6 has DataSources => (is => 'ro', isa => 'ArrayRef[Paws::Robomaker::DataSourceConfig]', traits => ['NameInRequest'], request_name => 'dataSources');
7 has FailureBehavior => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'failureBehavior');
8 has IamRole => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'iamRole', required => 1);
9 has LoggingConfig => (is => 'ro', isa => 'Paws::Robomaker::LoggingConfig', traits => ['NameInRequest'], request_name => 'loggingConfig');
10 has MaxJobDurationInSeconds => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxJobDurationInSeconds', required => 1);
11 has OutputLocation => (is => 'ro', isa => 'Paws::Robomaker::OutputLocation', traits => ['NameInRequest'], request_name => 'outputLocation');
12 has RobotApplications => (is => 'ro', isa => 'ArrayRef[Paws::Robomaker::RobotApplicationConfig]', traits => ['NameInRequest'], request_name => 'robotApplications');
13 has SimulationApplications => (is => 'ro', isa => 'ArrayRef[Paws::Robomaker::SimulationApplicationConfig]', traits => ['NameInRequest'], request_name => 'simulationApplications');
14 has Tags => (is => 'ro', isa => 'Paws::Robomaker::TagMap', traits => ['NameInRequest'], request_name => 'tags');
15 has VpcConfig => (is => 'ro', isa => 'Paws::Robomaker::VPCConfig', traits => ['NameInRequest'], request_name => 'vpcConfig');
16  
17 use MooseX::ClassAttribute;
18  
19 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateSimulationJob');
20 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/createSimulationJob');
21 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
22 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Robomaker::CreateSimulationJobResponse');
23 1;
24  
25 ### main pod documentation begin ###
26  
27 =head1 NAME
28  
29 Paws::Robomaker::CreateSimulationJob - Arguments for method CreateSimulationJob on L<Paws::Robomaker>
30  
31 =head1 DESCRIPTION
32  
33 This class represents the parameters used for calling the method CreateSimulationJob on the
34 L<AWS RoboMaker|Paws::Robomaker> service. Use the attributes of this class
35 as arguments to method CreateSimulationJob.
36  
37 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateSimulationJob.
38  
39 =head1 SYNOPSIS
40  
41 my $robomaker = Paws->service('Robomaker');
42 my $CreateSimulationJobResponse = $robomaker->CreateSimulationJob(
43 IamRole => 'MyIamRole',
44 MaxJobDurationInSeconds => 1,
45 ClientRequestToken => 'MyClientRequestToken', # OPTIONAL
46 Compute => {
47 SimulationUnitLimit => 1, # min: 1, max: 15; OPTIONAL
48 }, # OPTIONAL
49 DataSources => [
50 {
51 Name => 'MyName', # min: 1, max: 255
52 S3Bucket => 'MyS3Bucket', # min: 3, max: 63
53 S3Keys => [
54 'MyS3Key', ... # min: 1, max: 1024
55 ], # min: 1, max: 100
56  
57 },
58 ...
59 ], # OPTIONAL
60 FailureBehavior => 'Fail', # OPTIONAL
61 LoggingConfig => {
62 RecordAllRosTopics => 1,
63  
64 }, # OPTIONAL
65 OutputLocation => {
66 S3Bucket => 'MyS3Bucket', # min: 3, max: 63
67 S3Prefix => 'MyS3Key', # min: 1, max: 1024
68 }, # OPTIONAL
69 RobotApplications => [
70 {
71 Application => 'MyArn', # min: 1, max: 1224
72 LaunchConfig => {
73 LaunchFile => 'MyCommand', # min: 1, max: 1024
74 PackageName => 'MyCommand', # min: 1, max: 1024
75 EnvironmentVariables => {
76 'MyEnvironmentVariableKey' => 'MyEnvironmentVariableValue'
77 , # key: min: 1, max: 1024, value: min: 1, max: 1024
78 }, # max: 16; OPTIONAL
79 PortForwardingConfig => {
80 PortMappings => [
81 {
82 ApplicationPort => 1, # min: 1024, max: 65535
83 JobPort => 1, # min: 1, max: 65535
84 EnableOnPublicIp => 1, # OPTIONAL
85 },
86 ...
87 ], # max: 10; OPTIONAL
88 }, # OPTIONAL
89 StreamUI => 1, # OPTIONAL
90 },
91 ApplicationVersion => 'MyVersion', # min: 1, max: 255; OPTIONAL
92 Tools => [
93 {
94 Command => 'MyUnrestrictedCommand', # min: 1, max: 1024
95 Name => 'MyName', # min: 1, max: 255
96 ExitBehavior => 'FAIL', # values: FAIL, RESTART; OPTIONAL
97 StreamOutputToCloudWatch => 1,
98 StreamUI => 1,
99 },
100 ...
101 ], # max: 10; OPTIONAL
102 UploadConfigurations => [
103 {
104 Name => 'MyName', # min: 1, max: 255
105 Path => 'MyPath', # min: 1, max: 1024
106 UploadBehavior => 'UPLOAD_ON_TERMINATE'
107 , # values: UPLOAD_ON_TERMINATE, UPLOAD_ROLLING_AUTO_REMOVE
108  
109 },
110 ...
111 ], # max: 10; OPTIONAL
112 UseDefaultTools => 1,
113 UseDefaultUploadConfigurations => 1,
114 },
115 ...
116 ], # OPTIONAL
117 SimulationApplications => [
118 {
119 Application => 'MyArn', # min: 1, max: 1224
120 LaunchConfig => {
121 LaunchFile => 'MyCommand', # min: 1, max: 1024
122 PackageName => 'MyCommand', # min: 1, max: 1024
123 EnvironmentVariables => {
124 'MyEnvironmentVariableKey' => 'MyEnvironmentVariableValue'
125 , # key: min: 1, max: 1024, value: min: 1, max: 1024
126 }, # max: 16; OPTIONAL
127 PortForwardingConfig => {
128 PortMappings => [
129 {
130 ApplicationPort => 1, # min: 1024, max: 65535
131 JobPort => 1, # min: 1, max: 65535
132 EnableOnPublicIp => 1, # OPTIONAL
133 },
134 ...
135 ], # max: 10; OPTIONAL
136 }, # OPTIONAL
137 StreamUI => 1, # OPTIONAL
138 },
139 ApplicationVersion => 'MyVersion', # min: 1, max: 255; OPTIONAL
140 Tools => [
141 {
142 Command => 'MyUnrestrictedCommand', # min: 1, max: 1024
143 Name => 'MyName', # min: 1, max: 255
144 ExitBehavior => 'FAIL', # values: FAIL, RESTART; OPTIONAL
145 StreamOutputToCloudWatch => 1,
146 StreamUI => 1,
147 },
148 ...
149 ], # max: 10; OPTIONAL
150 UploadConfigurations => [
151 {
152 Name => 'MyName', # min: 1, max: 255
153 Path => 'MyPath', # min: 1, max: 1024
154 UploadBehavior => 'UPLOAD_ON_TERMINATE'
155 , # values: UPLOAD_ON_TERMINATE, UPLOAD_ROLLING_AUTO_REMOVE
156  
157 },
158 ...
159 ], # max: 10; OPTIONAL
160 UseDefaultTools => 1,
161 UseDefaultUploadConfigurations => 1,
162 WorldConfigs => [
163 {
164 World => 'MyArn', # min: 1, max: 1224
165 },
166 ...
167 ], # max: 1; OPTIONAL
168 },
169 ...
170 ], # OPTIONAL
171 Tags => {
172 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
173 }, # OPTIONAL
174 VpcConfig => {
175 Subnets => [
176 'MyNonEmptyString', ... # min: 1, max: 255
177 ], # min: 1, max: 16
178 AssignPublicIp => 1, # OPTIONAL
179 SecurityGroups => [
180 'MyNonEmptyString', ... # min: 1, max: 255
181 ], # min: 1, max: 5; OPTIONAL
182 }, # OPTIONAL
183 );
184  
185 # Results:
186 my $Arn = $CreateSimulationJobResponse->Arn;
187 my $ClientRequestToken = $CreateSimulationJobResponse->ClientRequestToken;
188 my $Compute = $CreateSimulationJobResponse->Compute;
189 my $DataSources = $CreateSimulationJobResponse->DataSources;
190 my $FailureBehavior = $CreateSimulationJobResponse->FailureBehavior;
191 my $FailureCode = $CreateSimulationJobResponse->FailureCode;
192 my $IamRole = $CreateSimulationJobResponse->IamRole;
193 my $LastStartedAt = $CreateSimulationJobResponse->LastStartedAt;
194 my $LastUpdatedAt = $CreateSimulationJobResponse->LastUpdatedAt;
195 my $LoggingConfig = $CreateSimulationJobResponse->LoggingConfig;
196 my $MaxJobDurationInSeconds =
197 $CreateSimulationJobResponse->MaxJobDurationInSeconds;
198 my $OutputLocation = $CreateSimulationJobResponse->OutputLocation;
199 my $RobotApplications = $CreateSimulationJobResponse->RobotApplications;
200 my $SimulationApplications =
201 $CreateSimulationJobResponse->SimulationApplications;
202 my $SimulationTimeMillis =
203 $CreateSimulationJobResponse->SimulationTimeMillis;
204 my $Status = $CreateSimulationJobResponse->Status;
205 my $Tags = $CreateSimulationJobResponse->Tags;
206 my $VpcConfig = $CreateSimulationJobResponse->VpcConfig;
207  
208 # Returns a L<Paws::Robomaker::CreateSimulationJobResponse> object.
209  
210 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.
211 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/robomaker/CreateSimulationJob>
212  
213 =head1 ATTRIBUTES
214  
215  
216 =head2 ClientRequestToken => Str
217  
218 Unique, case-sensitive identifier that you provide to ensure the
219 idempotency of the request.
220  
221  
222  
223 =head2 Compute => L<Paws::Robomaker::Compute>
224  
225 Compute information for the simulation job.
226  
227  
228  
229 =head2 DataSources => ArrayRef[L<Paws::Robomaker::DataSourceConfig>]
230  
231 Specify data sources to mount read-only files from S3 into your
232 simulation. These files are available under
233 C</opt/robomaker/datasources/data_source_name>.
234  
235 There is a limit of 100 files and a combined size of 25GB for all
236 C<DataSourceConfig> objects.
237  
238  
239  
240 =head2 FailureBehavior => Str
241  
242 The failure behavior the simulation job.
243  
244 =over
245  
246 =item Continue
247  
248 Restart the simulation job in the same host instance.
249  
250 =item Fail
251  
252 Stop the simulation job and terminate the instance.
253  
254 =back
255  
256  
257 Valid values are: C<"Fail">, C<"Continue">
258  
259 =head2 B<REQUIRED> IamRole => Str
260  
261 The IAM role name that allows the simulation instance to call the AWS
262 APIs that are specified in its associated policies on your behalf. This
263 is how credentials are passed in to your simulation job.
264  
265  
266  
267 =head2 LoggingConfig => L<Paws::Robomaker::LoggingConfig>
268  
269 The logging configuration.
270  
271  
272  
273 =head2 B<REQUIRED> MaxJobDurationInSeconds => Int
274  
275 The maximum simulation job duration in seconds (up to 14 days or
276 1,209,600 seconds. When C<maxJobDurationInSeconds> is reached, the
277 simulation job will status will transition to C<Completed>.
278  
279  
280  
281 =head2 OutputLocation => L<Paws::Robomaker::OutputLocation>
282  
283 Location for output files generated by the simulation job.
284  
285  
286  
287 =head2 RobotApplications => ArrayRef[L<Paws::Robomaker::RobotApplicationConfig>]
288  
289 The robot application to use in the simulation job.
290  
291  
292  
293 =head2 SimulationApplications => ArrayRef[L<Paws::Robomaker::SimulationApplicationConfig>]
294  
295 The simulation application to use in the simulation job.
296  
297  
298  
299 =head2 Tags => L<Paws::Robomaker::TagMap>
300  
301 A map that contains tag keys and tag values that are attached to the
302 simulation job.
303  
304  
305  
306 =head2 VpcConfig => L<Paws::Robomaker::VPCConfig>
307  
308 If your simulation job accesses resources in a VPC, you provide this
309 parameter identifying the list of security group IDs and subnet IDs.
310 These must belong to the same VPC. You must provide at least one
311 security group and one subnet ID.
312  
313  
314  
315  
316 =head1 SEE ALSO
317  
318 This class forms part of L<Paws>, documenting arguments for method CreateSimulationJob in L<Paws::Robomaker>
319  
320 =head1 BUGS and CONTRIBUTIONS
321  
322 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
323  
324 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
325  
326 =cut
327