amazonka-dms-2.0: Amazon Database Migration Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DMS.ModifyEventSubscription

Description

Modifies an existing DMS event notification subscription.

Synopsis

Creating a Request

data ModifyEventSubscription Source #

See: newModifyEventSubscription smart constructor.

Constructors

ModifyEventSubscription' 

Fields

  • enabled :: Maybe Bool

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

  • eventCategories :: Maybe [Text]

    A list of event categories for a source type that you want to subscribe to. Use the DescribeEventCategories action to see a list of event categories.

  • snsTopicArn :: Maybe Text

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

  • sourceType :: Maybe Text

    The type of DMS resource that generates the events you want to subscribe to.

    Valid values: replication-instance | replication-task

  • subscriptionName :: Text

    The name of the DMS event notification subscription to be modified.

Instances

Instances details
ToJSON ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

ToHeaders ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

ToPath ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

ToQuery ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

AWSRequest ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

Generic ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

Associated Types

type Rep ModifyEventSubscription :: Type -> Type #

Read ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

Show ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

NFData ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

Methods

rnf :: ModifyEventSubscription -> () #

Eq ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

Hashable ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

type AWSResponse ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

type Rep ModifyEventSubscription Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

type Rep ModifyEventSubscription = D1 ('MetaData "ModifyEventSubscription" "Amazonka.DMS.ModifyEventSubscription" "amazonka-dms-2.0-LVCLJv4CY4nJuf0WXCDs3O" 'False) (C1 ('MetaCons "ModifyEventSubscription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "eventCategories") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "snsTopicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subscriptionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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 source type that you want to subscribe to. Use the DescribeEventCategories action to see a list of event categories.

ModifyEventSubscription, modifyEventSubscription_snsTopicArn - The Amazon Resource Name (ARN) of the Amazon 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 DMS resource that generates the events you want to subscribe to.

Valid values: replication-instance | replication-task

$sel:subscriptionName:ModifyEventSubscription', modifyEventSubscription_subscriptionName - The name of the DMS event notification subscription to be modified.

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 source type that you want to subscribe to. Use the DescribeEventCategories action to see a list of event categories.

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

The Amazon Resource Name (ARN) of the Amazon 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 DMS resource that generates the events you want to subscribe to.

Valid values: replication-instance | replication-task

modifyEventSubscription_subscriptionName :: Lens' ModifyEventSubscription Text Source #

The name of the DMS event notification subscription to be modified.

Destructuring the Response

data ModifyEventSubscriptionResponse Source #

See: newModifyEventSubscriptionResponse smart constructor.

Constructors

ModifyEventSubscriptionResponse' 

Fields

Instances

Instances details
Generic ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

Associated Types

type Rep ModifyEventSubscriptionResponse :: Type -> Type #

Read ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

Show ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

NFData ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

Eq ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

type Rep ModifyEventSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DMS.ModifyEventSubscription

type Rep ModifyEventSubscriptionResponse = D1 ('MetaData "ModifyEventSubscriptionResponse" "Amazonka.DMS.ModifyEventSubscription" "amazonka-dms-2.0-LVCLJv4CY4nJuf0WXCDs3O" '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 - The modified event subscription.

$sel:httpStatus:ModifyEventSubscriptionResponse', modifyEventSubscriptionResponse_httpStatus - The response's http status code.

Response Lenses