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

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Robomaker::CreateDeploymentJob;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken', required => 1);
5 has DeploymentApplicationConfigs => (is => 'ro', isa => 'ArrayRef[Paws::Robomaker::DeploymentApplicationConfig]', traits => ['NameInRequest'], request_name => 'deploymentApplicationConfigs', required => 1);
6 has DeploymentConfig => (is => 'ro', isa => 'Paws::Robomaker::DeploymentConfig', traits => ['NameInRequest'], request_name => 'deploymentConfig');
7 has Fleet => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'fleet', required => 1);
8 has Tags => (is => 'ro', isa => 'Paws::Robomaker::TagMap', traits => ['NameInRequest'], request_name => 'tags');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDeploymentJob');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/createDeploymentJob');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Robomaker::CreateDeploymentJobResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Robomaker::CreateDeploymentJob - Arguments for method CreateDeploymentJob on L<Paws::Robomaker>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateDeploymentJob on the
27 L<AWS RoboMaker|Paws::Robomaker> service. Use the attributes of this class
28 as arguments to method CreateDeploymentJob.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDeploymentJob.
31  
32 =head1 SYNOPSIS
33  
34 my $robomaker = Paws->service('Robomaker');
35 my $CreateDeploymentJobResponse = $robomaker->CreateDeploymentJob(
36 ClientRequestToken => 'MyClientRequestToken',
37 DeploymentApplicationConfigs => [
38 {
39 Application => 'MyArn', # min: 1, max: 1224
40 ApplicationVersion => 'MyDeploymentVersion', # min: 1, max: 255
41 LaunchConfig => {
42 LaunchFile => 'MyCommand', # min: 1, max: 1024
43 PackageName => 'MyCommand', # min: 1, max: 1024
44 EnvironmentVariables => {
45 'MyEnvironmentVariableKey' => 'MyEnvironmentVariableValue'
46 , # key: min: 1, max: 1024, value: min: 1, max: 1024
47 }, # max: 16; OPTIONAL
48 PostLaunchFile => 'MyPath', # min: 1, max: 1024; OPTIONAL
49 PreLaunchFile => 'MyPath', # min: 1, max: 1024; OPTIONAL
50 },
51  
52 },
53 ...
54 ],
55 Fleet => 'MyArn',
56 DeploymentConfig => {
57 ConcurrentDeploymentPercentage => 1, # min: 1, max: 100; OPTIONAL
58 DownloadConditionFile => {
59 Bucket => 'MyS3Bucket', # min: 3, max: 63
60 Key => 'MyS3Key', # min: 1, max: 1024
61 Etag => 'MyS3Etag', # OPTIONAL
62 }, # OPTIONAL
63 FailureThresholdPercentage => 1, # min: 1, max: 100; OPTIONAL
64 RobotDeploymentTimeoutInSeconds => 1, # OPTIONAL
65 }, # OPTIONAL
66 Tags => {
67 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
68 }, # OPTIONAL
69 );
70  
71 # Results:
72 my $Arn = $CreateDeploymentJobResponse->Arn;
73 my $CreatedAt = $CreateDeploymentJobResponse->CreatedAt;
74 my $DeploymentApplicationConfigs =
75 $CreateDeploymentJobResponse->DeploymentApplicationConfigs;
76 my $DeploymentConfig = $CreateDeploymentJobResponse->DeploymentConfig;
77 my $FailureCode = $CreateDeploymentJobResponse->FailureCode;
78 my $FailureReason = $CreateDeploymentJobResponse->FailureReason;
79 my $Fleet = $CreateDeploymentJobResponse->Fleet;
80 my $Status = $CreateDeploymentJobResponse->Status;
81 my $Tags = $CreateDeploymentJobResponse->Tags;
82  
83 # Returns a L<Paws::Robomaker::CreateDeploymentJobResponse> object.
84  
85 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.
86 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/robomaker/CreateDeploymentJob>
87  
88 =head1 ATTRIBUTES
89  
90  
91 =head2 B<REQUIRED> ClientRequestToken => Str
92  
93 Unique, case-sensitive identifier that you provide to ensure the
94 idempotency of the request.
95  
96  
97  
98 =head2 B<REQUIRED> DeploymentApplicationConfigs => ArrayRef[L<Paws::Robomaker::DeploymentApplicationConfig>]
99  
100 The deployment application configuration.
101  
102  
103  
104 =head2 DeploymentConfig => L<Paws::Robomaker::DeploymentConfig>
105  
106 The requested deployment configuration.
107  
108  
109  
110 =head2 B<REQUIRED> Fleet => Str
111  
112 The Amazon Resource Name (ARN) of the fleet to deploy.
113  
114  
115  
116 =head2 Tags => L<Paws::Robomaker::TagMap>
117  
118 A map that contains tag keys and tag values that are attached to the
119 deployment job.
120  
121  
122  
123  
124 =head1 SEE ALSO
125  
126 This class forms part of L<Paws>, documenting arguments for method CreateDeploymentJob in L<Paws::Robomaker>
127  
128 =head1 BUGS and CONTRIBUTIONS
129  
130 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
131  
132 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
133  
134 =cut
135