blib/lib/Paws/Amplify/CreateApp.pm untested

filter: Statementstmt 0.0% 0 / 48 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 50 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Amplify::CreateApp;
3 use Moose;
4 has AccessToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'accessToken');
5 has AutoBranchCreationConfig => (is => 'ro', isa => 'Paws::Amplify::AutoBranchCreationConfig', traits => ['NameInRequest'], request_name => 'autoBranchCreationConfig');
6 has AutoBranchCreationPatterns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'autoBranchCreationPatterns');
7 has BasicAuthCredentials => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'basicAuthCredentials');
8 has BuildSpec => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'buildSpec');
9 has CustomHeaders => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'customHeaders');
10 has CustomRules => (is => 'ro', isa => 'ArrayRef[Paws::Amplify::CustomRule]', traits => ['NameInRequest'], request_name => 'customRules');
11 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
12 has EnableAutoBranchCreation => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'enableAutoBranchCreation');
13 has EnableBasicAuth => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'enableBasicAuth');
14 has EnableBranchAutoBuild => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'enableBranchAutoBuild');
15 has EnableBranchAutoDeletion => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'enableBranchAutoDeletion');
16 has EnvironmentVariables => (is => 'ro', isa => 'Paws::Amplify::EnvironmentVariables', traits => ['NameInRequest'], request_name => 'environmentVariables');
17 has IamServiceRoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'iamServiceRoleArn');
18 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
19 has OauthToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'oauthToken');
20 has Platform => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'platform');
21 has Repository => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repository');
22 has Tags => (is => 'ro', isa => 'Paws::Amplify::TagMap', traits => ['NameInRequest'], request_name => 'tags');
23  
24 use MooseX::ClassAttribute;
25  
26 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateApp');
27 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/apps');
28 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
29 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Amplify::CreateAppResult');
30 1;
31  
32 ### main pod documentation begin ###
33  
34 =head1 NAME
35  
36 Paws::Amplify::CreateApp - Arguments for method CreateApp on L<Paws::Amplify>
37  
38 =head1 DESCRIPTION
39  
40 This class represents the parameters used for calling the method CreateApp on the
41 L<AWS Amplify|Paws::Amplify> service. Use the attributes of this class
42 as arguments to method CreateApp.
43  
44 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateApp.
45  
46 =head1 SYNOPSIS
47  
48 my $amplify = Paws->service('Amplify');
49 my $CreateAppResult = $amplify->CreateApp(
50 Name => 'MyName',
51 AccessToken => 'MyAccessToken', # OPTIONAL
52 AutoBranchCreationConfig => {
53 BasicAuthCredentials => 'MyBasicAuthCredentials', # max: 2000; OPTIONAL
54 BuildSpec => 'MyBuildSpec', # min: 1, max: 25000; OPTIONAL
55 EnableAutoBuild => 1, # OPTIONAL
56 EnableBasicAuth => 1, # OPTIONAL
57 EnablePerformanceMode => 1, # OPTIONAL
58 EnablePullRequestPreview => 1, # OPTIONAL
59 EnvironmentVariables => {
60 'MyEnvKey' => 'MyEnvValue', # key: max: 255, value: max: 1000
61 }, # OPTIONAL
62 Framework => 'MyFramework', # max: 255; OPTIONAL
63 PullRequestEnvironmentName =>
64 'MyPullRequestEnvironmentName', # max: 20; OPTIONAL
65 Stage => 'PRODUCTION'
66 , # values: PRODUCTION, BETA, DEVELOPMENT, EXPERIMENTAL, PULL_REQUEST; OPTIONAL
67 }, # OPTIONAL
68 AutoBranchCreationPatterns => [
69 'MyAutoBranchCreationPattern', ... # min: 1, max: 2048
70 ], # OPTIONAL
71 BasicAuthCredentials => 'MyBasicAuthCredentials', # OPTIONAL
72 BuildSpec => 'MyBuildSpec', # OPTIONAL
73 CustomHeaders => 'MyCustomHeaders', # OPTIONAL
74 CustomRules => [
75 {
76 Source => 'MySource', # min: 1, max: 2048
77 Target => 'MyTarget', # min: 1, max: 2048
78 Condition => 'MyCondition', # min: 1, max: 2048; OPTIONAL
79 Status => 'MyStatus', # min: 3, max: 7; OPTIONAL
80 },
81 ...
82 ], # OPTIONAL
83 Description => 'MyDescription', # OPTIONAL
84 EnableAutoBranchCreation => 1, # OPTIONAL
85 EnableBasicAuth => 1, # OPTIONAL
86 EnableBranchAutoBuild => 1, # OPTIONAL
87 EnableBranchAutoDeletion => 1, # OPTIONAL
88 EnvironmentVariables => {
89 'MyEnvKey' => 'MyEnvValue', # key: max: 255, value: max: 1000
90 }, # OPTIONAL
91 IamServiceRoleArn => 'MyServiceRoleArn', # OPTIONAL
92 OauthToken => 'MyOauthToken', # OPTIONAL
93 Platform => 'WEB', # OPTIONAL
94 Repository => 'MyRepository', # OPTIONAL
95 Tags => {
96 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
97 }, # OPTIONAL
98 );
99  
100 # Results:
101 my $App = $CreateAppResult->App;
102  
103 # Returns a L<Paws::Amplify::CreateAppResult> object.
104  
105 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.
106 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/amplify/CreateApp>
107  
108 =head1 ATTRIBUTES
109  
110  
111 =head2 AccessToken => Str
112  
113 The personal access token for a third-party source control system for
114 an Amplify app. The personal access token is used to create a webhook
115 and a read-only deploy key. The token is not stored.
116  
117  
118  
119 =head2 AutoBranchCreationConfig => L<Paws::Amplify::AutoBranchCreationConfig>
120  
121 The automated branch creation configuration for an Amplify app.
122  
123  
124  
125 =head2 AutoBranchCreationPatterns => ArrayRef[Str|Undef]
126  
127 The automated branch creation glob patterns for an Amplify app.
128  
129  
130  
131 =head2 BasicAuthCredentials => Str
132  
133 The credentials for basic authorization for an Amplify app.
134  
135  
136  
137 =head2 BuildSpec => Str
138  
139 The build specification (build spec) for an Amplify app.
140  
141  
142  
143 =head2 CustomHeaders => Str
144  
145 The custom HTTP headers for an Amplify app.
146  
147  
148  
149 =head2 CustomRules => ArrayRef[L<Paws::Amplify::CustomRule>]
150  
151 The custom rewrite and redirect rules for an Amplify app.
152  
153  
154  
155 =head2 Description => Str
156  
157 The description for an Amplify app.
158  
159  
160  
161 =head2 EnableAutoBranchCreation => Bool
162  
163 Enables automated branch creation for an Amplify app.
164  
165  
166  
167 =head2 EnableBasicAuth => Bool
168  
169 Enables basic authorization for an Amplify app. This will apply to all
170 branches that are part of this app.
171  
172  
173  
174 =head2 EnableBranchAutoBuild => Bool
175  
176 Enables the auto building of branches for an Amplify app.
177  
178  
179  
180 =head2 EnableBranchAutoDeletion => Bool
181  
182 Automatically disconnects a branch in the Amplify Console when you
183 delete a branch from your Git repository.
184  
185  
186  
187 =head2 EnvironmentVariables => L<Paws::Amplify::EnvironmentVariables>
188  
189 The environment variables map for an Amplify app.
190  
191  
192  
193 =head2 IamServiceRoleArn => Str
194  
195 The AWS Identity and Access Management (IAM) service role for an
196 Amplify app.
197  
198  
199  
200 =head2 B<REQUIRED> Name => Str
201  
202 The name for an Amplify app.
203  
204  
205  
206 =head2 OauthToken => Str
207  
208 The OAuth token for a third-party source control system for an Amplify
209 app. The OAuth token is used to create a webhook and a read-only deploy
210 key. The OAuth token is not stored.
211  
212  
213  
214 =head2 Platform => Str
215  
216 The platform or framework for an Amplify app.
217  
218 Valid values are: C<"WEB">
219  
220 =head2 Repository => Str
221  
222 The repository for an Amplify app.
223  
224  
225  
226 =head2 Tags => L<Paws::Amplify::TagMap>
227  
228 The tag for an Amplify app.
229  
230  
231  
232  
233 =head1 SEE ALSO
234  
235 This class forms part of L<Paws>, documenting arguments for method CreateApp in L<Paws::Amplify>
236  
237 =head1 BUGS and CONTRIBUTIONS
238  
239 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
240  
241 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
242  
243 =cut
244