File Coverage

blib/lib/Paws/OpsWorks/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::OpsWorks::CreateDeployment;
3 1     1   441 use Moose;
  1         2  
  1         7  
4             has AppId => (is => 'ro', isa => 'Str');
5             has Command => (is => 'ro', isa => 'Paws::OpsWorks::DeploymentCommand', required => 1);
6             has Comment => (is => 'ro', isa => 'Str');
7             has CustomJson => (is => 'ro', isa => 'Str');
8             has InstanceIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
9             has LayerIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
10             has StackId => (is => 'ro', isa => 'Str', required => 1);
11              
12 1     1   5913 use MooseX::ClassAttribute;
  1         2  
  1         9  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDeployment');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::OpsWorks::CreateDeploymentResult');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::OpsWorks::CreateDeployment - Arguments for method CreateDeployment on Paws::OpsWorks
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method CreateDeployment on the
28             AWS OpsWorks service. Use the attributes of this class
29             as arguments to method CreateDeployment.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDeployment.
32              
33             As an example:
34              
35             $service_obj->CreateDeployment(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 AppId => Str
43              
44             The app ID. This parameter is required for app deployments, but not for
45             other deployment commands.
46              
47              
48              
49             =head2 B<REQUIRED> Command => L<Paws::OpsWorks::DeploymentCommand>
50              
51             A C<DeploymentCommand> object that specifies the deployment command and
52             any associated arguments.
53              
54              
55              
56             =head2 Comment => Str
57              
58             A user-defined comment.
59              
60              
61              
62             =head2 CustomJson => Str
63              
64             A string that contains user-defined, custom JSON. It is used to
65             override the corresponding default stack configuration JSON values. The
66             string should be in the following format:
67              
68             C<"{\"key1\": \"value1\", \"key2\": \"value2\",...}">
69              
70             For more information on custom JSON, see Use Custom JSON to Modify the
71             Stack Configuration Attributes.
72              
73              
74              
75             =head2 InstanceIds => ArrayRef[Str|Undef]
76              
77             The instance IDs for the deployment targets.
78              
79              
80              
81             =head2 LayerIds => ArrayRef[Str|Undef]
82              
83             The layer IDs for the deployment targets.
84              
85              
86              
87             =head2 B<REQUIRED> StackId => Str
88              
89             The stack ID.
90              
91              
92              
93              
94             =head1 SEE ALSO
95              
96             This class forms part of L<Paws>, documenting arguments for method CreateDeployment in L<Paws::OpsWorks>
97              
98             =head1 BUGS and CONTRIBUTIONS
99              
100             The source code is located here: https://github.com/pplu/aws-sdk-perl
101              
102             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
103              
104             =cut
105