/proc/4/root/var/runtime/node_modules/@aws-sdk/client-oam/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, { ConflictException: () => ConflictException, CreateLinkCommand: () => CreateLinkCommand, CreateSinkCommand: () => CreateSinkCommand, DeleteLinkCommand: () => DeleteLinkCommand, DeleteSinkCommand: () => DeleteSinkCommand, GetLinkCommand: () => GetLinkCommand, GetSinkCommand: () => GetSinkCommand, GetSinkPolicyCommand: () => GetSinkPolicyCommand, InternalServiceFault: () => InternalServiceFault, InvalidParameterException: () => InvalidParameterException, ListAttachedLinksCommand: () => ListAttachedLinksCommand, ListLinksCommand: () => ListLinksCommand, ListSinksCommand: () => ListSinksCommand, ListTagsForResourceCommand: () => ListTagsForResourceCommand, MissingRequiredParameterException: () => MissingRequiredParameterException, OAM: () => OAM, OAMClient: () => OAMClient, OAMServiceException: () => OAMServiceException, PutSinkPolicyCommand: () => PutSinkPolicyCommand, ResourceNotFoundException: () => ResourceNotFoundException, ResourceType: () => ResourceType, ServiceQuotaExceededException: () => ServiceQuotaExceededException, TagResourceCommand: () => TagResourceCommand, TooManyTagsException: () => TooManyTagsException, UntagResourceCommand: () => UntagResourceCommand, UpdateLinkCommand: () => UpdateLinkCommand, ValidationException: () => ValidationException, __Client: () => import_smithy_client.Client, paginateListAttachedLinks: () => paginateListAttachedLinks, paginateListLinks: () => paginateListLinks, paginateListSinks: () => paginateListSinks});module.exports = __toCommonJS(index_exports); // src/OAMClient.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, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "oam" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/OAMClient.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/OAMClient.tsvar OAMClient = class extends import_smithy_client.Client { static { __name(this, "OAMClient"); } /** * The resolved configuration of OAMClient class. This is resolved and normalized from the {@link OAMClientConfig | 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.defaultOAMHttpAuthSchemeParametersProvider, 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/OAM.ts // src/commands/CreateLinkCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core"); // src/models/OAMServiceException.ts var OAMServiceException = class _OAMServiceException extends import_smithy_client.ServiceException { static { __name(this, "OAMServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _OAMServiceException.prototype); }}; // src/models/models_0.tsvar ConflictException = class _ConflictException extends OAMServiceException { static { __name(this, "ConflictException"); } name = "ConflictException"; $fault = "client"; Message; /** * <p>The name of the exception.</p> * @public */ amznErrorType; /** * @internal */ constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConflictException.prototype); this.Message = opts.Message; this.amznErrorType = opts.amznErrorType; }};var ResourceType = { AWS_APPLICATIONINSIGHTS_APPLICATION: "AWS::ApplicationInsights::Application", AWS_APPLICATION_SIGNALS_SERVICE: "AWS::ApplicationSignals::Service", AWS_APPLICATION_SIGNALS_SLO: "AWS::ApplicationSignals::ServiceLevelObjective", AWS_CLOUDWATCH_METRIC: "AWS::CloudWatch::Metric", AWS_INTERNETMONITOR_MONITOR: "AWS::InternetMonitor::Monitor", AWS_LOGS_LOGGROUP: "AWS::Logs::LogGroup", AWS_XRAY_TRACE: "AWS::XRay::Trace"};var InternalServiceFault = class _InternalServiceFault extends OAMServiceException { static { __name(this, "InternalServiceFault"); } name = "InternalServiceFault"; $fault = "server"; Message; /** * <p>The name of the exception.</p> * @public */ amznErrorType; /** * @internal */ constructor(opts) { super({ name: "InternalServiceFault", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServiceFault.prototype); this.Message = opts.Message; this.amznErrorType = opts.amznErrorType; }};var InvalidParameterException = class _InvalidParameterException extends OAMServiceException { static { __name(this, "InvalidParameterException"); } name = "InvalidParameterException"; $fault = "client"; /** * <p>The name of the exception.</p> * @public */ amznErrorType; /** * @internal */ constructor(opts) { super({ name: "InvalidParameterException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidParameterException.prototype); this.amznErrorType = opts.amznErrorType; }};var MissingRequiredParameterException = class _MissingRequiredParameterException extends OAMServiceException { static { __name(this, "MissingRequiredParameterException"); } name = "MissingRequiredParameterException"; $fault = "client"; /** * <p>The name of the exception.</p> * @public */ amznErrorType; /** * @internal */ constructor(opts) { super({ name: "MissingRequiredParameterException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _MissingRequiredParameterException.prototype); this.amznErrorType = opts.amznErrorType; }};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends OAMServiceException { static { __name(this, "ServiceQuotaExceededException"); } name = "ServiceQuotaExceededException"; $fault = "client"; Message; /** * <p>The name of the exception.</p> * @public */ amznErrorType; /** * @internal */ constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype); this.Message = opts.Message; this.amznErrorType = opts.amznErrorType; }};var ResourceNotFoundException = class _ResourceNotFoundException extends OAMServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; Message; /** * <p>The name of the exception.</p> * @public */ amznErrorType; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.Message = opts.Message; this.amznErrorType = opts.amznErrorType; }};var ValidationException = class _ValidationException extends OAMServiceException { static { __name(this, "ValidationException"); } name = "ValidationException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); this.Message = opts.Message; }};var TooManyTagsException = class _TooManyTagsException extends OAMServiceException { static { __name(this, "TooManyTagsException"); } name = "TooManyTagsException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "TooManyTagsException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _TooManyTagsException.prototype); this.Message = opts.Message; }}; // src/protocols/Aws_restJson1.tsvar se_CreateLinkCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/CreateLink"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { LabelTemplate: [], LinkConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LinkConfiguration"), ResourceTypes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourceTypes"), SinkIdentifier: [], Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateLinkCommand");var se_CreateSinkCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/CreateSink"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { Name: [], Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateSinkCommand");var se_DeleteLinkCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/DeleteLink"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { Identifier: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_DeleteLinkCommand");var se_DeleteSinkCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/DeleteSink"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { Identifier: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_DeleteSinkCommand");var se_GetLinkCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/GetLink"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { Identifier: [], IncludeTags: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_GetLinkCommand");var se_GetSinkCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/GetSink"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { Identifier: [], IncludeTags: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_GetSinkCommand");var se_GetSinkPolicyCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/GetSinkPolicy"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { SinkIdentifier: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_GetSinkPolicyCommand");var se_ListAttachedLinksCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/ListAttachedLinks"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { MaxResults: [], NextToken: [], SinkIdentifier: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_ListAttachedLinksCommand");var se_ListLinksCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/ListLinks"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { MaxResults: [], NextToken: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_ListLinksCommand");var se_ListSinksCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/ListSinks"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { MaxResults: [], NextToken: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_ListSinksCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/tags/{ResourceArn}"); b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_ListTagsForResourceCommand");var se_PutSinkPolicyCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/PutSinkPolicy"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { Policy: [], SinkIdentifier: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_PutSinkPolicyCommand");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/{ResourceArn}"); b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags") }) ); b.m("PUT").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/{ResourceArn}"); b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", 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 se_UpdateLinkCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/UpdateLink"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { Identifier: [], IncludeTags: [], LinkConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LinkConfiguration"), ResourceTypes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourceTypes") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_UpdateLinkCommand");var de_CreateLinkCommand = /* @__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, { Arn: import_smithy_client.expectString, Id: import_smithy_client.expectString, Label: import_smithy_client.expectString, LabelTemplate: import_smithy_client.expectString, LinkConfiguration: import_smithy_client._json, ResourceTypes: import_smithy_client._json, SinkArn: import_smithy_client.expectString, Tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_CreateLinkCommand");var de_CreateSinkCommand = /* @__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, { Arn: import_smithy_client.expectString, Id: import_smithy_client.expectString, Name: import_smithy_client.expectString, Tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_CreateSinkCommand");var de_DeleteLinkCommand = /* @__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_DeleteLinkCommand");var de_DeleteSinkCommand = /* @__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_DeleteSinkCommand");var de_GetLinkCommand = /* @__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, { Arn: import_smithy_client.expectString, Id: import_smithy_client.expectString, Label: import_smithy_client.expectString, LabelTemplate: import_smithy_client.expectString, LinkConfiguration: import_smithy_client._json, ResourceTypes: import_smithy_client._json, SinkArn: import_smithy_client.expectString, Tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_GetLinkCommand");var de_GetSinkCommand = /* @__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, { Arn: import_smithy_client.expectString, Id: import_smithy_client.expectString, Name: import_smithy_client.expectString, Tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_GetSinkCommand");var de_GetSinkPolicyCommand = /* @__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, { Policy: import_smithy_client.expectString, SinkArn: import_smithy_client.expectString, SinkId: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetSinkPolicyCommand");var de_ListAttachedLinksCommand = /* @__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, { Items: import_smithy_client._json, NextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListAttachedLinksCommand");var de_ListLinksCommand = /* @__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, { Items: import_smithy_client._json, NextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListLinksCommand");var de_ListSinksCommand = /* @__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, { Items: import_smithy_client._json, NextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListSinksCommand");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_PutSinkPolicyCommand = /* @__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, { Policy: import_smithy_client.expectString, SinkArn: import_smithy_client.expectString, SinkId: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_PutSinkPolicyCommand");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_UpdateLinkCommand = /* @__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, { Arn: import_smithy_client.expectString, Id: import_smithy_client.expectString, Label: import_smithy_client.expectString, LabelTemplate: import_smithy_client.expectString, LinkConfiguration: import_smithy_client._json, ResourceTypes: import_smithy_client._json, SinkArn: import_smithy_client.expectString, Tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_UpdateLinkCommand");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 "ConflictException": case "com.amazonaws.oam#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServiceFault": case "com.amazonaws.oam#InternalServiceFault": throw await de_InternalServiceFaultRes(parsedOutput, context); case "InvalidParameterException": case "com.amazonaws.oam#InvalidParameterException": throw await de_InvalidParameterExceptionRes(parsedOutput, context); case "MissingRequiredParameterException": case "com.amazonaws.oam#MissingRequiredParameterException": throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context); case "ServiceQuotaExceededException": case "com.amazonaws.oam#ServiceQuotaExceededException": throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.oam#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.oam#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); case "TooManyTagsException": case "com.amazonaws.oam#TooManyTagsException": throw await de_TooManyTagsExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(OAMServiceException);var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_aET]: [, parsedOutput.headers[_xae]] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: 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_InternalServiceFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_aET]: [, parsedOutput.headers[_xae]] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new InternalServiceFault({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServiceFaultRes");var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_aET]: [, parsedOutput.headers[_xae]] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new InvalidParameterException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InvalidParameterExceptionRes");var de_MissingRequiredParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_aET]: [, parsedOutput.headers[_xae]] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new MissingRequiredParameterException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_MissingRequiredParameterExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_aET]: [, parsedOutput.headers[_xae]] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: 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)({ [_aET]: [, parsedOutput.headers[_xae]] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: 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_TooManyTagsExceptionRes = /* @__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 TooManyTagsException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_TooManyTagsExceptionRes");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, { Message: 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 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 _TK = "TagKeys";var _aET = "amznErrorType";var _tK = "tagKeys";var _xae = "x-amzn-errortype"; // src/commands/CreateLinkCommand.tsvar CreateLinkCommand = 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("oamservice", "CreateLink", {}).n("OAMClient", "CreateLinkCommand").f(void 0, void 0).ser(se_CreateLinkCommand).de(de_CreateLinkCommand).build() { static { __name(this, "CreateLinkCommand"); }}; // src/commands/CreateSinkCommand.ts var CreateSinkCommand = 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("oamservice", "CreateSink", {}).n("OAMClient", "CreateSinkCommand").f(void 0, void 0).ser(se_CreateSinkCommand).de(de_CreateSinkCommand).build() { static { __name(this, "CreateSinkCommand"); }}; // src/commands/DeleteLinkCommand.ts var DeleteLinkCommand = 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("oamservice", "DeleteLink", {}).n("OAMClient", "DeleteLinkCommand").f(void 0, void 0).ser(se_DeleteLinkCommand).de(de_DeleteLinkCommand).build() { static { __name(this, "DeleteLinkCommand"); }}; // src/commands/DeleteSinkCommand.ts var DeleteSinkCommand = 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("oamservice", "DeleteSink", {}).n("OAMClient", "DeleteSinkCommand").f(void 0, void 0).ser(se_DeleteSinkCommand).de(de_DeleteSinkCommand).build() { static { __name(this, "DeleteSinkCommand"); }}; // src/commands/GetLinkCommand.ts var GetLinkCommand = 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("oamservice", "GetLink", {}).n("OAMClient", "GetLinkCommand").f(void 0, void 0).ser(se_GetLinkCommand).de(de_GetLinkCommand).build() { static { __name(this, "GetLinkCommand"); }}; // src/commands/GetSinkCommand.ts var GetSinkCommand = 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("oamservice", "GetSink", {}).n("OAMClient", "GetSinkCommand").f(void 0, void 0).ser(se_GetSinkCommand).de(de_GetSinkCommand).build() { static { __name(this, "GetSinkCommand"); }}; // src/commands/GetSinkPolicyCommand.ts var GetSinkPolicyCommand = 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("oamservice", "GetSinkPolicy", {}).n("OAMClient", "GetSinkPolicyCommand").f(void 0, void 0).ser(se_GetSinkPolicyCommand).de(de_GetSinkPolicyCommand).build() { static { __name(this, "GetSinkPolicyCommand"); }}; // src/commands/ListAttachedLinksCommand.ts var ListAttachedLinksCommand = 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("oamservice", "ListAttachedLinks", {}).n("OAMClient", "ListAttachedLinksCommand").f(void 0, void 0).ser(se_ListAttachedLinksCommand).de(de_ListAttachedLinksCommand).build() { static { __name(this, "ListAttachedLinksCommand"); }}; // src/commands/ListLinksCommand.ts var ListLinksCommand = 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("oamservice", "ListLinks", {}).n("OAMClient", "ListLinksCommand").f(void 0, void 0).ser(se_ListLinksCommand).de(de_ListLinksCommand).build() { static { __name(this, "ListLinksCommand"); }}; // src/commands/ListSinksCommand.ts var ListSinksCommand = 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("oamservice", "ListSinks", {}).n("OAMClient", "ListSinksCommand").f(void 0, void 0).ser(se_ListSinksCommand).de(de_ListSinksCommand).build() { static { __name(this, "ListSinksCommand"); }}; // 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("oamservice", "ListTagsForResource", {}).n("OAMClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // src/commands/PutSinkPolicyCommand.ts var PutSinkPolicyCommand = 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("oamservice", "PutSinkPolicy", {}).n("OAMClient", "PutSinkPolicyCommand").f(void 0, void 0).ser(se_PutSinkPolicyCommand).de(de_PutSinkPolicyCommand).build() { static { __name(this, "PutSinkPolicyCommand"); }}; // 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("oamservice", "TagResource", {}).n("OAMClient", "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("oamservice", "UntagResource", {}).n("OAMClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/commands/UpdateLinkCommand.ts var UpdateLinkCommand = 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("oamservice", "UpdateLink", {}).n("OAMClient", "UpdateLinkCommand").f(void 0, void 0).ser(se_UpdateLinkCommand).de(de_UpdateLinkCommand).build() { static { __name(this, "UpdateLinkCommand"); }}; // src/OAM.tsvar commands = { CreateLinkCommand, CreateSinkCommand, DeleteLinkCommand, DeleteSinkCommand, GetLinkCommand, GetSinkCommand, GetSinkPolicyCommand, ListAttachedLinksCommand, ListLinksCommand, ListSinksCommand, ListTagsForResourceCommand, PutSinkPolicyCommand, TagResourceCommand, UntagResourceCommand, UpdateLinkCommand};var OAM = class extends OAMClient { static { __name(this, "OAM"); }};(0, import_smithy_client.createAggregatedClient)(commands, OAM); // src/pagination/ListAttachedLinksPaginator.ts var paginateListAttachedLinks = (0, import_core.createPaginator)(OAMClient, ListAttachedLinksCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListLinksPaginator.ts var paginateListLinks = (0, import_core.createPaginator)(OAMClient, ListLinksCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListSinksPaginator.ts var paginateListSinks = (0, import_core.createPaginator)(OAMClient, ListSinksCommand, "NextToken", "NextToken", "MaxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { OAMServiceException, __Client, OAMClient, OAM, $Command, CreateLinkCommand, CreateSinkCommand, DeleteLinkCommand, DeleteSinkCommand, GetLinkCommand, GetSinkCommand, GetSinkPolicyCommand, ListAttachedLinksCommand, ListLinksCommand, ListSinksCommand, ListTagsForResourceCommand, PutSinkPolicyCommand, TagResourceCommand, UntagResourceCommand, UpdateLinkCommand, paginateListAttachedLinks, paginateListLinks, paginateListSinks, ConflictException, ResourceType, InternalServiceFault, InvalidParameterException, MissingRequiredParameterException, ServiceQuotaExceededException, ResourceNotFoundException, ValidationException, TooManyTagsException});