Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

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