amazonka-rds-1.4.5: Amazon Relational Database Service 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.RDS.ModifyEventSubscription

Contents

Description

Modifies an existing RDS event notification subscription. Note that you cannot modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

Synopsis

Creating a Request

modifyEventSubscription Source #

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

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

  • mesSNSTopicARN - The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
  • mesEnabled - A Boolean value; set to true to activate the subscription.
  • mesSourceType - The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned. Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
  • mesEventCategories - A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.
  • mesSubscriptionName - The name of the RDS event notification subscription.

data ModifyEventSubscription Source #

See: modifyEventSubscription smart constructor.

Instances

Eq ModifyEventSubscription Source # 
Data ModifyEventSubscription Source # 

Methods

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

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

toConstr :: ModifyEventSubscription -> Constr #

dataTypeOf :: ModifyEventSubscription -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyEventSubscription Source # 
Show ModifyEventSubscription Source # 
Generic ModifyEventSubscription Source # 
Hashable ModifyEventSubscription Source # 
NFData ModifyEventSubscription Source # 

Methods

rnf :: ModifyEventSubscription -> () #

AWSRequest ModifyEventSubscription Source # 
ToPath ModifyEventSubscription Source # 
ToHeaders ModifyEventSubscription Source # 
ToQuery ModifyEventSubscription Source # 
type Rep ModifyEventSubscription Source # 
type Rep ModifyEventSubscription = D1 (MetaData "ModifyEventSubscription" "Network.AWS.RDS.ModifyEventSubscription" "amazonka-rds-1.4.5-FycntHHvABz6gJkK2IrBDo" False) (C1 (MetaCons "ModifyEventSubscription'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_mesSNSTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_mesEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_mesSourceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_mesEventCategories") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_mesSubscriptionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs ModifyEventSubscription Source # 

Request Lenses

mesSNSTopicARN :: Lens' ModifyEventSubscription (Maybe Text) Source #

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

mesEnabled :: Lens' ModifyEventSubscription (Maybe Bool) Source #

A Boolean value; set to true to activate the subscription.

mesSourceType :: Lens' ModifyEventSubscription (Maybe Text) Source #

The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned. Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

mesEventCategories :: Lens' ModifyEventSubscription [Text] Source #

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

mesSubscriptionName :: Lens' ModifyEventSubscription Text Source #

The name of the RDS event notification subscription.

Destructuring the Response

modifyEventSubscriptionResponse Source #

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

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

data ModifyEventSubscriptionResponse Source #

See: modifyEventSubscriptionResponse smart constructor.

Instances

Eq ModifyEventSubscriptionResponse Source # 
Data ModifyEventSubscriptionResponse Source # 

Methods

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

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

toConstr :: ModifyEventSubscriptionResponse -> Constr #

dataTypeOf :: ModifyEventSubscriptionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyEventSubscriptionResponse Source # 
Show ModifyEventSubscriptionResponse Source # 
Generic ModifyEventSubscriptionResponse Source # 
NFData ModifyEventSubscriptionResponse Source # 
type Rep ModifyEventSubscriptionResponse Source # 
type Rep ModifyEventSubscriptionResponse = D1 (MetaData "ModifyEventSubscriptionResponse" "Network.AWS.RDS.ModifyEventSubscription" "amazonka-rds-1.4.5-FycntHHvABz6gJkK2IrBDo" False) (C1 (MetaCons "ModifyEventSubscriptionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mesrsEventSubscription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EventSubscription))) (S1 (MetaSel (Just Symbol "_mesrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses