amazonka-glacier-1.3.7: Amazon Glacier SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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.

See: AWS API Reference for CompleteVaultLock.

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:

data CompleteVaultLock Source #

The input values for CompleteVaultLock.

See: completeVaultLock smart constructor.

Instances

Eq CompleteVaultLock Source # 
Data CompleteVaultLock Source # 

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 # 
Show CompleteVaultLock Source # 
Generic CompleteVaultLock Source # 
ToJSON CompleteVaultLock Source # 
AWSRequest CompleteVaultLock Source # 
ToQuery CompleteVaultLock Source # 
ToPath CompleteVaultLock Source # 
ToHeaders CompleteVaultLock Source # 
type Rep CompleteVaultLock Source # 
type Rep CompleteVaultLock = D1 (MetaData "CompleteVaultLock" "Network.AWS.Glacier.CompleteVaultLock" "amazonka-glacier-1.3.7-Dh9gbv8nf1fFDUYZRjXX0m" False) (C1 (MetaCons "CompleteVaultLock'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cvlAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_cvlVaultName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cvlLockId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CompleteVaultLock Source # 

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 apos-apos (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 (apos-apos) 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 # 
Data CompleteVaultLockResponse Source # 

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 # 
Show CompleteVaultLockResponse Source # 
Generic CompleteVaultLockResponse Source # 
type Rep CompleteVaultLockResponse Source # 
type Rep CompleteVaultLockResponse = D1 (MetaData "CompleteVaultLockResponse" "Network.AWS.Glacier.CompleteVaultLock" "amazonka-glacier-1.3.7-Dh9gbv8nf1fFDUYZRjXX0m" False) (C1 (MetaCons "CompleteVaultLockResponse'" PrefixI False) U1)