Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Modifies an existing Amazon Redshift event notification subscription.
- modifyEventSubscription :: Text -> ModifyEventSubscription
- data ModifyEventSubscription
- mesSNSTopicARN :: Lens' ModifyEventSubscription (Maybe Text)
- mesEnabled :: Lens' ModifyEventSubscription (Maybe Bool)
- mesSourceType :: Lens' ModifyEventSubscription (Maybe Text)
- mesSeverity :: Lens' ModifyEventSubscription (Maybe Text)
- mesEventCategories :: Lens' ModifyEventSubscription [Text]
- mesSourceIds :: Lens' ModifyEventSubscription [Text]
- mesSubscriptionName :: Lens' ModifyEventSubscription Text
- modifyEventSubscriptionResponse :: Int -> ModifyEventSubscriptionResponse
- data ModifyEventSubscriptionResponse
- mesrsEventSubscription :: Lens' ModifyEventSubscriptionResponse (Maybe EventSubscription)
- mesrsResponseStatus :: Lens' ModifyEventSubscriptionResponse Int
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 enabledmesSourceType
- 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, INFOmesEventCategories
- Specifies the Amazon Redshift event categories to be published by the event notification subscription. Values: Configuration, Management, Monitoring, SecuritymesSourceIds
- 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-20131010mesSubscriptionName
- The name of the modified Amazon Redshift event notification subscription.
data ModifyEventSubscription Source #
See: modifyEventSubscription
smart constructor.
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:
mesrsEventSubscription
- Undocumented member.mesrsResponseStatus
- -- | The response status code.
data ModifyEventSubscriptionResponse Source #
See: modifyEventSubscriptionResponse
smart constructor.
Response Lenses
mesrsEventSubscription :: Lens' ModifyEventSubscriptionResponse (Maybe EventSubscription) Source #
Undocumented member.
mesrsResponseStatus :: Lens' ModifyEventSubscriptionResponse Int Source #
- - | The response status code.