def kms(): if config.KMS_PROVIDER == "local-kms": from localstack.services.kms import kms_starter return Service("kms", start=kms_starter.start_kms_local) # fall back to default provider from localstack.services.kms.provider import KmsProvider provider = KmsProvider() return Service("kms", listener=AwsApiListener("kms", MotoFallbackDispatcher(provider)))
def awslambda_asf(): from localstack.aws.proxy import AwsApiListener from localstack.services.awslambda.provider import LambdaProvider provider = LambdaProvider() return Service("lambda", listener=AwsApiListener("lambda", provider), lifecycle_hook=provider)
def opensearch(): from localstack.aws.proxy import AwsApiListener from localstack.services.opensearch.provider import OpensearchProvider provider = OpensearchProvider() return Service("opensearch", listener=AwsApiListener("opensearch", provider))
def cloudformation(): from localstack.services.cloudformation.provider import CloudformationProvider provider = CloudformationProvider() return Service("cloudformation", listener=AwsApiListener("cloudformation", provider))
def redshift(): from localstack.services.redshift.provider import RedshiftProvider provider = RedshiftProvider() listener = AwsApiListener("redshift", MotoFallbackDispatcher(provider)) return Service("redshift", listener=listener)
def s3(): from localstack.services.s3 import s3_listener, s3_starter return Service("s3", listener=s3_listener.UPDATE_S3, start=s3_starter.start_s3, check=s3_starter.check_s3)
def apigateway_asf(): from localstack.services.apigateway.provider_asf import AsfApigatewayProvider provider = AsfApigatewayProvider() listener = AwsApiListener("apigateway", MotoFallbackDispatcher(provider)) return Service("apigateway", listener=listener, lifecycle_hook=provider)
def acm(): from localstack.services.acm.provider import AcmProvider from localstack.services.moto import MotoFallbackDispatcher provider = AcmProvider() return Service("acm", listener=AwsApiListener("acm", MotoFallbackDispatcher(provider)))
def sqs_asf(): from localstack.aws.proxy import AwsApiListener from localstack.services.sqs.provider import SqsProvider provider = SqsProvider() return Service("sqs", listener=AwsApiListener("sqs", provider), lifecycle_hook=provider)
def swf(): from localstack.services.swf import swf_starter return Service( "swf", start=swf_starter.start_swf, )
def cloudwatch(): from localstack.services.cloudwatch import cloudwatch_listener, cloudwatch_starter return Service( "cloudwatch", listener=cloudwatch_listener.UPDATE_CLOUD_WATCH, start=cloudwatch_starter.start_cloudwatch, )
def resourcegroupstaggingapi(): from localstack.services.resourcegroupstaggingapi import rgta_listener, rgta_starter return Service( "resourcegroupstaggingapi", listener=rgta_listener.UPDATE_RGSA, start=rgta_starter.start_rgsa, )
def s3control(): from localstack.services.moto import MotoFallbackDispatcher from localstack.services.s3control.provider import S3ControlProvider provider = S3ControlProvider() return Service("s3control", listener=AwsApiListener("s3control", MotoFallbackDispatcher(provider)))
def route53(): from localstack.services.route53.provider import Route53Provider provider = Route53Provider() return Service("route53", listener=AwsApiListener("route53", MotoFallbackDispatcher(provider)))
def apigateway(): from localstack.services.apigateway import apigateway_listener, apigateway_starter return Service( "apigateway", listener=apigateway_listener.UPDATE_APIGATEWAY, start=apigateway_starter.start_apigateway, )
def awsconfig(): from localstack.services.configservice.provider import ConfigProvider from localstack.services.moto import MotoFallbackDispatcher provider = ConfigProvider() return Service("config", listener=AwsApiListener("config", MotoFallbackDispatcher(provider)))
def swf(): from localstack.services.moto import MotoFallbackDispatcher from localstack.services.swf.provider import SWFProvider provider = SWFProvider() return Service( "swf", listener=AwsApiListener("swf", MotoFallbackDispatcher(provider)), )
def stepfunctions(): from localstack.services.stepfunctions import stepfunctions_listener, stepfunctions_starter return Service( "stepfunctions", listener=stepfunctions_listener.UPDATE_STEPFUNCTIONS, start=stepfunctions_starter.start_stepfunctions, check=stepfunctions_starter.check_stepfunctions, )
def ssm(): from localstack.services.moto import MotoFallbackDispatcher from localstack.services.ssm.provider import SsmProvider provider = SsmProvider() return Service( "ssm", listener=AwsApiListener("ssm", MotoFallbackDispatcher(provider)), )
def sqs(): from localstack.services.sqs import sqs_listener, sqs_starter return Service( "sqs", listener=sqs_listener.UPDATE_SQS, start=sqs_starter.start_sqs, check=sqs_starter.check_sqs, )
def events(): from localstack.services.events.provider import EventsProvider from localstack.services.moto import MotoFallbackDispatcher provider = EventsProvider() return Service( "events", listener=AwsApiListener("events", MotoFallbackDispatcher(provider)), )
def stepfunctions(): from localstack.services.stepfunctions.provider import StepFunctionsApiListener listener = StepFunctionsApiListener() return Service( "stepfunctions", listener=listener, lifecycle_hook=listener.provider, )
def dynamodb(): from localstack.services.dynamodb.provider import DynamoDBApiListener listener = DynamoDBApiListener() return Service( "dynamodb", listener=listener, lifecycle_hook=listener.provider, )
def swf(): from localstack.services.swf import swf_listener, swf_starter return Service( "swf", listener=swf_listener.UPDATE_SWF, start=swf_starter.start_swf, check=swf_starter.check_swf, )
def dynamodb(): from localstack.services.dynamodb import dynamodb_listener, dynamodb_starter return Service( "dynamodb", listener=dynamodb_listener.UPDATE_DYNAMODB, start=dynamodb_starter.start_dynamodb, check=dynamodb_starter.check_dynamodb, )
def secretsmanager(): from localstack.services.secretsmanager import secretsmanager_listener, secretsmanager_starter return Service( "secretsmanager", listener=secretsmanager_listener.UPDATE_SECRETSMANAGER, start=secretsmanager_starter.start_secretsmanager, check=secretsmanager_starter.check_secretsmanager, )
def support(): from localstack.services.moto import MotoFallbackDispatcher from localstack.services.support.provider import SupportProvider provider = SupportProvider() return Service( "support", listener=AwsApiListener("support", MotoFallbackDispatcher(provider)), )
def kinesis(): from localstack.services.kinesis import kinesis_listener, kinesis_starter return Service( "kinesis", listener=kinesis_listener.UPDATE_KINESIS, start=kinesis_starter.start_kinesis, check=kinesis_starter.check_kinesis, )
def ec2(): from localstack.services.ec2.provider import Ec2Provider from localstack.services.moto import MotoFallbackDispatcher provider = Ec2Provider() return Service( "ec2", listener=AwsApiListener("ec2", MotoFallbackDispatcher(provider)), )
def awslambda(): from localstack.services.awslambda import lambda_starter return Service( "lambda", start=lambda_starter.start_lambda, stop=lambda_starter.stop_lambda, check=lambda_starter.check_lambda, )