blib/lib/Paws/Proton/UpdateServiceInstance.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Proton::UpdateServiceInstance;
3 use Moose;
4 has DeploymentType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'deploymentType' , required => 1);
5 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
6 has ServiceName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'serviceName' , required => 1);
7 has Spec => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'spec' );
8 has TemplateMajorVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateMajorVersion' );
9 has TemplateMinorVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateMinorVersion' );
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateServiceInstance');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Proton::UpdateServiceInstanceOutput');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Proton::UpdateServiceInstance - Arguments for method UpdateServiceInstance on L<Paws::Proton>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method UpdateServiceInstance on the
27 L<AWS Proton|Paws::Proton> service. Use the attributes of this class
28 as arguments to method UpdateServiceInstance.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateServiceInstance.
31  
32 =head1 SYNOPSIS
33  
34 my $proton = Paws->service('Proton');
35 my $UpdateServiceInstanceOutput = $proton->UpdateServiceInstance(
36 DeploymentType => 'NONE',
37 Name => 'MyResourceName',
38 ServiceName => 'MyResourceName',
39 Spec => 'MySpecContents', # OPTIONAL
40 TemplateMajorVersion => 'MyTemplateVersionPart', # OPTIONAL
41 TemplateMinorVersion => 'MyTemplateVersionPart', # OPTIONAL
42 );
43  
44 # Results:
45 my $ServiceInstance = $UpdateServiceInstanceOutput->ServiceInstance;
46  
47 # Returns a L<Paws::Proton::UpdateServiceInstanceOutput> object.
48  
49 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.
50 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/proton/UpdateServiceInstance>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 B<REQUIRED> DeploymentType => Str
56  
57 The deployment type.
58  
59 There are four modes for updating a service instance as described in
60 the following. The C<deploymentType> field defines the mode.
61  
62 =over
63  
64 =item C<NONE>
65  
66 In this mode, a deployment I<doesn't> occur. Only the requested
67 metadata parameters are updated.
68  
69 =item C<CURRENT_VERSION>
70  
71 In this mode, the service instance is deployed and updated with the new
72 spec that you provide. Only requested parameters are updated.
73 I<DonE<rsquo>t> include minor or major version parameters when you use
74 this C<deployment-type>.
75  
76 =item C<MINOR_VERSION>
77  
78 In this mode, the service instance is deployed and updated with the
79 published, recommended (latest) minor version of the current major
80 version in use, by default. You can also specify a different minor
81 version of the current major version in use.
82  
83 =item C<MAJOR_VERSION>
84  
85 In this mode, the service instance is deployed and updated with the
86 published, recommended (latest) major and minor version of the current
87 template, by default. You can also specify a different major version
88 that is higher than the major version in use and a minor version
89 (optional).
90  
91 =back
92  
93  
94 Valid values are: C<"NONE">, C<"CURRENT_VERSION">, C<"MINOR_VERSION">, C<"MAJOR_VERSION">
95  
96 =head2 B<REQUIRED> Name => Str
97  
98 The name of the service instance to update.
99  
100  
101  
102 =head2 B<REQUIRED> ServiceName => Str
103  
104 The name of the service that the service instance belongs to.
105  
106  
107  
108 =head2 Spec => Str
109  
110 The formatted specification that defines the service instance update.
111  
112  
113  
114 =head2 TemplateMajorVersion => Str
115  
116 The major version of the service template to update.
117  
118  
119  
120 =head2 TemplateMinorVersion => Str
121  
122 The minor version of the service template to update.
123  
124  
125  
126  
127 =head1 SEE ALSO
128  
129 This class forms part of L<Paws>, documenting arguments for method UpdateServiceInstance in L<Paws::Proton>
130  
131 =head1 BUGS and CONTRIBUTIONS
132  
133 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
134  
135 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
136  
137 =cut
138