/var/runtime/node_modules/@aws-sdk/client-notificationscontacts/dist-cjs
This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.
"use strict";var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, { AccessDeniedException: () => AccessDeniedException, ActivateEmailContactCommand: () => ActivateEmailContactCommand, ActivateEmailContactRequestFilterSensitiveLog: () => ActivateEmailContactRequestFilterSensitiveLog, ConflictException: () => ConflictException, CreateEmailContactCommand: () => CreateEmailContactCommand, CreateEmailContactRequestFilterSensitiveLog: () => CreateEmailContactRequestFilterSensitiveLog, DeleteEmailContactCommand: () => DeleteEmailContactCommand, EmailContactFilterSensitiveLog: () => EmailContactFilterSensitiveLog, EmailContactStatus: () => EmailContactStatus, GetEmailContactCommand: () => GetEmailContactCommand, GetEmailContactResponseFilterSensitiveLog: () => GetEmailContactResponseFilterSensitiveLog, InternalServerException: () => InternalServerException, ListEmailContactsCommand: () => ListEmailContactsCommand, ListEmailContactsResponseFilterSensitiveLog: () => ListEmailContactsResponseFilterSensitiveLog, ListTagsForResourceCommand: () => ListTagsForResourceCommand, NotificationsContacts: () => NotificationsContacts, NotificationsContactsClient: () => NotificationsContactsClient, NotificationsContactsServiceException: () => NotificationsContactsServiceException, ResourceNotFoundException: () => ResourceNotFoundException, SendActivationCodeCommand: () => SendActivationCodeCommand, ServiceQuotaExceededException: () => ServiceQuotaExceededException, TagResourceCommand: () => TagResourceCommand, ThrottlingException: () => ThrottlingException, UntagResourceCommand: () => UntagResourceCommand, ValidationException: () => ValidationException, ValidationExceptionReason: () => ValidationExceptionReason, __Client: () => import_smithy_client.Client, paginateListEmailContacts: () => paginateListEmailContacts});module.exports = __toCommonJS(index_exports); // src/NotificationsContactsClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "notifications-contacts" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }}; // src/NotificationsContactsClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) );}, "resolveRuntimeExtensions"); // src/NotificationsContactsClient.tsvar NotificationsContactsClient = class extends import_smithy_client.Client { static { __name(this, "NotificationsContactsClient"); } /** * The resolved configuration of NotificationsContactsClient class. This is resolved and normalized from the {@link NotificationsContactsClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultNotificationsContactsHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy() { super.destroy(); }}; // src/NotificationsContacts.ts // src/commands/ActivateEmailContactCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/models/models_0.ts // src/models/NotificationsContactsServiceException.ts var NotificationsContactsServiceException = class _NotificationsContactsServiceException extends import_smithy_client.ServiceException { static { __name(this, "NotificationsContactsServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _NotificationsContactsServiceException.prototype); }}; // src/models/models_0.tsvar AccessDeniedException = class _AccessDeniedException extends NotificationsContactsServiceException { static { __name(this, "AccessDeniedException"); } name = "AccessDeniedException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); }};var ConflictException = class _ConflictException extends NotificationsContactsServiceException { static { __name(this, "ConflictException"); } name = "ConflictException"; $fault = "client"; /** * <p>The resource ID that prompted the conflict error.</p> * @public */ resourceId; /** * <p>The resource type that prompted the conflict error.</p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConflictException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }};var InternalServerException = class _InternalServerException extends NotificationsContactsServiceException { static { __name(this, "InternalServerException"); } name = "InternalServerException"; $fault = "server"; $retryable = {}; /** * @internal */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); }};var ResourceNotFoundException = class _ResourceNotFoundException extends NotificationsContactsServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; /** * <p>The ID of the resource that wasn't found.</p> * @public */ resourceId; /** * <p>The type of resource that wasn't found.</p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }};var ThrottlingException = class _ThrottlingException extends NotificationsContactsServiceException { static { __name(this, "ThrottlingException"); } name = "ThrottlingException"; $fault = "client"; $retryable = { throttling: true }; /** * <p>Identifies the service being throttled.</p> * @public */ serviceCode; /** * <p>Identifies the quota that is being throttled.</p> * @public */ quotaCode; /** * <p>The number of seconds a client should wait before retrying the request.</p> * @public */ retryAfterSeconds; /** * @internal */ constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ThrottlingException.prototype); this.serviceCode = opts.serviceCode; this.quotaCode = opts.quotaCode; this.retryAfterSeconds = opts.retryAfterSeconds; }};var ValidationExceptionReason = { FIELD_VALIDATION_FAILED: "fieldValidationFailed", OTHER: "other"};var ValidationException = class _ValidationException extends NotificationsContactsServiceException { static { __name(this, "ValidationException"); } name = "ValidationException"; $fault = "client"; /** * <p>The reason why your input is considered invalid.</p> * @public */ reason; /** * <p>The list of input fields that are invalid.</p> * @public */ fieldList; /** * @internal */ constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); this.reason = opts.reason; this.fieldList = opts.fieldList; }};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NotificationsContactsServiceException { static { __name(this, "ServiceQuotaExceededException"); } name = "ServiceQuotaExceededException"; $fault = "client"; /** * <p>The ID of the resource that exceeds the service quota.</p> * @public */ resourceId; /** * <p>The type of the resource that exceeds the service quota.</p> * @public */ resourceType; /** * <p>The code for the service quota exceeded in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p> * @public */ serviceCode; /** * <p>The code for the service quota in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p> * @public */ quotaCode; /** * @internal */ constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; this.serviceCode = opts.serviceCode; this.quotaCode = opts.quotaCode; }};var EmailContactStatus = { ACTIVE: "active", INACTIVE: "inactive"};var ActivateEmailContactRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.code && { code: import_smithy_client.SENSITIVE_STRING }}), "ActivateEmailContactRequestFilterSensitiveLog");var CreateEmailContactRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }}), "CreateEmailContactRequestFilterSensitiveLog");var EmailContactFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }, ...obj.address && { address: import_smithy_client.SENSITIVE_STRING }}), "EmailContactFilterSensitiveLog");var GetEmailContactResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.emailContact && { emailContact: EmailContactFilterSensitiveLog(obj.emailContact) }}), "GetEmailContactResponseFilterSensitiveLog");var ListEmailContactsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.emailContacts && { emailContacts: obj.emailContacts.map((item) => EmailContactFilterSensitiveLog(item)) }}), "ListEmailContactsResponseFilterSensitiveLog"); // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core"); var se_ActivateEmailContactCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/emailcontacts/{arn}/activate/{code}"); b.p("arn", () => input.arn, "{arn}", false); b.p("code", () => input.code, "{code}", false); let body; b.m("PUT").h(headers).b(body); return b.build();}, "se_ActivateEmailContactCommand");var se_CreateEmailContactCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/2022-09-19/emailcontacts"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { emailAddress: [], name: [], tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateEmailContactCommand");var se_DeleteEmailContactCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/emailcontacts/{arn}"); b.p("arn", () => input.arn, "{arn}", false); let body; b.m("DELETE").h(headers).b(body); return b.build();}, "se_DeleteEmailContactCommand");var se_GetEmailContactCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/emailcontacts/{arn}"); b.p("arn", () => input.arn, "{arn}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetEmailContactCommand");var se_ListEmailContactsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/emailcontacts"); const query = (0, import_smithy_client.map)({ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()], [_nT]: [, input[_nT]] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListEmailContactsCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/tags/{arn}"); b.p("arn", () => input.arn, "{arn}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_ListTagsForResourceCommand");var se_SendActivationCodeCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/2022-10-31/emailcontacts/{arn}/activate/send"); b.p("arn", () => input.arn, "{arn}", false); let body; b.m("POST").h(headers).b(body); return b.build();}, "se_SendActivationCodeCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/tags/{arn}"); b.p("arn", () => input.arn, "{arn}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/tags/{arn}"); b.p("arn", () => input.arn, "{arn}", false); const query = (0, import_smithy_client.map)({ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []] }); let body; b.m("DELETE").h(headers).q(query).b(body); return b.build();}, "se_UntagResourceCommand");var de_ActivateEmailContactCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_ActivateEmailContactCommand");var de_CreateEmailContactCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 201 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { arn: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_CreateEmailContactCommand");var de_DeleteEmailContactCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_DeleteEmailContactCommand");var de_GetEmailContactCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { emailContact: /* @__PURE__ */ __name((_) => de_EmailContact(_, context), "emailContact") }); Object.assign(contents, doc); return contents;}, "de_GetEmailContactCommand");var de_ListEmailContactsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { emailContacts: /* @__PURE__ */ __name((_) => de_EmailContacts(_, context), "emailContacts"), nextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListEmailContactsCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_ListTagsForResourceCommand");var de_SendActivationCodeCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_SendActivationCodeCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_UntagResourceCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core2.parseJsonErrorBody)(output.body, context) }; const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "AccessDeniedException": case "com.amazonaws.notificationscontacts#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.notificationscontacts#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.notificationscontacts#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.notificationscontacts#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.notificationscontacts#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.notificationscontacts#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); case "ServiceQuotaExceededException": case "com.amazonaws.notificationscontacts#ServiceQuotaExceededException": throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(NotificationsContactsServiceException);var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_AccessDeniedExceptionRes");var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, resourceId: import_smithy_client.expectString, resourceType: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ConflictException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ConflictExceptionRes");var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new InternalServerException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServerExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, resourceId: import_smithy_client.expectString, resourceType: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ResourceNotFoundExceptionRes");var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, quotaCode: import_smithy_client.expectString, resourceId: import_smithy_client.expectString, resourceType: import_smithy_client.expectString, serviceCode: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ServiceQuotaExceededException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ServiceQuotaExceededExceptionRes");var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, quotaCode: import_smithy_client.expectString, serviceCode: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ThrottlingException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ThrottlingExceptionRes");var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { fieldList: import_smithy_client._json, message: import_smithy_client.expectString, reason: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ValidationException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ValidationExceptionRes");var de_EmailContact = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { address: import_smithy_client.expectString, arn: import_smithy_client.expectString, creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"), name: import_smithy_client.expectString, status: import_smithy_client.expectString, updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime") });}, "de_EmailContact");var de_EmailContacts = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_EmailContact(entry, context); }); return retVal;}, "de_EmailContacts");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata");var _mR = "maxResults";var _nT = "nextToken";var _rAS = "retryAfterSeconds";var _ra = "retry-after";var _tK = "tagKeys"; // src/commands/ActivateEmailContactCommand.tsvar ActivateEmailContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("NotificationsContacts", "ActivateEmailContact", {}).n("NotificationsContactsClient", "ActivateEmailContactCommand").f(ActivateEmailContactRequestFilterSensitiveLog, void 0).ser(se_ActivateEmailContactCommand).de(de_ActivateEmailContactCommand).build() { static { __name(this, "ActivateEmailContactCommand"); }}; // src/commands/CreateEmailContactCommand.ts var CreateEmailContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("NotificationsContacts", "CreateEmailContact", {}).n("NotificationsContactsClient", "CreateEmailContactCommand").f(CreateEmailContactRequestFilterSensitiveLog, void 0).ser(se_CreateEmailContactCommand).de(de_CreateEmailContactCommand).build() { static { __name(this, "CreateEmailContactCommand"); }}; // src/commands/DeleteEmailContactCommand.ts var DeleteEmailContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("NotificationsContacts", "DeleteEmailContact", {}).n("NotificationsContactsClient", "DeleteEmailContactCommand").f(void 0, void 0).ser(se_DeleteEmailContactCommand).de(de_DeleteEmailContactCommand).build() { static { __name(this, "DeleteEmailContactCommand"); }}; // src/commands/GetEmailContactCommand.ts var GetEmailContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("NotificationsContacts", "GetEmailContact", {}).n("NotificationsContactsClient", "GetEmailContactCommand").f(void 0, GetEmailContactResponseFilterSensitiveLog).ser(se_GetEmailContactCommand).de(de_GetEmailContactCommand).build() { static { __name(this, "GetEmailContactCommand"); }}; // src/commands/ListEmailContactsCommand.ts var ListEmailContactsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("NotificationsContacts", "ListEmailContacts", {}).n("NotificationsContactsClient", "ListEmailContactsCommand").f(void 0, ListEmailContactsResponseFilterSensitiveLog).ser(se_ListEmailContactsCommand).de(de_ListEmailContactsCommand).build() { static { __name(this, "ListEmailContactsCommand"); }}; // src/commands/ListTagsForResourceCommand.ts var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("NotificationsContacts", "ListTagsForResource", {}).n("NotificationsContactsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // src/commands/SendActivationCodeCommand.ts var SendActivationCodeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("NotificationsContacts", "SendActivationCode", {}).n("NotificationsContactsClient", "SendActivationCodeCommand").f(void 0, void 0).ser(se_SendActivationCodeCommand).de(de_SendActivationCodeCommand).build() { static { __name(this, "SendActivationCodeCommand"); }}; // src/commands/TagResourceCommand.ts var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("NotificationsContacts", "TagResource", {}).n("NotificationsContactsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() { static { __name(this, "TagResourceCommand"); }}; // src/commands/UntagResourceCommand.ts var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("NotificationsContacts", "UntagResource", {}).n("NotificationsContactsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/NotificationsContacts.tsvar commands = { ActivateEmailContactCommand, CreateEmailContactCommand, DeleteEmailContactCommand, GetEmailContactCommand, ListEmailContactsCommand, ListTagsForResourceCommand, SendActivationCodeCommand, TagResourceCommand, UntagResourceCommand};var NotificationsContacts = class extends NotificationsContactsClient { static { __name(this, "NotificationsContacts"); }};(0, import_smithy_client.createAggregatedClient)(commands, NotificationsContacts); // src/pagination/ListEmailContactsPaginator.ts var paginateListEmailContacts = (0, import_core.createPaginator)(NotificationsContactsClient, ListEmailContactsCommand, "nextToken", "nextToken", "maxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { NotificationsContactsServiceException, __Client, NotificationsContactsClient, NotificationsContacts, $Command, ActivateEmailContactCommand, CreateEmailContactCommand, DeleteEmailContactCommand, GetEmailContactCommand, ListEmailContactsCommand, ListTagsForResourceCommand, SendActivationCodeCommand, TagResourceCommand, UntagResourceCommand, paginateListEmailContacts, AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationExceptionReason, ValidationException, ServiceQuotaExceededException, EmailContactStatus, ActivateEmailContactRequestFilterSensitiveLog, CreateEmailContactRequestFilterSensitiveLog, EmailContactFilterSensitiveLog, GetEmailContactResponseFilterSensitiveLog, ListEmailContactsResponseFilterSensitiveLog});