File Coverage

blib/lib/Paws/CodeDeploy/CreateDeployment.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::CodeDeploy::CreateDeployment;
3 1     1   625 use Moose;
  1         4  
  1         13  
4             has ApplicationName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'applicationName' , required => 1);
5             has AutoRollbackConfiguration => (is => 'ro', isa => 'Paws::CodeDeploy::AutoRollbackConfiguration', traits => ['NameInRequest'], request_name => 'autoRollbackConfiguration' );
6             has DeploymentConfigName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'deploymentConfigName' );
7             has DeploymentGroupName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'deploymentGroupName' );
8             has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
9             has FileExistsBehavior => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'fileExistsBehavior' );
10             has IgnoreApplicationStopFailures => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'ignoreApplicationStopFailures' );
11             has Revision => (is => 'ro', isa => 'Paws::CodeDeploy::RevisionLocation', traits => ['NameInRequest'], request_name => 'revision' );
12             has TargetInstances => (is => 'ro', isa => 'Paws::CodeDeploy::TargetInstances', traits => ['NameInRequest'], request_name => 'targetInstances' );
13             has UpdateOutdatedInstancesOnly => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'updateOutdatedInstancesOnly' );
14              
15 1     1   5964 use MooseX::ClassAttribute;
  1         3  
  1         8  
16              
17             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDeployment');
18             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeDeploy::CreateDeploymentOutput');
19             class_has _result_key => (isa => 'Str', is => 'ro');
20             1;
21              
22             ### main pod documentation begin ###
23              
24             =head1 NAME
25              
26             Paws::CodeDeploy::CreateDeployment - Arguments for method CreateDeployment on Paws::CodeDeploy
27              
28             =head1 DESCRIPTION
29              
30             This class represents the parameters used for calling the method CreateDeployment on the
31             AWS CodeDeploy service. Use the attributes of this class
32             as arguments to method CreateDeployment.
33              
34             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDeployment.
35              
36             As an example:
37              
38             $service_obj->CreateDeployment(Att1 => $value1, Att2 => $value2, ...);
39              
40             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.
41              
42             =head1 ATTRIBUTES
43              
44              
45             =head2 B<REQUIRED> ApplicationName => Str
46              
47             The name of an AWS CodeDeploy application associated with the
48             applicable IAM user or AWS account.
49              
50              
51              
52             =head2 AutoRollbackConfiguration => L<Paws::CodeDeploy::AutoRollbackConfiguration>
53              
54             Configuration information for an automatic rollback that is added when
55             a deployment is created.
56              
57              
58              
59             =head2 DeploymentConfigName => Str
60              
61             The name of a deployment configuration associated with the applicable
62             IAM user or AWS account.
63              
64             If not specified, the value configured in the deployment group will be
65             used as the default. If the deployment group does not have a deployment
66             configuration associated with it, then CodeDeployDefault.OneAtATime
67             will be used by default.
68              
69              
70              
71             =head2 DeploymentGroupName => Str
72              
73             The name of the deployment group.
74              
75              
76              
77             =head2 Description => Str
78              
79             A comment about the deployment.
80              
81              
82              
83             =head2 FileExistsBehavior => Str
84              
85             Information about how AWS CodeDeploy handles files that already exist
86             in a deployment target location but weren't part of the previous
87             successful deployment.
88              
89             The fileExistsBehavior parameter takes any of the following values:
90              
91             =over
92              
93             =item *
94              
95             DISALLOW: The deployment fails. This is also the default behavior if no
96             option is specified.
97              
98             =item *
99              
100             OVERWRITE: The version of the file from the application revision
101             currently being deployed replaces the version already on the instance.
102              
103             =item *
104              
105             RETAIN: The version of the file already on the instance is kept and
106             used as part of the new deployment.
107              
108             =back
109              
110              
111             Valid values are: C<"DISALLOW">, C<"OVERWRITE">, C<"RETAIN">
112              
113             =head2 IgnoreApplicationStopFailures => Bool
114              
115             If set to true, then if the deployment causes the ApplicationStop
116             deployment lifecycle event to an instance to fail, the deployment to
117             that instance will not be considered to have failed at that point and
118             will continue on to the BeforeInstall deployment lifecycle event.
119              
120             If set to false or not specified, then if the deployment causes the
121             ApplicationStop deployment lifecycle event to fail to an instance, the
122             deployment to that instance will stop, and the deployment to that
123             instance will be considered to have failed.
124              
125              
126              
127             =head2 Revision => L<Paws::CodeDeploy::RevisionLocation>
128              
129             The type and location of the revision to deploy.
130              
131              
132              
133             =head2 TargetInstances => L<Paws::CodeDeploy::TargetInstances>
134              
135             Information about the instances that will belong to the replacement
136             environment in a blue/green deployment.
137              
138              
139              
140             =head2 UpdateOutdatedInstancesOnly => Bool
141              
142             Indicates whether to deploy to all instances or only to instances that
143             are not running the latest application revision.
144              
145              
146              
147              
148             =head1 SEE ALSO
149              
150             This class forms part of L<Paws>, documenting arguments for method CreateDeployment in L<Paws::CodeDeploy>
151              
152             =head1 BUGS and CONTRIBUTIONS
153              
154             The source code is located here: https://github.com/pplu/aws-sdk-perl
155              
156             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
157              
158             =cut
159