File Coverage

blib/lib/Paws/CloudFront/InvalidationBatch.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Paws::CloudFront::InvalidationBatch;
2 1     1   317 use Moose;
  1     2   3  
  1         5  
  2         951  
  2         6  
  2         12  
3             has CallerReference => (is => 'ro', isa => 'Str', required => 1);
4             has Paths => (is => 'ro', isa => 'Paws::CloudFront::Paths', required => 1);
5             1;
6              
7             ### main pod documentation begin ###
8              
9             =head1 NAME
10              
11             Paws::CloudFront::InvalidationBatch
12              
13             =head1 USAGE
14              
15             This class represents one of two things:
16              
17             =head3 Arguments in a call to a service
18              
19             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
20             Each attribute should be used as a named argument in the calls that expect this type of object.
21              
22             As an example, if Att1 is expected to be a Paws::CloudFront::InvalidationBatch object:
23              
24             $service_obj->Method(Att1 => { CallerReference => $value, ..., Paths => $value });
25              
26             =head3 Results returned from an API call
27              
28             Use accessors for each attribute. If Att1 is expected to be an Paws::CloudFront::InvalidationBatch object:
29              
30             $result = $service_obj->Method(...);
31             $result->Att1->CallerReference
32              
33             =head1 DESCRIPTION
34              
35             An invalidation batch.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 B<REQUIRED> CallerReference => Str
41              
42             A value that you specify to uniquely identify an invalidation request.
43             CloudFront uses the value to prevent you from accidentally resubmitting
44             an identical request. Whenever you create a new invalidation request,
45             you must specify a new value for C<CallerReference> and change other
46             values in the request as applicable. One way to ensure that the value
47             of C<CallerReference> is unique is to use a C<timestamp>, for example,
48             C<20120301090000>.
49              
50             If you make a second invalidation request with the same value for
51             C<CallerReference>, and if the rest of the request is the same,
52             CloudFront doesn't create a new invalidation request. Instead,
53             CloudFront returns information about the invalidation request that you
54             previously created with the same C<CallerReference>.
55              
56             If C<CallerReference> is a value you already sent in a previous
57             invalidation batch request but the content of any C<Path> is different
58             from the original request, CloudFront returns an
59             C<InvalidationBatchAlreadyExists> error.
60              
61              
62             =head2 B<REQUIRED> Paths => L<Paws::CloudFront::Paths>
63              
64             A complex type that contains information about the objects that you
65             want to invalidate. For more information, see Specifying the Objects to
66             Invalidate in the I<Amazon CloudFront Developer Guide>.
67              
68              
69              
70             =head1 SEE ALSO
71              
72             This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
73              
74             =head1 BUGS and CONTRIBUTIONS
75              
76             The source code is located here: https://github.com/pplu/aws-sdk-perl
77              
78             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
79              
80             =cut
81