Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Modifies an existing Amazon DocumentDB event notification subscription.
Synopsis
- data ModifyEventSubscription = ModifyEventSubscription' {
- enabled :: Maybe Bool
- eventCategories :: Maybe [Text]
- snsTopicArn :: Maybe Text
- sourceType :: Maybe Text
- subscriptionName :: Text
- newModifyEventSubscription :: Text -> ModifyEventSubscription
- modifyEventSubscription_enabled :: Lens' ModifyEventSubscription (Maybe Bool)
- modifyEventSubscription_eventCategories :: Lens' ModifyEventSubscription (Maybe [Text])
- modifyEventSubscription_snsTopicArn :: Lens' ModifyEventSubscription (Maybe Text)
- modifyEventSubscription_sourceType :: Lens' ModifyEventSubscription (Maybe Text)
- modifyEventSubscription_subscriptionName :: Lens' ModifyEventSubscription Text
- data ModifyEventSubscriptionResponse = ModifyEventSubscriptionResponse' {}
- newModifyEventSubscriptionResponse :: Int -> ModifyEventSubscriptionResponse
- modifyEventSubscriptionResponse_eventSubscription :: Lens' ModifyEventSubscriptionResponse (Maybe EventSubscription)
- modifyEventSubscriptionResponse_httpStatus :: Lens' ModifyEventSubscriptionResponse Int
Creating a Request
data ModifyEventSubscription Source #
Represents the input to ModifyEventSubscription.
See: newModifyEventSubscription
smart constructor.
ModifyEventSubscription' | |
|
Instances
newModifyEventSubscription Source #
Create a value of ModifyEventSubscription
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ModifyEventSubscription
, modifyEventSubscription_enabled
- A Boolean value; set to true
to activate the subscription.
ModifyEventSubscription
, modifyEventSubscription_eventCategories
- A list of event categories for a SourceType
that you want to subscribe
to.
ModifyEventSubscription
, modifyEventSubscription_snsTopicArn
- 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.
ModifyEventSubscription
, modifyEventSubscription_sourceType
- The type of source that is generating the events. For example, if you
want to be notified of events generated by an instance, 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
$sel:subscriptionName:ModifyEventSubscription'
, modifyEventSubscription_subscriptionName
- The name of the Amazon DocumentDB event notification subscription.
Request Lenses
modifyEventSubscription_enabled :: Lens' ModifyEventSubscription (Maybe Bool) Source #
A Boolean value; set to true
to activate the subscription.
modifyEventSubscription_eventCategories :: Lens' ModifyEventSubscription (Maybe [Text]) Source #
A list of event categories for a SourceType
that you want to subscribe
to.
modifyEventSubscription_snsTopicArn :: 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.
modifyEventSubscription_sourceType :: 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 an instance, 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
modifyEventSubscription_subscriptionName :: Lens' ModifyEventSubscription Text Source #
The name of the Amazon DocumentDB event notification subscription.
Destructuring the Response
data ModifyEventSubscriptionResponse Source #
See: newModifyEventSubscriptionResponse
smart constructor.
ModifyEventSubscriptionResponse' | |
|
Instances
Generic ModifyEventSubscriptionResponse Source # | |
Read ModifyEventSubscriptionResponse Source # | |
Show ModifyEventSubscriptionResponse Source # | |
Defined in Amazonka.DocumentDB.ModifyEventSubscription | |
NFData ModifyEventSubscriptionResponse Source # | |
Defined in Amazonka.DocumentDB.ModifyEventSubscription rnf :: ModifyEventSubscriptionResponse -> () # | |
Eq ModifyEventSubscriptionResponse Source # | |
type Rep ModifyEventSubscriptionResponse Source # | |
Defined in Amazonka.DocumentDB.ModifyEventSubscription type Rep ModifyEventSubscriptionResponse = D1 ('MetaData "ModifyEventSubscriptionResponse" "Amazonka.DocumentDB.ModifyEventSubscription" "amazonka-docdb-2.0-7OwFe1BulfiBtMsDpDrdzX" 'False) (C1 ('MetaCons "ModifyEventSubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventSubscription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EventSubscription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newModifyEventSubscriptionResponse Source #
Create a value of ModifyEventSubscriptionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:eventSubscription:ModifyEventSubscriptionResponse'
, modifyEventSubscriptionResponse_eventSubscription
- Undocumented member.
$sel:httpStatus:ModifyEventSubscriptionResponse'
, modifyEventSubscriptionResponse_httpStatus
- The response's http status code.
Response Lenses
modifyEventSubscriptionResponse_eventSubscription :: Lens' ModifyEventSubscriptionResponse (Maybe EventSubscription) Source #
Undocumented member.
modifyEventSubscriptionResponse_httpStatus :: Lens' ModifyEventSubscriptionResponse Int Source #
The response's http status code.