def start_ssm(port=None, asynchronous=False, update_listener=None): from localstack.services.infra import start_moto_server port = port or config.PORT_SSM return start_moto_server( "ssm", port, name="SSM", asynchronous=asynchronous, update_listener=update_listener, )
def start_sts(port=None, asynchronous=False, update_listener=None): apply_patches() port = port or config.service_port("sts") return start_moto_server( "sts", port, name="STS", asynchronous=asynchronous, update_listener=update_listener, )
def start_sqs_moto(port=None, asynchronous=False, update_listener=None): global PORT_SQS_BACKEND port = port or config.PORT_SQS PORT_SQS_BACKEND = get_free_tcp_port() patch_moto() return start_moto_server('sqs', port, backend_port=PORT_SQS_BACKEND, name='SQS', asynchronous=asynchronous, update_listener=update_listener)
def start_ses(port=None, backend_port=None, asynchronous=None, update_listener=None): port = port or config.PORT_SES apply_patches() return start_moto_server( key='ses', name='SES', port=port, backend_port=backend_port, asynchronous=asynchronous, update_listener=update_listener )
def start_secretsmanager(port=None, asynchronous=None, backend_port=None, update_listener=None): apply_patches() return start_moto_server(key='secretsmanager', name='Secrets Manager', port=port, backend_port=backend_port, asynchronous=asynchronous, update_listener=update_listener)
def start_iam(port=None, asynchronous=False, update_listener=None): port = port or config.service_port("iam") apply_patches() return start_moto_server( "iam", port, name="IAM", asynchronous=asynchronous, update_listener=update_listener, )
def start_events(port=None, asynchronous=None, update_listener=None): port = port or config.PORT_EVENTS apply_patches() start_scheduler() return start_moto_server(key='events', port=port, name='Cloudwatch Events', asynchronous=asynchronous, update_listener=update_listener)
def start_ec2(port=None, asynchronous=False, update_listener=None): patch_ec2() port = port or config.service_port("ec2") return start_moto_server( "ec2", port, name="EC2", asynchronous=asynchronous, update_listener=update_listener, )
def start_kms_moto(port=None, backend_port=None, asynchronous=None, update_listener=None): port = port or config.PORT_KMS return start_moto_server( "kms", port, name="KMS", asynchronous=asynchronous, update_listener=update_listener, )
def start_swf(port=None, backend_port=None, asynchronous=None, update_listener=None): port = port or config.service_port("swf") return start_moto_server( key="swf", name="SWF", asynchronous=asynchronous, port=port, update_listener=update_listener, )
def start_sqs_moto(port=None, asynchronous=False, update_listener=None): port = port or config.PORT_SQS patch_moto() result = start_moto_server( "sqs", port, name="SQS", asynchronous=asynchronous, update_listener=update_listener, ) global PORT_SQS_BACKEND PORT_SQS_BACKEND = result.service_port return result
def start_events(port=None, asynchronous=None, update_listener=None): port = port or config.service_port("events") apply_patches() start_scheduler() return start_moto_server( key="events", port=port, name="Cloudwatch Events", asynchronous=asynchronous, update_listener=update_listener, )
def start_s3(port=None, backend_port=None, asynchronous=None, update_listener=None): port = port or config.PORT_S3 backend_port = backend_port or DEFAULT_PORT_S3_BACKEND apply_patches() return start_moto_server(key='s3', name='S3', asynchronous=asynchronous, port=port, backend_port=backend_port, update_listener=update_listener)
def start_apigateway(port=None, backend_port=None, asynchronous=None, update_listener=None): port = port or config.PORT_APIGATEWAY apply_patches() result = start_moto_server(key='apigateway', name='API Gateway', asynchronous=asynchronous, port=port, backend_port=backend_port, update_listener=update_listener) return result
def start_ses(port=None, backend_port=None, asynchronous=None, update_listener=None): port = port or config.service_port("ses") apply_patches() return start_moto_server( key="ses", name="SES", port=port, backend_port=backend_port, asynchronous=asynchronous, update_listener=update_listener, )
def start_events(port=None, asynchronous=None, update_listener=None): port = port or config.PORT_EVENTS backend_port = DEFAULT_PORT_EVENTS_BACKEND apply_patches() return start_moto_server( key='events', port=port, name='Cloudwatch Events', asynchronous=asynchronous, backend_port=backend_port, update_listener=update_listener )
def start_apigateway(port=None, backend_port=None, asynchronous=None, update_listener=None): port = port or config.service_port("apigateway") apply_patches() result = start_moto_server( key="apigateway", name="API Gateway", asynchronous=asynchronous, port=port, backend_port=backend_port, update_listener=update_listener, ) return result
def start_s3(port=None, backend_port=None, asynchronous=None, update_listener=None): port = port or config.PORT_S3 if not backend_port: if config.FORWARD_EDGE_INMEM: backend_port = multiserver.get_moto_server_port() else: backend_port = get_free_tcp_port() s3_listener.PORT_S3_BACKEND = backend_port apply_patches() return start_moto_server( key='s3', name='S3', asynchronous=asynchronous, port=port, backend_port=backend_port, update_listener=update_listener )
def start_secretsmanager(port=None, asynchronous=None, backend_port=None, update_listener=None): global PORT_SECRETSMANAGER_BACKEND port = port or config.PORT_SECRETSMANAGER backend_port = PORT_SECRETSMANAGER_BACKEND = backend_port or get_free_tcp_port() apply_patches() return start_moto_server( key='secretsmanager', name='Secrets Manager', port=port, backend_port=backend_port, asynchronous=asynchronous, update_listener=update_listener )
def start_secretsmanager(port=None, asynchronous=None, backend_port=None, update_listener=None): apply_patches() result = start_moto_server( key="secretsmanager", name="Secrets Manager", port=port, backend_port=backend_port, asynchronous=asynchronous, update_listener=update_listener, ) global PORT_SECRETS_MANAGER_BACKEND PORT_SECRETS_MANAGER_BACKEND = result.service_port return result
def start_swf(port=None, backend_port=None, asynchronous=None, update_listener=None): port = port or config.PORT_SWF if not backend_port: if config.FORWARD_EDGE_INMEM: backend_port = multiserver.get_moto_server_port() else: backend_port = get_free_tcp_port() swf_listener.PORT_SWF_BACKEND = backend_port return start_moto_server(key='swf', name='SWF', asynchronous=asynchronous, port=port, backend_port=backend_port, update_listener=update_listener)
def start_acm(port=None, asynchronous=False, update_listener=None): port = port or config.PORT_ACM apply_patches() return start_moto_server('acm', port, name='ACM', update_listener=update_listener, asynchronous=asynchronous)
def start_redshift(port=None, asynchronous=False): port = port or config.PORT_REDSHIFT apply_patches() return start_moto_server("redshift", port, name="Redshift", asynchronous=asynchronous)
def start_iam(port=None, asynchronous=False, update_listener=None): port = port or config.PORT_IAM apply_patches() return start_moto_server('iam', port, name='IAM', asynchronous=asynchronous, update_listener=update_listener)
def start_cloudwatch_logs(port=None, asynchronous=False, update_listener=None): port = port or config.PORT_LOGS patch_lambda() return start_moto_server('logs', port, name='CloudWatch Logs', asynchronous=asynchronous, update_listener=update_listener)
def start_support(port=None, asynchronous=False): port = port return start_moto_server("support", port, name="Support", asynchronous=asynchronous)
def start_support(port=None, asynchronous=False): port = port return start_moto_server('support', port, name='Support', asynchronous=asynchronous)
def start_configservice(port=None, asynchronous=False): return start_moto_server("config", port, name="Config Service", asynchronous=asynchronous)
def start_cloudwatch_logs(port=None, asynchronous=False, update_listener=None): port = port or config.PORT_LOGS return start_moto_server('logs', port, name='CloudWatch Logs', asynchronous=asynchronous, backend_port=DEFAULT_PORT_LOGS_BACKEND, update_listener=update_listener)
def start_sqs_moto(port=None, asynchronous=False, update_listener=None): port = port or config.PORT_SQS patch_moto() return start_moto_server('sqs', port, name='SQS', asynchronous=asynchronous, update_listener=update_listener)