Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates crash-consistent snapshots of multiple EBS volumes and stores the data in S3. Volumes are chosen by specifying an instance. Any attached volumes will produce one snapshot each that is crash-consistent across the instance.
You can include all of the volumes currently attached to the instance, or you can exclude the root volume or specific data (non-root) volumes from the multi-volume snapshot set.
You can create multi-volume snapshots of instances in a Region and instances on an Outpost. If you create snapshots from an instance in a Region, the snapshots must be stored in the same Region as the instance. If you create snapshots from an instance on an Outpost, the snapshots can be stored on the same Outpost as the instance, or in the Region for that Outpost.
Synopsis
- data CreateSnapshots = CreateSnapshots' {}
- newCreateSnapshots :: InstanceSpecification -> CreateSnapshots
- createSnapshots_copyTagsFromSource :: Lens' CreateSnapshots (Maybe CopyTagsFromSource)
- createSnapshots_description :: Lens' CreateSnapshots (Maybe Text)
- createSnapshots_dryRun :: Lens' CreateSnapshots (Maybe Bool)
- createSnapshots_outpostArn :: Lens' CreateSnapshots (Maybe Text)
- createSnapshots_tagSpecifications :: Lens' CreateSnapshots (Maybe [TagSpecification])
- createSnapshots_instanceSpecification :: Lens' CreateSnapshots InstanceSpecification
- data CreateSnapshotsResponse = CreateSnapshotsResponse' {
- snapshots :: Maybe [SnapshotInfo]
- httpStatus :: Int
- newCreateSnapshotsResponse :: Int -> CreateSnapshotsResponse
- createSnapshotsResponse_snapshots :: Lens' CreateSnapshotsResponse (Maybe [SnapshotInfo])
- createSnapshotsResponse_httpStatus :: Lens' CreateSnapshotsResponse Int
Creating a Request
data CreateSnapshots Source #
See: newCreateSnapshots
smart constructor.
CreateSnapshots' | |
|
Instances
Create a value of CreateSnapshots
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:copyTagsFromSource:CreateSnapshots'
, createSnapshots_copyTagsFromSource
- Copies the tags from the specified volume to corresponding snapshot.
CreateSnapshots
, createSnapshots_description
- A description propagated to every snapshot specified by the instance.
$sel:dryRun:CreateSnapshots'
, createSnapshots_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
CreateSnapshots
, createSnapshots_outpostArn
- The Amazon Resource Name (ARN) of the Outpost on which to create the
local snapshots.
- To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same Region as the instance.
- To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter. The snapshots are created in the Region for the Outpost.
- To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the destination Outpost. The snapshots must be created on the same Outpost as the instance.
For more information, see Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User Guide.
CreateSnapshots
, createSnapshots_tagSpecifications
- Tags to apply to every snapshot specified by the instance.
$sel:instanceSpecification:CreateSnapshots'
, createSnapshots_instanceSpecification
- The instance to specify which volumes should be included in the
snapshots.
Request Lenses
createSnapshots_copyTagsFromSource :: Lens' CreateSnapshots (Maybe CopyTagsFromSource) Source #
Copies the tags from the specified volume to corresponding snapshot.
createSnapshots_description :: Lens' CreateSnapshots (Maybe Text) Source #
A description propagated to every snapshot specified by the instance.
createSnapshots_dryRun :: Lens' CreateSnapshots (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
createSnapshots_outpostArn :: Lens' CreateSnapshots (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
- To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same Region as the instance.
- To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter. The snapshots are created in the Region for the Outpost.
- To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the destination Outpost. The snapshots must be created on the same Outpost as the instance.
For more information, see Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User Guide.
createSnapshots_tagSpecifications :: Lens' CreateSnapshots (Maybe [TagSpecification]) Source #
Tags to apply to every snapshot specified by the instance.
createSnapshots_instanceSpecification :: Lens' CreateSnapshots InstanceSpecification Source #
The instance to specify which volumes should be included in the snapshots.
Destructuring the Response
data CreateSnapshotsResponse Source #
See: newCreateSnapshotsResponse
smart constructor.
CreateSnapshotsResponse' | |
|
Instances
newCreateSnapshotsResponse Source #
Create a value of CreateSnapshotsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:snapshots:CreateSnapshotsResponse'
, createSnapshotsResponse_snapshots
- List of snapshots.
$sel:httpStatus:CreateSnapshotsResponse'
, createSnapshotsResponse_httpStatus
- The response's http status code.
Response Lenses
createSnapshotsResponse_snapshots :: Lens' CreateSnapshotsResponse (Maybe [SnapshotInfo]) Source #
List of snapshots.
createSnapshotsResponse_httpStatus :: Lens' CreateSnapshotsResponse Int Source #
The response's http status code.