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

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Proton::CreateService;
3 use Moose;
4 has BranchName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'branchName' );
5 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
6 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
7 has RepositoryConnectionArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryConnectionArn' );
8 has RepositoryId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryId' );
9 has Spec => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'spec' , required => 1);
10 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Proton::Tag]', traits => ['NameInRequest'], request_name => 'tags' );
11 has TemplateMajorVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateMajorVersion' , required => 1);
12 has TemplateMinorVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateMinorVersion' );
13 has TemplateName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateName' , required => 1);
14  
15 use MooseX::ClassAttribute;
16  
17 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateService');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Proton::CreateServiceOutput');
19 class_has _result_key => (isa => 'Str', is => 'ro');
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::Proton::CreateService - Arguments for method CreateService on L<Paws::Proton>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method CreateService on the
31 L<AWS Proton|Paws::Proton> service. Use the attributes of this class
32 as arguments to method CreateService.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateService.
35  
36 =head1 SYNOPSIS
37  
38 my $proton = Paws->service('Proton');
39 my $CreateServiceOutput = $proton->CreateService(
40 Name => 'MyResourceName',
41 Spec => 'MySpecContents',
42 TemplateMajorVersion => 'MyTemplateVersionPart',
43 TemplateName => 'MyResourceName',
44 BranchName => 'MyGitBranchName', # OPTIONAL
45 Description => 'MyDescription', # OPTIONAL
46 RepositoryConnectionArn => 'MyArn', # OPTIONAL
47 RepositoryId => 'MyRepositoryId', # OPTIONAL
48 Tags => [
49 {
50 Key => 'MyTagKey', # min: 1, max: 128
51 Value => 'MyTagValue', # max: 256
52  
53 },
54 ...
55 ], # OPTIONAL
56 TemplateMinorVersion => 'MyTemplateVersionPart', # OPTIONAL
57 );
58  
59 # Results:
60 my $Service = $CreateServiceOutput->Service;
61  
62 # Returns a L<Paws::Proton::CreateServiceOutput> object.
63  
64 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.
65 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/proton/CreateService>
66  
67 =head1 ATTRIBUTES
68  
69  
70 =head2 BranchName => Str
71  
72 The name of the code repository branch that holds the code that's
73 deployed in AWS Proton. I<Don't> include this parameter if your service
74 template I<doesn't> include a service pipeline.
75  
76  
77  
78 =head2 Description => Str
79  
80 A description of the AWS Proton service.
81  
82  
83  
84 =head2 B<REQUIRED> Name => Str
85  
86 The service name.
87  
88  
89  
90 =head2 RepositoryConnectionArn => Str
91  
92 The ARN of the repository connection. For more information, see Set up
93 repository connection
94 (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#settingSS-up-vcontrol)
95 in the I<AWS Proton Administration Guide> and Getting started
96 (https://docs.aws.amazon.com/proton/latest/userguide/ug-getting-started.html#getting-started-step1)
97 in the I<AWS Proton User Guide>. I<Don't> include this parameter if
98 your service template I<doesn't> include a service pipeline.
99  
100  
101  
102 =head2 RepositoryId => Str
103  
104 The ID of the code repository. I<Don't> include this parameter if your
105 service template I<doesn't> include a service pipeline.
106  
107  
108  
109 =head2 B<REQUIRED> Spec => Str
110  
111 A link to a spec file that provides inputs as defined in the service
112 template bundle schema file. The spec file is in YAML format.
113 DonE<rsquo>t include pipeline inputs in the spec if your service
114 template doesnE<rsquo>t include a service pipeline. For more
115 information, see Create a service
116 (https://docs.aws.amazon.com/proton/latest/adminguide/ag-create-svc.html.html)
117 in the I<AWS Proton Administration Guide> and Create a service
118 (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-create.html)
119 in the I<AWS Proton User Guide>.
120  
121  
122  
123 =head2 Tags => ArrayRef[L<Paws::Proton::Tag>]
124  
125 Create tags for your service. For more information, see I<AWS Proton
126 resources and tagging> in the AWS Proton Administration Guide
127 (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html)
128 or AWS Proton User Guide
129 (https://docs.aws.amazon.com/proton/latest/userguide/resources.html).
130  
131  
132  
133 =head2 B<REQUIRED> TemplateMajorVersion => Str
134  
135 The ID of the major version of the service template that was used to
136 create the service.
137  
138  
139  
140 =head2 TemplateMinorVersion => Str
141  
142 The ID of the minor version of the service template that was used to
143 create the service.
144  
145  
146  
147 =head2 B<REQUIRED> TemplateName => Str
148  
149 The name of the service template that's used to create the service.
150  
151  
152  
153  
154 =head1 SEE ALSO
155  
156 This class forms part of L<Paws>, documenting arguments for method CreateService in L<Paws::Proton>
157  
158 =head1 BUGS and CONTRIBUTIONS
159  
160 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
161  
162 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
163  
164 =cut
165