blib/lib/Paws/CloudFront.pm

filter: Statementstmt 6.1% 21 / 341 Branchbran 2.9% 1 / 34 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 8.3% 8 / 96 Podpod 94.5% 87 / 92 totaltotal 20.7% 117 / 563 CC 25 SCAR 26.8
CC
25
Cov
6%
ListAllCloudFrontOriginAccessIdentities
56.0
ListAllDistributions
56.0
ListAllInvalidations
56.0
CRAP 14.5
« lib/Paws/DirectConnect.pm ↑ Summary blib/lib/Paws.pm »
1 package Paws::CloudFront;
2 3 ▶ warn "Paws::CloudFront is not stable / supported / entirely developed" unless $ENV{'PAWS_SILENCE_UNSTABLE_WARNINGS'};
Branch: 1 branch
BranchTrueFalseTotal
unless $ENV{"PAWS_SILENCE_UNSTABLE_WARNINGS"} 3 0 3
3 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶ sub service { 'cloudfront' }
Subroutine service: called CC=1 SCAR=0.0
Pod undocumented
5 1 ▶ sub signing_name { 'cloudfront' }
Subroutine signing_name: called CC=1 SCAR=0.0
Pod undocumented
6 0 ▶ sub version { '2020-05-31' }
Subroutine version: not called CC=1 SCAR=6.9
Pod undocumented
7 3 ▶ sub flattened_arrays { 0 }
Subroutine flattened_arrays: called CC=1 SCAR=0.0
Pod undocumented
8 3 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
9 3 ▶ has retry => (is => 'ro', isa => 'HashRef', default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
10 3 { base => 'rand', type => 'exponential', growth_factor => 2 }
11 3 });
12 3 ▶ has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
Subroutine __ANON__: called CC=1 SCAR=0.0
13 3 ] });
14  
15 3 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestXmlCaller';
16  
17 3 ▶ has '+region_rules' => (default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
18 3 my $regioninfo;
19 3 $regioninfo = [
20 {
21 constraints => [
22 [
23 'region',
24 'notStartsWith',
25 'cn-'
26 ]
27 ],
28 properties => {
29 credentialScope => {
30 region => 'us-east-1'
31 }
32 },
33 uri => 'https://cloudfront.amazonaws.com'
34 }
35 ];
36  
37 3 return $regioninfo;
38 3 });
39  
40
41 0 ▶ sub CreateCachePolicy {
Subroutine CreateCachePolicy: not called CC=1 SCAR=6.9
Pod documented
42 0 my $self = shift;
43 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateCachePolicy', @_);
44 0 return $self->caller->do_call($self, $call_object);
45 }
46 0 ▶ sub CreateCloudFrontOriginAccessIdentity {
Subroutine CreateCloudFrontOriginAccessIdentity: not called CC=1 SCAR=6.9
Pod documented
47 0 my $self = shift;
48 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateCloudFrontOriginAccessIdentity', @_);
49 0 return $self->caller->do_call($self, $call_object);
50 }
51 0 ▶ sub CreateDistribution {
Subroutine CreateDistribution: not called CC=1 SCAR=6.9
Pod documented
52 0 my $self = shift;
53 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateDistribution', @_);
54 0 return $self->caller->do_call($self, $call_object);
55 }
56 0 ▶ sub CreateDistributionWithTags {
Subroutine CreateDistributionWithTags: not called CC=1 SCAR=6.9
Pod documented
57 0 my $self = shift;
58 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateDistributionWithTags', @_);
59 0 return $self->caller->do_call($self, $call_object);
60 }
61 0 ▶ sub CreateFieldLevelEncryptionConfig {
Subroutine CreateFieldLevelEncryptionConfig: not called CC=1 SCAR=6.9
Pod documented
62 0 my $self = shift;
63 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateFieldLevelEncryptionConfig', @_);
64 0 return $self->caller->do_call($self, $call_object);
65 }
66 0 ▶ sub CreateFieldLevelEncryptionProfile {
Subroutine CreateFieldLevelEncryptionProfile: not called CC=1 SCAR=6.9
Pod documented
67 0 my $self = shift;
68 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateFieldLevelEncryptionProfile', @_);
69 0 return $self->caller->do_call($self, $call_object);
70 }
71 0 ▶ sub CreateFunction {
Subroutine CreateFunction: not called CC=1 SCAR=6.9
Pod documented
72 0 my $self = shift;
73 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateFunction', @_);
74 0 return $self->caller->do_call($self, $call_object);
75 }
76 2 ▶ sub CreateInvalidation {
Subroutine CreateInvalidation: called CC=1 SCAR=0.0
Pod documented
77 2 my $self = shift;
78 2 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateInvalidation', @_);
79 2 return $self->caller->do_call($self, $call_object);
80 }
81 0 ▶ sub CreateKeyGroup {
Subroutine CreateKeyGroup: not called CC=1 SCAR=6.9
Pod documented
82 0 my $self = shift;
83 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateKeyGroup', @_);
84 0 return $self->caller->do_call($self, $call_object);
85 }
86 0 ▶ sub CreateMonitoringSubscription {
Subroutine CreateMonitoringSubscription: not called CC=1 SCAR=6.9
Pod documented
87 0 my $self = shift;
88 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateMonitoringSubscription', @_);
89 0 return $self->caller->do_call($self, $call_object);
90 }
91 0 ▶ sub CreateOriginRequestPolicy {
Subroutine CreateOriginRequestPolicy: not called CC=1 SCAR=6.9
Pod documented
92 0 my $self = shift;
93 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateOriginRequestPolicy', @_);
94 0 return $self->caller->do_call($self, $call_object);
95 }
96 0 ▶ sub CreatePublicKey {
Subroutine CreatePublicKey: not called CC=1 SCAR=6.9
Pod documented
97 0 my $self = shift;
98 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreatePublicKey', @_);
99 0 return $self->caller->do_call($self, $call_object);
100 }
101 0 ▶ sub CreateRealtimeLogConfig {
Subroutine CreateRealtimeLogConfig: not called CC=1 SCAR=6.9
Pod documented
102 0 my $self = shift;
103 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateRealtimeLogConfig', @_);
104 0 return $self->caller->do_call($self, $call_object);
105 }
106 0 ▶ sub CreateStreamingDistribution {
Subroutine CreateStreamingDistribution: not called CC=1 SCAR=6.9
Pod documented
107 0 my $self = shift;
108 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateStreamingDistribution', @_);
109 0 return $self->caller->do_call($self, $call_object);
110 }
111 0 ▶ sub CreateStreamingDistributionWithTags {
Subroutine CreateStreamingDistributionWithTags: not called CC=1 SCAR=6.9
Pod documented
112 0 my $self = shift;
113 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::CreateStreamingDistributionWithTags', @_);
114 0 return $self->caller->do_call($self, $call_object);
115 }
116 0 ▶ sub DeleteCachePolicy {
Subroutine DeleteCachePolicy: not called CC=1 SCAR=6.9
Pod documented
117 0 my $self = shift;
118 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteCachePolicy', @_);
119 0 return $self->caller->do_call($self, $call_object);
120 }
121 0 ▶ sub DeleteCloudFrontOriginAccessIdentity {
Subroutine DeleteCloudFrontOriginAccessIdentity: not called CC=1 SCAR=6.9
Pod documented
122 0 my $self = shift;
123 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteCloudFrontOriginAccessIdentity', @_);
124 0 return $self->caller->do_call($self, $call_object);
125 }
126 0 ▶ sub DeleteDistribution {
Subroutine DeleteDistribution: not called CC=1 SCAR=6.9
Pod documented
127 0 my $self = shift;
128 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteDistribution', @_);
129 0 return $self->caller->do_call($self, $call_object);
130 }
131 0 ▶ sub DeleteFieldLevelEncryptionConfig {
Subroutine DeleteFieldLevelEncryptionConfig: not called CC=1 SCAR=6.9
Pod documented
132 0 my $self = shift;
133 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteFieldLevelEncryptionConfig', @_);
134 0 return $self->caller->do_call($self, $call_object);
135 }
136 0 ▶ sub DeleteFieldLevelEncryptionProfile {
Subroutine DeleteFieldLevelEncryptionProfile: not called CC=1 SCAR=6.9
Pod documented
137 0 my $self = shift;
138 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteFieldLevelEncryptionProfile', @_);
139 0 return $self->caller->do_call($self, $call_object);
140 }
141 0 ▶ sub DeleteFunction {
Subroutine DeleteFunction: not called CC=1 SCAR=6.9
Pod documented
142 0 my $self = shift;
143 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteFunction', @_);
144 0 return $self->caller->do_call($self, $call_object);
145 }
146 0 ▶ sub DeleteKeyGroup {
Subroutine DeleteKeyGroup: not called CC=1 SCAR=6.9
Pod documented
147 0 my $self = shift;
148 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteKeyGroup', @_);
149 0 return $self->caller->do_call($self, $call_object);
150 }
151 0 ▶ sub DeleteMonitoringSubscription {
Subroutine DeleteMonitoringSubscription: not called CC=1 SCAR=6.9
Pod documented
152 0 my $self = shift;
153 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteMonitoringSubscription', @_);
154 0 return $self->caller->do_call($self, $call_object);
155 }
156 0 ▶ sub DeleteOriginRequestPolicy {
Subroutine DeleteOriginRequestPolicy: not called CC=1 SCAR=6.9
Pod documented
157 0 my $self = shift;
158 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteOriginRequestPolicy', @_);
159 0 return $self->caller->do_call($self, $call_object);
160 }
161 0 ▶ sub DeletePublicKey {
Subroutine DeletePublicKey: not called CC=1 SCAR=6.9
Pod documented
162 0 my $self = shift;
163 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeletePublicKey', @_);
164 0 return $self->caller->do_call($self, $call_object);
165 }
166 0 ▶ sub DeleteRealtimeLogConfig {
Subroutine DeleteRealtimeLogConfig: not called CC=1 SCAR=6.9
Pod documented
167 0 my $self = shift;
168 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteRealtimeLogConfig', @_);
169 0 return $self->caller->do_call($self, $call_object);
170 }
171 0 ▶ sub DeleteStreamingDistribution {
Subroutine DeleteStreamingDistribution: not called CC=1 SCAR=6.9
Pod documented
172 0 my $self = shift;
173 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DeleteStreamingDistribution', @_);
174 0 return $self->caller->do_call($self, $call_object);
175 }
176 0 ▶ sub DescribeFunction {
Subroutine DescribeFunction: not called CC=1 SCAR=6.9
Pod documented
177 0 my $self = shift;
178 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::DescribeFunction', @_);
179 0 return $self->caller->do_call($self, $call_object);
180 }
181 0 ▶ sub GetCachePolicy {
Subroutine GetCachePolicy: not called CC=1 SCAR=6.9
Pod documented
182 0 my $self = shift;
183 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetCachePolicy', @_);
184 0 return $self->caller->do_call($self, $call_object);
185 }
186 0 ▶ sub GetCachePolicyConfig {
Subroutine GetCachePolicyConfig: not called CC=1 SCAR=6.9
Pod documented
187 0 my $self = shift;
188 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetCachePolicyConfig', @_);
189 0 return $self->caller->do_call($self, $call_object);
190 }
191 0 ▶ sub GetCloudFrontOriginAccessIdentity {
Subroutine GetCloudFrontOriginAccessIdentity: not called CC=1 SCAR=6.9
Pod documented
192 0 my $self = shift;
193 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetCloudFrontOriginAccessIdentity', @_);
194 0 return $self->caller->do_call($self, $call_object);
195 }
196 0 ▶ sub GetCloudFrontOriginAccessIdentityConfig {
Subroutine GetCloudFrontOriginAccessIdentityConfig: not called CC=1 SCAR=6.9
Pod documented
197 0 my $self = shift;
198 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetCloudFrontOriginAccessIdentityConfig', @_);
199 0 return $self->caller->do_call($self, $call_object);
200 }
201 0 ▶ sub GetDistribution {
Subroutine GetDistribution: not called CC=1 SCAR=6.9
Pod documented
202 0 my $self = shift;
203 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetDistribution', @_);
204 0 return $self->caller->do_call($self, $call_object);
205 }
206 0 ▶ sub GetDistributionConfig {
Subroutine GetDistributionConfig: not called CC=1 SCAR=6.9
Pod documented
207 0 my $self = shift;
208 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetDistributionConfig', @_);
209 0 return $self->caller->do_call($self, $call_object);
210 }
211 0 ▶ sub GetFieldLevelEncryption {
Subroutine GetFieldLevelEncryption: not called CC=1 SCAR=6.9
Pod documented
212 0 my $self = shift;
213 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetFieldLevelEncryption', @_);
214 0 return $self->caller->do_call($self, $call_object);
215 }
216 0 ▶ sub GetFieldLevelEncryptionConfig {
Subroutine GetFieldLevelEncryptionConfig: not called CC=1 SCAR=6.9
Pod documented
217 0 my $self = shift;
218 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetFieldLevelEncryptionConfig', @_);
219 0 return $self->caller->do_call($self, $call_object);
220 }
221 0 ▶ sub GetFieldLevelEncryptionProfile {
Subroutine GetFieldLevelEncryptionProfile: not called CC=1 SCAR=6.9
Pod documented
222 0 my $self = shift;
223 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetFieldLevelEncryptionProfile', @_);
224 0 return $self->caller->do_call($self, $call_object);
225 }
226 0 ▶ sub GetFieldLevelEncryptionProfileConfig {
Subroutine GetFieldLevelEncryptionProfileConfig: not called CC=1 SCAR=6.9
Pod documented
227 0 my $self = shift;
228 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetFieldLevelEncryptionProfileConfig', @_);
229 0 return $self->caller->do_call($self, $call_object);
230 }
231 0 ▶ sub GetFunction {
Subroutine GetFunction: not called CC=1 SCAR=6.9
Pod documented
232 0 my $self = shift;
233 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetFunction', @_);
234 0 return $self->caller->do_call($self, $call_object);
235 }
236 0 ▶ sub GetInvalidation {
Subroutine GetInvalidation: not called CC=1 SCAR=6.9
Pod documented
237 0 my $self = shift;
238 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetInvalidation', @_);
239 0 return $self->caller->do_call($self, $call_object);
240 }
241 0 ▶ sub GetKeyGroup {
Subroutine GetKeyGroup: not called CC=1 SCAR=6.9
Pod documented
242 0 my $self = shift;
243 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetKeyGroup', @_);
244 0 return $self->caller->do_call($self, $call_object);
245 }
246 0 ▶ sub GetKeyGroupConfig {
Subroutine GetKeyGroupConfig: not called CC=1 SCAR=6.9
Pod documented
247 0 my $self = shift;
248 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetKeyGroupConfig', @_);
249 0 return $self->caller->do_call($self, $call_object);
250 }
251 0 ▶ sub GetMonitoringSubscription {
Subroutine GetMonitoringSubscription: not called CC=1 SCAR=6.9
Pod documented
252 0 my $self = shift;
253 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetMonitoringSubscription', @_);
254 0 return $self->caller->do_call($self, $call_object);
255 }
256 0 ▶ sub GetOriginRequestPolicy {
Subroutine GetOriginRequestPolicy: not called CC=1 SCAR=6.9
Pod documented
257 0 my $self = shift;
258 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetOriginRequestPolicy', @_);
259 0 return $self->caller->do_call($self, $call_object);
260 }
261 0 ▶ sub GetOriginRequestPolicyConfig {
Subroutine GetOriginRequestPolicyConfig: not called CC=1 SCAR=6.9
Pod documented
262 0 my $self = shift;
263 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetOriginRequestPolicyConfig', @_);
264 0 return $self->caller->do_call($self, $call_object);
265 }
266 0 ▶ sub GetPublicKey {
Subroutine GetPublicKey: not called CC=1 SCAR=6.9
Pod documented
267 0 my $self = shift;
268 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetPublicKey', @_);
269 0 return $self->caller->do_call($self, $call_object);
270 }
271 0 ▶ sub GetPublicKeyConfig {
Subroutine GetPublicKeyConfig: not called CC=1 SCAR=6.9
Pod documented
272 0 my $self = shift;
273 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetPublicKeyConfig', @_);
274 0 return $self->caller->do_call($self, $call_object);
275 }
276 0 ▶ sub GetRealtimeLogConfig {
Subroutine GetRealtimeLogConfig: not called CC=1 SCAR=6.9
Pod documented
277 0 my $self = shift;
278 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetRealtimeLogConfig', @_);
279 0 return $self->caller->do_call($self, $call_object);
280 }
281 0 ▶ sub GetStreamingDistribution {
Subroutine GetStreamingDistribution: not called CC=1 SCAR=6.9
Pod documented
282 0 my $self = shift;
283 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetStreamingDistribution', @_);
284 0 return $self->caller->do_call($self, $call_object);
285 }
286 0 ▶ sub GetStreamingDistributionConfig {
Subroutine GetStreamingDistributionConfig: not called CC=1 SCAR=6.9
Pod documented
287 0 my $self = shift;
288 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::GetStreamingDistributionConfig', @_);
289 0 return $self->caller->do_call($self, $call_object);
290 }
291 0 ▶ sub ListCachePolicies {
Subroutine ListCachePolicies: not called CC=1 SCAR=6.9
Pod documented
292 0 my $self = shift;
293 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListCachePolicies', @_);
294 0 return $self->caller->do_call($self, $call_object);
295 }
296 0 ▶ sub ListCloudFrontOriginAccessIdentities {
Subroutine ListCloudFrontOriginAccessIdentities: not called CC=1 SCAR=6.9
Pod documented
297 0 my $self = shift;
298 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListCloudFrontOriginAccessIdentities', @_);
299 0 return $self->caller->do_call($self, $call_object);
300 }
301 0 ▶ sub ListDistributions {
Subroutine ListDistributions: not called CC=1 SCAR=6.9
Pod documented
302 0 my $self = shift;
303 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListDistributions', @_);
304 0 return $self->caller->do_call($self, $call_object);
305 }
306 0 ▶ sub ListDistributionsByCachePolicyId {
Subroutine ListDistributionsByCachePolicyId: not called CC=1 SCAR=6.9
Pod documented
307 0 my $self = shift;
308 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListDistributionsByCachePolicyId', @_);
309 0 return $self->caller->do_call($self, $call_object);
310 }
311 0 ▶ sub ListDistributionsByKeyGroup {
Subroutine ListDistributionsByKeyGroup: not called CC=1 SCAR=6.9
Pod documented
312 0 my $self = shift;
313 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListDistributionsByKeyGroup', @_);
314 0 return $self->caller->do_call($self, $call_object);
315 }
316 0 ▶ sub ListDistributionsByOriginRequestPolicyId {
Subroutine ListDistributionsByOriginRequestPolicyId: not called CC=1 SCAR=6.9
Pod documented
317 0 my $self = shift;
318 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListDistributionsByOriginRequestPolicyId', @_);
319 0 return $self->caller->do_call($self, $call_object);
320 }
321 0 ▶ sub ListDistributionsByRealtimeLogConfig {
Subroutine ListDistributionsByRealtimeLogConfig: not called CC=1 SCAR=6.9
Pod documented
322 0 my $self = shift;
323 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListDistributionsByRealtimeLogConfig', @_);
324 0 return $self->caller->do_call($self, $call_object);
325 }
326 0 ▶ sub ListDistributionsByWebACLId {
Subroutine ListDistributionsByWebACLId: not called CC=1 SCAR=6.9
Pod documented
327 0 my $self = shift;
328 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListDistributionsByWebACLId', @_);
329 0 return $self->caller->do_call($self, $call_object);
330 }
331 0 ▶ sub ListFieldLevelEncryptionConfigs {
Subroutine ListFieldLevelEncryptionConfigs: not called CC=1 SCAR=6.9
Pod documented
332 0 my $self = shift;
333 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListFieldLevelEncryptionConfigs', @_);
334 0 return $self->caller->do_call($self, $call_object);
335 }
336 0 ▶ sub ListFieldLevelEncryptionProfiles {
Subroutine ListFieldLevelEncryptionProfiles: not called CC=1 SCAR=6.9
Pod documented
337 0 my $self = shift;
338 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListFieldLevelEncryptionProfiles', @_);
339 0 return $self->caller->do_call($self, $call_object);
340 }
341 0 ▶ sub ListFunctions {
Subroutine ListFunctions: not called CC=1 SCAR=6.9
Pod documented
342 0 my $self = shift;
343 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListFunctions', @_);
344 0 return $self->caller->do_call($self, $call_object);
345 }
346 0 ▶ sub ListInvalidations {
Subroutine ListInvalidations: not called CC=1 SCAR=6.9
Pod documented
347 0 my $self = shift;
348 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListInvalidations', @_);
349 0 return $self->caller->do_call($self, $call_object);
350 }
351 0 ▶ sub ListKeyGroups {
Subroutine ListKeyGroups: not called CC=1 SCAR=6.9
Pod documented
352 0 my $self = shift;
353 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListKeyGroups', @_);
354 0 return $self->caller->do_call($self, $call_object);
355 }
356 0 ▶ sub ListOriginRequestPolicies {
Subroutine ListOriginRequestPolicies: not called CC=1 SCAR=6.9
Pod documented
357 0 my $self = shift;
358 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListOriginRequestPolicies', @_);
359 0 return $self->caller->do_call($self, $call_object);
360 }
361 0 ▶ sub ListPublicKeys {
Subroutine ListPublicKeys: not called CC=1 SCAR=6.9
Pod documented
362 0 my $self = shift;
363 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListPublicKeys', @_);
364 0 return $self->caller->do_call($self, $call_object);
365 }
366 0 ▶ sub ListRealtimeLogConfigs {
Subroutine ListRealtimeLogConfigs: not called CC=1 SCAR=6.9
Pod documented
367 0 my $self = shift;
368 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListRealtimeLogConfigs', @_);
369 0 return $self->caller->do_call($self, $call_object);
370 }
371 0 ▶ sub ListStreamingDistributions {
Subroutine ListStreamingDistributions: not called CC=1 SCAR=6.9
Pod documented
372 0 my $self = shift;
373 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListStreamingDistributions', @_);
374 0 return $self->caller->do_call($self, $call_object);
375 }
376 0 ▶ sub ListTagsForResource {
Subroutine ListTagsForResource: not called CC=1 SCAR=6.9
Pod documented
377 0 my $self = shift;
378 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::ListTagsForResource', @_);
379 0 return $self->caller->do_call($self, $call_object);
380 }
381 0 ▶ sub PublishFunction {
Subroutine PublishFunction: not called CC=1 SCAR=6.9
Pod documented
382 0 my $self = shift;
383 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::PublishFunction', @_);
384 0 return $self->caller->do_call($self, $call_object);
385 }
386 0 ▶ sub TagResource {
Subroutine TagResource: not called CC=1 SCAR=6.9
Pod documented
387 0 my $self = shift;
388 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::TagResource', @_);
389 0 return $self->caller->do_call($self, $call_object);
390 }
391 0 ▶ sub TestFunction {
Subroutine TestFunction: not called CC=1 SCAR=6.9
Pod documented
392 0 my $self = shift;
393 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::TestFunction', @_);
394 0 return $self->caller->do_call($self, $call_object);
395 }
396 0 ▶ sub UntagResource {
Subroutine UntagResource: not called CC=1 SCAR=6.9
Pod documented
397 0 my $self = shift;
398 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UntagResource', @_);
399 0 return $self->caller->do_call($self, $call_object);
400 }
401 0 ▶ sub UpdateCachePolicy {
Subroutine UpdateCachePolicy: not called CC=1 SCAR=6.9
Pod documented
402 0 my $self = shift;
403 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateCachePolicy', @_);
404 0 return $self->caller->do_call($self, $call_object);
405 }
406 0 ▶ sub UpdateCloudFrontOriginAccessIdentity {
Subroutine UpdateCloudFrontOriginAccessIdentity: not called CC=1 SCAR=6.9
Pod documented
407 0 my $self = shift;
408 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateCloudFrontOriginAccessIdentity', @_);
409 0 return $self->caller->do_call($self, $call_object);
410 }
411 0 ▶ sub UpdateDistribution {
Subroutine UpdateDistribution: not called CC=1 SCAR=6.9
Pod documented
412 0 my $self = shift;
413 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateDistribution', @_);
414 0 return $self->caller->do_call($self, $call_object);
415 }
416 0 ▶ sub UpdateFieldLevelEncryptionConfig {
Subroutine UpdateFieldLevelEncryptionConfig: not called CC=1 SCAR=6.9
Pod documented
417 0 my $self = shift;
418 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateFieldLevelEncryptionConfig', @_);
419 0 return $self->caller->do_call($self, $call_object);
420 }
421 0 ▶ sub UpdateFieldLevelEncryptionProfile {
Subroutine UpdateFieldLevelEncryptionProfile: not called CC=1 SCAR=6.9
Pod documented
422 0 my $self = shift;
423 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateFieldLevelEncryptionProfile', @_);
424 0 return $self->caller->do_call($self, $call_object);
425 }
426 0 ▶ sub UpdateFunction {
Subroutine UpdateFunction: not called CC=1 SCAR=6.9
Pod documented
427 0 my $self = shift;
428 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateFunction', @_);
429 0 return $self->caller->do_call($self, $call_object);
430 }
431 0 ▶ sub UpdateKeyGroup {
Subroutine UpdateKeyGroup: not called CC=1 SCAR=6.9
Pod documented
432 0 my $self = shift;
433 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateKeyGroup', @_);
434 0 return $self->caller->do_call($self, $call_object);
435 }
436 0 ▶ sub UpdateOriginRequestPolicy {
Subroutine UpdateOriginRequestPolicy: not called CC=1 SCAR=6.9
Pod documented
437 0 my $self = shift;
438 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateOriginRequestPolicy', @_);
439 0 return $self->caller->do_call($self, $call_object);
440 }
441 0 ▶ sub UpdatePublicKey {
Subroutine UpdatePublicKey: not called CC=1 SCAR=6.9
Pod documented
442 0 my $self = shift;
443 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdatePublicKey', @_);
444 0 return $self->caller->do_call($self, $call_object);
445 }
446 0 ▶ sub UpdateRealtimeLogConfig {
Subroutine UpdateRealtimeLogConfig: not called CC=1 SCAR=6.9
Pod documented
447 0 my $self = shift;
448 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateRealtimeLogConfig', @_);
449 0 return $self->caller->do_call($self, $call_object);
450 }
451 0 ▶ sub UpdateStreamingDistribution {
Subroutine UpdateStreamingDistribution: not called CC=1 SCAR=6.9
Pod documented
452 0 my $self = shift;
453 0 my $call_object = $self->new_with_coercions('Paws::CloudFront::UpdateStreamingDistribution', @_);
454 0 return $self->caller->do_call($self, $call_object);
455 }
456
457 0 ▶ sub ListAllCloudFrontOriginAccessIdentities {
Subroutine ListAllCloudFrontOriginAccessIdentities: not called CC=7 SCAR=40.3
Pod documented
458 0 my $self = shift;
459  
460 0 ▶ my $callback = shift @_ if (ref($_[0]) eq 'CODE');
Branch: 1 branch
BranchTrueFalseTotal
if ref $_[0] eq "CODE" 0 0 0
461 0 my $result = $self->ListCloudFrontOriginAccessIdentities(@_);
462 0 my $next_result = $result;
463  
464 0 ▶ if (not defined $callback) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $callback) { } 0 0 0
465 0 ▶ while ($next_result->CloudFrontOriginAccessIdentityList->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($next_result->CloudFrontOriginAccessIdentityList->IsTruncated) 0 0 0
466 0 $next_result = $self->ListCloudFrontOriginAccessIdentities(@_, Marker => $next_result->CloudFrontOriginAccessIdentityList->NextMarker);
467 0 push @{ $result->CloudFrontOriginAccessIdentityList->Items }, @{ $next_result->CloudFrontOriginAccessIdentityList->Items };
468 }
469 0 return $result;
470 } else {
471 0 ▶ while ($result->CloudFrontOriginAccessIdentityList->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($result->CloudFrontOriginAccessIdentityList->IsTruncated) 0 0 0
472 0 $callback->($_ => 'CloudFrontOriginAccessIdentityList.Items') foreach (@{ $result->CloudFrontOriginAccessIdentityList->Items });
473 0 $result = $self->ListCloudFrontOriginAccessIdentities(@_, Marker => $result->CloudFrontOriginAccessIdentityList->NextMarker);
474 }
475 0 $callback->($_ => 'CloudFrontOriginAccessIdentityList.Items') foreach (@{ $result->CloudFrontOriginAccessIdentityList->Items });
476 }
477  
478 return undef
479 0 }
480 0 ▶ sub ListAllDistributions {
Subroutine ListAllDistributions: not called CC=7 SCAR=40.3
Pod documented
481 0 my $self = shift;
482  
483 0 ▶ my $callback = shift @_ if (ref($_[0]) eq 'CODE');
Branch: 1 branch
BranchTrueFalseTotal
if ref $_[0] eq "CODE" 0 0 0
484 0 my $result = $self->ListDistributions(@_);
485 0 my $next_result = $result;
486  
487 0 ▶ if (not defined $callback) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $callback) { } 0 0 0
488 0 ▶ while ($next_result->DistributionList->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($next_result->DistributionList->IsTruncated) 0 0 0
489 0 $next_result = $self->ListDistributions(@_, Marker => $next_result->DistributionList->NextMarker);
490 0 push @{ $result->DistributionList->Items }, @{ $next_result->DistributionList->Items };
491 }
492 0 return $result;
493 } else {
494 0 ▶ while ($result->DistributionList->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($result->DistributionList->IsTruncated) 0 0 0
495 0 $callback->($_ => 'DistributionList.Items') foreach (@{ $result->DistributionList->Items });
496 0 $result = $self->ListDistributions(@_, Marker => $result->DistributionList->NextMarker);
497 }
498 0 $callback->($_ => 'DistributionList.Items') foreach (@{ $result->DistributionList->Items });
499 }
500  
501 return undef
502 0 }
503 0 ▶ sub ListAllInvalidations {
Subroutine ListAllInvalidations: not called CC=7 SCAR=40.3
Pod documented
504 0 my $self = shift;
505  
506 0 ▶ my $callback = shift @_ if (ref($_[0]) eq 'CODE');
Branch: 1 branch
BranchTrueFalseTotal
if ref $_[0] eq "CODE" 0 0 0
507 0 my $result = $self->ListInvalidations(@_);
508 0 my $next_result = $result;
509  
510 0 ▶ if (not defined $callback) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $callback) { } 0 0 0
511 0 ▶ while ($next_result->InvalidationList->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($next_result->InvalidationList->IsTruncated) 0 0 0
512 0 $next_result = $self->ListInvalidations(@_, Marker => $next_result->InvalidationList->NextMarker);
513 0 push @{ $result->InvalidationList->Items }, @{ $next_result->InvalidationList->Items };
514 }
515 0 return $result;
516 } else {
517 0 ▶ while ($result->InvalidationList->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($result->InvalidationList->IsTruncated) 0 0 0
518 0 $callback->($_ => 'InvalidationList.Items') foreach (@{ $result->InvalidationList->Items });
519 0 $result = $self->ListInvalidations(@_, Marker => $result->InvalidationList->NextMarker);
520 }
521 0 $callback->($_ => 'InvalidationList.Items') foreach (@{ $result->InvalidationList->Items });
522 }
523  
524 return undef
525 0 }
526 0 ▶ sub ListAllStreamingDistributions {
Subroutine ListAllStreamingDistributions: not called CC=7 SCAR=40.3
Pod documented
527 0 my $self = shift;
528  
529 0 ▶ my $callback = shift @_ if (ref($_[0]) eq 'CODE');
Branch: 1 branch
BranchTrueFalseTotal
if ref $_[0] eq "CODE" 0 0 0
530 0 my $result = $self->ListStreamingDistributions(@_);
531 0 my $next_result = $result;
532  
533 0 ▶ if (not defined $callback) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $callback) { } 0 0 0
534 0 ▶ while ($next_result->StreamingDistributionList->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($next_result->StreamingDistributionList->IsTruncated) 0 0 0
535 0 $next_result = $self->ListStreamingDistributions(@_, Marker => $next_result->StreamingDistributionList->NextMarker);
536 0 push @{ $result->StreamingDistributionList->Items }, @{ $next_result->StreamingDistributionList->Items };
537 }
538 0 return $result;
539 } else {
540 0 ▶ while ($result->StreamingDistributionList->IsTruncated) {
Branch: 1 branch
BranchTrueFalseTotal
if ($result->StreamingDistributionList->IsTruncated) 0 0 0
541 0 $callback->($_ => 'StreamingDistributionList.Items') foreach (@{ $result->StreamingDistributionList->Items });
542 0 $result = $self->ListStreamingDistributions(@_, Marker => $result->StreamingDistributionList->NextMarker);
543 }
544 0 $callback->($_ => 'StreamingDistributionList.Items') foreach (@{ $result->StreamingDistributionList->Items });
545 }
546  
547 return undef
548 0 }
549  
550  
551 0 ▶ sub operations { qw/CreateCachePolicy CreateCloudFrontOriginAccessIdentity CreateDistribution CreateDistributionWithTags CreateFieldLevelEncryptionConfig CreateFieldLevelEncryptionProfile CreateFunction CreateInvalidation CreateKeyGroup CreateMonitoringSubscription CreateOriginRequestPolicy CreatePublicKey CreateRealtimeLogConfig CreateStreamingDistribution CreateStreamingDistributionWithTags DeleteCachePolicy DeleteCloudFrontOriginAccessIdentity DeleteDistribution DeleteFieldLevelEncryptionConfig DeleteFieldLevelEncryptionProfile DeleteFunction DeleteKeyGroup DeleteMonitoringSubscription DeleteOriginRequestPolicy DeletePublicKey DeleteRealtimeLogConfig DeleteStreamingDistribution DescribeFunction GetCachePolicy GetCachePolicyConfig GetCloudFrontOriginAccessIdentity GetCloudFrontOriginAccessIdentityConfig GetDistribution GetDistributionConfig GetFieldLevelEncryption GetFieldLevelEncryptionConfig GetFieldLevelEncryptionProfile GetFieldLevelEncryptionProfileConfig GetFunction GetInvalidation GetKeyGroup GetKeyGroupConfig GetMonitoringSubscription GetOriginRequestPolicy GetOriginRequestPolicyConfig GetPublicKey GetPublicKeyConfig GetRealtimeLogConfig GetStreamingDistribution GetStreamingDistributionConfig ListCachePolicies ListCloudFrontOriginAccessIdentities ListDistributions ListDistributionsByCachePolicyId ListDistributionsByKeyGroup ListDistributionsByOriginRequestPolicyId ListDistributionsByRealtimeLogConfig ListDistributionsByWebACLId ListFieldLevelEncryptionConfigs ListFieldLevelEncryptionProfiles ListFunctions ListInvalidations ListKeyGroups ListOriginRequestPolicies ListPublicKeys ListRealtimeLogConfigs ListStreamingDistributions ListTagsForResource PublishFunction TagResource TestFunction UntagResource UpdateCachePolicy UpdateCloudFrontOriginAccessIdentity UpdateDistribution UpdateFieldLevelEncryptionConfig UpdateFieldLevelEncryptionProfile UpdateFunction UpdateKeyGroup UpdateOriginRequestPolicy UpdatePublicKey UpdateRealtimeLogConfig UpdateStreamingDistribution / }
Subroutine operations: not called CC=1 SCAR=6.9
Pod undocumented
552  
553 3 1;
554  
555 ### main pod documentation begin ###
556  
557 =head1 NAME
558  
559 Paws::CloudFront - Perl Interface to AWS Amazon CloudFront
560  
561 =head1 SYNOPSIS
562  
563 use Paws;
564  
565 my $obj = Paws->service('CloudFront');
566 my $res = $obj->Method(
567 Arg1 => $val1,
568 Arg2 => [ 'V1', 'V2' ],
569 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
570 # of the arguments type
571 Arg3 => { Att1 => 'Val1' },
572 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
573 # the constructor of the arguments type
574 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
575 );
576  
577 =head1 DESCRIPTION
578  
579 Amazon CloudFront
580  
581 This is the I<Amazon CloudFront API Reference>. This guide is for
582 developers who need detailed information about CloudFront API actions,
583 data types, and errors. For detailed information about CloudFront
584 features, see the I<Amazon CloudFront Developer Guide>.
585  
586 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31>
587  
588  
589 =head1 METHODS
590  
591 =head2 CreateCachePolicy
592  
593 =over
594  
595 =item CachePolicyConfig => L<Paws::CloudFront::CachePolicyConfig>
596  
597  
598 =back
599  
600 Each argument is described in detail in: L<Paws::CloudFront::CreateCachePolicy>
601  
602 Returns: a L<Paws::CloudFront::CreateCachePolicyResult> instance
603  
604 Creates a cache policy.
605  
606 After you create a cache policy, you can attach it to one or more cache
607 behaviors. When itE<rsquo>s attached to a cache behavior, the cache
608 policy determines the following:
609  
610 =over
611  
612 =item *
613  
614 The values that CloudFront includes in the I<cache key>. These values
615 can include HTTP headers, cookies, and URL query strings. CloudFront
616 uses the cache key to find an object in its cache that it can return to
617 the viewer.
618  
619 =item *
620  
621 The default, minimum, and maximum time to live (TTL) values that you
622 want objects to stay in the CloudFront cache.
623  
624 =back
625  
626 The headers, cookies, and query strings that are included in the cache
627 key are automatically included in requests that CloudFront sends to the
628 origin. CloudFront sends a request when it canE<rsquo>t find an object
629 in its cache that matches the requestE<rsquo>s cache key. If you want
630 to send values to the origin but I<not> include them in the cache key,
631 use C<OriginRequestPolicy>.
632  
633 For more information about cache policies, see Controlling the cache
634 key
635 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html)
636 in the I<Amazon CloudFront Developer Guide>.
637  
638  
639 =head2 CreateCloudFrontOriginAccessIdentity
640  
641 =over
642  
643 =item CloudFrontOriginAccessIdentityConfig => L<Paws::CloudFront::CloudFrontOriginAccessIdentityConfig>
644  
645  
646 =back
647  
648 Each argument is described in detail in: L<Paws::CloudFront::CreateCloudFrontOriginAccessIdentity>
649  
650 Returns: a L<Paws::CloudFront::CreateCloudFrontOriginAccessIdentityResult> instance
651  
652 Creates a new origin access identity. If you're using Amazon S3 for
653 your origin, you can use an origin access identity to require users to
654 access your content using a CloudFront URL instead of the Amazon S3
655 URL. For more information about how to use origin access identities,
656 see Serving Private Content through CloudFront
657 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
658 in the I<Amazon CloudFront Developer Guide>.
659  
660  
661 =head2 CreateDistribution
662  
663 =over
664  
665 =item DistributionConfig => L<Paws::CloudFront::DistributionConfig>
666  
667  
668 =back
669  
670 Each argument is described in detail in: L<Paws::CloudFront::CreateDistribution>
671  
672 Returns: a L<Paws::CloudFront::CreateDistributionResult> instance
673  
674 Creates a new web distribution. You create a CloudFront distribution to
675 tell CloudFront where you want content to be delivered from, and the
676 details about how to track and manage content delivery. Send a C<POST>
677 request to the C</I<CloudFront API
678 version>/distribution>/C<distribution ID> resource.
679  
680 When you update a distribution, there are more required fields than
681 when you create a distribution. When you update your distribution by
682 using UpdateDistribution
683 (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html),
684 follow the steps included in the documentation to get the current
685 configuration and then make your updates. This helps to make sure that
686 you include all of the required fields. To view a summary, see Required
687 Fields for Create Distribution and Update Distribution
688 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html)
689 in the I<Amazon CloudFront Developer Guide>.
690  
691  
692 =head2 CreateDistributionWithTags
693  
694 =over
695  
696 =item DistributionConfigWithTags => L<Paws::CloudFront::DistributionConfigWithTags>
697  
698  
699 =back
700  
701 Each argument is described in detail in: L<Paws::CloudFront::CreateDistributionWithTags>
702  
703 Returns: a L<Paws::CloudFront::CreateDistributionWithTagsResult> instance
704  
705 Create a new distribution with tags.
706  
707  
708 =head2 CreateFieldLevelEncryptionConfig
709  
710 =over
711  
712 =item FieldLevelEncryptionConfig => L<Paws::CloudFront::FieldLevelEncryptionConfig>
713  
714  
715 =back
716  
717 Each argument is described in detail in: L<Paws::CloudFront::CreateFieldLevelEncryptionConfig>
718  
719 Returns: a L<Paws::CloudFront::CreateFieldLevelEncryptionConfigResult> instance
720  
721 Create a new field-level encryption configuration.
722  
723  
724 =head2 CreateFieldLevelEncryptionProfile
725  
726 =over
727  
728 =item FieldLevelEncryptionProfileConfig => L<Paws::CloudFront::FieldLevelEncryptionProfileConfig>
729  
730  
731 =back
732  
733 Each argument is described in detail in: L<Paws::CloudFront::CreateFieldLevelEncryptionProfile>
734  
735 Returns: a L<Paws::CloudFront::CreateFieldLevelEncryptionProfileResult> instance
736  
737 Create a field-level encryption profile.
738  
739  
740 =head2 CreateFunction
741  
742 =over
743  
744 =item FunctionCode => Str
745  
746 =item FunctionConfig => L<Paws::CloudFront::FunctionConfig>
747  
748 =item Name => Str
749  
750  
751 =back
752  
753 Each argument is described in detail in: L<Paws::CloudFront::CreateFunction>
754  
755 Returns: a L<Paws::CloudFront::CreateFunctionResult> instance
756  
757 Creates a CloudFront function.
758  
759 To create a function, you provide the function code and some
760 configuration information about the function. The response contains an
761 Amazon Resource Name (ARN) that uniquely identifies the function.
762  
763 When you create a function, itE<rsquo>s in the C<DEVELOPMENT> stage. In
764 this stage, you can test the function with C<TestFunction>, and update
765 it with C<UpdateFunction>.
766  
767 When youE<rsquo>re ready to use your function with a CloudFront
768 distribution, use C<PublishFunction> to copy the function from the
769 C<DEVELOPMENT> stage to C<LIVE>. When itE<rsquo>s live, you can attach
770 the function to a distributionE<rsquo>s cache behavior, using the
771 functionE<rsquo>s ARN.
772  
773  
774 =head2 CreateInvalidation
775  
776 =over
777  
778 =item DistributionId => Str
779  
780 =item InvalidationBatch => L<Paws::CloudFront::InvalidationBatch>
781  
782  
783 =back
784  
785 Each argument is described in detail in: L<Paws::CloudFront::CreateInvalidation>
786  
787 Returns: a L<Paws::CloudFront::CreateInvalidationResult> instance
788  
789 Create a new invalidation.
790  
791  
792 =head2 CreateKeyGroup
793  
794 =over
795  
796 =item KeyGroupConfig => L<Paws::CloudFront::KeyGroupConfig>
797  
798  
799 =back
800  
801 Each argument is described in detail in: L<Paws::CloudFront::CreateKeyGroup>
802  
803 Returns: a L<Paws::CloudFront::CreateKeyGroupResult> instance
804  
805 Creates a key group that you can use with CloudFront signed URLs and
806 signed cookies
807 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).
808  
809 To create a key group, you must specify at least one public key for the
810 key group. After you create a key group, you can reference it from one
811 or more cache behaviors. When you reference a key group in a cache
812 behavior, CloudFront requires signed URLs or signed cookies for all
813 requests that match the cache behavior. The URLs or cookies must be
814 signed with a private key whose corresponding public key is in the key
815 group. The signed URL or cookie contains information about which public
816 key CloudFront should use to verify the signature. For more
817 information, see Serving private content
818 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html)
819 in the I<Amazon CloudFront Developer Guide>.
820  
821  
822 =head2 CreateMonitoringSubscription
823  
824 =over
825  
826 =item DistributionId => Str
827  
828 =item MonitoringSubscription => L<Paws::CloudFront::MonitoringSubscription>
829  
830  
831 =back
832  
833 Each argument is described in detail in: L<Paws::CloudFront::CreateMonitoringSubscription>
834  
835 Returns: a L<Paws::CloudFront::CreateMonitoringSubscriptionResult> instance
836  
837 Enables additional CloudWatch metrics for the specified CloudFront
838 distribution. The additional metrics incur an additional cost.
839  
840 For more information, see Viewing additional CloudFront distribution
841 metrics
842 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional)
843 in the I<Amazon CloudFront Developer Guide>.
844  
845  
846 =head2 CreateOriginRequestPolicy
847  
848 =over
849  
850 =item OriginRequestPolicyConfig => L<Paws::CloudFront::OriginRequestPolicyConfig>
851  
852  
853 =back
854  
855 Each argument is described in detail in: L<Paws::CloudFront::CreateOriginRequestPolicy>
856  
857 Returns: a L<Paws::CloudFront::CreateOriginRequestPolicyResult> instance
858  
859 Creates an origin request policy.
860  
861 After you create an origin request policy, you can attach it to one or
862 more cache behaviors. When itE<rsquo>s attached to a cache behavior,
863 the origin request policy determines the values that CloudFront
864 includes in requests that it sends to the origin. Each request that
865 CloudFront sends to the origin includes the following:
866  
867 =over
868  
869 =item *
870  
871 The request body and the URL path (without the domain name) from the
872 viewer request.
873  
874 =item *
875  
876 The headers that CloudFront automatically includes in every origin
877 request, including C<Host>, C<User-Agent>, and C<X-Amz-Cf-Id>.
878  
879 =item *
880  
881 All HTTP headers, cookies, and URL query strings that are specified in
882 the cache policy or the origin request policy. These can include items
883 from the viewer request and, in the case of headers, additional ones
884 that are added by CloudFront.
885  
886 =back
887  
888 CloudFront sends a request when it canE<rsquo>t find a valid object in
889 its cache that matches the request. If you want to send values to the
890 origin and also include them in the cache key, use C<CachePolicy>.
891  
892 For more information about origin request policies, see Controlling
893 origin requests
894 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html)
895 in the I<Amazon CloudFront Developer Guide>.
896  
897  
898 =head2 CreatePublicKey
899  
900 =over
901  
902 =item PublicKeyConfig => L<Paws::CloudFront::PublicKeyConfig>
903  
904  
905 =back
906  
907 Each argument is described in detail in: L<Paws::CloudFront::CreatePublicKey>
908  
909 Returns: a L<Paws::CloudFront::CreatePublicKeyResult> instance
910  
911 Uploads a public key to CloudFront that you can use with signed URLs
912 and signed cookies
913 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html),
914 or with field-level encryption
915 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html).
916  
917  
918 =head2 CreateRealtimeLogConfig
919  
920 =over
921  
922 =item EndPoints => ArrayRef[L<Paws::CloudFront::EndPoint>]
923  
924 =item Fields => ArrayRef[Str|Undef]
925  
926 =item Name => Str
927  
928 =item SamplingRate => Int
929  
930  
931 =back
932  
933 Each argument is described in detail in: L<Paws::CloudFront::CreateRealtimeLogConfig>
934  
935 Returns: a L<Paws::CloudFront::CreateRealtimeLogConfigResult> instance
936  
937 Creates a real-time log configuration.
938  
939 After you create a real-time log configuration, you can attach it to
940 one or more cache behaviors to send real-time log data to the specified
941 Amazon Kinesis data stream.
942  
943 For more information about real-time log configurations, see Real-time
944 logs
945 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html)
946 in the I<Amazon CloudFront Developer Guide>.
947  
948  
949 =head2 CreateStreamingDistribution
950  
951 =over
952  
953 =item StreamingDistributionConfig => L<Paws::CloudFront::StreamingDistributionConfig>
954  
955  
956 =back
957  
958 Each argument is described in detail in: L<Paws::CloudFront::CreateStreamingDistribution>
959  
960 Returns: a L<Paws::CloudFront::CreateStreamingDistributionResult> instance
961  
962 This API is deprecated. Amazon CloudFront is deprecating real-time
963 messaging protocol (RTMP) distributions on December 31, 2020. For more
964 information, read the announcement
965 (http://forums.aws.amazon.com/ann.jspa?annID=7356) on the Amazon
966 CloudFront discussion forum.
967  
968  
969 =head2 CreateStreamingDistributionWithTags
970  
971 =over
972  
973 =item StreamingDistributionConfigWithTags => L<Paws::CloudFront::StreamingDistributionConfigWithTags>
974  
975  
976 =back
977  
978 Each argument is described in detail in: L<Paws::CloudFront::CreateStreamingDistributionWithTags>
979  
980 Returns: a L<Paws::CloudFront::CreateStreamingDistributionWithTagsResult> instance
981  
982 This API is deprecated. Amazon CloudFront is deprecating real-time
983 messaging protocol (RTMP) distributions on December 31, 2020. For more
984 information, read the announcement
985 (http://forums.aws.amazon.com/ann.jspa?annID=7356) on the Amazon
986 CloudFront discussion forum.
987  
988  
989 =head2 DeleteCachePolicy
990  
991 =over
992  
993 =item Id => Str
994  
995 =item [IfMatch => Str]
996  
997  
998 =back
999  
1000 Each argument is described in detail in: L<Paws::CloudFront::DeleteCachePolicy>
1001  
1002 Returns: nothing
1003  
1004 Deletes a cache policy.
1005  
1006 You cannot delete a cache policy if itE<rsquo>s attached to a cache
1007 behavior. First update your distributions to remove the cache policy
1008 from all cache behaviors, then delete the cache policy.
1009  
1010 To delete a cache policy, you must provide the policyE<rsquo>s
1011 identifier and version. To get these values, you can use
1012 C<ListCachePolicies> or C<GetCachePolicy>.
1013  
1014  
1015 =head2 DeleteCloudFrontOriginAccessIdentity
1016  
1017 =over
1018  
1019 =item Id => Str
1020  
1021 =item [IfMatch => Str]
1022  
1023  
1024 =back
1025  
1026 Each argument is described in detail in: L<Paws::CloudFront::DeleteCloudFrontOriginAccessIdentity>
1027  
1028 Returns: nothing
1029  
1030 Delete an origin access identity.
1031  
1032  
1033 =head2 DeleteDistribution
1034  
1035 =over
1036  
1037 =item Id => Str
1038  
1039 =item [IfMatch => Str]
1040  
1041  
1042 =back
1043  
1044 Each argument is described in detail in: L<Paws::CloudFront::DeleteDistribution>
1045  
1046 Returns: nothing
1047  
1048 Delete a distribution.
1049  
1050  
1051 =head2 DeleteFieldLevelEncryptionConfig
1052  
1053 =over
1054  
1055 =item Id => Str
1056  
1057 =item [IfMatch => Str]
1058  
1059  
1060 =back
1061  
1062 Each argument is described in detail in: L<Paws::CloudFront::DeleteFieldLevelEncryptionConfig>
1063  
1064 Returns: nothing
1065  
1066 Remove a field-level encryption configuration.
1067  
1068  
1069 =head2 DeleteFieldLevelEncryptionProfile
1070  
1071 =over
1072  
1073 =item Id => Str
1074  
1075 =item [IfMatch => Str]
1076  
1077  
1078 =back
1079  
1080 Each argument is described in detail in: L<Paws::CloudFront::DeleteFieldLevelEncryptionProfile>
1081  
1082 Returns: nothing
1083  
1084 Remove a field-level encryption profile.
1085  
1086  
1087 =head2 DeleteFunction
1088  
1089 =over
1090  
1091 =item IfMatch => Str
1092  
1093 =item Name => Str
1094  
1095  
1096 =back
1097  
1098 Each argument is described in detail in: L<Paws::CloudFront::DeleteFunction>
1099  
1100 Returns: nothing
1101  
1102 Deletes a CloudFront function.
1103  
1104 You cannot delete a function if itE<rsquo>s associated with a cache
1105 behavior. First, update your distributions to remove the function
1106 association from all cache behaviors, then delete the function.
1107  
1108 To delete a function, you must provide the functionE<rsquo>s name and
1109 version (C<ETag> value). To get these values, you can use
1110 C<ListFunctions> and C<DescribeFunction>.
1111  
1112  
1113 =head2 DeleteKeyGroup
1114  
1115 =over
1116  
1117 =item Id => Str
1118  
1119 =item [IfMatch => Str]
1120  
1121  
1122 =back
1123  
1124 Each argument is described in detail in: L<Paws::CloudFront::DeleteKeyGroup>
1125  
1126 Returns: nothing
1127  
1128 Deletes a key group.
1129  
1130 You cannot delete a key group that is referenced in a cache behavior.
1131 First update your distributions to remove the key group from all cache
1132 behaviors, then delete the key group.
1133  
1134 To delete a key group, you must provide the key groupE<rsquo>s
1135 identifier and version. To get these values, use C<ListKeyGroups>
1136 followed by C<GetKeyGroup> or C<GetKeyGroupConfig>.
1137  
1138  
1139 =head2 DeleteMonitoringSubscription
1140  
1141 =over
1142  
1143 =item DistributionId => Str
1144  
1145  
1146 =back
1147  
1148 Each argument is described in detail in: L<Paws::CloudFront::DeleteMonitoringSubscription>
1149  
1150 Returns: a L<Paws::CloudFront::DeleteMonitoringSubscriptionResult> instance
1151  
1152 Disables additional CloudWatch metrics for the specified CloudFront
1153 distribution.
1154  
1155  
1156 =head2 DeleteOriginRequestPolicy
1157  
1158 =over
1159  
1160 =item Id => Str
1161  
1162 =item [IfMatch => Str]
1163  
1164  
1165 =back
1166  
1167 Each argument is described in detail in: L<Paws::CloudFront::DeleteOriginRequestPolicy>
1168  
1169 Returns: nothing
1170  
1171 Deletes an origin request policy.
1172  
1173 You cannot delete an origin request policy if itE<rsquo>s attached to
1174 any cache behaviors. First update your distributions to remove the
1175 origin request policy from all cache behaviors, then delete the origin
1176 request policy.
1177  
1178 To delete an origin request policy, you must provide the
1179 policyE<rsquo>s identifier and version. To get the identifier, you can
1180 use C<ListOriginRequestPolicies> or C<GetOriginRequestPolicy>.
1181  
1182  
1183 =head2 DeletePublicKey
1184  
1185 =over
1186  
1187 =item Id => Str
1188  
1189 =item [IfMatch => Str]
1190  
1191  
1192 =back
1193  
1194 Each argument is described in detail in: L<Paws::CloudFront::DeletePublicKey>
1195  
1196 Returns: nothing
1197  
1198 Remove a public key you previously added to CloudFront.
1199  
1200  
1201 =head2 DeleteRealtimeLogConfig
1202  
1203 =over
1204  
1205 =item [ARN => Str]
1206  
1207 =item [Name => Str]
1208  
1209  
1210 =back
1211  
1212 Each argument is described in detail in: L<Paws::CloudFront::DeleteRealtimeLogConfig>
1213  
1214 Returns: nothing
1215  
1216 Deletes a real-time log configuration.
1217  
1218 You cannot delete a real-time log configuration if itE<rsquo>s attached
1219 to a cache behavior. First update your distributions to remove the
1220 real-time log configuration from all cache behaviors, then delete the
1221 real-time log configuration.
1222  
1223 To delete a real-time log configuration, you can provide the
1224 configurationE<rsquo>s name or its Amazon Resource Name (ARN). You must
1225 provide at least one. If you provide both, CloudFront uses the name to
1226 identify the real-time log configuration to delete.
1227  
1228  
1229 =head2 DeleteStreamingDistribution
1230  
1231 =over
1232  
1233 =item Id => Str
1234  
1235 =item [IfMatch => Str]
1236  
1237  
1238 =back
1239  
1240 Each argument is described in detail in: L<Paws::CloudFront::DeleteStreamingDistribution>
1241  
1242 Returns: nothing
1243  
1244 Delete a streaming distribution. To delete an RTMP distribution using
1245 the CloudFront API, perform the following steps.
1246  
1247 B<To delete an RTMP distribution using the CloudFront API>:
1248  
1249 =over
1250  
1251 =item 1.
1252  
1253 Disable the RTMP distribution.
1254  
1255 =item 2.
1256  
1257 Submit a C<GET Streaming Distribution Config> request to get the
1258 current configuration and the C<Etag> header for the distribution.
1259  
1260 =item 3.
1261  
1262 Update the XML document that was returned in the response to your C<GET
1263 Streaming Distribution Config> request to change the value of
1264 C<Enabled> to C<false>.
1265  
1266 =item 4.
1267  
1268 Submit a C<PUT Streaming Distribution Config> request to update the
1269 configuration for your distribution. In the request body, include the
1270 XML document that you updated in Step 3. Then set the value of the HTTP
1271 C<If-Match> header to the value of the C<ETag> header that CloudFront
1272 returned when you submitted the C<GET Streaming Distribution Config>
1273 request in Step 2.
1274  
1275 =item 5.
1276  
1277 Review the response to the C<PUT Streaming Distribution Config> request
1278 to confirm that the distribution was successfully disabled.
1279  
1280 =item 6.
1281  
1282 Submit a C<GET Streaming Distribution Config> request to confirm that
1283 your changes have propagated. When propagation is complete, the value
1284 of C<Status> is C<Deployed>.
1285  
1286 =item 7.
1287  
1288 Submit a C<DELETE Streaming Distribution> request. Set the value of the
1289 HTTP C<If-Match> header to the value of the C<ETag> header that
1290 CloudFront returned when you submitted the C<GET Streaming Distribution
1291 Config> request in Step 2.
1292  
1293 =item 8.
1294  
1295 Review the response to your C<DELETE Streaming Distribution> request to
1296 confirm that the distribution was successfully deleted.
1297  
1298 =back
1299  
1300 For information about deleting a distribution using the CloudFront
1301 console, see Deleting a Distribution
1302 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html)
1303 in the I<Amazon CloudFront Developer Guide>.
1304  
1305  
1306 =head2 DescribeFunction
1307  
1308 =over
1309  
1310 =item Name => Str
1311  
1312 =item [Stage => Str]
1313  
1314  
1315 =back
1316  
1317 Each argument is described in detail in: L<Paws::CloudFront::DescribeFunction>
1318  
1319 Returns: a L<Paws::CloudFront::DescribeFunctionResult> instance
1320  
1321 Gets configuration information and metadata about a CloudFront
1322 function, but not the functionE<rsquo>s code. To get a
1323 functionE<rsquo>s code, use C<GetFunction>.
1324  
1325 To get configuration information and metadata about a function, you
1326 must provide the functionE<rsquo>s name and stage. To get these values,
1327 you can use C<ListFunctions>.
1328  
1329  
1330 =head2 GetCachePolicy
1331  
1332 =over
1333  
1334 =item Id => Str
1335  
1336  
1337 =back
1338  
1339 Each argument is described in detail in: L<Paws::CloudFront::GetCachePolicy>
1340  
1341 Returns: a L<Paws::CloudFront::GetCachePolicyResult> instance
1342  
1343 Gets a cache policy, including the following metadata:
1344  
1345 =over
1346  
1347 =item *
1348  
1349 The policyE<rsquo>s identifier.
1350  
1351 =item *
1352  
1353 The date and time when the policy was last modified.
1354  
1355 =back
1356  
1357 To get a cache policy, you must provide the policyE<rsquo>s identifier.
1358 If the cache policy is attached to a distributionE<rsquo>s cache
1359 behavior, you can get the policyE<rsquo>s identifier using
1360 C<ListDistributions> or C<GetDistribution>. If the cache policy is not
1361 attached to a cache behavior, you can get the identifier using
1362 C<ListCachePolicies>.
1363  
1364  
1365 =head2 GetCachePolicyConfig
1366  
1367 =over
1368  
1369 =item Id => Str
1370  
1371  
1372 =back
1373  
1374 Each argument is described in detail in: L<Paws::CloudFront::GetCachePolicyConfig>
1375  
1376 Returns: a L<Paws::CloudFront::GetCachePolicyConfigResult> instance
1377  
1378 Gets a cache policy configuration.
1379  
1380 To get a cache policy configuration, you must provide the
1381 policyE<rsquo>s identifier. If the cache policy is attached to a
1382 distributionE<rsquo>s cache behavior, you can get the policyE<rsquo>s
1383 identifier using C<ListDistributions> or C<GetDistribution>. If the
1384 cache policy is not attached to a cache behavior, you can get the
1385 identifier using C<ListCachePolicies>.
1386  
1387  
1388 =head2 GetCloudFrontOriginAccessIdentity
1389  
1390 =over
1391  
1392 =item Id => Str
1393  
1394  
1395 =back
1396  
1397 Each argument is described in detail in: L<Paws::CloudFront::GetCloudFrontOriginAccessIdentity>
1398  
1399 Returns: a L<Paws::CloudFront::GetCloudFrontOriginAccessIdentityResult> instance
1400  
1401 Get the information about an origin access identity.
1402  
1403  
1404 =head2 GetCloudFrontOriginAccessIdentityConfig
1405  
1406 =over
1407  
1408 =item Id => Str
1409  
1410  
1411 =back
1412  
1413 Each argument is described in detail in: L<Paws::CloudFront::GetCloudFrontOriginAccessIdentityConfig>
1414  
1415 Returns: a L<Paws::CloudFront::GetCloudFrontOriginAccessIdentityConfigResult> instance
1416  
1417 Get the configuration information about an origin access identity.
1418  
1419  
1420 =head2 GetDistribution
1421  
1422 =over
1423  
1424 =item Id => Str
1425  
1426  
1427 =back
1428  
1429 Each argument is described in detail in: L<Paws::CloudFront::GetDistribution>
1430  
1431 Returns: a L<Paws::CloudFront::GetDistributionResult> instance
1432  
1433 Get the information about a distribution.
1434  
1435  
1436 =head2 GetDistributionConfig
1437  
1438 =over
1439  
1440 =item Id => Str
1441  
1442  
1443 =back
1444  
1445 Each argument is described in detail in: L<Paws::CloudFront::GetDistributionConfig>
1446  
1447 Returns: a L<Paws::CloudFront::GetDistributionConfigResult> instance
1448  
1449 Get the configuration information about a distribution.
1450  
1451  
1452 =head2 GetFieldLevelEncryption
1453  
1454 =over
1455  
1456 =item Id => Str
1457  
1458  
1459 =back
1460  
1461 Each argument is described in detail in: L<Paws::CloudFront::GetFieldLevelEncryption>
1462  
1463 Returns: a L<Paws::CloudFront::GetFieldLevelEncryptionResult> instance
1464  
1465 Get the field-level encryption configuration information.
1466  
1467  
1468 =head2 GetFieldLevelEncryptionConfig
1469  
1470 =over
1471  
1472 =item Id => Str
1473  
1474  
1475 =back
1476  
1477 Each argument is described in detail in: L<Paws::CloudFront::GetFieldLevelEncryptionConfig>
1478  
1479 Returns: a L<Paws::CloudFront::GetFieldLevelEncryptionConfigResult> instance
1480  
1481 Get the field-level encryption configuration information.
1482  
1483  
1484 =head2 GetFieldLevelEncryptionProfile
1485  
1486 =over
1487  
1488 =item Id => Str
1489  
1490  
1491 =back
1492  
1493 Each argument is described in detail in: L<Paws::CloudFront::GetFieldLevelEncryptionProfile>
1494  
1495 Returns: a L<Paws::CloudFront::GetFieldLevelEncryptionProfileResult> instance
1496  
1497 Get the field-level encryption profile information.
1498  
1499  
1500 =head2 GetFieldLevelEncryptionProfileConfig
1501  
1502 =over
1503  
1504 =item Id => Str
1505  
1506  
1507 =back
1508  
1509 Each argument is described in detail in: L<Paws::CloudFront::GetFieldLevelEncryptionProfileConfig>
1510  
1511 Returns: a L<Paws::CloudFront::GetFieldLevelEncryptionProfileConfigResult> instance
1512  
1513 Get the field-level encryption profile configuration information.
1514  
1515  
1516 =head2 GetFunction
1517  
1518 =over
1519  
1520 =item Name => Str
1521  
1522 =item [Stage => Str]
1523  
1524  
1525 =back
1526  
1527 Each argument is described in detail in: L<Paws::CloudFront::GetFunction>
1528  
1529 Returns: a L<Paws::CloudFront::GetFunctionResult> instance
1530  
1531 Gets the code of a CloudFront function. To get configuration
1532 information and metadata about a function, use C<DescribeFunction>.
1533  
1534 To get a functionE<rsquo>s code, you must provide the functionE<rsquo>s
1535 name and stage. To get these values, you can use C<ListFunctions>.
1536  
1537  
1538 =head2 GetInvalidation
1539  
1540 =over
1541  
1542 =item DistributionId => Str
1543  
1544 =item Id => Str
1545  
1546  
1547 =back
1548  
1549 Each argument is described in detail in: L<Paws::CloudFront::GetInvalidation>
1550  
1551 Returns: a L<Paws::CloudFront::GetInvalidationResult> instance
1552  
1553 Get the information about an invalidation.
1554  
1555  
1556 =head2 GetKeyGroup
1557  
1558 =over
1559  
1560 =item Id => Str
1561  
1562  
1563 =back
1564  
1565 Each argument is described in detail in: L<Paws::CloudFront::GetKeyGroup>
1566  
1567 Returns: a L<Paws::CloudFront::GetKeyGroupResult> instance
1568  
1569 Gets a key group, including the date and time when the key group was
1570 last modified.
1571  
1572 To get a key group, you must provide the key groupE<rsquo>s identifier.
1573 If the key group is referenced in a distributionE<rsquo>s cache
1574 behavior, you can get the key groupE<rsquo>s identifier using
1575 C<ListDistributions> or C<GetDistribution>. If the key group is not
1576 referenced in a cache behavior, you can get the identifier using
1577 C<ListKeyGroups>.
1578  
1579  
1580 =head2 GetKeyGroupConfig
1581  
1582 =over
1583  
1584 =item Id => Str
1585  
1586  
1587 =back
1588  
1589 Each argument is described in detail in: L<Paws::CloudFront::GetKeyGroupConfig>
1590  
1591 Returns: a L<Paws::CloudFront::GetKeyGroupConfigResult> instance
1592  
1593 Gets a key group configuration.
1594  
1595 To get a key group configuration, you must provide the key
1596 groupE<rsquo>s identifier. If the key group is referenced in a
1597 distributionE<rsquo>s cache behavior, you can get the key
1598 groupE<rsquo>s identifier using C<ListDistributions> or
1599 C<GetDistribution>. If the key group is not referenced in a cache
1600 behavior, you can get the identifier using C<ListKeyGroups>.
1601  
1602  
1603 =head2 GetMonitoringSubscription
1604  
1605 =over
1606  
1607 =item DistributionId => Str
1608  
1609  
1610 =back
1611  
1612 Each argument is described in detail in: L<Paws::CloudFront::GetMonitoringSubscription>
1613  
1614 Returns: a L<Paws::CloudFront::GetMonitoringSubscriptionResult> instance
1615  
1616 Gets information about whether additional CloudWatch metrics are
1617 enabled for the specified CloudFront distribution.
1618  
1619  
1620 =head2 GetOriginRequestPolicy
1621  
1622 =over
1623  
1624 =item Id => Str
1625  
1626  
1627 =back
1628  
1629 Each argument is described in detail in: L<Paws::CloudFront::GetOriginRequestPolicy>
1630  
1631 Returns: a L<Paws::CloudFront::GetOriginRequestPolicyResult> instance
1632  
1633 Gets an origin request policy, including the following metadata:
1634  
1635 =over
1636  
1637 =item *
1638  
1639 The policyE<rsquo>s identifier.
1640  
1641 =item *
1642  
1643 The date and time when the policy was last modified.
1644  
1645 =back
1646  
1647 To get an origin request policy, you must provide the policyE<rsquo>s
1648 identifier. If the origin request policy is attached to a
1649 distributionE<rsquo>s cache behavior, you can get the policyE<rsquo>s
1650 identifier using C<ListDistributions> or C<GetDistribution>. If the
1651 origin request policy is not attached to a cache behavior, you can get
1652 the identifier using C<ListOriginRequestPolicies>.
1653  
1654  
1655 =head2 GetOriginRequestPolicyConfig
1656  
1657 =over
1658  
1659 =item Id => Str
1660  
1661  
1662 =back
1663  
1664 Each argument is described in detail in: L<Paws::CloudFront::GetOriginRequestPolicyConfig>
1665  
1666 Returns: a L<Paws::CloudFront::GetOriginRequestPolicyConfigResult> instance
1667  
1668 Gets an origin request policy configuration.
1669  
1670 To get an origin request policy configuration, you must provide the
1671 policyE<rsquo>s identifier. If the origin request policy is attached to
1672 a distributionE<rsquo>s cache behavior, you can get the policyE<rsquo>s
1673 identifier using C<ListDistributions> or C<GetDistribution>. If the
1674 origin request policy is not attached to a cache behavior, you can get
1675 the identifier using C<ListOriginRequestPolicies>.
1676  
1677  
1678 =head2 GetPublicKey
1679  
1680 =over
1681  
1682 =item Id => Str
1683  
1684  
1685 =back
1686  
1687 Each argument is described in detail in: L<Paws::CloudFront::GetPublicKey>
1688  
1689 Returns: a L<Paws::CloudFront::GetPublicKeyResult> instance
1690  
1691 Gets a public key.
1692  
1693  
1694 =head2 GetPublicKeyConfig
1695  
1696 =over
1697  
1698 =item Id => Str
1699  
1700  
1701 =back
1702  
1703 Each argument is described in detail in: L<Paws::CloudFront::GetPublicKeyConfig>
1704  
1705 Returns: a L<Paws::CloudFront::GetPublicKeyConfigResult> instance
1706  
1707 Gets a public key configuration.
1708  
1709  
1710 =head2 GetRealtimeLogConfig
1711  
1712 =over
1713  
1714 =item [ARN => Str]
1715  
1716 =item [Name => Str]
1717  
1718  
1719 =back
1720  
1721 Each argument is described in detail in: L<Paws::CloudFront::GetRealtimeLogConfig>
1722  
1723 Returns: a L<Paws::CloudFront::GetRealtimeLogConfigResult> instance
1724  
1725 Gets a real-time log configuration.
1726  
1727 To get a real-time log configuration, you can provide the
1728 configurationE<rsquo>s name or its Amazon Resource Name (ARN). You must
1729 provide at least one. If you provide both, CloudFront uses the name to
1730 identify the real-time log configuration to get.
1731  
1732  
1733 =head2 GetStreamingDistribution
1734  
1735 =over
1736  
1737 =item Id => Str
1738  
1739  
1740 =back
1741  
1742 Each argument is described in detail in: L<Paws::CloudFront::GetStreamingDistribution>
1743  
1744 Returns: a L<Paws::CloudFront::GetStreamingDistributionResult> instance
1745  
1746 Gets information about a specified RTMP distribution, including the
1747 distribution configuration.
1748  
1749  
1750 =head2 GetStreamingDistributionConfig
1751  
1752 =over
1753  
1754 =item Id => Str
1755  
1756  
1757 =back
1758  
1759 Each argument is described in detail in: L<Paws::CloudFront::GetStreamingDistributionConfig>
1760  
1761 Returns: a L<Paws::CloudFront::GetStreamingDistributionConfigResult> instance
1762  
1763 Get the configuration information about a streaming distribution.
1764  
1765  
1766 =head2 ListCachePolicies
1767  
1768 =over
1769  
1770 =item [Marker => Str]
1771  
1772 =item [MaxItems => Str]
1773  
1774 =item [Type => Str]
1775  
1776  
1777 =back
1778  
1779 Each argument is described in detail in: L<Paws::CloudFront::ListCachePolicies>
1780  
1781 Returns: a L<Paws::CloudFront::ListCachePoliciesResult> instance
1782  
1783 Gets a list of cache policies.
1784  
1785 You can optionally apply a filter to return only the managed policies
1786 created by AWS, or only the custom policies created in your AWS
1787 account.
1788  
1789 You can optionally specify the maximum number of items to receive in
1790 the response. If the total number of items in the list exceeds the
1791 maximum that you specify, or the default maximum, the response is
1792 paginated. To get the next page of items, send a subsequent request
1793 that specifies the C<NextMarker> value from the current response as the
1794 C<Marker> value in the subsequent request.
1795  
1796  
1797 =head2 ListCloudFrontOriginAccessIdentities
1798  
1799 =over
1800  
1801 =item [Marker => Str]
1802  
1803 =item [MaxItems => Str]
1804  
1805  
1806 =back
1807  
1808 Each argument is described in detail in: L<Paws::CloudFront::ListCloudFrontOriginAccessIdentities>
1809  
1810 Returns: a L<Paws::CloudFront::ListCloudFrontOriginAccessIdentitiesResult> instance
1811  
1812 Lists origin access identities.
1813  
1814  
1815 =head2 ListDistributions
1816  
1817 =over
1818  
1819 =item [Marker => Str]
1820  
1821 =item [MaxItems => Str]
1822  
1823  
1824 =back
1825  
1826 Each argument is described in detail in: L<Paws::CloudFront::ListDistributions>
1827  
1828 Returns: a L<Paws::CloudFront::ListDistributionsResult> instance
1829  
1830 List CloudFront distributions.
1831  
1832  
1833 =head2 ListDistributionsByCachePolicyId
1834  
1835 =over
1836  
1837 =item CachePolicyId => Str
1838  
1839 =item [Marker => Str]
1840  
1841 =item [MaxItems => Str]
1842  
1843  
1844 =back
1845  
1846 Each argument is described in detail in: L<Paws::CloudFront::ListDistributionsByCachePolicyId>
1847  
1848 Returns: a L<Paws::CloudFront::ListDistributionsByCachePolicyIdResult> instance
1849  
1850 Gets a list of distribution IDs for distributions that have a cache
1851 behavior thatE<rsquo>s associated with the specified cache policy.
1852  
1853 You can optionally specify the maximum number of items to receive in
1854 the response. If the total number of items in the list exceeds the
1855 maximum that you specify, or the default maximum, the response is
1856 paginated. To get the next page of items, send a subsequent request
1857 that specifies the C<NextMarker> value from the current response as the
1858 C<Marker> value in the subsequent request.
1859  
1860  
1861 =head2 ListDistributionsByKeyGroup
1862  
1863 =over
1864  
1865 =item KeyGroupId => Str
1866  
1867 =item [Marker => Str]
1868  
1869 =item [MaxItems => Str]
1870  
1871  
1872 =back
1873  
1874 Each argument is described in detail in: L<Paws::CloudFront::ListDistributionsByKeyGroup>
1875  
1876 Returns: a L<Paws::CloudFront::ListDistributionsByKeyGroupResult> instance
1877  
1878 Gets a list of distribution IDs for distributions that have a cache
1879 behavior that references the specified key group.
1880  
1881 You can optionally specify the maximum number of items to receive in
1882 the response. If the total number of items in the list exceeds the
1883 maximum that you specify, or the default maximum, the response is
1884 paginated. To get the next page of items, send a subsequent request
1885 that specifies the C<NextMarker> value from the current response as the
1886 C<Marker> value in the subsequent request.
1887  
1888  
1889 =head2 ListDistributionsByOriginRequestPolicyId
1890  
1891 =over
1892  
1893 =item OriginRequestPolicyId => Str
1894  
1895 =item [Marker => Str]
1896  
1897 =item [MaxItems => Str]
1898  
1899  
1900 =back
1901  
1902 Each argument is described in detail in: L<Paws::CloudFront::ListDistributionsByOriginRequestPolicyId>
1903  
1904 Returns: a L<Paws::CloudFront::ListDistributionsByOriginRequestPolicyIdResult> instance
1905  
1906 Gets a list of distribution IDs for distributions that have a cache
1907 behavior thatE<rsquo>s associated with the specified origin request
1908 policy.
1909  
1910 You can optionally specify the maximum number of items to receive in
1911 the response. If the total number of items in the list exceeds the
1912 maximum that you specify, or the default maximum, the response is
1913 paginated. To get the next page of items, send a subsequent request
1914 that specifies the C<NextMarker> value from the current response as the
1915 C<Marker> value in the subsequent request.
1916  
1917  
1918 =head2 ListDistributionsByRealtimeLogConfig
1919  
1920 =over
1921  
1922 =item [Marker => Str]
1923  
1924 =item [MaxItems => Str]
1925  
1926 =item [RealtimeLogConfigArn => Str]
1927  
1928 =item [RealtimeLogConfigName => Str]
1929  
1930  
1931 =back
1932  
1933 Each argument is described in detail in: L<Paws::CloudFront::ListDistributionsByRealtimeLogConfig>
1934  
1935 Returns: a L<Paws::CloudFront::ListDistributionsByRealtimeLogConfigResult> instance
1936  
1937 Gets a list of distributions that have a cache behavior thatE<rsquo>s
1938 associated with the specified real-time log configuration.
1939  
1940 You can specify the real-time log configuration by its name or its
1941 Amazon Resource Name (ARN). You must provide at least one. If you
1942 provide both, CloudFront uses the name to identify the real-time log
1943 configuration to list distributions for.
1944  
1945 You can optionally specify the maximum number of items to receive in
1946 the response. If the total number of items in the list exceeds the
1947 maximum that you specify, or the default maximum, the response is
1948 paginated. To get the next page of items, send a subsequent request
1949 that specifies the C<NextMarker> value from the current response as the
1950 C<Marker> value in the subsequent request.
1951  
1952  
1953 =head2 ListDistributionsByWebACLId
1954  
1955 =over
1956  
1957 =item WebACLId => Str
1958  
1959 =item [Marker => Str]
1960  
1961 =item [MaxItems => Str]
1962  
1963  
1964 =back
1965  
1966 Each argument is described in detail in: L<Paws::CloudFront::ListDistributionsByWebACLId>
1967  
1968 Returns: a L<Paws::CloudFront::ListDistributionsByWebACLIdResult> instance
1969  
1970 List the distributions that are associated with a specified AWS WAF web
1971 ACL.
1972  
1973  
1974 =head2 ListFieldLevelEncryptionConfigs
1975  
1976 =over
1977  
1978 =item [Marker => Str]
1979  
1980 =item [MaxItems => Str]
1981  
1982  
1983 =back
1984  
1985 Each argument is described in detail in: L<Paws::CloudFront::ListFieldLevelEncryptionConfigs>
1986  
1987 Returns: a L<Paws::CloudFront::ListFieldLevelEncryptionConfigsResult> instance
1988  
1989 List all field-level encryption configurations that have been created
1990 in CloudFront for this account.
1991  
1992  
1993 =head2 ListFieldLevelEncryptionProfiles
1994  
1995 =over
1996  
1997 =item [Marker => Str]
1998  
1999 =item [MaxItems => Str]
2000  
2001  
2002 =back
2003  
2004 Each argument is described in detail in: L<Paws::CloudFront::ListFieldLevelEncryptionProfiles>
2005  
2006 Returns: a L<Paws::CloudFront::ListFieldLevelEncryptionProfilesResult> instance
2007  
2008 Request a list of field-level encryption profiles that have been
2009 created in CloudFront for this account.
2010  
2011  
2012 =head2 ListFunctions
2013  
2014 =over
2015  
2016 =item [Marker => Str]
2017  
2018 =item [MaxItems => Str]
2019  
2020 =item [Stage => Str]
2021  
2022  
2023 =back
2024  
2025 Each argument is described in detail in: L<Paws::CloudFront::ListFunctions>
2026  
2027 Returns: a L<Paws::CloudFront::ListFunctionsResult> instance
2028  
2029 Gets a list of all CloudFront functions in your AWS account.
2030  
2031 You can optionally apply a filter to return only the functions that are
2032 in the specified stage, either C<DEVELOPMENT> or C<LIVE>.
2033  
2034 You can optionally specify the maximum number of items to receive in
2035 the response. If the total number of items in the list exceeds the
2036 maximum that you specify, or the default maximum, the response is
2037 paginated. To get the next page of items, send a subsequent request
2038 that specifies the C<NextMarker> value from the current response as the
2039 C<Marker> value in the subsequent request.
2040  
2041  
2042 =head2 ListInvalidations
2043  
2044 =over
2045  
2046 =item DistributionId => Str
2047  
2048 =item [Marker => Str]
2049  
2050 =item [MaxItems => Str]
2051  
2052  
2053 =back
2054  
2055 Each argument is described in detail in: L<Paws::CloudFront::ListInvalidations>
2056  
2057 Returns: a L<Paws::CloudFront::ListInvalidationsResult> instance
2058  
2059 Lists invalidation batches.
2060  
2061  
2062 =head2 ListKeyGroups
2063  
2064 =over
2065  
2066 =item [Marker => Str]
2067  
2068 =item [MaxItems => Str]
2069  
2070  
2071 =back
2072  
2073 Each argument is described in detail in: L<Paws::CloudFront::ListKeyGroups>
2074  
2075 Returns: a L<Paws::CloudFront::ListKeyGroupsResult> instance
2076  
2077 Gets a list of key groups.
2078  
2079 You can optionally specify the maximum number of items to receive in
2080 the response. If the total number of items in the list exceeds the
2081 maximum that you specify, or the default maximum, the response is
2082 paginated. To get the next page of items, send a subsequent request
2083 that specifies the C<NextMarker> value from the current response as the
2084 C<Marker> value in the subsequent request.
2085  
2086  
2087 =head2 ListOriginRequestPolicies
2088  
2089 =over
2090  
2091 =item [Marker => Str]
2092  
2093 =item [MaxItems => Str]
2094  
2095 =item [Type => Str]
2096  
2097  
2098 =back
2099  
2100 Each argument is described in detail in: L<Paws::CloudFront::ListOriginRequestPolicies>
2101  
2102 Returns: a L<Paws::CloudFront::ListOriginRequestPoliciesResult> instance
2103  
2104 Gets a list of origin request policies.
2105  
2106 You can optionally apply a filter to return only the managed policies
2107 created by AWS, or only the custom policies created in your AWS
2108 account.
2109  
2110 You can optionally specify the maximum number of items to receive in
2111 the response. If the total number of items in the list exceeds the
2112 maximum that you specify, or the default maximum, the response is
2113 paginated. To get the next page of items, send a subsequent request
2114 that specifies the C<NextMarker> value from the current response as the
2115 C<Marker> value in the subsequent request.
2116  
2117  
2118 =head2 ListPublicKeys
2119  
2120 =over
2121  
2122 =item [Marker => Str]
2123  
2124 =item [MaxItems => Str]
2125  
2126  
2127 =back
2128  
2129 Each argument is described in detail in: L<Paws::CloudFront::ListPublicKeys>
2130  
2131 Returns: a L<Paws::CloudFront::ListPublicKeysResult> instance
2132  
2133 List all public keys that have been added to CloudFront for this
2134 account.
2135  
2136  
2137 =head2 ListRealtimeLogConfigs
2138  
2139 =over
2140  
2141 =item [Marker => Str]
2142  
2143 =item [MaxItems => Str]
2144  
2145  
2146 =back
2147  
2148 Each argument is described in detail in: L<Paws::CloudFront::ListRealtimeLogConfigs>
2149  
2150 Returns: a L<Paws::CloudFront::ListRealtimeLogConfigsResult> instance
2151  
2152 Gets a list of real-time log configurations.
2153  
2154 You can optionally specify the maximum number of items to receive in
2155 the response. If the total number of items in the list exceeds the
2156 maximum that you specify, or the default maximum, the response is
2157 paginated. To get the next page of items, send a subsequent request
2158 that specifies the C<NextMarker> value from the current response as the
2159 C<Marker> value in the subsequent request.
2160  
2161  
2162 =head2 ListStreamingDistributions
2163  
2164 =over
2165  
2166 =item [Marker => Str]
2167  
2168 =item [MaxItems => Str]
2169  
2170  
2171 =back
2172  
2173 Each argument is described in detail in: L<Paws::CloudFront::ListStreamingDistributions>
2174  
2175 Returns: a L<Paws::CloudFront::ListStreamingDistributionsResult> instance
2176  
2177 List streaming distributions.
2178  
2179  
2180 =head2 ListTagsForResource
2181  
2182 =over
2183  
2184 =item Resource => Str
2185  
2186  
2187 =back
2188  
2189 Each argument is described in detail in: L<Paws::CloudFront::ListTagsForResource>
2190  
2191 Returns: a L<Paws::CloudFront::ListTagsForResourceResult> instance
2192  
2193 List tags for a CloudFront resource.
2194  
2195  
2196 =head2 PublishFunction
2197  
2198 =over
2199  
2200 =item IfMatch => Str
2201  
2202 =item Name => Str
2203  
2204  
2205 =back
2206  
2207 Each argument is described in detail in: L<Paws::CloudFront::PublishFunction>
2208  
2209 Returns: a L<Paws::CloudFront::PublishFunctionResult> instance
2210  
2211 Publishes a CloudFront function by copying the function code from the
2212 C<DEVELOPMENT> stage to C<LIVE>. This automatically updates all cache
2213 behaviors that are using this function to use the newly published copy
2214 in the C<LIVE> stage.
2215  
2216 When a function is published to the C<LIVE> stage, you can attach the
2217 function to a distributionE<rsquo>s cache behavior, using the
2218 functionE<rsquo>s Amazon Resource Name (ARN).
2219  
2220 To publish a function, you must provide the functionE<rsquo>s name and
2221 version (C<ETag> value). To get these values, you can use
2222 C<ListFunctions> and C<DescribeFunction>.
2223  
2224  
2225 =head2 TagResource
2226  
2227 =over
2228  
2229 =item Resource => Str
2230  
2231 =item Tags => L<Paws::CloudFront::Tags>
2232  
2233  
2234 =back
2235  
2236 Each argument is described in detail in: L<Paws::CloudFront::TagResource>
2237  
2238 Returns: nothing
2239  
2240 Add tags to a CloudFront resource.
2241  
2242  
2243 =head2 TestFunction
2244  
2245 =over
2246  
2247 =item EventObject => Str
2248  
2249 =item IfMatch => Str
2250  
2251 =item Name => Str
2252  
2253 =item [Stage => Str]
2254  
2255  
2256 =back
2257  
2258 Each argument is described in detail in: L<Paws::CloudFront::TestFunction>
2259  
2260 Returns: a L<Paws::CloudFront::TestFunctionResult> instance
2261  
2262 Tests a CloudFront function.
2263  
2264 To test a function, you provide an I<event object> that represents an
2265 HTTP request or response that your CloudFront distribution could
2266 receive in production. CloudFront runs the function, passing it the
2267 event object that you provided, and returns the functionE<rsquo>s
2268 result (the modified event object) in the response. The response also
2269 contains function logs and error messages, if any exist. For more
2270 information about testing functions, see Testing functions
2271 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function)
2272 in the I<Amazon CloudFront Developer Guide>.
2273  
2274 To test a function, you provide the functionE<rsquo>s name and version
2275 (C<ETag> value) along with the event object. To get the
2276 functionE<rsquo>s name and version, you can use C<ListFunctions> and
2277 C<DescribeFunction>.
2278  
2279  
2280 =head2 UntagResource
2281  
2282 =over
2283  
2284 =item Resource => Str
2285  
2286 =item TagKeys => L<Paws::CloudFront::TagKeys>
2287  
2288  
2289 =back
2290  
2291 Each argument is described in detail in: L<Paws::CloudFront::UntagResource>
2292  
2293 Returns: nothing
2294  
2295 Remove tags from a CloudFront resource.
2296  
2297  
2298 =head2 UpdateCachePolicy
2299  
2300 =over
2301  
2302 =item CachePolicyConfig => L<Paws::CloudFront::CachePolicyConfig>
2303  
2304 =item Id => Str
2305  
2306 =item [IfMatch => Str]
2307  
2308  
2309 =back
2310  
2311 Each argument is described in detail in: L<Paws::CloudFront::UpdateCachePolicy>
2312  
2313 Returns: a L<Paws::CloudFront::UpdateCachePolicyResult> instance
2314  
2315 Updates a cache policy configuration.
2316  
2317 When you update a cache policy configuration, all the fields are
2318 updated with the values provided in the request. You cannot update some
2319 fields independent of others. To update a cache policy configuration:
2320  
2321 =over
2322  
2323 =item 1.
2324  
2325 Use C<GetCachePolicyConfig> to get the current configuration.
2326  
2327 =item 2.
2328  
2329 Locally modify the fields in the cache policy configuration that you
2330 want to update.
2331  
2332 =item 3.
2333  
2334 Call C<UpdateCachePolicy> by providing the entire cache policy
2335 configuration, including the fields that you modified and those that
2336 you didnE<rsquo>t.
2337  
2338 =back
2339  
2340  
2341  
2342 =head2 UpdateCloudFrontOriginAccessIdentity
2343  
2344 =over
2345  
2346 =item CloudFrontOriginAccessIdentityConfig => L<Paws::CloudFront::CloudFrontOriginAccessIdentityConfig>
2347  
2348 =item Id => Str
2349  
2350 =item [IfMatch => Str]
2351  
2352  
2353 =back
2354  
2355 Each argument is described in detail in: L<Paws::CloudFront::UpdateCloudFrontOriginAccessIdentity>
2356  
2357 Returns: a L<Paws::CloudFront::UpdateCloudFrontOriginAccessIdentityResult> instance
2358  
2359 Update an origin access identity.
2360  
2361  
2362 =head2 UpdateDistribution
2363  
2364 =over
2365  
2366 =item DistributionConfig => L<Paws::CloudFront::DistributionConfig>
2367  
2368 =item Id => Str
2369  
2370 =item [IfMatch => Str]
2371  
2372  
2373 =back
2374  
2375 Each argument is described in detail in: L<Paws::CloudFront::UpdateDistribution>
2376  
2377 Returns: a L<Paws::CloudFront::UpdateDistributionResult> instance
2378  
2379 Updates the configuration for a web distribution.
2380  
2381 When you update a distribution, there are more required fields than
2382 when you create a distribution. When you update your distribution by
2383 using this API action, follow the steps here to get the current
2384 configuration and then make your updates, to make sure that you include
2385 all of the required fields. To view a summary, see Required Fields for
2386 Create Distribution and Update Distribution
2387 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html)
2388 in the I<Amazon CloudFront Developer Guide>.
2389  
2390 The update process includes getting the current distribution
2391 configuration, updating the XML document that is returned to make your
2392 changes, and then submitting an C<UpdateDistribution> request to make
2393 the updates.
2394  
2395 For information about updating a distribution using the CloudFront
2396 console instead, see Creating a Distribution
2397 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-creating-console.html)
2398 in the I<Amazon CloudFront Developer Guide>.
2399  
2400 B<To update a web distribution using the CloudFront API>
2401  
2402 =over
2403  
2404 =item 1.
2405  
2406 Submit a GetDistributionConfig
2407 (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistributionConfig.html)
2408 request to get the current configuration and an C<Etag> header for the
2409 distribution.
2410  
2411 If you update the distribution again, you must get a new C<Etag>
2412 header.
2413  
2414 =item 2.
2415  
2416 Update the XML document that was returned in the response to your
2417 C<GetDistributionConfig> request to include your changes.
2418  
2419 When you edit the XML file, be aware of the following:
2420  
2421 =over
2422  
2423 =item *
2424  
2425 You must strip out the ETag parameter that is returned.
2426  
2427 =item *
2428  
2429 Additional fields are required when you update a distribution. There
2430 may be fields included in the XML file for features that you haven't
2431 configured for your distribution. This is expected and required to
2432 successfully update the distribution.
2433  
2434 =item *
2435  
2436 You can't change the value of C<CallerReference>. If you try to change
2437 this value, CloudFront returns an C<IllegalUpdate> error.
2438  
2439 =item *
2440  
2441 The new configuration replaces the existing configuration; the values
2442 that you specify in an C<UpdateDistribution> request are not merged
2443 into your existing configuration. When you add, delete, or replace
2444 values in an element that allows multiple values (for example,
2445 C<CNAME>), you must specify all of the values that you want to appear
2446 in the updated distribution. In addition, you must update the
2447 corresponding C<Quantity> element.
2448  
2449 =back
2450  
2451 =item 3.
2452  
2453 Submit an C<UpdateDistribution> request to update the configuration for
2454 your distribution:
2455  
2456 =over
2457  
2458 =item *
2459  
2460 In the request body, include the XML document that you updated in Step
2461 2. The request body must include an XML document with a
2462 C<DistributionConfig> element.
2463  
2464 =item *
2465  
2466 Set the value of the HTTP C<If-Match> header to the value of the
2467 C<ETag> header that CloudFront returned when you submitted the
2468 C<GetDistributionConfig> request in Step 1.
2469  
2470 =back
2471  
2472 =item 4.
2473  
2474 Review the response to the C<UpdateDistribution> request to confirm
2475 that the configuration was successfully updated.
2476  
2477 =item 5.
2478  
2479 Optional: Submit a GetDistribution
2480 (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html)
2481 request to confirm that your changes have propagated. When propagation
2482 is complete, the value of C<Status> is C<Deployed>.
2483  
2484 =back
2485  
2486  
2487  
2488 =head2 UpdateFieldLevelEncryptionConfig
2489  
2490 =over
2491  
2492 =item FieldLevelEncryptionConfig => L<Paws::CloudFront::FieldLevelEncryptionConfig>
2493  
2494 =item Id => Str
2495  
2496 =item [IfMatch => Str]
2497  
2498  
2499 =back
2500  
2501 Each argument is described in detail in: L<Paws::CloudFront::UpdateFieldLevelEncryptionConfig>
2502  
2503 Returns: a L<Paws::CloudFront::UpdateFieldLevelEncryptionConfigResult> instance
2504  
2505 Update a field-level encryption configuration.
2506  
2507  
2508 =head2 UpdateFieldLevelEncryptionProfile
2509  
2510 =over
2511  
2512 =item FieldLevelEncryptionProfileConfig => L<Paws::CloudFront::FieldLevelEncryptionProfileConfig>
2513  
2514 =item Id => Str
2515  
2516 =item [IfMatch => Str]
2517  
2518  
2519 =back
2520  
2521 Each argument is described in detail in: L<Paws::CloudFront::UpdateFieldLevelEncryptionProfile>
2522  
2523 Returns: a L<Paws::CloudFront::UpdateFieldLevelEncryptionProfileResult> instance
2524  
2525 Update a field-level encryption profile.
2526  
2527  
2528 =head2 UpdateFunction
2529  
2530 =over
2531  
2532 =item FunctionCode => Str
2533  
2534 =item FunctionConfig => L<Paws::CloudFront::FunctionConfig>
2535  
2536 =item IfMatch => Str
2537  
2538 =item Name => Str
2539  
2540  
2541 =back
2542  
2543 Each argument is described in detail in: L<Paws::CloudFront::UpdateFunction>
2544  
2545 Returns: a L<Paws::CloudFront::UpdateFunctionResult> instance
2546  
2547 Updates a CloudFront function.
2548  
2549 You can update a functionE<rsquo>s code or the comment that describes
2550 the function. You cannot update a functionE<rsquo>s name.
2551  
2552 To update a function, you provide the functionE<rsquo>s name and
2553 version (C<ETag> value) along with the updated function code. To get
2554 the name and version, you can use C<ListFunctions> and
2555 C<DescribeFunction>.
2556  
2557  
2558 =head2 UpdateKeyGroup
2559  
2560 =over
2561  
2562 =item Id => Str
2563  
2564 =item KeyGroupConfig => L<Paws::CloudFront::KeyGroupConfig>
2565  
2566 =item [IfMatch => Str]
2567  
2568  
2569 =back
2570  
2571 Each argument is described in detail in: L<Paws::CloudFront::UpdateKeyGroup>
2572  
2573 Returns: a L<Paws::CloudFront::UpdateKeyGroupResult> instance
2574  
2575 Updates a key group.
2576  
2577 When you update a key group, all the fields are updated with the values
2578 provided in the request. You cannot update some fields independent of
2579 others. To update a key group:
2580  
2581 =over
2582  
2583 =item 1.
2584  
2585 Get the current key group with C<GetKeyGroup> or C<GetKeyGroupConfig>.
2586  
2587 =item 2.
2588  
2589 Locally modify the fields in the key group that you want to update. For
2590 example, add or remove public key IDs.
2591  
2592 =item 3.
2593  
2594 Call C<UpdateKeyGroup> with the entire key group object, including the
2595 fields that you modified and those that you didnE<rsquo>t.
2596  
2597 =back
2598  
2599  
2600  
2601 =head2 UpdateOriginRequestPolicy
2602  
2603 =over
2604  
2605 =item Id => Str
2606  
2607 =item OriginRequestPolicyConfig => L<Paws::CloudFront::OriginRequestPolicyConfig>
2608  
2609 =item [IfMatch => Str]
2610  
2611  
2612 =back
2613  
2614 Each argument is described in detail in: L<Paws::CloudFront::UpdateOriginRequestPolicy>
2615  
2616 Returns: a L<Paws::CloudFront::UpdateOriginRequestPolicyResult> instance
2617  
2618 Updates an origin request policy configuration.
2619  
2620 When you update an origin request policy configuration, all the fields
2621 are updated with the values provided in the request. You cannot update
2622 some fields independent of others. To update an origin request policy
2623 configuration:
2624  
2625 =over
2626  
2627 =item 1.
2628  
2629 Use C<GetOriginRequestPolicyConfig> to get the current configuration.
2630  
2631 =item 2.
2632  
2633 Locally modify the fields in the origin request policy configuration
2634 that you want to update.
2635  
2636 =item 3.
2637  
2638 Call C<UpdateOriginRequestPolicy> by providing the entire origin
2639 request policy configuration, including the fields that you modified
2640 and those that you didnE<rsquo>t.
2641  
2642 =back
2643  
2644  
2645  
2646 =head2 UpdatePublicKey
2647  
2648 =over
2649  
2650 =item Id => Str
2651  
2652 =item PublicKeyConfig => L<Paws::CloudFront::PublicKeyConfig>
2653  
2654 =item [IfMatch => Str]
2655  
2656  
2657 =back
2658  
2659 Each argument is described in detail in: L<Paws::CloudFront::UpdatePublicKey>
2660  
2661 Returns: a L<Paws::CloudFront::UpdatePublicKeyResult> instance
2662  
2663 Update public key information. Note that the only value you can change
2664 is the comment.
2665  
2666  
2667 =head2 UpdateRealtimeLogConfig
2668  
2669 =over
2670  
2671 =item [ARN => Str]
2672  
2673 =item [EndPoints => ArrayRef[L<Paws::CloudFront::EndPoint>]]
2674  
2675 =item [Fields => ArrayRef[Str|Undef]]
2676  
2677 =item [Name => Str]
2678  
2679 =item [SamplingRate => Int]
2680  
2681  
2682 =back
2683  
2684 Each argument is described in detail in: L<Paws::CloudFront::UpdateRealtimeLogConfig>
2685  
2686 Returns: a L<Paws::CloudFront::UpdateRealtimeLogConfigResult> instance
2687  
2688 Updates a real-time log configuration.
2689  
2690 When you update a real-time log configuration, all the parameters are
2691 updated with the values provided in the request. You cannot update some
2692 parameters independent of others. To update a real-time log
2693 configuration:
2694  
2695 =over
2696  
2697 =item 1.
2698  
2699 Call C<GetRealtimeLogConfig> to get the current real-time log
2700 configuration.
2701  
2702 =item 2.
2703  
2704 Locally modify the parameters in the real-time log configuration that
2705 you want to update.
2706  
2707 =item 3.
2708  
2709 Call this API (C<UpdateRealtimeLogConfig>) by providing the entire
2710 real-time log configuration, including the parameters that you modified
2711 and those that you didnE<rsquo>t.
2712  
2713 =back
2714  
2715 You cannot update a real-time log configurationE<rsquo>s C<Name> or
2716 C<ARN>.
2717  
2718  
2719 =head2 UpdateStreamingDistribution
2720  
2721 =over
2722  
2723 =item Id => Str
2724  
2725 =item StreamingDistributionConfig => L<Paws::CloudFront::StreamingDistributionConfig>
2726  
2727 =item [IfMatch => Str]
2728  
2729  
2730 =back
2731  
2732 Each argument is described in detail in: L<Paws::CloudFront::UpdateStreamingDistribution>
2733  
2734 Returns: a L<Paws::CloudFront::UpdateStreamingDistributionResult> instance
2735  
2736 Update a streaming distribution.
2737  
2738  
2739  
2740  
2741 =head1 PAGINATORS
2742  
2743 Paginator methods are helpers that repetively call methods that return partial results
2744  
2745 =head2 ListAllCloudFrontOriginAccessIdentities(sub { },[Marker => Str, MaxItems => Str])
2746  
2747 =head2 ListAllCloudFrontOriginAccessIdentities([Marker => Str, MaxItems => Str])
2748  
2749  
2750 If passed a sub as first parameter, it will call the sub for each element found in :
2751  
2752 - CloudFrontOriginAccessIdentityList.Items, passing the object as the first parameter, and the string 'CloudFrontOriginAccessIdentityList.Items' as the second parameter
2753  
2754 If not, it will return a a L<Paws::CloudFront::ListCloudFrontOriginAccessIdentitiesResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
2755  
2756  
2757 =head2 ListAllDistributions(sub { },[Marker => Str, MaxItems => Str])
2758  
2759 =head2 ListAllDistributions([Marker => Str, MaxItems => Str])
2760  
2761  
2762 If passed a sub as first parameter, it will call the sub for each element found in :
2763  
2764 - DistributionList.Items, passing the object as the first parameter, and the string 'DistributionList.Items' as the second parameter
2765  
2766 If not, it will return a a L<Paws::CloudFront::ListDistributionsResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
2767  
2768  
2769 =head2 ListAllInvalidations(sub { },DistributionId => Str, [Marker => Str, MaxItems => Str])
2770  
2771 =head2 ListAllInvalidations(DistributionId => Str, [Marker => Str, MaxItems => Str])
2772  
2773  
2774 If passed a sub as first parameter, it will call the sub for each element found in :
2775  
2776 - InvalidationList.Items, passing the object as the first parameter, and the string 'InvalidationList.Items' as the second parameter
2777  
2778 If not, it will return a a L<Paws::CloudFront::ListInvalidationsResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
2779  
2780  
2781 =head2 ListAllStreamingDistributions(sub { },[Marker => Str, MaxItems => Str])
2782  
2783 =head2 ListAllStreamingDistributions([Marker => Str, MaxItems => Str])
2784  
2785  
2786 If passed a sub as first parameter, it will call the sub for each element found in :
2787  
2788 - StreamingDistributionList.Items, passing the object as the first parameter, and the string 'StreamingDistributionList.Items' as the second parameter
2789  
2790 If not, it will return a a L<Paws::CloudFront::ListStreamingDistributionsResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
2791  
2792  
2793  
2794  
2795  
2796 =head1 SEE ALSO
2797  
2798 This service class forms part of L<Paws>
2799  
2800 =head1 BUGS and CONTRIBUTIONS
2801  
2802 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
2803  
2804 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
2805  
2806 =cut
2807  
« lib/Paws/DirectConnect.pm ↑ Summary blib/lib/Paws.pm »