amazonka-glacier-1.6.1: Amazon Glacier SDK.

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

Network.AWS.Glacier.CompleteVaultLock

Contents

Description

This operation completes the vault locking process by transitioning the vault lock from the InProgress state to the Locked state, which causes the vault lock policy to become unchangeable. A vault lock is put into the InProgress state by calling InitiateVaultLock . You can obtain the state of the vault lock by calling GetVaultLock . For more information about the vault locking process, Amazon Glacier Vault Lock .

This operation is idempotent. This request is always successful if the vault lock is in the Locked state and the provided lock ID matches the lock ID originally used to lock the vault.

If an invalid lock ID is passed in the request when the vault lock is in the Locked state, the operation returns an AccessDeniedException error. If an invalid lock ID is passed in the request when the vault lock is in the InProgress state, the operation throws an InvalidParameter error.

Synopsis

Creating a Request

completeVaultLock Source #

Creates a value of CompleteVaultLock with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cvlAccountId - The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '- ' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens (-) in the ID.
  • cvlVaultName - The name of the vault.
  • cvlLockId - The lockId value is the lock ID obtained from a InitiateVaultLock request.

data CompleteVaultLock Source #

The input values for CompleteVaultLock .

See: completeVaultLock smart constructor.

Instances
Eq CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Data CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CompleteVaultLock -> c CompleteVaultLock #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CompleteVaultLock #

toConstr :: CompleteVaultLock -> Constr #

dataTypeOf :: CompleteVaultLock -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CompleteVaultLock) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CompleteVaultLock) #

gmapT :: (forall b. Data b => b -> b) -> CompleteVaultLock -> CompleteVaultLock #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CompleteVaultLock -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CompleteVaultLock -> r #

gmapQ :: (forall d. Data d => d -> u) -> CompleteVaultLock -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CompleteVaultLock -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CompleteVaultLock -> m CompleteVaultLock #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CompleteVaultLock -> m CompleteVaultLock #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CompleteVaultLock -> m CompleteVaultLock #

Read CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Show CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Generic CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Associated Types

type Rep CompleteVaultLock :: Type -> Type #

Hashable CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

ToJSON CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

AWSRequest CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Associated Types

type Rs CompleteVaultLock :: Type #

ToHeaders CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

ToPath CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

ToQuery CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

NFData CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Methods

rnf :: CompleteVaultLock -> () #

type Rep CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

type Rep CompleteVaultLock = D1 (MetaData "CompleteVaultLock" "Network.AWS.Glacier.CompleteVaultLock" "amazonka-glacier-1.6.1-1jk94OYE8nZKrGhzWrcb8m" False) (C1 (MetaCons "CompleteVaultLock'" PrefixI True) (S1 (MetaSel (Just "_cvlAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_cvlVaultName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cvlLockId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CompleteVaultLock Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Request Lenses

cvlAccountId :: Lens' CompleteVaultLock Text Source #

The AccountId value is the AWS account ID. This value must match the AWS account ID associated with the credentials used to sign the request. You can either specify an AWS account ID or optionally a single '- ' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you specify your account ID, do not include any hyphens (-) in the ID.

cvlVaultName :: Lens' CompleteVaultLock Text Source #

The name of the vault.

cvlLockId :: Lens' CompleteVaultLock Text Source #

The lockId value is the lock ID obtained from a InitiateVaultLock request.

Destructuring the Response

completeVaultLockResponse :: CompleteVaultLockResponse Source #

Creates a value of CompleteVaultLockResponse with the minimum fields required to make a request.

data CompleteVaultLockResponse Source #

See: completeVaultLockResponse smart constructor.

Instances
Eq CompleteVaultLockResponse Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Data CompleteVaultLockResponse Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CompleteVaultLockResponse -> c CompleteVaultLockResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CompleteVaultLockResponse #

toConstr :: CompleteVaultLockResponse -> Constr #

dataTypeOf :: CompleteVaultLockResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CompleteVaultLockResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CompleteVaultLockResponse) #

gmapT :: (forall b. Data b => b -> b) -> CompleteVaultLockResponse -> CompleteVaultLockResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CompleteVaultLockResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CompleteVaultLockResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CompleteVaultLockResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CompleteVaultLockResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CompleteVaultLockResponse -> m CompleteVaultLockResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CompleteVaultLockResponse -> m CompleteVaultLockResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CompleteVaultLockResponse -> m CompleteVaultLockResponse #

Read CompleteVaultLockResponse Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Show CompleteVaultLockResponse Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Generic CompleteVaultLockResponse Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

Associated Types

type Rep CompleteVaultLockResponse :: Type -> Type #

NFData CompleteVaultLockResponse Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

type Rep CompleteVaultLockResponse Source # 
Instance details

Defined in Network.AWS.Glacier.CompleteVaultLock

type Rep CompleteVaultLockResponse = D1 (MetaData "CompleteVaultLockResponse" "Network.AWS.Glacier.CompleteVaultLock" "amazonka-glacier-1.6.1-1jk94OYE8nZKrGhzWrcb8m" False) (C1 (MetaCons "CompleteVaultLockResponse'" PrefixI False) (U1 :: Type -> Type))