@aws-sdk/client-cloudextensions 0.0.0-stage → 3.1180.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 +292 -2
- package/dist-cjs/index.js +1295 -0
- package/dist-es/CloudExtensions.js +49 -0
- package/dist-es/CloudExtensionsClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/CreateProfileCommand.js +4 -0
- package/dist-es/commands/CreateProfileEntryCommand.js +4 -0
- package/dist-es/commands/DeleteProfileCommand.js +4 -0
- package/dist-es/commands/DeleteProfileEntryCommand.js +4 -0
- package/dist-es/commands/GetExtensionCommand.js +4 -0
- package/dist-es/commands/GetProfileCommand.js +4 -0
- package/dist-es/commands/GetProfileEntryCommand.js +4 -0
- package/dist-es/commands/ListExtensionVersionsCommand.js +4 -0
- package/dist-es/commands/ListExtensionsCommand.js +4 -0
- package/dist-es/commands/ListProfileEntriesCommand.js +4 -0
- package/dist-es/commands/ListProfilesCommand.js +4 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateProfileCommand.js +4 -0
- package/dist-es/commands/UpdateProfileEntryCommand.js +4 -0
- package/dist-es/commands/index.js +16 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +29 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/CloudExtensionsServiceException.js +9 -0
- package/dist-es/models/enums.js +21 -0
- package/dist-es/models/errors.js +118 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListExtensionVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListExtensionsPaginator.js +4 -0
- package/dist-es/pagination/ListProfileEntriesPaginator.js +4 -0
- package/dist-es/pagination/ListProfilesPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +686 -0
- package/dist-types/CloudExtensions.d.ts +158 -0
- package/dist-types/CloudExtensionsClient.d.ts +203 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +136 -0
- package/dist-types/commands/CreateProfileEntryCommand.d.ts +205 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +87 -0
- package/dist-types/commands/DeleteProfileEntryCommand.d.ts +88 -0
- package/dist-types/commands/GetExtensionCommand.d.ts +248 -0
- package/dist-types/commands/GetProfileCommand.d.ts +110 -0
- package/dist-types/commands/GetProfileEntryCommand.d.ts +166 -0
- package/dist-types/commands/ListExtensionVersionsCommand.d.ts +101 -0
- package/dist-types/commands/ListExtensionsCommand.d.ts +96 -0
- package/dist-types/commands/ListProfileEntriesCommand.d.ts +107 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +95 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
- package/dist-types/commands/TagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +133 -0
- package/dist-types/commands/UpdateProfileEntryCommand.d.ts +198 -0
- package/dist-types/commands/index.d.ts +16 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/CloudExtensionsServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +94 -0
- package/dist-types/models/errors.d.ts +154 -0
- package/dist-types/models/models_0.d.ts +1972 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListExtensionVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListExtensionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProfileEntriesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +97 -0
- package/dist-types/ts3.4/CloudExtensions.d.ts +309 -0
- package/dist-types/ts3.4/CloudExtensionsClient.d.ts +191 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateProfileEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteProfileEntryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetExtensionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetProfileEntryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListExtensionVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListExtensionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListProfileEntriesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateProfileEntryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +16 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/CloudExtensionsServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +27 -0
- package/dist-types/ts3.4/models/errors.d.ts +61 -0
- package/dist-types/ts3.4/models/models_0.d.ts +618 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListExtensionVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExtensionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProfileEntriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +97 -0
- package/package.json +67 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
2
|
+
export const getRuntimeConfig = (config) => {
|
|
3
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
4
|
+
return {
|
|
5
|
+
...browserDefaults,
|
|
6
|
+
...config,
|
|
7
|
+
runtime: "react-native",
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
4
|
+
import { NoOpLogger } from "@smithy/core/client";
|
|
5
|
+
import { parseUrl } from "@smithy/core/protocols";
|
|
6
|
+
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
7
|
+
import { defaultCloudExtensionsHttpAuthSchemeProvider } 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: "2026-11-29",
|
|
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 ?? defaultCloudExtensionsHttpAuthSchemeProvider,
|
|
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.cloudextensions",
|
|
30
|
+
errorTypeRegistries,
|
|
31
|
+
version: "2026-11-29",
|
|
32
|
+
serviceTarget: "ControlPlane",
|
|
33
|
+
},
|
|
34
|
+
serviceId: config?.serviceId ?? "CloudExtensions",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
36
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
37
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
|
|
2
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
|
|
3
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
|
|
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
|
+
};
|