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

Contents

Description

Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents and have them delivered to a specific destination. Currently, the supported destinations are:

  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
  • A logical destination that belongs to a different account, for cross-account delivery.
  • An Amazon Kinesis Firehose stream that belongs to the same account as the subscription filter, for same-account delivery.
  • An AWS Lambda function that belongs to the same account as the subscription filter, for same-account delivery.

There can only be one subscription filter associated with a log group.

Synopsis

Creating a Request

putSubscriptionFilter Source #

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

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

  • psfRoleARN - The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.
  • psfLogGroupName - The name of the log group.
  • psfFilterName - A name for the subscription filter.
  • psfFilterPattern - A filter pattern for subscribing to a filtered stream of log events.
  • psfDestinationARN - The ARN of the destination to deliver matching log events to. Currently, the supported destinations are: * An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery. * A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery. * An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery. * An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.

data PutSubscriptionFilter Source #

See: putSubscriptionFilter smart constructor.

Instances

Eq PutSubscriptionFilter Source # 
Data PutSubscriptionFilter Source # 

Methods

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

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

toConstr :: PutSubscriptionFilter -> Constr #

dataTypeOf :: PutSubscriptionFilter -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: PutSubscriptionFilter -> () #

AWSRequest PutSubscriptionFilter Source # 
ToPath PutSubscriptionFilter Source # 
ToHeaders PutSubscriptionFilter Source # 
ToQuery PutSubscriptionFilter Source # 
type Rep PutSubscriptionFilter Source # 
type Rep PutSubscriptionFilter = D1 (MetaData "PutSubscriptionFilter" "Network.AWS.CloudWatchLogs.PutSubscriptionFilter" "amazonka-cloudwatch-logs-1.4.5-JoaCELOvIeKI9iDLq1iWip" False) (C1 (MetaCons "PutSubscriptionFilter'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_psfRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_psfLogGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_psfFilterName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_psfFilterPattern") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_psfDestinationARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs PutSubscriptionFilter Source # 

Request Lenses

psfRoleARN :: Lens' PutSubscriptionFilter (Maybe Text) Source #

The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.

psfFilterName :: Lens' PutSubscriptionFilter Text Source #

A name for the subscription filter.

psfFilterPattern :: Lens' PutSubscriptionFilter Text Source #

A filter pattern for subscribing to a filtered stream of log events.

psfDestinationARN :: Lens' PutSubscriptionFilter Text Source #

The ARN of the destination to deliver matching log events to. Currently, the supported destinations are: * An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery. * A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery. * An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery. * An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.

Destructuring the Response

putSubscriptionFilterResponse :: PutSubscriptionFilterResponse Source #

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

data PutSubscriptionFilterResponse Source #

See: putSubscriptionFilterResponse smart constructor.

Instances

Eq PutSubscriptionFilterResponse Source # 
Data PutSubscriptionFilterResponse Source # 

Methods

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

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

toConstr :: PutSubscriptionFilterResponse -> Constr #

dataTypeOf :: PutSubscriptionFilterResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutSubscriptionFilterResponse Source # 
Show PutSubscriptionFilterResponse Source # 
Generic PutSubscriptionFilterResponse Source # 
NFData PutSubscriptionFilterResponse Source # 
type Rep PutSubscriptionFilterResponse Source # 
type Rep PutSubscriptionFilterResponse = D1 (MetaData "PutSubscriptionFilterResponse" "Network.AWS.CloudWatchLogs.PutSubscriptionFilter" "amazonka-cloudwatch-logs-1.4.5-JoaCELOvIeKI9iDLq1iWip" False) (C1 (MetaCons "PutSubscriptionFilterResponse'" PrefixI False) U1)