amazonka-redshift-1.6.1: Amazon Redshift 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.Redshift.ModifyEventSubscription

Contents

Description

Modifies an existing Amazon Redshift event notification subscription.

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 to be used by the event notification subscription.
  • mesEnabled - A Boolean value indicating if the subscription is enabled. true indicates the subscription is enabled
  • mesSourceType - The type of source that will be generating the events. For example, if you want to be notified of events generated by a cluster, you would set this parameter to cluster. If this value is not specified, events are returned for all Amazon Redshift objects in your AWS account. You must specify a source type in order to specify source IDs. Valid values: cluster, cluster-parameter-group, cluster-security-group, and cluster-snapshot.
  • mesSeverity - Specifies the Amazon Redshift event severity to be published by the event notification subscription. Values: ERROR, INFO
  • mesEventCategories - Specifies the Amazon Redshift event categories to be published by the event notification subscription. Values: Configuration, Management, Monitoring, Security
  • mesSourceIds - A list of one or more identifiers of Amazon Redshift source objects. All of the objects must be of the same type as was specified in the source type parameter. The event subscription will return only events generated by the specified objects. If not specified, then events are returned for all objects within the source type specified. Example: my-cluster-1, my-cluster-2 Example: my-snapshot-20131010
  • mesSubscriptionName - The name of the modified Amazon Redshift event notification subscription.

data ModifyEventSubscription Source #

See: modifyEventSubscription smart constructor.

Instances
Eq ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

Data ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.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.Redshift.ModifyEventSubscription

Show ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

Generic ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

Associated Types

type Rep ModifyEventSubscription :: Type -> Type #

Hashable ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

AWSRequest ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

Associated Types

type Rs ModifyEventSubscription :: Type #

ToHeaders ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

ToPath ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

ToQuery ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

NFData ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

Methods

rnf :: ModifyEventSubscription -> () #

type Rep ModifyEventSubscription Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

type Rep ModifyEventSubscription = D1 (MetaData "ModifyEventSubscription" "Network.AWS.Redshift.ModifyEventSubscription" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" 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 "_mesSeverity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mesEventCategories") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_mesSourceIds") 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.Redshift.ModifyEventSubscription

Request Lenses

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

The Amazon Resource Name (ARN) of the SNS topic to be used by the event notification subscription.

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

A Boolean value indicating if the subscription is enabled. true indicates the subscription is enabled

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 cluster, you would set this parameter to cluster. If this value is not specified, events are returned for all Amazon Redshift objects in your AWS account. You must specify a source type in order to specify source IDs. Valid values: cluster, cluster-parameter-group, cluster-security-group, and cluster-snapshot.

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

Specifies the Amazon Redshift event severity to be published by the event notification subscription. Values: ERROR, INFO

mesEventCategories :: Lens' ModifyEventSubscription [Text] Source #

Specifies the Amazon Redshift event categories to be published by the event notification subscription. Values: Configuration, Management, Monitoring, Security

mesSourceIds :: Lens' ModifyEventSubscription [Text] Source #

A list of one or more identifiers of Amazon Redshift source objects. All of the objects must be of the same type as was specified in the source type parameter. The event subscription will return only events generated by the specified objects. If not specified, then events are returned for all objects within the source type specified. Example: my-cluster-1, my-cluster-2 Example: my-snapshot-20131010

mesSubscriptionName :: Lens' ModifyEventSubscription Text Source #

The name of the modified Amazon Redshift 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.Redshift.ModifyEventSubscription

Data ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.Redshift.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.Redshift.ModifyEventSubscription

Show ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

Generic ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

Associated Types

type Rep ModifyEventSubscriptionResponse :: Type -> Type #

NFData ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

type Rep ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Network.AWS.Redshift.ModifyEventSubscription

type Rep ModifyEventSubscriptionResponse = D1 (MetaData "ModifyEventSubscriptionResponse" "Network.AWS.Redshift.ModifyEventSubscription" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" 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