@aws-sdk/core
Advanced tools
@@ -6,8 +6,14 @@ import { NumericValue } from "@smithy/core/serde"; | ||
| if (typeof value === "number") { | ||
| if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) { | ||
| const isFractional = numericString.includes("."); | ||
| if (isFractional) { | ||
| const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER; | ||
| if (!inSafeRange || numericString !== String(value)) { | ||
| if (inSafeRange && /[eE]/.test(numericString) && String(Number(numericString)) === String(value)) { | ||
| return value; | ||
| } | ||
| if (isFractionalNumeric(numericString)) { | ||
| return new NumericValue(numericString, "bigDecimal"); | ||
| } | ||
| else { | ||
| if (/[eE]/.test(numericString)) { | ||
| return BigInt(Number(numericString)); | ||
| } | ||
| return BigInt(numericString); | ||
@@ -20,1 +26,14 @@ } | ||
| } | ||
| function isFractionalNumeric(s) { | ||
| const dotIndex = s.indexOf("."); | ||
| if (dotIndex === -1) { | ||
| return false; | ||
| } | ||
| const eIndex = s.search(/[eE]/); | ||
| if (eIndex === -1) { | ||
| return true; | ||
| } | ||
| const fracDigits = eIndex - dotIndex - 1; | ||
| const exp = parseInt(s.slice(eIndex + 1), 10); | ||
| return exp < fracDigits; | ||
| } |
@@ -5,1 +5,4 @@ export * from "./submodules/account-id-endpoint/index"; | ||
| export * from "./submodules/protocols/index"; | ||
| /** | ||
| * no need to export this. | ||
| */ |
@@ -1,61 +0,21 @@ | ||
| export { | ||
| emitWarningIfUnsupportedVersion, | ||
| getLongPollPlugin, | ||
| setCredentialFeature, | ||
| setFeature, | ||
| setTokenFeature, | ||
| state, | ||
| } from "@aws-sdk/core/client"; | ||
| export { | ||
| AwsSdkSigV4ASigner, | ||
| AwsSdkSigV4Signer, | ||
| AwsSdkSigV4Signer as AWSSDKSigV4Signer, | ||
| getBearerTokenEnvKey, | ||
| NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, | ||
| NODE_SIGV4A_CONFIG_OPTIONS, | ||
| resolveAwsSdkSigV4AConfig, | ||
| resolveAwsSdkSigV4Config, | ||
| resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config, | ||
| validateSigningProperties, | ||
| } from "@aws-sdk/core/httpAuthSchemes"; | ||
| export { | ||
| AwsSdkSigV4AAuthInputConfig, | ||
| AwsSdkSigV4AAuthResolvedConfig, | ||
| AwsSdkSigV4AAuthResolvedConfig as AwsSdkSigV4APreviouslyResolved, | ||
| AwsSdkSigV4AuthInputConfig, | ||
| AwsSdkSigV4AuthInputConfig as AWSSDKSigV4AuthInputConfig, | ||
| AwsSdkSigV4AuthResolvedConfig, | ||
| AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4AuthResolvedConfig, | ||
| AwsSdkSigV4Memoized, | ||
| AwsSdkSigV4AuthResolvedConfig as AwsSdkSigV4PreviouslyResolved, | ||
| AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4PreviouslyResolved, | ||
| } from "@aws-sdk/core/httpAuthSchemes"; | ||
| export { | ||
| _toBool, | ||
| _toNum, | ||
| _toStr, | ||
| awsExpectUnion, | ||
| AwsEc2QueryProtocol, | ||
| AwsJson1_0Protocol, | ||
| AwsJson1_1Protocol, | ||
| AwsJsonRpcProtocol, | ||
| AwsQueryProtocol, | ||
| AwsRestJsonProtocol, | ||
| AwsRestXmlProtocol, | ||
| AwsSmithyRpcV2CborProtocol, | ||
| JsonCodec, | ||
| JsonShapeDeserializer, | ||
| JsonShapeSerializer, | ||
| loadJsonRpcErrorCode, | ||
| loadRestJsonErrorCode, | ||
| loadRestXmlErrorCode, | ||
| parseJsonBody, | ||
| parseJsonErrorBody, | ||
| parseXmlBody, | ||
| parseXmlErrorBody, | ||
| QueryShapeSerializer, | ||
| XmlCodec, | ||
| XmlShapeDeserializer, | ||
| XmlShapeSerializer, | ||
| } from "@aws-sdk/core/protocols"; | ||
| /** | ||
| * Exports here are from before the submodule system. | ||
| * They are exported from the package's root index to preserve backwards compatibility. | ||
| * | ||
| * New development should go in a proper submodule and not be exported from the root index. | ||
| * There is an eslint rule banning imports from `@aws-sdk/core` without a submodule e.g. `@aws-sdk/core/protocols`. | ||
| * | ||
| * CAUTION: Do not use export * here. Explicit named exports lock down the public API surface | ||
| * so that additions to submodules do not accidentally become part of the legacy root export. | ||
| * | ||
| * No additional exports are allowed. | ||
| */ | ||
| export { emitWarningIfUnsupportedVersion, getLongPollPlugin, setCredentialFeature, setFeature, setTokenFeature, state, } from "@aws-sdk/core/client"; | ||
| export { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, AwsSdkSigV4Signer as AWSSDKSigV4Signer, getBearerTokenEnvKey, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config, validateSigningProperties, } from "@aws-sdk/core/httpAuthSchemes"; | ||
| export { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig as AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthInputConfig as AWSSDKSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4AuthResolvedConfig, AwsSdkSigV4Memoized, AwsSdkSigV4AuthResolvedConfig as AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4PreviouslyResolved, } from "@aws-sdk/core/httpAuthSchemes"; | ||
| export { _toBool, _toNum, _toStr, awsExpectUnion, AwsEc2QueryProtocol, AwsJson1_0Protocol, AwsJson1_1Protocol, AwsJsonRpcProtocol, AwsQueryProtocol, AwsRestJsonProtocol, AwsRestXmlProtocol, AwsSmithyRpcV2CborProtocol, JsonCodec, JsonShapeDeserializer, JsonShapeSerializer, loadJsonRpcErrorCode, loadRestJsonErrorCode, loadRestXmlErrorCode, parseJsonBody, parseJsonErrorBody, parseXmlBody, parseXmlErrorBody, QueryShapeSerializer, XmlCodec, XmlShapeDeserializer, XmlShapeSerializer, } from "@aws-sdk/core/protocols"; | ||
| export { JsonSettings, QuerySerializerSettings, XmlSettings } from "@aws-sdk/core/protocols"; | ||
| /** | ||
| * WARNING: do not export any additional submodules from the root of this package. See readme.md for | ||
| * guide on developing submodules. | ||
| */ |
| import { Provider } from "@smithy/types"; | ||
| import { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export interface AccountIdEndpointModeInputConfig { | ||
| accountIdEndpointMode?: AccountIdEndpointMode | Provider<AccountIdEndpointMode>; | ||
| /** | ||
| * The account ID endpoint mode to use. | ||
| */ | ||
| accountIdEndpointMode?: AccountIdEndpointMode | Provider<AccountIdEndpointMode>; | ||
| } | ||
| interface PreviouslyResolved {} | ||
| /** | ||
| * @internal | ||
| */ | ||
| interface PreviouslyResolved { | ||
| } | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface AccountIdEndpointModeResolvedConfig { | ||
| accountIdEndpointMode: Provider<AccountIdEndpointMode>; | ||
| accountIdEndpointMode: Provider<AccountIdEndpointMode>; | ||
| } | ||
| export declare const resolveAccountIdEndpointModeConfig: <T>( | ||
| input: T & AccountIdEndpointModeInputConfig & PreviouslyResolved, | ||
| ) => T & AccountIdEndpointModeResolvedConfig; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const resolveAccountIdEndpointModeConfig: <T>(input: T & AccountIdEndpointModeInputConfig & PreviouslyResolved) => T & AccountIdEndpointModeResolvedConfig; | ||
| export {}; |
@@ -0,4 +1,16 @@ | ||
| /** | ||
| * @public | ||
| */ | ||
| export type AccountIdEndpointMode = "disabled" | "preferred" | "required"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const DEFAULT_ACCOUNT_ID_ENDPOINT_MODE = "preferred"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const ACCOUNT_ID_ENDPOINT_MODE_VALUES: AccountIdEndpointMode[]; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare function validateAccountIdEndpointMode(value: any): value is AccountIdEndpointMode; |
| export { resolveAccountIdEndpointModeConfig } from "./AccountIdEndpointModeConfigResolver"; | ||
| export { | ||
| AccountIdEndpointModeInputConfig, | ||
| AccountIdEndpointModeResolvedConfig, | ||
| } from "./AccountIdEndpointModeConfigResolver"; | ||
| export { | ||
| DEFAULT_ACCOUNT_ID_ENDPOINT_MODE, | ||
| ACCOUNT_ID_ENDPOINT_MODE_VALUES, | ||
| validateAccountIdEndpointMode, | ||
| } from "./AccountIdEndpointModeConstants"; | ||
| export { AccountIdEndpointModeInputConfig, AccountIdEndpointModeResolvedConfig, } from "./AccountIdEndpointModeConfigResolver"; | ||
| export { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE, ACCOUNT_ID_ENDPOINT_MODE_VALUES, validateAccountIdEndpointMode, } from "./AccountIdEndpointModeConstants"; | ||
| export { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants"; | ||
| export { | ||
| ENV_ACCOUNT_ID_ENDPOINT_MODE, | ||
| CONFIG_ACCOUNT_ID_ENDPOINT_MODE, | ||
| NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, | ||
| } from "./NodeAccountIdEndpointModeConfigOptions"; | ||
| export { ENV_ACCOUNT_ID_ENDPOINT_MODE, CONFIG_ACCOUNT_ID_ENDPOINT_MODE, NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, } from "./NodeAccountIdEndpointModeConfigOptions"; |
| import { LoadedConfigSelectors } from "@smithy/core/config"; | ||
| import { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const ENV_ACCOUNT_ID_ENDPOINT_MODE = "AWS_ACCOUNT_ID_ENDPOINT_MODE"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const CONFIG_ACCOUNT_ID_ENDPOINT_MODE = "account_id_endpoint_mode"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS: LoadedConfigSelectors<AccountIdEndpointMode>; |
| export declare const state: { | ||
| warningEmitted: boolean; | ||
| warningEmitted: boolean; | ||
| }; | ||
| /** | ||
| * Emits warning if the provided Node.js version string is | ||
| * pending deprecation by AWS SDK JSv3. | ||
| * @internal | ||
| * | ||
| * @param version - The Node.js version string. | ||
| */ | ||
| export declare const emitWarningIfUnsupportedVersion: (version: string) => void; |
@@ -7,17 +7,5 @@ export declare const emitWarningIfUnsupportedVersion: symbol; | ||
| export { setTokenFeature } from "./setTokenFeature"; | ||
| export { | ||
| hostHeaderMiddleware, | ||
| hostHeaderMiddlewareOptions, | ||
| getHostHeaderPlugin, | ||
| resolveHostHeaderConfig, | ||
| } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { | ||
| HostHeaderInputConfig, | ||
| HostHeaderResolvedConfig, | ||
| } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { | ||
| loggerMiddleware, | ||
| loggerMiddlewareOptions, | ||
| getLoggerPlugin, | ||
| } from "./middleware-logger/loggerMiddleware"; | ||
| export { hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin, resolveHostHeaderConfig, } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { HostHeaderInputConfig, HostHeaderResolvedConfig } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin } from "./middleware-logger/loggerMiddleware"; | ||
| export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration"; | ||
@@ -27,21 +15,7 @@ export { getRecursionDetectionPlugin } from "./middleware-recursion-detection/getRecursionDetectionPlugin.browser"; | ||
| export { DEFAULT_UA_APP_ID, resolveUserAgentConfig } from "./middleware-user-agent/configurations"; | ||
| export { | ||
| UserAgentInputConfig, | ||
| UserAgentResolvedConfig, | ||
| } from "./middleware-user-agent/configurations"; | ||
| export { | ||
| userAgentMiddleware, | ||
| getUserAgentMiddlewareOptions, | ||
| getUserAgentPlugin, | ||
| } from "./middleware-user-agent/user-agent-middleware"; | ||
| export { | ||
| createDefaultUserAgentProvider, | ||
| defaultUserAgent, | ||
| fallback, | ||
| } from "./util-user-agent-browser/defaultUserAgent"; | ||
| export { UserAgentInputConfig, UserAgentResolvedConfig } from "./middleware-user-agent/configurations"; | ||
| export { userAgentMiddleware, getUserAgentMiddlewareOptions, getUserAgentPlugin, } from "./middleware-user-agent/user-agent-middleware"; | ||
| export { createDefaultUserAgentProvider, defaultUserAgent, fallback } from "./util-user-agent-browser/defaultUserAgent"; | ||
| export declare const crtAvailability: symbol; | ||
| export { | ||
| DefaultUserAgentOptions, | ||
| PreviouslyResolved, | ||
| } from "./util-user-agent-node/defaultUserAgent"; | ||
| export { DefaultUserAgentOptions, PreviouslyResolved } from "./util-user-agent-node/defaultUserAgent"; | ||
| export declare const NODE_APP_ID_CONFIG_OPTIONS: symbol; | ||
@@ -53,46 +27,15 @@ export declare const UA_APP_ID_ENV_NAME: symbol; | ||
| export { resolveEndpoint } from "./util-endpoints/resolveEndpoint"; | ||
| export { | ||
| resolveDefaultAwsRegionalEndpointsConfig, | ||
| toEndpointV1, | ||
| } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { | ||
| DefaultAwsRegionalEndpointsInputConfig, | ||
| DefaultAwsRegionalEndpointsResolvedConfig, | ||
| } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { resolveDefaultAwsRegionalEndpointsConfig, toEndpointV1, } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { DefaultAwsRegionalEndpointsInputConfig, DefaultAwsRegionalEndpointsResolvedConfig, } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { isIpAddress } from "./util-endpoints/lib/isIpAddress"; | ||
| export { isVirtualHostableS3Bucket } from "./util-endpoints/lib/aws/isVirtualHostableS3Bucket"; | ||
| export { parseArn } from "./util-endpoints/lib/aws/parseArn"; | ||
| export { | ||
| partition, | ||
| setPartitionInfo, | ||
| useDefaultPartitionInfo, | ||
| getUserAgentPrefix, | ||
| } from "./util-endpoints/lib/aws/partition"; | ||
| export { partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix, } from "./util-endpoints/lib/aws/partition"; | ||
| export { PartitionsInfo } from "./util-endpoints/lib/aws/partition"; | ||
| export { EndpointError } from "./util-endpoints/types/EndpointError"; | ||
| export { | ||
| EndpointObjectProperties, | ||
| EndpointObjectHeaders, | ||
| EndpointObject, | ||
| EndpointRuleObject, | ||
| } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject"; | ||
| export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject"; | ||
| export { | ||
| DeprecatedObject, | ||
| ParameterObject, | ||
| RuleSetObject, | ||
| } from "./util-endpoints/types/RuleSetObject"; | ||
| export { | ||
| ReferenceObject, | ||
| FunctionObject, | ||
| FunctionArgv, | ||
| FunctionReturn, | ||
| ConditionObject, | ||
| Expression, | ||
| EndpointParams, | ||
| EndpointResolverOptions, | ||
| ReferenceRecord, | ||
| EvaluateOptions, | ||
| } from "./util-endpoints/types/shared"; | ||
| export { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject"; | ||
| export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared"; | ||
| export declare const REGION_ENV_NAME: symbol; | ||
@@ -106,6 +49,3 @@ export declare const REGION_INI_NAME: symbol; | ||
| export declare const stsRegionWarning: symbol; | ||
| export { | ||
| getAwsRegionExtensionConfiguration, | ||
| resolveAwsRegionExtensionConfiguration, | ||
| } from "./region-config-resolver/extensions"; | ||
| export { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "./region-config-resolver/extensions"; | ||
| export { RegionExtensionRuntimeConfigType } from "./region-config-resolver/extensions"; |
@@ -6,17 +6,5 @@ export { emitWarningIfUnsupportedVersion, state } from "./emitWarningIfUnsupportedVersion"; | ||
| export { setTokenFeature } from "./setTokenFeature"; | ||
| export { | ||
| hostHeaderMiddleware, | ||
| hostHeaderMiddlewareOptions, | ||
| getHostHeaderPlugin, | ||
| resolveHostHeaderConfig, | ||
| } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { | ||
| HostHeaderInputConfig, | ||
| HostHeaderResolvedConfig, | ||
| } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { | ||
| loggerMiddleware, | ||
| loggerMiddlewareOptions, | ||
| getLoggerPlugin, | ||
| } from "./middleware-logger/loggerMiddleware"; | ||
| export { hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin, resolveHostHeaderConfig, } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { HostHeaderInputConfig, HostHeaderResolvedConfig } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin } from "./middleware-logger/loggerMiddleware"; | ||
| export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration"; | ||
@@ -26,25 +14,7 @@ export { getRecursionDetectionPlugin } from "./middleware-recursion-detection/getRecursionDetectionPlugin"; | ||
| export { DEFAULT_UA_APP_ID, resolveUserAgentConfig } from "./middleware-user-agent/configurations"; | ||
| export { | ||
| UserAgentInputConfig, | ||
| UserAgentResolvedConfig, | ||
| } from "./middleware-user-agent/configurations"; | ||
| export { | ||
| userAgentMiddleware, | ||
| getUserAgentMiddlewareOptions, | ||
| getUserAgentPlugin, | ||
| } from "./middleware-user-agent/user-agent-middleware"; | ||
| export { | ||
| createDefaultUserAgentProvider, | ||
| defaultUserAgent, | ||
| crtAvailability, | ||
| } from "./util-user-agent-node/defaultUserAgent"; | ||
| export { | ||
| DefaultUserAgentOptions, | ||
| PreviouslyResolved, | ||
| } from "./util-user-agent-node/defaultUserAgent"; | ||
| export { | ||
| NODE_APP_ID_CONFIG_OPTIONS, | ||
| UA_APP_ID_ENV_NAME, | ||
| UA_APP_ID_INI_NAME, | ||
| } from "./util-user-agent-node/nodeAppIdConfigOptions"; | ||
| export { UserAgentInputConfig, UserAgentResolvedConfig } from "./middleware-user-agent/configurations"; | ||
| export { userAgentMiddleware, getUserAgentMiddlewareOptions, getUserAgentPlugin, } from "./middleware-user-agent/user-agent-middleware"; | ||
| export { createDefaultUserAgentProvider, defaultUserAgent, crtAvailability, } from "./util-user-agent-node/defaultUserAgent"; | ||
| export { DefaultUserAgentOptions, PreviouslyResolved } from "./util-user-agent-node/defaultUserAgent"; | ||
| export { NODE_APP_ID_CONFIG_OPTIONS, UA_APP_ID_ENV_NAME, UA_APP_ID_INI_NAME, } from "./util-user-agent-node/nodeAppIdConfigOptions"; | ||
| export { fallback } from "./util-user-agent-browser/defaultUserAgent"; | ||
@@ -54,62 +24,19 @@ export { createUserAgentStringParsingProvider } from "./util-user-agent-browser/createUserAgentStringParsingProvider"; | ||
| export { resolveEndpoint } from "./util-endpoints/resolveEndpoint"; | ||
| export { | ||
| resolveDefaultAwsRegionalEndpointsConfig, | ||
| toEndpointV1, | ||
| } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { | ||
| DefaultAwsRegionalEndpointsInputConfig, | ||
| DefaultAwsRegionalEndpointsResolvedConfig, | ||
| } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { resolveDefaultAwsRegionalEndpointsConfig, toEndpointV1, } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { DefaultAwsRegionalEndpointsInputConfig, DefaultAwsRegionalEndpointsResolvedConfig, } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { isIpAddress } from "./util-endpoints/lib/isIpAddress"; | ||
| export { isVirtualHostableS3Bucket } from "./util-endpoints/lib/aws/isVirtualHostableS3Bucket"; | ||
| export { parseArn } from "./util-endpoints/lib/aws/parseArn"; | ||
| export { | ||
| partition, | ||
| setPartitionInfo, | ||
| useDefaultPartitionInfo, | ||
| getUserAgentPrefix, | ||
| } from "./util-endpoints/lib/aws/partition"; | ||
| export { partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix, } from "./util-endpoints/lib/aws/partition"; | ||
| export { PartitionsInfo } from "./util-endpoints/lib/aws/partition"; | ||
| export { EndpointError } from "./util-endpoints/types/EndpointError"; | ||
| export { | ||
| EndpointObjectProperties, | ||
| EndpointObjectHeaders, | ||
| EndpointObject, | ||
| EndpointRuleObject, | ||
| } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject"; | ||
| export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject"; | ||
| export { | ||
| DeprecatedObject, | ||
| ParameterObject, | ||
| RuleSetObject, | ||
| } from "./util-endpoints/types/RuleSetObject"; | ||
| export { | ||
| ReferenceObject, | ||
| FunctionObject, | ||
| FunctionArgv, | ||
| FunctionReturn, | ||
| ConditionObject, | ||
| Expression, | ||
| EndpointParams, | ||
| EndpointResolverOptions, | ||
| ReferenceRecord, | ||
| EvaluateOptions, | ||
| } from "./util-endpoints/types/shared"; | ||
| export { | ||
| REGION_ENV_NAME, | ||
| REGION_INI_NAME, | ||
| NODE_REGION_CONFIG_OPTIONS, | ||
| NODE_REGION_CONFIG_FILE_OPTIONS, | ||
| resolveRegionConfig, | ||
| } from "./region-config-resolver/awsRegionConfig"; | ||
| export { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject"; | ||
| export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared"; | ||
| export { REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig, } from "./region-config-resolver/awsRegionConfig"; | ||
| export { RegionInputConfig, RegionResolvedConfig } from "./region-config-resolver/awsRegionConfig"; | ||
| export { | ||
| stsRegionDefaultResolver, | ||
| warning as stsRegionWarning, | ||
| } from "./region-config-resolver/stsRegionDefaultResolver"; | ||
| export { | ||
| getAwsRegionExtensionConfiguration, | ||
| resolveAwsRegionExtensionConfiguration, | ||
| } from "./region-config-resolver/extensions"; | ||
| export { stsRegionDefaultResolver, warning as stsRegionWarning, } from "./region-config-resolver/stsRegionDefaultResolver"; | ||
| export { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "./region-config-resolver/extensions"; | ||
| export { RegionExtensionRuntimeConfigType } from "./region-config-resolver/extensions"; |
@@ -7,17 +7,5 @@ export declare const emitWarningIfUnsupportedVersion: symbol; | ||
| export { setTokenFeature } from "./setTokenFeature"; | ||
| export { | ||
| hostHeaderMiddleware, | ||
| hostHeaderMiddlewareOptions, | ||
| getHostHeaderPlugin, | ||
| resolveHostHeaderConfig, | ||
| } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { | ||
| HostHeaderInputConfig, | ||
| HostHeaderResolvedConfig, | ||
| } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { | ||
| loggerMiddleware, | ||
| loggerMiddlewareOptions, | ||
| getLoggerPlugin, | ||
| } from "./middleware-logger/loggerMiddleware"; | ||
| export { hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin, resolveHostHeaderConfig, } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { HostHeaderInputConfig, HostHeaderResolvedConfig } from "./middleware-host-header/hostHeaderMiddleware"; | ||
| export { loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin } from "./middleware-logger/loggerMiddleware"; | ||
| export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration"; | ||
@@ -27,20 +15,7 @@ export { getRecursionDetectionPlugin } from "./middleware-recursion-detection/getRecursionDetectionPlugin.browser"; | ||
| export { DEFAULT_UA_APP_ID, resolveUserAgentConfig } from "./middleware-user-agent/configurations"; | ||
| export { | ||
| UserAgentInputConfig, | ||
| UserAgentResolvedConfig, | ||
| } from "./middleware-user-agent/configurations"; | ||
| export { | ||
| userAgentMiddleware, | ||
| getUserAgentMiddlewareOptions, | ||
| getUserAgentPlugin, | ||
| } from "./middleware-user-agent/user-agent-middleware"; | ||
| export { | ||
| createDefaultUserAgentProvider, | ||
| defaultUserAgent, | ||
| } from "./util-user-agent-browser/defaultUserAgent.native"; | ||
| export { UserAgentInputConfig, UserAgentResolvedConfig } from "./middleware-user-agent/configurations"; | ||
| export { userAgentMiddleware, getUserAgentMiddlewareOptions, getUserAgentPlugin, } from "./middleware-user-agent/user-agent-middleware"; | ||
| export { createDefaultUserAgentProvider, defaultUserAgent } from "./util-user-agent-browser/defaultUserAgent.native"; | ||
| export declare const crtAvailability: symbol; | ||
| export { | ||
| DefaultUserAgentOptions, | ||
| PreviouslyResolved, | ||
| } from "./util-user-agent-node/defaultUserAgent"; | ||
| export { DefaultUserAgentOptions, PreviouslyResolved } from "./util-user-agent-node/defaultUserAgent"; | ||
| export declare const NODE_APP_ID_CONFIG_OPTIONS: symbol; | ||
@@ -53,46 +28,15 @@ export declare const UA_APP_ID_ENV_NAME: symbol; | ||
| export { resolveEndpoint } from "./util-endpoints/resolveEndpoint"; | ||
| export { | ||
| resolveDefaultAwsRegionalEndpointsConfig, | ||
| toEndpointV1, | ||
| } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { | ||
| DefaultAwsRegionalEndpointsInputConfig, | ||
| DefaultAwsRegionalEndpointsResolvedConfig, | ||
| } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { resolveDefaultAwsRegionalEndpointsConfig, toEndpointV1, } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { DefaultAwsRegionalEndpointsInputConfig, DefaultAwsRegionalEndpointsResolvedConfig, } from "./util-endpoints/resolveDefaultAwsRegionalEndpointsConfig"; | ||
| export { isIpAddress } from "./util-endpoints/lib/isIpAddress"; | ||
| export { isVirtualHostableS3Bucket } from "./util-endpoints/lib/aws/isVirtualHostableS3Bucket"; | ||
| export { parseArn } from "./util-endpoints/lib/aws/parseArn"; | ||
| export { | ||
| partition, | ||
| setPartitionInfo, | ||
| useDefaultPartitionInfo, | ||
| getUserAgentPrefix, | ||
| } from "./util-endpoints/lib/aws/partition"; | ||
| export { partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix, } from "./util-endpoints/lib/aws/partition"; | ||
| export { PartitionsInfo } from "./util-endpoints/lib/aws/partition"; | ||
| export { EndpointError } from "./util-endpoints/types/EndpointError"; | ||
| export { | ||
| EndpointObjectProperties, | ||
| EndpointObjectHeaders, | ||
| EndpointObject, | ||
| EndpointRuleObject, | ||
| } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject"; | ||
| export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject"; | ||
| export { | ||
| DeprecatedObject, | ||
| ParameterObject, | ||
| RuleSetObject, | ||
| } from "./util-endpoints/types/RuleSetObject"; | ||
| export { | ||
| ReferenceObject, | ||
| FunctionObject, | ||
| FunctionArgv, | ||
| FunctionReturn, | ||
| ConditionObject, | ||
| Expression, | ||
| EndpointParams, | ||
| EndpointResolverOptions, | ||
| ReferenceRecord, | ||
| EvaluateOptions, | ||
| } from "./util-endpoints/types/shared"; | ||
| export { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject"; | ||
| export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared"; | ||
| export declare const REGION_ENV_NAME: symbol; | ||
@@ -106,6 +50,3 @@ export declare const REGION_INI_NAME: symbol; | ||
| export declare const stsRegionWarning: symbol; | ||
| export { | ||
| getAwsRegionExtensionConfiguration, | ||
| resolveAwsRegionExtensionConfiguration, | ||
| } from "./region-config-resolver/extensions"; | ||
| export { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "./region-config-resolver/extensions"; | ||
| export { RegionExtensionRuntimeConfigType } from "./region-config-resolver/extensions"; |
@@ -1,13 +0,14 @@ | ||
| import { | ||
| HandlerExecutionContext, | ||
| InitializeHandler, | ||
| InitializeHandlerOptions, | ||
| MetadataBearer, | ||
| Pluggable, | ||
| } from "@smithy/types"; | ||
| export declare const longPollMiddleware: () => <Output extends MetadataBearer = MetadataBearer>( | ||
| next: InitializeHandler<any, Output>, | ||
| context: HandlerExecutionContext, | ||
| ) => InitializeHandler<any, Output>; | ||
| import { HandlerExecutionContext, InitializeHandler, InitializeHandlerOptions, MetadataBearer, Pluggable } from "@smithy/types"; | ||
| /** | ||
| * This middleware is attached to operations designated as long-polling. | ||
| * @internal | ||
| */ | ||
| export declare const longPollMiddleware: () => <Output extends MetadataBearer = MetadataBearer>(next: InitializeHandler<any, Output>, context: HandlerExecutionContext) => InitializeHandler<any, Output>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const longPollMiddlewareOptions: InitializeHandlerOptions; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const getLongPollPlugin: (options: {}) => Pluggable<any, any>; |
@@ -1,25 +0,35 @@ | ||
| import { | ||
| AbsoluteLocation, | ||
| BuildHandlerOptions, | ||
| BuildMiddleware, | ||
| Pluggable, | ||
| RequestHandler, | ||
| } from "@smithy/types"; | ||
| export interface HostHeaderInputConfig {} | ||
| import { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable, RequestHandler } from "@smithy/types"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export interface HostHeaderInputConfig { | ||
| } | ||
| interface PreviouslyResolved { | ||
| requestHandler: RequestHandler<any, any>; | ||
| requestHandler: RequestHandler<any, any>; | ||
| } | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface HostHeaderResolvedConfig { | ||
| requestHandler: RequestHandler<any, any>; | ||
| /** | ||
| * The HTTP handler to use. Fetch in browser and Https in Nodejs. | ||
| */ | ||
| requestHandler: RequestHandler<any, any>; | ||
| } | ||
| export declare function resolveHostHeaderConfig<T>( | ||
| input: T & PreviouslyResolved & HostHeaderInputConfig, | ||
| ): T & HostHeaderResolvedConfig; | ||
| export declare const hostHeaderMiddleware: <Input extends object, Output extends object>( | ||
| options: HostHeaderResolvedConfig, | ||
| ) => BuildMiddleware<Input, Output>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare function resolveHostHeaderConfig<T>(input: T & PreviouslyResolved & HostHeaderInputConfig): T & HostHeaderResolvedConfig; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const hostHeaderMiddleware: <Input extends object, Output extends object>(options: HostHeaderResolvedConfig) => BuildMiddleware<Input, Output>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const hostHeaderMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation; | ||
| export declare const getHostHeaderPlugin: ( | ||
| options: HostHeaderResolvedConfig, | ||
| ) => Pluggable<any, any>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const getHostHeaderPlugin: (options: HostHeaderResolvedConfig) => Pluggable<any, any>; | ||
| export {}; |
@@ -1,14 +0,4 @@ | ||
| import { | ||
| AbsoluteLocation, | ||
| HandlerExecutionContext, | ||
| InitializeHandler, | ||
| InitializeHandlerOptions, | ||
| MetadataBearer, | ||
| Pluggable, | ||
| } from "@smithy/types"; | ||
| export declare const loggerMiddleware: () => <Output extends MetadataBearer = MetadataBearer>( | ||
| next: InitializeHandler<any, Output>, | ||
| context: HandlerExecutionContext, | ||
| ) => InitializeHandler<any, Output>; | ||
| import { AbsoluteLocation, HandlerExecutionContext, InitializeHandler, InitializeHandlerOptions, MetadataBearer, Pluggable } from "@smithy/types"; | ||
| export declare const loggerMiddleware: () => <Output extends MetadataBearer = MetadataBearer>(next: InitializeHandler<any, Output>, context: HandlerExecutionContext) => InitializeHandler<any, Output>; | ||
| export declare const loggerMiddlewareOptions: InitializeHandlerOptions & AbsoluteLocation; | ||
| export declare const getLoggerPlugin: (options: any) => Pluggable<any, any>; |
| import { AbsoluteLocation, BuildHandlerOptions } from "@smithy/types"; | ||
| /** | ||
| * Used in conjunction with Lambda invoke store. | ||
| * @internal | ||
| */ | ||
| export declare const recursionDetectionMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation; |
| import { Pluggable } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const getRecursionDetectionPlugin: (options: any) => Pluggable<any, any>; |
| import { Pluggable } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const getRecursionDetectionPlugin: (options: any) => Pluggable<any, any>; |
| import { BuildMiddleware } from "@smithy/types"; | ||
| /** | ||
| * No-op middleware for runtimes outside of Node.js | ||
| * @internal | ||
| */ | ||
| export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>; |
| import { BuildMiddleware } from "@smithy/types"; | ||
| /** | ||
| * Used for two Lambda-related responsibilities: | ||
| * - Inject to trace ID to request header to detect recursion invocation in Lambda. | ||
| * - Propagate W3C trace context headers from | ||
| * the Lambda InvokeStore onto outbound requests, enabling distributed trace | ||
| * context to flow to downstream calls without creating any spans. | ||
| * @internal | ||
| */ | ||
| export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>; |
| import { BuildMiddleware } from "@smithy/types"; | ||
| /** | ||
| * No-op middleware for runtimes outside of Node.js | ||
| * @internal | ||
| */ | ||
| export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>; |
| import { AccountIdEndpointMode } from "@aws-sdk/core/account-id-endpoint"; | ||
| import { AwsHandlerExecutionContext } from "@aws-sdk/types"; | ||
| import { AwsCredentialIdentityProvider, BuildHandlerArguments, Provider } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| type PreviouslyResolved = Partial<{ | ||
| credentials?: AwsCredentialIdentityProvider; | ||
| accountIdEndpointMode?: Provider<AccountIdEndpointMode>; | ||
| retryStrategy?: Provider<{ | ||
| mode?: string; | ||
| }>; | ||
| credentials?: AwsCredentialIdentityProvider; | ||
| accountIdEndpointMode?: Provider<AccountIdEndpointMode>; | ||
| retryStrategy?: Provider<{ | ||
| mode?: string; | ||
| }>; | ||
| }>; | ||
| export declare function checkFeatures( | ||
| context: AwsHandlerExecutionContext, | ||
| config: PreviouslyResolved, | ||
| args: BuildHandlerArguments<any>, | ||
| ): Promise<void>; | ||
| /** | ||
| * @internal | ||
| * Check for features that don't have a middleware activation site but | ||
| * may be detected on the context, client config, or request. | ||
| */ | ||
| export declare function checkFeatures(context: AwsHandlerExecutionContext, config: PreviouslyResolved, args: BuildHandlerArguments<any>): Promise<void>; | ||
| export {}; |
| import { Logger, Provider, UserAgent } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const DEFAULT_UA_APP_ID: undefined; | ||
| /** | ||
| * @public | ||
| */ | ||
| export interface UserAgentInputConfig { | ||
| customUserAgent?: string | UserAgent; | ||
| userAgentAppId?: string | undefined | Provider<string | undefined>; | ||
| /** | ||
| * The custom user agent header that would be appended to default one | ||
| */ | ||
| customUserAgent?: string | UserAgent; | ||
| /** | ||
| * The application ID used to identify the application. | ||
| */ | ||
| userAgentAppId?: string | undefined | Provider<string | undefined>; | ||
| } | ||
| interface PreviouslyResolved { | ||
| defaultUserAgentProvider: Provider<UserAgent>; | ||
| runtime: string; | ||
| logger?: Logger; | ||
| defaultUserAgentProvider: Provider<UserAgent>; | ||
| runtime: string; | ||
| logger?: Logger; | ||
| } | ||
| export interface UserAgentResolvedConfig { | ||
| defaultUserAgentProvider: Provider<UserAgent>; | ||
| customUserAgent?: UserAgent; | ||
| runtime: string; | ||
| userAgentAppId: Provider<string | undefined>; | ||
| /** | ||
| * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header. | ||
| * @internal | ||
| */ | ||
| defaultUserAgentProvider: Provider<UserAgent>; | ||
| /** | ||
| * The custom user agent header that would be appended to default one | ||
| */ | ||
| customUserAgent?: UserAgent; | ||
| /** | ||
| * The runtime environment | ||
| */ | ||
| runtime: string; | ||
| /** | ||
| * Resolved value for input config {config.userAgentAppId} | ||
| */ | ||
| userAgentAppId: Provider<string | undefined>; | ||
| } | ||
| export declare function resolveUserAgentConfig<T>( | ||
| input: T & PreviouslyResolved & UserAgentInputConfig, | ||
| ): T & UserAgentResolvedConfig; | ||
| export declare function resolveUserAgentConfig<T>(input: T & PreviouslyResolved & UserAgentInputConfig): T & UserAgentResolvedConfig; | ||
| export {}; |
| import { AwsSdkFeatures } from "@aws-sdk/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare function encodeFeatures(features: AwsSdkFeatures): string; |
| import { AwsHandlerExecutionContext } from "@aws-sdk/types"; | ||
| import { | ||
| AbsoluteLocation, | ||
| BuildHandler, | ||
| BuildHandlerOptions, | ||
| HandlerExecutionContext, | ||
| MetadataBearer, | ||
| Pluggable, | ||
| } from "@smithy/types"; | ||
| import { AbsoluteLocation, BuildHandler, BuildHandlerOptions, HandlerExecutionContext, MetadataBearer, Pluggable } from "@smithy/types"; | ||
| import { UserAgentResolvedConfig } from "./configurations"; | ||
| export declare const userAgentMiddleware: ( | ||
| options: UserAgentResolvedConfig, | ||
| ) => <Output extends MetadataBearer>( | ||
| next: BuildHandler<any, any>, | ||
| context: HandlerExecutionContext | AwsHandlerExecutionContext, | ||
| ) => BuildHandler<any, any>; | ||
| /** | ||
| * Build user agent header sections from: | ||
| * 1. runtime-specific default user agent provider; | ||
| * 2. custom user agent from `customUserAgent` client config; | ||
| * 3. handler execution context set by internal SDK components; | ||
| * The built user agent will be set to `x-amz-user-agent` header for ALL the | ||
| * runtimes. | ||
| * Please note that any override to the `user-agent` or `x-amz-user-agent` header | ||
| * in the HTTP request is discouraged. Please use `customUserAgent` client | ||
| * config or middleware setting the `userAgent` context to generate desired user | ||
| * agent. | ||
| */ | ||
| export declare const userAgentMiddleware: (options: UserAgentResolvedConfig) => <Output extends MetadataBearer>(next: BuildHandler<any, any>, context: HandlerExecutionContext | AwsHandlerExecutionContext) => BuildHandler<any, any>; | ||
| export declare const getUserAgentMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation; | ||
| export declare const getUserAgentPlugin: (config: UserAgentResolvedConfig) => Pluggable<any, any>; |
@@ -1,8 +0,11 @@ | ||
| export { | ||
| REGION_ENV_NAME, | ||
| REGION_INI_NAME, | ||
| NODE_REGION_CONFIG_OPTIONS, | ||
| NODE_REGION_CONFIG_FILE_OPTIONS, | ||
| } from "@smithy/core/config"; | ||
| /** | ||
| * Backward compatibility re-export alias. | ||
| * @internal | ||
| */ | ||
| export { REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, } from "@smithy/core/config"; | ||
| export { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config"; | ||
| /** | ||
| * Backward compatibility re-export alias. | ||
| * @internal | ||
| */ | ||
| export { resolveRegionConfig } from "@smithy/core/config"; |
| import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; | ||
| import { Provider } from "@smithy/types"; | ||
| export type RegionExtensionRuntimeConfigType = Partial<{ | ||
| region: string | Provider<string>; | ||
| region: string | Provider<string>; | ||
| }>; | ||
| export declare const getAwsRegionExtensionConfiguration: ( | ||
| runtimeConfig: RegionExtensionRuntimeConfigType, | ||
| ) => { | ||
| setRegion(region: Provider<string>): void; | ||
| region(): Provider<string>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const getAwsRegionExtensionConfiguration: (runtimeConfig: RegionExtensionRuntimeConfigType) => { | ||
| setRegion(region: Provider<string>): void; | ||
| region(): Provider<string>; | ||
| }; | ||
| export declare const resolveAwsRegionExtensionConfiguration: ( | ||
| awsRegionExtensionConfiguration: AwsRegionExtensionConfiguration, | ||
| ) => RegionExtensionRuntimeConfigType; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const resolveAwsRegionExtensionConfiguration: (awsRegionExtensionConfiguration: AwsRegionExtensionConfiguration) => RegionExtensionRuntimeConfigType; |
@@ -0,1 +1,4 @@ | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare function stsRegionDefaultResolver(): () => Promise<string>; |
| import { LocalConfigOptions } from "@smithy/core/config"; | ||
| export declare function stsRegionDefaultResolver( | ||
| loaderConfig?: LocalConfigOptions, | ||
| ): import("@smithy/types").Provider<string>; | ||
| /** | ||
| * Default region provider for STS when used as an inner client. | ||
| * Differs from the default region resolver in that us-east-1 is the fallback instead of throwing an error. | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare function stsRegionDefaultResolver(loaderConfig?: LocalConfigOptions): import("@smithy/types").Provider<string>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const warning: { | ||
| silence: boolean; | ||
| silence: boolean; | ||
| }; |
@@ -0,1 +1,4 @@ | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare function stsRegionDefaultResolver(): () => Promise<string>; |
| import { AttributedAwsCredentialIdentity, AwsSdkCredentialsFeatures } from "@aws-sdk/types"; | ||
| export declare function setCredentialFeature<F extends keyof AwsSdkCredentialsFeatures>( | ||
| credentials: AttributedAwsCredentialIdentity, | ||
| feature: F, | ||
| value: AwsSdkCredentialsFeatures[F], | ||
| ): AttributedAwsCredentialIdentity; | ||
| /** | ||
| * @internal | ||
| * | ||
| * @returns the credentials with source feature attribution. | ||
| */ | ||
| export declare function setCredentialFeature<F extends keyof AwsSdkCredentialsFeatures>(credentials: AttributedAwsCredentialIdentity, feature: F, value: AwsSdkCredentialsFeatures[F]): AttributedAwsCredentialIdentity; |
| import { AwsHandlerExecutionContext, AwsSdkFeatures } from "@aws-sdk/types"; | ||
| export declare function setFeature<F extends keyof AwsSdkFeatures>( | ||
| context: AwsHandlerExecutionContext, | ||
| feature: F, | ||
| value: AwsSdkFeatures[F], | ||
| ): void; | ||
| /** | ||
| * Indicates to the request context that a given feature is active. | ||
| * @internal | ||
| * | ||
| * @param context - handler execution context. | ||
| * @param feature - readable name of feature. | ||
| * @param value - encoding value of feature. This is required because the | ||
| * specification asks the SDK not to include a runtime lookup of all | ||
| * the feature identifiers. | ||
| */ | ||
| export declare function setFeature<F extends keyof AwsSdkFeatures>(context: AwsHandlerExecutionContext, feature: F, value: AwsSdkFeatures[F]): void; |
| import { AttributedTokenIdentity, AwsSdkTokenFeatures } from "@aws-sdk/types"; | ||
| export declare function setTokenFeature<F extends keyof AwsSdkTokenFeatures>( | ||
| token: AttributedTokenIdentity, | ||
| feature: F, | ||
| value: AwsSdkTokenFeatures[F], | ||
| ): AttributedTokenIdentity; | ||
| /** | ||
| * @internal | ||
| * | ||
| * @returns the token with source feature attribution. | ||
| */ | ||
| export declare function setTokenFeature<F extends keyof AwsSdkTokenFeatures>(token: AttributedTokenIdentity, feature: F, value: AwsSdkTokenFeatures[F]): AttributedTokenIdentity; |
@@ -1,4 +0,5 @@ | ||
| export declare const isVirtualHostableS3Bucket: ( | ||
| value: string, | ||
| allowSubDomains?: boolean, | ||
| ) => boolean; | ||
| /** | ||
| * Evaluates whether a string is a DNS compatible bucket name and can be used with | ||
| * virtual hosted style addressing. | ||
| */ | ||
| export declare const isVirtualHostableS3Bucket: (value: string, allowSubDomains?: boolean) => boolean; |
| import { EndpointARN } from "@smithy/types"; | ||
| /** | ||
| * Evaluates a single string argument value, and returns an object containing | ||
| * details about the parsed ARN. | ||
| * If the input was not a valid ARN, the function returns null. | ||
| */ | ||
| export declare const parseArn: (value: string) => EndpointARN | null; |
| import { EndpointPartition } from "@smithy/types"; | ||
| export type PartitionsInfo = { | ||
| partitions: Array<{ | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: Record< | ||
| string, | ||
| | { | ||
| description?: string; | ||
| } | ||
| | undefined | ||
| >; | ||
| }>; | ||
| partitions: Array<{ | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: Record<string, { | ||
| description?: string; | ||
| } | undefined>; | ||
| }>; | ||
| }; | ||
| /** | ||
| * Evaluates a single string argument value as a region, and matches the | ||
| * string value to an AWS partition. | ||
| * The matcher MUST always return a successful object describing the partition | ||
| * that the region has been determined to be a part of. | ||
| */ | ||
| export declare const partition: (value: string) => EndpointPartition; | ||
| export declare const setPartitionInfo: ( | ||
| partitionsInfo: PartitionsInfo, | ||
| userAgentPrefix?: string, | ||
| ) => void; | ||
| /** | ||
| * Set custom partitions.json data. | ||
| * @internal | ||
| */ | ||
| export declare const setPartitionInfo: (partitionsInfo: PartitionsInfo, userAgentPrefix?: string) => void; | ||
| /** | ||
| * Reset to the default partitions.json data. | ||
| * @internal | ||
| */ | ||
| export declare const useDefaultPartitionInfo: () => void; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const getUserAgentPrefix: () => string; |
| export declare const partitionsInfo: { | ||
| partitions: ( | ||
| | { | ||
| partitions: ({ | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: { | ||
| "af-south-1": { | ||
| description: string; | ||
| }; | ||
| "ap-east-1": { | ||
| description: string; | ||
| }; | ||
| "ap-east-2": { | ||
| description: string; | ||
| }; | ||
| "ap-northeast-1": { | ||
| description: string; | ||
| }; | ||
| "ap-northeast-2": { | ||
| description: string; | ||
| }; | ||
| "ap-northeast-3": { | ||
| description: string; | ||
| }; | ||
| "ap-south-1": { | ||
| description: string; | ||
| }; | ||
| "ap-south-2": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-1": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-2": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-3": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-4": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-5": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-6": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-7": { | ||
| description: string; | ||
| }; | ||
| "aws-global": { | ||
| description: string; | ||
| }; | ||
| "ca-central-1": { | ||
| description: string; | ||
| }; | ||
| "ca-west-1": { | ||
| description: string; | ||
| }; | ||
| "eu-central-1": { | ||
| description: string; | ||
| }; | ||
| "eu-central-2": { | ||
| description: string; | ||
| }; | ||
| "eu-north-1": { | ||
| description: string; | ||
| }; | ||
| "eu-south-1": { | ||
| description: string; | ||
| }; | ||
| "eu-south-2": { | ||
| description: string; | ||
| }; | ||
| "eu-west-1": { | ||
| description: string; | ||
| }; | ||
| "eu-west-2": { | ||
| description: string; | ||
| }; | ||
| "eu-west-3": { | ||
| description: string; | ||
| }; | ||
| "il-central-1": { | ||
| description: string; | ||
| }; | ||
| "me-central-1": { | ||
| description: string; | ||
| }; | ||
| "me-south-1": { | ||
| description: string; | ||
| }; | ||
| "mx-central-1": { | ||
| description: string; | ||
| }; | ||
| "sa-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-east-2": { | ||
| description: string; | ||
| }; | ||
| "us-west-1": { | ||
| description: string; | ||
| }; | ||
| "us-west-2": { | ||
| description: string; | ||
| }; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| "af-south-1": { | ||
| description: string; | ||
| }; | ||
| "ap-east-1": { | ||
| description: string; | ||
| }; | ||
| "ap-east-2": { | ||
| description: string; | ||
| }; | ||
| "ap-northeast-1": { | ||
| description: string; | ||
| }; | ||
| "ap-northeast-2": { | ||
| description: string; | ||
| }; | ||
| "ap-northeast-3": { | ||
| description: string; | ||
| }; | ||
| "ap-south-1": { | ||
| description: string; | ||
| }; | ||
| "ap-south-2": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-1": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-2": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-3": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-4": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-5": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-6": { | ||
| description: string; | ||
| }; | ||
| "ap-southeast-7": { | ||
| description: string; | ||
| }; | ||
| "aws-global": { | ||
| description: string; | ||
| }; | ||
| "ca-central-1": { | ||
| description: string; | ||
| }; | ||
| "ca-west-1": { | ||
| description: string; | ||
| }; | ||
| "eu-central-1": { | ||
| description: string; | ||
| }; | ||
| "eu-central-2": { | ||
| description: string; | ||
| }; | ||
| "eu-north-1": { | ||
| description: string; | ||
| }; | ||
| "eu-south-1": { | ||
| description: string; | ||
| }; | ||
| "eu-south-2": { | ||
| description: string; | ||
| }; | ||
| "eu-west-1": { | ||
| description: string; | ||
| }; | ||
| "eu-west-2": { | ||
| description: string; | ||
| }; | ||
| "eu-west-3": { | ||
| description: string; | ||
| }; | ||
| "il-central-1": { | ||
| description: string; | ||
| }; | ||
| "me-central-1": { | ||
| description: string; | ||
| }; | ||
| "me-south-1": { | ||
| description: string; | ||
| }; | ||
| "mx-central-1": { | ||
| description: string; | ||
| }; | ||
| "sa-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-east-2": { | ||
| description: string; | ||
| }; | ||
| "us-west-1": { | ||
| description: string; | ||
| }; | ||
| "us-west-2": { | ||
| description: string; | ||
| }; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| }; | ||
| } | ||
| | { | ||
| } | { | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: { | ||
| "aws-cn-global": { | ||
| description: string; | ||
| }; | ||
| "cn-north-1": { | ||
| description: string; | ||
| }; | ||
| "cn-northwest-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| "aws-cn-global": { | ||
| description: string; | ||
| }; | ||
| "cn-north-1": { | ||
| description: string; | ||
| }; | ||
| "cn-northwest-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| }; | ||
| } | ||
| | { | ||
| } | { | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: { | ||
| "eusc-de-east-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| "eusc-de-east-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| }; | ||
| } | ||
| | { | ||
| } | { | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: { | ||
| "aws-iso-global": { | ||
| description: string; | ||
| }; | ||
| "us-iso-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-iso-west-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| "aws-iso-global": { | ||
| description: string; | ||
| }; | ||
| "us-iso-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-iso-west-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| }; | ||
| } | ||
| | { | ||
| } | { | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: { | ||
| "aws-iso-b-global": { | ||
| description: string; | ||
| }; | ||
| "us-isob-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-isob-west-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| "aws-iso-b-global": { | ||
| description: string; | ||
| }; | ||
| "us-isob-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-isob-west-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| }; | ||
| } | ||
| | { | ||
| } | { | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: { | ||
| "aws-iso-e-global": { | ||
| description: string; | ||
| }; | ||
| "eu-isoe-west-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| "aws-iso-e-global": { | ||
| description: string; | ||
| }; | ||
| "eu-isoe-west-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| }; | ||
| } | ||
| | { | ||
| } | { | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: { | ||
| "aws-iso-f-global": { | ||
| description: string; | ||
| }; | ||
| "us-isof-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-isof-south-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| "aws-iso-f-global": { | ||
| description: string; | ||
| }; | ||
| "us-isof-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-isof-south-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-us-gov-global"?: undefined; | ||
| "us-gov-east-1"?: undefined; | ||
| "us-gov-west-1"?: undefined; | ||
| }; | ||
| } | ||
| | { | ||
| } | { | ||
| id: string; | ||
| outputs: { | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| dnsSuffix: string; | ||
| dualStackDnsSuffix: string; | ||
| implicitGlobalRegion: string; | ||
| name: string; | ||
| supportsDualStack: boolean; | ||
| supportsFIPS: boolean; | ||
| }; | ||
| regionRegex: string; | ||
| regions: { | ||
| "aws-us-gov-global": { | ||
| description: string; | ||
| }; | ||
| "us-gov-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-gov-west-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| "aws-us-gov-global": { | ||
| description: string; | ||
| }; | ||
| "us-gov-east-1": { | ||
| description: string; | ||
| }; | ||
| "us-gov-west-1": { | ||
| description: string; | ||
| }; | ||
| "af-south-1"?: undefined; | ||
| "ap-east-1"?: undefined; | ||
| "ap-east-2"?: undefined; | ||
| "ap-northeast-1"?: undefined; | ||
| "ap-northeast-2"?: undefined; | ||
| "ap-northeast-3"?: undefined; | ||
| "ap-south-1"?: undefined; | ||
| "ap-south-2"?: undefined; | ||
| "ap-southeast-1"?: undefined; | ||
| "ap-southeast-2"?: undefined; | ||
| "ap-southeast-3"?: undefined; | ||
| "ap-southeast-4"?: undefined; | ||
| "ap-southeast-5"?: undefined; | ||
| "ap-southeast-6"?: undefined; | ||
| "ap-southeast-7"?: undefined; | ||
| "aws-global"?: undefined; | ||
| "ca-central-1"?: undefined; | ||
| "ca-west-1"?: undefined; | ||
| "eu-central-1"?: undefined; | ||
| "eu-central-2"?: undefined; | ||
| "eu-north-1"?: undefined; | ||
| "eu-south-1"?: undefined; | ||
| "eu-south-2"?: undefined; | ||
| "eu-west-1"?: undefined; | ||
| "eu-west-2"?: undefined; | ||
| "eu-west-3"?: undefined; | ||
| "il-central-1"?: undefined; | ||
| "me-central-1"?: undefined; | ||
| "me-south-1"?: undefined; | ||
| "mx-central-1"?: undefined; | ||
| "sa-east-1"?: undefined; | ||
| "us-east-1"?: undefined; | ||
| "us-east-2"?: undefined; | ||
| "us-west-1"?: undefined; | ||
| "us-west-2"?: undefined; | ||
| "aws-cn-global"?: undefined; | ||
| "cn-north-1"?: undefined; | ||
| "cn-northwest-1"?: undefined; | ||
| "eusc-de-east-1"?: undefined; | ||
| "aws-iso-global"?: undefined; | ||
| "us-iso-east-1"?: undefined; | ||
| "us-iso-west-1"?: undefined; | ||
| "aws-iso-b-global"?: undefined; | ||
| "us-isob-east-1"?: undefined; | ||
| "us-isob-west-1"?: undefined; | ||
| "aws-iso-e-global"?: undefined; | ||
| "eu-isoe-west-1"?: undefined; | ||
| "aws-iso-f-global"?: undefined; | ||
| "us-isof-east-1"?: undefined; | ||
| "us-isof-south-1"?: undefined; | ||
| }; | ||
| } | ||
| )[]; | ||
| version: string; | ||
| })[]; | ||
| version: string; | ||
| }; |
| import { Endpoint, EndpointParameters, EndpointV2, Logger, Provider } from "@smithy/types"; | ||
| /** | ||
| * This is an additional config resolver layer for clients using the default | ||
| * AWS regional endpoints ruleset. It makes the *resolved* config guarantee the presence of an | ||
| * endpoint provider function. This differs from the base behavior of the Endpoint | ||
| * config resolver, which only normalizes config.endpoint IFF one is provided by the caller. | ||
| * | ||
| * This is not used by AWS SDK clients, but rather | ||
| * generated clients that have the aws.api#service trait. This includes protocol tests | ||
| * and other customers. | ||
| * | ||
| * This resolver is MUTUALLY EXCLUSIVE with the EndpointRequired config resolver from | ||
| * |@smithy/middleware-endpoint. | ||
| * | ||
| * It must be placed after the `resolveEndpointConfig` | ||
| * resolver. This replaces the endpoints.json-based default endpoint provider. | ||
| * | ||
| * @public | ||
| */ | ||
| export type DefaultAwsRegionalEndpointsInputConfig = { | ||
| endpoint?: unknown; | ||
| endpoint?: unknown; | ||
| }; | ||
| type PreviouslyResolved = { | ||
| logger?: Logger; | ||
| region?: undefined | string | Provider<string | undefined>; | ||
| useFipsEndpoint?: undefined | boolean | Provider<string | boolean>; | ||
| useDualstackEndpoint?: undefined | boolean | Provider<string | boolean>; | ||
| endpointProvider: ( | ||
| endpointParams: EndpointParameters | DefaultRegionalEndpointParameters, | ||
| context?: { | ||
| logger?: Logger; | ||
| }, | ||
| ) => EndpointV2; | ||
| logger?: Logger; | ||
| region?: undefined | string | Provider<string | undefined>; | ||
| useFipsEndpoint?: undefined | boolean | Provider<string | boolean>; | ||
| useDualstackEndpoint?: undefined | boolean | Provider<string | boolean>; | ||
| endpointProvider: (endpointParams: EndpointParameters | DefaultRegionalEndpointParameters, context?: { | ||
| logger?: Logger; | ||
| }) => EndpointV2; | ||
| }; | ||
| /** | ||
| * @internal | ||
| */ | ||
| type DefaultRegionalEndpointParameters = { | ||
| Region?: string | undefined; | ||
| UseDualStack?: boolean | undefined; | ||
| UseFIPS?: boolean | undefined; | ||
| Region?: string | undefined; | ||
| UseDualStack?: boolean | undefined; | ||
| UseFIPS?: boolean | undefined; | ||
| }; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface DefaultAwsRegionalEndpointsResolvedConfig { | ||
| endpoint: Provider<Endpoint>; | ||
| endpoint: Provider<Endpoint>; | ||
| } | ||
| export declare const resolveDefaultAwsRegionalEndpointsConfig: <T>( | ||
| input: T & DefaultAwsRegionalEndpointsInputConfig & PreviouslyResolved, | ||
| ) => T & DefaultAwsRegionalEndpointsResolvedConfig; | ||
| /** | ||
| * MUST resolve after `\@smithy/middleware-endpoint`::`resolveEndpointConfig`. | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare const resolveDefaultAwsRegionalEndpointsConfig: <T>(input: T & DefaultAwsRegionalEndpointsInputConfig & PreviouslyResolved) => T & DefaultAwsRegionalEndpointsResolvedConfig; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const toEndpointV1: (endpoint: EndpointV2) => Endpoint; | ||
| export {}; |
@@ -1,6 +0,1 @@ | ||
| export { | ||
| EndpointObjectProperties, | ||
| EndpointObjectHeaders, | ||
| EndpointObject, | ||
| EndpointRuleObject, | ||
| } from "@smithy/core/endpoints"; | ||
| export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/core/endpoints"; |
@@ -1,12 +0,1 @@ | ||
| export { | ||
| ReferenceObject, | ||
| FunctionObject, | ||
| FunctionArgv, | ||
| FunctionReturn, | ||
| ConditionObject, | ||
| Expression, | ||
| EndpointParams, | ||
| EndpointResolverOptions, | ||
| ReferenceRecord, | ||
| EvaluateOptions, | ||
| } from "@smithy/core/endpoints"; | ||
| export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/core/endpoints"; |
@@ -0,4 +1,7 @@ | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface DefaultUserAgentOptions { | ||
| serviceId?: string; | ||
| clientVersion: string; | ||
| serviceId?: string; | ||
| clientVersion: string; | ||
| } |
| import { UserAgent } from "@smithy/types"; | ||
| import { DefaultUserAgentOptions } from "./configurations"; | ||
| import { PreviouslyResolved } from "./defaultUserAgent"; | ||
| export declare const createUserAgentStringParsingProvider: ({ | ||
| serviceId, | ||
| clientVersion, | ||
| }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>; | ||
| /** | ||
| * This is an alternative to the default user agent provider that uses the bowser | ||
| * library to parse the user agent string. | ||
| * | ||
| * Use this with your client's `defaultUserAgentProvider` constructor object field | ||
| * to use the legacy behavior. | ||
| * | ||
| * @deprecated use the default provider unless you need the older UA-parsing functionality. | ||
| * @public | ||
| */ | ||
| export declare const createUserAgentStringParsingProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>); |
@@ -1,7 +0,2 @@ | ||
| export { | ||
| createUserAgentStringParsingProvider, | ||
| createDefaultUserAgentProvider, | ||
| fallback, | ||
| defaultUserAgent, | ||
| } from "./defaultUserAgent"; | ||
| export { createUserAgentStringParsingProvider, createDefaultUserAgentProvider, fallback, defaultUserAgent, } from "./defaultUserAgent"; | ||
| export { PreviouslyResolved } from "./defaultUserAgent"; |
| import { Provider, UserAgent } from "@smithy/types"; | ||
| import { DefaultUserAgentOptions } from "./configurations"; | ||
| export { createUserAgentStringParsingProvider } from "./createUserAgentStringParsingProvider"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface PreviouslyResolved { | ||
| userAgentAppId: Provider<string | undefined>; | ||
| userAgentAppId: Provider<string | undefined>; | ||
| } | ||
| export declare const createDefaultUserAgentProvider: ({ | ||
| serviceId, | ||
| clientVersion, | ||
| }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>; | ||
| /** | ||
| * Default provider of the AWS SDK user agent string in react-native. | ||
| * @internal | ||
| */ | ||
| export declare const createDefaultUserAgentProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>); | ||
| /** | ||
| * Rudimentary UA string parsing as a fallback. | ||
| * @internal | ||
| */ | ||
| export declare const fallback: { | ||
| os(ua: string): string | undefined; | ||
| browser(ua: string): string | undefined; | ||
| os(ua: string): string | undefined; | ||
| browser(ua: string): string | undefined; | ||
| }; | ||
| export declare const defaultUserAgent: ({ | ||
| serviceId, | ||
| clientVersion, | ||
| }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>; | ||
| /** | ||
| * @internal | ||
| * @deprecated use createDefaultUserAgentProvider | ||
| */ | ||
| export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>); |
| import { Provider, UserAgent } from "@smithy/types"; | ||
| import { DefaultUserAgentOptions } from "./configurations"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface PreviouslyResolved { | ||
| userAgentAppId: Provider<string | undefined>; | ||
| userAgentAppId: Provider<string | undefined>; | ||
| } | ||
| export declare const createDefaultUserAgentProvider: ({ | ||
| serviceId, | ||
| clientVersion, | ||
| }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>; | ||
| export declare const defaultUserAgent: ({ | ||
| serviceId, | ||
| clientVersion, | ||
| }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>; | ||
| /** | ||
| * Default provider to the user agent in ReactNative. | ||
| * @internal | ||
| */ | ||
| export declare const createDefaultUserAgentProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>); | ||
| /** | ||
| * @internal | ||
| * @deprecated use createDefaultUserAgentProvider | ||
| */ | ||
| export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => ((config?: PreviouslyResolved) => Promise<UserAgent>); |
@@ -0,3 +1,8 @@ | ||
| /** | ||
| * If \@aws-sdk/signature-v4-crt is installed and loaded, it will register | ||
| * this value to true. | ||
| * @internal | ||
| */ | ||
| export declare const crtAvailability: { | ||
| isCrtAvailable: boolean; | ||
| isCrtAvailable: boolean; | ||
| }; |
| import { Provider, UserAgent } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export { crtAvailability } from "./crt-availability"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface DefaultUserAgentOptions { | ||
| serviceId?: string; | ||
| clientVersion: string; | ||
| serviceId?: string; | ||
| clientVersion: string; | ||
| } | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface PreviouslyResolved { | ||
| userAgentAppId: Provider<string | undefined>; | ||
| userAgentAppId: Provider<string | undefined>; | ||
| } | ||
| export declare const createDefaultUserAgentProvider: ({ | ||
| serviceId, | ||
| clientVersion, | ||
| }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>; | ||
| export declare const defaultUserAgent: ({ | ||
| serviceId, | ||
| clientVersion, | ||
| }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>; | ||
| /** | ||
| * Collect metrics from runtime to put into user agent. | ||
| * @internal | ||
| */ | ||
| export declare const createDefaultUserAgentProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>; | ||
| /** | ||
| * @internal | ||
| * @deprecated use createDefaultUserAgentProvider | ||
| */ | ||
| export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>; |
| import { UserAgentPair } from "@smithy/types"; | ||
| /** | ||
| * Returns the runtime name and version as a user agent pair. | ||
| * @internal | ||
| */ | ||
| export declare const getRuntimeUserAgentPair: () => UserAgentPair; |
| import { UserAgentPair } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const isCrtAvailable: () => UserAgentPair | null; |
| import { LoadedConfigSelectors } from "@smithy/core/config"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const UA_APP_ID_INI_NAME = "sdk_ua_app_id"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<string | undefined>; |
| import { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types"; | ||
| import { AwsSdkSigV4Signer } from "./AwsSdkSigV4Signer"; | ||
| /** | ||
| * @internal | ||
| * Note: this is not a signing algorithm implementation. The sign method | ||
| * accepts the real signer as an input parameter. | ||
| */ | ||
| export declare class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer { | ||
| sign( | ||
| httpRequest: IHttpRequest, | ||
| identity: AwsCredentialIdentity, | ||
| signingProperties: Record<string, unknown>, | ||
| ): Promise<IHttpRequest>; | ||
| sign(httpRequest: IHttpRequest, identity: AwsCredentialIdentity, signingProperties: Record<string, unknown>): Promise<IHttpRequest>; | ||
| } |
@@ -1,39 +0,44 @@ | ||
| import { | ||
| AuthScheme, | ||
| AwsCredentialIdentity, | ||
| HttpRequest as IHttpRequest, | ||
| HttpResponse, | ||
| HttpSigner, | ||
| Provider, | ||
| RequestSigner, | ||
| } from "@smithy/types"; | ||
| import { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, Provider, RequestSigner } from "@smithy/types"; | ||
| import { AwsSdkSigV4AAuthResolvedConfig } from "./resolveAwsSdkSigV4AConfig"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| interface AwsSdkSigV4Config extends AwsSdkSigV4AAuthResolvedConfig { | ||
| systemClockOffset: number; | ||
| signer: (authScheme?: AuthScheme) => Promise<RequestSigner>; | ||
| disableClockSkewCorrection?: Provider<boolean>; | ||
| systemClockOffset: number; | ||
| signer: (authScheme?: AuthScheme) => Promise<RequestSigner>; | ||
| disableClockSkewCorrection?: Provider<boolean>; | ||
| } | ||
| /** | ||
| * @internal | ||
| */ | ||
| interface AwsSdkSigV4AuthSigningProperties { | ||
| config: AwsSdkSigV4Config; | ||
| signer: RequestSigner; | ||
| signingRegion?: string; | ||
| signingRegionSet?: string[]; | ||
| signingName?: string; | ||
| config: AwsSdkSigV4Config; | ||
| signer: RequestSigner; | ||
| signingRegion?: string; | ||
| signingRegionSet?: string[]; | ||
| signingName?: string; | ||
| } | ||
| export declare const validateSigningProperties: ( | ||
| signingProperties: Record<string, unknown>, | ||
| ) => Promise<AwsSdkSigV4AuthSigningProperties>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const validateSigningProperties: (signingProperties: Record<string, unknown>) => Promise<AwsSdkSigV4AuthSigningProperties>; | ||
| /** | ||
| * Note: this is not a signing algorithm implementation. The sign method | ||
| * accepts the real signer as an input parameter. | ||
| * @internal | ||
| */ | ||
| export declare class AwsSdkSigV4Signer implements HttpSigner { | ||
| sign( | ||
| httpRequest: IHttpRequest, | ||
| identity: AwsCredentialIdentity, | ||
| signingProperties: Record<string, unknown>, | ||
| ): Promise<IHttpRequest>; | ||
| errorHandler(signingProperties: Record<string, unknown>): (error: Error) => never; | ||
| successHandler( | ||
| httpResponse: HttpResponse | unknown, | ||
| signingProperties: Record<string, unknown>, | ||
| ): void; | ||
| sign(httpRequest: IHttpRequest, | ||
| /** | ||
| * `identity` is bound in {@link resolveAWSSDKSigV4Config} | ||
| */ | ||
| identity: AwsCredentialIdentity, signingProperties: Record<string, unknown>): Promise<IHttpRequest>; | ||
| errorHandler(signingProperties: Record<string, unknown>): (error: Error) => never; | ||
| successHandler(httpResponse: HttpResponse | unknown, signingProperties: Record<string, unknown>): void; | ||
| } | ||
| /** | ||
| * @internal | ||
| * @deprecated renamed to {@link AwsSdkSigV4Signer} | ||
| */ | ||
| export declare const AWSSDKSigV4Signer: typeof AwsSdkSigV4Signer; | ||
| export {}; |
@@ -0,1 +1,6 @@ | ||
| /** | ||
| * Browser default: clock skew correction enabled. | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = false; |
@@ -0,1 +1,7 @@ | ||
| /** | ||
| * Node.js default: lazily reads from env var / shared config file. | ||
| * Browser counterpart (via index binding) exports `false`. | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION: import("@smithy/types").Provider<boolean>; |
| import { LoadedConfigSelectors } from "@smithy/core/config"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS: LoadedConfigSelectors<boolean>; |
@@ -1,23 +0,7 @@ | ||
| export { | ||
| AwsSdkSigV4Signer, | ||
| AWSSDKSigV4Signer, | ||
| validateSigningProperties, | ||
| } from "./AwsSdkSigV4Signer"; | ||
| export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties } from "./AwsSdkSigV4Signer"; | ||
| export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner"; | ||
| export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS"; | ||
| export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig"; | ||
| export { | ||
| AwsSdkSigV4AAuthInputConfig, | ||
| AwsSdkSigV4APreviouslyResolved, | ||
| AwsSdkSigV4AAuthResolvedConfig, | ||
| } from "./resolveAwsSdkSigV4AConfig"; | ||
| export { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, } from "./resolveAwsSdkSigV4AConfig"; | ||
| export { bindResolveAwsSdkSigV4Config } from "./resolveAwsSdkSigV4Config"; | ||
| export { | ||
| AwsSdkSigV4AuthInputConfig, | ||
| AwsSdkSigV4Memoized, | ||
| AwsSdkSigV4PreviouslyResolved, | ||
| AwsSdkSigV4AuthResolvedConfig, | ||
| AWSSDKSigV4AuthInputConfig, | ||
| AWSSDKSigV4PreviouslyResolved, | ||
| AWSSDKSigV4AuthResolvedConfig, | ||
| } from "./resolveAwsSdkSigV4Config"; | ||
| export { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./resolveAwsSdkSigV4Config"; |
| import { LoadedConfigSelectors } from "@smithy/core/config"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: LoadedConfigSelectors<string[]>; |
| import { LoadedConfigSelectors } from "@smithy/core/config"; | ||
| import { Provider } from "@smithy/types"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export interface AwsSdkSigV4AAuthInputConfig { | ||
| sigv4aSigningRegionSet?: string[] | undefined | Provider<string[] | undefined>; | ||
| /** | ||
| * This option will override the AWS sigv4a | ||
| * signing regionSet from any other source. | ||
| * | ||
| * The lookup order is: | ||
| * 1. this value | ||
| * 2. configuration file value of sigv4a_signing_region_set. | ||
| * 3. environment value of AWS_SIGV4A_SIGNING_REGION_SET. | ||
| * 4. signingRegionSet given by endpoint resolution. | ||
| * 5. the singular region of the SDK client. | ||
| */ | ||
| sigv4aSigningRegionSet?: string[] | undefined | Provider<string[] | undefined>; | ||
| } | ||
| export interface AwsSdkSigV4APreviouslyResolved {} | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface AwsSdkSigV4APreviouslyResolved { | ||
| } | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface AwsSdkSigV4AAuthResolvedConfig { | ||
| sigv4aSigningRegionSet: Provider<string[] | undefined>; | ||
| sigv4aSigningRegionSet: Provider<string[] | undefined>; | ||
| } | ||
| export declare const resolveAwsSdkSigV4AConfig: <T>( | ||
| config: T & AwsSdkSigV4AAuthInputConfig & AwsSdkSigV4APreviouslyResolved, | ||
| ) => T & AwsSdkSigV4AAuthResolvedConfig; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const resolveAwsSdkSigV4AConfig: <T>(config: T & AwsSdkSigV4AAuthInputConfig & AwsSdkSigV4APreviouslyResolved) => T & AwsSdkSigV4AAuthResolvedConfig; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const NODE_SIGV4A_CONFIG_OPTIONS: LoadedConfigSelectors<string[] | undefined>; |
| import { MergeFunctions } from "@aws-sdk/types"; | ||
| import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4"; | ||
| import { | ||
| AuthScheme, | ||
| AwsCredentialIdentity, | ||
| AwsCredentialIdentityProvider, | ||
| ChecksumConstructor, | ||
| HashConstructor, | ||
| MemoizedProvider, | ||
| Provider, | ||
| RegionInfoProvider, | ||
| RequestSigner, | ||
| } from "@smithy/types"; | ||
| import { AuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider, ChecksumConstructor, HashConstructor, MemoizedProvider, Provider, RegionInfoProvider, RequestSigner } from "@smithy/types"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export interface AwsSdkSigV4AuthInputConfig { | ||
| credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider; | ||
| signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise<RequestSigner>); | ||
| signingEscapePath?: boolean; | ||
| systemClockOffset?: number; | ||
| signingRegion?: string; | ||
| signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner; | ||
| disableClockSkewCorrection?: boolean | Provider<boolean>; | ||
| /** | ||
| * The credentials used to sign requests. | ||
| */ | ||
| credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider; | ||
| /** | ||
| * The signer to use when signing requests. | ||
| */ | ||
| signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise<RequestSigner>); | ||
| /** | ||
| * Whether to escape request path when signing the request. | ||
| */ | ||
| signingEscapePath?: boolean; | ||
| /** | ||
| * An offset value in milliseconds to apply to all signing times. | ||
| */ | ||
| systemClockOffset?: number; | ||
| /** | ||
| * The region where you want to sign your request against. This | ||
| * can be different to the region in the endpoint. | ||
| */ | ||
| signingRegion?: string; | ||
| /** | ||
| * The injectable SigV4-compatible signer class constructor. If not supplied, | ||
| * regular SignatureV4 constructor will be used. | ||
| * | ||
| * @internal | ||
| */ | ||
| signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner; | ||
| /** | ||
| * Whether to disable clock skew correction. When true, the SDK will not adjust | ||
| * the signing timestamp, will not update the client clock offset from response | ||
| * headers, and will not retry clock skew errors. | ||
| * | ||
| * Defaults to false (correction enabled). | ||
| */ | ||
| disableClockSkewCorrection?: boolean | Provider<boolean>; | ||
| } | ||
| /** | ||
| * Used to indicate whether a credential provider function was memoized by this resolver. | ||
| * @public | ||
| */ | ||
| export type AwsSdkSigV4Memoized = { | ||
| memoized?: boolean; | ||
| configBound?: boolean; | ||
| attributed?: boolean; | ||
| /** | ||
| * The credential provider has been memoized by the AWS SDK SigV4 config resolver. | ||
| */ | ||
| memoized?: boolean; | ||
| /** | ||
| * The credential provider has the caller client config object bound to its arguments. | ||
| */ | ||
| configBound?: boolean; | ||
| /** | ||
| * Function is wrapped with attribution transform. | ||
| */ | ||
| attributed?: boolean; | ||
| }; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface AwsSdkSigV4PreviouslyResolved { | ||
| credentialDefaultProvider?: (input: any) => MemoizedProvider<AwsCredentialIdentity>; | ||
| region: string | Provider<string>; | ||
| sha256: ChecksumConstructor | HashConstructor; | ||
| signingName?: string; | ||
| regionInfoProvider?: RegionInfoProvider; | ||
| defaultSigningName?: string; | ||
| serviceId: string; | ||
| useFipsEndpoint: Provider<boolean>; | ||
| useDualstackEndpoint: Provider<boolean>; | ||
| credentialDefaultProvider?: (input: any) => MemoizedProvider<AwsCredentialIdentity>; | ||
| region: string | Provider<string>; | ||
| sha256: ChecksumConstructor | HashConstructor; | ||
| signingName?: string; | ||
| regionInfoProvider?: RegionInfoProvider; | ||
| defaultSigningName?: string; | ||
| serviceId: string; | ||
| useFipsEndpoint: Provider<boolean>; | ||
| useDualstackEndpoint: Provider<boolean>; | ||
| } | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface AwsSdkSigV4AuthResolvedConfig { | ||
| credentials: MergeFunctions< | ||
| AwsCredentialIdentityProvider, | ||
| MemoizedProvider<AwsCredentialIdentity> | ||
| > & | ||
| AwsSdkSigV4Memoized; | ||
| signer: (authScheme?: AuthScheme) => Promise<RequestSigner>; | ||
| signingEscapePath: boolean; | ||
| systemClockOffset: number; | ||
| disableClockSkewCorrection: Provider<boolean>; | ||
| /** | ||
| * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.credentials} | ||
| * This provider MAY memoize the loaded credentials for certain period. | ||
| */ | ||
| credentials: MergeFunctions<AwsCredentialIdentityProvider, MemoizedProvider<AwsCredentialIdentity>> & AwsSdkSigV4Memoized; | ||
| /** | ||
| * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.signer} | ||
| */ | ||
| signer: (authScheme?: AuthScheme) => Promise<RequestSigner>; | ||
| /** | ||
| * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.signingEscapePath} | ||
| */ | ||
| signingEscapePath: boolean; | ||
| /** | ||
| * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.systemClockOffset} | ||
| */ | ||
| systemClockOffset: number; | ||
| /** | ||
| * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.disableClockSkewCorrection} | ||
| */ | ||
| disableClockSkewCorrection: Provider<boolean>; | ||
| } | ||
| /** | ||
| * Combined input config type used internally by the resolver and helper functions. | ||
| * @internal | ||
| */ | ||
| type AwsSdkSigV4ConfigInput = AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved; | ||
| export declare const bindResolveAwsSdkSigV4Config: ( | ||
| defaultDisableClockSkewCorrection: boolean | Provider<boolean>, | ||
| ) => <T>(config: T & AwsSdkSigV4ConfigInput) => T & AwsSdkSigV4AuthResolvedConfig; | ||
| export interface AWSSDKSigV4AuthInputConfig extends AwsSdkSigV4AuthInputConfig {} | ||
| export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyResolved {} | ||
| export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {} | ||
| /** | ||
| * Accepts a platform-specific default for disableClockSkewCorrection and | ||
| * returns the resolver function. Called from the index (node vs browser). | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare const bindResolveAwsSdkSigV4Config: (defaultDisableClockSkewCorrection: boolean | Provider<boolean>) => <T>(config: T & AwsSdkSigV4ConfigInput) => T & AwsSdkSigV4AuthResolvedConfig; | ||
| /** | ||
| * @internal | ||
| * @deprecated renamed to {@link AwsSdkSigV4AuthInputConfig} | ||
| */ | ||
| export interface AWSSDKSigV4AuthInputConfig extends AwsSdkSigV4AuthInputConfig { | ||
| } | ||
| /** | ||
| * @internal | ||
| * @deprecated renamed to {@link AwsSdkSigV4PreviouslyResolved} | ||
| */ | ||
| export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyResolved { | ||
| } | ||
| /** | ||
| * @internal | ||
| * @deprecated renamed to {@link AwsSdkSigV4AuthResolvedConfig} | ||
| */ | ||
| export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { | ||
| } | ||
| export {}; |
@@ -1,32 +0,11 @@ | ||
| export { | ||
| AwsSdkSigV4Signer, | ||
| AWSSDKSigV4Signer, | ||
| validateSigningProperties, | ||
| AwsSdkSigV4ASigner, | ||
| resolveAwsSdkSigV4AConfig, | ||
| } from "./aws_sdk"; | ||
| export { | ||
| AwsSdkSigV4AAuthInputConfig, | ||
| AwsSdkSigV4APreviouslyResolved, | ||
| AwsSdkSigV4AAuthResolvedConfig, | ||
| AwsSdkSigV4AuthInputConfig, | ||
| AwsSdkSigV4Memoized, | ||
| AwsSdkSigV4PreviouslyResolved, | ||
| AwsSdkSigV4AuthResolvedConfig, | ||
| AWSSDKSigV4AuthInputConfig, | ||
| AWSSDKSigV4PreviouslyResolved, | ||
| AWSSDKSigV4AuthResolvedConfig, | ||
| } from "./aws_sdk"; | ||
| export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, resolveAwsSdkSigV4AConfig, } from "./aws_sdk"; | ||
| export { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk"; | ||
| export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey"; | ||
| export declare const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: symbol; | ||
| export declare const NODE_SIGV4A_CONFIG_OPTIONS: symbol; | ||
| export declare const resolveAwsSdkSigV4Config: <T>( | ||
| config: T & | ||
| (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & | ||
| import("./aws_sdk").AwsSdkSigV4PreviouslyResolved), | ||
| ) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig; | ||
| export declare const resolveAWSSDKSigV4Config: <T>( | ||
| config: T & | ||
| (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & | ||
| import("./aws_sdk").AwsSdkSigV4PreviouslyResolved), | ||
| ) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig; | ||
| export declare const resolveAwsSdkSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig; | ||
| /** | ||
| * @internal | ||
| * @deprecated renamed to {@link resolveAwsSdkSigV4Config} | ||
| */ | ||
| export declare const resolveAWSSDKSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig; |
@@ -1,32 +0,9 @@ | ||
| export { | ||
| AwsSdkSigV4Signer, | ||
| AWSSDKSigV4Signer, | ||
| validateSigningProperties, | ||
| AwsSdkSigV4ASigner, | ||
| NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, | ||
| resolveAwsSdkSigV4AConfig, | ||
| NODE_SIGV4A_CONFIG_OPTIONS, | ||
| } from "./aws_sdk"; | ||
| export { | ||
| AwsSdkSigV4AAuthInputConfig, | ||
| AwsSdkSigV4APreviouslyResolved, | ||
| AwsSdkSigV4AAuthResolvedConfig, | ||
| AwsSdkSigV4AuthInputConfig, | ||
| AwsSdkSigV4Memoized, | ||
| AwsSdkSigV4PreviouslyResolved, | ||
| AwsSdkSigV4AuthResolvedConfig, | ||
| AWSSDKSigV4AuthInputConfig, | ||
| AWSSDKSigV4PreviouslyResolved, | ||
| AWSSDKSigV4AuthResolvedConfig, | ||
| } from "./aws_sdk"; | ||
| export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, } from "./aws_sdk"; | ||
| export { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk"; | ||
| export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey"; | ||
| export declare const resolveAwsSdkSigV4Config: <T>( | ||
| config: T & | ||
| (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & | ||
| import("./aws_sdk").AwsSdkSigV4PreviouslyResolved), | ||
| ) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig; | ||
| export declare const resolveAWSSDKSigV4Config: <T>( | ||
| config: T & | ||
| (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & | ||
| import("./aws_sdk").AwsSdkSigV4PreviouslyResolved), | ||
| ) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig; | ||
| export declare const resolveAwsSdkSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig; | ||
| /** | ||
| * @internal | ||
| * @deprecated renamed to {@link resolveAwsSdkSigV4Config} | ||
| */ | ||
| export declare const resolveAWSSDKSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig; |
@@ -0,1 +1,8 @@ | ||
| /** | ||
| * Converts a comma-separated string into an array of trimmed strings | ||
| * @param str The comma-separated input string to split | ||
| * @returns Array of trimmed strings split from the input | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare const getArrayForCommaSeparatedString: (str: string) => string[]; |
@@ -0,1 +1,6 @@ | ||
| /** | ||
| * Returns an environment variable key base on signing name. | ||
| * @param signingName - The signing name to use in the key | ||
| * @returns The environment variable key in format AWS_BEARER_TOKEN_<SIGNING_NAME> | ||
| */ | ||
| export declare const getBearerTokenEnvKey: (signingName: string) => string; |
@@ -0,2 +1,8 @@ | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const getDateHeader: (response: unknown) => string | undefined; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const getAgeHeader: (response: unknown) => string | undefined; |
@@ -0,1 +1,8 @@ | ||
| /** | ||
| * @internal | ||
| * | ||
| * Returns a date that is corrected for clock skew. | ||
| * | ||
| * @param systemClockOffset The offset of the system clock in milliseconds. | ||
| */ | ||
| export declare const getSkewCorrectedDate: (systemClockOffset: number) => Date; |
@@ -1,6 +0,26 @@ | ||
| export declare const getUpdatedSystemClockOffset: ( | ||
| clockTime: string, | ||
| currentSystemClockOffset: number, | ||
| timeRequestSent?: number, | ||
| ageHeader?: string, | ||
| ) => number; | ||
| /** | ||
| * Computes an updated system clock offset from a server Date header. | ||
| * | ||
| * When `timeRequestSent` is provided, uses the midpoint formula: | ||
| * elapsed = timeResponseReceived - timeRequestSent | ||
| * midpoint = (timeRequestSent + timeResponseReceived) / 2 | ||
| * candidateSkew = serverTime - midpoint | ||
| * | ||
| * When `timeRequestSent` is absent (legacy callers), falls back to: | ||
| * candidateSkew = serverTime - timeResponseReceived | ||
| * | ||
| * The candidate is discarded if: | ||
| * - An Age header is present | ||
| * - elapsed > 15 minutes | ||
| * | ||
| * The candidate is recorded unconditionally when not | ||
| * discarded. The detection threshold (4 min) is only used for retry decisions, | ||
| * not for whether to update the offset. | ||
| * | ||
| * @internal | ||
| * @param clockTime The string value of the Date response header. | ||
| * @param currentSystemClockOffset The current system clock offset in milliseconds. | ||
| * @param timeRequestSent The raw client time (ms) at which the request was sent. | ||
| * @param ageHeader The value of the Age response header, if present. | ||
| */ | ||
| export declare const getUpdatedSystemClockOffset: (clockTime: string, currentSystemClockOffset: number, timeRequestSent?: number, ageHeader?: string) => number; |
@@ -0,1 +1,9 @@ | ||
| /** | ||
| * @internal | ||
| * | ||
| * Checks if the provided date is within the skew window of 300000ms. | ||
| * | ||
| * @param clockTime - The time to check for skew in milliseconds. | ||
| * @param systemClockOffset - The offset of the system clock in milliseconds. | ||
| */ | ||
| export declare const isClockSkewed: (clockTime: number, systemClockOffset: number) => boolean; |
| import { SmithyRpcV2CborProtocol } from "@smithy/core/cbor"; | ||
| import { TypeRegistry } from "@smithy/core/schema"; | ||
| import { | ||
| EndpointBearer, | ||
| HandlerExecutionContext, | ||
| HttpRequest, | ||
| HttpResponse, | ||
| OperationSchema, | ||
| ResponseMetadata, | ||
| SerdeFunctions, | ||
| } from "@smithy/types"; | ||
| import { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types"; | ||
| /** | ||
| * Extends the Smithy implementation to add AwsQueryCompatibility support. | ||
| * | ||
| * @public | ||
| */ | ||
| export declare class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol { | ||
| private readonly awsQueryCompatible; | ||
| private readonly mixin; | ||
| constructor({ | ||
| defaultNamespace, | ||
| errorTypeRegistries, | ||
| awsQueryCompatible, | ||
| }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| awsQueryCompatible?: boolean; | ||
| }); | ||
| serializeRequest<Input extends object>( | ||
| operationSchema: OperationSchema, | ||
| input: Input, | ||
| context: HandlerExecutionContext & SerdeFunctions & EndpointBearer, | ||
| ): Promise<HttpRequest>; | ||
| protected handleError( | ||
| operationSchema: OperationSchema, | ||
| context: HandlerExecutionContext & SerdeFunctions, | ||
| response: HttpResponse, | ||
| dataObject: any, | ||
| metadata: ResponseMetadata, | ||
| ): Promise<never>; | ||
| private readonly awsQueryCompatible; | ||
| private readonly mixin; | ||
| constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| awsQueryCompatible?: boolean; | ||
| }); | ||
| /** | ||
| * @override | ||
| */ | ||
| serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>; | ||
| /** | ||
| * @override | ||
| */ | ||
| protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>; | ||
| } |
@@ -0,3 +1,18 @@ | ||
| /** | ||
| * @internal | ||
| * | ||
| * Used for awsQueryCompatibility trait. | ||
| */ | ||
| export declare const _toStr: (val: unknown) => string | undefined; | ||
| /** | ||
| * @internal | ||
| * | ||
| * Used for awsQueryCompatibility trait. | ||
| */ | ||
| export declare const _toBool: (val: unknown) => boolean | undefined; | ||
| /** | ||
| * @internal | ||
| * | ||
| * Used for awsQueryCompatibility trait. | ||
| */ | ||
| export declare const _toNum: (val: unknown) => number | undefined; |
| import { SerdeFunctions } from "@smithy/types"; | ||
| export declare const collectBodyString: ( | ||
| streamBody: any, | ||
| context: SerdeFunctions, | ||
| ) => Promise<string>; | ||
| export declare const collectBodyString: (streamBody: any, context: SerdeFunctions) => Promise<string>; |
| import { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare class SerdeContextConfig implements ConfigurableSerdeContext { | ||
| protected serdeContext?: SerdeFunctions; | ||
| setSerdeContext(serdeContext: SerdeFunctions): void; | ||
| protected serdeContext?: SerdeFunctions; | ||
| setSerdeContext(serdeContext: SerdeFunctions): void; | ||
| } |
@@ -12,8 +12,3 @@ export { AwsSmithyRpcV2CborProtocol } from "./cbor/AwsSmithyRpcV2CborProtocol"; | ||
| export { awsExpectUnion } from "./json/awsExpectUnion"; | ||
| export { | ||
| parseJsonBody, | ||
| parseJsonErrorBody, | ||
| loadRestJsonErrorCode, | ||
| loadJsonRpcErrorCode, | ||
| } from "./json/parseJsonBody"; | ||
| export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody"; | ||
| export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol"; | ||
@@ -20,0 +15,0 @@ export { AwsQueryProtocol } from "./query/AwsQueryProtocol"; |
@@ -0,1 +1,7 @@ | ||
| /** | ||
| * @internal | ||
| * | ||
| * Forwards to Smithy's expectUnion function, but also ignores | ||
| * the `__type` field if it is present. | ||
| */ | ||
| export declare const awsExpectUnion: (value: unknown) => Record<string, any> | undefined; |
| import { TypeRegistry } from "@smithy/core/schema"; | ||
| import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; | ||
| import { JsonCodec } from "./JsonCodec"; | ||
| /** | ||
| * @public | ||
| * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1 | ||
| */ | ||
| export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol { | ||
| constructor({ | ||
| defaultNamespace, | ||
| errorTypeRegistries, | ||
| serviceTarget, | ||
| awsQueryCompatible, | ||
| jsonCodec, | ||
| }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| serviceTarget: string; | ||
| awsQueryCompatible?: boolean; | ||
| jsonCodec?: JsonCodec; | ||
| }); | ||
| getShapeId(): string; | ||
| protected getJsonRpcVersion(): "1.0"; | ||
| protected getDefaultContentType(): string; | ||
| constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| serviceTarget: string; | ||
| awsQueryCompatible?: boolean; | ||
| jsonCodec?: JsonCodec; | ||
| }); | ||
| getShapeId(): string; | ||
| protected getJsonRpcVersion(): "1.0"; | ||
| /** | ||
| * @override | ||
| */ | ||
| protected getDefaultContentType(): string; | ||
| } |
| import { TypeRegistry } from "@smithy/core/schema"; | ||
| import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol"; | ||
| import { JsonCodec } from "./JsonCodec"; | ||
| /** | ||
| * @public | ||
| * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1 | ||
| */ | ||
| export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol { | ||
| constructor({ | ||
| defaultNamespace, | ||
| errorTypeRegistries, | ||
| serviceTarget, | ||
| awsQueryCompatible, | ||
| jsonCodec, | ||
| }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| serviceTarget: string; | ||
| awsQueryCompatible?: boolean; | ||
| jsonCodec?: JsonCodec; | ||
| }); | ||
| getShapeId(): string; | ||
| protected getJsonRpcVersion(): "1.1"; | ||
| protected getDefaultContentType(): string; | ||
| constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| serviceTarget: string; | ||
| awsQueryCompatible?: boolean; | ||
| jsonCodec?: JsonCodec; | ||
| }); | ||
| getShapeId(): string; | ||
| protected getJsonRpcVersion(): "1.1"; | ||
| /** | ||
| * @override | ||
| */ | ||
| protected getDefaultContentType(): string; | ||
| } |
| import { RpcProtocol } from "@smithy/core/protocols"; | ||
| import { TypeRegistry } from "@smithy/core/schema"; | ||
| import { | ||
| EndpointBearer, | ||
| HandlerExecutionContext, | ||
| HttpRequest, | ||
| HttpResponse, | ||
| OperationSchema, | ||
| ResponseMetadata, | ||
| SerdeFunctions, | ||
| ShapeDeserializer, | ||
| ShapeSerializer, | ||
| } from "@smithy/types"; | ||
| import { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; | ||
| import { JsonCodec } from "./JsonCodec"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare abstract class AwsJsonRpcProtocol extends RpcProtocol { | ||
| protected serializer: ShapeSerializer<string | Uint8Array>; | ||
| protected deserializer: ShapeDeserializer<string | Uint8Array>; | ||
| protected serviceTarget: string; | ||
| private readonly codec; | ||
| private readonly mixin; | ||
| private readonly awsQueryCompatible; | ||
| protected constructor({ | ||
| defaultNamespace, | ||
| errorTypeRegistries, | ||
| serviceTarget, | ||
| awsQueryCompatible, | ||
| jsonCodec, | ||
| }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| serviceTarget: string; | ||
| awsQueryCompatible?: boolean; | ||
| jsonCodec?: JsonCodec; | ||
| }); | ||
| serializeRequest<Input extends object>( | ||
| operationSchema: OperationSchema, | ||
| input: Input, | ||
| context: HandlerExecutionContext & SerdeFunctions & EndpointBearer, | ||
| ): Promise<HttpRequest>; | ||
| getPayloadCodec(): JsonCodec; | ||
| protected abstract getJsonRpcVersion(): "1.1" | "1.0"; | ||
| protected handleError( | ||
| operationSchema: OperationSchema, | ||
| context: HandlerExecutionContext & SerdeFunctions, | ||
| response: HttpResponse, | ||
| dataObject: any, | ||
| metadata: ResponseMetadata, | ||
| ): Promise<never>; | ||
| protected serializer: ShapeSerializer<string | Uint8Array>; | ||
| protected deserializer: ShapeDeserializer<string | Uint8Array>; | ||
| protected serviceTarget: string; | ||
| private readonly codec; | ||
| private readonly mixin; | ||
| private readonly awsQueryCompatible; | ||
| protected constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| serviceTarget: string; | ||
| awsQueryCompatible?: boolean; | ||
| jsonCodec?: JsonCodec; | ||
| }); | ||
| serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>; | ||
| getPayloadCodec(): JsonCodec; | ||
| protected abstract getJsonRpcVersion(): "1.1" | "1.0"; | ||
| /** | ||
| * @override | ||
| */ | ||
| protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>; | ||
| } |
| import { HttpBindingProtocol } from "@smithy/core/protocols"; | ||
| import { TypeRegistry } from "@smithy/core/schema"; | ||
| import { | ||
| EndpointBearer, | ||
| HandlerExecutionContext, | ||
| HttpRequest, | ||
| HttpResponse, | ||
| MetadataBearer, | ||
| OperationSchema, | ||
| ResponseMetadata, | ||
| SerdeFunctions, | ||
| ShapeDeserializer, | ||
| ShapeSerializer, | ||
| } from "@smithy/types"; | ||
| import { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; | ||
| import { JsonCodec } from "./JsonCodec"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class AwsRestJsonProtocol extends HttpBindingProtocol { | ||
| protected serializer: ShapeSerializer<string | Uint8Array>; | ||
| protected deserializer: ShapeDeserializer<string | Uint8Array>; | ||
| private readonly codec; | ||
| private readonly mixin; | ||
| constructor({ | ||
| defaultNamespace, | ||
| errorTypeRegistries, | ||
| }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }); | ||
| getShapeId(): string; | ||
| getPayloadCodec(): JsonCodec; | ||
| setSerdeContext(serdeContext: SerdeFunctions): void; | ||
| serializeRequest<Input extends object>( | ||
| operationSchema: OperationSchema, | ||
| input: Input, | ||
| context: HandlerExecutionContext & SerdeFunctions & EndpointBearer, | ||
| ): Promise<HttpRequest>; | ||
| deserializeResponse<Output extends MetadataBearer>( | ||
| operationSchema: OperationSchema, | ||
| context: HandlerExecutionContext & SerdeFunctions, | ||
| response: HttpResponse, | ||
| ): Promise<Output>; | ||
| protected handleError( | ||
| operationSchema: OperationSchema, | ||
| context: HandlerExecutionContext & SerdeFunctions, | ||
| response: HttpResponse, | ||
| dataObject: any, | ||
| metadata: ResponseMetadata, | ||
| ): Promise<never>; | ||
| protected getDefaultContentType(): string; | ||
| protected serializer: ShapeSerializer<string | Uint8Array>; | ||
| protected deserializer: ShapeDeserializer<string | Uint8Array>; | ||
| private readonly codec; | ||
| private readonly mixin; | ||
| constructor({ defaultNamespace, errorTypeRegistries, }: { | ||
| defaultNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }); | ||
| getShapeId(): string; | ||
| getPayloadCodec(): JsonCodec; | ||
| setSerdeContext(serdeContext: SerdeFunctions): void; | ||
| /** | ||
| * @override | ||
| */ | ||
| serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>; | ||
| /** | ||
| * @override | ||
| */ | ||
| deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse): Promise<Output>; | ||
| /** | ||
| * @override | ||
| */ | ||
| protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>; | ||
| /** | ||
| * @override | ||
| */ | ||
| protected getDefaultContentType(): string; | ||
| } |
| import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types"; | ||
| import { SerdeContextConfig } from "../../ConfigurableSerdeContext"; | ||
| import { JsonSettings } from "../JsonCodec"; | ||
| export declare class BufferJsonShapeDeserializer | ||
| extends SerdeContextConfig | ||
| implements ShapeDeserializer<string> | ||
| { | ||
| readonly settings: JsonSettings; | ||
| constructor(settings: JsonSettings); | ||
| read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>; | ||
| readObject(schema: Schema, data: DocumentType): any; | ||
| protected _read(schema: Schema, value: unknown): any; | ||
| private _readStruct; | ||
| /** | ||
| * Performance-optimized JSON deserializer. | ||
| * | ||
| * Skips UTF-8 decoding when the runtime supports JSON.parse(Buffer) (Node 22+). | ||
| * | ||
| * After JSON.parse, lists, maps, and document containers are mutated in place | ||
| * (element values are overwritten with their deserialized form) rather than | ||
| * copied into new arrays/objects. Structs allocate a fresh object because | ||
| * jsonName traits require key renaming, and building the output object | ||
| * incrementally lets V8 assign a stable hidden class rather than | ||
| * deoptimizing from repeated property deletion/addition on an existing shape. | ||
| * | ||
| * In-place mutation is safe here because the parsed tree is locally owned | ||
| * after JSON.parse with no external references, so rewriting values avoids | ||
| * redundant allocation and GC pressure. | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare class BufferJsonShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<string> { | ||
| readonly settings: JsonSettings; | ||
| constructor(settings: JsonSettings); | ||
| read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>; | ||
| readObject(schema: Schema, data: DocumentType): any; | ||
| protected _read(schema: Schema, value: unknown): any; | ||
| private _readStruct; | ||
| } |
| import { Schema, ShapeSerializer } from "@smithy/types"; | ||
| import { SerdeContextConfig } from "../../ConfigurableSerdeContext"; | ||
| import { JsonSettings } from "../JsonCodec"; | ||
| export declare class ByteJsonShapeSerializer | ||
| extends SerdeContextConfig | ||
| implements ShapeSerializer<Uint8Array> | ||
| { | ||
| readonly settings: JsonSettings; | ||
| private json; | ||
| private i; | ||
| private rootSchema; | ||
| constructor(settings: JsonSettings); | ||
| write(schema: Schema, value: unknown): void; | ||
| writeDiscriminatedDocument(schema: Schema, value: unknown): void; | ||
| flush(): Uint8Array; | ||
| private ensure; | ||
| private writeAscii; | ||
| private writeAsciiQuoted; | ||
| private writeJsonString; | ||
| private writeUnicodeEscape; | ||
| private static readonly B64; | ||
| private writeBase64; | ||
| private writeValue; | ||
| private writeStruct; | ||
| private writeList; | ||
| private writeMap; | ||
| private writeTimestamp; | ||
| /** | ||
| * Experimental single-pass JSON serializer that writes directly to a Uint8Array buffer. | ||
| * Fewer intermediate states as when compared to the initial multi-pass implementation. | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare class ByteJsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<Uint8Array> { | ||
| readonly settings: JsonSettings; | ||
| private json; | ||
| private i; | ||
| private rootSchema; | ||
| constructor(settings: JsonSettings); | ||
| write(schema: Schema, value: unknown): void; | ||
| /** | ||
| * @internal | ||
| */ | ||
| writeDiscriminatedDocument(schema: Schema, value: unknown): void; | ||
| /** | ||
| * Returns the serialized JSON as a Uint8Array (UTF-8 bytes). | ||
| * This is the primary output — pass directly to request.body. | ||
| */ | ||
| flush(): Uint8Array; | ||
| private ensure; | ||
| /** | ||
| * Write a raw ASCII string (no JSON escaping). Used for pre-validated content | ||
| * like numeric literals and pre-encoded base64. | ||
| */ | ||
| private writeAscii; | ||
| /** | ||
| * Write a quoted ASCII string with no escape checking. | ||
| * Used for struct member keys (jsonName or model names) which are | ||
| * guaranteed to be safe ASCII identifiers. No control chars, quotes, | ||
| * backslashes, or non-ASCII. | ||
| * Ensures extra room for surrounding structural chars (comma, colon). | ||
| */ | ||
| private writeAsciiQuoted; | ||
| /** | ||
| * Write a JSON-escaped string including the surrounding quotes. | ||
| * Fast-path for ASCII, falls back to TextEncoder for multi-byte. | ||
| */ | ||
| private writeJsonString; | ||
| private writeUnicodeEscape; | ||
| private static readonly B64; | ||
| /** | ||
| * Write a Uint8Array as a quoted base64 string directly into the buffer. | ||
| * No intermediate JS string, no escape checking (base64 alphabet is safe ASCII). | ||
| */ | ||
| private writeBase64; | ||
| private writeValue; | ||
| private writeStruct; | ||
| private writeList; | ||
| private writeMap; | ||
| private writeTimestamp; | ||
| } |
@@ -5,10 +5,16 @@ import { Codec, CodecSettings } from "@smithy/types"; | ||
| import { JsonShapeSerializer } from "./JsonShapeSerializer"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export type JsonSettings = CodecSettings & { | ||
| jsonName: boolean; | ||
| jsonName: boolean; | ||
| }; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class JsonCodec extends SerdeContextConfig implements Codec<string, string> { | ||
| readonly settings: JsonSettings; | ||
| constructor(settings: JsonSettings); | ||
| createSerializer(): JsonShapeSerializer; | ||
| createDeserializer(): JsonShapeDeserializer; | ||
| readonly settings: JsonSettings; | ||
| constructor(settings: JsonSettings); | ||
| createSerializer(): JsonShapeSerializer; | ||
| createDeserializer(): JsonShapeDeserializer; | ||
| } |
@@ -0,7 +1,21 @@ | ||
| /** | ||
| * Serializes BigInt and NumericValue to JSON-number. | ||
| * @internal | ||
| */ | ||
| export declare class JsonReplacer { | ||
| private readonly values; | ||
| private counter; | ||
| private stage; | ||
| createReplacer(): (key: string, value: unknown) => unknown; | ||
| replaceInJson(json: string): string; | ||
| /** | ||
| * Stores placeholder key to true serialized value lookup. | ||
| */ | ||
| private readonly values; | ||
| private counter; | ||
| private stage; | ||
| /** | ||
| * Creates a jsonReplacer function that reserves big integer and big decimal values | ||
| * for later replacement. | ||
| */ | ||
| createReplacer(): (key: string, value: unknown) => unknown; | ||
| /** | ||
| * Replaces placeholder keys with their true values. | ||
| */ | ||
| replaceInJson(json: string): string; | ||
| } |
@@ -1,7 +0,15 @@ | ||
| export declare function jsonReviver( | ||
| key: string, | ||
| value: any, | ||
| context?: { | ||
| /** | ||
| * @param key - JSON object key. | ||
| * @param value - parsed value. | ||
| * @param context - original JSON string for reference. Not available until Node.js 21 and unavailable in Safari as | ||
| * of April 2025. | ||
| * | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#browser_compatibility | ||
| * | ||
| * @internal | ||
| * | ||
| * @returns transformed value. | ||
| */ | ||
| export declare function jsonReviver(key: string, value: any, context?: { | ||
| source?: string; | ||
| }, | ||
| ): any; | ||
| }): any; |
| import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types"; | ||
| import { SerdeContextConfig } from "../ConfigurableSerdeContext"; | ||
| import { JsonSettings } from "./JsonCodec"; | ||
| export declare class JsonShapeDeserializer | ||
| extends SerdeContextConfig | ||
| implements ShapeDeserializer<string> | ||
| { | ||
| readonly settings: JsonSettings; | ||
| constructor(settings: JsonSettings); | ||
| read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>; | ||
| readObject(schema: Schema, data: DocumentType): any; | ||
| protected _read(schema: Schema, value: unknown): any; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class JsonShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<string> { | ||
| readonly settings: JsonSettings; | ||
| constructor(settings: JsonSettings); | ||
| read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>; | ||
| readObject(schema: Schema, data: DocumentType): any; | ||
| protected _read(schema: Schema, value: unknown): any; | ||
| } |
@@ -5,15 +5,25 @@ import { NormalizedSchema } from "@smithy/core/schema"; | ||
| import { JsonSettings } from "./JsonCodec"; | ||
| export declare class JsonShapeSerializer | ||
| extends SerdeContextConfig | ||
| implements ShapeSerializer<string> | ||
| { | ||
| readonly settings: JsonSettings; | ||
| protected buffer: any; | ||
| protected useReplacer: boolean; | ||
| protected rootSchema: NormalizedSchema | undefined; | ||
| constructor(settings: JsonSettings); | ||
| write(schema: Schema, value: unknown): void; | ||
| flush(): string; | ||
| writeDiscriminatedDocument(schema: Schema, value: unknown): void; | ||
| protected _write(schema: Schema, value: unknown, container?: NormalizedSchema): any; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class JsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string> { | ||
| readonly settings: JsonSettings; | ||
| /** | ||
| * Write buffer. Reused per value serialization pass. | ||
| * In the initial implementation, this is not an incremental buffer. | ||
| */ | ||
| protected buffer: any; | ||
| protected useReplacer: boolean; | ||
| protected rootSchema: NormalizedSchema | undefined; | ||
| constructor(settings: JsonSettings); | ||
| write(schema: Schema, value: unknown): void; | ||
| flush(): string; | ||
| /** | ||
| * @internal | ||
| */ | ||
| writeDiscriminatedDocument(schema: Schema, value: unknown): void; | ||
| /** | ||
| * Order if-statements by likelihood. | ||
| */ | ||
| protected _write(schema: Schema, value: unknown, container?: NormalizedSchema): any; | ||
| } |
| import { Schema } from "@smithy/types"; | ||
| /** | ||
| * Determines whether a schema tree contains BigInteger or BigDecimal members, | ||
| * which require a JSON.parse reviver to preserve numeric precision. | ||
| * | ||
| * The result is cached on the root static schema array (struct schemas) via a Symbol key, | ||
| * so subsequent calls for the same schema are O(1). | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare function needsReviver(schema: Schema): boolean; |
| import { HttpResponse, Schema, SerdeFunctions } from "@smithy/types"; | ||
| /** | ||
| * @deprecated new calls to parseJsonBody must pass schema. | ||
| * @internal | ||
| */ | ||
| export declare function parseJsonBody(streamBody: any, context: SerdeFunctions): Promise<any>; | ||
| export declare function parseJsonBody( | ||
| streamBody: any, | ||
| context: SerdeFunctions, | ||
| schema: Schema, | ||
| ): Promise<any>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare function parseJsonBody(streamBody: any, context: SerdeFunctions, schema: Schema): Promise<any>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const parseJsonErrorBody: (errorBody: any, context: SerdeFunctions) => Promise<any>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const loadRestJsonErrorCode: (output: HttpResponse, data: any) => string | undefined; | ||
| export declare const loadJsonRpcErrorCode: ( | ||
| output: HttpResponse, | ||
| data: any, | ||
| queryCompat?: boolean, | ||
| ) => string | undefined; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const loadJsonRpcErrorCode: (output: HttpResponse, data: any, queryCompat?: boolean) => string | undefined; |
| import { ServiceException as SDKBaseServiceException } from "@smithy/core/client"; | ||
| import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema"; | ||
| import { | ||
| HttpResponse as IHttpResponse, | ||
| MetadataBearer, | ||
| ResponseMetadata, | ||
| StaticErrorSchema, | ||
| } from "@smithy/types"; | ||
| import { HttpResponse as IHttpResponse, MetadataBearer, ResponseMetadata, StaticErrorSchema } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| type ErrorMetadataBearer = MetadataBearer & { | ||
| $fault: "client" | "server"; | ||
| $fault: "client" | "server"; | ||
| }; | ||
| /** | ||
| * Shared code for Protocols. | ||
| * | ||
| * @internal | ||
| */ | ||
| export declare class ProtocolLib { | ||
| private queryCompat; | ||
| private errorRegistry?; | ||
| constructor(queryCompat?: boolean); | ||
| resolveRestContentType( | ||
| defaultContentType: string, | ||
| inputSchema: NormalizedSchema, | ||
| ): string | undefined; | ||
| getErrorSchemaOrThrowBaseException( | ||
| errorIdentifier: string, | ||
| defaultNamespace: string, | ||
| response: IHttpResponse, | ||
| dataObject: any, | ||
| metadata: ResponseMetadata, | ||
| getErrorSchema?: (registry: TypeRegistry, errorName: string) => StaticErrorSchema, | ||
| ): Promise<{ | ||
| errorSchema: StaticErrorSchema; | ||
| errorMetadata: ErrorMetadataBearer; | ||
| }>; | ||
| compose(composite: TypeRegistry, errorIdentifier: string, defaultNamespace: string): void; | ||
| decorateServiceException<E extends SDKBaseServiceException>( | ||
| exception: E, | ||
| additions?: Record<string, any>, | ||
| ): E; | ||
| setQueryCompatError(output: Record<string, any>, response: IHttpResponse): void; | ||
| queryCompatOutput(queryCompatErrorData: any, errorData: any): void; | ||
| findQueryCompatibleError(registry: TypeRegistry, errorName: string): StaticErrorSchema; | ||
| private queryCompat; | ||
| private errorRegistry?; | ||
| constructor(queryCompat?: boolean); | ||
| /** | ||
| * This is only for REST protocols. | ||
| * | ||
| * @param defaultContentType - of the protocol. | ||
| * @param inputSchema - schema for which to determine content type. | ||
| * | ||
| * @returns content-type header value or undefined when not applicable. | ||
| */ | ||
| resolveRestContentType(defaultContentType: string, inputSchema: NormalizedSchema): string | undefined; | ||
| /** | ||
| * Shared code for finding error schema or throwing an unmodeled base error. | ||
| * @returns error schema and error metadata. | ||
| * | ||
| * @throws ServiceBaseException or generic Error if no error schema could be found. | ||
| */ | ||
| getErrorSchemaOrThrowBaseException(errorIdentifier: string, defaultNamespace: string, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata, getErrorSchema?: (registry: TypeRegistry, errorName: string) => StaticErrorSchema): Promise<{ | ||
| errorSchema: StaticErrorSchema; | ||
| errorMetadata: ErrorMetadataBearer; | ||
| }>; | ||
| /** | ||
| * This method exists because in older clients, no `errorTypeRegistries` array is provided to the Protocol | ||
| * implementation. This means that the TypeRegistry queried by the error's namespace or the service's defaultNamespace | ||
| * must be composed into the possibly-empty local compositeErrorRegistry. | ||
| * | ||
| * | ||
| * @param composite - TypeRegistry instance local to instances of HttpProtocol. In newer clients, this instance directly | ||
| * receives the error registries exported by the client. | ||
| * @param errorIdentifier - parsed from the response, used to look up the error schema within the registry. | ||
| * @param defaultNamespace - property of the Protocol implementation pointing to a specific service. | ||
| */ | ||
| compose(composite: TypeRegistry, errorIdentifier: string, defaultNamespace: string): void; | ||
| /** | ||
| * Assigns additions onto exception if not already present. | ||
| */ | ||
| decorateServiceException<E extends SDKBaseServiceException>(exception: E, additions?: Record<string, any>): E; | ||
| /** | ||
| * Reads the x-amzn-query-error header for awsQuery compatibility. | ||
| * | ||
| * @param output - values that will be assigned to an error object. | ||
| * @param response - from which to read awsQueryError headers. | ||
| */ | ||
| setQueryCompatError(output: Record<string, any>, response: IHttpResponse): void; | ||
| /** | ||
| * Assigns Error, Type, Code from the awsQuery error object to the output error object. | ||
| * @param queryCompatErrorData - query compat error object. | ||
| * @param errorData - canonical error object returned to the caller. | ||
| */ | ||
| queryCompatOutput(queryCompatErrorData: any, errorData: any): void; | ||
| /** | ||
| * Finds the canonical modeled error using the awsQueryError alias. | ||
| * @param registry - service error registry. | ||
| * @param errorName - awsQueryError name or regular qualified shapeId. | ||
| */ | ||
| findQueryCompatibleError(registry: TypeRegistry, errorName: string): StaticErrorSchema; | ||
| } | ||
| export {}; |
| import { TypeRegistry } from "@smithy/core/schema"; | ||
| import { AwsQueryProtocol } from "./AwsQueryProtocol"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class AwsEc2QueryProtocol extends AwsQueryProtocol { | ||
| options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| version: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }; | ||
| constructor(options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| version: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }); | ||
| getShapeId(): string; | ||
| protected useNestedResult(): boolean; | ||
| options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| version: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }; | ||
| constructor(options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| version: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }); | ||
| /** | ||
| * @override | ||
| */ | ||
| getShapeId(): string; | ||
| /** | ||
| * EC2 Query reads XResponse.XResult instead of XResponse directly. | ||
| */ | ||
| protected useNestedResult(): boolean; | ||
| } |
| import { RpcProtocol } from "@smithy/core/protocols"; | ||
| import { TypeRegistry } from "@smithy/core/schema"; | ||
| import { | ||
| Codec, | ||
| EndpointBearer, | ||
| HandlerExecutionContext, | ||
| HttpRequest, | ||
| HttpResponse as IHttpResponse, | ||
| MetadataBearer, | ||
| OperationSchema, | ||
| ResponseMetadata, | ||
| SerdeFunctions, | ||
| } from "@smithy/types"; | ||
| import { Codec, EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types"; | ||
| import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer"; | ||
| import { QueryShapeSerializer } from "./QueryShapeSerializer"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class AwsQueryProtocol extends RpcProtocol { | ||
| options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| version: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }; | ||
| protected serializer: QueryShapeSerializer; | ||
| protected deserializer: XmlShapeDeserializer; | ||
| private readonly mixin; | ||
| constructor(options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| version: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }); | ||
| getShapeId(): string; | ||
| setSerdeContext(serdeContext: SerdeFunctions): void; | ||
| getPayloadCodec(): Codec<any, any>; | ||
| serializeRequest<Input extends object>( | ||
| operationSchema: OperationSchema, | ||
| input: Input, | ||
| context: HandlerExecutionContext & SerdeFunctions & EndpointBearer, | ||
| ): Promise<HttpRequest>; | ||
| deserializeResponse<Output extends MetadataBearer>( | ||
| operationSchema: OperationSchema, | ||
| context: HandlerExecutionContext & SerdeFunctions, | ||
| response: IHttpResponse, | ||
| ): Promise<Output>; | ||
| protected useNestedResult(): boolean; | ||
| protected handleError( | ||
| operationSchema: OperationSchema, | ||
| context: HandlerExecutionContext & SerdeFunctions, | ||
| response: IHttpResponse, | ||
| dataObject: any, | ||
| metadata: ResponseMetadata, | ||
| ): Promise<never>; | ||
| protected loadQueryErrorCode(output: IHttpResponse, data: any): string | undefined; | ||
| protected loadQueryError(data: any): any | undefined; | ||
| protected loadQueryErrorMessage(data: any): string; | ||
| protected getDefaultContentType(): string; | ||
| options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| version: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }; | ||
| protected serializer: QueryShapeSerializer; | ||
| protected deserializer: XmlShapeDeserializer; | ||
| private readonly mixin; | ||
| constructor(options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| version: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }); | ||
| getShapeId(): string; | ||
| setSerdeContext(serdeContext: SerdeFunctions): void; | ||
| getPayloadCodec(): Codec<any, any>; | ||
| serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>; | ||
| deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>; | ||
| /** | ||
| * EC2 Query overrides this. | ||
| */ | ||
| protected useNestedResult(): boolean; | ||
| /** | ||
| * override | ||
| */ | ||
| protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>; | ||
| /** | ||
| * The variations in the error and error message locations are attributed to | ||
| * divergence between AWS Query and EC2 Query behavior. | ||
| */ | ||
| protected loadQueryErrorCode(output: IHttpResponse, data: any): string | undefined; | ||
| protected loadQueryError(data: any): any | undefined; | ||
| protected loadQueryErrorMessage(data: any): string; | ||
| /** | ||
| * @override | ||
| */ | ||
| protected getDefaultContentType(): string; | ||
| } |
| import { CodecSettings } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export type QuerySerializerSettings = CodecSettings & { | ||
| capitalizeKeys?: boolean; | ||
| flattenLists?: boolean; | ||
| serializeEmptyLists?: boolean; | ||
| ec2?: boolean; | ||
| capitalizeKeys?: boolean; | ||
| flattenLists?: boolean; | ||
| serializeEmptyLists?: boolean; | ||
| /** | ||
| * Whether to read from ec2QueryName before xmlName. | ||
| */ | ||
| ec2?: boolean; | ||
| }; |
| import { Schema, ShapeSerializer } from "@smithy/types"; | ||
| import { SerdeContextConfig } from "../ConfigurableSerdeContext"; | ||
| import { QuerySerializerSettings } from "./QuerySerializerSettings"; | ||
| export declare class QueryShapeSerializer | ||
| extends SerdeContextConfig | ||
| implements ShapeSerializer<string | Uint8Array> | ||
| { | ||
| readonly settings: QuerySerializerSettings; | ||
| private buffer; | ||
| constructor(settings: QuerySerializerSettings); | ||
| write(schema: Schema, value: unknown, prefix?: string): void; | ||
| flush(): string | Uint8Array; | ||
| protected getKey( | ||
| memberName: string, | ||
| xmlName?: string, | ||
| ec2QueryName?: unknown, | ||
| keySource?: string, | ||
| ): string; | ||
| protected writeKey(key: string): void; | ||
| protected writeValue(value: string): void; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class QueryShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string | Uint8Array> { | ||
| readonly settings: QuerySerializerSettings; | ||
| private buffer; | ||
| constructor(settings: QuerySerializerSettings); | ||
| write(schema: Schema, value: unknown, prefix?: string): void; | ||
| flush(): string | Uint8Array; | ||
| protected getKey(memberName: string, xmlName?: string, ec2QueryName?: unknown, keySource?: string): string; | ||
| protected writeKey(key: string): void; | ||
| protected writeValue(value: string): void; | ||
| } |
@@ -0,9 +1,24 @@ | ||
| /** | ||
| * Helper for identifying unknown union members during deserialization. | ||
| */ | ||
| export declare class UnionSerde { | ||
| private from; | ||
| private to; | ||
| private keys; | ||
| constructor(from: any, to: any); | ||
| mark(key: string): void; | ||
| hasUnknown(): boolean; | ||
| writeUnknown(): void; | ||
| private from; | ||
| private to; | ||
| private keys; | ||
| constructor(from: any, to: any); | ||
| /** | ||
| * Marks the key as being a known member. | ||
| * @param key - to mark. | ||
| */ | ||
| mark(key: string): void; | ||
| /** | ||
| * @returns whether only one key remains unmarked and nothing has been written, | ||
| * implying the object is a union. | ||
| */ | ||
| hasUnknown(): boolean; | ||
| /** | ||
| * Writes the unknown key-value pair, if present, into the $unknown property | ||
| * of the union object. | ||
| */ | ||
| writeUnknown(): void; | ||
| } |
@@ -0,1 +1,4 @@ | ||
| /** | ||
| * Makes __proto__ writable on a given object. | ||
| */ | ||
| export declare function writeKey(obj: object | Record<string, unknown> | any): void; |
| import { HttpBindingProtocol } from "@smithy/core/protocols"; | ||
| import { TypeRegistry } from "@smithy/core/schema"; | ||
| import { | ||
| EndpointBearer, | ||
| HandlerExecutionContext, | ||
| HttpRequest as IHttpRequest, | ||
| HttpResponse as IHttpResponse, | ||
| MetadataBearer, | ||
| OperationSchema, | ||
| ResponseMetadata, | ||
| SerdeFunctions, | ||
| ShapeDeserializer, | ||
| ShapeSerializer, | ||
| } from "@smithy/types"; | ||
| import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types"; | ||
| import { XmlCodec } from "./XmlCodec"; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class AwsRestXmlProtocol extends HttpBindingProtocol { | ||
| private readonly codec; | ||
| protected serializer: ShapeSerializer<string | Uint8Array>; | ||
| protected deserializer: ShapeDeserializer<string | Uint8Array>; | ||
| private readonly mixin; | ||
| constructor(options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }); | ||
| getPayloadCodec(): XmlCodec; | ||
| getShapeId(): string; | ||
| serializeRequest<Input extends object>( | ||
| operationSchema: OperationSchema, | ||
| input: Input, | ||
| context: HandlerExecutionContext & SerdeFunctions & EndpointBearer, | ||
| ): Promise<IHttpRequest>; | ||
| deserializeResponse<Output extends MetadataBearer>( | ||
| operationSchema: OperationSchema, | ||
| context: HandlerExecutionContext & SerdeFunctions, | ||
| response: IHttpResponse, | ||
| ): Promise<Output>; | ||
| protected handleError( | ||
| operationSchema: OperationSchema, | ||
| context: HandlerExecutionContext & SerdeFunctions, | ||
| response: IHttpResponse, | ||
| dataObject: any, | ||
| metadata: ResponseMetadata, | ||
| ): Promise<never>; | ||
| protected getDefaultContentType(): string; | ||
| private hasUnstructuredPayloadBinding; | ||
| private readonly codec; | ||
| protected serializer: ShapeSerializer<string | Uint8Array>; | ||
| protected deserializer: ShapeDeserializer<string | Uint8Array>; | ||
| private readonly mixin; | ||
| constructor(options: { | ||
| defaultNamespace: string; | ||
| xmlNamespace: string; | ||
| errorTypeRegistries?: TypeRegistry[]; | ||
| }); | ||
| getPayloadCodec(): XmlCodec; | ||
| getShapeId(): string; | ||
| serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>; | ||
| deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>; | ||
| /** | ||
| * @override | ||
| */ | ||
| protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>; | ||
| /** | ||
| * @override | ||
| */ | ||
| protected getDefaultContentType(): string; | ||
| private hasUnstructuredPayloadBinding; | ||
| } |
| import { HttpResponse, SerdeContext } from "@smithy/types"; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const parseXmlBody: (streamBody: any, context: SerdeContext) => any; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const parseXmlErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>; | ||
| /** | ||
| * @internal | ||
| */ | ||
| export declare const loadRestXmlErrorCode: (output: HttpResponse, data: any) => string | undefined; |
@@ -0,1 +1,6 @@ | ||
| /** | ||
| * Formats XML, for testing only. | ||
| * @internal | ||
| * @deprecated don't use in runtime code. | ||
| */ | ||
| export declare function simpleFormatXml(xml: string): string; |
@@ -6,13 +6,10 @@ import { Codec, CodecSettings } from "@smithy/types"; | ||
| export type XmlSettings = CodecSettings & { | ||
| xmlNamespace: string; | ||
| serviceNamespace: string; | ||
| xmlNamespace: string; | ||
| serviceNamespace: string; | ||
| }; | ||
| export declare class XmlCodec | ||
| extends SerdeContextConfig | ||
| implements Codec<Uint8Array | string, Uint8Array | string> | ||
| { | ||
| readonly settings: XmlSettings; | ||
| constructor(settings: XmlSettings); | ||
| createSerializer(): XmlShapeSerializer; | ||
| createDeserializer(): XmlShapeDeserializer; | ||
| export declare class XmlCodec extends SerdeContextConfig implements Codec<Uint8Array | string, Uint8Array | string> { | ||
| readonly settings: XmlSettings; | ||
| constructor(settings: XmlSettings); | ||
| createSerializer(): XmlShapeSerializer; | ||
| createDeserializer(): XmlShapeDeserializer; | ||
| } |
| import { Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types"; | ||
| import { SerdeContextConfig } from "../ConfigurableSerdeContext"; | ||
| import { XmlSettings } from "./XmlCodec"; | ||
| export declare class XmlShapeDeserializer | ||
| extends SerdeContextConfig | ||
| implements ShapeDeserializer<Uint8Array | string> | ||
| { | ||
| readonly settings: XmlSettings; | ||
| private stringDeserializer; | ||
| constructor(settings: XmlSettings); | ||
| setSerdeContext(serdeContext: SerdeFunctions): void; | ||
| read(schema: Schema, bytes: Uint8Array | string, key?: string): any; | ||
| readSchema(_schema: Schema, value: any): any; | ||
| protected parseXml(xml: string): any; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class XmlShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<Uint8Array | string> { | ||
| readonly settings: XmlSettings; | ||
| private stringDeserializer; | ||
| constructor(settings: XmlSettings); | ||
| setSerdeContext(serdeContext: SerdeFunctions): void; | ||
| /** | ||
| * @param schema - describing the data. | ||
| * @param bytes - serialized data. | ||
| * @param key - used by AwsQuery to step one additional depth into the object before reading it. | ||
| */ | ||
| read(schema: Schema, bytes: Uint8Array | string, key?: string): any; | ||
| readSchema(_schema: Schema, value: any): any; | ||
| protected parseXml(xml: string): any; | ||
| } |
| import { Schema as ISchema, ShapeSerializer } from "@smithy/types"; | ||
| import { SerdeContextConfig } from "../ConfigurableSerdeContext"; | ||
| import { XmlSettings } from "./XmlCodec"; | ||
| export declare class XmlShapeSerializer | ||
| extends SerdeContextConfig | ||
| implements ShapeSerializer<string | Uint8Array> | ||
| { | ||
| readonly settings: XmlSettings; | ||
| private stringBuffer?; | ||
| private byteBuffer?; | ||
| private buffer?; | ||
| constructor(settings: XmlSettings); | ||
| write(schema: ISchema, value: unknown): void; | ||
| flush(): string | Uint8Array; | ||
| private writeStruct; | ||
| private writeList; | ||
| private writeMap; | ||
| private writeSimple; | ||
| private writeSimpleInto; | ||
| private getXmlnsAttribute; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare class XmlShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string | Uint8Array> { | ||
| readonly settings: XmlSettings; | ||
| private stringBuffer?; | ||
| private byteBuffer?; | ||
| private buffer?; | ||
| constructor(settings: XmlSettings); | ||
| write(schema: ISchema, value: unknown): void; | ||
| flush(): string | Uint8Array; | ||
| private writeStruct; | ||
| private writeList; | ||
| private writeMap; | ||
| private writeSimple; | ||
| private writeSimpleInto; | ||
| private getXmlnsAttribute; | ||
| } |
@@ -0,14 +1,32 @@ | ||
| /** | ||
| * @internal | ||
| */ | ||
| export interface ARN { | ||
| partition: string; | ||
| service: string; | ||
| region: string; | ||
| accountId: string; | ||
| resource: string; | ||
| partition: string; | ||
| service: string; | ||
| region: string; | ||
| accountId: string; | ||
| resource: string; | ||
| } | ||
| /** | ||
| * Validate whether a string is an ARN. | ||
| * @internal | ||
| */ | ||
| export declare const validate: (str: any) => boolean; | ||
| /** | ||
| * Parse an ARN string into structure with partition, service, region, accountId and resource values | ||
| * @internal | ||
| */ | ||
| export declare const parse: (arn: string) => ARN; | ||
| /** | ||
| * @internal | ||
| */ | ||
| type buildOptions = Pick<ARN, Exclude<keyof ARN, "partition">> & { | ||
| partition?: string; | ||
| partition?: string; | ||
| }; | ||
| /** | ||
| * Build an ARN with service, partition, region, accountId, and resources strings | ||
| * @internal | ||
| */ | ||
| export declare const build: (arnObject: buildOptions) => string; | ||
| export {}; |
| import { HttpRequest } from "@smithy/types"; | ||
| export declare function formatUrl( | ||
| request: Pick<HttpRequest, Exclude<keyof HttpRequest, "headers" | "method">>, | ||
| ): string; | ||
| export declare function formatUrl(request: Pick<HttpRequest, Exclude<keyof HttpRequest, "headers" | "method">>): string; |
+1
-1
| { | ||
| "name": "@aws-sdk/core", | ||
| "version": "3.977.0", | ||
| "version": "3.977.1", | ||
| "description": "Core functions & classes shared by multiple AWS SDK clients.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core", |
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
548789
4.98%12797
2.1%0
-100%