@aws-sdk/client-bcm-data-exports 3.458.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 (139) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +308 -0
  3. package/dist-cjs/BCMDataExports.js +35 -0
  4. package/dist-cjs/BCMDataExportsClient.js +43 -0
  5. package/dist-cjs/commands/CreateExportCommand.js +50 -0
  6. package/dist-cjs/commands/DeleteExportCommand.js +50 -0
  7. package/dist-cjs/commands/GetExecutionCommand.js +50 -0
  8. package/dist-cjs/commands/GetExportCommand.js +50 -0
  9. package/dist-cjs/commands/GetTableCommand.js +50 -0
  10. package/dist-cjs/commands/ListExecutionsCommand.js +50 -0
  11. package/dist-cjs/commands/ListExportsCommand.js +50 -0
  12. package/dist-cjs/commands/ListTablesCommand.js +50 -0
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +50 -0
  14. package/dist-cjs/commands/TagResourceCommand.js +50 -0
  15. package/dist-cjs/commands/UntagResourceCommand.js +50 -0
  16. package/dist-cjs/commands/UpdateExportCommand.js +50 -0
  17. package/dist-cjs/commands/index.js +15 -0
  18. package/dist-cjs/endpoint/EndpointParameters.js +11 -0
  19. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  20. package/dist-cjs/endpoint/ruleset.js +7 -0
  21. package/dist-cjs/extensionConfiguration.js +2 -0
  22. package/dist-cjs/index.js +12 -0
  23. package/dist-cjs/models/BCMDataExportsServiceException.js +12 -0
  24. package/dist-cjs/models/index.js +4 -0
  25. package/dist-cjs/models/models_0.js +126 -0
  26. package/dist-cjs/pagination/Interfaces.js +2 -0
  27. package/dist-cjs/pagination/ListExecutionsPaginator.js +29 -0
  28. package/dist-cjs/pagination/ListExportsPaginator.js +29 -0
  29. package/dist-cjs/pagination/ListTablesPaginator.js +29 -0
  30. package/dist-cjs/pagination/index.js +7 -0
  31. package/dist-cjs/protocols/Aws_json1_1.js +775 -0
  32. package/dist-cjs/runtimeConfig.browser.js +39 -0
  33. package/dist-cjs/runtimeConfig.js +50 -0
  34. package/dist-cjs/runtimeConfig.native.js +15 -0
  35. package/dist-cjs/runtimeConfig.shared.js +24 -0
  36. package/dist-cjs/runtimeExtensions.js +22 -0
  37. package/dist-es/BCMDataExports.js +31 -0
  38. package/dist-es/BCMDataExportsClient.js +39 -0
  39. package/dist-es/commands/CreateExportCommand.js +46 -0
  40. package/dist-es/commands/DeleteExportCommand.js +46 -0
  41. package/dist-es/commands/GetExecutionCommand.js +46 -0
  42. package/dist-es/commands/GetExportCommand.js +46 -0
  43. package/dist-es/commands/GetTableCommand.js +46 -0
  44. package/dist-es/commands/ListExecutionsCommand.js +46 -0
  45. package/dist-es/commands/ListExportsCommand.js +46 -0
  46. package/dist-es/commands/ListTablesCommand.js +46 -0
  47. package/dist-es/commands/ListTagsForResourceCommand.js +46 -0
  48. package/dist-es/commands/TagResourceCommand.js +46 -0
  49. package/dist-es/commands/UntagResourceCommand.js +46 -0
  50. package/dist-es/commands/UpdateExportCommand.js +46 -0
  51. package/dist-es/commands/index.js +12 -0
  52. package/dist-es/endpoint/EndpointParameters.js +7 -0
  53. package/dist-es/endpoint/endpointResolver.js +8 -0
  54. package/dist-es/endpoint/ruleset.js +4 -0
  55. package/dist-es/extensionConfiguration.js +1 -0
  56. package/dist-es/index.js +7 -0
  57. package/dist-es/models/BCMDataExportsServiceException.js +8 -0
  58. package/dist-es/models/index.js +1 -0
  59. package/dist-es/models/models_0.js +118 -0
  60. package/dist-es/pagination/Interfaces.js +1 -0
  61. package/dist-es/pagination/ListExecutionsPaginator.js +25 -0
  62. package/dist-es/pagination/ListExportsPaginator.js +25 -0
  63. package/dist-es/pagination/ListTablesPaginator.js +25 -0
  64. package/dist-es/pagination/index.js +4 -0
  65. package/dist-es/protocols/Aws_json1_1.js +748 -0
  66. package/dist-es/runtimeConfig.browser.js +34 -0
  67. package/dist-es/runtimeConfig.js +45 -0
  68. package/dist-es/runtimeConfig.native.js +11 -0
  69. package/dist-es/runtimeConfig.shared.js +20 -0
  70. package/dist-es/runtimeExtensions.js +18 -0
  71. package/dist-types/BCMDataExports.d.ts +101 -0
  72. package/dist-types/BCMDataExportsClient.d.ts +188 -0
  73. package/dist-types/commands/CreateExportCommand.d.ts +138 -0
  74. package/dist-types/commands/DeleteExportCommand.d.ts +87 -0
  75. package/dist-types/commands/GetExecutionCommand.d.ts +124 -0
  76. package/dist-types/commands/GetExportCommand.d.ts +122 -0
  77. package/dist-types/commands/GetTableCommand.d.ts +99 -0
  78. package/dist-types/commands/ListExecutionsCommand.d.ts +101 -0
  79. package/dist-types/commands/ListExportsCommand.d.ts +98 -0
  80. package/dist-types/commands/ListTablesCommand.d.ts +101 -0
  81. package/dist-types/commands/ListTagsForResourceCommand.d.ts +95 -0
  82. package/dist-types/commands/TagResourceCommand.d.ts +91 -0
  83. package/dist-types/commands/UntagResourceCommand.d.ts +88 -0
  84. package/dist-types/commands/UpdateExportCommand.d.ts +117 -0
  85. package/dist-types/commands/index.d.ts +12 -0
  86. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  87. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  88. package/dist-types/endpoint/ruleset.d.ts +2 -0
  89. package/dist-types/extensionConfiguration.d.ts +8 -0
  90. package/dist-types/index.d.ts +22 -0
  91. package/dist-types/models/BCMDataExportsServiceException.d.ts +13 -0
  92. package/dist-types/models/index.d.ts +1 -0
  93. package/dist-types/models/models_0.d.ts +921 -0
  94. package/dist-types/pagination/Interfaces.d.ts +8 -0
  95. package/dist-types/pagination/ListExecutionsPaginator.d.ts +7 -0
  96. package/dist-types/pagination/ListExportsPaginator.d.ts +7 -0
  97. package/dist-types/pagination/ListTablesPaginator.d.ts +7 -0
  98. package/dist-types/pagination/index.d.ts +4 -0
  99. package/dist-types/protocols/Aws_json1_1.d.ts +110 -0
  100. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  101. package/dist-types/runtimeConfig.d.ts +46 -0
  102. package/dist-types/runtimeConfig.native.d.ts +45 -0
  103. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  104. package/dist-types/runtimeExtensions.d.ts +17 -0
  105. package/dist-types/ts3.4/BCMDataExports.d.ts +211 -0
  106. package/dist-types/ts3.4/BCMDataExportsClient.d.ts +191 -0
  107. package/dist-types/ts3.4/commands/CreateExportCommand.d.ts +35 -0
  108. package/dist-types/ts3.4/commands/DeleteExportCommand.d.ts +35 -0
  109. package/dist-types/ts3.4/commands/GetExecutionCommand.d.ts +35 -0
  110. package/dist-types/ts3.4/commands/GetExportCommand.d.ts +35 -0
  111. package/dist-types/ts3.4/commands/GetTableCommand.d.ts +35 -0
  112. package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +38 -0
  113. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +35 -0
  114. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +35 -0
  115. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  116. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  117. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  118. package/dist-types/ts3.4/commands/UpdateExportCommand.d.ts +35 -0
  119. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  120. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +31 -0
  121. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  122. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  123. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  124. package/dist-types/ts3.4/index.d.ts +10 -0
  125. package/dist-types/ts3.4/models/BCMDataExportsServiceException.d.ts +8 -0
  126. package/dist-types/ts3.4/models/index.d.ts +1 -0
  127. package/dist-types/ts3.4/models/models_0.d.ts +277 -0
  128. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  129. package/dist-types/ts3.4/pagination/ListExecutionsPaginator.d.ts +11 -0
  130. package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +11 -0
  131. package/dist-types/ts3.4/pagination/ListTablesPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  133. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +149 -0
  134. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  135. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  136. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  137. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  138. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  139. package/package.json +102 -0
