amazonka-mediastore-1.6.0: Amazon Elemental MediaStore 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.MediaStore.PutContainerPolicy

Contents

Description

Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide .

For this release of the REST API, you can create only one policy for a container. If you enter PutContainerPolicy twice, the second command modifies the existing policy.

Synopsis

Creating a Request

putContainerPolicy Source #

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

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

  • pContainerName - The name of the container.
  • pPolicy - The contents of the policy, which includes the following: * One Version tag * One Statement tag that contains the standard tags for the policy.

data PutContainerPolicy Source #

See: putContainerPolicy smart constructor.

Instances

Eq PutContainerPolicy Source # 
Data PutContainerPolicy Source # 

Methods

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

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

toConstr :: PutContainerPolicy -> Constr #

dataTypeOf :: PutContainerPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutContainerPolicy Source # 
Show PutContainerPolicy Source # 
Generic PutContainerPolicy Source # 
Hashable PutContainerPolicy Source # 
ToJSON PutContainerPolicy Source # 
NFData PutContainerPolicy Source # 

Methods

rnf :: PutContainerPolicy -> () #

AWSRequest PutContainerPolicy Source # 
ToHeaders PutContainerPolicy Source # 
ToPath PutContainerPolicy Source # 
ToQuery PutContainerPolicy Source # 
type Rep PutContainerPolicy Source # 
type Rep PutContainerPolicy = D1 * (MetaData "PutContainerPolicy" "Network.AWS.MediaStore.PutContainerPolicy" "amazonka-mediastore-1.6.0-A5BXmXPQvTC35jIUjzEuvm" False) (C1 * (MetaCons "PutContainerPolicy'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_pContainerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_pPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs PutContainerPolicy Source # 

Request Lenses

pContainerName :: Lens' PutContainerPolicy Text Source #

The name of the container.

pPolicy :: Lens' PutContainerPolicy Text Source #

The contents of the policy, which includes the following: * One Version tag * One Statement tag that contains the standard tags for the policy.

Destructuring the Response

putContainerPolicyResponse Source #

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

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

data PutContainerPolicyResponse Source #

See: putContainerPolicyResponse smart constructor.

Instances

Eq PutContainerPolicyResponse Source # 
Data PutContainerPolicyResponse Source # 

Methods

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

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

toConstr :: PutContainerPolicyResponse -> Constr #

dataTypeOf :: PutContainerPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutContainerPolicyResponse Source # 
Show PutContainerPolicyResponse Source # 
Generic PutContainerPolicyResponse Source # 
NFData PutContainerPolicyResponse Source # 
type Rep PutContainerPolicyResponse Source # 
type Rep PutContainerPolicyResponse = D1 * (MetaData "PutContainerPolicyResponse" "Network.AWS.MediaStore.PutContainerPolicy" "amazonka-mediastore-1.6.0-A5BXmXPQvTC35jIUjzEuvm" True) (C1 * (MetaCons "PutContainerPolicyResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_pcprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses