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

Contents

Description

Modifies an existing RDS event notification subscription. Note that you can't 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 is 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 # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

Data ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

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

Defined in Network.AWS.RDS.ModifyEventSubscription

Show ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

Generic ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

Associated Types

type Rep ModifyEventSubscription :: Type -> Type #

Hashable ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

AWSRequest ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

Associated Types

type Rs ModifyEventSubscription :: Type #

ToHeaders ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

ToPath ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

ToQuery ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

NFData ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

Methods

rnf :: ModifyEventSubscription -> () #

type Rep ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

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

Defined in Network.AWS.RDS.ModifyEventSubscription

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

Defined in Network.AWS.RDS.ModifyEventSubscription

Data ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

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

Defined in Network.AWS.RDS.ModifyEventSubscription

Show ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

Generic ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

Associated Types

type Rep ModifyEventSubscriptionResponse :: Type -> Type #

NFData ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

type Rep ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.RDS.ModifyEventSubscription

type Rep ModifyEventSubscriptionResponse = D1 (MetaData "ModifyEventSubscriptionResponse" "Network.AWS.RDS.ModifyEventSubscription" "amazonka-rds-1.6.1-GvYb6r2di9RGFKQcoJXq1A" False) (C1 (MetaCons "ModifyEventSubscriptionResponse'" PrefixI True) (S1 (MetaSel (Just "_mesrsEventSubscription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EventSubscription)) :*: S1 (MetaSel (Just "_mesrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses