File Coverage

blib/lib/Paws/EC2/DescribeSnapshots.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::DescribeSnapshots;
3 1     1   384 use Moose;
  1     1   2  
  1         7  
  1         665  
  1         2  
  1         7  
4             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
5             has Filters => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Filter]', traits => ['NameInRequest'], request_name => 'Filter' );
6             has MaxResults => (is => 'ro', isa => 'Int');
7             has NextToken => (is => 'ro', isa => 'Str');
8             has OwnerIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'Owner' );
9             has RestorableByUserIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'RestorableBy' );
10             has SnapshotIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'SnapshotId' );
11              
12 1     1   5994 use MooseX::ClassAttribute;
  1     1   2  
  1         7  
  1         6932  
  1         3  
  1         9  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeSnapshots');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeSnapshotsResult');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::EC2::DescribeSnapshots - Arguments for method DescribeSnapshots on Paws::EC2
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method DescribeSnapshots on the
28             Amazon Elastic Compute Cloud service. Use the attributes of this class
29             as arguments to method DescribeSnapshots.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeSnapshots.
32              
33             As an example:
34              
35             $service_obj->DescribeSnapshots(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 DryRun => Bool
43              
44             Checks whether you have the required permissions for the action,
45             without actually making the request, and provides an error response. If
46             you have the required permissions, the error response is
47             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
48              
49              
50              
51             =head2 Filters => ArrayRef[L<Paws::EC2::Filter>]
52              
53             One or more filters.
54              
55             =over
56              
57             =item *
58              
59             C<description> - A description of the snapshot.
60              
61             =item *
62              
63             C<owner-alias> - Value from an Amazon-maintained list (C<amazon> |
64             C<aws-marketplace> | C<microsoft>) of snapshot owners. Not to be
65             confused with the user-configured AWS account alias, which is set from
66             the IAM consolew.
67              
68             =item *
69              
70             C<owner-id> - The ID of the AWS account that owns the snapshot.
71              
72             =item *
73              
74             C<progress> - The progress of the snapshot, as a percentage (for
75             example, 80%).
76              
77             =item *
78              
79             C<snapshot-id> - The snapshot ID.
80              
81             =item *
82              
83             C<start-time> - The time stamp when the snapshot was initiated.
84              
85             =item *
86              
87             C<status> - The status of the snapshot (C<pending> | C<completed> |
88             C<error>).
89              
90             =item *
91              
92             C<tag>:I<key>=I<value> - The key/value combination of a tag assigned to
93             the resource. Specify the key of the tag in the filter name and the
94             value of the tag in the filter value. For example, for the tag
95             Purpose=X, specify C<tag:Purpose> for the filter name and C<X> for the
96             filter value.
97              
98             =item *
99              
100             C<tag-key> - The key of a tag assigned to the resource. This filter is
101             independent of the C<tag-value> filter. For example, if you use both
102             the filter "tag-key=Purpose" and the filter "tag-value=X", you get any
103             resources assigned both the tag key Purpose (regardless of what the
104             tag's value is), and the tag value X (regardless of what the tag's key
105             is). If you want to list only resources where Purpose is X, see the
106             C<tag>:I<key>=I<value> filter.
107              
108             =item *
109              
110             C<tag-value> - The value of a tag assigned to the resource. This filter
111             is independent of the C<tag-key> filter.
112              
113             =item *
114              
115             C<volume-id> - The ID of the volume the snapshot is for.
116              
117             =item *
118              
119             C<volume-size> - The size of the volume, in GiB.
120              
121             =back
122              
123              
124              
125              
126             =head2 MaxResults => Int
127              
128             The maximum number of snapshot results returned by C<DescribeSnapshots>
129             in paginated output. When this parameter is used, C<DescribeSnapshots>
130             only returns C<MaxResults> results in a single page along with a
131             C<NextToken> response element. The remaining results of the initial
132             request can be seen by sending another C<DescribeSnapshots> request
133             with the returned C<NextToken> value. This value can be between 5 and
134             1000; if C<MaxResults> is given a value larger than 1000, only 1000
135             results are returned. If this parameter is not used, then
136             C<DescribeSnapshots> returns all results. You cannot specify this
137             parameter and the snapshot IDs parameter in the same request.
138              
139              
140              
141             =head2 NextToken => Str
142              
143             The C<NextToken> value returned from a previous paginated
144             C<DescribeSnapshots> request where C<MaxResults> was used and the
145             results exceeded the value of that parameter. Pagination continues from
146             the end of the previous results that returned the C<NextToken> value.
147             This value is C<null> when there are no more results to return.
148              
149              
150              
151             =head2 OwnerIds => ArrayRef[Str|Undef]
152              
153             Returns the snapshots owned by the specified owner. Multiple owners can
154             be specified.
155              
156              
157              
158             =head2 RestorableByUserIds => ArrayRef[Str|Undef]
159              
160             One or more AWS accounts IDs that can create volumes from the snapshot.
161              
162              
163              
164             =head2 SnapshotIds => ArrayRef[Str|Undef]
165              
166             One or more snapshot IDs.
167              
168             Default: Describes snapshots for which you have launch permissions.
169              
170              
171              
172              
173             =head1 SEE ALSO
174              
175             This class forms part of L<Paws>, documenting arguments for method DescribeSnapshots in L<Paws::EC2>
176              
177             =head1 BUGS and CONTRIBUTIONS
178              
179             The source code is located here: https://github.com/pplu/aws-sdk-perl
180              
181             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
182              
183             =cut
184