EC2.Volume.
snapshots
¶A collection of Snapshot resources.A Snapshot Collection will include all resources by default, and extreme caution should be taken when performing actions on all resources.
all
()¶Creates an iterable of all Snapshot resources in the collection.
See also: AWS API Documentation
Request Syntax
snapshot_iterator = volume.snapshots.all()
ec2.Snapshot
)filter
(**kwargs)¶Creates an iterable of all Snapshot resources in the collection filtered by kwargs passed to method. A Snapshot collection will include all resources by default if no filters are provided, and extreme caution should be taken when performing actions on all resources.
See also: AWS API Documentation
Request Syntax
snapshot_iterator = volume.snapshots.filter(
MaxResults=123,
NextToken='string',
OwnerIds=[
'string',
],
RestorableByUserIds=[
'string',
],
SnapshotIds=[
'string',
],
DryRun=True|False
)
Scopes the results to snapshots with the specified owners. You can specify a combination of Amazon Web Services account IDs, self
, and amazon
.
The IDs of the Amazon Web Services accounts that can create volumes from the snapshot.
The snapshot IDs.
Default: Describes the snapshots for which you have create volume permissions.
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.list(ec2.Snapshot
)
A list of Snapshot resources
limit
(**kwargs)¶Creates an iterable up to a specified amount of Snapshot resources in the collection.
See also: AWS API Documentation
Request Syntax
snapshot_iterator = volume.snapshots.limit(
count=123
)
ec2.Snapshot
)page_size
(**kwargs)¶Creates an iterable of all Snapshot resources in the collection, but limits the number of items returned by each service call by the specified amount.
See also: AWS API Documentation
Request Syntax
snapshot_iterator = volume.snapshots.page_size(
count=123
)
ec2.Snapshot
)