blib/lib/Paws/CloudFront/CreateDistributionWithTags.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CloudFront::CreateDistributionWithTags;
3 use Moose;
4 has DistributionConfigWithTags => (is => 'ro', isa => 'Paws::CloudFront::DistributionConfigWithTags', traits => ['ParamInBody'], required => 1);
5  
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDistributionWithTags');
10 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2020-05-31/distribution?WithTags');
11 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudFront::CreateDistributionWithTagsResult');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14
15
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::CloudFront::CreateDistributionWithTags - Arguments for method CreateDistributionWithTags on L<Paws::CloudFront>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateDistributionWithTags2020_05_31 on the
27 L<Amazon CloudFront|Paws::CloudFront> service. Use the attributes of this class
28 as arguments to method CreateDistributionWithTags2020_05_31.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDistributionWithTags2020_05_31.
31  
32 =head1 SYNOPSIS
33  
34 my $cloudfront = Paws->service('CloudFront');
35 my $CreateDistributionWithTagsResult =
36 $cloudfront->CreateDistributionWithTags(
37 DistributionConfigWithTags => {
38 DistributionConfig => {
39 CallerReference => 'Mystring',
40 Comment => 'MyCommentType',
41 DefaultCacheBehavior => {
42 TargetOriginId => 'Mystring',
43 ViewerProtocolPolicy =>
44 'allow-all', # values: allow-all, https-only, redirect-to-https
45 AllowedMethods => {
46 Items => [
47 'GET',
48 ... # values: GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
49 ],
50 Quantity => 1,
51 CachedMethods => {
52 Items => [
53 'GET',
54 ... # values: GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
55 ],
56 Quantity => 1,
57  
58 }, # OPTIONAL
59 }, # OPTIONAL
60 CachePolicyId => 'Mystring',
61 Compress => 1, # OPTIONAL
62 DefaultTTL => 1, # OPTIONAL
63 FieldLevelEncryptionId => 'Mystring',
64 ForwardedValues => {
65 Cookies => {
66 Forward => 'none', # values: none, whitelist, all
67 WhitelistedNames => {
68 Quantity => 1,
69 Items => [ 'Mystring', ... ], # OPTIONAL
70 }, # OPTIONAL
71 },
72 QueryString => 1, # OPTIONAL
73 Headers => {
74 Quantity => 1,
75 Items => [ 'Mystring', ... ], # OPTIONAL
76 }, # OPTIONAL
77 QueryStringCacheKeys => {
78 Quantity => 1,
79 Items => [ 'Mystring', ... ], # OPTIONAL
80 }, # OPTIONAL
81 }, # OPTIONAL
82 FunctionAssociations => {
83 Quantity => 1,
84 Items => [
85 {
86 EventType => 'viewer-request'
87 , # values: viewer-request, viewer-response, origin-request, origin-response
88 FunctionARN => 'MyFunctionARN', # max: 108
89  
90 },
91 ...
92 ], # OPTIONAL
93 }, # OPTIONAL
94 LambdaFunctionAssociations => {
95 Quantity => 1,
96 Items => [
97 {
98 EventType => 'viewer-request'
99 , # values: viewer-request, viewer-response, origin-request, origin-response
100 LambdaFunctionARN => 'MyLambdaFunctionARN',
101 IncludeBody => 1, # OPTIONAL
102 },
103 ...
104 ], # OPTIONAL
105 }, # OPTIONAL
106 MaxTTL => 1, # OPTIONAL
107 MinTTL => 1, # OPTIONAL
108 OriginRequestPolicyId => 'Mystring',
109 RealtimeLogConfigArn => 'Mystring',
110 SmoothStreaming => 1, # OPTIONAL
111 TrustedKeyGroups => {
112 Enabled => 1, # OPTIONAL
113 Quantity => 1,
114 Items => [ 'Mystring', ... ], # OPTIONAL
115 }, # OPTIONAL
116 TrustedSigners => {
117 Enabled => 1, # OPTIONAL
118 Quantity => 1,
119 Items => [ 'Mystring', ... ], # OPTIONAL
120 }, # OPTIONAL
121 },
122 Enabled => 1, # OPTIONAL
123 Origins => {
124 Items => [
125 {
126 DomainName => 'Mystring',
127 Id => 'Mystring',
128 ConnectionAttempts => 1,
129 ConnectionTimeout => 1,
130 CustomHeaders => {
131 Quantity => 1,
132 Items => [
133 {
134 HeaderName => 'Mystring',
135 HeaderValue => 'Mystring',
136  
137 },
138 ...
139 ], # OPTIONAL
140 }, # OPTIONAL
141 CustomOriginConfig => {
142 HTTPPort => 1,
143 HTTPSPort => 1,
144 OriginProtocolPolicy =>
145 'http-only', # values: http-only, match-viewer, https-only
146 OriginKeepaliveTimeout => 1,
147 OriginReadTimeout => 1,
148 OriginSslProtocols => {
149 Items => [
150 'SSLv3', ... # values: SSLv3, TLSv1, TLSv1.1, TLSv1.2
151 ],
152 Quantity => 1,
153  
154 }, # OPTIONAL
155 }, # OPTIONAL
156 OriginPath => 'Mystring',
157 OriginShield => {
158 Enabled => 1, # OPTIONAL
159 OriginShieldRegion =>
160 'MyOriginShieldRegion', # min: 1, max: 32; OPTIONAL
161 }, # OPTIONAL
162 S3OriginConfig => {
163 OriginAccessIdentity => 'Mystring',
164  
165 }, # OPTIONAL
166 },
167 ...
168 ], # min: 1
169 Quantity => 1,
170  
171 },
172 Aliases => {
173 Quantity => 1,
174 Items => [ 'Mystring', ... ], # OPTIONAL
175 }, # OPTIONAL
176 CacheBehaviors => {
177 Quantity => 1,
178 Items => [
179 {
180 PathPattern => 'Mystring',
181 TargetOriginId => 'Mystring',
182 ViewerProtocolPolicy => 'allow-all'
183 , # values: allow-all, https-only, redirect-to-https
184 AllowedMethods => {
185 Items => [
186 'GET',
187 ... # values: GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
188 ],
189 Quantity => 1,
190 CachedMethods => {
191 Items => [
192 'GET',
193 ... # values: GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
194 ],
195 Quantity => 1,
196  
197 }, # OPTIONAL
198 }, # OPTIONAL
199 CachePolicyId => 'Mystring',
200 Compress => 1, # OPTIONAL
201 DefaultTTL => 1, # OPTIONAL
202 FieldLevelEncryptionId => 'Mystring',
203 ForwardedValues => {
204 Cookies => {
205 Forward => 'none', # values: none, whitelist, all
206 WhitelistedNames => {
207 Quantity => 1,
208 Items => [ 'Mystring', ... ], # OPTIONAL
209 }, # OPTIONAL
210 },
211 QueryString => 1, # OPTIONAL
212 Headers => {
213 Quantity => 1,
214 Items => [ 'Mystring', ... ], # OPTIONAL
215 }, # OPTIONAL
216 QueryStringCacheKeys => {
217 Quantity => 1,
218 Items => [ 'Mystring', ... ], # OPTIONAL
219 }, # OPTIONAL
220 }, # OPTIONAL
221 FunctionAssociations => {
222 Quantity => 1,
223 Items => [
224 {
225 EventType => 'viewer-request'
226 , # values: viewer-request, viewer-response, origin-request, origin-response
227 FunctionARN => 'MyFunctionARN', # max: 108
228  
229 },
230 ...
231 ], # OPTIONAL
232 }, # OPTIONAL
233 LambdaFunctionAssociations => {
234 Quantity => 1,
235 Items => [
236 {
237 EventType => 'viewer-request'
238 , # values: viewer-request, viewer-response, origin-request, origin-response
239 LambdaFunctionARN => 'MyLambdaFunctionARN',
240 IncludeBody => 1, # OPTIONAL
241 },
242 ...
243 ], # OPTIONAL
244 }, # OPTIONAL
245 MaxTTL => 1, # OPTIONAL
246 MinTTL => 1, # OPTIONAL
247 OriginRequestPolicyId => 'Mystring',
248 RealtimeLogConfigArn => 'Mystring',
249 SmoothStreaming => 1, # OPTIONAL
250 TrustedKeyGroups => {
251 Enabled => 1, # OPTIONAL
252 Quantity => 1,
253 Items => [ 'Mystring', ... ], # OPTIONAL
254 }, # OPTIONAL
255 TrustedSigners => {
256 Enabled => 1, # OPTIONAL
257 Quantity => 1,
258 Items => [ 'Mystring', ... ], # OPTIONAL
259 }, # OPTIONAL
260 },
261 ...
262 ], # OPTIONAL
263 }, # OPTIONAL
264 CustomErrorResponses => {
265 Quantity => 1,
266 Items => [
267 {
268 ErrorCode => 1,
269 ErrorCachingMinTTL => 1, # OPTIONAL
270 ResponseCode => 'Mystring',
271 ResponsePagePath => 'Mystring',
272 },
273 ...
274 ], # OPTIONAL
275 }, # OPTIONAL
276 DefaultRootObject => 'Mystring',
277 HttpVersion => 'http1.1', # values: http1.1, http2; OPTIONAL
278 IsIPV6Enabled => 1, # OPTIONAL
279 Logging => {
280 Bucket => 'Mystring',
281 Enabled => 1, # OPTIONAL
282 IncludeCookies => 1, # OPTIONAL
283 Prefix => 'Mystring',
284  
285 }, # OPTIONAL
286 OriginGroups => {
287 Quantity => 1,
288 Items => [
289 {
290 FailoverCriteria => {
291 StatusCodes => {
292 Items => [ 1, ... ], # min: 1
293 Quantity => 1,
294  
295 },
296  
297 },
298 Id => 'Mystring',
299 Members => {
300 Items => [
301 {
302 OriginId => 'Mystring',
303  
304 },
305 ...
306 ], # min: 2, max: 2
307 Quantity => 1,
308  
309 },
310  
311 },
312 ...
313 ], # OPTIONAL
314 }, # OPTIONAL
315 PriceClass => 'PriceClass_100'
316 , # values: PriceClass_100, PriceClass_200, PriceClass_All; OPTIONAL
317 Restrictions => {
318 GeoRestriction => {
319 Quantity => 1,
320 RestrictionType =>
321 'blacklist', # values: blacklist, whitelist, none
322 Items => [ 'Mystring', ... ], # OPTIONAL
323 },
324  
325 }, # OPTIONAL
326 ViewerCertificate => {
327 ACMCertificateArn => 'Mystring',
328 Certificate => 'Mystring',
329 CertificateSource =>
330 'cloudfront', # values: cloudfront, iam, acm; OPTIONAL
331 CloudFrontDefaultCertificate => 1, # OPTIONAL
332 IAMCertificateId => 'Mystring',
333 MinimumProtocolVersion => 'SSLv3'
334 , # values: SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019, TLSv1.2_2021; OPTIONAL
335 SSLSupportMethod =>
336 'sni-only', # values: sni-only, vip, static-ip; OPTIONAL
337 }, # OPTIONAL
338 WebACLId => 'Mystring',
339 },
340 Tags => {
341 Items => [
342 {
343 Key => 'MyTagKey', # min: 1, max: 128
344 Value => 'MyTagValue', # max: 256; OPTIONAL
345 },
346 ...
347 ], # OPTIONAL
348 },
349  
350 },
351  
352 );
353  
354 # Results:
355 my $Distribution = $CreateDistributionWithTagsResult->Distribution;
356 my $ETag = $CreateDistributionWithTagsResult->ETag;
357 my $Location = $CreateDistributionWithTagsResult->Location;
358  
359 # Returns a L<Paws::CloudFront::CreateDistributionWithTagsResult> object.
360  
361 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.
362 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cloudfront/CreateDistributionWithTags>
363  
364 =head1 ATTRIBUTES
365  
366  
367 =head2 B<REQUIRED> DistributionConfigWithTags => L<Paws::CloudFront::DistributionConfigWithTags>
368  
369 The distribution's configuration information.
370  
371  
372  
373  
374 =head1 SEE ALSO
375  
376 This class forms part of L<Paws>, documenting arguments for method CreateDistributionWithTags2020_05_31 in L<Paws::CloudFront>
377  
378 =head1 BUGS and CONTRIBUTIONS
379  
380 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
381  
382 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
383  
384 =cut
385