UNPKG

@testcontainers/localstack

Version:
22 lines (21 loc) 908 B
import { AbstractStartedContainer, GenericContainer, StartedTestContainer } from "testcontainers"; export declare const LOCALSTACK_PORT = 4566; export declare class LocalstackContainer extends GenericContainer { constructor(image?: string); private resolveHostname; /** * Configure the LocalStack container to add sessionId when starting lambda container. * This allows the lambda container to be identified by the {@link Reaper} and cleaned up on exit. */ private flagLambdaSessionId; protected beforeContainerCreated(): Promise<void>; start(): Promise<StartedLocalStackContainer>; } export declare class StartedLocalStackContainer extends AbstractStartedContainer { constructor(startedTestContainer: StartedTestContainer); getPort(): number; /** * @returns A connection URI in the form of `http://host:port` */ getConnectionUri(): string; }