amazonka-mediastore-1.6.1: 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 # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

Data PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

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

Defined in Network.AWS.MediaStore.PutContainerPolicy

Show PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

Generic PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

Associated Types

type Rep PutContainerPolicy :: Type -> Type #

Hashable PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

ToJSON PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

AWSRequest PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

Associated Types

type Rs PutContainerPolicy :: Type #

ToHeaders PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

ToPath PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

ToQuery PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

NFData PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

Methods

rnf :: PutContainerPolicy -> () #

type Rep PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

type Rep PutContainerPolicy = D1 (MetaData "PutContainerPolicy" "Network.AWS.MediaStore.PutContainerPolicy" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" False) (C1 (MetaCons "PutContainerPolicy'" PrefixI True) (S1 (MetaSel (Just "_pContainerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs PutContainerPolicy Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

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

Defined in Network.AWS.MediaStore.PutContainerPolicy

Data PutContainerPolicyResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

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

Defined in Network.AWS.MediaStore.PutContainerPolicy

Show PutContainerPolicyResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

Generic PutContainerPolicyResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

Associated Types

type Rep PutContainerPolicyResponse :: Type -> Type #

NFData PutContainerPolicyResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

type Rep PutContainerPolicyResponse Source # 
Instance details

Defined in Network.AWS.MediaStore.PutContainerPolicy

type Rep PutContainerPolicyResponse = D1 (MetaData "PutContainerPolicyResponse" "Network.AWS.MediaStore.PutContainerPolicy" "amazonka-mediastore-1.6.1-3eONel50QrgBP8GIIl5LPg" True) (C1 (MetaCons "PutContainerPolicyResponse'" PrefixI True) (S1 (MetaSel (Just "_pcprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses