amazonka-glacier-1.5.0: Amazon Glacier SDK.

Copyright(c) 2013-2017 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.GetVaultAccessPolicy

Contents

Description

This operation retrieves the access-policy subresource set on the vault; for more information on setting this subresource, see Set Vault Access Policy (PUT access-policy) . If there is no access policy set on the vault, the operation returns a 404 Not found error. For more information about vault access policies, see Amazon Glacier Access Control with Vault Access Policies .

Synopsis

Creating a Request

getVaultAccessPolicy Source #

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

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

  • gvapAccountId - The AccountId value is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (-) in the ID.
  • gvapVaultName - The name of the vault.

data GetVaultAccessPolicy Source #

Input for GetVaultAccessPolicy.

See: getVaultAccessPolicy smart constructor.

Instances

Eq GetVaultAccessPolicy Source # 
Data GetVaultAccessPolicy Source # 

Methods

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

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

toConstr :: GetVaultAccessPolicy -> Constr #

dataTypeOf :: GetVaultAccessPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetVaultAccessPolicy Source # 
Show GetVaultAccessPolicy Source # 
Generic GetVaultAccessPolicy Source # 
Hashable GetVaultAccessPolicy Source # 
NFData GetVaultAccessPolicy Source # 

Methods

rnf :: GetVaultAccessPolicy -> () #

AWSRequest GetVaultAccessPolicy Source # 
ToQuery GetVaultAccessPolicy Source # 
ToPath GetVaultAccessPolicy Source # 
ToHeaders GetVaultAccessPolicy Source # 
type Rep GetVaultAccessPolicy Source # 
type Rep GetVaultAccessPolicy = D1 (MetaData "GetVaultAccessPolicy" "Network.AWS.Glacier.GetVaultAccessPolicy" "amazonka-glacier-1.5.0-AWAt53IVogG613fTETHcMP" False) (C1 (MetaCons "GetVaultAccessPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gvapAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gvapVaultName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetVaultAccessPolicy Source # 

Request Lenses

gvapAccountId :: Lens' GetVaultAccessPolicy Text Source #

The AccountId value is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (-) in the ID.

Destructuring the Response

getVaultAccessPolicyResponse Source #

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

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

data GetVaultAccessPolicyResponse Source #

Output for GetVaultAccessPolicy.

See: getVaultAccessPolicyResponse smart constructor.

Instances

Eq GetVaultAccessPolicyResponse Source # 
Data GetVaultAccessPolicyResponse Source # 

Methods

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

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

toConstr :: GetVaultAccessPolicyResponse -> Constr #

dataTypeOf :: GetVaultAccessPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetVaultAccessPolicyResponse Source # 
Show GetVaultAccessPolicyResponse Source # 
Generic GetVaultAccessPolicyResponse Source # 
NFData GetVaultAccessPolicyResponse Source # 
type Rep GetVaultAccessPolicyResponse Source # 
type Rep GetVaultAccessPolicyResponse = D1 (MetaData "GetVaultAccessPolicyResponse" "Network.AWS.Glacier.GetVaultAccessPolicy" "amazonka-glacier-1.5.0-AWAt53IVogG613fTETHcMP" False) (C1 (MetaCons "GetVaultAccessPolicyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gvaprsPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VaultAccessPolicy))) (S1 (MetaSel (Just Symbol "_gvaprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gvaprsPolicy :: Lens' GetVaultAccessPolicyResponse (Maybe VaultAccessPolicy) Source #

Contains the returned vault access policy as a JSON string.