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

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Proton::CreateServiceTemplateVersion;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken' );
5 has CompatibleEnvironmentTemplates => (is => 'ro', isa => 'ArrayRef[Paws::Proton::CompatibleEnvironmentTemplateInput]', traits => ['NameInRequest'], request_name => 'compatibleEnvironmentTemplates' , required => 1);
6 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
7 has MajorVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'majorVersion' );
8 has Source => (is => 'ro', isa => 'Paws::Proton::TemplateVersionSourceInput', traits => ['NameInRequest'], request_name => 'source' , required => 1);
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Proton::Tag]', traits => ['NameInRequest'], request_name => 'tags' );
10 has TemplateName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateName' , required => 1);
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateServiceTemplateVersion');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Proton::CreateServiceTemplateVersionOutput');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::Proton::CreateServiceTemplateVersion - Arguments for method CreateServiceTemplateVersion on L<Paws::Proton>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateServiceTemplateVersion on the
28 L<AWS Proton|Paws::Proton> service. Use the attributes of this class
29 as arguments to method CreateServiceTemplateVersion.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateServiceTemplateVersion.
32  
33 =head1 SYNOPSIS
34  
35 my $proton = Paws->service('Proton');
36 my $CreateServiceTemplateVersionOutput =
37 $proton->CreateServiceTemplateVersion(
38 CompatibleEnvironmentTemplates => [
39 {
40 MajorVersion => 'MyTemplateVersionPart', # min: 1, max: 20
41 TemplateName => 'MyResourceName', # min: 1, max: 100
42  
43 },
44 ...
45 ],
46 Source => {
47 S3 => {
48 Bucket => 'MyS3Bucket', # min: 3, max: 63
49 Key => 'MyS3Key', # min: 1, max: 1024
50  
51 }, # OPTIONAL
52 },
53 TemplateName => 'MyResourceName',
54 ClientToken => 'MyClientToken', # OPTIONAL
55 Description => 'MyDescription', # OPTIONAL
56 MajorVersion => 'MyTemplateVersionPart', # OPTIONAL
57 Tags => [
58 {
59 Key => 'MyTagKey', # min: 1, max: 128
60 Value => 'MyTagValue', # max: 256
61  
62 },
63 ...
64 ], # OPTIONAL
65 );
66  
67 # Results:
68 my $ServiceTemplateVersion =
69 $CreateServiceTemplateVersionOutput->ServiceTemplateVersion;
70  
71 # Returns a L<Paws::Proton::CreateServiceTemplateVersionOutput> object.
72  
73 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.
74 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/proton/CreateServiceTemplateVersion>
75  
76 =head1 ATTRIBUTES
77  
78  
79 =head2 ClientToken => Str
80  
81 When included, if two identicial requests are made with the same client
82 token, AWS Proton returns the service template version that the first
83 request created.
84  
85  
86  
87 =head2 B<REQUIRED> CompatibleEnvironmentTemplates => ArrayRef[L<Paws::Proton::CompatibleEnvironmentTemplateInput>]
88  
89 An array of compatible environment template objects for the new version
90 of a service template.
91  
92  
93  
94 =head2 Description => Str
95  
96 A description of the new version of a service template.
97  
98  
99  
100 =head2 MajorVersion => Str
101  
102 To create a new minor version of the service template, include a
103 C<majorVersion>.
104  
105 To create a new major and minor version of the service template,
106 I<exclude> C<majorVersion>.
107  
108  
109  
110 =head2 B<REQUIRED> Source => L<Paws::Proton::TemplateVersionSourceInput>
111  
112 An object that includes the template bundle S3 bucket path and name for
113 the new version of a service template.
114  
115  
116  
117 =head2 Tags => ArrayRef[L<Paws::Proton::Tag>]
118  
119 Create tags for a new version of a service template.
120  
121  
122  
123 =head2 B<REQUIRED> TemplateName => Str
124  
125 The name of the service template.
126  
127  
128  
129  
130 =head1 SEE ALSO
131  
132 This class forms part of L<Paws>, documenting arguments for method CreateServiceTemplateVersion in L<Paws::Proton>
133  
134 =head1 BUGS and CONTRIBUTIONS
135  
136 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
137  
138 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
139  
140 =cut
141