@@ -0,0 +1,46 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class TagResourceCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "BCMDataExportsClient";
25
+ const commandName = "TagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ [SMITHY_CONTEXT_KEY]: {
33
+ service: "AWSBillingAndCostManagementDataExports",
34
+ operation: "TagResource",
35
+ },
36
+ };
37
+ const { requestHandler } = configuration;
38
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
+ }
40
+ serialize(input, context) {
41
+ return se_TagResourceCommand(input, context);
42
+ }
43
+ deserialize(output, context) {
44
+ return de_TagResourceCommand(output, context);
45
+ }
46
+ }
@@ -0,0 +1,46 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UntagResourceCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "BCMDataExportsClient";
25
+ const commandName = "UntagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ [SMITHY_CONTEXT_KEY]: {
33
+ service: "AWSBillingAndCostManagementDataExports",
34
+ operation: "UntagResource",
35
+ },
36
+ };
37
+ const { requestHandler } = configuration;
38
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
+ }
40
+ serialize(input, context) {
41
+ return se_UntagResourceCommand(input, context);
42
+ }
43
+ deserialize(output, context) {
44
+ return de_UntagResourceCommand(output, context);
45
+ }
46
+ }
@@ -0,0 +1,46 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UpdateExportCommand, se_UpdateExportCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UpdateExportCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateExportCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "BCMDataExportsClient";
25
+ const commandName = "UpdateExportCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ [SMITHY_CONTEXT_KEY]: {
33
+ service: "AWSBillingAndCostManagementDataExports",
34
+ operation: "UpdateExport",
35
+ },
36
+ };
37
+ const { requestHandler } = configuration;
38
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
+ }
40
+ serialize(input, context) {
41
+ return se_UpdateExportCommand(input, context);
42
+ }
43
+ deserialize(output, context) {
44
+ return de_UpdateExportCommand(output, context);
45
+ }
46
+ }
@@ -0,0 +1,12 @@
1
+ export * from "./CreateExportCommand";
2
+ export * from "./DeleteExportCommand";
3
+ export * from "./GetExecutionCommand";
4
+ export * from "./GetExportCommand";
5
+ export * from "./GetTableCommand";
6
+ export * from "./ListExecutionsCommand";
7
+ export * from "./ListExportsCommand";
8
+ export * from "./ListTablesCommand";
9
+ export * from "./ListTagsForResourceCommand";
10
+ export * from "./TagResourceCommand";
11
+ export * from "./UntagResourceCommand";
12
+ export * from "./UpdateExportCommand";
@@ -0,0 +1,7 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
5
+ defaultSigningName: "bcm-data-exports",
6
+ };
7
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { ruleSet } from "./ruleset";
3
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
+ return resolveEndpoint(ruleSet, {
5
+ endpointParams: endpointParams,
6
+ logger: context.logger,
7
+ });
8
+ };
@@ -0,0 +1,4 @@
1
+ const r = "argv", s = "ref";
2
+ const a = false, b = true, c = "isSet", d = "booleanEquals", e = "error", f = "endpoint", g = "tree", h = "PartitionResult", i = "getAttr", j = { "required": false, "type": "String" }, k = { [s]: "Endpoint" }, l = {}, m = { [s]: h }, n = { [e]: "FIPS is enabled but this partition does not support FIPS", "type": e }, o = [{ "fn": d, [r]: [{ [s]: "UseFIPS" }, true] }], p = [{ [s]: "Region" }], q = [{ "fn": d, [r]: [{ "fn": i, [r]: [m, "supportsFIPS"] }, true] }];
3
+ const _data = { version: "1.0", parameters: { Region: j, UseFIPS: { required: b, default: a, type: "Boolean" }, Endpoint: j }, rules: [{ conditions: [{ fn: c, [r]: [k] }], rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: e }, { endpoint: { url: k, properties: l, headers: l }, type: f }], type: g }, { conditions: [{ fn: c, [r]: p }], rules: [{ conditions: [{ fn: "aws.partition", [r]: p, assign: h }], rules: [{ conditions: [{ fn: "stringEquals", [r]: [{ fn: i, [r]: [m, "name"] }, "aws"] }], rules: [{ conditions: o, rules: [{ conditions: q, rules: [{ endpoint: { url: "https://bcm-data-exports-fips.{Region}.api.aws", properties: l, headers: l }, type: f }], type: g }, n], type: g }, { endpoint: { url: "https://bcm-data-exports.us-east-1.api.aws", properties: { authSchemes: [{ name: "sigv4", signingName: "bcm-data-exports", signingRegion: "us-east-1" }] }, headers: l }, type: f }], type: g }, { conditions: [{ fn: d, [r]: [b, { fn: i, [r]: [m, "supportsDualStack"] }] }], rules: [{ conditions: o, rules: [{ conditions: q, rules: [{ endpoint: { url: "https://bcm-data-exports-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: f }], type: g }, n], type: g }, { endpoint: { url: "https://bcm-data-exports.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: f }], type: g }, { conditions: o, rules: [{ conditions: q, rules: [{ endpoint: { url: "https://bcm-data-exports-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: f }], type: g }, n], type: g }, { endpoint: { url: "https://bcm-data-exports.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: f }], type: g }], type: g }, { error: "Invalid Configuration: Missing Region", type: e }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from "./BCMDataExportsClient";
2
+ export * from "./BCMDataExports";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models";
6
+ import "@aws-sdk/util-endpoints";
7
+ export { BCMDataExportsServiceException } from "./models/BCMDataExportsServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class BCMDataExportsServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, BCMDataExportsServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,118 @@
1
+ import { BCMDataExportsServiceException as __BaseException } from "./BCMDataExportsServiceException";
2
+ export const CompressionOption = {
3
+ GZIP: "GZIP",
4
+ PARQUET: "PARQUET",
5
+ };
6
+ export const FormatOption = {
7
+ PARQUET: "PARQUET",
8
+ TEXT_OR_CSV: "TEXT_OR_CSV",
9
+ };
10
+ export const S3OutputType = {
11
+ CUSTOM: "CUSTOM",
12
+ };
13
+ export const OverwriteOption = {
14
+ CREATE_NEW_REPORT: "CREATE_NEW_REPORT",
15
+ OVERWRITE_REPORT: "OVERWRITE_REPORT",
16
+ };
17
+ export const FrequencyOption = {
18
+ SYNCHRONOUS: "SYNCHRONOUS",
19
+ };
20
+ export class InternalServerException extends __BaseException {
21
+ constructor(opts) {
22
+ super({
23
+ name: "InternalServerException",
24
+ $fault: "server",
25
+ ...opts,
26
+ });
27
+ this.name = "InternalServerException";
28
+ this.$fault = "server";
29
+ Object.setPrototypeOf(this, InternalServerException.prototype);
30
+ this.Message = opts.Message;
31
+ }
32
+ }
33
+ export class ServiceQuotaExceededException extends __BaseException {
34
+ constructor(opts) {
35
+ super({
36
+ name: "ServiceQuotaExceededException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ this.name = "ServiceQuotaExceededException";
41
+ this.$fault = "client";
42
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
43
+ this.Message = opts.Message;
44
+ this.ResourceId = opts.ResourceId;
45
+ this.ResourceType = opts.ResourceType;
46
+ this.QuotaCode = opts.QuotaCode;
47
+ this.ServiceCode = opts.ServiceCode;
48
+ }
49
+ }
50
+ export class ThrottlingException extends __BaseException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "ThrottlingException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "ThrottlingException";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
60
+ this.Message = opts.Message;
61
+ this.QuotaCode = opts.QuotaCode;
62
+ this.ServiceCode = opts.ServiceCode;
63
+ }
64
+ }
65
+ export const ValidationExceptionReason = {
66
+ CANNOT_PARSE: "cannotParse",
67
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
68
+ OTHER: "other",
69
+ UNKNOWN_OPERATION: "unknownOperation",
70
+ };
71
+ export class ValidationException extends __BaseException {
72
+ constructor(opts) {
73
+ super({
74
+ name: "ValidationException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ this.name = "ValidationException";
79
+ this.$fault = "client";
80
+ Object.setPrototypeOf(this, ValidationException.prototype);
81
+ this.Message = opts.Message;
82
+ this.Reason = opts.Reason;
83
+ this.Fields = opts.Fields;
84
+ }
85
+ }
86
+ export class ResourceNotFoundException extends __BaseException {
87
+ constructor(opts) {
88
+ super({
89
+ name: "ResourceNotFoundException",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ this.name = "ResourceNotFoundException";
94
+ this.$fault = "client";
95
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
96
+ this.Message = opts.Message;
97
+ this.ResourceId = opts.ResourceId;
98
+ this.ResourceType = opts.ResourceType;
99
+ }
100
+ }
101
+ export const ExecutionStatusCode = {
102
+ DELIVERY_FAILURE: "DELIVERY_FAILURE",
103
+ DELIVERY_IN_PROCESS: "DELIVERY_IN_PROCESS",
104
+ DELIVERY_SUCCESS: "DELIVERY_SUCCESS",
105
+ INITIATION_IN_PROCESS: "INITIATION_IN_PROCESS",
106
+ QUERY_FAILURE: "QUERY_FAILURE",
107
+ QUERY_IN_PROCESS: "QUERY_IN_PROCESS",
108
+ QUERY_QUEUED: "QUERY_QUEUED",
109
+ };
110
+ export const ExecutionStatusReason = {
111
+ BILL_OWNER_CHANGED: "BILL_OWNER_CHANGED",
112
+ INSUFFICIENT_PERMISSION: "INSUFFICIENT_PERMISSION",
113
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
114
+ };
115
+ export const ExportStatusCode = {
116
+ HEALTHY: "HEALTHY",
117
+ UNHEALTHY: "UNHEALTHY",
118
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { BCMDataExportsClient } from "../BCMDataExportsClient";
2
+ import { ListExecutionsCommand, } from "../commands/ListExecutionsCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListExecutionsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListExecutions(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof BCMDataExportsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected BCMDataExports | BCMDataExportsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { BCMDataExportsClient } from "../BCMDataExportsClient";
2
+ import { ListExportsCommand } from "../commands/ListExportsCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListExportsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListExports(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof BCMDataExportsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected BCMDataExports | BCMDataExportsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { BCMDataExportsClient } from "../BCMDataExportsClient";
2
+ import { ListTablesCommand } from "../commands/ListTablesCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListTablesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListTables(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof BCMDataExportsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected BCMDataExports | BCMDataExportsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListExecutionsPaginator";
3
+ export * from "./ListExportsPaginator";
4
+ export * from "./ListTablesPaginator";