blib/lib/Paws/AppConfig/StartDeployment.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AppConfig::StartDeployment;
3 use Moose;
4 has ApplicationId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'ApplicationId', required => 1);
5 has ConfigurationProfileId => (is => 'ro', isa => 'Str', required => 1);
6 has ConfigurationVersion => (is => 'ro', isa => 'Str', required => 1);
7 has DeploymentStrategyId => (is => 'ro', isa => 'Str', required => 1);
8 has Description => (is => 'ro', isa => 'Str');
9 has EnvironmentId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'EnvironmentId', required => 1);
10 has Tags => (is => 'ro', isa => 'Paws::AppConfig::TagMap');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartDeployment');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/applications/{ApplicationId}/environments/{EnvironmentId}/deployments');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppConfig::Deployment');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::AppConfig::StartDeployment - Arguments for method StartDeployment on L<Paws::AppConfig>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method StartDeployment on the
29 L<Amazon AppConfig|Paws::AppConfig> service. Use the attributes of this class
30 as arguments to method StartDeployment.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartDeployment.
33  
34 =head1 SYNOPSIS
35  
36 my $appconfig = Paws->service('AppConfig');
37 my $Deployment = $appconfig->StartDeployment(
38 ApplicationId => 'MyId',
39 ConfigurationProfileId => 'MyId',
40 ConfigurationVersion => 'MyVersion',
41 DeploymentStrategyId => 'MyDeploymentStrategyId',
42 EnvironmentId => 'MyId',
43 Description => 'MyDescription', # OPTIONAL
44 Tags => {
45 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
46 }, # OPTIONAL
47 );
48  
49 # Results:
50 my $ApplicationId = $Deployment->ApplicationId;
51 my $CompletedAt = $Deployment->CompletedAt;
52 my $ConfigurationLocationUri = $Deployment->ConfigurationLocationUri;
53 my $ConfigurationName = $Deployment->ConfigurationName;
54 my $ConfigurationProfileId = $Deployment->ConfigurationProfileId;
55 my $ConfigurationVersion = $Deployment->ConfigurationVersion;
56 my $DeploymentDurationInMinutes = $Deployment->DeploymentDurationInMinutes;
57 my $DeploymentNumber = $Deployment->DeploymentNumber;
58 my $DeploymentStrategyId = $Deployment->DeploymentStrategyId;
59 my $Description = $Deployment->Description;
60 my $EnvironmentId = $Deployment->EnvironmentId;
61 my $EventLog = $Deployment->EventLog;
62 my $FinalBakeTimeInMinutes = $Deployment->FinalBakeTimeInMinutes;
63 my $GrowthFactor = $Deployment->GrowthFactor;
64 my $GrowthType = $Deployment->GrowthType;
65 my $PercentageComplete = $Deployment->PercentageComplete;
66 my $StartedAt = $Deployment->StartedAt;
67 my $State = $Deployment->State;
68  
69 # Returns a L<Paws::AppConfig::Deployment> object.
70  
71 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.
72 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appconfig/StartDeployment>
73  
74 =head1 ATTRIBUTES
75  
76  
77 =head2 B<REQUIRED> ApplicationId => Str
78  
79 The application ID.
80  
81  
82  
83 =head2 B<REQUIRED> ConfigurationProfileId => Str
84  
85 The configuration profile ID.
86  
87  
88  
89 =head2 B<REQUIRED> ConfigurationVersion => Str
90  
91 The configuration version to deploy.
92  
93  
94  
95 =head2 B<REQUIRED> DeploymentStrategyId => Str
96  
97 The deployment strategy ID.
98  
99  
100  
101 =head2 Description => Str
102  
103 A description of the deployment.
104  
105  
106  
107 =head2 B<REQUIRED> EnvironmentId => Str
108  
109 The environment ID.
110  
111  
112  
113 =head2 Tags => L<Paws::AppConfig::TagMap>
114  
115 Metadata to assign to the deployment. Tags help organize and categorize
116 your AppConfig resources. Each tag consists of a key and an optional
117 value, both of which you define.
118  
119  
120  
121  
122 =head1 SEE ALSO
123  
124 This class forms part of L<Paws>, documenting arguments for method StartDeployment in L<Paws::AppConfig>
125  
126 =head1 BUGS and CONTRIBUTIONS
127  
128 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
129  
130 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
131  
132 =cut
133