@aws-sdk/client-pricing-plan-manager 3.1099.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 (103) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +244 -0
  3. package/dist-cjs/index.js +729 -0
  4. package/dist-es/PricingPlanManager.js +29 -0
  5. package/dist-es/PricingPlanManagerClient.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/ApprovePaidSubscriptionCommand.js +4 -0
  10. package/dist-es/commands/AssociateResourcesToSubscriptionCommand.js +4 -0
  11. package/dist-es/commands/CancelSubscriptionChangeCommand.js +4 -0
  12. package/dist-es/commands/CancelSubscriptionCommand.js +4 -0
  13. package/dist-es/commands/CreateSubscriptionCommand.js +4 -0
  14. package/dist-es/commands/DisassociateResourcesFromSubscriptionCommand.js +4 -0
  15. package/dist-es/commands/GetSubscriptionCommand.js +4 -0
  16. package/dist-es/commands/ListSubscriptionsCommand.js +4 -0
  17. package/dist-es/commands/UpdateSubscriptionCommand.js +4 -0
  18. package/dist-es/commands/index.js +9 -0
  19. package/dist-es/endpoint/EndpointParameters.js +9 -0
  20. package/dist-es/endpoint/bdd.js +19 -0
  21. package/dist-es/endpoint/endpointResolver.js +14 -0
  22. package/dist-es/extensionConfiguration.js +1 -0
  23. package/dist-es/index.js +10 -0
  24. package/dist-es/models/PricingPlanManagerServiceException.js +8 -0
  25. package/dist-es/models/enums.js +14 -0
  26. package/dist-es/models/errors.js +91 -0
  27. package/dist-es/models/models_0.js +1 -0
  28. package/dist-es/pagination/Interfaces.js +1 -0
  29. package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +2 -0
  31. package/dist-es/runtimeConfig.browser.js +29 -0
  32. package/dist-es/runtimeConfig.js +43 -0
  33. package/dist-es/runtimeConfig.native.js +9 -0
  34. package/dist-es/runtimeConfig.shared.js +40 -0
  35. package/dist-es/runtimeExtensions.js +9 -0
  36. package/dist-es/schemas/schemas_0.js +258 -0
  37. package/dist-types/PricingPlanManager.d.ts +81 -0
  38. package/dist-types/PricingPlanManagerClient.d.ts +195 -0
  39. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  40. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  41. package/dist-types/commandBuilder.d.ts +18 -0
  42. package/dist-types/commands/ApprovePaidSubscriptionCommand.d.ts +138 -0
  43. package/dist-types/commands/AssociateResourcesToSubscriptionCommand.d.ts +145 -0
  44. package/dist-types/commands/CancelSubscriptionChangeCommand.d.ts +138 -0
  45. package/dist-types/commands/CancelSubscriptionCommand.d.ts +142 -0
  46. package/dist-types/commands/CreateSubscriptionCommand.d.ts +184 -0
  47. package/dist-types/commands/DisassociateResourcesFromSubscriptionCommand.d.ts +144 -0
  48. package/dist-types/commands/GetSubscriptionCommand.d.ts +132 -0
  49. package/dist-types/commands/ListSubscriptionsCommand.d.ts +135 -0
  50. package/dist-types/commands/UpdateSubscriptionCommand.d.ts +144 -0
  51. package/dist-types/commands/index.d.ts +9 -0
  52. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  53. package/dist-types/endpoint/bdd.d.ts +2 -0
  54. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  55. package/dist-types/extensionConfiguration.d.ts +9 -0
  56. package/dist-types/index.d.ts +18 -0
  57. package/dist-types/models/PricingPlanManagerServiceException.d.ts +14 -0
  58. package/dist-types/models/enums.d.ts +38 -0
  59. package/dist-types/models/errors.d.ts +101 -0
  60. package/dist-types/models/models_0.d.ts +474 -0
  61. package/dist-types/pagination/Interfaces.d.ts +8 -0
  62. package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +7 -0
  63. package/dist-types/pagination/index.d.ts +2 -0
  64. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  65. package/dist-types/runtimeConfig.d.ts +57 -0
  66. package/dist-types/runtimeConfig.native.d.ts +56 -0
  67. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  68. package/dist-types/runtimeExtensions.d.ts +17 -0
  69. package/dist-types/schemas/schemas_0.d.ts +46 -0
  70. package/dist-types/ts3.4/PricingPlanManager.d.ts +172 -0
  71. package/dist-types/ts3.4/PricingPlanManagerClient.d.ts +157 -0
  72. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  73. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  74. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  75. package/dist-types/ts3.4/commands/ApprovePaidSubscriptionCommand.d.ts +39 -0
  76. package/dist-types/ts3.4/commands/AssociateResourcesToSubscriptionCommand.d.ts +42 -0
  77. package/dist-types/ts3.4/commands/CancelSubscriptionChangeCommand.d.ts +39 -0
  78. package/dist-types/ts3.4/commands/CancelSubscriptionCommand.d.ts +39 -0
  79. package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +39 -0
  80. package/dist-types/ts3.4/commands/DisassociateResourcesFromSubscriptionCommand.d.ts +42 -0
  81. package/dist-types/ts3.4/commands/GetSubscriptionCommand.d.ts +38 -0
  82. package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +38 -0
  83. package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +39 -0
  84. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  85. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +39 -0
  86. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  87. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  88. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  89. package/dist-types/ts3.4/index.d.ts +13 -0
  90. package/dist-types/ts3.4/models/PricingPlanManagerServiceException.d.ts +9 -0
  91. package/dist-types/ts3.4/models/enums.d.ts +17 -0
  92. package/dist-types/ts3.4/models/errors.d.ts +40 -0
  93. package/dist-types/ts3.4/models/models_0.d.ts +116 -0
  94. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  95. package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +11 -0
  96. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  97. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
  98. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  99. package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
  100. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  101. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  102. package/dist-types/ts3.4/schemas/schemas_0.d.ts +41 -0
  103. package/package.json +69 -0
