@aws-sdk/client-signer-data 3.995.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +208 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +161 -0
- package/dist-cjs/models/SignerDataServiceException.js +12 -0
- package/dist-cjs/models/errors.js +64 -0
- package/dist-cjs/runtimeConfig.browser.js +38 -0
- package/dist-cjs/runtimeConfig.js +53 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +76 -0
- package/dist-es/SignerData.js +9 -0
- package/dist-es/SignerDataClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/GetRevocationStatusCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/SignerDataServiceException.js +8 -0
- package/dist-es/models/errors.js +57 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +33 -0
- package/dist-es/runtimeConfig.js +48 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +73 -0
- package/dist-types/SignerData.d.ts +17 -0
- package/dist-types/SignerDataClient.d.ts +188 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/GetRevocationStatusCommand.d.ts +115 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/SignerDataServiceException.d.ts +14 -0
- package/dist-types/models/errors.d.ts +54 -0
- package/dist-types/models/models_0.d.ts +42 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +16 -0
- package/dist-types/ts3.4/SignerData.d.ts +24 -0
- package/dist-types/ts3.4/SignerDataClient.d.ts +123 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetRevocationStatusCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/SignerDataServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/errors.d.ts +34 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
- package/package.json +100 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
12
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
13
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
14
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
export const getRuntimeConfig = (config) => {
|
|
16
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
17
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
19
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
+
awsCheckVersion(process.version);
|
|
21
|
+
const loaderConfig = {
|
|
22
|
+
profile: config?.profile,
|
|
23
|
+
logger: clientSharedValues.logger,
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
...clientSharedValues,
|
|
27
|
+
...config,
|
|
28
|
+
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
30
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
31
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
32
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
34
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
35
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
36
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
37
|
+
retryMode: config?.retryMode ??
|
|
38
|
+
loadNodeConfig({
|
|
39
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
|
+
}, config),
|
|
42
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
43
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
44
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
45
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
46
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
5
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
6
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
|
+
import { defaultSignerDataHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
10
|
+
export const getRuntimeConfig = (config) => {
|
|
11
|
+
return {
|
|
12
|
+
apiVersion: "2017-08-25",
|
|
13
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
14
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
15
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
16
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
17
|
+
extensions: config?.extensions ?? [],
|
|
18
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSignerDataHttpAuthSchemeProvider,
|
|
19
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
20
|
+
{
|
|
21
|
+
schemeId: "aws.auth#sigv4",
|
|
22
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
23
|
+
signer: new AwsSdkSigV4Signer(),
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
27
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
28
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
29
|
+
defaultNamespace: "com.amazonaws.signerdata",
|
|
30
|
+
errorTypeRegistries,
|
|
31
|
+
version: "2017-08-25",
|
|
32
|
+
serviceTarget: "SignerDataPlane",
|
|
33
|
+
},
|
|
34
|
+
serviceId: config?.serviceId ?? "Signer Data",
|
|
35
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
36
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
37
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
9
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
const _ADE = "AccessDeniedException";
|
|
2
|
+
const _GRS = "GetRevocationStatus";
|
|
3
|
+
const _GRSR = "GetRevocationStatusRequest";
|
|
4
|
+
const _GRSRe = "GetRevocationStatusResponse";
|
|
5
|
+
const _ISEE = "InternalServiceErrorException";
|
|
6
|
+
const _TMRE = "TooManyRequestsException";
|
|
7
|
+
const _VE = "ValidationException";
|
|
8
|
+
const _c = "client";
|
|
9
|
+
const _cH = "certificateHashes";
|
|
10
|
+
const _co = "code";
|
|
11
|
+
const _e = "error";
|
|
12
|
+
const _h = "http";
|
|
13
|
+
const _hE = "httpError";
|
|
14
|
+
const _hQ = "httpQuery";
|
|
15
|
+
const _jA = "jobArn";
|
|
16
|
+
const _m = "message";
|
|
17
|
+
const _pI = "platformId";
|
|
18
|
+
const _pVA = "profileVersionArn";
|
|
19
|
+
const _rE = "revokedEntities";
|
|
20
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signerdata";
|
|
21
|
+
const _sT = "signatureTimestamp";
|
|
22
|
+
const _se = "server";
|
|
23
|
+
const n0 = "com.amazonaws.signerdata";
|
|
24
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
25
|
+
import { AccessDeniedException, InternalServiceErrorException, TooManyRequestsException, ValidationException, } from "../models/errors";
|
|
26
|
+
import { SignerDataServiceException } from "../models/SignerDataServiceException";
|
|
27
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
28
|
+
export var SignerDataServiceException$ = [-3, _s, "SignerDataServiceException", 0, [], []];
|
|
29
|
+
_s_registry.registerError(SignerDataServiceException$, SignerDataServiceException);
|
|
30
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
31
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
32
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
33
|
+
[_m, _co],
|
|
34
|
+
[0, 0]
|
|
35
|
+
];
|
|
36
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
37
|
+
export var InternalServiceErrorException$ = [-3, n0, _ISEE,
|
|
38
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
39
|
+
[_m, _co],
|
|
40
|
+
[0, 0]
|
|
41
|
+
];
|
|
42
|
+
n0_registry.registerError(InternalServiceErrorException$, InternalServiceErrorException);
|
|
43
|
+
export var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
44
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
45
|
+
[_m, _co],
|
|
46
|
+
[0, 0]
|
|
47
|
+
];
|
|
48
|
+
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
49
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
50
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
51
|
+
[_m, _co],
|
|
52
|
+
[0, 0]
|
|
53
|
+
];
|
|
54
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
55
|
+
export const errorTypeRegistries = [
|
|
56
|
+
_s_registry,
|
|
57
|
+
n0_registry,
|
|
58
|
+
];
|
|
59
|
+
export var GetRevocationStatusRequest$ = [3, n0, _GRSR,
|
|
60
|
+
0,
|
|
61
|
+
[_sT, _pI, _pVA, _jA, _cH],
|
|
62
|
+
[[4, { [_hQ]: _sT }], [0, { [_hQ]: _pI }], [0, { [_hQ]: _pVA }], [0, { [_hQ]: _jA }], [64 | 0, { [_hQ]: _cH }]], 5
|
|
63
|
+
];
|
|
64
|
+
export var GetRevocationStatusResponse$ = [3, n0, _GRSRe,
|
|
65
|
+
0,
|
|
66
|
+
[_rE],
|
|
67
|
+
[64 | 0]
|
|
68
|
+
];
|
|
69
|
+
var CertificateHashes = 64 | 0;
|
|
70
|
+
var RevokedEntities = 64 | 0;
|
|
71
|
+
export var GetRevocationStatus$ = [9, n0, _GRS,
|
|
72
|
+
{ [_h]: ["GET", "/revocations", 200] }, () => GetRevocationStatusRequest$, () => GetRevocationStatusResponse$
|
|
73
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput } from "./commands/GetRevocationStatusCommand";
|
|
3
|
+
import { SignerDataClient } from "./SignerDataClient";
|
|
4
|
+
export interface SignerData {
|
|
5
|
+
/**
|
|
6
|
+
* @see {@link GetRevocationStatusCommand}
|
|
7
|
+
*/
|
|
8
|
+
getRevocationStatus(args: GetRevocationStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetRevocationStatusCommandOutput>;
|
|
9
|
+
getRevocationStatus(args: GetRevocationStatusCommandInput, cb: (err: any, data?: GetRevocationStatusCommandOutput) => void): void;
|
|
10
|
+
getRevocationStatus(args: GetRevocationStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRevocationStatusCommandOutput) => void): void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* <p>AWS Signer Data Plane service provides APIs for checking revocation status of signed artifacts.</p>
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export declare class SignerData extends SignerDataClient implements SignerData {
|
|
17
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
8
|
+
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput } from "./commands/GetRevocationStatusCommand";
|
|
11
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
12
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
13
|
+
export { __Client };
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type ServiceInputTypes = GetRevocationStatusCommandInput;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export type ServiceOutputTypes = GetRevocationStatusCommandOutput;
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
26
|
+
/**
|
|
27
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
28
|
+
*/
|
|
29
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
30
|
+
/**
|
|
31
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
32
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
36
|
+
/**
|
|
37
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
urlParser?: __UrlParser;
|
|
41
|
+
/**
|
|
42
|
+
* A function that can calculate the length of a request body.
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
46
|
+
/**
|
|
47
|
+
* A function that converts a stream into an array of bytes.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
streamCollector?: __StreamCollector;
|
|
51
|
+
/**
|
|
52
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
base64Decoder?: __Decoder;
|
|
56
|
+
/**
|
|
57
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
base64Encoder?: __Encoder;
|
|
61
|
+
/**
|
|
62
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
utf8Decoder?: __Decoder;
|
|
66
|
+
/**
|
|
67
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
utf8Encoder?: __Encoder;
|
|
71
|
+
/**
|
|
72
|
+
* The runtime environment.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
runtime?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
78
|
+
* trait of an operation.
|
|
79
|
+
*/
|
|
80
|
+
disableHostPrefix?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Unique service identifier.
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
serviceId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
88
|
+
*/
|
|
89
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
90
|
+
/**
|
|
91
|
+
* Enables FIPS compatible endpoints.
|
|
92
|
+
*/
|
|
93
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
94
|
+
/**
|
|
95
|
+
* The AWS region to which this client will send requests
|
|
96
|
+
*/
|
|
97
|
+
region?: string | __Provider<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Setting a client profile is similar to setting a value for the
|
|
100
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
101
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
102
|
+
*
|
|
103
|
+
* When set, and only for environments where an AWS configuration
|
|
104
|
+
* file exists, fields configurable by this file will be retrieved
|
|
105
|
+
* from the specified profile within that file.
|
|
106
|
+
* Conflicting code configuration and environment variables will
|
|
107
|
+
* still have higher priority.
|
|
108
|
+
*
|
|
109
|
+
* For client credential resolution that involves checking the AWS
|
|
110
|
+
* configuration file, the client's profile (this value) will be
|
|
111
|
+
* used unless a different profile is set in the credential
|
|
112
|
+
* provider options.
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
profile?: string;
|
|
116
|
+
/**
|
|
117
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
121
|
+
/**
|
|
122
|
+
* Default credentials provider; Not available in browser runtime.
|
|
123
|
+
* @deprecated
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
127
|
+
/**
|
|
128
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
129
|
+
*/
|
|
130
|
+
maxAttempts?: number | __Provider<number>;
|
|
131
|
+
/**
|
|
132
|
+
* Specifies which retry algorithm to use.
|
|
133
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
retryMode?: string | __Provider<string>;
|
|
137
|
+
/**
|
|
138
|
+
* Optional logger for logging debug/info/warn/error.
|
|
139
|
+
*/
|
|
140
|
+
logger?: __Logger;
|
|
141
|
+
/**
|
|
142
|
+
* Optional extensions
|
|
143
|
+
*/
|
|
144
|
+
extensions?: RuntimeExtension[];
|
|
145
|
+
/**
|
|
146
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
147
|
+
*/
|
|
148
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
export type SignerDataClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
154
|
+
/**
|
|
155
|
+
* @public
|
|
156
|
+
*
|
|
157
|
+
* The configuration interface of SignerDataClient class constructor that set the region, credentials and other options.
|
|
158
|
+
*/
|
|
159
|
+
export interface SignerDataClientConfig extends SignerDataClientConfigType {
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
export type SignerDataClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
165
|
+
/**
|
|
166
|
+
* @public
|
|
167
|
+
*
|
|
168
|
+
* The resolved configuration interface of SignerDataClient class. This is resolved and normalized from the {@link SignerDataClientConfig | constructor configuration interface}.
|
|
169
|
+
*/
|
|
170
|
+
export interface SignerDataClientResolvedConfig extends SignerDataClientResolvedConfigType {
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* <p>AWS Signer Data Plane service provides APIs for checking revocation status of signed artifacts.</p>
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
export declare class SignerDataClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SignerDataClientResolvedConfig> {
|
|
177
|
+
/**
|
|
178
|
+
* The resolved configuration of SignerDataClient class. This is resolved and normalized from the {@link SignerDataClientConfig | constructor configuration interface}.
|
|
179
|
+
*/
|
|
180
|
+
readonly config: SignerDataClientResolvedConfig;
|
|
181
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<SignerDataClientConfig>);
|
|
182
|
+
/**
|
|
183
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
184
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
185
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
186
|
+
*/
|
|
187
|
+
destroy(): void;
|
|
188
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type HttpAuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
|
2
|
+
import type { SignerDataHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: SignerDataHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): SignerDataHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: SignerDataHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type SignerDataClientResolvedConfig } from "../SignerDataClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface SignerDataHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface SignerDataHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SignerDataClientResolvedConfig, HandlerExecutionContext, SignerDataHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultSignerDataHttpAuthSchemeParametersProvider: (config: SignerDataClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SignerDataHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface SignerDataHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SignerDataHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultSignerDataHttpAuthSchemeProvider: SignerDataHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: SignerDataHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: SignerDataHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { GetRevocationStatusRequest, GetRevocationStatusResponse } from "../models/models_0";
|
|
4
|
+
import type { SignerDataClientResolvedConfig } from "../SignerDataClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetRevocationStatusCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetRevocationStatusCommandInput extends GetRevocationStatusRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetRevocationStatusCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetRevocationStatusCommandOutput extends GetRevocationStatusResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetRevocationStatusCommand_base: {
|
|
25
|
+
new (input: GetRevocationStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput, SignerDataClientResolvedConfig, GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput>;
|
|
26
|
+
new (input: GetRevocationStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput, SignerDataClientResolvedConfig, GetRevocationStatusCommandInput, GetRevocationStatusCommandOutput>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the revocation status for a signed artifact by checking if the signing profile, job, or certificate has been revoked.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { SignerDataClient, GetRevocationStatusCommand } from "@aws-sdk/client-signer-data"; // ES Modules import
|
|
35
|
+
* // const { SignerDataClient, GetRevocationStatusCommand } = require("@aws-sdk/client-signer-data"); // CommonJS import
|
|
36
|
+
* // import type { SignerDataClientConfig } from "@aws-sdk/client-signer-data";
|
|
37
|
+
* const config = {}; // type is SignerDataClientConfig
|
|
38
|
+
* const client = new SignerDataClient(config);
|
|
39
|
+
* const input = { // GetRevocationStatusRequest
|
|
40
|
+
* signatureTimestamp: new Date("TIMESTAMP"), // required
|
|
41
|
+
* platformId: "STRING_VALUE", // required
|
|
42
|
+
* profileVersionArn: "STRING_VALUE", // required
|
|
43
|
+
* jobArn: "STRING_VALUE", // required
|
|
44
|
+
* certificateHashes: [ // CertificateHashes // required
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* };
|
|
48
|
+
* const command = new GetRevocationStatusCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // GetRevocationStatusResponse
|
|
51
|
+
* // revokedEntities: [ // RevokedEntities
|
|
52
|
+
* // "STRING_VALUE",
|
|
53
|
+
* // ],
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param GetRevocationStatusCommandInput - {@link GetRevocationStatusCommandInput}
|
|
59
|
+
* @returns {@link GetRevocationStatusCommandOutput}
|
|
60
|
+
* @see {@link GetRevocationStatusCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link GetRevocationStatusCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link SignerDataClientResolvedConfig | config} for SignerDataClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
65
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServiceErrorException} (server fault)
|
|
68
|
+
* <p>An internal service error occurred.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
71
|
+
* <p>The request was denied due to request throttling.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ValidationException} (client fault)
|
|
74
|
+
* <p>The request contains invalid parameters or is malformed.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link SignerDataServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from SignerData service.</p>
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* @example Check revocation status for a signed artifact
|
|
81
|
+
* ```javascript
|
|
82
|
+
* // Checks if a signing profile, job, or certificate has been revoked for a given artifact.
|
|
83
|
+
* const input = {
|
|
84
|
+
* certificateHashes: [
|
|
85
|
+
* "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
86
|
+
* ],
|
|
87
|
+
* jobArn: "arn:aws:signer:us-east-1:123456789012:/signing-jobs/my-job-id",
|
|
88
|
+
* platformId: "Notation-OCI-SHA384-ECDSA",
|
|
89
|
+
* profileVersionArn: "arn:aws:signer:us-east-1:123456789012:/signing-profiles/my-profile/v1",
|
|
90
|
+
* signatureTimestamp: 1700000000
|
|
91
|
+
* };
|
|
92
|
+
* const command = new GetRevocationStatusCommand(input);
|
|
93
|
+
* const response = await client.send(command);
|
|
94
|
+
* /* response is
|
|
95
|
+
* {
|
|
96
|
+
* revokedEntities: []
|
|
97
|
+
* }
|
|
98
|
+
* *\/
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export declare class GetRevocationStatusCommand extends GetRevocationStatusCommand_base {
|
|
104
|
+
/** @internal type navigation helper, not in runtime. */
|
|
105
|
+
protected static __types: {
|
|
106
|
+
api: {
|
|
107
|
+
input: GetRevocationStatusRequest;
|
|
108
|
+
output: GetRevocationStatusResponse;
|
|
109
|
+
};
|
|
110
|
+
sdk: {
|
|
111
|
+
input: GetRevocationStatusCommandInput;
|
|
112
|
+
output: GetRevocationStatusCommandOutput;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetRevocationStatusCommand";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
7
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
8
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
15
|
+
defaultSigningName: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare const commonParams: {
|
|
25
|
+
readonly UseFIPS: {
|
|
26
|
+
readonly type: "builtInParams";
|
|
27
|
+
readonly name: "useFipsEndpoint";
|
|
28
|
+
};
|
|
29
|
+
readonly Endpoint: {
|
|
30
|
+
readonly type: "builtInParams";
|
|
31
|
+
readonly name: "endpoint";
|
|
32
|
+
};
|
|
33
|
+
readonly Region: {
|
|
34
|
+
readonly type: "builtInParams";
|
|
35
|
+
readonly name: "region";
|
|
36
|
+
};
|
|
37
|
+
readonly UseDualStack: {
|
|
38
|
+
readonly type: "builtInParams";
|
|
39
|
+
readonly name: "useDualstackEndpoint";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
46
|
+
Region: string;
|
|
47
|
+
UseFIPS?: boolean | undefined;
|
|
48
|
+
UseDualStack?: boolean | undefined;
|
|
49
|
+
Endpoint?: string | undefined;
|
|
50
|
+
}
|