libZSservicesZSamazonka-codestar-notificationsZSamazonka-codestar-notifications
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeStarNotifications.Unsubscribe

Description

Removes an association between a notification rule and an Amazon SNS 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 SNS topic to unsubscribe from the notification rule.

Instances

Instances details
Eq Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Show Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Generic Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Associated Types

type Rep Unsubscribe :: Type -> Type #

NFData Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Methods

rnf :: Unsubscribe -> () #

Hashable Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

ToJSON Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

AWSRequest Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Associated Types

type AWSResponse 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

type Rep Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

type Rep Unsubscribe = D1 ('MetaData "Unsubscribe" "Amazonka.CodeStarNotifications.Unsubscribe" "libZSservicesZSamazonka-codestar-notificationsZSamazonka-codestar-notifications" '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))))
type AWSResponse Unsubscribe Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

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:

$sel:arn:Unsubscribe', unsubscribe_arn - The Amazon Resource Name (ARN) of the notification rule.

$sel:targetAddress:Unsubscribe', unsubscribe_targetAddress - The ARN of the SNS 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 SNS 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
Eq UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Read UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Show UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Generic UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Associated Types

type Rep UnsubscribeResponse :: Type -> Type #

NFData UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

Methods

rnf :: UnsubscribeResponse -> () #

type Rep UnsubscribeResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.Unsubscribe

type Rep UnsubscribeResponse = D1 ('MetaData "UnsubscribeResponse" "Amazonka.CodeStarNotifications.Unsubscribe" "libZSservicesZSamazonka-codestar-notificationsZSamazonka-codestar-notifications" '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.

$sel:arn: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.