@@ -0,0 +1,29 @@
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
+ import { ApprovePaidSubscriptionCommand, } from "./commands/ApprovePaidSubscriptionCommand";
3
+ import { AssociateResourcesToSubscriptionCommand, } from "./commands/AssociateResourcesToSubscriptionCommand";
4
+ import { CancelSubscriptionChangeCommand, } from "./commands/CancelSubscriptionChangeCommand";
5
+ import { CancelSubscriptionCommand, } from "./commands/CancelSubscriptionCommand";
6
+ import { CreateSubscriptionCommand, } from "./commands/CreateSubscriptionCommand";
7
+ import { DisassociateResourcesFromSubscriptionCommand, } from "./commands/DisassociateResourcesFromSubscriptionCommand";
8
+ import { GetSubscriptionCommand, } from "./commands/GetSubscriptionCommand";
9
+ import { ListSubscriptionsCommand, } from "./commands/ListSubscriptionsCommand";
10
+ import { UpdateSubscriptionCommand, } from "./commands/UpdateSubscriptionCommand";
11
+ import { paginateListSubscriptions } from "./pagination/ListSubscriptionsPaginator";
12
+ import { PricingPlanManagerClient } from "./PricingPlanManagerClient";
13
+ const commands = {
14
+ ApprovePaidSubscriptionCommand,
15
+ AssociateResourcesToSubscriptionCommand,
16
+ CancelSubscriptionCommand,
17
+ CancelSubscriptionChangeCommand,
18
+ CreateSubscriptionCommand,
19
+ DisassociateResourcesFromSubscriptionCommand,
20
+ GetSubscriptionCommand,
21
+ ListSubscriptionsCommand,
22
+ UpdateSubscriptionCommand,
23
+ };
24
+ const paginators = {
25
+ paginateListSubscriptions,
26
+ };
27
+ export class PricingPlanManager extends PricingPlanManagerClient {
28
+ }
29
+ createAggregatedClient(commands, PricingPlanManager, { 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 { defaultPricingPlanManagerHttpAuthSchemeParametersProvider, 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 PricingPlanManagerClient 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: defaultPricingPlanManagerHttpAuthSchemeParametersProvider,
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 defaultPricingPlanManagerHttpAuthSchemeParametersProvider = 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: "pricingplanmanager",
16
+ region: authParameters.region,
17
+ },
18
+ propertiesExtractor: (config, context) => ({
19
+ signingProperties: {
20
+ config,
21
+ context,
22
+ },
23
+ }),
24
+ };
25
+ }
26
+ export const defaultPricingPlanManagerHttpAuthSchemeProvider = (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, "AWSPricingPlanManager", "PricingPlanManagerClient", 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 { ApprovePaidSubscription$ } from "../schemas/schemas_0";
3
+ export class ApprovePaidSubscriptionCommand extends command(_ep0, _mw0, "ApprovePaidSubscription", ApprovePaidSubscription$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { AssociateResourcesToSubscription$ } from "../schemas/schemas_0";
3
+ export class AssociateResourcesToSubscriptionCommand extends command(_ep0, _mw0, "AssociateResourcesToSubscription", AssociateResourcesToSubscription$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CancelSubscriptionChange$ } from "../schemas/schemas_0";
3
+ export class CancelSubscriptionChangeCommand extends command(_ep0, _mw0, "CancelSubscriptionChange", CancelSubscriptionChange$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CancelSubscription$ } from "../schemas/schemas_0";
3
+ export class CancelSubscriptionCommand extends command(_ep0, _mw0, "CancelSubscription", CancelSubscription$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateSubscription$ } from "../schemas/schemas_0";
3
+ export class CreateSubscriptionCommand extends command(_ep0, _mw0, "CreateSubscription", CreateSubscription$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DisassociateResourcesFromSubscription$ } from "../schemas/schemas_0";
3
+ export class DisassociateResourcesFromSubscriptionCommand extends command(_ep0, _mw0, "DisassociateResourcesFromSubscription", DisassociateResourcesFromSubscription$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetSubscription$ } from "../schemas/schemas_0";
3
+ export class GetSubscriptionCommand extends command(_ep0, _mw0, "GetSubscription", GetSubscription$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListSubscriptions$ } from "../schemas/schemas_0";
3
+ export class ListSubscriptionsCommand extends command(_ep0, _mw0, "ListSubscriptions", ListSubscriptions$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateSubscription$ } from "../schemas/schemas_0";
3
+ export class UpdateSubscriptionCommand extends command(_ep0, _mw0, "UpdateSubscription", UpdateSubscription$) {
4
+ }
@@ -0,0 +1,9 @@
1
+ export * from "./ApprovePaidSubscriptionCommand";
2
+ export * from "./AssociateResourcesToSubscriptionCommand";
3
+ export * from "./CancelSubscriptionChangeCommand";
4
+ export * from "./CancelSubscriptionCommand";
5
+ export * from "./CreateSubscriptionCommand";
6
+ export * from "./DisassociateResourcesFromSubscriptionCommand";
7
+ export * from "./GetSubscriptionCommand";
8
+ export * from "./ListSubscriptionsCommand";
9
+ export * from "./UpdateSubscriptionCommand";
@@ -0,0 +1,9 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ defaultSigningName: "pricingplanmanager",
4
+ });
5
+ };
6
+ export const commonParams = {
7
+ Endpoint: { type: "builtInParams", name: "endpoint" },
8
+ Region: { type: "builtInParams", name: "region" },
9
+ };
@@ -0,0 +1,19 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const a = { "authSchemes": [{ "name": "sigv4", "signingName": "pricingplanmanager", "signingRegion": "us-east-1" }] };
3
+ const _data = {
4
+ conditions: [
5
+ ["isSet", [{ ref: "Endpoint" }]]
6
+ ],
7
+ results: [
8
+ [-1],
9
+ ["{Endpoint}", a],
10
+ ["https://pricingplanmanager.us-east-1.api.aws", a]
11
+ ]
12
+ };
13
+ const root = 2;
14
+ const r = 100_000_000;
15
+ const nodes = new Int32Array([
16
+ -1, 1, -1,
17
+ 0, r + 1, r + 2,
18
+ ]);
19
+ 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"],
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 "./PricingPlanManagerClient";
2
+ export * from "./PricingPlanManager";
3
+ export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
5
+ export * from "./schemas/schemas_0";
6
+ export * from "./pagination";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
10
+ export { PricingPlanManagerServiceException } from "./models/PricingPlanManagerServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
+ export { __ServiceException };
3
+ export class PricingPlanManagerServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, PricingPlanManagerServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1,14 @@
1
+ export const ApprovalMode = {
2
+ IMMEDIATE: "IMMEDIATE",
3
+ MANUAL: "MANUAL",
4
+ };
5
+ export const ScheduledChangeType = {
6
+ CANCELLATION: "CANCELLATION",
7
+ DOWNGRADE: "DOWNGRADE",
8
+ };
9
+ export const Status = {
10
+ ACTIVE: "ACTIVE",
11
+ FAILED: "FAILED",
12
+ PENDING_APPROVAL: "PENDING_APPROVAL",
13
+ SYNC_IN_PROGRESS: "SYNC_IN_PROGRESS",
14
+ };
@@ -0,0 +1,91 @@
1
+ import { PricingPlanManagerServiceException as __BaseException } from "./PricingPlanManagerServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class ConflictException extends __BaseException {
15
+ name = "ConflictException";
16
+ $fault = "client";
17
+ resourceId;
18
+ constructor(opts) {
19
+ super({
20
+ name: "ConflictException",
21
+ $fault: "client",
22
+ ...opts,
23
+ });
24
+ Object.setPrototypeOf(this, ConflictException.prototype);
25
+ this.resourceId = opts.resourceId;
26
+ }
27
+ }
28
+ export class InternalServerException extends __BaseException {
29
+ name = "InternalServerException";
30
+ $fault = "server";
31
+ constructor(opts) {
32
+ super({
33
+ name: "InternalServerException",
34
+ $fault: "server",
35
+ ...opts,
36
+ });
37
+ Object.setPrototypeOf(this, InternalServerException.prototype);
38
+ }
39
+ }
40
+ export class ResourceNotFoundException extends __BaseException {
41
+ name = "ResourceNotFoundException";
42
+ $fault = "client";
43
+ resourceId;
44
+ constructor(opts) {
45
+ super({
46
+ name: "ResourceNotFoundException",
47
+ $fault: "client",
48
+ ...opts,
49
+ });
50
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
51
+ this.resourceId = opts.resourceId;
52
+ }
53
+ }
54
+ export class ThrottlingException extends __BaseException {
55
+ name = "ThrottlingException";
56
+ $fault = "client";
57
+ constructor(opts) {
58
+ super({
59
+ name: "ThrottlingException",
60
+ $fault: "client",
61
+ ...opts,
62
+ });
63
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
64
+ }
65
+ }
66
+ export class ValidationException extends __BaseException {
67
+ name = "ValidationException";
68
+ $fault = "client";
69
+ resourceId;
70
+ constructor(opts) {
71
+ super({
72
+ name: "ValidationException",
73
+ $fault: "client",
74
+ ...opts,
75
+ });
76
+ Object.setPrototypeOf(this, ValidationException.prototype);
77
+ this.resourceId = opts.resourceId;
78
+ }
79
+ }
80
+ export class ServiceQuotaExceededException extends __BaseException {
81
+ name = "ServiceQuotaExceededException";
82
+ $fault = "client";
83
+ constructor(opts) {
84
+ super({
85
+ name: "ServiceQuotaExceededException",
86
+ $fault: "client",
87
+ ...opts,
88
+ });
89
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
90
+ }
91
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListSubscriptionsCommand, } from "../commands/ListSubscriptionsCommand";
3
+ import { PricingPlanManagerClient } from "../PricingPlanManagerClient";
4
+ export const paginateListSubscriptions = createPaginator(PricingPlanManagerClient, ListSubscriptionsCommand, "nextToken", "nextToken", "");
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListSubscriptionsPaginator";
@@ -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,43 @@
1
+ import packageInfo from "../package.json";
2
+ import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, 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
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
33
+ retryMode: config?.retryMode ??
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
+ }, config),
38
+ streamCollector: config?.streamCollector ?? streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
42
+ };
43
+ };
@@ -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 { defaultPricingPlanManagerHttpAuthSchemeProvider } 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: "2025-08-05",
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 ?? defaultPricingPlanManagerHttpAuthSchemeProvider,
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.pricingplanmanager",
30
+ errorTypeRegistries,
31
+ version: "2025-08-05",
32
+ serviceTarget: "AWSPricingPlanManager",
33
+ },
34
+ serviceId: config?.serviceId ?? "Pricing Plan Manager",
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
+ };