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.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 # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Data GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

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 # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Show GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Generic GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Associated Types

type Rep GetVaultAccessPolicy :: Type -> Type #

Hashable GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

AWSRequest GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Associated Types

type Rs GetVaultAccessPolicy :: Type #

ToHeaders GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

ToPath GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

ToQuery GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

NFData GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Methods

rnf :: GetVaultAccessPolicy -> () #

type Rep GetVaultAccessPolicy Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

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

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

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 # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Data GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

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 # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Show GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Generic GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

Associated Types

type Rep GetVaultAccessPolicyResponse :: Type -> Type #

NFData GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

type Rep GetVaultAccessPolicyResponse Source # 
Instance details

Defined in Network.AWS.Glacier.GetVaultAccessPolicy

type Rep GetVaultAccessPolicyResponse = D1 (MetaData "GetVaultAccessPolicyResponse" "Network.AWS.Glacier.GetVaultAccessPolicy" "amazonka-glacier-1.6.1-1jk94OYE8nZKrGhzWrcb8m" False) (C1 (MetaCons "GetVaultAccessPolicyResponse'" PrefixI True) (S1 (MetaSel (Just "_gvaprsPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VaultAccessPolicy)) :*: S1 (MetaSel (Just "_gvaprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

Contains the returned vault access policy as a JSON string.