@aws-sdk/client-bcm-data-exports 3.899.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +883 -1047
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,1087 +1,923 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
BCMDataExportsClient: () => BCMDataExportsClient,
|
|
26
|
-
BCMDataExportsServiceException: () => BCMDataExportsServiceException,
|
|
27
|
-
CompressionOption: () => CompressionOption,
|
|
28
|
-
CreateExportCommand: () => CreateExportCommand,
|
|
29
|
-
DeleteExportCommand: () => DeleteExportCommand,
|
|
30
|
-
ExecutionStatusCode: () => ExecutionStatusCode,
|
|
31
|
-
ExecutionStatusReason: () => ExecutionStatusReason,
|
|
32
|
-
ExportStatusCode: () => ExportStatusCode,
|
|
33
|
-
FormatOption: () => FormatOption,
|
|
34
|
-
FrequencyOption: () => FrequencyOption,
|
|
35
|
-
GetExecutionCommand: () => GetExecutionCommand,
|
|
36
|
-
GetExportCommand: () => GetExportCommand,
|
|
37
|
-
GetTableCommand: () => GetTableCommand,
|
|
38
|
-
InternalServerException: () => InternalServerException,
|
|
39
|
-
ListExecutionsCommand: () => ListExecutionsCommand,
|
|
40
|
-
ListExportsCommand: () => ListExportsCommand,
|
|
41
|
-
ListTablesCommand: () => ListTablesCommand,
|
|
42
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
43
|
-
OverwriteOption: () => OverwriteOption,
|
|
44
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
45
|
-
S3OutputType: () => S3OutputType,
|
|
46
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
47
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
48
|
-
ThrottlingException: () => ThrottlingException,
|
|
49
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
50
|
-
UpdateExportCommand: () => UpdateExportCommand,
|
|
51
|
-
ValidationException: () => ValidationException,
|
|
52
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
53
|
-
__Client: () => import_smithy_client.Client,
|
|
54
|
-
paginateListExecutions: () => paginateListExecutions,
|
|
55
|
-
paginateListExports: () => paginateListExports,
|
|
56
|
-
paginateListTables: () => paginateListTables
|
|
57
|
-
});
|
|
58
|
-
module.exports = __toCommonJS(index_exports);
|
|
59
|
-
|
|
60
|
-
// src/BCMDataExportsClient.ts
|
|
61
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
62
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
63
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
64
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
65
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
66
|
-
var import_core = require("@smithy/core");
|
|
67
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
68
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
69
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
70
|
-
|
|
71
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
72
|
-
|
|
73
|
-
// src/endpoint/EndpointParameters.ts
|
|
74
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
75
|
-
return Object.assign(options, {
|
|
76
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
77
|
-
defaultSigningName: "bcm-data-exports"
|
|
78
|
-
});
|
|
79
|
-
}, "resolveClientEndpointParameters");
|
|
80
|
-
var commonParams = {
|
|
81
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
82
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
83
|
-
Region: { type: "builtInParams", name: "region" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
23
|
+
defaultSigningName: "bcm-data-exports",
|
|
24
|
+
});
|
|
84
25
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
26
|
+
const commonParams = {
|
|
27
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
28
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
29
|
+
Region: { type: "builtInParams", name: "region" },
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
33
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
34
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
35
|
+
let _credentials = runtimeConfig.credentials;
|
|
36
|
+
return {
|
|
37
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
38
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
39
|
+
if (index === -1) {
|
|
40
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
httpAuthSchemes() {
|
|
47
|
+
return _httpAuthSchemes;
|
|
48
|
+
},
|
|
49
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
50
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
51
|
+
},
|
|
52
|
+
httpAuthSchemeProvider() {
|
|
53
|
+
return _httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
setCredentials(credentials) {
|
|
56
|
+
_credentials = credentials;
|
|
57
|
+
},
|
|
58
|
+
credentials() {
|
|
59
|
+
return _credentials;
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
64
|
+
return {
|
|
65
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
66
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
67
|
+
credentials: config.credentials(),
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
class BCMDataExportsClient extends smithyClient.Client {
|
|
78
|
+
config;
|
|
79
|
+
constructor(...[configuration]) {
|
|
80
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
81
|
+
super(_config_0);
|
|
82
|
+
this.initConfig = _config_0;
|
|
83
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
85
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
86
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
87
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
88
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
89
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
90
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
91
|
+
this.config = _config_8;
|
|
92
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
93
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
99
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultBCMDataExportsHttpAuthSchemeParametersProvider,
|
|
100
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
101
|
+
"aws.auth#sigv4": config.credentials,
|
|
102
|
+
}),
|
|
103
|
+
}));
|
|
104
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
122
105
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
128
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
129
|
-
credentials: config.credentials()
|
|
130
|
-
};
|
|
131
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
132
|
-
|
|
133
|
-
// src/runtimeExtensions.ts
|
|
134
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
135
|
-
const extensionConfiguration = Object.assign(
|
|
136
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
137
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
138
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
139
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
140
|
-
);
|
|
141
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
142
|
-
return Object.assign(
|
|
143
|
-
runtimeConfig,
|
|
144
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
145
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
146
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
147
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
148
|
-
);
|
|
149
|
-
}, "resolveRuntimeExtensions");
|
|
150
|
-
|
|
151
|
-
// src/BCMDataExportsClient.ts
|
|
152
|
-
var BCMDataExportsClient = class extends import_smithy_client.Client {
|
|
153
|
-
static {
|
|
154
|
-
__name(this, "BCMDataExportsClient");
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* The resolved configuration of BCMDataExportsClient class. This is resolved and normalized from the {@link BCMDataExportsClientConfig | constructor configuration interface}.
|
|
158
|
-
*/
|
|
159
|
-
config;
|
|
160
|
-
constructor(...[configuration]) {
|
|
161
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
162
|
-
super(_config_0);
|
|
163
|
-
this.initConfig = _config_0;
|
|
164
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
165
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
166
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
167
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
168
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
169
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
170
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
171
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
172
|
-
this.config = _config_8;
|
|
173
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
174
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
175
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
176
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
177
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
178
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
179
|
-
this.middlewareStack.use(
|
|
180
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
181
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBCMDataExportsHttpAuthSchemeParametersProvider,
|
|
182
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
183
|
-
"aws.auth#sigv4": config.credentials
|
|
184
|
-
}), "identityProviderConfigProvider")
|
|
185
|
-
})
|
|
186
|
-
);
|
|
187
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
191
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
192
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
193
|
-
*/
|
|
194
|
-
destroy() {
|
|
195
|
-
super.destroy();
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
// src/BCMDataExports.ts
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
// src/commands/CreateExportCommand.ts
|
|
203
|
-
|
|
204
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
// src/protocols/Aws_json1_1.ts
|
|
208
|
-
var import_core2 = require("@aws-sdk/core");
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
// src/models/BCMDataExportsServiceException.ts
|
|
106
|
+
destroy() {
|
|
107
|
+
super.destroy();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
213
110
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
*/
|
|
221
|
-
constructor(options) {
|
|
222
|
-
super(options);
|
|
223
|
-
Object.setPrototypeOf(this, _BCMDataExportsServiceException.prototype);
|
|
224
|
-
}
|
|
225
|
-
};
|
|
111
|
+
class BCMDataExportsServiceException extends smithyClient.ServiceException {
|
|
112
|
+
constructor(options) {
|
|
113
|
+
super(options);
|
|
114
|
+
Object.setPrototypeOf(this, BCMDataExportsServiceException.prototype);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
226
117
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
118
|
+
const CompressionOption = {
|
|
119
|
+
GZIP: "GZIP",
|
|
120
|
+
PARQUET: "PARQUET",
|
|
121
|
+
};
|
|
122
|
+
const FormatOption = {
|
|
123
|
+
PARQUET: "PARQUET",
|
|
124
|
+
TEXT_OR_CSV: "TEXT_OR_CSV",
|
|
125
|
+
};
|
|
126
|
+
const S3OutputType = {
|
|
127
|
+
CUSTOM: "CUSTOM",
|
|
128
|
+
};
|
|
129
|
+
const OverwriteOption = {
|
|
130
|
+
CREATE_NEW_REPORT: "CREATE_NEW_REPORT",
|
|
131
|
+
OVERWRITE_REPORT: "OVERWRITE_REPORT",
|
|
132
|
+
};
|
|
133
|
+
const FrequencyOption = {
|
|
134
|
+
SYNCHRONOUS: "SYNCHRONOUS",
|
|
135
|
+
};
|
|
136
|
+
class InternalServerException extends BCMDataExportsServiceException {
|
|
137
|
+
name = "InternalServerException";
|
|
138
|
+
$fault = "server";
|
|
139
|
+
Message;
|
|
140
|
+
constructor(opts) {
|
|
141
|
+
super({
|
|
142
|
+
name: "InternalServerException",
|
|
143
|
+
$fault: "server",
|
|
144
|
+
...opts,
|
|
145
|
+
});
|
|
146
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
147
|
+
this.Message = opts.Message;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
class ServiceQuotaExceededException extends BCMDataExportsServiceException {
|
|
151
|
+
name = "ServiceQuotaExceededException";
|
|
152
|
+
$fault = "client";
|
|
153
|
+
Message;
|
|
154
|
+
ResourceId;
|
|
155
|
+
ResourceType;
|
|
156
|
+
QuotaCode;
|
|
157
|
+
ServiceCode;
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "ServiceQuotaExceededException",
|
|
161
|
+
$fault: "client",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
165
|
+
this.Message = opts.Message;
|
|
166
|
+
this.ResourceId = opts.ResourceId;
|
|
167
|
+
this.ResourceType = opts.ResourceType;
|
|
168
|
+
this.QuotaCode = opts.QuotaCode;
|
|
169
|
+
this.ServiceCode = opts.ServiceCode;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
class ThrottlingException extends BCMDataExportsServiceException {
|
|
173
|
+
name = "ThrottlingException";
|
|
174
|
+
$fault = "client";
|
|
175
|
+
Message;
|
|
176
|
+
QuotaCode;
|
|
177
|
+
ServiceCode;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "ThrottlingException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
185
|
+
this.Message = opts.Message;
|
|
186
|
+
this.QuotaCode = opts.QuotaCode;
|
|
187
|
+
this.ServiceCode = opts.ServiceCode;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
const ValidationExceptionReason = {
|
|
191
|
+
CANNOT_PARSE: "cannotParse",
|
|
192
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
193
|
+
OTHER: "other",
|
|
194
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
195
|
+
};
|
|
196
|
+
class ValidationException extends BCMDataExportsServiceException {
|
|
197
|
+
name = "ValidationException";
|
|
198
|
+
$fault = "client";
|
|
199
|
+
Message;
|
|
200
|
+
Reason;
|
|
201
|
+
Fields;
|
|
202
|
+
constructor(opts) {
|
|
203
|
+
super({
|
|
204
|
+
name: "ValidationException",
|
|
205
|
+
$fault: "client",
|
|
206
|
+
...opts,
|
|
207
|
+
});
|
|
208
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
209
|
+
this.Message = opts.Message;
|
|
210
|
+
this.Reason = opts.Reason;
|
|
211
|
+
this.Fields = opts.Fields;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
class ResourceNotFoundException extends BCMDataExportsServiceException {
|
|
215
|
+
name = "ResourceNotFoundException";
|
|
216
|
+
$fault = "client";
|
|
217
|
+
Message;
|
|
218
|
+
ResourceId;
|
|
219
|
+
ResourceType;
|
|
220
|
+
constructor(opts) {
|
|
221
|
+
super({
|
|
222
|
+
name: "ResourceNotFoundException",
|
|
223
|
+
$fault: "client",
|
|
224
|
+
...opts,
|
|
225
|
+
});
|
|
226
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
227
|
+
this.Message = opts.Message;
|
|
228
|
+
this.ResourceId = opts.ResourceId;
|
|
229
|
+
this.ResourceType = opts.ResourceType;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
const ExecutionStatusCode = {
|
|
233
|
+
DELIVERY_FAILURE: "DELIVERY_FAILURE",
|
|
234
|
+
DELIVERY_IN_PROCESS: "DELIVERY_IN_PROCESS",
|
|
235
|
+
DELIVERY_SUCCESS: "DELIVERY_SUCCESS",
|
|
236
|
+
INITIATION_IN_PROCESS: "INITIATION_IN_PROCESS",
|
|
237
|
+
QUERY_FAILURE: "QUERY_FAILURE",
|
|
238
|
+
QUERY_IN_PROCESS: "QUERY_IN_PROCESS",
|
|
239
|
+
QUERY_QUEUED: "QUERY_QUEUED",
|
|
240
|
+
};
|
|
241
|
+
const ExecutionStatusReason = {
|
|
242
|
+
BILL_OWNER_CHANGED: "BILL_OWNER_CHANGED",
|
|
243
|
+
INSUFFICIENT_PERMISSION: "INSUFFICIENT_PERMISSION",
|
|
244
|
+
INTERNAL_FAILURE: "INTERNAL_FAILURE",
|
|
245
|
+
};
|
|
246
|
+
const ExportStatusCode = {
|
|
247
|
+
HEALTHY: "HEALTHY",
|
|
248
|
+
UNHEALTHY: "UNHEALTHY",
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
const se_CreateExportCommand = async (input, context) => {
|
|
252
|
+
const headers = sharedHeaders("CreateExport");
|
|
253
|
+
let body;
|
|
254
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
255
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
|
+
};
|
|
257
|
+
const se_DeleteExportCommand = async (input, context) => {
|
|
258
|
+
const headers = sharedHeaders("DeleteExport");
|
|
259
|
+
let body;
|
|
260
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
261
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
|
+
};
|
|
263
|
+
const se_GetExecutionCommand = async (input, context) => {
|
|
264
|
+
const headers = sharedHeaders("GetExecution");
|
|
265
|
+
let body;
|
|
266
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
267
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
+
};
|
|
269
|
+
const se_GetExportCommand = async (input, context) => {
|
|
270
|
+
const headers = sharedHeaders("GetExport");
|
|
271
|
+
let body;
|
|
272
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
273
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
+
};
|
|
275
|
+
const se_GetTableCommand = async (input, context) => {
|
|
276
|
+
const headers = sharedHeaders("GetTable");
|
|
277
|
+
let body;
|
|
278
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
279
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
|
+
};
|
|
281
|
+
const se_ListExecutionsCommand = async (input, context) => {
|
|
282
|
+
const headers = sharedHeaders("ListExecutions");
|
|
283
|
+
let body;
|
|
284
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
285
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
|
+
};
|
|
287
|
+
const se_ListExportsCommand = async (input, context) => {
|
|
288
|
+
const headers = sharedHeaders("ListExports");
|
|
289
|
+
let body;
|
|
290
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
291
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
|
+
};
|
|
293
|
+
const se_ListTablesCommand = async (input, context) => {
|
|
294
|
+
const headers = sharedHeaders("ListTables");
|
|
295
|
+
let body;
|
|
296
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
297
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
|
+
};
|
|
299
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
300
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
301
|
+
let body;
|
|
302
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
303
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
304
|
+
};
|
|
305
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
306
|
+
const headers = sharedHeaders("TagResource");
|
|
307
|
+
let body;
|
|
308
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
309
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
+
};
|
|
311
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
312
|
+
const headers = sharedHeaders("UntagResource");
|
|
313
|
+
let body;
|
|
314
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
315
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
+
};
|
|
317
|
+
const se_UpdateExportCommand = async (input, context) => {
|
|
318
|
+
const headers = sharedHeaders("UpdateExport");
|
|
319
|
+
let body;
|
|
320
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
321
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
322
|
+
};
|
|
323
|
+
const de_CreateExportCommand = async (output, context) => {
|
|
324
|
+
if (output.statusCode >= 300) {
|
|
325
|
+
return de_CommandError(output, context);
|
|
326
|
+
}
|
|
327
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
328
|
+
let contents = {};
|
|
329
|
+
contents = smithyClient._json(data);
|
|
330
|
+
const response = {
|
|
331
|
+
$metadata: deserializeMetadata(output),
|
|
332
|
+
...contents,
|
|
333
|
+
};
|
|
334
|
+
return response;
|
|
335
|
+
};
|
|
336
|
+
const de_DeleteExportCommand = async (output, context) => {
|
|
337
|
+
if (output.statusCode >= 300) {
|
|
338
|
+
return de_CommandError(output, context);
|
|
339
|
+
}
|
|
340
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
341
|
+
let contents = {};
|
|
342
|
+
contents = smithyClient._json(data);
|
|
343
|
+
const response = {
|
|
344
|
+
$metadata: deserializeMetadata(output),
|
|
345
|
+
...contents,
|
|
346
|
+
};
|
|
347
|
+
return response;
|
|
348
|
+
};
|
|
349
|
+
const de_GetExecutionCommand = async (output, context) => {
|
|
350
|
+
if (output.statusCode >= 300) {
|
|
351
|
+
return de_CommandError(output, context);
|
|
352
|
+
}
|
|
353
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
354
|
+
let contents = {};
|
|
355
|
+
contents = de_GetExecutionResponse(data);
|
|
356
|
+
const response = {
|
|
357
|
+
$metadata: deserializeMetadata(output),
|
|
358
|
+
...contents,
|
|
359
|
+
};
|
|
360
|
+
return response;
|
|
361
|
+
};
|
|
362
|
+
const de_GetExportCommand = async (output, context) => {
|
|
363
|
+
if (output.statusCode >= 300) {
|
|
364
|
+
return de_CommandError(output, context);
|
|
365
|
+
}
|
|
366
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
367
|
+
let contents = {};
|
|
368
|
+
contents = de_GetExportResponse(data);
|
|
369
|
+
const response = {
|
|
370
|
+
$metadata: deserializeMetadata(output),
|
|
371
|
+
...contents,
|
|
372
|
+
};
|
|
373
|
+
return response;
|
|
374
|
+
};
|
|
375
|
+
const de_GetTableCommand = async (output, context) => {
|
|
376
|
+
if (output.statusCode >= 300) {
|
|
377
|
+
return de_CommandError(output, context);
|
|
378
|
+
}
|
|
379
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
380
|
+
let contents = {};
|
|
381
|
+
contents = smithyClient._json(data);
|
|
382
|
+
const response = {
|
|
383
|
+
$metadata: deserializeMetadata(output),
|
|
384
|
+
...contents,
|
|
385
|
+
};
|
|
386
|
+
return response;
|
|
387
|
+
};
|
|
388
|
+
const de_ListExecutionsCommand = async (output, context) => {
|
|
389
|
+
if (output.statusCode >= 300) {
|
|
390
|
+
return de_CommandError(output, context);
|
|
391
|
+
}
|
|
392
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
393
|
+
let contents = {};
|
|
394
|
+
contents = de_ListExecutionsResponse(data);
|
|
395
|
+
const response = {
|
|
396
|
+
$metadata: deserializeMetadata(output),
|
|
397
|
+
...contents,
|
|
398
|
+
};
|
|
399
|
+
return response;
|
|
400
|
+
};
|
|
401
|
+
const de_ListExportsCommand = async (output, context) => {
|
|
402
|
+
if (output.statusCode >= 300) {
|
|
403
|
+
return de_CommandError(output, context);
|
|
404
|
+
}
|
|
405
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
406
|
+
let contents = {};
|
|
407
|
+
contents = de_ListExportsResponse(data);
|
|
408
|
+
const response = {
|
|
409
|
+
$metadata: deserializeMetadata(output),
|
|
410
|
+
...contents,
|
|
411
|
+
};
|
|
412
|
+
return response;
|
|
413
|
+
};
|
|
414
|
+
const de_ListTablesCommand = async (output, context) => {
|
|
415
|
+
if (output.statusCode >= 300) {
|
|
416
|
+
return de_CommandError(output, context);
|
|
417
|
+
}
|
|
418
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
419
|
+
let contents = {};
|
|
420
|
+
contents = smithyClient._json(data);
|
|
421
|
+
const response = {
|
|
422
|
+
$metadata: deserializeMetadata(output),
|
|
423
|
+
...contents,
|
|
424
|
+
};
|
|
425
|
+
return response;
|
|
426
|
+
};
|
|
427
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
428
|
+
if (output.statusCode >= 300) {
|
|
429
|
+
return de_CommandError(output, context);
|
|
430
|
+
}
|
|
431
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
432
|
+
let contents = {};
|
|
433
|
+
contents = smithyClient._json(data);
|
|
434
|
+
const response = {
|
|
435
|
+
$metadata: deserializeMetadata(output),
|
|
436
|
+
...contents,
|
|
437
|
+
};
|
|
438
|
+
return response;
|
|
439
|
+
};
|
|
440
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
441
|
+
if (output.statusCode >= 300) {
|
|
442
|
+
return de_CommandError(output, context);
|
|
443
|
+
}
|
|
444
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
445
|
+
let contents = {};
|
|
446
|
+
contents = smithyClient._json(data);
|
|
447
|
+
const response = {
|
|
448
|
+
$metadata: deserializeMetadata(output),
|
|
449
|
+
...contents,
|
|
450
|
+
};
|
|
451
|
+
return response;
|
|
452
|
+
};
|
|
453
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
454
|
+
if (output.statusCode >= 300) {
|
|
455
|
+
return de_CommandError(output, context);
|
|
456
|
+
}
|
|
457
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
458
|
+
let contents = {};
|
|
459
|
+
contents = smithyClient._json(data);
|
|
460
|
+
const response = {
|
|
461
|
+
$metadata: deserializeMetadata(output),
|
|
462
|
+
...contents,
|
|
463
|
+
};
|
|
464
|
+
return response;
|
|
465
|
+
};
|
|
466
|
+
const de_UpdateExportCommand = async (output, context) => {
|
|
467
|
+
if (output.statusCode >= 300) {
|
|
468
|
+
return de_CommandError(output, context);
|
|
469
|
+
}
|
|
470
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
471
|
+
let contents = {};
|
|
472
|
+
contents = smithyClient._json(data);
|
|
473
|
+
const response = {
|
|
474
|
+
$metadata: deserializeMetadata(output),
|
|
475
|
+
...contents,
|
|
476
|
+
};
|
|
477
|
+
return response;
|
|
478
|
+
};
|
|
479
|
+
const de_CommandError = async (output, context) => {
|
|
480
|
+
const parsedOutput = {
|
|
481
|
+
...output,
|
|
482
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
483
|
+
};
|
|
484
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
|
+
switch (errorCode) {
|
|
486
|
+
case "InternalServerException":
|
|
487
|
+
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
488
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
489
|
+
case "ServiceQuotaExceededException":
|
|
490
|
+
case "com.amazonaws.bcmdataexports#ServiceQuotaExceededException":
|
|
491
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
492
|
+
case "ThrottlingException":
|
|
493
|
+
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
494
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
495
|
+
case "ValidationException":
|
|
496
|
+
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
497
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
498
|
+
case "ResourceNotFoundException":
|
|
499
|
+
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
500
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
501
|
+
default:
|
|
502
|
+
const parsedBody = parsedOutput.body;
|
|
503
|
+
return throwDefaultError({
|
|
504
|
+
output,
|
|
505
|
+
parsedBody,
|
|
506
|
+
errorCode,
|
|
507
|
+
});
|
|
508
|
+
}
|
|
242
509
|
};
|
|
243
|
-
|
|
244
|
-
|
|
510
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
511
|
+
const body = parsedOutput.body;
|
|
512
|
+
const deserialized = smithyClient._json(body);
|
|
513
|
+
const exception = new InternalServerException({
|
|
514
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
515
|
+
...deserialized,
|
|
516
|
+
});
|
|
517
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
518
|
+
};
|
|
519
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
520
|
+
const body = parsedOutput.body;
|
|
521
|
+
const deserialized = smithyClient._json(body);
|
|
522
|
+
const exception = new ResourceNotFoundException({
|
|
523
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
524
|
+
...deserialized,
|
|
525
|
+
});
|
|
526
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
527
|
+
};
|
|
528
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
529
|
+
const body = parsedOutput.body;
|
|
530
|
+
const deserialized = smithyClient._json(body);
|
|
531
|
+
const exception = new ServiceQuotaExceededException({
|
|
532
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
533
|
+
...deserialized,
|
|
534
|
+
});
|
|
535
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
536
|
+
};
|
|
537
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
538
|
+
const body = parsedOutput.body;
|
|
539
|
+
const deserialized = smithyClient._json(body);
|
|
540
|
+
const exception = new ThrottlingException({
|
|
541
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
542
|
+
...deserialized,
|
|
543
|
+
});
|
|
544
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
545
|
+
};
|
|
546
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
547
|
+
const body = parsedOutput.body;
|
|
548
|
+
const deserialized = smithyClient._json(body);
|
|
549
|
+
const exception = new ValidationException({
|
|
550
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
551
|
+
...deserialized,
|
|
552
|
+
});
|
|
553
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
245
554
|
};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
name = "InternalServerException";
|
|
251
|
-
$fault = "server";
|
|
252
|
-
Message;
|
|
253
|
-
/**
|
|
254
|
-
* @internal
|
|
255
|
-
*/
|
|
256
|
-
constructor(opts) {
|
|
257
|
-
super({
|
|
258
|
-
name: "InternalServerException",
|
|
259
|
-
$fault: "server",
|
|
260
|
-
...opts
|
|
555
|
+
const de_ExecutionReference = (output, context) => {
|
|
556
|
+
return smithyClient.take(output, {
|
|
557
|
+
ExecutionId: smithyClient.expectString,
|
|
558
|
+
ExecutionStatus: (_) => de_ExecutionStatus(_),
|
|
261
559
|
});
|
|
262
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
263
|
-
this.Message = opts.Message;
|
|
264
|
-
}
|
|
265
560
|
};
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
*/
|
|
282
|
-
ResourceType;
|
|
283
|
-
/**
|
|
284
|
-
* <p>The quota code that was exceeded.</p>
|
|
285
|
-
* @public
|
|
286
|
-
*/
|
|
287
|
-
QuotaCode;
|
|
288
|
-
/**
|
|
289
|
-
* <p>The service code that exceeded quota. It will always be
|
|
290
|
-
* “AWSBillingAndCostManagementDataExports”.</p>
|
|
291
|
-
* @public
|
|
292
|
-
*/
|
|
293
|
-
ServiceCode;
|
|
294
|
-
/**
|
|
295
|
-
* @internal
|
|
296
|
-
*/
|
|
297
|
-
constructor(opts) {
|
|
298
|
-
super({
|
|
299
|
-
name: "ServiceQuotaExceededException",
|
|
300
|
-
$fault: "client",
|
|
301
|
-
...opts
|
|
561
|
+
const de_ExecutionReferenceList = (output, context) => {
|
|
562
|
+
const retVal = (output || [])
|
|
563
|
+
.filter((e) => e != null)
|
|
564
|
+
.map((entry) => {
|
|
565
|
+
return de_ExecutionReference(entry);
|
|
566
|
+
});
|
|
567
|
+
return retVal;
|
|
568
|
+
};
|
|
569
|
+
const de_ExecutionStatus = (output, context) => {
|
|
570
|
+
return smithyClient.take(output, {
|
|
571
|
+
CompletedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
572
|
+
CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
573
|
+
LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
574
|
+
StatusCode: smithyClient.expectString,
|
|
575
|
+
StatusReason: smithyClient.expectString,
|
|
302
576
|
});
|
|
303
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
304
|
-
this.Message = opts.Message;
|
|
305
|
-
this.ResourceId = opts.ResourceId;
|
|
306
|
-
this.ResourceType = opts.ResourceType;
|
|
307
|
-
this.QuotaCode = opts.QuotaCode;
|
|
308
|
-
this.ServiceCode = opts.ServiceCode;
|
|
309
|
-
}
|
|
310
577
|
};
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
$fault = "client";
|
|
317
|
-
Message;
|
|
318
|
-
/**
|
|
319
|
-
* <p>The quota code that exceeded the throttling limit.</p>
|
|
320
|
-
* @public
|
|
321
|
-
*/
|
|
322
|
-
QuotaCode;
|
|
323
|
-
/**
|
|
324
|
-
* <p>The service code that exceeded the throttling limit. It will always be
|
|
325
|
-
* “AWSBillingAndCostManagementDataExports”.</p>
|
|
326
|
-
* @public
|
|
327
|
-
*/
|
|
328
|
-
ServiceCode;
|
|
329
|
-
/**
|
|
330
|
-
* @internal
|
|
331
|
-
*/
|
|
332
|
-
constructor(opts) {
|
|
333
|
-
super({
|
|
334
|
-
name: "ThrottlingException",
|
|
335
|
-
$fault: "client",
|
|
336
|
-
...opts
|
|
578
|
+
const de_ExportReference = (output, context) => {
|
|
579
|
+
return smithyClient.take(output, {
|
|
580
|
+
ExportArn: smithyClient.expectString,
|
|
581
|
+
ExportName: smithyClient.expectString,
|
|
582
|
+
ExportStatus: (_) => de_ExportStatus(_),
|
|
337
583
|
});
|
|
338
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
339
|
-
this.Message = opts.Message;
|
|
340
|
-
this.QuotaCode = opts.QuotaCode;
|
|
341
|
-
this.ServiceCode = opts.ServiceCode;
|
|
342
|
-
}
|
|
343
584
|
};
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
585
|
+
const de_ExportReferenceList = (output, context) => {
|
|
586
|
+
const retVal = (output || [])
|
|
587
|
+
.filter((e) => e != null)
|
|
588
|
+
.map((entry) => {
|
|
589
|
+
return de_ExportReference(entry);
|
|
590
|
+
});
|
|
591
|
+
return retVal;
|
|
592
|
+
};
|
|
593
|
+
const de_ExportStatus = (output, context) => {
|
|
594
|
+
return smithyClient.take(output, {
|
|
595
|
+
CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
596
|
+
LastRefreshedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
597
|
+
LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
598
|
+
StatusCode: smithyClient.expectString,
|
|
599
|
+
StatusReason: smithyClient.expectString,
|
|
600
|
+
});
|
|
349
601
|
};
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
$fault = "client";
|
|
356
|
-
Message;
|
|
357
|
-
/**
|
|
358
|
-
* <p>The reason for the validation exception.</p>
|
|
359
|
-
* @public
|
|
360
|
-
*/
|
|
361
|
-
Reason;
|
|
362
|
-
/**
|
|
363
|
-
* <p>The list of fields that are invalid.</p>
|
|
364
|
-
* @public
|
|
365
|
-
*/
|
|
366
|
-
Fields;
|
|
367
|
-
/**
|
|
368
|
-
* @internal
|
|
369
|
-
*/
|
|
370
|
-
constructor(opts) {
|
|
371
|
-
super({
|
|
372
|
-
name: "ValidationException",
|
|
373
|
-
$fault: "client",
|
|
374
|
-
...opts
|
|
602
|
+
const de_GetExecutionResponse = (output, context) => {
|
|
603
|
+
return smithyClient.take(output, {
|
|
604
|
+
ExecutionId: smithyClient.expectString,
|
|
605
|
+
ExecutionStatus: (_) => de_ExecutionStatus(_),
|
|
606
|
+
Export: smithyClient._json,
|
|
375
607
|
});
|
|
376
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
377
|
-
this.Message = opts.Message;
|
|
378
|
-
this.Reason = opts.Reason;
|
|
379
|
-
this.Fields = opts.Fields;
|
|
380
|
-
}
|
|
381
608
|
};
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
name = "ResourceNotFoundException";
|
|
387
|
-
$fault = "client";
|
|
388
|
-
Message;
|
|
389
|
-
/**
|
|
390
|
-
* <p>The identifier of the resource that was not found.</p>
|
|
391
|
-
* @public
|
|
392
|
-
*/
|
|
393
|
-
ResourceId;
|
|
394
|
-
/**
|
|
395
|
-
* <p>The type of the resource that was not found.</p>
|
|
396
|
-
* @public
|
|
397
|
-
*/
|
|
398
|
-
ResourceType;
|
|
399
|
-
/**
|
|
400
|
-
* @internal
|
|
401
|
-
*/
|
|
402
|
-
constructor(opts) {
|
|
403
|
-
super({
|
|
404
|
-
name: "ResourceNotFoundException",
|
|
405
|
-
$fault: "client",
|
|
406
|
-
...opts
|
|
609
|
+
const de_GetExportResponse = (output, context) => {
|
|
610
|
+
return smithyClient.take(output, {
|
|
611
|
+
Export: smithyClient._json,
|
|
612
|
+
ExportStatus: (_) => de_ExportStatus(_),
|
|
407
613
|
});
|
|
408
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
409
|
-
this.Message = opts.Message;
|
|
410
|
-
this.ResourceId = opts.ResourceId;
|
|
411
|
-
this.ResourceType = opts.ResourceType;
|
|
412
|
-
}
|
|
413
614
|
};
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
QUERY_FAILURE: "QUERY_FAILURE",
|
|
420
|
-
QUERY_IN_PROCESS: "QUERY_IN_PROCESS",
|
|
421
|
-
QUERY_QUEUED: "QUERY_QUEUED"
|
|
615
|
+
const de_ListExecutionsResponse = (output, context) => {
|
|
616
|
+
return smithyClient.take(output, {
|
|
617
|
+
Executions: (_) => de_ExecutionReferenceList(_),
|
|
618
|
+
NextToken: smithyClient.expectString,
|
|
619
|
+
});
|
|
422
620
|
};
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
621
|
+
const de_ListExportsResponse = (output, context) => {
|
|
622
|
+
return smithyClient.take(output, {
|
|
623
|
+
Exports: (_) => de_ExportReferenceList(_),
|
|
624
|
+
NextToken: smithyClient.expectString,
|
|
625
|
+
});
|
|
427
626
|
};
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
627
|
+
const deserializeMetadata = (output) => ({
|
|
628
|
+
httpStatusCode: output.statusCode,
|
|
629
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
630
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
631
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
632
|
+
});
|
|
633
|
+
const throwDefaultError = smithyClient.withBaseException(BCMDataExportsServiceException);
|
|
634
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
635
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
636
|
+
const contents = {
|
|
637
|
+
protocol,
|
|
638
|
+
hostname,
|
|
639
|
+
port,
|
|
640
|
+
method: "POST",
|
|
641
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
642
|
+
headers,
|
|
643
|
+
};
|
|
644
|
+
if (body !== undefined) {
|
|
645
|
+
contents.body = body;
|
|
646
|
+
}
|
|
647
|
+
return new protocolHttp.HttpRequest(contents);
|
|
431
648
|
};
|
|
432
|
-
|
|
433
|
-
// src/protocols/Aws_json1_1.ts
|
|
434
|
-
var se_CreateExportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
435
|
-
const headers = sharedHeaders("CreateExport");
|
|
436
|
-
let body;
|
|
437
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
438
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
439
|
-
}, "se_CreateExportCommand");
|
|
440
|
-
var se_DeleteExportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
441
|
-
const headers = sharedHeaders("DeleteExport");
|
|
442
|
-
let body;
|
|
443
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
444
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
445
|
-
}, "se_DeleteExportCommand");
|
|
446
|
-
var se_GetExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
447
|
-
const headers = sharedHeaders("GetExecution");
|
|
448
|
-
let body;
|
|
449
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
450
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
451
|
-
}, "se_GetExecutionCommand");
|
|
452
|
-
var se_GetExportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
453
|
-
const headers = sharedHeaders("GetExport");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
457
|
-
}, "se_GetExportCommand");
|
|
458
|
-
var se_GetTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
459
|
-
const headers = sharedHeaders("GetTable");
|
|
460
|
-
let body;
|
|
461
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
462
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
463
|
-
}, "se_GetTableCommand");
|
|
464
|
-
var se_ListExecutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
465
|
-
const headers = sharedHeaders("ListExecutions");
|
|
466
|
-
let body;
|
|
467
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
468
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
469
|
-
}, "se_ListExecutionsCommand");
|
|
470
|
-
var se_ListExportsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
471
|
-
const headers = sharedHeaders("ListExports");
|
|
472
|
-
let body;
|
|
473
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
474
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
475
|
-
}, "se_ListExportsCommand");
|
|
476
|
-
var se_ListTablesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
477
|
-
const headers = sharedHeaders("ListTables");
|
|
478
|
-
let body;
|
|
479
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
480
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
481
|
-
}, "se_ListTablesCommand");
|
|
482
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
483
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
484
|
-
let body;
|
|
485
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
486
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
487
|
-
}, "se_ListTagsForResourceCommand");
|
|
488
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
489
|
-
const headers = sharedHeaders("TagResource");
|
|
490
|
-
let body;
|
|
491
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
492
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
493
|
-
}, "se_TagResourceCommand");
|
|
494
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
495
|
-
const headers = sharedHeaders("UntagResource");
|
|
496
|
-
let body;
|
|
497
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
498
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
499
|
-
}, "se_UntagResourceCommand");
|
|
500
|
-
var se_UpdateExportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
501
|
-
const headers = sharedHeaders("UpdateExport");
|
|
502
|
-
let body;
|
|
503
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
504
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
505
|
-
}, "se_UpdateExportCommand");
|
|
506
|
-
var de_CreateExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
507
|
-
if (output.statusCode >= 300) {
|
|
508
|
-
return de_CommandError(output, context);
|
|
509
|
-
}
|
|
510
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
511
|
-
let contents = {};
|
|
512
|
-
contents = (0, import_smithy_client._json)(data);
|
|
513
|
-
const response = {
|
|
514
|
-
$metadata: deserializeMetadata(output),
|
|
515
|
-
...contents
|
|
516
|
-
};
|
|
517
|
-
return response;
|
|
518
|
-
}, "de_CreateExportCommand");
|
|
519
|
-
var de_DeleteExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
520
|
-
if (output.statusCode >= 300) {
|
|
521
|
-
return de_CommandError(output, context);
|
|
522
|
-
}
|
|
523
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
524
|
-
let contents = {};
|
|
525
|
-
contents = (0, import_smithy_client._json)(data);
|
|
526
|
-
const response = {
|
|
527
|
-
$metadata: deserializeMetadata(output),
|
|
528
|
-
...contents
|
|
529
|
-
};
|
|
530
|
-
return response;
|
|
531
|
-
}, "de_DeleteExportCommand");
|
|
532
|
-
var de_GetExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
533
|
-
if (output.statusCode >= 300) {
|
|
534
|
-
return de_CommandError(output, context);
|
|
535
|
-
}
|
|
536
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
537
|
-
let contents = {};
|
|
538
|
-
contents = de_GetExecutionResponse(data, context);
|
|
539
|
-
const response = {
|
|
540
|
-
$metadata: deserializeMetadata(output),
|
|
541
|
-
...contents
|
|
542
|
-
};
|
|
543
|
-
return response;
|
|
544
|
-
}, "de_GetExecutionCommand");
|
|
545
|
-
var de_GetExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
546
|
-
if (output.statusCode >= 300) {
|
|
547
|
-
return de_CommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
550
|
-
let contents = {};
|
|
551
|
-
contents = de_GetExportResponse(data, context);
|
|
552
|
-
const response = {
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
...contents
|
|
555
|
-
};
|
|
556
|
-
return response;
|
|
557
|
-
}, "de_GetExportCommand");
|
|
558
|
-
var de_GetTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
559
|
-
if (output.statusCode >= 300) {
|
|
560
|
-
return de_CommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
563
|
-
let contents = {};
|
|
564
|
-
contents = (0, import_smithy_client._json)(data);
|
|
565
|
-
const response = {
|
|
566
|
-
$metadata: deserializeMetadata(output),
|
|
567
|
-
...contents
|
|
568
|
-
};
|
|
569
|
-
return response;
|
|
570
|
-
}, "de_GetTableCommand");
|
|
571
|
-
var de_ListExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
572
|
-
if (output.statusCode >= 300) {
|
|
573
|
-
return de_CommandError(output, context);
|
|
574
|
-
}
|
|
575
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
576
|
-
let contents = {};
|
|
577
|
-
contents = de_ListExecutionsResponse(data, context);
|
|
578
|
-
const response = {
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
...contents
|
|
581
|
-
};
|
|
582
|
-
return response;
|
|
583
|
-
}, "de_ListExecutionsCommand");
|
|
584
|
-
var de_ListExportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
585
|
-
if (output.statusCode >= 300) {
|
|
586
|
-
return de_CommandError(output, context);
|
|
587
|
-
}
|
|
588
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
589
|
-
let contents = {};
|
|
590
|
-
contents = de_ListExportsResponse(data, context);
|
|
591
|
-
const response = {
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
...contents
|
|
594
|
-
};
|
|
595
|
-
return response;
|
|
596
|
-
}, "de_ListExportsCommand");
|
|
597
|
-
var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
598
|
-
if (output.statusCode >= 300) {
|
|
599
|
-
return de_CommandError(output, context);
|
|
600
|
-
}
|
|
601
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
602
|
-
let contents = {};
|
|
603
|
-
contents = (0, import_smithy_client._json)(data);
|
|
604
|
-
const response = {
|
|
605
|
-
$metadata: deserializeMetadata(output),
|
|
606
|
-
...contents
|
|
607
|
-
};
|
|
608
|
-
return response;
|
|
609
|
-
}, "de_ListTablesCommand");
|
|
610
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
611
|
-
if (output.statusCode >= 300) {
|
|
612
|
-
return de_CommandError(output, context);
|
|
613
|
-
}
|
|
614
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
615
|
-
let contents = {};
|
|
616
|
-
contents = (0, import_smithy_client._json)(data);
|
|
617
|
-
const response = {
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
619
|
-
...contents
|
|
620
|
-
};
|
|
621
|
-
return response;
|
|
622
|
-
}, "de_ListTagsForResourceCommand");
|
|
623
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
624
|
-
if (output.statusCode >= 300) {
|
|
625
|
-
return de_CommandError(output, context);
|
|
626
|
-
}
|
|
627
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
628
|
-
let contents = {};
|
|
629
|
-
contents = (0, import_smithy_client._json)(data);
|
|
630
|
-
const response = {
|
|
631
|
-
$metadata: deserializeMetadata(output),
|
|
632
|
-
...contents
|
|
633
|
-
};
|
|
634
|
-
return response;
|
|
635
|
-
}, "de_TagResourceCommand");
|
|
636
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
637
|
-
if (output.statusCode >= 300) {
|
|
638
|
-
return de_CommandError(output, context);
|
|
639
|
-
}
|
|
640
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
641
|
-
let contents = {};
|
|
642
|
-
contents = (0, import_smithy_client._json)(data);
|
|
643
|
-
const response = {
|
|
644
|
-
$metadata: deserializeMetadata(output),
|
|
645
|
-
...contents
|
|
646
|
-
};
|
|
647
|
-
return response;
|
|
648
|
-
}, "de_UntagResourceCommand");
|
|
649
|
-
var de_UpdateExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
650
|
-
if (output.statusCode >= 300) {
|
|
651
|
-
return de_CommandError(output, context);
|
|
652
|
-
}
|
|
653
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
654
|
-
let contents = {};
|
|
655
|
-
contents = (0, import_smithy_client._json)(data);
|
|
656
|
-
const response = {
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
...contents
|
|
659
|
-
};
|
|
660
|
-
return response;
|
|
661
|
-
}, "de_UpdateExportCommand");
|
|
662
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
663
|
-
const parsedOutput = {
|
|
664
|
-
...output,
|
|
665
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
666
|
-
};
|
|
667
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
668
|
-
switch (errorCode) {
|
|
669
|
-
case "InternalServerException":
|
|
670
|
-
case "com.amazonaws.bcmdataexports#InternalServerException":
|
|
671
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
672
|
-
case "ServiceQuotaExceededException":
|
|
673
|
-
case "com.amazonaws.bcmdataexports#ServiceQuotaExceededException":
|
|
674
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
675
|
-
case "ThrottlingException":
|
|
676
|
-
case "com.amazonaws.bcmdataexports#ThrottlingException":
|
|
677
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ValidationException":
|
|
679
|
-
case "com.amazonaws.bcmdataexports#ValidationException":
|
|
680
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ResourceNotFoundException":
|
|
682
|
-
case "com.amazonaws.bcmdataexports#ResourceNotFoundException":
|
|
683
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
684
|
-
default:
|
|
685
|
-
const parsedBody = parsedOutput.body;
|
|
686
|
-
return throwDefaultError({
|
|
687
|
-
output,
|
|
688
|
-
parsedBody,
|
|
689
|
-
errorCode
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
}, "de_CommandError");
|
|
693
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
694
|
-
const body = parsedOutput.body;
|
|
695
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
696
|
-
const exception = new InternalServerException({
|
|
697
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
698
|
-
...deserialized
|
|
699
|
-
});
|
|
700
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
701
|
-
}, "de_InternalServerExceptionRes");
|
|
702
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
703
|
-
const body = parsedOutput.body;
|
|
704
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
705
|
-
const exception = new ResourceNotFoundException({
|
|
706
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
707
|
-
...deserialized
|
|
708
|
-
});
|
|
709
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
710
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
711
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
712
|
-
const body = parsedOutput.body;
|
|
713
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
714
|
-
const exception = new ServiceQuotaExceededException({
|
|
715
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
716
|
-
...deserialized
|
|
717
|
-
});
|
|
718
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
719
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
720
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
721
|
-
const body = parsedOutput.body;
|
|
722
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
723
|
-
const exception = new ThrottlingException({
|
|
724
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
725
|
-
...deserialized
|
|
726
|
-
});
|
|
727
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
728
|
-
}, "de_ThrottlingExceptionRes");
|
|
729
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
730
|
-
const body = parsedOutput.body;
|
|
731
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
732
|
-
const exception = new ValidationException({
|
|
733
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
734
|
-
...deserialized
|
|
735
|
-
});
|
|
736
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
737
|
-
}, "de_ValidationExceptionRes");
|
|
738
|
-
var de_ExecutionReference = /* @__PURE__ */ __name((output, context) => {
|
|
739
|
-
return (0, import_smithy_client.take)(output, {
|
|
740
|
-
ExecutionId: import_smithy_client.expectString,
|
|
741
|
-
ExecutionStatus: /* @__PURE__ */ __name((_) => de_ExecutionStatus(_, context), "ExecutionStatus")
|
|
742
|
-
});
|
|
743
|
-
}, "de_ExecutionReference");
|
|
744
|
-
var de_ExecutionReferenceList = /* @__PURE__ */ __name((output, context) => {
|
|
745
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
746
|
-
return de_ExecutionReference(entry, context);
|
|
747
|
-
});
|
|
748
|
-
return retVal;
|
|
749
|
-
}, "de_ExecutionReferenceList");
|
|
750
|
-
var de_ExecutionStatus = /* @__PURE__ */ __name((output, context) => {
|
|
751
|
-
return (0, import_smithy_client.take)(output, {
|
|
752
|
-
CompletedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CompletedAt"),
|
|
753
|
-
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedAt"),
|
|
754
|
-
LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastUpdatedAt"),
|
|
755
|
-
StatusCode: import_smithy_client.expectString,
|
|
756
|
-
StatusReason: import_smithy_client.expectString
|
|
757
|
-
});
|
|
758
|
-
}, "de_ExecutionStatus");
|
|
759
|
-
var de_ExportReference = /* @__PURE__ */ __name((output, context) => {
|
|
760
|
-
return (0, import_smithy_client.take)(output, {
|
|
761
|
-
ExportArn: import_smithy_client.expectString,
|
|
762
|
-
ExportName: import_smithy_client.expectString,
|
|
763
|
-
ExportStatus: /* @__PURE__ */ __name((_) => de_ExportStatus(_, context), "ExportStatus")
|
|
764
|
-
});
|
|
765
|
-
}, "de_ExportReference");
|
|
766
|
-
var de_ExportReferenceList = /* @__PURE__ */ __name((output, context) => {
|
|
767
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
768
|
-
return de_ExportReference(entry, context);
|
|
769
|
-
});
|
|
770
|
-
return retVal;
|
|
771
|
-
}, "de_ExportReferenceList");
|
|
772
|
-
var de_ExportStatus = /* @__PURE__ */ __name((output, context) => {
|
|
773
|
-
return (0, import_smithy_client.take)(output, {
|
|
774
|
-
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedAt"),
|
|
775
|
-
LastRefreshedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastRefreshedAt"),
|
|
776
|
-
LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastUpdatedAt"),
|
|
777
|
-
StatusCode: import_smithy_client.expectString,
|
|
778
|
-
StatusReason: import_smithy_client.expectString
|
|
779
|
-
});
|
|
780
|
-
}, "de_ExportStatus");
|
|
781
|
-
var de_GetExecutionResponse = /* @__PURE__ */ __name((output, context) => {
|
|
782
|
-
return (0, import_smithy_client.take)(output, {
|
|
783
|
-
ExecutionId: import_smithy_client.expectString,
|
|
784
|
-
ExecutionStatus: /* @__PURE__ */ __name((_) => de_ExecutionStatus(_, context), "ExecutionStatus"),
|
|
785
|
-
Export: import_smithy_client._json
|
|
786
|
-
});
|
|
787
|
-
}, "de_GetExecutionResponse");
|
|
788
|
-
var de_GetExportResponse = /* @__PURE__ */ __name((output, context) => {
|
|
789
|
-
return (0, import_smithy_client.take)(output, {
|
|
790
|
-
Export: import_smithy_client._json,
|
|
791
|
-
ExportStatus: /* @__PURE__ */ __name((_) => de_ExportStatus(_, context), "ExportStatus")
|
|
792
|
-
});
|
|
793
|
-
}, "de_GetExportResponse");
|
|
794
|
-
var de_ListExecutionsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
795
|
-
return (0, import_smithy_client.take)(output, {
|
|
796
|
-
Executions: /* @__PURE__ */ __name((_) => de_ExecutionReferenceList(_, context), "Executions"),
|
|
797
|
-
NextToken: import_smithy_client.expectString
|
|
798
|
-
});
|
|
799
|
-
}, "de_ListExecutionsResponse");
|
|
800
|
-
var de_ListExportsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
801
|
-
return (0, import_smithy_client.take)(output, {
|
|
802
|
-
Exports: /* @__PURE__ */ __name((_) => de_ExportReferenceList(_, context), "Exports"),
|
|
803
|
-
NextToken: import_smithy_client.expectString
|
|
804
|
-
});
|
|
805
|
-
}, "de_ListExportsResponse");
|
|
806
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
807
|
-
httpStatusCode: output.statusCode,
|
|
808
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
809
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
810
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
811
|
-
}), "deserializeMetadata");
|
|
812
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(BCMDataExportsServiceException);
|
|
813
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
814
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
815
|
-
const contents = {
|
|
816
|
-
protocol,
|
|
817
|
-
hostname,
|
|
818
|
-
port,
|
|
819
|
-
method: "POST",
|
|
820
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
821
|
-
headers
|
|
822
|
-
};
|
|
823
|
-
if (resolvedHostname !== void 0) {
|
|
824
|
-
contents.hostname = resolvedHostname;
|
|
825
|
-
}
|
|
826
|
-
if (body !== void 0) {
|
|
827
|
-
contents.body = body;
|
|
828
|
-
}
|
|
829
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
830
|
-
}, "buildHttpRpcRequest");
|
|
831
649
|
function sharedHeaders(operation) {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
650
|
+
return {
|
|
651
|
+
"content-type": "application/x-amz-json-1.1",
|
|
652
|
+
"x-amz-target": `AWSBillingAndCostManagementDataExports.${operation}`,
|
|
653
|
+
};
|
|
836
654
|
}
|
|
837
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
838
|
-
|
|
839
|
-
// src/commands/CreateExportCommand.ts
|
|
840
|
-
var CreateExportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
841
|
-
return [
|
|
842
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
843
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
844
|
-
];
|
|
845
|
-
}).s("AWSBillingAndCostManagementDataExports", "CreateExport", {}).n("BCMDataExportsClient", "CreateExportCommand").f(void 0, void 0).ser(se_CreateExportCommand).de(de_CreateExportCommand).build() {
|
|
846
|
-
static {
|
|
847
|
-
__name(this, "CreateExportCommand");
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
|
|
851
|
-
// src/commands/DeleteExportCommand.ts
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
var DeleteExportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
856
|
-
return [
|
|
857
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
858
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
859
|
-
];
|
|
860
|
-
}).s("AWSBillingAndCostManagementDataExports", "DeleteExport", {}).n("BCMDataExportsClient", "DeleteExportCommand").f(void 0, void 0).ser(se_DeleteExportCommand).de(de_DeleteExportCommand).build() {
|
|
861
|
-
static {
|
|
862
|
-
__name(this, "DeleteExportCommand");
|
|
863
|
-
}
|
|
864
|
-
};
|
|
865
|
-
|
|
866
|
-
// src/commands/GetExecutionCommand.ts
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
var GetExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
871
|
-
return [
|
|
872
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
873
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
874
|
-
];
|
|
875
|
-
}).s("AWSBillingAndCostManagementDataExports", "GetExecution", {}).n("BCMDataExportsClient", "GetExecutionCommand").f(void 0, void 0).ser(se_GetExecutionCommand).de(de_GetExecutionCommand).build() {
|
|
876
|
-
static {
|
|
877
|
-
__name(this, "GetExecutionCommand");
|
|
878
|
-
}
|
|
879
|
-
};
|
|
880
|
-
|
|
881
|
-
// src/commands/GetExportCommand.ts
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
var GetExportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
886
|
-
return [
|
|
887
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
888
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
889
|
-
];
|
|
890
|
-
}).s("AWSBillingAndCostManagementDataExports", "GetExport", {}).n("BCMDataExportsClient", "GetExportCommand").f(void 0, void 0).ser(se_GetExportCommand).de(de_GetExportCommand).build() {
|
|
891
|
-
static {
|
|
892
|
-
__name(this, "GetExportCommand");
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
// src/commands/GetTableCommand.ts
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
var GetTableCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
901
|
-
return [
|
|
902
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
903
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
904
|
-
];
|
|
905
|
-
}).s("AWSBillingAndCostManagementDataExports", "GetTable", {}).n("BCMDataExportsClient", "GetTableCommand").f(void 0, void 0).ser(se_GetTableCommand).de(de_GetTableCommand).build() {
|
|
906
|
-
static {
|
|
907
|
-
__name(this, "GetTableCommand");
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
// src/commands/ListExecutionsCommand.ts
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
var ListExecutionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
916
|
-
return [
|
|
917
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
918
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
919
|
-
];
|
|
920
|
-
}).s("AWSBillingAndCostManagementDataExports", "ListExecutions", {}).n("BCMDataExportsClient", "ListExecutionsCommand").f(void 0, void 0).ser(se_ListExecutionsCommand).de(de_ListExecutionsCommand).build() {
|
|
921
|
-
static {
|
|
922
|
-
__name(this, "ListExecutionsCommand");
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
|
|
926
|
-
// src/commands/ListExportsCommand.ts
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
var ListExportsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
931
|
-
return [
|
|
932
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
933
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
934
|
-
];
|
|
935
|
-
}).s("AWSBillingAndCostManagementDataExports", "ListExports", {}).n("BCMDataExportsClient", "ListExportsCommand").f(void 0, void 0).ser(se_ListExportsCommand).de(de_ListExportsCommand).build() {
|
|
936
|
-
static {
|
|
937
|
-
__name(this, "ListExportsCommand");
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
655
|
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
961
|
-
return [
|
|
962
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
963
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
964
|
-
];
|
|
965
|
-
}).s("AWSBillingAndCostManagementDataExports", "ListTagsForResource", {}).n("BCMDataExportsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
966
|
-
static {
|
|
967
|
-
__name(this, "ListTagsForResourceCommand");
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
|
|
971
|
-
// src/commands/TagResourceCommand.ts
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
976
|
-
return [
|
|
977
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
978
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
979
|
-
];
|
|
980
|
-
}).s("AWSBillingAndCostManagementDataExports", "TagResource", {}).n("BCMDataExportsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
981
|
-
static {
|
|
982
|
-
__name(this, "TagResourceCommand");
|
|
983
|
-
}
|
|
984
|
-
};
|
|
656
|
+
class CreateExportCommand extends smithyClient.Command
|
|
657
|
+
.classBuilder()
|
|
658
|
+
.ep(commonParams)
|
|
659
|
+
.m(function (Command, cs, config, o) {
|
|
660
|
+
return [
|
|
661
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
662
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
663
|
+
];
|
|
664
|
+
})
|
|
665
|
+
.s("AWSBillingAndCostManagementDataExports", "CreateExport", {})
|
|
666
|
+
.n("BCMDataExportsClient", "CreateExportCommand")
|
|
667
|
+
.f(void 0, void 0)
|
|
668
|
+
.ser(se_CreateExportCommand)
|
|
669
|
+
.de(de_CreateExportCommand)
|
|
670
|
+
.build() {
|
|
671
|
+
}
|
|
985
672
|
|
|
986
|
-
|
|
673
|
+
class DeleteExportCommand extends smithyClient.Command
|
|
674
|
+
.classBuilder()
|
|
675
|
+
.ep(commonParams)
|
|
676
|
+
.m(function (Command, cs, config, o) {
|
|
677
|
+
return [
|
|
678
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
679
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
680
|
+
];
|
|
681
|
+
})
|
|
682
|
+
.s("AWSBillingAndCostManagementDataExports", "DeleteExport", {})
|
|
683
|
+
.n("BCMDataExportsClient", "DeleteExportCommand")
|
|
684
|
+
.f(void 0, void 0)
|
|
685
|
+
.ser(se_DeleteExportCommand)
|
|
686
|
+
.de(de_DeleteExportCommand)
|
|
687
|
+
.build() {
|
|
688
|
+
}
|
|
987
689
|
|
|
690
|
+
class GetExecutionCommand extends smithyClient.Command
|
|
691
|
+
.classBuilder()
|
|
692
|
+
.ep(commonParams)
|
|
693
|
+
.m(function (Command, cs, config, o) {
|
|
694
|
+
return [
|
|
695
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
696
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
697
|
+
];
|
|
698
|
+
})
|
|
699
|
+
.s("AWSBillingAndCostManagementDataExports", "GetExecution", {})
|
|
700
|
+
.n("BCMDataExportsClient", "GetExecutionCommand")
|
|
701
|
+
.f(void 0, void 0)
|
|
702
|
+
.ser(se_GetExecutionCommand)
|
|
703
|
+
.de(de_GetExecutionCommand)
|
|
704
|
+
.build() {
|
|
705
|
+
}
|
|
988
706
|
|
|
707
|
+
class GetExportCommand extends smithyClient.Command
|
|
708
|
+
.classBuilder()
|
|
709
|
+
.ep(commonParams)
|
|
710
|
+
.m(function (Command, cs, config, o) {
|
|
711
|
+
return [
|
|
712
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
713
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
714
|
+
];
|
|
715
|
+
})
|
|
716
|
+
.s("AWSBillingAndCostManagementDataExports", "GetExport", {})
|
|
717
|
+
.n("BCMDataExportsClient", "GetExportCommand")
|
|
718
|
+
.f(void 0, void 0)
|
|
719
|
+
.ser(se_GetExportCommand)
|
|
720
|
+
.de(de_GetExportCommand)
|
|
721
|
+
.build() {
|
|
722
|
+
}
|
|
989
723
|
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
(
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
}
|
|
724
|
+
class GetTableCommand extends smithyClient.Command
|
|
725
|
+
.classBuilder()
|
|
726
|
+
.ep(commonParams)
|
|
727
|
+
.m(function (Command, cs, config, o) {
|
|
728
|
+
return [
|
|
729
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
730
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
731
|
+
];
|
|
732
|
+
})
|
|
733
|
+
.s("AWSBillingAndCostManagementDataExports", "GetTable", {})
|
|
734
|
+
.n("BCMDataExportsClient", "GetTableCommand")
|
|
735
|
+
.f(void 0, void 0)
|
|
736
|
+
.ser(se_GetTableCommand)
|
|
737
|
+
.de(de_GetTableCommand)
|
|
738
|
+
.build() {
|
|
739
|
+
}
|
|
1000
740
|
|
|
1001
|
-
|
|
741
|
+
class ListExecutionsCommand extends smithyClient.Command
|
|
742
|
+
.classBuilder()
|
|
743
|
+
.ep(commonParams)
|
|
744
|
+
.m(function (Command, cs, config, o) {
|
|
745
|
+
return [
|
|
746
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
747
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
748
|
+
];
|
|
749
|
+
})
|
|
750
|
+
.s("AWSBillingAndCostManagementDataExports", "ListExecutions", {})
|
|
751
|
+
.n("BCMDataExportsClient", "ListExecutionsCommand")
|
|
752
|
+
.f(void 0, void 0)
|
|
753
|
+
.ser(se_ListExecutionsCommand)
|
|
754
|
+
.de(de_ListExecutionsCommand)
|
|
755
|
+
.build() {
|
|
756
|
+
}
|
|
1002
757
|
|
|
758
|
+
class ListExportsCommand extends smithyClient.Command
|
|
759
|
+
.classBuilder()
|
|
760
|
+
.ep(commonParams)
|
|
761
|
+
.m(function (Command, cs, config, o) {
|
|
762
|
+
return [
|
|
763
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
764
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
765
|
+
];
|
|
766
|
+
})
|
|
767
|
+
.s("AWSBillingAndCostManagementDataExports", "ListExports", {})
|
|
768
|
+
.n("BCMDataExportsClient", "ListExportsCommand")
|
|
769
|
+
.f(void 0, void 0)
|
|
770
|
+
.ser(se_ListExportsCommand)
|
|
771
|
+
.de(de_ListExportsCommand)
|
|
772
|
+
.build() {
|
|
773
|
+
}
|
|
1003
774
|
|
|
775
|
+
class ListTablesCommand extends smithyClient.Command
|
|
776
|
+
.classBuilder()
|
|
777
|
+
.ep(commonParams)
|
|
778
|
+
.m(function (Command, cs, config, o) {
|
|
779
|
+
return [
|
|
780
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
781
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
782
|
+
];
|
|
783
|
+
})
|
|
784
|
+
.s("AWSBillingAndCostManagementDataExports", "ListTables", {})
|
|
785
|
+
.n("BCMDataExportsClient", "ListTablesCommand")
|
|
786
|
+
.f(void 0, void 0)
|
|
787
|
+
.ser(se_ListTablesCommand)
|
|
788
|
+
.de(de_ListTablesCommand)
|
|
789
|
+
.build() {
|
|
790
|
+
}
|
|
1004
791
|
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
(
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
}
|
|
792
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
793
|
+
.classBuilder()
|
|
794
|
+
.ep(commonParams)
|
|
795
|
+
.m(function (Command, cs, config, o) {
|
|
796
|
+
return [
|
|
797
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
798
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
799
|
+
];
|
|
800
|
+
})
|
|
801
|
+
.s("AWSBillingAndCostManagementDataExports", "ListTagsForResource", {})
|
|
802
|
+
.n("BCMDataExportsClient", "ListTagsForResourceCommand")
|
|
803
|
+
.f(void 0, void 0)
|
|
804
|
+
.ser(se_ListTagsForResourceCommand)
|
|
805
|
+
.de(de_ListTagsForResourceCommand)
|
|
806
|
+
.build() {
|
|
807
|
+
}
|
|
1015
808
|
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
static {
|
|
1033
|
-
__name(this, "BCMDataExports");
|
|
1034
|
-
}
|
|
1035
|
-
};
|
|
1036
|
-
(0, import_smithy_client.createAggregatedClient)(commands, BCMDataExports);
|
|
809
|
+
class TagResourceCommand extends smithyClient.Command
|
|
810
|
+
.classBuilder()
|
|
811
|
+
.ep(commonParams)
|
|
812
|
+
.m(function (Command, cs, config, o) {
|
|
813
|
+
return [
|
|
814
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
815
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
816
|
+
];
|
|
817
|
+
})
|
|
818
|
+
.s("AWSBillingAndCostManagementDataExports", "TagResource", {})
|
|
819
|
+
.n("BCMDataExportsClient", "TagResourceCommand")
|
|
820
|
+
.f(void 0, void 0)
|
|
821
|
+
.ser(se_TagResourceCommand)
|
|
822
|
+
.de(de_TagResourceCommand)
|
|
823
|
+
.build() {
|
|
824
|
+
}
|
|
1037
825
|
|
|
1038
|
-
|
|
826
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
827
|
+
.classBuilder()
|
|
828
|
+
.ep(commonParams)
|
|
829
|
+
.m(function (Command, cs, config, o) {
|
|
830
|
+
return [
|
|
831
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
832
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
833
|
+
];
|
|
834
|
+
})
|
|
835
|
+
.s("AWSBillingAndCostManagementDataExports", "UntagResource", {})
|
|
836
|
+
.n("BCMDataExportsClient", "UntagResourceCommand")
|
|
837
|
+
.f(void 0, void 0)
|
|
838
|
+
.ser(se_UntagResourceCommand)
|
|
839
|
+
.de(de_UntagResourceCommand)
|
|
840
|
+
.build() {
|
|
841
|
+
}
|
|
1039
842
|
|
|
1040
|
-
|
|
843
|
+
class UpdateExportCommand extends smithyClient.Command
|
|
844
|
+
.classBuilder()
|
|
845
|
+
.ep(commonParams)
|
|
846
|
+
.m(function (Command, cs, config, o) {
|
|
847
|
+
return [
|
|
848
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
849
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
850
|
+
];
|
|
851
|
+
})
|
|
852
|
+
.s("AWSBillingAndCostManagementDataExports", "UpdateExport", {})
|
|
853
|
+
.n("BCMDataExportsClient", "UpdateExportCommand")
|
|
854
|
+
.f(void 0, void 0)
|
|
855
|
+
.ser(se_UpdateExportCommand)
|
|
856
|
+
.de(de_UpdateExportCommand)
|
|
857
|
+
.build() {
|
|
858
|
+
}
|
|
1041
859
|
|
|
1042
|
-
|
|
860
|
+
const commands = {
|
|
861
|
+
CreateExportCommand,
|
|
862
|
+
DeleteExportCommand,
|
|
863
|
+
GetExecutionCommand,
|
|
864
|
+
GetExportCommand,
|
|
865
|
+
GetTableCommand,
|
|
866
|
+
ListExecutionsCommand,
|
|
867
|
+
ListExportsCommand,
|
|
868
|
+
ListTablesCommand,
|
|
869
|
+
ListTagsForResourceCommand,
|
|
870
|
+
TagResourceCommand,
|
|
871
|
+
UntagResourceCommand,
|
|
872
|
+
UpdateExportCommand,
|
|
873
|
+
};
|
|
874
|
+
class BCMDataExports extends BCMDataExportsClient {
|
|
875
|
+
}
|
|
876
|
+
smithyClient.createAggregatedClient(commands, BCMDataExports);
|
|
1043
877
|
|
|
1044
|
-
|
|
878
|
+
const paginateListExecutions = core.createPaginator(BCMDataExportsClient, ListExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1045
879
|
|
|
1046
|
-
|
|
880
|
+
const paginateListExports = core.createPaginator(BCMDataExportsClient, ListExportsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1047
881
|
|
|
1048
|
-
|
|
1049
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
882
|
+
const paginateListTables = core.createPaginator(BCMDataExportsClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1050
883
|
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
BCMDataExportsClient,
|
|
1055
|
-
BCMDataExports,
|
|
1056
|
-
$Command,
|
|
1057
|
-
CreateExportCommand,
|
|
1058
|
-
DeleteExportCommand,
|
|
1059
|
-
GetExecutionCommand,
|
|
1060
|
-
GetExportCommand,
|
|
1061
|
-
GetTableCommand,
|
|
1062
|
-
ListExecutionsCommand,
|
|
1063
|
-
ListExportsCommand,
|
|
1064
|
-
ListTablesCommand,
|
|
1065
|
-
ListTagsForResourceCommand,
|
|
1066
|
-
TagResourceCommand,
|
|
1067
|
-
UntagResourceCommand,
|
|
1068
|
-
UpdateExportCommand,
|
|
1069
|
-
paginateListExecutions,
|
|
1070
|
-
paginateListExports,
|
|
1071
|
-
paginateListTables,
|
|
1072
|
-
CompressionOption,
|
|
1073
|
-
FormatOption,
|
|
1074
|
-
S3OutputType,
|
|
1075
|
-
OverwriteOption,
|
|
1076
|
-
FrequencyOption,
|
|
1077
|
-
InternalServerException,
|
|
1078
|
-
ServiceQuotaExceededException,
|
|
1079
|
-
ThrottlingException,
|
|
1080
|
-
ValidationExceptionReason,
|
|
1081
|
-
ValidationException,
|
|
1082
|
-
ResourceNotFoundException,
|
|
1083
|
-
ExecutionStatusCode,
|
|
1084
|
-
ExecutionStatusReason,
|
|
1085
|
-
ExportStatusCode
|
|
884
|
+
Object.defineProperty(exports, "$Command", {
|
|
885
|
+
enumerable: true,
|
|
886
|
+
get: function () { return smithyClient.Command; }
|
|
1086
887
|
});
|
|
1087
|
-
|
|
888
|
+
Object.defineProperty(exports, "__Client", {
|
|
889
|
+
enumerable: true,
|
|
890
|
+
get: function () { return smithyClient.Client; }
|
|
891
|
+
});
|
|
892
|
+
exports.BCMDataExports = BCMDataExports;
|
|
893
|
+
exports.BCMDataExportsClient = BCMDataExportsClient;
|
|
894
|
+
exports.BCMDataExportsServiceException = BCMDataExportsServiceException;
|
|
895
|
+
exports.CompressionOption = CompressionOption;
|
|
896
|
+
exports.CreateExportCommand = CreateExportCommand;
|
|
897
|
+
exports.DeleteExportCommand = DeleteExportCommand;
|
|
898
|
+
exports.ExecutionStatusCode = ExecutionStatusCode;
|
|
899
|
+
exports.ExecutionStatusReason = ExecutionStatusReason;
|
|
900
|
+
exports.ExportStatusCode = ExportStatusCode;
|
|
901
|
+
exports.FormatOption = FormatOption;
|
|
902
|
+
exports.FrequencyOption = FrequencyOption;
|
|
903
|
+
exports.GetExecutionCommand = GetExecutionCommand;
|
|
904
|
+
exports.GetExportCommand = GetExportCommand;
|
|
905
|
+
exports.GetTableCommand = GetTableCommand;
|
|
906
|
+
exports.InternalServerException = InternalServerException;
|
|
907
|
+
exports.ListExecutionsCommand = ListExecutionsCommand;
|
|
908
|
+
exports.ListExportsCommand = ListExportsCommand;
|
|
909
|
+
exports.ListTablesCommand = ListTablesCommand;
|
|
910
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
911
|
+
exports.OverwriteOption = OverwriteOption;
|
|
912
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
913
|
+
exports.S3OutputType = S3OutputType;
|
|
914
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
915
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
916
|
+
exports.ThrottlingException = ThrottlingException;
|
|
917
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
918
|
+
exports.UpdateExportCommand = UpdateExportCommand;
|
|
919
|
+
exports.ValidationException = ValidationException;
|
|
920
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
921
|
+
exports.paginateListExecutions = paginateListExecutions;
|
|
922
|
+
exports.paginateListExports = paginateListExports;
|
|
923
|
+
exports.paginateListTables = paginateListTables;
|