libZSservicesZSamazonka-ebsZSamazonka-ebs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.EBS.GetSnapshotBlock

Description

Returns the data in a block in an Amazon Elastic Block Store snapshot.

Synopsis

Creating a Request

data GetSnapshotBlock Source #

See: newGetSnapshotBlock smart constructor.

Constructors

GetSnapshotBlock' 

Fields

  • snapshotId :: Text

    The ID of the snapshot containing the block from which to get data.

  • blockIndex :: Natural

    The block index of the block from which to get data.

    Obtain the BlockIndex by running the ListChangedBlocks or ListSnapshotBlocks operations.

  • blockToken :: Text

    The block token of the block from which to get data.

    Obtain the BlockToken by running the ListChangedBlocks or ListSnapshotBlocks operations.

Instances

Instances details
Eq GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

Read GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

Show GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

Generic GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

Associated Types

type Rep GetSnapshotBlock :: Type -> Type #

NFData GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

Methods

rnf :: GetSnapshotBlock -> () #

Hashable GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

AWSRequest GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

Associated Types

type AWSResponse GetSnapshotBlock #

ToHeaders GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

ToPath GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

ToQuery GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

type Rep GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

type Rep GetSnapshotBlock = D1 ('MetaData "GetSnapshotBlock" "Amazonka.EBS.GetSnapshotBlock" "libZSservicesZSamazonka-ebsZSamazonka-ebs" 'False) (C1 ('MetaCons "GetSnapshotBlock'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "blockIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "blockToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetSnapshotBlock Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

newGetSnapshotBlock Source #

Create a value of GetSnapshotBlock 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:snapshotId:GetSnapshotBlock', getSnapshotBlock_snapshotId - The ID of the snapshot containing the block from which to get data.

$sel:blockIndex:GetSnapshotBlock', getSnapshotBlock_blockIndex - The block index of the block from which to get data.

Obtain the BlockIndex by running the ListChangedBlocks or ListSnapshotBlocks operations.

$sel:blockToken:GetSnapshotBlock', getSnapshotBlock_blockToken - The block token of the block from which to get data.

Obtain the BlockToken by running the ListChangedBlocks or ListSnapshotBlocks operations.

Request Lenses

getSnapshotBlock_snapshotId :: Lens' GetSnapshotBlock Text Source #

The ID of the snapshot containing the block from which to get data.

getSnapshotBlock_blockIndex :: Lens' GetSnapshotBlock Natural Source #

The block index of the block from which to get data.

Obtain the BlockIndex by running the ListChangedBlocks or ListSnapshotBlocks operations.

getSnapshotBlock_blockToken :: Lens' GetSnapshotBlock Text Source #

The block token of the block from which to get data.

Obtain the BlockToken by running the ListChangedBlocks or ListSnapshotBlocks operations.

Destructuring the Response

data GetSnapshotBlockResponse Source #

See: newGetSnapshotBlockResponse smart constructor.

Constructors

GetSnapshotBlockResponse' 

Fields

Instances

Instances details
Show GetSnapshotBlockResponse Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

Generic GetSnapshotBlockResponse Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

Associated Types

type Rep GetSnapshotBlockResponse :: Type -> Type #

type Rep GetSnapshotBlockResponse Source # 
Instance details

Defined in Amazonka.EBS.GetSnapshotBlock

type Rep GetSnapshotBlockResponse = D1 ('MetaData "GetSnapshotBlockResponse" "Amazonka.EBS.GetSnapshotBlock" "libZSservicesZSamazonka-ebsZSamazonka-ebs" 'False) (C1 ('MetaCons "GetSnapshotBlockResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dataLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "checksumAlgorithm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChecksumAlgorithm))) :*: (S1 ('MetaSel ('Just "checksum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "blockData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResponseBody)))))

newGetSnapshotBlockResponse Source #

Create a value of GetSnapshotBlockResponse 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:dataLength:GetSnapshotBlockResponse', getSnapshotBlockResponse_dataLength - The size of the data in the block.

$sel:checksumAlgorithm:GetSnapshotBlockResponse', getSnapshotBlockResponse_checksumAlgorithm - The algorithm used to generate the checksum for the block, such as SHA256.

$sel:checksum:GetSnapshotBlockResponse', getSnapshotBlockResponse_checksum - The checksum generated for the block, which is Base64 encoded.

$sel:httpStatus:GetSnapshotBlockResponse', getSnapshotBlockResponse_httpStatus - The response's http status code.

$sel:blockData:GetSnapshotBlockResponse', getSnapshotBlockResponse_blockData - The data content of the block.

Response Lenses

getSnapshotBlockResponse_checksumAlgorithm :: Lens' GetSnapshotBlockResponse (Maybe ChecksumAlgorithm) Source #

The algorithm used to generate the checksum for the block, such as SHA256.

getSnapshotBlockResponse_checksum :: Lens' GetSnapshotBlockResponse (Maybe Text) Source #

The checksum generated for the block, which is Base64 encoded.