blib/lib/Paws/CloudFront/CreateInvalidation.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/CloudFormation/ValidateTemplateOutput.pm ↑ Summary blib/lib/Paws/CloudFront/CreateInvalidationResult.pm »
1  
2 package Paws::CloudFront::CreateInvalidation;
3 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 has DistributionId => (is => 'ro', isa => 'Str', uri_name => 'DistributionId', traits => ['ParamInURI'], required => 1);
5 2 has InvalidationBatch => (is => 'ro', isa => 'Paws::CloudFront::InvalidationBatch', traits => ['ParamInBody'], required => 1);
6  
7  
8 2 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateInvalidation');
11 2 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2020-05-31/distribution/{DistributionId}/invalidation');
12 2 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
13 2 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudFront::CreateInvalidationResult');
14 2 class_has _result_key => (isa => 'Str', is => 'ro');
15
16
17 2 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::CloudFront::CreateInvalidation - Arguments for method CreateInvalidation on L<Paws::CloudFront>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateInvalidation2020_05_31 on the
28 L<Amazon CloudFront|Paws::CloudFront> service. Use the attributes of this class
29 as arguments to method CreateInvalidation2020_05_31.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateInvalidation2020_05_31.
32  
33 =head1 SYNOPSIS
34  
35 my $cloudfront = Paws->service('CloudFront');
36 my $CreateInvalidationResult = $cloudfront->CreateInvalidation(
37 DistributionId => 'Mystring',
38 InvalidationBatch => {
39 CallerReference => 'Mystring',
40 Paths => {
41 Quantity => 1,
42 Items => [ 'Mystring', ... ], # OPTIONAL
43 },
44  
45 },
46  
47 );
48  
49 # Results:
50 my $Invalidation = $CreateInvalidationResult->Invalidation;
51 my $Location = $CreateInvalidationResult->Location;
52  
53 # Returns a L<Paws::CloudFront::CreateInvalidationResult> object.
54  
55 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cloudfront/CreateInvalidation>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> DistributionId => Str
62  
63 The distribution's id.
64  
65  
66  
67 =head2 B<REQUIRED> InvalidationBatch => L<Paws::CloudFront::InvalidationBatch>
68  
69 The batch information for the invalidation.
70  
71  
72  
73  
74 =head1 SEE ALSO
75  
76 This class forms part of L<Paws>, documenting arguments for method CreateInvalidation2020_05_31 in L<Paws::CloudFront>
77  
78 =head1 BUGS and CONTRIBUTIONS
79  
80 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
81  
82 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
83  
84 =cut
85  
« blib/lib/Paws/CloudFormation/ValidateTemplateOutput.pm ↑ Summary blib/lib/Paws/CloudFront/CreateInvalidationResult.pm »