@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.
Files changed (133) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +292 -2
  3. package/dist-cjs/index.js +1295 -0
  4. package/dist-es/CloudExtensions.js +49 -0
  5. package/dist-es/CloudExtensionsClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/CreateProfileCommand.js +4 -0
  10. package/dist-es/commands/CreateProfileEntryCommand.js +4 -0
  11. package/dist-es/commands/DeleteProfileCommand.js +4 -0
  12. package/dist-es/commands/DeleteProfileEntryCommand.js +4 -0
  13. package/dist-es/commands/GetExtensionCommand.js +4 -0
  14. package/dist-es/commands/GetProfileCommand.js +4 -0
  15. package/dist-es/commands/GetProfileEntryCommand.js +4 -0
  16. package/dist-es/commands/ListExtensionVersionsCommand.js +4 -0
  17. package/dist-es/commands/ListExtensionsCommand.js +4 -0
  18. package/dist-es/commands/ListProfileEntriesCommand.js +4 -0
  19. package/dist-es/commands/ListProfilesCommand.js +4 -0
  20. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  21. package/dist-es/commands/TagResourceCommand.js +4 -0
  22. package/dist-es/commands/UntagResourceCommand.js +4 -0
  23. package/dist-es/commands/UpdateProfileCommand.js +4 -0
  24. package/dist-es/commands/UpdateProfileEntryCommand.js +4 -0
  25. package/dist-es/commands/index.js +16 -0
  26. package/dist-es/endpoint/EndpointParameters.js +11 -0
  27. package/dist-es/endpoint/bdd.js +29 -0
  28. package/dist-es/endpoint/endpointResolver.js +14 -0
  29. package/dist-es/extensionConfiguration.js +1 -0
  30. package/dist-es/index.js +10 -0
  31. package/dist-es/models/CloudExtensionsServiceException.js +9 -0
  32. package/dist-es/models/enums.js +21 -0
  33. package/dist-es/models/errors.js +118 -0
  34. package/dist-es/models/models_0.js +1 -0
  35. package/dist-es/pagination/Interfaces.js +1 -0
  36. package/dist-es/pagination/ListExtensionVersionsPaginator.js +4 -0
  37. package/dist-es/pagination/ListExtensionsPaginator.js +4 -0
  38. package/dist-es/pagination/ListProfileEntriesPaginator.js +4 -0
  39. package/dist-es/pagination/ListProfilesPaginator.js +4 -0
  40. package/dist-es/pagination/index.js +5 -0
  41. package/dist-es/runtimeConfig.browser.js +29 -0
  42. package/dist-es/runtimeConfig.js +44 -0
  43. package/dist-es/runtimeConfig.native.js +9 -0
  44. package/dist-es/runtimeConfig.shared.js +40 -0
  45. package/dist-es/runtimeExtensions.js +9 -0
  46. package/dist-es/schemas/schemas_0.js +686 -0
  47. package/dist-types/CloudExtensions.d.ts +158 -0
  48. package/dist-types/CloudExtensionsClient.d.ts +203 -0
  49. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  50. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  51. package/dist-types/commandBuilder.d.ts +18 -0
  52. package/dist-types/commands/CreateProfileCommand.d.ts +136 -0
  53. package/dist-types/commands/CreateProfileEntryCommand.d.ts +205 -0
  54. package/dist-types/commands/DeleteProfileCommand.d.ts +87 -0
  55. package/dist-types/commands/DeleteProfileEntryCommand.d.ts +88 -0
  56. package/dist-types/commands/GetExtensionCommand.d.ts +248 -0
  57. package/dist-types/commands/GetProfileCommand.d.ts +110 -0
  58. package/dist-types/commands/GetProfileEntryCommand.d.ts +166 -0
  59. package/dist-types/commands/ListExtensionVersionsCommand.d.ts +101 -0
  60. package/dist-types/commands/ListExtensionsCommand.d.ts +96 -0
  61. package/dist-types/commands/ListProfileEntriesCommand.d.ts +107 -0
  62. package/dist-types/commands/ListProfilesCommand.d.ts +95 -0
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  64. package/dist-types/commands/TagResourceCommand.d.ts +87 -0
  65. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  66. package/dist-types/commands/UpdateProfileCommand.d.ts +133 -0
  67. package/dist-types/commands/UpdateProfileEntryCommand.d.ts +198 -0
  68. package/dist-types/commands/index.d.ts +16 -0
  69. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  70. package/dist-types/endpoint/bdd.d.ts +2 -0
  71. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  72. package/dist-types/extensionConfiguration.d.ts +9 -0
  73. package/dist-types/index.d.ts +18 -0
  74. package/dist-types/models/CloudExtensionsServiceException.d.ts +15 -0
  75. package/dist-types/models/enums.d.ts +94 -0
  76. package/dist-types/models/errors.d.ts +154 -0
  77. package/dist-types/models/models_0.d.ts +1972 -0
  78. package/dist-types/pagination/Interfaces.d.ts +8 -0
  79. package/dist-types/pagination/ListExtensionVersionsPaginator.d.ts +7 -0
  80. package/dist-types/pagination/ListExtensionsPaginator.d.ts +7 -0
  81. package/dist-types/pagination/ListProfileEntriesPaginator.d.ts +7 -0
  82. package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
  83. package/dist-types/pagination/index.d.ts +5 -0
  84. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  85. package/dist-types/runtimeConfig.d.ts +58 -0
  86. package/dist-types/runtimeConfig.native.d.ts +56 -0
  87. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  88. package/dist-types/runtimeExtensions.d.ts +17 -0
  89. package/dist-types/schemas/schemas_0.d.ts +97 -0
  90. package/dist-types/ts3.4/CloudExtensions.d.ts +309 -0
  91. package/dist-types/ts3.4/CloudExtensionsClient.d.ts +191 -0
  92. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  93. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  94. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  95. package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +38 -0
  96. package/dist-types/ts3.4/commands/CreateProfileEntryCommand.d.ts +39 -0
  97. package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +38 -0
  98. package/dist-types/ts3.4/commands/DeleteProfileEntryCommand.d.ts +38 -0
  99. package/dist-types/ts3.4/commands/GetExtensionCommand.d.ts +38 -0
  100. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +38 -0
  101. package/dist-types/ts3.4/commands/GetProfileEntryCommand.d.ts +38 -0
  102. package/dist-types/ts3.4/commands/ListExtensionVersionsCommand.d.ts +39 -0
  103. package/dist-types/ts3.4/commands/ListExtensionsCommand.d.ts +38 -0
  104. package/dist-types/ts3.4/commands/ListProfileEntriesCommand.d.ts +39 -0
  105. package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +38 -0
  106. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  107. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  108. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  109. package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +38 -0
  110. package/dist-types/ts3.4/commands/UpdateProfileEntryCommand.d.ts +39 -0
  111. package/dist-types/ts3.4/commands/index.d.ts +16 -0
  112. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  113. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  114. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  115. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  116. package/dist-types/ts3.4/index.d.ts +13 -0
  117. package/dist-types/ts3.4/models/CloudExtensionsServiceException.d.ts +10 -0
  118. package/dist-types/ts3.4/models/enums.d.ts +27 -0
  119. package/dist-types/ts3.4/models/errors.d.ts +61 -0
  120. package/dist-types/ts3.4/models/models_0.d.ts +618 -0
  121. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  122. package/dist-types/ts3.4/pagination/ListExtensionVersionsPaginator.d.ts +11 -0
  123. package/dist-types/ts3.4/pagination/ListExtensionsPaginator.d.ts +11 -0
  124. package/dist-types/ts3.4/pagination/ListProfileEntriesPaginator.d.ts +11 -0
  125. package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
  126. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  127. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  128. package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
  129. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  130. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  131. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  132. package/dist-types/ts3.4/schemas/schemas_0.d.ts +97 -0
  133. package/package.json +67 -4
