unsubscribeΒΆ

unsubscribe(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.unsubscribe(
    Arn='string',
    TargetAddress='string'
)
Parameters
  • Arn (string) --

    [REQUIRED]

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

  • TargetAddress (string) --

    [REQUIRED]

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

Return type

dict

Returns

Response Syntax

{
    'Arn': 'string'
}

Response Structure

  • (dict) --

    • Arn (string) --

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

Exceptions

  • CodeStarNotifications.Client.exceptions.ValidationException