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.PutDestination

Contents

Description

Creates or updates a destination. A destination encapsulates a physical resource (such as a Kinesis stream) and enables you to subscribe to a real-time stream of log events of a different account, ingested using PutLogEvents . Currently, the only supported physical resource is a Amazon Kinesis stream belonging to the same account as the destination.

A destination controls what is written to its Amazon Kinesis stream through an access policy. By default, PutDestination does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination .

Synopsis

Creating a Request

putDestination Source #

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

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

  • pdDestinationName - A name for the destination.
  • pdTargetARN - The ARN of an Amazon Kinesis stream to deliver matching log events to.
  • pdRoleARN - The ARN of an IAM role that grants CloudWatch Logs permissions to call Amazon Kinesis PutRecord on the destination stream.

data PutDestination Source #

See: putDestination smart constructor.

Instances

Eq PutDestination Source # 
Data PutDestination Source # 

Methods

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

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

toConstr :: PutDestination -> Constr #

dataTypeOf :: PutDestination -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutDestination Source # 
Show PutDestination Source # 
Generic PutDestination Source # 

Associated Types

type Rep PutDestination :: * -> * #

Hashable PutDestination Source # 
ToJSON PutDestination Source # 
NFData PutDestination Source # 

Methods

rnf :: PutDestination -> () #

AWSRequest PutDestination Source # 
ToPath PutDestination Source # 
ToHeaders PutDestination Source # 
ToQuery PutDestination Source # 
type Rep PutDestination Source # 
type Rep PutDestination = D1 (MetaData "PutDestination" "Network.AWS.CloudWatchLogs.PutDestination" "amazonka-cloudwatch-logs-1.4.5-JoaCELOvIeKI9iDLq1iWip" False) (C1 (MetaCons "PutDestination'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pdDestinationName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_pdTargetARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pdRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs PutDestination Source # 

Request Lenses

pdDestinationName :: Lens' PutDestination Text Source #

A name for the destination.

pdTargetARN :: Lens' PutDestination Text Source #

The ARN of an Amazon Kinesis stream to deliver matching log events to.

pdRoleARN :: Lens' PutDestination Text Source #

The ARN of an IAM role that grants CloudWatch Logs permissions to call Amazon Kinesis PutRecord on the destination stream.

Destructuring the Response

putDestinationResponse Source #

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

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

data PutDestinationResponse Source #

See: putDestinationResponse smart constructor.

Instances

Eq PutDestinationResponse Source # 
Data PutDestinationResponse Source # 

Methods

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

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

toConstr :: PutDestinationResponse -> Constr #

dataTypeOf :: PutDestinationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutDestinationResponse Source # 
Show PutDestinationResponse Source # 
Generic PutDestinationResponse Source # 
NFData PutDestinationResponse Source # 

Methods

rnf :: PutDestinationResponse -> () #

type Rep PutDestinationResponse Source # 
type Rep PutDestinationResponse = D1 (MetaData "PutDestinationResponse" "Network.AWS.CloudWatchLogs.PutDestination" "amazonka-cloudwatch-logs-1.4.5-JoaCELOvIeKI9iDLq1iWip" False) (C1 (MetaCons "PutDestinationResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pdrsDestination") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Destination))) (S1 (MetaSel (Just Symbol "_pdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

pdrsResponseStatus :: Lens' PutDestinationResponse Int Source #

  • - | The response status code.