@@ -0,0 +1,49 @@
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
+ import { CloudExtensionsClient } from "./CloudExtensionsClient";
3
+ import { CreateProfileCommand, } from "./commands/CreateProfileCommand";
4
+ import { CreateProfileEntryCommand, } from "./commands/CreateProfileEntryCommand";
5
+ import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
6
+ import { DeleteProfileEntryCommand, } from "./commands/DeleteProfileEntryCommand";
7
+ import { GetExtensionCommand, } from "./commands/GetExtensionCommand";
8
+ import { GetProfileCommand, } from "./commands/GetProfileCommand";
9
+ import { GetProfileEntryCommand, } from "./commands/GetProfileEntryCommand";
10
+ import { ListExtensionsCommand, } from "./commands/ListExtensionsCommand";
11
+ import { ListExtensionVersionsCommand, } from "./commands/ListExtensionVersionsCommand";
12
+ import { ListProfileEntriesCommand, } from "./commands/ListProfileEntriesCommand";
13
+ import { ListProfilesCommand, } from "./commands/ListProfilesCommand";
14
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
15
+ import { TagResourceCommand, } from "./commands/TagResourceCommand";
16
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
17
+ import { UpdateProfileCommand, } from "./commands/UpdateProfileCommand";
18
+ import { UpdateProfileEntryCommand, } from "./commands/UpdateProfileEntryCommand";
19
+ import { paginateListExtensions } from "./pagination/ListExtensionsPaginator";
20
+ import { paginateListExtensionVersions } from "./pagination/ListExtensionVersionsPaginator";
21
+ import { paginateListProfileEntries } from "./pagination/ListProfileEntriesPaginator";
22
+ import { paginateListProfiles } from "./pagination/ListProfilesPaginator";
23
+ const commands = {
24
+ CreateProfileCommand,
25
+ CreateProfileEntryCommand,
26
+ DeleteProfileCommand,
27
+ DeleteProfileEntryCommand,
28
+ GetExtensionCommand,
29
+ GetProfileCommand,
30
+ GetProfileEntryCommand,
31
+ ListExtensionsCommand,
32
+ ListExtensionVersionsCommand,
33
+ ListProfileEntriesCommand,
34
+ ListProfilesCommand,
35
+ ListTagsForResourceCommand,
36
+ TagResourceCommand,
37
+ UntagResourceCommand,
38
+ UpdateProfileCommand,
39
+ UpdateProfileEntryCommand,
40
+ };
41
+ const paginators = {
42
+ paginateListExtensions,
43
+ paginateListExtensionVersions,
44
+ paginateListProfileEntries,
45
+ paginateListProfiles,
46
+ };
47
+ export class CloudExtensions extends CloudExtensionsClient {
48
+ }
49
+ createAggregatedClient(commands, CloudExtensions, { paginators });
@@ -0,0 +1,47 @@
1
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
2
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
3
+ import { Client as __Client, } from "@smithy/core/client";
4
+ import { resolveRegionConfig } from "@smithy/core/config";
5
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
6
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
7
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
8
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
9
+ import { defaultCloudExtensionsHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
10
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
11
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
13
+ export { __Client };
14
+ export class CloudExtensionsClient extends __Client {
15
+ config;
16
+ constructor(...[configuration]) {
17
+ const _config_0 = __getRuntimeConfig(configuration || {});
18
+ super(_config_0);
19
+ this.initConfig = _config_0;
20
+ const _config_1 = resolveClientEndpointParameters(_config_0);
21
+ const _config_2 = resolveUserAgentConfig(_config_1);
22
+ const _config_3 = resolveRetryConfig(_config_2);
23
+ const _config_4 = resolveRegionConfig(_config_3);
24
+ const _config_5 = resolveHostHeaderConfig(_config_4);
25
+ const _config_6 = resolveEndpointConfig(_config_5);
26
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
+ this.config = _config_8;
29
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
30
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
31
+ this.middlewareStack.use(getRetryPlugin(this.config));
32
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
33
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
34
+ this.middlewareStack.use(getLoggerPlugin(this.config));
35
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
36
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
37
+ httpAuthSchemeParametersProvider: defaultCloudExtensionsHttpAuthSchemeParametersProvider,
38
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
39
+ "aws.auth#sigv4": config.credentials,
40
+ }),
41
+ }));
42
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
43
+ }
44
+ destroy() {
45
+ super.destroy();
46
+ }
47
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,40 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
+ export const defaultCloudExtensionsHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
9
+ };
10
+ };
11
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
+ return {
13
+ schemeId: "aws.auth#sigv4",
14
+ signingProperties: {
15
+ name: "cloudextensions",
16
+ region: authParameters.region,
17
+ },
18
+ propertiesExtractor: (config, context) => ({
19
+ signingProperties: {
20
+ config,
21
+ context,
22
+ },
23
+ }),
24
+ };
25
+ }
26
+ export const defaultCloudExtensionsHttpAuthSchemeProvider = (authParameters) => {
27
+ const options = [];
28
+ switch (authParameters.operation) {
29
+ default: {
30
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
+ }
32
+ }
33
+ return options;
34
+ };
35
+ export const resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
37
+ return Object.assign(config_0, {
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
+ });
40
+ };
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "ControlPlane", "CloudExtensionsClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateProfile$ } from "../schemas/schemas_0";
3
+ export class CreateProfileCommand extends command(_ep0, _mw0, "CreateProfile", CreateProfile$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateProfileEntry$ } from "../schemas/schemas_0";
3
+ export class CreateProfileEntryCommand extends command(_ep0, _mw0, "CreateProfileEntry", CreateProfileEntry$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteProfile$ } from "../schemas/schemas_0";
3
+ export class DeleteProfileCommand extends command(_ep0, _mw0, "DeleteProfile", DeleteProfile$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteProfileEntry$ } from "../schemas/schemas_0";
3
+ export class DeleteProfileEntryCommand extends command(_ep0, _mw0, "DeleteProfileEntry", DeleteProfileEntry$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetExtension$ } from "../schemas/schemas_0";
3
+ export class GetExtensionCommand extends command(_ep0, _mw0, "GetExtension", GetExtension$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetProfile$ } from "../schemas/schemas_0";
3
+ export class GetProfileCommand extends command(_ep0, _mw0, "GetProfile", GetProfile$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetProfileEntry$ } from "../schemas/schemas_0";
3
+ export class GetProfileEntryCommand extends command(_ep0, _mw0, "GetProfileEntry", GetProfileEntry$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListExtensionVersions$ } from "../schemas/schemas_0";
3
+ export class ListExtensionVersionsCommand extends command(_ep0, _mw0, "ListExtensionVersions", ListExtensionVersions$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListExtensions$ } from "../schemas/schemas_0";
3
+ export class ListExtensionsCommand extends command(_ep0, _mw0, "ListExtensions", ListExtensions$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListProfileEntries$ } from "../schemas/schemas_0";
3
+ export class ListProfileEntriesCommand extends command(_ep0, _mw0, "ListProfileEntries", ListProfileEntries$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListProfiles$ } from "../schemas/schemas_0";
3
+ export class ListProfilesCommand extends command(_ep0, _mw0, "ListProfiles", ListProfiles$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListTagsForResource$ } from "../schemas/schemas_0";
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { TagResource$ } from "../schemas/schemas_0";
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UntagResource$ } from "../schemas/schemas_0";
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateProfile$ } from "../schemas/schemas_0";
3
+ export class UpdateProfileCommand extends command(_ep0, _mw0, "UpdateProfile", UpdateProfile$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateProfileEntry$ } from "../schemas/schemas_0";
3
+ export class UpdateProfileEntryCommand extends command(_ep0, _mw0, "UpdateProfileEntry", UpdateProfileEntry$) {
4
+ }
@@ -0,0 +1,16 @@
1
+ export * from "./CreateProfileCommand";
2
+ export * from "./CreateProfileEntryCommand";
3
+ export * from "./DeleteProfileCommand";
4
+ export * from "./DeleteProfileEntryCommand";
5
+ export * from "./GetExtensionCommand";
6
+ export * from "./GetProfileCommand";
7
+ export * from "./GetProfileEntryCommand";
8
+ export * from "./ListExtensionVersionsCommand";
9
+ export * from "./ListExtensionsCommand";
10
+ export * from "./ListProfileEntriesCommand";
11
+ export * from "./ListProfilesCommand";
12
+ export * from "./ListTagsForResourceCommand";
13
+ export * from "./TagResourceCommand";
14
+ export * from "./UntagResourceCommand";
15
+ export * from "./UpdateProfileCommand";
16
+ export * from "./UpdateProfileEntryCommand";
@@ -0,0 +1,11 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
4
+ defaultSigningName: "cloudextensions",
5
+ });
6
+ };
7
+ export const commonParams = {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ };
@@ -0,0 +1,29 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
3
+ const _data = {
4
+ conditions: [
5
+ [a, [b]],
6
+ [a, c],
7
+ ["aws.partition", c, "PartitionResult"],
8
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]]
9
+ ],
10
+ results: [
11
+ [-1],
12
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
13
+ [b, {}],
14
+ ["https://cloudextensions-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
15
+ ["https://cloudextensions.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
16
+ [-1, "Invalid Configuration: Missing Region"]
17
+ ]
18
+ };
19
+ const root = 2;
20
+ const r = 100_000_000;
21
+ const nodes = new Int32Array([
22
+ -1, 1, -1,
23
+ 0, 6, 3,
24
+ 1, 4, r + 5,
25
+ 2, 5, r + 5,
26
+ 3, r + 3, r + 4,
27
+ 3, r + 1, r + 2,
28
+ ]);
29
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/core/client";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
+ import { bdd } from "./bdd";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export * from "./CloudExtensionsClient";
2
+ export * from "./CloudExtensions";
3
+ export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
5
+ export * from "./pagination";
6
+ export * from "./schemas/schemas_0";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
10
+ export { CloudExtensionsServiceException } from "./models/CloudExtensionsServiceException";
@@ -0,0 +1,9 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
+ export { __ServiceException };
3
+ export class CloudExtensionsServiceException extends __ServiceException {
4
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.cloudextensions#CloudExtensionsServiceException";
5
+ constructor(options) {
6
+ super(options);
7
+ Object.setPrototypeOf(this, CloudExtensionsServiceException.prototype);
8
+ }
9
+ }
@@ -0,0 +1,21 @@
1
+ export const AccessModeType = {
2
+ READ_ONLY: "READ_ONLY",
3
+ READ_WRITE: "READ_WRITE",
4
+ };
5
+ export const CreateModeType = {
6
+ PRIVATE: "PRIVATE",
7
+ PUBLIC: "PUBLIC",
8
+ };
9
+ export const FormatType = {
10
+ ARN: "arn",
11
+ FILEPATH: "filepath",
12
+ };
13
+ export const ValidationExceptionReason = {
14
+ CANNOT_PARSE: "CANNOT_PARSE",
15
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
16
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
17
+ };
18
+ export const UpdateStrategy = {
19
+ AUTOMATIC: "AUTOMATIC",
20
+ MANUAL: "MANUAL",
21
+ };
@@ -0,0 +1,118 @@
1
+ import { CloudExtensionsServiceException as __BaseException } from "./CloudExtensionsServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ static shapeId = "com.amazonaws.cloudextensions#AccessDeniedException";
4
+ name = "AccessDeniedException";
5
+ $fault = "client";
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ }
14
+ }
15
+ export class ConflictException extends __BaseException {
16
+ static shapeId = "com.amazonaws.cloudextensions#ConflictException";
17
+ name = "ConflictException";
18
+ $fault = "client";
19
+ conflict;
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConflictException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, ConflictException.prototype);
27
+ this.conflict = opts.conflict;
28
+ }
29
+ }
30
+ export class InternalServerException extends __BaseException {
31
+ static shapeId = "com.amazonaws.cloudextensions#InternalServerException";
32
+ name = "InternalServerException";
33
+ $fault = "server";
34
+ $retryable = {};
35
+ retryAfterSeconds;
36
+ constructor(opts) {
37
+ super({
38
+ name: "InternalServerException",
39
+ $fault: "server",
40
+ ...opts,
41
+ });
42
+ Object.setPrototypeOf(this, InternalServerException.prototype);
43
+ this.retryAfterSeconds = opts.retryAfterSeconds;
44
+ }
45
+ }
46
+ export class ResourceNotFoundException extends __BaseException {
47
+ static shapeId = "com.amazonaws.cloudextensions#ResourceNotFoundException";
48
+ name = "ResourceNotFoundException";
49
+ $fault = "client";
50
+ resourceType;
51
+ identifier;
52
+ constructor(opts) {
53
+ super({
54
+ name: "ResourceNotFoundException",
55
+ $fault: "client",
56
+ ...opts,
57
+ });
58
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
59
+ this.resourceType = opts.resourceType;
60
+ this.identifier = opts.identifier;
61
+ }
62
+ }
63
+ export class ThrottlingException extends __BaseException {
64
+ static shapeId = "com.amazonaws.cloudextensions#ThrottlingException";
65
+ name = "ThrottlingException";
66
+ $fault = "client";
67
+ $retryable = {
68
+ throttling: true,
69
+ };
70
+ retryAfterSeconds;
71
+ constructor(opts) {
72
+ super({
73
+ name: "ThrottlingException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
78
+ this.retryAfterSeconds = opts.retryAfterSeconds;
79
+ }
80
+ }
81
+ export class ValidationException extends __BaseException {
82
+ static shapeId = "com.amazonaws.cloudextensions#ValidationException";
83
+ name = "ValidationException";
84
+ $fault = "client";
85
+ reason;
86
+ errors;
87
+ constructor(opts) {
88
+ super({
89
+ name: "ValidationException",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ Object.setPrototypeOf(this, ValidationException.prototype);
94
+ this.reason = opts.reason;
95
+ this.errors = opts.errors;
96
+ }
97
+ }
98
+ export class ServiceQuotaExceededException extends __BaseException {
99
+ static shapeId = "com.amazonaws.cloudextensions#ServiceQuotaExceededException";
100
+ name = "ServiceQuotaExceededException";
101
+ $fault = "client";
102
+ resourceType;
103
+ resourceId;
104
+ serviceCode;
105
+ quotaCode;
106
+ constructor(opts) {
107
+ super({
108
+ name: "ServiceQuotaExceededException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
113
+ this.resourceType = opts.resourceType;
114
+ this.resourceId = opts.resourceId;
115
+ this.serviceCode = opts.serviceCode;
116
+ this.quotaCode = opts.quotaCode;
117
+ }
118
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { CloudExtensionsClient } from "../CloudExtensionsClient";
3
+ import { ListExtensionVersionsCommand, } from "../commands/ListExtensionVersionsCommand";
4
+ export const paginateListExtensionVersions = createPaginator(CloudExtensionsClient, ListExtensionVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { CloudExtensionsClient } from "../CloudExtensionsClient";
3
+ import { ListExtensionsCommand, } from "../commands/ListExtensionsCommand";
4
+ export const paginateListExtensions = createPaginator(CloudExtensionsClient, ListExtensionsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { CloudExtensionsClient } from "../CloudExtensionsClient";
3
+ import { ListProfileEntriesCommand, } from "../commands/ListProfileEntriesCommand";
4
+ export const paginateListProfileEntries = createPaginator(CloudExtensionsClient, ListProfileEntriesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { CloudExtensionsClient } from "../CloudExtensionsClient";
3
+ import { ListProfilesCommand, } from "../commands/ListProfilesCommand";
4
+ export const paginateListProfiles = createPaginator(CloudExtensionsClient, ListProfilesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,5 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListExtensionsPaginator";
3
+ export * from "./ListExtensionVersionsPaginator";
4
+ export * from "./ListProfileEntriesPaginator";
5
+ export * from "./ListProfilesPaginator";
@@ -0,0 +1,29 @@
1
+ import packageInfo from "../package.json";
2
+ import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
3
+ import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
5
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
6
+ import { calculateBodyLength } from "@smithy/core/serde";
7
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
8
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
9
+ export const getRuntimeConfig = (config) => {
10
+ const defaultsMode = resolveDefaultsModeConfig(config);
11
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
12
+ const clientSharedValues = getSharedRuntimeConfig(config);
13
+ return {
14
+ ...clientSharedValues,
15
+ ...config,
16
+ runtime: "browser",
17
+ defaultsMode,
18
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
19
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
20
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
21
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
22
+ region: config?.region ?? invalidProvider("Region is missing"),
23
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
24
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
25
+ streamCollector: config?.streamCollector ?? streamCollector,
26
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
27
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
28
+ };
29
+ };
@@ -0,0 +1,44 @@
1
+ import packageInfo from "../package.json";
2
+ import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
3
+ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
+ import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
+ export const getRuntimeConfig = (config) => {
12
+ emitWarningIfUnsupportedVersion(process.version);
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ awsCheckVersion(process.version);
17
+ const loaderConfig = {
18
+ profile: config?.profile,
19
+ logger: clientSharedValues.logger,
20
+ };
21
+ return {
22
+ ...clientSharedValues,
23
+ ...config,
24
+ runtime: "node",
25
+ defaultsMode,
26
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
30
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
32
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
33
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
+ retryMode: config?.retryMode ??
35
+ loadNodeConfig({
36
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
37
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
+ }, config),
39
+ streamCollector: config?.streamCollector ?? streamCollector,
40
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
43
+ };
44
+ };