def METHOD_NAME(request):
    data = request.json_body
    # Check to ensure that the Type is what we expect.
    if data.get("Type") != "SubscriptionConfirmation":
        raise HTTPBadRequest("Expected Type of SubscriptionConfirmation")
    _verify_sns_message(request, data)
    aws_session = request.find_service(name="aws.session")
    sns_client = aws_session.client(
        "sns", region_name=request.registry.settings.get("mail.region")
    )
    sns_client.METHOD_NAME(
        TopicArn=data["TopicArn"], Token=data["Token"], AuthenticateOnUnsubscribe="true"
    )
    return Response()