-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Amazon Elastic Block Store SDK. -- -- Derived from API version 2019-11-02 of the AWS service -- descriptions, licensed under Apache 2.0. -- -- The types from this library are intended to be used with -- amazonka, which provides mechanisms for specifying AuthN/AuthZ -- information, sending requests, and receiving responses. -- -- It is recommended to use generic lenses or optics from packages such -- as generic-lens or optics to modify optional fields and -- deconstruct responses. -- -- Generated lenses can be found in Amazonka.EBS.Lens and are -- suitable for use with a lens package such as lens or -- lens-family-core. -- -- See Amazonka.EBS and the AWS documentation to get -- started. @package amazonka-ebs @version 2.0 module Amazonka.EBS.Types.Block -- | A block of data in an Amazon Elastic Block Store snapshot. -- -- See: newBlock smart constructor. data Block Block' :: Maybe Natural -> Maybe Text -> Block -- | The block index. [$sel:blockIndex:Block'] :: Block -> Maybe Natural -- | The block token for the block index. [$sel:blockToken:Block'] :: Block -> Maybe Text -- | Create a value of Block 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:blockIndex:Block', block_blockIndex - The block -- index. -- -- $sel:blockToken:Block', block_blockToken - The block -- token for the block index. newBlock :: Block -- | The block index. block_blockIndex :: Lens' Block (Maybe Natural) -- | The block token for the block index. block_blockToken :: Lens' Block (Maybe Text) instance GHC.Generics.Generic Amazonka.EBS.Types.Block.Block instance GHC.Show.Show Amazonka.EBS.Types.Block.Block instance GHC.Read.Read Amazonka.EBS.Types.Block.Block instance GHC.Classes.Eq Amazonka.EBS.Types.Block.Block instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.EBS.Types.Block.Block instance Data.Hashable.Class.Hashable Amazonka.EBS.Types.Block.Block instance Control.DeepSeq.NFData Amazonka.EBS.Types.Block.Block module Amazonka.EBS.Types.ChangedBlock -- | A block of data in an Amazon Elastic Block Store snapshot that is -- different from another snapshot of the same volume/snapshot lineage. -- -- See: newChangedBlock smart constructor. data ChangedBlock ChangedBlock' :: Maybe Natural -> Maybe Text -> Maybe Text -> ChangedBlock -- | The block index. [$sel:blockIndex:ChangedBlock'] :: ChangedBlock -> Maybe Natural -- | The block token for the block index of the FirstSnapshotId -- specified in the ListChangedBlocks operation. This value is -- absent if the first snapshot does not have the changed block that is -- on the second snapshot. [$sel:firstBlockToken:ChangedBlock'] :: ChangedBlock -> Maybe Text -- | The block token for the block index of the SecondSnapshotId -- specified in the ListChangedBlocks operation. [$sel:secondBlockToken:ChangedBlock'] :: ChangedBlock -> Maybe Text -- | Create a value of ChangedBlock 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:blockIndex:ChangedBlock', changedBlock_blockIndex - -- The block index. -- -- $sel:firstBlockToken:ChangedBlock', -- changedBlock_firstBlockToken - The block token for the block -- index of the FirstSnapshotId specified in the -- ListChangedBlocks operation. This value is absent if the -- first snapshot does not have the changed block that is on the second -- snapshot. -- -- $sel:secondBlockToken:ChangedBlock', -- changedBlock_secondBlockToken - The block token for the block -- index of the SecondSnapshotId specified in the -- ListChangedBlocks operation. newChangedBlock :: ChangedBlock -- | The block index. changedBlock_blockIndex :: Lens' ChangedBlock (Maybe Natural) -- | The block token for the block index of the FirstSnapshotId -- specified in the ListChangedBlocks operation. This value is -- absent if the first snapshot does not have the changed block that is -- on the second snapshot. changedBlock_firstBlockToken :: Lens' ChangedBlock (Maybe Text) -- | The block token for the block index of the SecondSnapshotId -- specified in the ListChangedBlocks operation. changedBlock_secondBlockToken :: Lens' ChangedBlock (Maybe Text) instance GHC.Generics.Generic Amazonka.EBS.Types.ChangedBlock.ChangedBlock instance GHC.Show.Show Amazonka.EBS.Types.ChangedBlock.ChangedBlock instance GHC.Classes.Eq Amazonka.EBS.Types.ChangedBlock.ChangedBlock instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.EBS.Types.ChangedBlock.ChangedBlock instance Data.Hashable.Class.Hashable Amazonka.EBS.Types.ChangedBlock.ChangedBlock instance Control.DeepSeq.NFData Amazonka.EBS.Types.ChangedBlock.ChangedBlock module Amazonka.EBS.Types.ChecksumAggregationMethod newtype ChecksumAggregationMethod ChecksumAggregationMethod' :: Text -> ChecksumAggregationMethod [fromChecksumAggregationMethod] :: ChecksumAggregationMethod -> Text pattern ChecksumAggregationMethod_LINEAR :: ChecksumAggregationMethod instance Amazonka.Data.XML.ToXML Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Amazonka.Data.XML.FromXML Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Amazonka.Data.Query.ToQuery Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Amazonka.Data.Headers.ToHeader Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Amazonka.Data.Log.ToLog Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Amazonka.Data.ByteString.ToByteString Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Amazonka.Data.Text.ToText Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Amazonka.Data.Text.FromText Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Control.DeepSeq.NFData Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance Data.Hashable.Class.Hashable Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance GHC.Generics.Generic Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance GHC.Classes.Ord Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance GHC.Classes.Eq Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance GHC.Read.Read Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod instance GHC.Show.Show Amazonka.EBS.Types.ChecksumAggregationMethod.ChecksumAggregationMethod module Amazonka.EBS.Types.ChecksumAlgorithm newtype ChecksumAlgorithm ChecksumAlgorithm' :: Text -> ChecksumAlgorithm [fromChecksumAlgorithm] :: ChecksumAlgorithm -> Text pattern ChecksumAlgorithm_SHA256 :: ChecksumAlgorithm instance Amazonka.Data.XML.ToXML Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Amazonka.Data.XML.FromXML Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Amazonka.Data.Query.ToQuery Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Amazonka.Data.Headers.ToHeader Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Amazonka.Data.Log.ToLog Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Amazonka.Data.ByteString.ToByteString Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Amazonka.Data.Text.ToText Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Amazonka.Data.Text.FromText Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Control.DeepSeq.NFData Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance Data.Hashable.Class.Hashable Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance GHC.Generics.Generic Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance GHC.Classes.Ord Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance GHC.Classes.Eq Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance GHC.Read.Read Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm instance GHC.Show.Show Amazonka.EBS.Types.ChecksumAlgorithm.ChecksumAlgorithm module Amazonka.EBS.Types.Status newtype Status Status' :: Text -> Status [fromStatus] :: Status -> Text pattern Status_Completed :: Status pattern Status_Error :: Status pattern Status_Pending :: Status instance Amazonka.Data.XML.ToXML Amazonka.EBS.Types.Status.Status instance Amazonka.Data.XML.FromXML Amazonka.EBS.Types.Status.Status instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.EBS.Types.Status.Status instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.EBS.Types.Status.Status instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.EBS.Types.Status.Status instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.EBS.Types.Status.Status instance Amazonka.Data.Query.ToQuery Amazonka.EBS.Types.Status.Status instance Amazonka.Data.Headers.ToHeader Amazonka.EBS.Types.Status.Status instance Amazonka.Data.Log.ToLog Amazonka.EBS.Types.Status.Status instance Amazonka.Data.ByteString.ToByteString Amazonka.EBS.Types.Status.Status instance Amazonka.Data.Text.ToText Amazonka.EBS.Types.Status.Status instance Amazonka.Data.Text.FromText Amazonka.EBS.Types.Status.Status instance Control.DeepSeq.NFData Amazonka.EBS.Types.Status.Status instance Data.Hashable.Class.Hashable Amazonka.EBS.Types.Status.Status instance GHC.Generics.Generic Amazonka.EBS.Types.Status.Status instance GHC.Classes.Ord Amazonka.EBS.Types.Status.Status instance GHC.Classes.Eq Amazonka.EBS.Types.Status.Status instance GHC.Read.Read Amazonka.EBS.Types.Status.Status instance GHC.Show.Show Amazonka.EBS.Types.Status.Status module Amazonka.EBS.Types.Tag -- | Describes a tag. -- -- See: newTag smart constructor. data Tag Tag' :: Maybe Text -> Maybe Text -> Tag -- | The key of the tag. [$sel:key:Tag'] :: Tag -> Maybe Text -- | The value of the tag. [$sel:value:Tag'] :: Tag -> Maybe Text -- | Create a value of Tag 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:key:Tag', tag_key - The key of the tag. -- -- $sel:value:Tag', tag_value - The value of the tag. newTag :: Tag -- | The key of the tag. tag_key :: Lens' Tag (Maybe Text) -- | The value of the tag. tag_value :: Lens' Tag (Maybe Text) instance GHC.Generics.Generic Amazonka.EBS.Types.Tag.Tag instance GHC.Show.Show Amazonka.EBS.Types.Tag.Tag instance GHC.Read.Read Amazonka.EBS.Types.Tag.Tag instance GHC.Classes.Eq Amazonka.EBS.Types.Tag.Tag instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.EBS.Types.Tag.Tag instance Data.Hashable.Class.Hashable Amazonka.EBS.Types.Tag.Tag instance Control.DeepSeq.NFData Amazonka.EBS.Types.Tag.Tag instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.EBS.Types.Tag.Tag module Amazonka.EBS.Types -- | API version 2019-11-02 of the Amazon Elastic Block Store SDK -- configuration. defaultService :: Service -- | You do not have sufficient access to perform this action. _AccessDeniedException :: AsError a => Fold a ServiceError -- | You have reached the limit for concurrent API requests. For more -- information, see Optimizing performance of the EBS direct APIs -- in the Amazon Elastic Compute Cloud User Guide. _ConcurrentLimitExceededException :: AsError a => Fold a ServiceError -- | The request uses the same client token as a previous, but -- non-identical request. _ConflictException :: AsError a => Fold a ServiceError -- | An internal error has occurred. _InternalServerException :: AsError a => Fold a ServiceError -- | The number of API requests has exceed the maximum allowed API request -- throttling limit. _RequestThrottledException :: AsError a => Fold a ServiceError -- | The specified resource does not exist. _ResourceNotFoundException :: AsError a => Fold a ServiceError -- | Your current service quotas do not allow you to perform this action. _ServiceQuotaExceededException :: AsError a => Fold a ServiceError -- | The input fails to satisfy the constraints of the EBS direct APIs. _ValidationException :: AsError a => Fold a ServiceError newtype ChecksumAggregationMethod ChecksumAggregationMethod' :: Text -> ChecksumAggregationMethod [fromChecksumAggregationMethod] :: ChecksumAggregationMethod -> Text pattern ChecksumAggregationMethod_LINEAR :: ChecksumAggregationMethod newtype ChecksumAlgorithm ChecksumAlgorithm' :: Text -> ChecksumAlgorithm [fromChecksumAlgorithm] :: ChecksumAlgorithm -> Text pattern ChecksumAlgorithm_SHA256 :: ChecksumAlgorithm newtype Status Status' :: Text -> Status [fromStatus] :: Status -> Text pattern Status_Completed :: Status pattern Status_Error :: Status pattern Status_Pending :: Status -- | A block of data in an Amazon Elastic Block Store snapshot. -- -- See: newBlock smart constructor. data Block Block' :: Maybe Natural -> Maybe Text -> Block -- | The block index. [$sel:blockIndex:Block'] :: Block -> Maybe Natural -- | The block token for the block index. [$sel:blockToken:Block'] :: Block -> Maybe Text -- | Create a value of Block 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:blockIndex:Block', block_blockIndex - The block -- index. -- -- $sel:blockToken:Block', block_blockToken - The block -- token for the block index. newBlock :: Block -- | The block index. block_blockIndex :: Lens' Block (Maybe Natural) -- | The block token for the block index. block_blockToken :: Lens' Block (Maybe Text) -- | A block of data in an Amazon Elastic Block Store snapshot that is -- different from another snapshot of the same volume/snapshot lineage. -- -- See: newChangedBlock smart constructor. data ChangedBlock ChangedBlock' :: Maybe Natural -> Maybe Text -> Maybe Text -> ChangedBlock -- | The block index. [$sel:blockIndex:ChangedBlock'] :: ChangedBlock -> Maybe Natural -- | The block token for the block index of the FirstSnapshotId -- specified in the ListChangedBlocks operation. This value is -- absent if the first snapshot does not have the changed block that is -- on the second snapshot. [$sel:firstBlockToken:ChangedBlock'] :: ChangedBlock -> Maybe Text -- | The block token for the block index of the SecondSnapshotId -- specified in the ListChangedBlocks operation. [$sel:secondBlockToken:ChangedBlock'] :: ChangedBlock -> Maybe Text -- | Create a value of ChangedBlock 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:blockIndex:ChangedBlock', changedBlock_blockIndex - -- The block index. -- -- $sel:firstBlockToken:ChangedBlock', -- changedBlock_firstBlockToken - The block token for the block -- index of the FirstSnapshotId specified in the -- ListChangedBlocks operation. This value is absent if the -- first snapshot does not have the changed block that is on the second -- snapshot. -- -- $sel:secondBlockToken:ChangedBlock', -- changedBlock_secondBlockToken - The block token for the block -- index of the SecondSnapshotId specified in the -- ListChangedBlocks operation. newChangedBlock :: ChangedBlock -- | The block index. changedBlock_blockIndex :: Lens' ChangedBlock (Maybe Natural) -- | The block token for the block index of the FirstSnapshotId -- specified in the ListChangedBlocks operation. This value is -- absent if the first snapshot does not have the changed block that is -- on the second snapshot. changedBlock_firstBlockToken :: Lens' ChangedBlock (Maybe Text) -- | The block token for the block index of the SecondSnapshotId -- specified in the ListChangedBlocks operation. changedBlock_secondBlockToken :: Lens' ChangedBlock (Maybe Text) -- | Describes a tag. -- -- See: newTag smart constructor. data Tag Tag' :: Maybe Text -> Maybe Text -> Tag -- | The key of the tag. [$sel:key:Tag'] :: Tag -> Maybe Text -- | The value of the tag. [$sel:value:Tag'] :: Tag -> Maybe Text -- | Create a value of Tag 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:key:Tag', tag_key - The key of the tag. -- -- $sel:value:Tag', tag_value - The value of the tag. newTag :: Tag -- | The key of the tag. tag_key :: Lens' Tag (Maybe Text) -- | The value of the tag. tag_value :: Lens' Tag (Maybe Text) -- | Creates a new Amazon EBS snapshot. The new snapshot enters the -- pending state after the request completes. -- -- After creating the snapshot, use PutSnapshotBlock to write -- blocks of data to the snapshot. module Amazonka.EBS.StartSnapshot -- | See: newStartSnapshot smart constructor. data StartSnapshot StartSnapshot' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe (Sensitive Text) -> Maybe Text -> Maybe [Tag] -> Maybe Natural -> Natural -> StartSnapshot -- | A unique, case-sensitive identifier that you provide to ensure the -- idempotency of the request. Idempotency ensures that an API request -- completes only once. With an idempotent request, if the original -- request completes successfully. The subsequent retries with the same -- client token return the result from the original successful request -- and they have no additional effect. -- -- If you do not specify a client token, one is automatically generated -- by the Amazon Web Services SDK. -- -- For more information, see Idempotency for StartSnapshot API in -- the Amazon Elastic Compute Cloud User Guide. [$sel:clientToken:StartSnapshot'] :: StartSnapshot -> Maybe Text -- | A description for the snapshot. [$sel:description:StartSnapshot'] :: StartSnapshot -> Maybe Text -- | Indicates whether to encrypt the snapshot. -- -- You can't specify Encrypted and ParentSnapshotId in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. [$sel:encrypted:StartSnapshot'] :: StartSnapshot -> Maybe Bool -- | The Amazon Resource Name (ARN) of the Key Management Service (KMS) key -- to be used to encrypt the snapshot. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. [$sel:kmsKeyArn:StartSnapshot'] :: StartSnapshot -> Maybe (Sensitive Text) -- | The ID of the parent snapshot. If there is no parent snapshot, or if -- you are creating the first snapshot for an on-premises volume, omit -- this parameter. -- -- You can't specify ParentSnapshotId and Encrypted in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- If you specify an encrypted parent snapshot, you must have permission -- to use the KMS key that was used to encrypt the parent snapshot. For -- more information, see Permissions to use Key Management Service -- keys in the Amazon Elastic Compute Cloud User Guide. [$sel:parentSnapshotId:StartSnapshot'] :: StartSnapshot -> Maybe Text -- | The tags to apply to the snapshot. [$sel:tags:StartSnapshot'] :: StartSnapshot -> Maybe [Tag] -- | The amount of time (in minutes) after which the snapshot is -- automatically cancelled if: -- -- -- -- If no value is specified, the timeout defaults to 60 minutes. [$sel:timeout:StartSnapshot'] :: StartSnapshot -> Maybe Natural -- | The size of the volume, in GiB. The maximum size is 65536 GiB -- (64 TiB). [$sel:volumeSize:StartSnapshot'] :: StartSnapshot -> Natural -- | Create a value of StartSnapshot 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:clientToken:StartSnapshot', -- startSnapshot_clientToken - A unique, case-sensitive identifier -- that you provide to ensure the idempotency of the request. Idempotency -- ensures that an API request completes only once. With an idempotent -- request, if the original request completes successfully. The -- subsequent retries with the same client token return the result from -- the original successful request and they have no additional effect. -- -- If you do not specify a client token, one is automatically generated -- by the Amazon Web Services SDK. -- -- For more information, see Idempotency for StartSnapshot API in -- the Amazon Elastic Compute Cloud User Guide. -- -- StartSnapshot, startSnapshot_description - A description -- for the snapshot. -- -- $sel:encrypted:StartSnapshot', startSnapshot_encrypted - -- Indicates whether to encrypt the snapshot. -- -- You can't specify Encrypted and ParentSnapshotId in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. -- -- StartSnapshot, startSnapshot_kmsKeyArn - The Amazon -- Resource Name (ARN) of the Key Management Service (KMS) key to be used -- to encrypt the snapshot. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. -- -- StartSnapshot, startSnapshot_parentSnapshotId - The ID -- of the parent snapshot. If there is no parent snapshot, or if you are -- creating the first snapshot for an on-premises volume, omit this -- parameter. -- -- You can't specify ParentSnapshotId and Encrypted in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- If you specify an encrypted parent snapshot, you must have permission -- to use the KMS key that was used to encrypt the parent snapshot. For -- more information, see Permissions to use Key Management Service -- keys in the Amazon Elastic Compute Cloud User Guide. -- -- StartSnapshot, startSnapshot_tags - The tags to apply to -- the snapshot. -- -- $sel:timeout:StartSnapshot', startSnapshot_timeout - The -- amount of time (in minutes) after which the snapshot is automatically -- cancelled if: -- -- -- -- If no value is specified, the timeout defaults to 60 minutes. -- -- StartSnapshot, startSnapshot_volumeSize - The size of -- the volume, in GiB. The maximum size is 65536 GiB (64 TiB). newStartSnapshot :: Natural -> StartSnapshot -- | A unique, case-sensitive identifier that you provide to ensure the -- idempotency of the request. Idempotency ensures that an API request -- completes only once. With an idempotent request, if the original -- request completes successfully. The subsequent retries with the same -- client token return the result from the original successful request -- and they have no additional effect. -- -- If you do not specify a client token, one is automatically generated -- by the Amazon Web Services SDK. -- -- For more information, see Idempotency for StartSnapshot API in -- the Amazon Elastic Compute Cloud User Guide. startSnapshot_clientToken :: Lens' StartSnapshot (Maybe Text) -- | A description for the snapshot. startSnapshot_description :: Lens' StartSnapshot (Maybe Text) -- | Indicates whether to encrypt the snapshot. -- -- You can't specify Encrypted and ParentSnapshotId in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. startSnapshot_encrypted :: Lens' StartSnapshot (Maybe Bool) -- | The Amazon Resource Name (ARN) of the Key Management Service (KMS) key -- to be used to encrypt the snapshot. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. startSnapshot_kmsKeyArn :: Lens' StartSnapshot (Maybe Text) -- | The ID of the parent snapshot. If there is no parent snapshot, or if -- you are creating the first snapshot for an on-premises volume, omit -- this parameter. -- -- You can't specify ParentSnapshotId and Encrypted in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- If you specify an encrypted parent snapshot, you must have permission -- to use the KMS key that was used to encrypt the parent snapshot. For -- more information, see Permissions to use Key Management Service -- keys in the Amazon Elastic Compute Cloud User Guide. startSnapshot_parentSnapshotId :: Lens' StartSnapshot (Maybe Text) -- | The tags to apply to the snapshot. startSnapshot_tags :: Lens' StartSnapshot (Maybe [Tag]) -- | The amount of time (in minutes) after which the snapshot is -- automatically cancelled if: -- -- -- -- If no value is specified, the timeout defaults to 60 minutes. startSnapshot_timeout :: Lens' StartSnapshot (Maybe Natural) -- | The size of the volume, in GiB. The maximum size is 65536 GiB -- (64 TiB). startSnapshot_volumeSize :: Lens' StartSnapshot Natural -- | See: newStartSnapshotResponse smart constructor. data StartSnapshotResponse StartSnapshotResponse' :: Maybe Int -> Maybe Text -> Maybe (Sensitive Text) -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Status -> Maybe [Tag] -> Maybe Natural -> Int -> StartSnapshotResponse -- | The size of the blocks in the snapshot, in bytes. [$sel:blockSize:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe Int -- | The description of the snapshot. [$sel:description:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe Text -- | The Amazon Resource Name (ARN) of the Key Management Service (KMS) key -- used to encrypt the snapshot. [$sel:kmsKeyArn:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe (Sensitive Text) -- | The Amazon Web Services account ID of the snapshot owner. [$sel:ownerId:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe Text -- | The ID of the parent snapshot. [$sel:parentSnapshotId:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe Text -- | The ID of the snapshot. [$sel:snapshotId:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe Text -- | The timestamp when the snapshot was created. [$sel:startTime:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe POSIX -- | The status of the snapshot. [$sel:status:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe Status -- | The tags applied to the snapshot. You can specify up to 50 tags per -- snapshot. For more information, see Tagging your Amazon EC2 -- resources in the Amazon Elastic Compute Cloud User Guide. [$sel:tags:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe [Tag] -- | The size of the volume, in GiB. [$sel:volumeSize:StartSnapshotResponse'] :: StartSnapshotResponse -> Maybe Natural -- | The response's http status code. [$sel:httpStatus:StartSnapshotResponse'] :: StartSnapshotResponse -> Int -- | Create a value of StartSnapshotResponse 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:blockSize:StartSnapshotResponse', -- startSnapshotResponse_blockSize - The size of the blocks in the -- snapshot, in bytes. -- -- StartSnapshot, startSnapshotResponse_description - The -- description of the snapshot. -- -- StartSnapshot, startSnapshotResponse_kmsKeyArn - The -- Amazon Resource Name (ARN) of the Key Management Service (KMS) key -- used to encrypt the snapshot. -- -- $sel:ownerId:StartSnapshotResponse', -- startSnapshotResponse_ownerId - The Amazon Web Services account -- ID of the snapshot owner. -- -- StartSnapshot, startSnapshotResponse_parentSnapshotId - -- The ID of the parent snapshot. -- -- $sel:snapshotId:StartSnapshotResponse', -- startSnapshotResponse_snapshotId - The ID of the snapshot. -- -- $sel:startTime:StartSnapshotResponse', -- startSnapshotResponse_startTime - The timestamp when the -- snapshot was created. -- -- $sel:status:StartSnapshotResponse', -- startSnapshotResponse_status - The status of the snapshot. -- -- StartSnapshot, startSnapshotResponse_tags - The tags -- applied to the snapshot. You can specify up to 50 tags per snapshot. -- For more information, see Tagging your Amazon EC2 resources in -- the Amazon Elastic Compute Cloud User Guide. -- -- StartSnapshot, startSnapshotResponse_volumeSize - The -- size of the volume, in GiB. -- -- $sel:httpStatus:StartSnapshotResponse', -- startSnapshotResponse_httpStatus - The response's http status -- code. newStartSnapshotResponse :: Int -> StartSnapshotResponse -- | The size of the blocks in the snapshot, in bytes. startSnapshotResponse_blockSize :: Lens' StartSnapshotResponse (Maybe Int) -- | The description of the snapshot. startSnapshotResponse_description :: Lens' StartSnapshotResponse (Maybe Text) -- | The Amazon Resource Name (ARN) of the Key Management Service (KMS) key -- used to encrypt the snapshot. startSnapshotResponse_kmsKeyArn :: Lens' StartSnapshotResponse (Maybe Text) -- | The Amazon Web Services account ID of the snapshot owner. startSnapshotResponse_ownerId :: Lens' StartSnapshotResponse (Maybe Text) -- | The ID of the parent snapshot. startSnapshotResponse_parentSnapshotId :: Lens' StartSnapshotResponse (Maybe Text) -- | The ID of the snapshot. startSnapshotResponse_snapshotId :: Lens' StartSnapshotResponse (Maybe Text) -- | The timestamp when the snapshot was created. startSnapshotResponse_startTime :: Lens' StartSnapshotResponse (Maybe UTCTime) -- | The status of the snapshot. startSnapshotResponse_status :: Lens' StartSnapshotResponse (Maybe Status) -- | The tags applied to the snapshot. You can specify up to 50 tags per -- snapshot. For more information, see Tagging your Amazon EC2 -- resources in the Amazon Elastic Compute Cloud User Guide. startSnapshotResponse_tags :: Lens' StartSnapshotResponse (Maybe [Tag]) -- | The size of the volume, in GiB. startSnapshotResponse_volumeSize :: Lens' StartSnapshotResponse (Maybe Natural) -- | The response's http status code. startSnapshotResponse_httpStatus :: Lens' StartSnapshotResponse Int instance GHC.Generics.Generic Amazonka.EBS.StartSnapshot.StartSnapshot instance GHC.Show.Show Amazonka.EBS.StartSnapshot.StartSnapshot instance GHC.Classes.Eq Amazonka.EBS.StartSnapshot.StartSnapshot instance GHC.Generics.Generic Amazonka.EBS.StartSnapshot.StartSnapshotResponse instance GHC.Show.Show Amazonka.EBS.StartSnapshot.StartSnapshotResponse instance GHC.Classes.Eq Amazonka.EBS.StartSnapshot.StartSnapshotResponse instance Amazonka.Types.AWSRequest Amazonka.EBS.StartSnapshot.StartSnapshot instance Control.DeepSeq.NFData Amazonka.EBS.StartSnapshot.StartSnapshotResponse instance Data.Hashable.Class.Hashable Amazonka.EBS.StartSnapshot.StartSnapshot instance Control.DeepSeq.NFData Amazonka.EBS.StartSnapshot.StartSnapshot instance Amazonka.Data.Headers.ToHeaders Amazonka.EBS.StartSnapshot.StartSnapshot instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.EBS.StartSnapshot.StartSnapshot instance Amazonka.Data.Path.ToPath Amazonka.EBS.StartSnapshot.StartSnapshot instance Amazonka.Data.Query.ToQuery Amazonka.EBS.StartSnapshot.StartSnapshot -- | Writes a block of data to a snapshot. If the specified block contains -- data, the existing data is overwritten. The target snapshot must be in -- the pending state. -- -- Data written to a snapshot must be aligned with 512-KiB sectors. module Amazonka.EBS.PutSnapshotBlock -- | See: newPutSnapshotBlock smart constructor. data PutSnapshotBlock PutSnapshotBlock' :: Maybe Natural -> Text -> Natural -> Int -> Text -> ChecksumAlgorithm -> HashedBody -> PutSnapshotBlock -- | The progress of the write process, as a percentage. [$sel:progress:PutSnapshotBlock'] :: PutSnapshotBlock -> Maybe Natural -- | The ID of the snapshot. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide.. [$sel:snapshotId:PutSnapshotBlock'] :: PutSnapshotBlock -> Text -- | The block index of the block in which to write the data. A block index -- is a logical index in units of 512 KiB blocks. To identify -- the block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. [$sel:blockIndex:PutSnapshotBlock'] :: PutSnapshotBlock -> Natural -- | The size of the data to write to the block, in bytes. Currently, the -- only supported size is 524288 bytes. -- -- Valid values: 524288 [$sel:dataLength:PutSnapshotBlock'] :: PutSnapshotBlock -> Int -- | A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums -- are supported. [$sel:checksum:PutSnapshotBlock'] :: PutSnapshotBlock -> Text -- | The algorithm used to generate the checksum. Currently, the only -- supported algorithm is SHA256. [$sel:checksumAlgorithm:PutSnapshotBlock'] :: PutSnapshotBlock -> ChecksumAlgorithm -- | The data to write to the block. -- -- The block data is not signed as part of the Signature Version 4 -- signing process. As a result, you must generate and provide a -- Base64-encoded SHA256 checksum for the block data using the -- x-amz-Checksum header. Also, you must specify the checksum -- algorithm using the x-amz-Checksum-Algorithm header. The -- checksum that you provide is part of the Signature Version 4 signing -- process. It is validated against a checksum generated by Amazon EBS to -- ensure the validity and authenticity of the data. If the checksums do -- not correspond, the request fails. For more information, see Using -- checksums with the EBS direct APIs in the Amazon Elastic -- Compute Cloud User Guide. [$sel:blockData:PutSnapshotBlock'] :: PutSnapshotBlock -> HashedBody -- | Create a value of PutSnapshotBlock 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:progress:PutSnapshotBlock', -- putSnapshotBlock_progress - The progress of the write process, -- as a percentage. -- -- $sel:snapshotId:PutSnapshotBlock', -- putSnapshotBlock_snapshotId - The ID of the snapshot. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide.. -- -- PutSnapshotBlock, putSnapshotBlock_blockIndex - The -- block index of the block in which to write the data. A block index is -- a logical index in units of 512 KiB blocks. To identify the -- block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. -- -- $sel:dataLength:PutSnapshotBlock', -- putSnapshotBlock_dataLength - The size of the data to write to -- the block, in bytes. Currently, the only supported size is -- 524288 bytes. -- -- Valid values: 524288 -- -- PutSnapshotBlock, putSnapshotBlock_checksum - A -- Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are -- supported. -- -- PutSnapshotBlock, putSnapshotBlock_checksumAlgorithm - -- The algorithm used to generate the checksum. Currently, the only -- supported algorithm is SHA256. -- -- $sel:blockData:PutSnapshotBlock', -- putSnapshotBlock_blockData - The data to write to the block. -- -- The block data is not signed as part of the Signature Version 4 -- signing process. As a result, you must generate and provide a -- Base64-encoded SHA256 checksum for the block data using the -- x-amz-Checksum header. Also, you must specify the checksum -- algorithm using the x-amz-Checksum-Algorithm header. The -- checksum that you provide is part of the Signature Version 4 signing -- process. It is validated against a checksum generated by Amazon EBS to -- ensure the validity and authenticity of the data. If the checksums do -- not correspond, the request fails. For more information, see Using -- checksums with the EBS direct APIs in the Amazon Elastic -- Compute Cloud User Guide. newPutSnapshotBlock :: Text -> Natural -> Int -> Text -> ChecksumAlgorithm -> HashedBody -> PutSnapshotBlock -- | The progress of the write process, as a percentage. putSnapshotBlock_progress :: Lens' PutSnapshotBlock (Maybe Natural) -- | The ID of the snapshot. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide.. putSnapshotBlock_snapshotId :: Lens' PutSnapshotBlock Text -- | The block index of the block in which to write the data. A block index -- is a logical index in units of 512 KiB blocks. To identify -- the block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. putSnapshotBlock_blockIndex :: Lens' PutSnapshotBlock Natural -- | The size of the data to write to the block, in bytes. Currently, the -- only supported size is 524288 bytes. -- -- Valid values: 524288 putSnapshotBlock_dataLength :: Lens' PutSnapshotBlock Int -- | A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums -- are supported. putSnapshotBlock_checksum :: Lens' PutSnapshotBlock Text -- | The algorithm used to generate the checksum. Currently, the only -- supported algorithm is SHA256. putSnapshotBlock_checksumAlgorithm :: Lens' PutSnapshotBlock ChecksumAlgorithm -- | The data to write to the block. -- -- The block data is not signed as part of the Signature Version 4 -- signing process. As a result, you must generate and provide a -- Base64-encoded SHA256 checksum for the block data using the -- x-amz-Checksum header. Also, you must specify the checksum -- algorithm using the x-amz-Checksum-Algorithm header. The -- checksum that you provide is part of the Signature Version 4 signing -- process. It is validated against a checksum generated by Amazon EBS to -- ensure the validity and authenticity of the data. If the checksums do -- not correspond, the request fails. For more information, see Using -- checksums with the EBS direct APIs in the Amazon Elastic -- Compute Cloud User Guide. putSnapshotBlock_blockData :: Lens' PutSnapshotBlock HashedBody -- | See: newPutSnapshotBlockResponse smart constructor. data PutSnapshotBlockResponse PutSnapshotBlockResponse' :: Maybe Text -> Maybe ChecksumAlgorithm -> Int -> PutSnapshotBlockResponse -- | The SHA256 checksum generated for the block data by Amazon EBS. [$sel:checksum:PutSnapshotBlockResponse'] :: PutSnapshotBlockResponse -> Maybe Text -- | The algorithm used by Amazon EBS to generate the checksum. [$sel:checksumAlgorithm:PutSnapshotBlockResponse'] :: PutSnapshotBlockResponse -> Maybe ChecksumAlgorithm -- | The response's http status code. [$sel:httpStatus:PutSnapshotBlockResponse'] :: PutSnapshotBlockResponse -> Int -- | Create a value of PutSnapshotBlockResponse 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: -- -- PutSnapshotBlock, putSnapshotBlockResponse_checksum - -- The SHA256 checksum generated for the block data by Amazon EBS. -- -- PutSnapshotBlock, -- putSnapshotBlockResponse_checksumAlgorithm - The algorithm used -- by Amazon EBS to generate the checksum. -- -- $sel:httpStatus:PutSnapshotBlockResponse', -- putSnapshotBlockResponse_httpStatus - The response's http -- status code. newPutSnapshotBlockResponse :: Int -> PutSnapshotBlockResponse -- | The SHA256 checksum generated for the block data by Amazon EBS. putSnapshotBlockResponse_checksum :: Lens' PutSnapshotBlockResponse (Maybe Text) -- | The algorithm used by Amazon EBS to generate the checksum. putSnapshotBlockResponse_checksumAlgorithm :: Lens' PutSnapshotBlockResponse (Maybe ChecksumAlgorithm) -- | The response's http status code. putSnapshotBlockResponse_httpStatus :: Lens' PutSnapshotBlockResponse Int instance GHC.Generics.Generic Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlock instance GHC.Show.Show Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlock instance GHC.Generics.Generic Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlockResponse instance GHC.Show.Show Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlockResponse instance GHC.Read.Read Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlockResponse instance GHC.Classes.Eq Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlockResponse instance Amazonka.Types.AWSRequest Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlock instance Control.DeepSeq.NFData Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlockResponse instance Amazonka.Data.Body.ToBody Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlock instance Amazonka.Data.Headers.ToHeaders Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlock instance Amazonka.Data.Path.ToPath Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlock instance Amazonka.Data.Query.ToQuery Amazonka.EBS.PutSnapshotBlock.PutSnapshotBlock -- | Returns information about the blocks in an Amazon Elastic Block Store -- snapshot. module Amazonka.EBS.ListSnapshotBlocks -- | See: newListSnapshotBlocks smart constructor. data ListSnapshotBlocks ListSnapshotBlocks' :: Maybe Natural -> Maybe Text -> Maybe Natural -> Text -> ListSnapshotBlocks -- | The maximum number of blocks to be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. [$sel:maxResults:ListSnapshotBlocks'] :: ListSnapshotBlocks -> Maybe Natural -- | The token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. [$sel:nextToken:ListSnapshotBlocks'] :: ListSnapshotBlocks -> Maybe Text -- | The block index from which the list should start. The list in the -- response will start from this block index or the next valid block -- index in the snapshot. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. [$sel:startingBlockIndex:ListSnapshotBlocks'] :: ListSnapshotBlocks -> Maybe Natural -- | The ID of the snapshot from which to get block indexes and block -- tokens. [$sel:snapshotId:ListSnapshotBlocks'] :: ListSnapshotBlocks -> Text -- | Create a value of ListSnapshotBlocks 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:maxResults:ListSnapshotBlocks', -- listSnapshotBlocks_maxResults - The maximum number of blocks to -- be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. -- -- ListSnapshotBlocks, listSnapshotBlocks_nextToken - The -- token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. -- -- $sel:startingBlockIndex:ListSnapshotBlocks', -- listSnapshotBlocks_startingBlockIndex - The block index from -- which the list should start. The list in the response will start from -- this block index or the next valid block index in the snapshot. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. -- -- $sel:snapshotId:ListSnapshotBlocks', -- listSnapshotBlocks_snapshotId - The ID of the snapshot from -- which to get block indexes and block tokens. newListSnapshotBlocks :: Text -> ListSnapshotBlocks -- | The maximum number of blocks to be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. listSnapshotBlocks_maxResults :: Lens' ListSnapshotBlocks (Maybe Natural) -- | The token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. listSnapshotBlocks_nextToken :: Lens' ListSnapshotBlocks (Maybe Text) -- | The block index from which the list should start. The list in the -- response will start from this block index or the next valid block -- index in the snapshot. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. listSnapshotBlocks_startingBlockIndex :: Lens' ListSnapshotBlocks (Maybe Natural) -- | The ID of the snapshot from which to get block indexes and block -- tokens. listSnapshotBlocks_snapshotId :: Lens' ListSnapshotBlocks Text -- | See: newListSnapshotBlocksResponse smart constructor. data ListSnapshotBlocksResponse ListSnapshotBlocksResponse' :: Maybe Int -> Maybe (Sensitive [Block]) -> Maybe POSIX -> Maybe Text -> Maybe Natural -> Int -> ListSnapshotBlocksResponse -- | The size of the blocks in the snapshot, in bytes. [$sel:blockSize:ListSnapshotBlocksResponse'] :: ListSnapshotBlocksResponse -> Maybe Int -- | An array of objects containing information about the blocks. [$sel:blocks:ListSnapshotBlocksResponse'] :: ListSnapshotBlocksResponse -> Maybe (Sensitive [Block]) -- | The time when the BlockToken expires. [$sel:expiryTime:ListSnapshotBlocksResponse'] :: ListSnapshotBlocksResponse -> Maybe POSIX -- | The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. [$sel:nextToken:ListSnapshotBlocksResponse'] :: ListSnapshotBlocksResponse -> Maybe Text -- | The size of the volume in GB. [$sel:volumeSize:ListSnapshotBlocksResponse'] :: ListSnapshotBlocksResponse -> Maybe Natural -- | The response's http status code. [$sel:httpStatus:ListSnapshotBlocksResponse'] :: ListSnapshotBlocksResponse -> Int -- | Create a value of ListSnapshotBlocksResponse 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:blockSize:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_blockSize - The size of the blocks -- in the snapshot, in bytes. -- -- $sel:blocks:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_blocks - An array of objects -- containing information about the blocks. -- -- $sel:expiryTime:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_expiryTime - The time when the -- BlockToken expires. -- -- ListSnapshotBlocks, listSnapshotBlocksResponse_nextToken -- - The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. -- -- $sel:volumeSize:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_volumeSize - The size of the volume -- in GB. -- -- $sel:httpStatus:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_httpStatus - The response's http -- status code. newListSnapshotBlocksResponse :: Int -> ListSnapshotBlocksResponse -- | The size of the blocks in the snapshot, in bytes. listSnapshotBlocksResponse_blockSize :: Lens' ListSnapshotBlocksResponse (Maybe Int) -- | An array of objects containing information about the blocks. listSnapshotBlocksResponse_blocks :: Lens' ListSnapshotBlocksResponse (Maybe [Block]) -- | The time when the BlockToken expires. listSnapshotBlocksResponse_expiryTime :: Lens' ListSnapshotBlocksResponse (Maybe UTCTime) -- | The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. listSnapshotBlocksResponse_nextToken :: Lens' ListSnapshotBlocksResponse (Maybe Text) -- | The size of the volume in GB. listSnapshotBlocksResponse_volumeSize :: Lens' ListSnapshotBlocksResponse (Maybe Natural) -- | The response's http status code. listSnapshotBlocksResponse_httpStatus :: Lens' ListSnapshotBlocksResponse Int instance GHC.Generics.Generic Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks instance GHC.Show.Show Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks instance GHC.Read.Read Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks instance GHC.Classes.Eq Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks instance GHC.Generics.Generic Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocksResponse instance GHC.Show.Show Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocksResponse instance GHC.Classes.Eq Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocksResponse instance Amazonka.Types.AWSRequest Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks instance Control.DeepSeq.NFData Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocksResponse instance Data.Hashable.Class.Hashable Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks instance Control.DeepSeq.NFData Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks instance Amazonka.Data.Headers.ToHeaders Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks instance Amazonka.Data.Path.ToPath Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks instance Amazonka.Data.Query.ToQuery Amazonka.EBS.ListSnapshotBlocks.ListSnapshotBlocks -- | Returns information about the blocks that are different between two -- Amazon Elastic Block Store snapshots of the same volume/snapshot -- lineage. module Amazonka.EBS.ListChangedBlocks -- | See: newListChangedBlocks smart constructor. data ListChangedBlocks ListChangedBlocks' :: Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Natural -> Text -> ListChangedBlocks -- | The ID of the first snapshot to use for the comparison. -- -- The FirstSnapshotID parameter must be specified with a -- SecondSnapshotId parameter; otherwise, an error occurs. [$sel:firstSnapshotId:ListChangedBlocks'] :: ListChangedBlocks -> Maybe Text -- | The maximum number of blocks to be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. [$sel:maxResults:ListChangedBlocks'] :: ListChangedBlocks -> Maybe Natural -- | The token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. [$sel:nextToken:ListChangedBlocks'] :: ListChangedBlocks -> Maybe Text -- | The block index from which the comparison should start. -- -- The list in the response will start from this block index or the next -- valid block index in the snapshots. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. [$sel:startingBlockIndex:ListChangedBlocks'] :: ListChangedBlocks -> Maybe Natural -- | The ID of the second snapshot to use for the comparison. -- -- The SecondSnapshotId parameter must be specified with a -- FirstSnapshotID parameter; otherwise, an error occurs. [$sel:secondSnapshotId:ListChangedBlocks'] :: ListChangedBlocks -> Text -- | Create a value of ListChangedBlocks 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:firstSnapshotId:ListChangedBlocks', -- listChangedBlocks_firstSnapshotId - The ID of the first -- snapshot to use for the comparison. -- -- The FirstSnapshotID parameter must be specified with a -- SecondSnapshotId parameter; otherwise, an error occurs. -- -- $sel:maxResults:ListChangedBlocks', -- listChangedBlocks_maxResults - The maximum number of blocks to -- be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. -- -- ListChangedBlocks, listChangedBlocks_nextToken - The -- token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. -- -- $sel:startingBlockIndex:ListChangedBlocks', -- listChangedBlocks_startingBlockIndex - The block index from -- which the comparison should start. -- -- The list in the response will start from this block index or the next -- valid block index in the snapshots. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. -- -- $sel:secondSnapshotId:ListChangedBlocks', -- listChangedBlocks_secondSnapshotId - The ID of the second -- snapshot to use for the comparison. -- -- The SecondSnapshotId parameter must be specified with a -- FirstSnapshotID parameter; otherwise, an error occurs. newListChangedBlocks :: Text -> ListChangedBlocks -- | The ID of the first snapshot to use for the comparison. -- -- The FirstSnapshotID parameter must be specified with a -- SecondSnapshotId parameter; otherwise, an error occurs. listChangedBlocks_firstSnapshotId :: Lens' ListChangedBlocks (Maybe Text) -- | The maximum number of blocks to be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. listChangedBlocks_maxResults :: Lens' ListChangedBlocks (Maybe Natural) -- | The token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. listChangedBlocks_nextToken :: Lens' ListChangedBlocks (Maybe Text) -- | The block index from which the comparison should start. -- -- The list in the response will start from this block index or the next -- valid block index in the snapshots. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. listChangedBlocks_startingBlockIndex :: Lens' ListChangedBlocks (Maybe Natural) -- | The ID of the second snapshot to use for the comparison. -- -- The SecondSnapshotId parameter must be specified with a -- FirstSnapshotID parameter; otherwise, an error occurs. listChangedBlocks_secondSnapshotId :: Lens' ListChangedBlocks Text -- | See: newListChangedBlocksResponse smart constructor. data ListChangedBlocksResponse ListChangedBlocksResponse' :: Maybe Int -> Maybe [Sensitive ChangedBlock] -> Maybe POSIX -> Maybe Text -> Maybe Natural -> Int -> ListChangedBlocksResponse -- | The size of the blocks in the snapshot, in bytes. [$sel:blockSize:ListChangedBlocksResponse'] :: ListChangedBlocksResponse -> Maybe Int -- | An array of objects containing information about the changed blocks. [$sel:changedBlocks:ListChangedBlocksResponse'] :: ListChangedBlocksResponse -> Maybe [Sensitive ChangedBlock] -- | The time when the BlockToken expires. [$sel:expiryTime:ListChangedBlocksResponse'] :: ListChangedBlocksResponse -> Maybe POSIX -- | The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. [$sel:nextToken:ListChangedBlocksResponse'] :: ListChangedBlocksResponse -> Maybe Text -- | The size of the volume in GB. [$sel:volumeSize:ListChangedBlocksResponse'] :: ListChangedBlocksResponse -> Maybe Natural -- | The response's http status code. [$sel:httpStatus:ListChangedBlocksResponse'] :: ListChangedBlocksResponse -> Int -- | Create a value of ListChangedBlocksResponse 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:blockSize:ListChangedBlocksResponse', -- listChangedBlocksResponse_blockSize - The size of the blocks in -- the snapshot, in bytes. -- -- $sel:changedBlocks:ListChangedBlocksResponse', -- listChangedBlocksResponse_changedBlocks - An array of objects -- containing information about the changed blocks. -- -- $sel:expiryTime:ListChangedBlocksResponse', -- listChangedBlocksResponse_expiryTime - The time when the -- BlockToken expires. -- -- ListChangedBlocks, listChangedBlocksResponse_nextToken - -- The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. -- -- $sel:volumeSize:ListChangedBlocksResponse', -- listChangedBlocksResponse_volumeSize - The size of the volume -- in GB. -- -- $sel:httpStatus:ListChangedBlocksResponse', -- listChangedBlocksResponse_httpStatus - The response's http -- status code. newListChangedBlocksResponse :: Int -> ListChangedBlocksResponse -- | The size of the blocks in the snapshot, in bytes. listChangedBlocksResponse_blockSize :: Lens' ListChangedBlocksResponse (Maybe Int) -- | An array of objects containing information about the changed blocks. listChangedBlocksResponse_changedBlocks :: Lens' ListChangedBlocksResponse (Maybe [ChangedBlock]) -- | The time when the BlockToken expires. listChangedBlocksResponse_expiryTime :: Lens' ListChangedBlocksResponse (Maybe UTCTime) -- | The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. listChangedBlocksResponse_nextToken :: Lens' ListChangedBlocksResponse (Maybe Text) -- | The size of the volume in GB. listChangedBlocksResponse_volumeSize :: Lens' ListChangedBlocksResponse (Maybe Natural) -- | The response's http status code. listChangedBlocksResponse_httpStatus :: Lens' ListChangedBlocksResponse Int instance GHC.Generics.Generic Amazonka.EBS.ListChangedBlocks.ListChangedBlocks instance GHC.Show.Show Amazonka.EBS.ListChangedBlocks.ListChangedBlocks instance GHC.Read.Read Amazonka.EBS.ListChangedBlocks.ListChangedBlocks instance GHC.Classes.Eq Amazonka.EBS.ListChangedBlocks.ListChangedBlocks instance GHC.Generics.Generic Amazonka.EBS.ListChangedBlocks.ListChangedBlocksResponse instance GHC.Show.Show Amazonka.EBS.ListChangedBlocks.ListChangedBlocksResponse instance GHC.Classes.Eq Amazonka.EBS.ListChangedBlocks.ListChangedBlocksResponse instance Amazonka.Types.AWSRequest Amazonka.EBS.ListChangedBlocks.ListChangedBlocks instance Control.DeepSeq.NFData Amazonka.EBS.ListChangedBlocks.ListChangedBlocksResponse instance Data.Hashable.Class.Hashable Amazonka.EBS.ListChangedBlocks.ListChangedBlocks instance Control.DeepSeq.NFData Amazonka.EBS.ListChangedBlocks.ListChangedBlocks instance Amazonka.Data.Headers.ToHeaders Amazonka.EBS.ListChangedBlocks.ListChangedBlocks instance Amazonka.Data.Path.ToPath Amazonka.EBS.ListChangedBlocks.ListChangedBlocks instance Amazonka.Data.Query.ToQuery Amazonka.EBS.ListChangedBlocks.ListChangedBlocks -- | Returns the data in a block in an Amazon Elastic Block Store snapshot. module Amazonka.EBS.GetSnapshotBlock -- | See: newGetSnapshotBlock smart constructor. data GetSnapshotBlock GetSnapshotBlock' :: Text -> Natural -> Text -> GetSnapshotBlock -- | The ID of the snapshot containing the block from which to get data. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide. [$sel:snapshotId:GetSnapshotBlock'] :: GetSnapshotBlock -> Text -- | The block index of the block in which to read the data. A block index -- is a logical index in units of 512 KiB blocks. To identify -- the block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. [$sel:blockIndex:GetSnapshotBlock'] :: GetSnapshotBlock -> Natural -- | The block token of the block from which to get data. You can obtain -- the BlockToken by running the ListChangedBlocks or -- ListSnapshotBlocks operations. [$sel:blockToken:GetSnapshotBlock'] :: GetSnapshotBlock -> Text -- | 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. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide. -- -- GetSnapshotBlock, getSnapshotBlock_blockIndex - The -- block index of the block in which to read the data. A block index is a -- logical index in units of 512 KiB blocks. To identify the -- block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. -- -- GetSnapshotBlock, getSnapshotBlock_blockToken - The -- block token of the block from which to get data. You can obtain the -- BlockToken by running the ListChangedBlocks or -- ListSnapshotBlocks operations. newGetSnapshotBlock :: Text -> Natural -> Text -> GetSnapshotBlock -- | The ID of the snapshot containing the block from which to get data. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide. getSnapshotBlock_snapshotId :: Lens' GetSnapshotBlock Text -- | The block index of the block in which to read the data. A block index -- is a logical index in units of 512 KiB blocks. To identify -- the block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. getSnapshotBlock_blockIndex :: Lens' GetSnapshotBlock Natural -- | The block token of the block from which to get data. You can obtain -- the BlockToken by running the ListChangedBlocks or -- ListSnapshotBlocks operations. getSnapshotBlock_blockToken :: Lens' GetSnapshotBlock Text -- | See: newGetSnapshotBlockResponse smart constructor. data GetSnapshotBlockResponse GetSnapshotBlockResponse' :: Maybe Text -> Maybe ChecksumAlgorithm -> Maybe Int -> Int -> ResponseBody -> GetSnapshotBlockResponse -- | The checksum generated for the block, which is Base64 encoded. [$sel:checksum:GetSnapshotBlockResponse'] :: GetSnapshotBlockResponse -> Maybe Text -- | The algorithm used to generate the checksum for the block, such as -- SHA256. [$sel:checksumAlgorithm:GetSnapshotBlockResponse'] :: GetSnapshotBlockResponse -> Maybe ChecksumAlgorithm -- | The size of the data in the block. [$sel:dataLength:GetSnapshotBlockResponse'] :: GetSnapshotBlockResponse -> Maybe Int -- | The response's http status code. [$sel:httpStatus:GetSnapshotBlockResponse'] :: GetSnapshotBlockResponse -> Int -- | The data content of the block. [$sel:blockData:GetSnapshotBlockResponse'] :: GetSnapshotBlockResponse -> ResponseBody -- | 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:checksum:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_checksum - The checksum generated for -- the block, which is Base64 encoded. -- -- $sel:checksumAlgorithm:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_checksumAlgorithm - The algorithm used -- to generate the checksum for the block, such as SHA256. -- -- $sel:dataLength:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_dataLength - The size of the data in -- the block. -- -- $sel:httpStatus:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_httpStatus - The response's http -- status code. -- -- $sel:blockData:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_blockData - The data content of the -- block. newGetSnapshotBlockResponse :: Int -> ResponseBody -> GetSnapshotBlockResponse -- | The checksum generated for the block, which is Base64 encoded. getSnapshotBlockResponse_checksum :: Lens' GetSnapshotBlockResponse (Maybe Text) -- | The algorithm used to generate the checksum for the block, such as -- SHA256. getSnapshotBlockResponse_checksumAlgorithm :: Lens' GetSnapshotBlockResponse (Maybe ChecksumAlgorithm) -- | The size of the data in the block. getSnapshotBlockResponse_dataLength :: Lens' GetSnapshotBlockResponse (Maybe Int) -- | The response's http status code. getSnapshotBlockResponse_httpStatus :: Lens' GetSnapshotBlockResponse Int -- | The data content of the block. getSnapshotBlockResponse_blockData :: Lens' GetSnapshotBlockResponse ResponseBody instance GHC.Generics.Generic Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock instance GHC.Show.Show Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock instance GHC.Read.Read Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock instance GHC.Classes.Eq Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock instance GHC.Generics.Generic Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlockResponse instance GHC.Show.Show Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlockResponse instance Amazonka.Types.AWSRequest Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock instance Data.Hashable.Class.Hashable Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock instance Control.DeepSeq.NFData Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock instance Amazonka.Data.Headers.ToHeaders Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock instance Amazonka.Data.Path.ToPath Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock instance Amazonka.Data.Query.ToQuery Amazonka.EBS.GetSnapshotBlock.GetSnapshotBlock -- | Seals and completes the snapshot after all of the required blocks of -- data have been written to it. Completing the snapshot changes the -- status to completed. You cannot write new blocks to a -- snapshot after it has been completed. module Amazonka.EBS.CompleteSnapshot -- | See: newCompleteSnapshot smart constructor. data CompleteSnapshot CompleteSnapshot' :: Maybe Text -> Maybe ChecksumAggregationMethod -> Maybe ChecksumAlgorithm -> Text -> Natural -> CompleteSnapshot -- | An aggregated Base-64 SHA256 checksum based on the checksums of each -- written block. -- -- To generate the aggregated checksum using the linear aggregation -- method, arrange the checksums for each written block in ascending -- order of their block index, concatenate them to form a single string, -- and then generate the checksum on the entire string using the SHA256 -- algorithm. [$sel:checksum:CompleteSnapshot'] :: CompleteSnapshot -> Maybe Text -- | The aggregation method used to generate the checksum. Currently, the -- only supported aggregation method is LINEAR. [$sel:checksumAggregationMethod:CompleteSnapshot'] :: CompleteSnapshot -> Maybe ChecksumAggregationMethod -- | The algorithm used to generate the checksum. Currently, the only -- supported algorithm is SHA256. [$sel:checksumAlgorithm:CompleteSnapshot'] :: CompleteSnapshot -> Maybe ChecksumAlgorithm -- | The ID of the snapshot. [$sel:snapshotId:CompleteSnapshot'] :: CompleteSnapshot -> Text -- | The number of blocks that were written to the snapshot. [$sel:changedBlocksCount:CompleteSnapshot'] :: CompleteSnapshot -> Natural -- | Create a value of CompleteSnapshot 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:checksum:CompleteSnapshot', -- completeSnapshot_checksum - An aggregated Base-64 SHA256 -- checksum based on the checksums of each written block. -- -- To generate the aggregated checksum using the linear aggregation -- method, arrange the checksums for each written block in ascending -- order of their block index, concatenate them to form a single string, -- and then generate the checksum on the entire string using the SHA256 -- algorithm. -- -- $sel:checksumAggregationMethod:CompleteSnapshot', -- completeSnapshot_checksumAggregationMethod - The aggregation -- method used to generate the checksum. Currently, the only supported -- aggregation method is LINEAR. -- -- $sel:checksumAlgorithm:CompleteSnapshot', -- completeSnapshot_checksumAlgorithm - The algorithm used to -- generate the checksum. Currently, the only supported algorithm is -- SHA256. -- -- $sel:snapshotId:CompleteSnapshot', -- completeSnapshot_snapshotId - The ID of the snapshot. -- -- $sel:changedBlocksCount:CompleteSnapshot', -- completeSnapshot_changedBlocksCount - The number of blocks that -- were written to the snapshot. newCompleteSnapshot :: Text -> Natural -> CompleteSnapshot -- | An aggregated Base-64 SHA256 checksum based on the checksums of each -- written block. -- -- To generate the aggregated checksum using the linear aggregation -- method, arrange the checksums for each written block in ascending -- order of their block index, concatenate them to form a single string, -- and then generate the checksum on the entire string using the SHA256 -- algorithm. completeSnapshot_checksum :: Lens' CompleteSnapshot (Maybe Text) -- | The aggregation method used to generate the checksum. Currently, the -- only supported aggregation method is LINEAR. completeSnapshot_checksumAggregationMethod :: Lens' CompleteSnapshot (Maybe ChecksumAggregationMethod) -- | The algorithm used to generate the checksum. Currently, the only -- supported algorithm is SHA256. completeSnapshot_checksumAlgorithm :: Lens' CompleteSnapshot (Maybe ChecksumAlgorithm) -- | The ID of the snapshot. completeSnapshot_snapshotId :: Lens' CompleteSnapshot Text -- | The number of blocks that were written to the snapshot. completeSnapshot_changedBlocksCount :: Lens' CompleteSnapshot Natural -- | See: newCompleteSnapshotResponse smart constructor. data CompleteSnapshotResponse CompleteSnapshotResponse' :: Maybe Status -> Int -> CompleteSnapshotResponse -- | The status of the snapshot. [$sel:status:CompleteSnapshotResponse'] :: CompleteSnapshotResponse -> Maybe Status -- | The response's http status code. [$sel:httpStatus:CompleteSnapshotResponse'] :: CompleteSnapshotResponse -> Int -- | Create a value of CompleteSnapshotResponse 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:status:CompleteSnapshotResponse', -- completeSnapshotResponse_status - The status of the snapshot. -- -- $sel:httpStatus:CompleteSnapshotResponse', -- completeSnapshotResponse_httpStatus - The response's http -- status code. newCompleteSnapshotResponse :: Int -> CompleteSnapshotResponse -- | The status of the snapshot. completeSnapshotResponse_status :: Lens' CompleteSnapshotResponse (Maybe Status) -- | The response's http status code. completeSnapshotResponse_httpStatus :: Lens' CompleteSnapshotResponse Int instance GHC.Generics.Generic Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance GHC.Show.Show Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance GHC.Read.Read Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance GHC.Classes.Eq Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance GHC.Generics.Generic Amazonka.EBS.CompleteSnapshot.CompleteSnapshotResponse instance GHC.Show.Show Amazonka.EBS.CompleteSnapshot.CompleteSnapshotResponse instance GHC.Read.Read Amazonka.EBS.CompleteSnapshot.CompleteSnapshotResponse instance GHC.Classes.Eq Amazonka.EBS.CompleteSnapshot.CompleteSnapshotResponse instance Amazonka.Types.AWSRequest Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance Control.DeepSeq.NFData Amazonka.EBS.CompleteSnapshot.CompleteSnapshotResponse instance Data.Hashable.Class.Hashable Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance Control.DeepSeq.NFData Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance Amazonka.Data.Headers.ToHeaders Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance Amazonka.Data.Path.ToPath Amazonka.EBS.CompleteSnapshot.CompleteSnapshot instance Amazonka.Data.Query.ToQuery Amazonka.EBS.CompleteSnapshot.CompleteSnapshot module Amazonka.EBS.Lens -- | An aggregated Base-64 SHA256 checksum based on the checksums of each -- written block. -- -- To generate the aggregated checksum using the linear aggregation -- method, arrange the checksums for each written block in ascending -- order of their block index, concatenate them to form a single string, -- and then generate the checksum on the entire string using the SHA256 -- algorithm. completeSnapshot_checksum :: Lens' CompleteSnapshot (Maybe Text) -- | The aggregation method used to generate the checksum. Currently, the -- only supported aggregation method is LINEAR. completeSnapshot_checksumAggregationMethod :: Lens' CompleteSnapshot (Maybe ChecksumAggregationMethod) -- | The algorithm used to generate the checksum. Currently, the only -- supported algorithm is SHA256. completeSnapshot_checksumAlgorithm :: Lens' CompleteSnapshot (Maybe ChecksumAlgorithm) -- | The ID of the snapshot. completeSnapshot_snapshotId :: Lens' CompleteSnapshot Text -- | The number of blocks that were written to the snapshot. completeSnapshot_changedBlocksCount :: Lens' CompleteSnapshot Natural -- | The status of the snapshot. completeSnapshotResponse_status :: Lens' CompleteSnapshotResponse (Maybe Status) -- | The response's http status code. completeSnapshotResponse_httpStatus :: Lens' CompleteSnapshotResponse Int -- | The ID of the snapshot containing the block from which to get data. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide. getSnapshotBlock_snapshotId :: Lens' GetSnapshotBlock Text -- | The block index of the block in which to read the data. A block index -- is a logical index in units of 512 KiB blocks. To identify -- the block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. getSnapshotBlock_blockIndex :: Lens' GetSnapshotBlock Natural -- | The block token of the block from which to get data. You can obtain -- the BlockToken by running the ListChangedBlocks or -- ListSnapshotBlocks operations. getSnapshotBlock_blockToken :: Lens' GetSnapshotBlock Text -- | The checksum generated for the block, which is Base64 encoded. getSnapshotBlockResponse_checksum :: Lens' GetSnapshotBlockResponse (Maybe Text) -- | The algorithm used to generate the checksum for the block, such as -- SHA256. getSnapshotBlockResponse_checksumAlgorithm :: Lens' GetSnapshotBlockResponse (Maybe ChecksumAlgorithm) -- | The size of the data in the block. getSnapshotBlockResponse_dataLength :: Lens' GetSnapshotBlockResponse (Maybe Int) -- | The response's http status code. getSnapshotBlockResponse_httpStatus :: Lens' GetSnapshotBlockResponse Int -- | The data content of the block. getSnapshotBlockResponse_blockData :: Lens' GetSnapshotBlockResponse ResponseBody -- | The ID of the first snapshot to use for the comparison. -- -- The FirstSnapshotID parameter must be specified with a -- SecondSnapshotId parameter; otherwise, an error occurs. listChangedBlocks_firstSnapshotId :: Lens' ListChangedBlocks (Maybe Text) -- | The maximum number of blocks to be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. listChangedBlocks_maxResults :: Lens' ListChangedBlocks (Maybe Natural) -- | The token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. listChangedBlocks_nextToken :: Lens' ListChangedBlocks (Maybe Text) -- | The block index from which the comparison should start. -- -- The list in the response will start from this block index or the next -- valid block index in the snapshots. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. listChangedBlocks_startingBlockIndex :: Lens' ListChangedBlocks (Maybe Natural) -- | The ID of the second snapshot to use for the comparison. -- -- The SecondSnapshotId parameter must be specified with a -- FirstSnapshotID parameter; otherwise, an error occurs. listChangedBlocks_secondSnapshotId :: Lens' ListChangedBlocks Text -- | The size of the blocks in the snapshot, in bytes. listChangedBlocksResponse_blockSize :: Lens' ListChangedBlocksResponse (Maybe Int) -- | An array of objects containing information about the changed blocks. listChangedBlocksResponse_changedBlocks :: Lens' ListChangedBlocksResponse (Maybe [ChangedBlock]) -- | The time when the BlockToken expires. listChangedBlocksResponse_expiryTime :: Lens' ListChangedBlocksResponse (Maybe UTCTime) -- | The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. listChangedBlocksResponse_nextToken :: Lens' ListChangedBlocksResponse (Maybe Text) -- | The size of the volume in GB. listChangedBlocksResponse_volumeSize :: Lens' ListChangedBlocksResponse (Maybe Natural) -- | The response's http status code. listChangedBlocksResponse_httpStatus :: Lens' ListChangedBlocksResponse Int -- | The maximum number of blocks to be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. listSnapshotBlocks_maxResults :: Lens' ListSnapshotBlocks (Maybe Natural) -- | The token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. listSnapshotBlocks_nextToken :: Lens' ListSnapshotBlocks (Maybe Text) -- | The block index from which the list should start. The list in the -- response will start from this block index or the next valid block -- index in the snapshot. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. listSnapshotBlocks_startingBlockIndex :: Lens' ListSnapshotBlocks (Maybe Natural) -- | The ID of the snapshot from which to get block indexes and block -- tokens. listSnapshotBlocks_snapshotId :: Lens' ListSnapshotBlocks Text -- | The size of the blocks in the snapshot, in bytes. listSnapshotBlocksResponse_blockSize :: Lens' ListSnapshotBlocksResponse (Maybe Int) -- | An array of objects containing information about the blocks. listSnapshotBlocksResponse_blocks :: Lens' ListSnapshotBlocksResponse (Maybe [Block]) -- | The time when the BlockToken expires. listSnapshotBlocksResponse_expiryTime :: Lens' ListSnapshotBlocksResponse (Maybe UTCTime) -- | The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. listSnapshotBlocksResponse_nextToken :: Lens' ListSnapshotBlocksResponse (Maybe Text) -- | The size of the volume in GB. listSnapshotBlocksResponse_volumeSize :: Lens' ListSnapshotBlocksResponse (Maybe Natural) -- | The response's http status code. listSnapshotBlocksResponse_httpStatus :: Lens' ListSnapshotBlocksResponse Int -- | The progress of the write process, as a percentage. putSnapshotBlock_progress :: Lens' PutSnapshotBlock (Maybe Natural) -- | The ID of the snapshot. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide.. putSnapshotBlock_snapshotId :: Lens' PutSnapshotBlock Text -- | The block index of the block in which to write the data. A block index -- is a logical index in units of 512 KiB blocks. To identify -- the block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. putSnapshotBlock_blockIndex :: Lens' PutSnapshotBlock Natural -- | The size of the data to write to the block, in bytes. Currently, the -- only supported size is 524288 bytes. -- -- Valid values: 524288 putSnapshotBlock_dataLength :: Lens' PutSnapshotBlock Int -- | A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums -- are supported. putSnapshotBlock_checksum :: Lens' PutSnapshotBlock Text -- | The algorithm used to generate the checksum. Currently, the only -- supported algorithm is SHA256. putSnapshotBlock_checksumAlgorithm :: Lens' PutSnapshotBlock ChecksumAlgorithm -- | The data to write to the block. -- -- The block data is not signed as part of the Signature Version 4 -- signing process. As a result, you must generate and provide a -- Base64-encoded SHA256 checksum for the block data using the -- x-amz-Checksum header. Also, you must specify the checksum -- algorithm using the x-amz-Checksum-Algorithm header. The -- checksum that you provide is part of the Signature Version 4 signing -- process. It is validated against a checksum generated by Amazon EBS to -- ensure the validity and authenticity of the data. If the checksums do -- not correspond, the request fails. For more information, see Using -- checksums with the EBS direct APIs in the Amazon Elastic -- Compute Cloud User Guide. putSnapshotBlock_blockData :: Lens' PutSnapshotBlock HashedBody -- | The SHA256 checksum generated for the block data by Amazon EBS. putSnapshotBlockResponse_checksum :: Lens' PutSnapshotBlockResponse (Maybe Text) -- | The algorithm used by Amazon EBS to generate the checksum. putSnapshotBlockResponse_checksumAlgorithm :: Lens' PutSnapshotBlockResponse (Maybe ChecksumAlgorithm) -- | The response's http status code. putSnapshotBlockResponse_httpStatus :: Lens' PutSnapshotBlockResponse Int -- | A unique, case-sensitive identifier that you provide to ensure the -- idempotency of the request. Idempotency ensures that an API request -- completes only once. With an idempotent request, if the original -- request completes successfully. The subsequent retries with the same -- client token return the result from the original successful request -- and they have no additional effect. -- -- If you do not specify a client token, one is automatically generated -- by the Amazon Web Services SDK. -- -- For more information, see Idempotency for StartSnapshot API in -- the Amazon Elastic Compute Cloud User Guide. startSnapshot_clientToken :: Lens' StartSnapshot (Maybe Text) -- | A description for the snapshot. startSnapshot_description :: Lens' StartSnapshot (Maybe Text) -- | Indicates whether to encrypt the snapshot. -- -- You can't specify Encrypted and ParentSnapshotId in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. startSnapshot_encrypted :: Lens' StartSnapshot (Maybe Bool) -- | The Amazon Resource Name (ARN) of the Key Management Service (KMS) key -- to be used to encrypt the snapshot. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. startSnapshot_kmsKeyArn :: Lens' StartSnapshot (Maybe Text) -- | The ID of the parent snapshot. If there is no parent snapshot, or if -- you are creating the first snapshot for an on-premises volume, omit -- this parameter. -- -- You can't specify ParentSnapshotId and Encrypted in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- If you specify an encrypted parent snapshot, you must have permission -- to use the KMS key that was used to encrypt the parent snapshot. For -- more information, see Permissions to use Key Management Service -- keys in the Amazon Elastic Compute Cloud User Guide. startSnapshot_parentSnapshotId :: Lens' StartSnapshot (Maybe Text) -- | The tags to apply to the snapshot. startSnapshot_tags :: Lens' StartSnapshot (Maybe [Tag]) -- | The amount of time (in minutes) after which the snapshot is -- automatically cancelled if: -- -- -- -- If no value is specified, the timeout defaults to 60 minutes. startSnapshot_timeout :: Lens' StartSnapshot (Maybe Natural) -- | The size of the volume, in GiB. The maximum size is 65536 GiB -- (64 TiB). startSnapshot_volumeSize :: Lens' StartSnapshot Natural -- | The size of the blocks in the snapshot, in bytes. startSnapshotResponse_blockSize :: Lens' StartSnapshotResponse (Maybe Int) -- | The description of the snapshot. startSnapshotResponse_description :: Lens' StartSnapshotResponse (Maybe Text) -- | The Amazon Resource Name (ARN) of the Key Management Service (KMS) key -- used to encrypt the snapshot. startSnapshotResponse_kmsKeyArn :: Lens' StartSnapshotResponse (Maybe Text) -- | The Amazon Web Services account ID of the snapshot owner. startSnapshotResponse_ownerId :: Lens' StartSnapshotResponse (Maybe Text) -- | The ID of the parent snapshot. startSnapshotResponse_parentSnapshotId :: Lens' StartSnapshotResponse (Maybe Text) -- | The ID of the snapshot. startSnapshotResponse_snapshotId :: Lens' StartSnapshotResponse (Maybe Text) -- | The timestamp when the snapshot was created. startSnapshotResponse_startTime :: Lens' StartSnapshotResponse (Maybe UTCTime) -- | The status of the snapshot. startSnapshotResponse_status :: Lens' StartSnapshotResponse (Maybe Status) -- | The tags applied to the snapshot. You can specify up to 50 tags per -- snapshot. For more information, see Tagging your Amazon EC2 -- resources in the Amazon Elastic Compute Cloud User Guide. startSnapshotResponse_tags :: Lens' StartSnapshotResponse (Maybe [Tag]) -- | The size of the volume, in GiB. startSnapshotResponse_volumeSize :: Lens' StartSnapshotResponse (Maybe Natural) -- | The response's http status code. startSnapshotResponse_httpStatus :: Lens' StartSnapshotResponse Int -- | The block index. block_blockIndex :: Lens' Block (Maybe Natural) -- | The block token for the block index. block_blockToken :: Lens' Block (Maybe Text) -- | The block index. changedBlock_blockIndex :: Lens' ChangedBlock (Maybe Natural) -- | The block token for the block index of the FirstSnapshotId -- specified in the ListChangedBlocks operation. This value is -- absent if the first snapshot does not have the changed block that is -- on the second snapshot. changedBlock_firstBlockToken :: Lens' ChangedBlock (Maybe Text) -- | The block token for the block index of the SecondSnapshotId -- specified in the ListChangedBlocks operation. changedBlock_secondBlockToken :: Lens' ChangedBlock (Maybe Text) -- | The key of the tag. tag_key :: Lens' Tag (Maybe Text) -- | The value of the tag. tag_value :: Lens' Tag (Maybe Text) module Amazonka.EBS.Waiters -- | Derived from API version 2019-11-02 of the AWS service -- descriptions, licensed under Apache 2.0. -- -- You can use the Amazon Elastic Block Store (Amazon EBS) direct APIs to -- create Amazon EBS snapshots, write data directly to your snapshots, -- read data on your snapshots, and identify the differences or changes -- between two snapshots. If you’re an independent software vendor (ISV) -- who offers backup services for Amazon EBS, the EBS direct APIs make it -- more efficient and cost-effective to track incremental changes on your -- Amazon EBS volumes through snapshots. This can be done without having -- to create new volumes from snapshots, and then use Amazon Elastic -- Compute Cloud (Amazon EC2) instances to compare the differences. -- -- You can create incremental snapshots directly from data on-premises -- into volumes and the cloud to use for quick disaster recovery. With -- the ability to write and read snapshots, you can write your -- on-premises data to an snapshot during a disaster. Then after -- recovery, you can restore it back to Amazon Web Services or -- on-premises from the snapshot. You no longer need to build and -- maintain complex mechanisms to copy data to and from Amazon EBS. -- -- This API reference provides detailed information about the actions, -- data types, parameters, and errors of the EBS direct APIs. For more -- information about the elements that make up the EBS direct APIs, and -- examples of how to use them effectively, see Accessing the Contents -- of an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud -- User Guide. For more information about the supported Amazon Web -- Services Regions, endpoints, and service quotas for the EBS direct -- APIs, see Amazon Elastic Block Store Endpoints and Quotas in -- the Amazon Web Services General Reference. module Amazonka.EBS -- | API version 2019-11-02 of the Amazon Elastic Block Store SDK -- configuration. defaultService :: Service -- | You do not have sufficient access to perform this action. _AccessDeniedException :: AsError a => Fold a ServiceError -- | You have reached the limit for concurrent API requests. For more -- information, see Optimizing performance of the EBS direct APIs -- in the Amazon Elastic Compute Cloud User Guide. _ConcurrentLimitExceededException :: AsError a => Fold a ServiceError -- | The request uses the same client token as a previous, but -- non-identical request. _ConflictException :: AsError a => Fold a ServiceError -- | An internal error has occurred. _InternalServerException :: AsError a => Fold a ServiceError -- | The number of API requests has exceed the maximum allowed API request -- throttling limit. _RequestThrottledException :: AsError a => Fold a ServiceError -- | The specified resource does not exist. _ResourceNotFoundException :: AsError a => Fold a ServiceError -- | Your current service quotas do not allow you to perform this action. _ServiceQuotaExceededException :: AsError a => Fold a ServiceError -- | The input fails to satisfy the constraints of the EBS direct APIs. _ValidationException :: AsError a => Fold a ServiceError -- | See: newCompleteSnapshot smart constructor. data CompleteSnapshot CompleteSnapshot' :: Maybe Text -> Maybe ChecksumAggregationMethod -> Maybe ChecksumAlgorithm -> Text -> Natural -> CompleteSnapshot -- | Create a value of CompleteSnapshot 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:checksum:CompleteSnapshot', -- completeSnapshot_checksum - An aggregated Base-64 SHA256 -- checksum based on the checksums of each written block. -- -- To generate the aggregated checksum using the linear aggregation -- method, arrange the checksums for each written block in ascending -- order of their block index, concatenate them to form a single string, -- and then generate the checksum on the entire string using the SHA256 -- algorithm. -- -- $sel:checksumAggregationMethod:CompleteSnapshot', -- completeSnapshot_checksumAggregationMethod - The aggregation -- method used to generate the checksum. Currently, the only supported -- aggregation method is LINEAR. -- -- $sel:checksumAlgorithm:CompleteSnapshot', -- completeSnapshot_checksumAlgorithm - The algorithm used to -- generate the checksum. Currently, the only supported algorithm is -- SHA256. -- -- $sel:snapshotId:CompleteSnapshot', -- completeSnapshot_snapshotId - The ID of the snapshot. -- -- $sel:changedBlocksCount:CompleteSnapshot', -- completeSnapshot_changedBlocksCount - The number of blocks that -- were written to the snapshot. newCompleteSnapshot :: Text -> Natural -> CompleteSnapshot -- | See: newCompleteSnapshotResponse smart constructor. data CompleteSnapshotResponse CompleteSnapshotResponse' :: Maybe Status -> Int -> CompleteSnapshotResponse -- | Create a value of CompleteSnapshotResponse 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:status:CompleteSnapshotResponse', -- completeSnapshotResponse_status - The status of the snapshot. -- -- $sel:httpStatus:CompleteSnapshotResponse', -- completeSnapshotResponse_httpStatus - The response's http -- status code. newCompleteSnapshotResponse :: Int -> CompleteSnapshotResponse -- | See: newGetSnapshotBlock smart constructor. data GetSnapshotBlock GetSnapshotBlock' :: Text -> Natural -> Text -> GetSnapshotBlock -- | 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. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide. -- -- GetSnapshotBlock, getSnapshotBlock_blockIndex - The -- block index of the block in which to read the data. A block index is a -- logical index in units of 512 KiB blocks. To identify the -- block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. -- -- GetSnapshotBlock, getSnapshotBlock_blockToken - The -- block token of the block from which to get data. You can obtain the -- BlockToken by running the ListChangedBlocks or -- ListSnapshotBlocks operations. newGetSnapshotBlock :: Text -> Natural -> Text -> GetSnapshotBlock -- | See: newGetSnapshotBlockResponse smart constructor. data GetSnapshotBlockResponse GetSnapshotBlockResponse' :: Maybe Text -> Maybe ChecksumAlgorithm -> Maybe Int -> Int -> ResponseBody -> GetSnapshotBlockResponse -- | 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:checksum:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_checksum - The checksum generated for -- the block, which is Base64 encoded. -- -- $sel:checksumAlgorithm:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_checksumAlgorithm - The algorithm used -- to generate the checksum for the block, such as SHA256. -- -- $sel:dataLength:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_dataLength - The size of the data in -- the block. -- -- $sel:httpStatus:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_httpStatus - The response's http -- status code. -- -- $sel:blockData:GetSnapshotBlockResponse', -- getSnapshotBlockResponse_blockData - The data content of the -- block. newGetSnapshotBlockResponse :: Int -> ResponseBody -> GetSnapshotBlockResponse -- | See: newListChangedBlocks smart constructor. data ListChangedBlocks ListChangedBlocks' :: Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Natural -> Text -> ListChangedBlocks -- | Create a value of ListChangedBlocks 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:firstSnapshotId:ListChangedBlocks', -- listChangedBlocks_firstSnapshotId - The ID of the first -- snapshot to use for the comparison. -- -- The FirstSnapshotID parameter must be specified with a -- SecondSnapshotId parameter; otherwise, an error occurs. -- -- $sel:maxResults:ListChangedBlocks', -- listChangedBlocks_maxResults - The maximum number of blocks to -- be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. -- -- ListChangedBlocks, listChangedBlocks_nextToken - The -- token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. -- -- $sel:startingBlockIndex:ListChangedBlocks', -- listChangedBlocks_startingBlockIndex - The block index from -- which the comparison should start. -- -- The list in the response will start from this block index or the next -- valid block index in the snapshots. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. -- -- $sel:secondSnapshotId:ListChangedBlocks', -- listChangedBlocks_secondSnapshotId - The ID of the second -- snapshot to use for the comparison. -- -- The SecondSnapshotId parameter must be specified with a -- FirstSnapshotID parameter; otherwise, an error occurs. newListChangedBlocks :: Text -> ListChangedBlocks -- | See: newListChangedBlocksResponse smart constructor. data ListChangedBlocksResponse ListChangedBlocksResponse' :: Maybe Int -> Maybe [Sensitive ChangedBlock] -> Maybe POSIX -> Maybe Text -> Maybe Natural -> Int -> ListChangedBlocksResponse -- | Create a value of ListChangedBlocksResponse 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:blockSize:ListChangedBlocksResponse', -- listChangedBlocksResponse_blockSize - The size of the blocks in -- the snapshot, in bytes. -- -- $sel:changedBlocks:ListChangedBlocksResponse', -- listChangedBlocksResponse_changedBlocks - An array of objects -- containing information about the changed blocks. -- -- $sel:expiryTime:ListChangedBlocksResponse', -- listChangedBlocksResponse_expiryTime - The time when the -- BlockToken expires. -- -- ListChangedBlocks, listChangedBlocksResponse_nextToken - -- The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. -- -- $sel:volumeSize:ListChangedBlocksResponse', -- listChangedBlocksResponse_volumeSize - The size of the volume -- in GB. -- -- $sel:httpStatus:ListChangedBlocksResponse', -- listChangedBlocksResponse_httpStatus - The response's http -- status code. newListChangedBlocksResponse :: Int -> ListChangedBlocksResponse -- | See: newListSnapshotBlocks smart constructor. data ListSnapshotBlocks ListSnapshotBlocks' :: Maybe Natural -> Maybe Text -> Maybe Natural -> Text -> ListSnapshotBlocks -- | Create a value of ListSnapshotBlocks 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:maxResults:ListSnapshotBlocks', -- listSnapshotBlocks_maxResults - The maximum number of blocks to -- be returned by the request. -- -- Even if additional blocks can be retrieved from the snapshot, the -- request can return less blocks than MaxResults or an empty -- array of blocks. -- -- To retrieve the next set of blocks from the snapshot, make another -- request with the returned NextToken value. The value of -- NextToken is null when there are no more blocks to -- return. -- -- ListSnapshotBlocks, listSnapshotBlocks_nextToken - The -- token to request the next page of results. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. -- -- $sel:startingBlockIndex:ListSnapshotBlocks', -- listSnapshotBlocks_startingBlockIndex - The block index from -- which the list should start. The list in the response will start from -- this block index or the next valid block index in the snapshot. -- -- If you specify NextToken, then StartingBlockIndex is -- ignored. -- -- $sel:snapshotId:ListSnapshotBlocks', -- listSnapshotBlocks_snapshotId - The ID of the snapshot from -- which to get block indexes and block tokens. newListSnapshotBlocks :: Text -> ListSnapshotBlocks -- | See: newListSnapshotBlocksResponse smart constructor. data ListSnapshotBlocksResponse ListSnapshotBlocksResponse' :: Maybe Int -> Maybe (Sensitive [Block]) -> Maybe POSIX -> Maybe Text -> Maybe Natural -> Int -> ListSnapshotBlocksResponse -- | Create a value of ListSnapshotBlocksResponse 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:blockSize:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_blockSize - The size of the blocks -- in the snapshot, in bytes. -- -- $sel:blocks:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_blocks - An array of objects -- containing information about the blocks. -- -- $sel:expiryTime:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_expiryTime - The time when the -- BlockToken expires. -- -- ListSnapshotBlocks, listSnapshotBlocksResponse_nextToken -- - The token to use to retrieve the next page of results. This value is -- null when there are no more results to return. -- -- $sel:volumeSize:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_volumeSize - The size of the volume -- in GB. -- -- $sel:httpStatus:ListSnapshotBlocksResponse', -- listSnapshotBlocksResponse_httpStatus - The response's http -- status code. newListSnapshotBlocksResponse :: Int -> ListSnapshotBlocksResponse -- | See: newPutSnapshotBlock smart constructor. data PutSnapshotBlock PutSnapshotBlock' :: Maybe Natural -> Text -> Natural -> Int -> Text -> ChecksumAlgorithm -> HashedBody -> PutSnapshotBlock -- | Create a value of PutSnapshotBlock 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:progress:PutSnapshotBlock', -- putSnapshotBlock_progress - The progress of the write process, -- as a percentage. -- -- $sel:snapshotId:PutSnapshotBlock', -- putSnapshotBlock_snapshotId - The ID of the snapshot. -- -- If the specified snapshot is encrypted, you must have permission to -- use the KMS key that was used to encrypt the snapshot. For more -- information, see Using encryption in the Amazon Elastic -- Compute Cloud User Guide.. -- -- PutSnapshotBlock, putSnapshotBlock_blockIndex - The -- block index of the block in which to write the data. A block index is -- a logical index in units of 512 KiB blocks. To identify the -- block index, divide the logical offset of the data in the logical -- volume by the block size (logical offset of data/524288). The -- logical offset of the data must be 512 KiB aligned. -- -- $sel:dataLength:PutSnapshotBlock', -- putSnapshotBlock_dataLength - The size of the data to write to -- the block, in bytes. Currently, the only supported size is -- 524288 bytes. -- -- Valid values: 524288 -- -- PutSnapshotBlock, putSnapshotBlock_checksum - A -- Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are -- supported. -- -- PutSnapshotBlock, putSnapshotBlock_checksumAlgorithm - -- The algorithm used to generate the checksum. Currently, the only -- supported algorithm is SHA256. -- -- $sel:blockData:PutSnapshotBlock', -- putSnapshotBlock_blockData - The data to write to the block. -- -- The block data is not signed as part of the Signature Version 4 -- signing process. As a result, you must generate and provide a -- Base64-encoded SHA256 checksum for the block data using the -- x-amz-Checksum header. Also, you must specify the checksum -- algorithm using the x-amz-Checksum-Algorithm header. The -- checksum that you provide is part of the Signature Version 4 signing -- process. It is validated against a checksum generated by Amazon EBS to -- ensure the validity and authenticity of the data. If the checksums do -- not correspond, the request fails. For more information, see Using -- checksums with the EBS direct APIs in the Amazon Elastic -- Compute Cloud User Guide. newPutSnapshotBlock :: Text -> Natural -> Int -> Text -> ChecksumAlgorithm -> HashedBody -> PutSnapshotBlock -- | See: newPutSnapshotBlockResponse smart constructor. data PutSnapshotBlockResponse PutSnapshotBlockResponse' :: Maybe Text -> Maybe ChecksumAlgorithm -> Int -> PutSnapshotBlockResponse -- | Create a value of PutSnapshotBlockResponse 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: -- -- PutSnapshotBlock, putSnapshotBlockResponse_checksum - -- The SHA256 checksum generated for the block data by Amazon EBS. -- -- PutSnapshotBlock, -- putSnapshotBlockResponse_checksumAlgorithm - The algorithm used -- by Amazon EBS to generate the checksum. -- -- $sel:httpStatus:PutSnapshotBlockResponse', -- putSnapshotBlockResponse_httpStatus - The response's http -- status code. newPutSnapshotBlockResponse :: Int -> PutSnapshotBlockResponse -- | See: newStartSnapshot smart constructor. data StartSnapshot StartSnapshot' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe (Sensitive Text) -> Maybe Text -> Maybe [Tag] -> Maybe Natural -> Natural -> StartSnapshot -- | Create a value of StartSnapshot 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:clientToken:StartSnapshot', -- startSnapshot_clientToken - A unique, case-sensitive identifier -- that you provide to ensure the idempotency of the request. Idempotency -- ensures that an API request completes only once. With an idempotent -- request, if the original request completes successfully. The -- subsequent retries with the same client token return the result from -- the original successful request and they have no additional effect. -- -- If you do not specify a client token, one is automatically generated -- by the Amazon Web Services SDK. -- -- For more information, see Idempotency for StartSnapshot API in -- the Amazon Elastic Compute Cloud User Guide. -- -- StartSnapshot, startSnapshot_description - A description -- for the snapshot. -- -- $sel:encrypted:StartSnapshot', startSnapshot_encrypted - -- Indicates whether to encrypt the snapshot. -- -- You can't specify Encrypted and ParentSnapshotId in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. -- -- StartSnapshot, startSnapshot_kmsKeyArn - The Amazon -- Resource Name (ARN) of the Key Management Service (KMS) key to be used -- to encrypt the snapshot. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- To create an encrypted snapshot, you must have permission to use the -- KMS key. For more information, see Permissions to use Key -- Management Service keys in the Amazon Elastic Compute Cloud -- User Guide. -- -- StartSnapshot, startSnapshot_parentSnapshotId - The ID -- of the parent snapshot. If there is no parent snapshot, or if you are -- creating the first snapshot for an on-premises volume, omit this -- parameter. -- -- You can't specify ParentSnapshotId and Encrypted in the -- same request. If you specify both parameters, the request fails with -- ValidationException. -- -- The encryption status of the snapshot depends on the values that you -- specify for Encrypted, KmsKeyArn, and -- ParentSnapshotId, and whether your Amazon Web Services account -- is enabled for encryption by default. For more information, see -- Using encryption in the Amazon Elastic Compute Cloud User -- Guide. -- -- If you specify an encrypted parent snapshot, you must have permission -- to use the KMS key that was used to encrypt the parent snapshot. For -- more information, see Permissions to use Key Management Service -- keys in the Amazon Elastic Compute Cloud User Guide. -- -- StartSnapshot, startSnapshot_tags - The tags to apply to -- the snapshot. -- -- $sel:timeout:StartSnapshot', startSnapshot_timeout - The -- amount of time (in minutes) after which the snapshot is automatically -- cancelled if: -- -- -- -- If no value is specified, the timeout defaults to 60 minutes. -- -- StartSnapshot, startSnapshot_volumeSize - The size of -- the volume, in GiB. The maximum size is 65536 GiB (64 TiB). newStartSnapshot :: Natural -> StartSnapshot -- | See: newStartSnapshotResponse smart constructor. data StartSnapshotResponse StartSnapshotResponse' :: Maybe Int -> Maybe Text -> Maybe (Sensitive Text) -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Status -> Maybe [Tag] -> Maybe Natural -> Int -> StartSnapshotResponse -- | Create a value of StartSnapshotResponse 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:blockSize:StartSnapshotResponse', -- startSnapshotResponse_blockSize - The size of the blocks in the -- snapshot, in bytes. -- -- StartSnapshot, startSnapshotResponse_description - The -- description of the snapshot. -- -- StartSnapshot, startSnapshotResponse_kmsKeyArn - The -- Amazon Resource Name (ARN) of the Key Management Service (KMS) key -- used to encrypt the snapshot. -- -- $sel:ownerId:StartSnapshotResponse', -- startSnapshotResponse_ownerId - The Amazon Web Services account -- ID of the snapshot owner. -- -- StartSnapshot, startSnapshotResponse_parentSnapshotId - -- The ID of the parent snapshot. -- -- $sel:snapshotId:StartSnapshotResponse', -- startSnapshotResponse_snapshotId - The ID of the snapshot. -- -- $sel:startTime:StartSnapshotResponse', -- startSnapshotResponse_startTime - The timestamp when the -- snapshot was created. -- -- $sel:status:StartSnapshotResponse', -- startSnapshotResponse_status - The status of the snapshot. -- -- StartSnapshot, startSnapshotResponse_tags - The tags -- applied to the snapshot. You can specify up to 50 tags per snapshot. -- For more information, see Tagging your Amazon EC2 resources in -- the Amazon Elastic Compute Cloud User Guide. -- -- StartSnapshot, startSnapshotResponse_volumeSize - The -- size of the volume, in GiB. -- -- $sel:httpStatus:StartSnapshotResponse', -- startSnapshotResponse_httpStatus - The response's http status -- code. newStartSnapshotResponse :: Int -> StartSnapshotResponse newtype ChecksumAggregationMethod ChecksumAggregationMethod' :: Text -> ChecksumAggregationMethod [fromChecksumAggregationMethod] :: ChecksumAggregationMethod -> Text pattern ChecksumAggregationMethod_LINEAR :: ChecksumAggregationMethod newtype ChecksumAlgorithm ChecksumAlgorithm' :: Text -> ChecksumAlgorithm [fromChecksumAlgorithm] :: ChecksumAlgorithm -> Text pattern ChecksumAlgorithm_SHA256 :: ChecksumAlgorithm newtype Status Status' :: Text -> Status [fromStatus] :: Status -> Text pattern Status_Completed :: Status pattern Status_Error :: Status pattern Status_Pending :: Status -- | A block of data in an Amazon Elastic Block Store snapshot. -- -- See: newBlock smart constructor. data Block Block' :: Maybe Natural -> Maybe Text -> Block -- | Create a value of Block 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:blockIndex:Block', block_blockIndex - The block -- index. -- -- $sel:blockToken:Block', block_blockToken - The block -- token for the block index. newBlock :: Block -- | A block of data in an Amazon Elastic Block Store snapshot that is -- different from another snapshot of the same volume/snapshot lineage. -- -- See: newChangedBlock smart constructor. data ChangedBlock ChangedBlock' :: Maybe Natural -> Maybe Text -> Maybe Text -> ChangedBlock -- | Create a value of ChangedBlock 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:blockIndex:ChangedBlock', changedBlock_blockIndex - -- The block index. -- -- $sel:firstBlockToken:ChangedBlock', -- changedBlock_firstBlockToken - The block token for the block -- index of the FirstSnapshotId specified in the -- ListChangedBlocks operation. This value is absent if the -- first snapshot does not have the changed block that is on the second -- snapshot. -- -- $sel:secondBlockToken:ChangedBlock', -- changedBlock_secondBlockToken - The block token for the block -- index of the SecondSnapshotId specified in the -- ListChangedBlocks operation. newChangedBlock :: ChangedBlock -- | Describes a tag. -- -- See: newTag smart constructor. data Tag Tag' :: Maybe Text -> Maybe Text -> Tag -- | Create a value of Tag 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:key:Tag', tag_key - The key of the tag. -- -- $sel:value:Tag', tag_value - The value of the tag. newTag :: Tag