localstack/aws/api/sns/__init__.py
File __init__.py
has 764 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from datetime import datetime
from typing import Dict, List, Optional, TypedDict
from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler
SnsApi
has 42 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SnsApi:
service = "sns"
version = "2010-03-31"
@handler("AddPermission")
Function publish
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def publish(
Function subscribe
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def subscribe(
Function create_platform_endpoint
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_platform_endpoint(
Function create_topic
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_topic(
Function add_permission
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def add_permission(
Function create_platform_application
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_platform_application(
Function set_topic_attributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def set_topic_attributes(
Function set_subscription_attributes
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def set_subscription_attributes(
Function confirm_subscription
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def confirm_subscription(