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

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