{
  "version": 3,
  "sources": ["../../src/client-sns/sns-client.ts"],
  "sourcesContent": ["import {\n  SNSClient as BaseClient,\n  SNSClientConfig as BaseClientConfiguration,\n  SNSClientResolvedConfig as BaseClientResolvedConfiguration,\n  ServiceInputTypes as BaseServiceInputTypes,\n  ServiceOutputTypes as BaseServiceOutputTypes,\n} from \"@aws-sdk/client-sns\";\nimport { Command, HttpHandlerOptions, MiddlewareStack } from \"@aws-sdk/types\";\nimport { Client } from \"@smithy/smithy-client\";\n\nimport {\n  PublishBatchCommandInput,\n  PublishBatchCommandOutput,\n  PublishCommandInput,\n  PublishCommandOutput,\n} from \"./commands/index.js\";\n\nexport type ServiceInputTypes =\n  | PublishBatchCommandInput\n  | PublishCommandInput\n  | BaseServiceInputTypes;\nexport type ServiceOutputTypes =\n  | PublishBatchCommandOutput\n  | PublishCommandOutput\n  | BaseServiceOutputTypes;\n\ntype IClient = Client<\n  HttpHandlerOptions,\n  ServiceInputTypes,\n  ServiceOutputTypes,\n  BaseClientResolvedConfiguration\n>;\n\n/**\n * A client for AWS SNS.\n * @see {@link BaseClient SNSClient from \"@aws-sdk/client-sns\"}\n */\nexport class SNSClient implements IClient {\n  private client: IClient | undefined;\n\n  constructor(readonly configuration: BaseClientConfiguration) {}\n\n  private resolveClient() {\n    this.client = this.client ?? new BaseClient(this.configuration);\n    return this.client;\n  }\n\n  get config() {\n    return this.resolveClient().config;\n  }\n\n  get middlewareStack(): MiddlewareStack<\n    ServiceInputTypes,\n    ServiceOutputTypes\n  > {\n    return this.resolveClient().middlewareStack;\n  }\n\n  send<\n    InputType extends ServiceInputTypes,\n    OutputType extends ServiceOutputTypes,\n  >(\n    command: Command<\n      ServiceInputTypes,\n      InputType,\n      ServiceOutputTypes,\n      OutputType,\n      BaseClientResolvedConfiguration\n    >,\n    options?: HttpHandlerOptions,\n  ): Promise<OutputType>;\n  send<\n    InputType extends ServiceInputTypes,\n    OutputType extends ServiceOutputTypes,\n  >(\n    command: Command<\n      ServiceInputTypes,\n      InputType,\n      ServiceOutputTypes,\n      OutputType,\n      BaseClientResolvedConfiguration\n    >,\n    callback: (error: any, data?: OutputType) => void,\n  ): void;\n  send<\n    InputType extends ServiceInputTypes,\n    OutputType extends ServiceOutputTypes,\n  >(\n    command: Command<\n      ServiceInputTypes,\n      InputType,\n      ServiceOutputTypes,\n      OutputType,\n      BaseClientResolvedConfiguration\n    >,\n    options: HttpHandlerOptions,\n    callback: (error: any, data?: OutputType) => void,\n  ): void;\n  send<\n    InputType extends ServiceInputTypes,\n    OutputType extends ServiceOutputTypes,\n  >(command: any, options?: any, callback?: any): void | Promise<OutputType> {\n    return this.resolveClient().send(command, options, callback);\n  }\n\n  destroy(): void {\n    this.resolveClient().destroy();\n  }\n}\n"],
  "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,eAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAMO,+BA+BA,MAAMF,CAA6B,CAGxC,YAAqBG,EAAwC,CAAxC,mBAAAA,CAAyC,CAEtD,eAAgB,CACtB,YAAK,OAAS,KAAK,QAAU,IAAI,EAAAC,UAAW,KAAK,aAAa,EACvD,KAAK,MACd,CAEA,IAAI,QAAS,CACX,OAAO,KAAK,cAAc,EAAE,MAC9B,CAEA,IAAI,iBAGF,CACA,OAAO,KAAK,cAAc,EAAE,eAC9B,CA0CA,KAGEC,EAAcC,EAAeC,EAA4C,CACzE,OAAO,KAAK,cAAc,EAAE,KAAKF,EAASC,EAASC,CAAQ,CAC7D,CAEA,SAAgB,CACd,KAAK,cAAc,EAAE,QAAQ,CAC/B,CACF",
  "names": ["sns_client_exports", "__export", "SNSClient", "__toCommonJS", "import_client_sns", "configuration", "BaseClient", "command", "options", "callback"]
}
