/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 /.
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");const { Command: $Command } = require("@smithy/core/client");exports.$Command = $Command;exports.__Client = Client;const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");const { defaultProvider } = require("@aws-sdk/credential-provider-node");const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");const { Sha256 } = require("@smithy/core/checksum"); const defaultOAMHttpAuthSchemeParametersProvider = async (config, context, input) => { return { operation: getSmithyContext(context).operation, region: await normalizeProvider(config.region)() || (() => { throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); })(), };};function createAwsAuthSigv4HttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { name: "oam", region: authParameters.region, }, propertiesExtractor: (config, context) => ({ signingProperties: { config, context, }, }), };}const defaultOAMHttpAuthSchemeProvider = (authParameters) => { const options = []; switch (authParameters.operation) { default: { options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options;};const resolveHttpAuthSchemeConfig = (config) => { const config_0 = resolveAwsSdkSigV4Config(config); return Object.assign(config_0, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), });}; const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "oam", });};const commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },}; var version = "3.1104.0";var packageInfo = { version: version}; const k = "ref";const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];const _data = { conditions: [ [c, [g]], [c, j], ["aws.partition", j, d], [e, [{ [k]: "UseFIPS" }, b]], [e, [{ [k]: "UseDualStack" }, b]], [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]], [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]] ], results: [ [a], [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], [g, i], ["https://oam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i], [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], ["https://oam-fips.{Region}.{PartitionResult#dnsSuffix}", i], [a, "FIPS is enabled but this partition does not support FIPS"], ["https://oam.{Region}.{PartitionResult#dualStackDnsSuffix}", i], [a, "DualStack is enabled but this partition does not support DualStack"], ["https://oam.{Region}.{PartitionResult#dnsSuffix}", i], [a, "Invalid Configuration: Missing Region"] ]};const root = 2;const r = 100_000_000;const nodes = new Int32Array([ -1, 1, -1, 0, 12, 3, 1, 4, r + 11, 2, 5, r + 11, 3, 8, 6, 4, 7, r + 10, 5, r + 8, r + 9, 4, 10, 9, 6, r + 6, r + 7, 5, 11, r + 5, 6, r + 4, r + 5, 3, r + 1, 13, 4, r + 2, r + 3,]);const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); const cache = new EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],});const defaultEndpointResolver = (endpointParams, context = {}) => { return cache.get(endpointParams, () => decideEndpoint(bdd, { endpointParams: endpointParams, logger: context.logger, }));};customEndpointFunctions.aws = awsEndpointFunctions; class OAMServiceException extends ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, OAMServiceException.prototype); }} class ConflictException extends OAMServiceException { name = "ConflictException"; $fault = "client"; Message; amznErrorType; constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ConflictException.prototype); this.Message = opts.Message; this.amznErrorType = opts.amznErrorType; }}class InternalServiceFault extends OAMServiceException { name = "InternalServiceFault"; $fault = "server"; Message; amznErrorType; constructor(opts) { super({ name: "InternalServiceFault", $fault: "server", ...opts, }); Object.setPrototypeOf(this, InternalServiceFault.prototype); this.Message = opts.Message; this.amznErrorType = opts.amznErrorType; }}class InvalidParameterException extends OAMServiceException { name = "InvalidParameterException"; $fault = "client"; amznErrorType; constructor(opts) { super({ name: "InvalidParameterException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidParameterException.prototype); this.amznErrorType = opts.amznErrorType; }}class MissingRequiredParameterException extends OAMServiceException { name = "MissingRequiredParameterException"; $fault = "client"; amznErrorType; constructor(opts) { super({ name: "MissingRequiredParameterException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, MissingRequiredParameterException.prototype); this.amznErrorType = opts.amznErrorType; }}class ServiceQuotaExceededException extends OAMServiceException { name = "ServiceQuotaExceededException"; $fault = "client"; Message; amznErrorType; constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype); this.Message = opts.Message; this.amznErrorType = opts.amznErrorType; }}class ResourceNotFoundException extends OAMServiceException { name = "ResourceNotFoundException"; $fault = "client"; Message; amznErrorType; constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ResourceNotFoundException.prototype); this.Message = opts.Message; this.amznErrorType = opts.amznErrorType; }}class ValidationException extends OAMServiceException { name = "ValidationException"; $fault = "client"; Message; constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ValidationException.prototype); this.Message = opts.Message; }}class TooManyTagsException extends OAMServiceException { name = "TooManyTagsException"; $fault = "client"; Message; constructor(opts) { super({ name: "TooManyTagsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TooManyTagsException.prototype); this.Message = opts.Message; }} const _A = "Arn";const _CE = "ConflictException";const _CL = "CreateLink";const _CLI = "CreateLinkInput";const _CLO = "CreateLinkOutput";const _CS = "CreateSink";const _CSI = "CreateSinkInput";const _CSO = "CreateSinkOutput";const _DL = "DeleteLink";const _DLI = "DeleteLinkInput";const _DLO = "DeleteLinkOutput";const _DS = "DeleteSink";const _DSI = "DeleteSinkInput";const _DSO = "DeleteSinkOutput";const _F = "Filter";const _GL = "GetLink";const _GLI = "GetLinkInput";const _GLO = "GetLinkOutput";const _GS = "GetSink";const _GSI = "GetSinkInput";const _GSO = "GetSinkOutput";const _GSP = "GetSinkPolicy";const _GSPI = "GetSinkPolicyInput";const _GSPO = "GetSinkPolicyOutput";const _I = "Id";const _IPE = "InvalidParameterException";const _ISF = "InternalServiceFault";const _IT = "IncludeTags";const _Id = "Identifier";const _It = "Items";const _L = "Label";const _LA = "LinkArn";const _LAL = "ListAttachedLinks";const _LALI = "ListAttachedLinksInput";const _LALIi = "ListAttachedLinksItem";const _LALIis = "ListAttachedLinksItems";const _LALO = "ListAttachedLinksOutput";const _LC = "LinkConfiguration";const _LGC = "LogGroupConfiguration";const _LL = "ListLinks";const _LLI = "ListLinksInput";const _LLIi = "ListLinksItem";const _LLIis = "ListLinksItems";const _LLO = "ListLinksOutput";const _LS = "ListSinks";const _LSI = "ListSinksInput";const _LSIi = "ListSinksItem";const _LSIis = "ListSinksItems";const _LSO = "ListSinksOutput";const _LT = "LabelTemplate";const _LTFR = "ListTagsForResource";const _LTFRI = "ListTagsForResourceInput";const _LTFRO = "ListTagsForResourceOutput";const _M = "Message";const _MC = "MetricConfiguration";const _MR = "MaxResults";const _MRPE = "MissingRequiredParameterException";const _N = "Name";const _NT = "NextToken";const _P = "Policy";const _PSP = "PutSinkPolicy";const _PSPI = "PutSinkPolicyInput";const _PSPO = "PutSinkPolicyOutput";const _RA = "ResourceArn";const _RNFE = "ResourceNotFoundException";const _RT = "ResourceTypes";const _SA = "SinkArn";const _SI = "SinkIdentifier";const _SIi = "SinkId";const _SQEE = "ServiceQuotaExceededException";const _T = "Tags";const _TK = "TagKeys";const _TMTE = "TooManyTagsException";const _TR = "TagResource";const _TRI = "TagResourceInput";const _TRO = "TagResourceOutput";const _UL = "UpdateLink";const _ULI = "UpdateLinkInput";const _ULO = "UpdateLinkOutput";const _UR = "UntagResource";const _URI = "UntagResourceInput";const _URO = "UntagResourceOutput";const _VE = "ValidationException";const _aET = "amznErrorType";const _c = "client";const _e = "error";const _h = "http";const _hE = "httpError";const _hH = "httpHeader";const _hQ = "httpQuery";const _m = "message";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.oam";const _se = "server";const _tK = "tagKeys";const _xaE = "x-amzn-ErrorType";const n0 = "com.amazonaws.oam";const _s_registry = TypeRegistry.for(_s);var OAMServiceException$ = [-3, _s, "OAMServiceException", 0, [], []];_s_registry.registerError(OAMServiceException$, OAMServiceException);const n0_registry = TypeRegistry.for(n0);var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_M, _aET], [0, [0, { [_hH]: _xaE }]]];n0_registry.registerError(ConflictException$, ConflictException);var InternalServiceFault$ = [-3, n0, _ISF, { [_e]: _se, [_hE]: 500 }, [_M, _aET], [0, [0, { [_hH]: _xaE }]]];n0_registry.registerError(InternalServiceFault$, InternalServiceFault);var InvalidParameterException$ = [-3, n0, _IPE, { [_e]: _c, [_hE]: 400 }, [_m, _aET], [0, [0, { [_hH]: _xaE }]]];n0_registry.registerError(InvalidParameterException$, InvalidParameterException);var MissingRequiredParameterException$ = [-3, n0, _MRPE, { [_e]: _c, [_hE]: 400 }, [_m, _aET], [0, [0, { [_hH]: _xaE }]]];n0_registry.registerError(MissingRequiredParameterException$, MissingRequiredParameterException);var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M, _aET], [0, [0, { [_hH]: _xaE }]]];n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);var ServiceQuotaExceededException$ = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 429 }, [_M, _aET], [0, [0, { [_hH]: _xaE }]]];n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);var TooManyTagsException$ = [-3, n0, _TMTE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];n0_registry.registerError(TooManyTagsException$, TooManyTagsException);var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];n0_registry.registerError(ValidationException$, ValidationException);const errorTypeRegistries = [ _s_registry, n0_registry,];var CreateLinkInput$ = [3, n0, _CLI, 0, [_LT, _RT, _SI, _T, _LC], [0, 64 | 0, 0, 128 | 0, () => LinkConfiguration$], 3];var CreateLinkOutput$ = [3, n0, _CLO, 0, [_A, _I, _L, _LT, _RT, _SA, _T, _LC], [0, 0, 0, 0, 64 | 0, 0, 128 | 0, () => LinkConfiguration$]];var CreateSinkInput$ = [3, n0, _CSI, 0, [_N, _T], [0, 128 | 0], 1];var CreateSinkOutput$ = [3, n0, _CSO, 0, [_A, _I, _N, _T], [0, 0, 0, 128 | 0]];var DeleteLinkInput$ = [3, n0, _DLI, 0, [_Id], [0], 1];var DeleteLinkOutput$ = [3, n0, _DLO, 0, [], []];var DeleteSinkInput$ = [3, n0, _DSI, 0, [_Id], [0], 1];var DeleteSinkOutput$ = [3, n0, _DSO, 0, [], []];var GetLinkInput$ = [3, n0, _GLI, 0, [_Id, _IT], [0, 2], 1];var GetLinkOutput$ = [3, n0, _GLO, 0, [_A, _I, _L, _LT, _RT, _SA, _T, _LC], [0, 0, 0, 0, 64 | 0, 0, 128 | 0, () => LinkConfiguration$]];var GetSinkInput$ = [3, n0, _GSI, 0, [_Id, _IT], [0, 2], 1];var GetSinkOutput$ = [3, n0, _GSO, 0, [_A, _I, _N, _T], [0, 0, 0, 128 | 0]];var GetSinkPolicyInput$ = [3, n0, _GSPI, 0, [_SI], [0], 1];var GetSinkPolicyOutput$ = [3, n0, _GSPO, 0, [_SA, _SIi, _P], [0, 0, 0]];var LinkConfiguration$ = [3, n0, _LC, 0, [_LGC, _MC], [() => LogGroupConfiguration$, () => MetricConfiguration$]];var ListAttachedLinksInput$ = [3, n0, _LALI, 0, [_SI, _MR, _NT], [0, 1, 0], 1];var ListAttachedLinksItem$ = [3, n0, _LALIi, 0, [_L, _LA, _RT], [0, 0, 64 | 0]];var ListAttachedLinksOutput$ = [3, n0, _LALO, 0, [_It, _NT], [() => ListAttachedLinksItems, 0], 1];var ListLinksInput$ = [3, n0, _LLI, 0, [_MR, _NT], [1, 0]];var ListLinksItem$ = [3, n0, _LLIi, 0, [_A, _I, _L, _RT, _SA], [0, 0, 0, 64 | 0, 0]];var ListLinksOutput$ = [3, n0, _LLO, 0, [_It, _NT], [() => ListLinksItems, 0], 1];var ListSinksInput$ = [3, n0, _LSI, 0, [_MR, _NT], [1, 0]];var ListSinksItem$ = [3, n0, _LSIi, 0, [_A, _I, _N], [0, 0, 0]];var ListSinksOutput$ = [3, n0, _LSO, 0, [_It, _NT], [() => ListSinksItems, 0], 1];var ListTagsForResourceInput$ = [3, n0, _LTFRI, 0, [_RA], [[0, 1]], 1];var ListTagsForResourceOutput$ = [3, n0, _LTFRO, 0, [_T], [128 | 0]];var LogGroupConfiguration$ = [3, n0, _LGC, 0, [_F], [0], 1];var MetricConfiguration$ = [3, n0, _MC, 0, [_F], [0], 1];var PutSinkPolicyInput$ = [3, n0, _PSPI, 0, [_SI, _P], [0, 0], 2];var PutSinkPolicyOutput$ = [3, n0, _PSPO, 0, [_SA, _SIi, _P], [0, 0, 0]];var TagResourceInput$ = [3, n0, _TRI, 0, [_RA, _T], [[0, 1], 128 | 0], 2];var TagResourceOutput$ = [3, n0, _TRO, 0, [], []];var UntagResourceInput$ = [3, n0, _URI, 0, [_RA, _TK], [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2];var UntagResourceOutput$ = [3, n0, _URO, 0, [], []];var UpdateLinkInput$ = [3, n0, _ULI, 0, [_Id, _RT, _LC, _IT], [0, 64 | 0, () => LinkConfiguration$, 2], 2];var UpdateLinkOutput$ = [3, n0, _ULO, 0, [_A, _I, _L, _LT, _RT, _SA, _T, _LC], [0, 0, 0, 0, 64 | 0, 0, 128 | 0, () => LinkConfiguration$]];var ListAttachedLinksItems = [1, n0, _LALIis, 0, () => ListAttachedLinksItem$];var ListLinksItems = [1, n0, _LLIis, 0, () => ListLinksItem$];var ListSinksItems = [1, n0, _LSIis, 0, () => ListSinksItem$];var CreateLink$ = [9, n0, _CL, { [_h]: ["POST", "/CreateLink", 200] }, () => CreateLinkInput$, () => CreateLinkOutput$];var CreateSink$ = [9, n0, _CS, { [_h]: ["POST", "/CreateSink", 200] }, () => CreateSinkInput$, () => CreateSinkOutput$];var DeleteLink$ = [9, n0, _DL, { [_h]: ["POST", "/DeleteLink", 200] }, () => DeleteLinkInput$, () => DeleteLinkOutput$];var DeleteSink$ = [9, n0, _DS, { [_h]: ["POST", "/DeleteSink", 200] }, () => DeleteSinkInput$, () => DeleteSinkOutput$];var GetLink$ = [9, n0, _GL, { [_h]: ["POST", "/GetLink", 200] }, () => GetLinkInput$, () => GetLinkOutput$];var GetSink$ = [9, n0, _GS, { [_h]: ["POST", "/GetSink", 200] }, () => GetSinkInput$, () => GetSinkOutput$];var GetSinkPolicy$ = [9, n0, _GSP, { [_h]: ["POST", "/GetSinkPolicy", 200] }, () => GetSinkPolicyInput$, () => GetSinkPolicyOutput$];var ListAttachedLinks$ = [9, n0, _LAL, { [_h]: ["POST", "/ListAttachedLinks", 200] }, () => ListAttachedLinksInput$, () => ListAttachedLinksOutput$];var ListLinks$ = [9, n0, _LL, { [_h]: ["POST", "/ListLinks", 200] }, () => ListLinksInput$, () => ListLinksOutput$];var ListSinks$ = [9, n0, _LS, { [_h]: ["POST", "/ListSinks", 200] }, () => ListSinksInput$, () => ListSinksOutput$];var ListTagsForResource$ = [9, n0, _LTFR, { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$];var PutSinkPolicy$ = [9, n0, _PSP, { [_h]: ["POST", "/PutSinkPolicy", 200] }, () => PutSinkPolicyInput$, () => PutSinkPolicyOutput$];var TagResource$ = [9, n0, _TR, { [_h]: ["PUT", "/tags/{ResourceArn}", 200] }, () => TagResourceInput$, () => TagResourceOutput$];var UntagResource$ = [9, n0, _UR, { [_h]: ["DELETE", "/tags/{ResourceArn}", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$];var UpdateLink$ = [9, n0, _UL, { [_h]: ["POST", "/UpdateLink", 200] }, () => UpdateLinkInput$, () => UpdateLinkOutput$]; const getRuntimeConfig$1 = (config) => { return { apiVersion: "2022-06-10", base64Decoder: config?.base64Decoder ?? fromBase64, base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, extensions: config?.extensions ?? [], httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultOAMHttpAuthSchemeProvider, httpAuthSchemes: config?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), signer: new AwsSdkSigV4Signer(), }, ], logger: config?.logger ?? new NoOpLogger(), protocol: config?.protocol ?? AwsRestJsonProtocol, protocolSettings: config?.protocolSettings ?? { defaultNamespace: "com.amazonaws.oam", errorTypeRegistries, version: "2022-06-10", serviceTarget: "oamservice", }, serviceId: config?.serviceId ?? "OAM", sha256: config?.sha256 ?? Sha256, urlParser: config?.urlParser ?? parseUrl, utf8Decoder: config?.utf8Decoder ?? fromUtf8, utf8Encoder: config?.utf8Encoder ?? toUtf8, };}; const getRuntimeConfig = (config) => { emitWarningIfUnsupportedVersion(process.version); const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getRuntimeConfig$1(config); emitWarningIfUnsupportedVersion$1(process.version); const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger, }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? loadConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }, config), streamCollector: config?.streamCollector ?? streamCollector, useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), };}; const getHttpAuthExtensionConfiguration = (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; }, };};const resolveHttpAuthRuntimeConfig = (config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials(), };}; const resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class OAMClient extends Client { config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = resolveUserAgentConfig(_config_1); const _config_3 = resolveRetryConfig(_config_2); const _config_4 = resolveRegionConfig(_config_3); const _config_5 = resolveHostHeaderConfig(_config_4); const _config_6 = resolveEndpointConfig(_config_5); const _config_7 = resolveHttpAuthSchemeConfig(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); this.middlewareStack.use(getHostHeaderPlugin(this.config)); this.middlewareStack.use(getLoggerPlugin(this.config)); this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: defaultOAMHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} const command = makeBuilder(commonParams, "oamservice", "OAMClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class CreateLinkCommand extends command(_ep0, _mw0, "CreateLink", CreateLink$) {} class CreateSinkCommand extends command(_ep0, _mw0, "CreateSink", CreateSink$) {} class DeleteLinkCommand extends command(_ep0, _mw0, "DeleteLink", DeleteLink$) {} class DeleteSinkCommand extends command(_ep0, _mw0, "DeleteSink", DeleteSink$) {} class GetLinkCommand extends command(_ep0, _mw0, "GetLink", GetLink$) {} class GetSinkCommand extends command(_ep0, _mw0, "GetSink", GetSink$) {} class GetSinkPolicyCommand extends command(_ep0, _mw0, "GetSinkPolicy", GetSinkPolicy$) {} class ListAttachedLinksCommand extends command(_ep0, _mw0, "ListAttachedLinks", ListAttachedLinks$) {} class ListLinksCommand extends command(_ep0, _mw0, "ListLinks", ListLinks$) {} class ListSinksCommand extends command(_ep0, _mw0, "ListSinks", ListSinks$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class PutSinkPolicyCommand extends command(_ep0, _mw0, "PutSinkPolicy", PutSinkPolicy$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} class UpdateLinkCommand extends command(_ep0, _mw0, "UpdateLink", UpdateLink$) {} const paginateListAttachedLinks = createPaginator(OAMClient, ListAttachedLinksCommand, "NextToken", "NextToken", "MaxResults"); const paginateListLinks = createPaginator(OAMClient, ListLinksCommand, "NextToken", "NextToken", "MaxResults"); const paginateListSinks = createPaginator(OAMClient, ListSinksCommand, "NextToken", "NextToken", "MaxResults"); const commands = { CreateLinkCommand, CreateSinkCommand, DeleteLinkCommand, DeleteSinkCommand, GetLinkCommand, GetSinkCommand, GetSinkPolicyCommand, ListAttachedLinksCommand, ListLinksCommand, ListSinksCommand, ListTagsForResourceCommand, PutSinkPolicyCommand, TagResourceCommand, UntagResourceCommand, UpdateLinkCommand,};const paginators = { paginateListAttachedLinks, paginateListLinks, paginateListSinks,};class OAM extends OAMClient {}createAggregatedClient(commands, OAM, { paginators }); const 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",}; exports.ConflictException = ConflictException;exports.ConflictException$ = ConflictException$;exports.CreateLink$ = CreateLink$;exports.CreateLinkCommand = CreateLinkCommand;exports.CreateLinkInput$ = CreateLinkInput$;exports.CreateLinkOutput$ = CreateLinkOutput$;exports.CreateSink$ = CreateSink$;exports.CreateSinkCommand = CreateSinkCommand;exports.CreateSinkInput$ = CreateSinkInput$;exports.CreateSinkOutput$ = CreateSinkOutput$;exports.DeleteLink$ = DeleteLink$;exports.DeleteLinkCommand = DeleteLinkCommand;exports.DeleteLinkInput$ = DeleteLinkInput$;exports.DeleteLinkOutput$ = DeleteLinkOutput$;exports.DeleteSink$ = DeleteSink$;exports.DeleteSinkCommand = DeleteSinkCommand;exports.DeleteSinkInput$ = DeleteSinkInput$;exports.DeleteSinkOutput$ = DeleteSinkOutput$;exports.GetLink$ = GetLink$;exports.GetLinkCommand = GetLinkCommand;exports.GetLinkInput$ = GetLinkInput$;exports.GetLinkOutput$ = GetLinkOutput$;exports.GetSink$ = GetSink$;exports.GetSinkCommand = GetSinkCommand;exports.GetSinkInput$ = GetSinkInput$;exports.GetSinkOutput$ = GetSinkOutput$;exports.GetSinkPolicy$ = GetSinkPolicy$;exports.GetSinkPolicyCommand = GetSinkPolicyCommand;exports.GetSinkPolicyInput$ = GetSinkPolicyInput$;exports.GetSinkPolicyOutput$ = GetSinkPolicyOutput$;exports.InternalServiceFault = InternalServiceFault;exports.InternalServiceFault$ = InternalServiceFault$;exports.InvalidParameterException = InvalidParameterException;exports.InvalidParameterException$ = InvalidParameterException$;exports.LinkConfiguration$ = LinkConfiguration$;exports.ListAttachedLinks$ = ListAttachedLinks$;exports.ListAttachedLinksCommand = ListAttachedLinksCommand;exports.ListAttachedLinksInput$ = ListAttachedLinksInput$;exports.ListAttachedLinksItem$ = ListAttachedLinksItem$;exports.ListAttachedLinksOutput$ = ListAttachedLinksOutput$;exports.ListLinks$ = ListLinks$;exports.ListLinksCommand = ListLinksCommand;exports.ListLinksInput$ = ListLinksInput$;exports.ListLinksItem$ = ListLinksItem$;exports.ListLinksOutput$ = ListLinksOutput$;exports.ListSinks$ = ListSinks$;exports.ListSinksCommand = ListSinksCommand;exports.ListSinksInput$ = ListSinksInput$;exports.ListSinksItem$ = ListSinksItem$;exports.ListSinksOutput$ = ListSinksOutput$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;exports.LogGroupConfiguration$ = LogGroupConfiguration$;exports.MetricConfiguration$ = MetricConfiguration$;exports.MissingRequiredParameterException = MissingRequiredParameterException;exports.MissingRequiredParameterException$ = MissingRequiredParameterException$;exports.OAM = OAM;exports.OAMClient = OAMClient;exports.OAMServiceException = OAMServiceException;exports.OAMServiceException$ = OAMServiceException$;exports.PutSinkPolicy$ = PutSinkPolicy$;exports.PutSinkPolicyCommand = PutSinkPolicyCommand;exports.PutSinkPolicyInput$ = PutSinkPolicyInput$;exports.PutSinkPolicyOutput$ = PutSinkPolicyOutput$;exports.ResourceNotFoundException = ResourceNotFoundException;exports.ResourceNotFoundException$ = ResourceNotFoundException$;exports.ResourceType = ResourceType;exports.ServiceQuotaExceededException = ServiceQuotaExceededException;exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceInput$ = TagResourceInput$;exports.TagResourceOutput$ = TagResourceOutput$;exports.TooManyTagsException = TooManyTagsException;exports.TooManyTagsException$ = TooManyTagsException$;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceInput$ = UntagResourceInput$;exports.UntagResourceOutput$ = UntagResourceOutput$;exports.UpdateLink$ = UpdateLink$;exports.UpdateLinkCommand = UpdateLinkCommand;exports.UpdateLinkInput$ = UpdateLinkInput$;exports.UpdateLinkOutput$ = UpdateLinkOutput$;exports.ValidationException = ValidationException;exports.ValidationException$ = ValidationException$;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateListAttachedLinks = paginateListAttachedLinks;exports.paginateListLinks = paginateListLinks;exports.paginateListSinks = paginateListSinks;