amazonka-cloudwatch-logs-1.4.5: Amazon CloudWatch Logs SDK.

Copyright(c) 2013-2016 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.CloudWatchLogs.PutDestinationPolicy

Contents

Description

Creates or updates an access policy associated with an existing destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.

Synopsis

Creating a Request

putDestinationPolicy #

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

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

  • pdpDestinationName - A name for an existing destination.
  • pdpAccessPolicy - An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.

data PutDestinationPolicy #

See: putDestinationPolicy smart constructor.

Instances

Eq PutDestinationPolicy # 
Data PutDestinationPolicy # 

Methods

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

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

toConstr :: PutDestinationPolicy -> Constr #

dataTypeOf :: PutDestinationPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutDestinationPolicy # 
Show PutDestinationPolicy # 
Generic PutDestinationPolicy # 
Hashable PutDestinationPolicy # 
ToJSON PutDestinationPolicy # 
NFData PutDestinationPolicy # 

Methods

rnf :: PutDestinationPolicy -> () #

AWSRequest PutDestinationPolicy # 
ToQuery PutDestinationPolicy # 
ToPath PutDestinationPolicy # 
ToHeaders PutDestinationPolicy # 
type Rep PutDestinationPolicy # 
type Rep PutDestinationPolicy = D1 (MetaData "PutDestinationPolicy" "Network.AWS.CloudWatchLogs.PutDestinationPolicy" "amazonka-cloudwatch-logs-1.4.5-9QRzQX2AFAcp9HWg8eJiT" False) (C1 (MetaCons "PutDestinationPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pdpDestinationName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pdpAccessPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs PutDestinationPolicy # 

Request Lenses

pdpDestinationName :: Lens' PutDestinationPolicy Text #

A name for an existing destination.

pdpAccessPolicy :: Lens' PutDestinationPolicy Text #

An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.

Destructuring the Response

putDestinationPolicyResponse :: PutDestinationPolicyResponse #

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

data PutDestinationPolicyResponse #

See: putDestinationPolicyResponse smart constructor.

Instances

Eq PutDestinationPolicyResponse # 
Data PutDestinationPolicyResponse # 

Methods

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

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

toConstr :: PutDestinationPolicyResponse -> Constr #

dataTypeOf :: PutDestinationPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutDestinationPolicyResponse # 
Show PutDestinationPolicyResponse # 
Generic PutDestinationPolicyResponse # 
NFData PutDestinationPolicyResponse # 
type Rep PutDestinationPolicyResponse # 
type Rep PutDestinationPolicyResponse = D1 (MetaData "PutDestinationPolicyResponse" "Network.AWS.CloudWatchLogs.PutDestinationPolicy" "amazonka-cloudwatch-logs-1.4.5-9QRzQX2AFAcp9HWg8eJiT" False) (C1 (MetaCons "PutDestinationPolicyResponse'" PrefixI False) U1)