amazonka-codestar-notifications-2.0: Amazon CodeStar Notifications 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.CodeStarNotifications.Unsubscribe

Description

Removes an association between a notification rule and an Chatbot topic so that subscribers to that topic stop receiving notifications when the events described in the rule are triggered.

Synopsis

Creating a Request

data Unsubscribe Source #

See: newUnsubscribe smart constructor.

Constructors

Unsubscribe' 

Fields

  • arn :: Text

    The Amazon Resource Name (ARN) of the notification rule.

  • targetAddress :: Sensitive Text

    The ARN of the Chatbot topic to unsubscribe from the notification rule.

Instances

Instances details
ToJSON Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

ToHeaders Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Methods

toHeaders :: Unsubscribe -> [Header] #

ToPath Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

ToQuery Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

AWSRequest Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Associated Types

type AWSResponse Unsubscribe #

Generic Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Associated Types

type Rep Unsubscribe :: Type -> Type #

Show Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

NFData Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Methods

rnf :: Unsubscribe -> () #

Eq Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Hashable Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

type AWSResponse Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

type Rep Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

type Rep Unsubscribe = D1 ('MetaData "Unsubscribe" "Amazonka.CodeStarNotifications.Unsubscribe" "amazonka-codestar-notifications-2.0-1YU4g2Ny2gz2roMHW6JQnw" 'False) (C1 ('MetaCons "Unsubscribe'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "targetAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newUnsubscribe Source #

Create a value of Unsubscribe 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:

Unsubscribe, unsubscribe_arn - The Amazon Resource Name (ARN) of the notification rule.

Unsubscribe, unsubscribe_targetAddress - The ARN of the Chatbot topic to unsubscribe from the notification rule.

Request Lenses

unsubscribe_arn :: Lens' Unsubscribe Text Source #

The Amazon Resource Name (ARN) of the notification rule.

unsubscribe_targetAddress :: Lens' Unsubscribe Text Source #

The ARN of the Chatbot topic to unsubscribe from the notification rule.

Destructuring the Response

data UnsubscribeResponse Source #

See: newUnsubscribeResponse smart constructor.

Constructors

UnsubscribeResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • arn :: Text

    The Amazon Resource Name (ARN) of the the notification rule from which you have removed a subscription.

Instances

Instances details
Generic UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Associated Types

type Rep UnsubscribeResponse :: Type -> Type #

Read UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Show UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

NFData UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Methods

rnf :: UnsubscribeResponse -> () #

Eq UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

type Rep UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

type Rep UnsubscribeResponse = D1 ('MetaData "UnsubscribeResponse" "Amazonka.CodeStarNotifications.Unsubscribe" "amazonka-codestar-notifications-2.0-1YU4g2Ny2gz2roMHW6JQnw" 'False) (C1 ('MetaCons "UnsubscribeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUnsubscribeResponse Source #

Create a value of UnsubscribeResponse 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:httpStatus:UnsubscribeResponse', unsubscribeResponse_httpStatus - The response's http status code.

Unsubscribe, unsubscribeResponse_arn - The Amazon Resource Name (ARN) of the the notification rule from which you have removed a subscription.

Response Lenses

unsubscribeResponse_arn :: Lens' UnsubscribeResponse Text Source #

The Amazon Resource Name (ARN) of the the notification rule from which you have removed a subscription.