@aws-sdk/client-dataexchange 3.43.0 → 3.47.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/CHANGELOG.md +50 -0
- package/dist-cjs/DataExchange.js +15 -0
- package/dist-cjs/commands/SendApiAssetCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +41 -45
- package/dist-cjs/protocols/Aws_restJson1.js +188 -2
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/DataExchange.js +15 -0
- package/dist-es/commands/SendApiAssetCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +29 -28
- package/dist-es/protocols/Aws_restJson1.js +186 -2
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/DataExchange.d.ts +7 -0
- package/dist-types/DataExchangeClient.d.ts +8 -3
- package/dist-types/commands/SendApiAssetCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +239 -47
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/DataExchange.d.ts +5 -0
- package/dist-types/ts3.4/DataExchangeClient.d.ts +6 -3
- package/dist-types/ts3.4/commands/SendApiAssetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +132 -28
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,56 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
28
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **clients:** update clients as of 2021/11/30 ([#3077](https://github.com/aws/aws-sdk-js-v3/issues/3077)) ([2bdba30](https://github.com/aws/aws-sdk-js-v3/commit/2bdba30963e550728ba2903d57daa1e666a29d71))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
6
56
|
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
57
|
|
|
8
58
|
**Note:** Version bump only for package @aws-sdk/client-dataexchange
|
package/dist-cjs/DataExchange.js
CHANGED
|
@@ -21,6 +21,7 @@ const ListEventActionsCommand_1 = require("./commands/ListEventActionsCommand");
|
|
|
21
21
|
const ListJobsCommand_1 = require("./commands/ListJobsCommand");
|
|
22
22
|
const ListRevisionAssetsCommand_1 = require("./commands/ListRevisionAssetsCommand");
|
|
23
23
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
24
|
+
const SendApiAssetCommand_1 = require("./commands/SendApiAssetCommand");
|
|
24
25
|
const StartJobCommand_1 = require("./commands/StartJobCommand");
|
|
25
26
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
26
27
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
@@ -310,6 +311,20 @@ class DataExchange extends DataExchangeClient_1.DataExchangeClient {
|
|
|
310
311
|
return this.send(command, optionsOrCb);
|
|
311
312
|
}
|
|
312
313
|
}
|
|
314
|
+
sendApiAsset(args, optionsOrCb, cb) {
|
|
315
|
+
const command = new SendApiAssetCommand_1.SendApiAssetCommand(args);
|
|
316
|
+
if (typeof optionsOrCb === "function") {
|
|
317
|
+
this.send(command, optionsOrCb);
|
|
318
|
+
}
|
|
319
|
+
else if (typeof cb === "function") {
|
|
320
|
+
if (typeof optionsOrCb !== "object")
|
|
321
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
322
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
return this.send(command, optionsOrCb);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
313
328
|
startJob(args, optionsOrCb, cb) {
|
|
314
329
|
const command = new StartJobCommand_1.StartJobCommand(args);
|
|
315
330
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendApiAssetCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class SendApiAssetCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "DataExchangeClient";
|
|
18
|
+
const commandName = "SendApiAssetCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.SendApiAssetRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.SendApiAssetResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1SendApiAssetCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1SendApiAssetCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.SendApiAssetCommand = SendApiAssetCommand;
|
|
@@ -21,6 +21,7 @@ tslib_1.__exportStar(require("./ListEventActionsCommand"), exports);
|
|
|
21
21
|
tslib_1.__exportStar(require("./ListJobsCommand"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./ListRevisionAssetsCommand"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./SendApiAssetCommand"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./StartJobCommand"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResponseDetails = exports.ImportAssetsFromS3ResponseDetails = exports.ImportAssetsFromRedshiftDataSharesResponseDetails = exports.ImportAssetFromSignedUrlResponseDetails = exports.ExportRevisionsToS3ResponseDetails = exports.ExportAssetToSignedUrlResponseDetails = exports.ExportAssetsToS3ResponseDetails = exports.CreateJobRequest = exports.Type = exports.RequestDetails = exports.ImportAssetsFromS3RequestDetails = exports.ImportAssetsFromRedshiftDataSharesRequestDetails = exports.RedshiftDataShareAssetSourceEntry = exports.ImportAssetFromSignedUrlRequestDetails = exports.ExportRevisionsToS3RequestDetails = exports.RevisionDestinationEntry = exports.ExportAssetToSignedUrlRequestDetails = exports.ExportAssetsToS3RequestDetails = exports.CreateEventActionResponse = exports.CreateEventActionRequest = exports.Event = exports.RevisionPublished = exports.
|
|
4
|
-
exports.UpdateRevisionRequest = exports.UpdateEventActionResponse = exports.UpdateEventActionRequest = exports.UpdateDataSetResponse = exports.UpdateDataSetRequest = exports.UpdateAssetResponse = exports.UpdateAssetRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StartJobResponse = exports.StartJobRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRevisionAssetsResponse = exports.ListRevisionAssetsRequest = exports.ListJobsResponse = exports.JobEntry = exports.ListJobsRequest = exports.ListEventActionsResponse = exports.EventActionEntry = exports.ListEventActionsRequest = exports.ListDataSetsResponse = exports.DataSetEntry = exports.ListDataSetsRequest = exports.ListDataSetRevisionsResponse = exports.RevisionEntry = exports.ListDataSetRevisionsRequest = exports.GetRevisionResponse = exports.GetRevisionRequest = exports.GetJobResponse = exports.GetJobRequest = exports.GetEventActionResponse = exports.GetEventActionRequest = exports.GetDataSetResponse = exports.GetDataSetRequest = exports.GetAssetResponse = exports.GetAssetRequest = exports.DeleteRevisionRequest = exports.DeleteEventActionRequest = exports.DeleteDataSetRequest = exports.DeleteAssetRequest = exports.CreateRevisionResponse = exports.CreateRevisionRequest = exports.CreateJobResponse = exports.State = exports.JobError = exports.JobErrorResourceTypes =
|
|
5
|
-
exports.UpdateRevisionResponse = void 0;
|
|
6
|
-
var AccessDeniedException;
|
|
7
|
-
(function (AccessDeniedException) {
|
|
8
|
-
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
9
|
-
...obj,
|
|
10
|
-
});
|
|
11
|
-
})(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
|
|
3
|
+
exports.JobErrorLimitName = exports.Details = exports.ImportAssetFromSignedUrlJobErrorDetails = exports.ResponseDetails = exports.ImportAssetsFromS3ResponseDetails = exports.ImportAssetsFromRedshiftDataSharesResponseDetails = exports.ImportAssetFromSignedUrlResponseDetails = exports.ImportAssetFromApiGatewayApiResponseDetails = exports.ExportRevisionsToS3ResponseDetails = exports.ExportAssetToSignedUrlResponseDetails = exports.ExportAssetsToS3ResponseDetails = exports.CreateJobRequest = exports.Type = exports.RequestDetails = exports.ImportAssetsFromS3RequestDetails = exports.ImportAssetsFromRedshiftDataSharesRequestDetails = exports.RedshiftDataShareAssetSourceEntry = exports.ImportAssetFromSignedUrlRequestDetails = exports.ImportAssetFromApiGatewayApiRequestDetails = exports.ExportRevisionsToS3RequestDetails = exports.RevisionDestinationEntry = exports.ExportAssetToSignedUrlRequestDetails = exports.ExportAssetsToS3RequestDetails = exports.CreateEventActionResponse = exports.CreateEventActionRequest = exports.Event = exports.RevisionPublished = exports.LimitName = exports.CreateDataSetResponse = exports.OriginDetails = exports.Origin = exports.CreateDataSetRequest = exports.Code = exports.ExceptionCause = exports.ResourceType = exports.CancelJobRequest = exports.AssetSourceEntry = exports.AssetEntry = exports.AssetType = exports.AssetDetails = exports.S3SnapshotAsset = exports.RedshiftDataShareAsset = exports.AssetDestinationEntry = exports.ApiGatewayApiAsset = exports.ProtocolType = exports.Action = exports.AutoExportRevisionToS3RequestDetails = exports.AutoExportRevisionDestinationEntry = exports.ExportServerSideEncryption = exports.ServerSideEncryptionTypes = void 0;
|
|
4
|
+
exports.UpdateRevisionResponse = exports.UpdateRevisionRequest = exports.UpdateEventActionResponse = exports.UpdateEventActionRequest = exports.UpdateDataSetResponse = exports.UpdateDataSetRequest = exports.UpdateAssetResponse = exports.UpdateAssetRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StartJobResponse = exports.StartJobRequest = exports.SendApiAssetResponse = exports.SendApiAssetRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRevisionAssetsResponse = exports.ListRevisionAssetsRequest = exports.ListJobsResponse = exports.JobEntry = exports.ListJobsRequest = exports.ListEventActionsResponse = exports.EventActionEntry = exports.ListEventActionsRequest = exports.ListDataSetsResponse = exports.DataSetEntry = exports.ListDataSetsRequest = exports.ListDataSetRevisionsResponse = exports.RevisionEntry = exports.ListDataSetRevisionsRequest = exports.GetRevisionResponse = exports.GetRevisionRequest = exports.GetJobResponse = exports.GetJobRequest = exports.GetEventActionResponse = exports.GetEventActionRequest = exports.GetDataSetResponse = exports.GetDataSetRequest = exports.GetAssetResponse = exports.GetAssetRequest = exports.DeleteRevisionRequest = exports.DeleteEventActionRequest = exports.DeleteDataSetRequest = exports.DeleteAssetRequest = exports.CreateRevisionResponse = exports.CreateRevisionRequest = exports.CreateJobResponse = exports.State = exports.JobError = exports.JobErrorResourceTypes = void 0;
|
|
12
5
|
var ServerSideEncryptionTypes;
|
|
13
6
|
(function (ServerSideEncryptionTypes) {
|
|
14
7
|
ServerSideEncryptionTypes["AES256"] = "AES256";
|
|
@@ -38,6 +31,16 @@ var Action;
|
|
|
38
31
|
...obj,
|
|
39
32
|
});
|
|
40
33
|
})(Action = exports.Action || (exports.Action = {}));
|
|
34
|
+
var ProtocolType;
|
|
35
|
+
(function (ProtocolType) {
|
|
36
|
+
ProtocolType["REST"] = "REST";
|
|
37
|
+
})(ProtocolType = exports.ProtocolType || (exports.ProtocolType = {}));
|
|
38
|
+
var ApiGatewayApiAsset;
|
|
39
|
+
(function (ApiGatewayApiAsset) {
|
|
40
|
+
ApiGatewayApiAsset.filterSensitiveLog = (obj) => ({
|
|
41
|
+
...obj,
|
|
42
|
+
});
|
|
43
|
+
})(ApiGatewayApiAsset = exports.ApiGatewayApiAsset || (exports.ApiGatewayApiAsset = {}));
|
|
41
44
|
var AssetDestinationEntry;
|
|
42
45
|
(function (AssetDestinationEntry) {
|
|
43
46
|
AssetDestinationEntry.filterSensitiveLog = (obj) => ({
|
|
@@ -64,6 +67,7 @@ var AssetDetails;
|
|
|
64
67
|
})(AssetDetails = exports.AssetDetails || (exports.AssetDetails = {}));
|
|
65
68
|
var AssetType;
|
|
66
69
|
(function (AssetType) {
|
|
70
|
+
AssetType["API_GATEWAY_API"] = "API_GATEWAY_API";
|
|
67
71
|
AssetType["REDSHIFT_DATA_SHARE"] = "REDSHIFT_DATA_SHARE";
|
|
68
72
|
AssetType["S3_SNAPSHOT"] = "S3_SNAPSHOT";
|
|
69
73
|
})(AssetType = exports.AssetType || (exports.AssetType = {}));
|
|
@@ -93,41 +97,11 @@ var ResourceType;
|
|
|
93
97
|
ResourceType["JOB"] = "JOB";
|
|
94
98
|
ResourceType["REVISION"] = "REVISION";
|
|
95
99
|
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
96
|
-
var ConflictException;
|
|
97
|
-
(function (ConflictException) {
|
|
98
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
99
|
-
...obj,
|
|
100
|
-
});
|
|
101
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
102
|
-
var InternalServerException;
|
|
103
|
-
(function (InternalServerException) {
|
|
104
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
105
|
-
...obj,
|
|
106
|
-
});
|
|
107
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
108
|
-
var ResourceNotFoundException;
|
|
109
|
-
(function (ResourceNotFoundException) {
|
|
110
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
111
|
-
...obj,
|
|
112
|
-
});
|
|
113
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
114
|
-
var ThrottlingException;
|
|
115
|
-
(function (ThrottlingException) {
|
|
116
|
-
ThrottlingException.filterSensitiveLog = (obj) => ({
|
|
117
|
-
...obj,
|
|
118
|
-
});
|
|
119
|
-
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
|
|
120
100
|
var ExceptionCause;
|
|
121
101
|
(function (ExceptionCause) {
|
|
122
102
|
ExceptionCause["InsufficientS3BucketPolicy"] = "InsufficientS3BucketPolicy";
|
|
123
103
|
ExceptionCause["S3AccessDenied"] = "S3AccessDenied";
|
|
124
104
|
})(ExceptionCause = exports.ExceptionCause || (exports.ExceptionCause = {}));
|
|
125
|
-
var ValidationException;
|
|
126
|
-
(function (ValidationException) {
|
|
127
|
-
ValidationException.filterSensitiveLog = (obj) => ({
|
|
128
|
-
...obj,
|
|
129
|
-
});
|
|
130
|
-
})(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
|
|
131
105
|
var Code;
|
|
132
106
|
(function (Code) {
|
|
133
107
|
Code["ACCESS_DENIED_EXCEPTION"] = "ACCESS_DENIED_EXCEPTION";
|
|
@@ -163,6 +137,7 @@ var CreateDataSetResponse;
|
|
|
163
137
|
})(CreateDataSetResponse = exports.CreateDataSetResponse || (exports.CreateDataSetResponse = {}));
|
|
164
138
|
var LimitName;
|
|
165
139
|
(function (LimitName) {
|
|
140
|
+
LimitName["Amazon_API_Gateway_API_assets_per_revision"] = "Amazon API Gateway API assets per revision";
|
|
166
141
|
LimitName["Amazon_Redshift_datashare_assets_per_import_job_from_Redshift"] = "Amazon Redshift datashare assets per import job from Redshift";
|
|
167
142
|
LimitName["Amazon_Redshift_datashare_assets_per_revision"] = "Amazon Redshift datashare assets per revision";
|
|
168
143
|
LimitName["Asset_per_export_job_from_Amazon_S3"] = "Asset per export job from Amazon S3";
|
|
@@ -176,19 +151,15 @@ var LimitName;
|
|
|
176
151
|
LimitName["Concurrent_in_progress_jobs_to_import_assets_from_Amazon_Redshift_datashares"] = "Concurrent in progress jobs to import assets from Amazon Redshift datashares";
|
|
177
152
|
LimitName["Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3"] = "Concurrent in progress jobs to import assets from Amazon S3";
|
|
178
153
|
LimitName["Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL"] = "Concurrent in progress jobs to import assets from a signed URL";
|
|
154
|
+
LimitName["Concurrent_in_progress_jobs_to_import_assets_from_an_API_Gateway_API"] = "Concurrent in progress jobs to import assets from an API Gateway API";
|
|
179
155
|
LimitName["Data_sets_per_account"] = "Data sets per account";
|
|
180
156
|
LimitName["Data_sets_per_product"] = "Data sets per product";
|
|
181
157
|
LimitName["Event_actions_per_account"] = "Event actions per account";
|
|
182
158
|
LimitName["Products_per_account"] = "Products per account";
|
|
159
|
+
LimitName["Revisions_per_Amazon_API_Gateway_API_data_set"] = "Revisions per Amazon API Gateway API data set";
|
|
183
160
|
LimitName["Revisions_per_Amazon_Redshift_datashare_data_set"] = "Revisions per Amazon Redshift datashare data set";
|
|
184
161
|
LimitName["Revisions_per_data_set"] = "Revisions per data set";
|
|
185
162
|
})(LimitName = exports.LimitName || (exports.LimitName = {}));
|
|
186
|
-
var ServiceLimitExceededException;
|
|
187
|
-
(function (ServiceLimitExceededException) {
|
|
188
|
-
ServiceLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
});
|
|
191
|
-
})(ServiceLimitExceededException = exports.ServiceLimitExceededException || (exports.ServiceLimitExceededException = {}));
|
|
192
163
|
var RevisionPublished;
|
|
193
164
|
(function (RevisionPublished) {
|
|
194
165
|
RevisionPublished.filterSensitiveLog = (obj) => ({
|
|
@@ -237,6 +208,12 @@ var ExportRevisionsToS3RequestDetails;
|
|
|
237
208
|
...obj,
|
|
238
209
|
});
|
|
239
210
|
})(ExportRevisionsToS3RequestDetails = exports.ExportRevisionsToS3RequestDetails || (exports.ExportRevisionsToS3RequestDetails = {}));
|
|
211
|
+
var ImportAssetFromApiGatewayApiRequestDetails;
|
|
212
|
+
(function (ImportAssetFromApiGatewayApiRequestDetails) {
|
|
213
|
+
ImportAssetFromApiGatewayApiRequestDetails.filterSensitiveLog = (obj) => ({
|
|
214
|
+
...obj,
|
|
215
|
+
});
|
|
216
|
+
})(ImportAssetFromApiGatewayApiRequestDetails = exports.ImportAssetFromApiGatewayApiRequestDetails || (exports.ImportAssetFromApiGatewayApiRequestDetails = {}));
|
|
240
217
|
var ImportAssetFromSignedUrlRequestDetails;
|
|
241
218
|
(function (ImportAssetFromSignedUrlRequestDetails) {
|
|
242
219
|
ImportAssetFromSignedUrlRequestDetails.filterSensitiveLog = (obj) => ({
|
|
@@ -274,6 +251,7 @@ var Type;
|
|
|
274
251
|
Type["EXPORT_REVISIONS_TO_S3"] = "EXPORT_REVISIONS_TO_S3";
|
|
275
252
|
Type["IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES"] = "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES";
|
|
276
253
|
Type["IMPORT_ASSETS_FROM_S3"] = "IMPORT_ASSETS_FROM_S3";
|
|
254
|
+
Type["IMPORT_ASSET_FROM_API_GATEWAY_API"] = "IMPORT_ASSET_FROM_API_GATEWAY_API";
|
|
277
255
|
Type["IMPORT_ASSET_FROM_SIGNED_URL"] = "IMPORT_ASSET_FROM_SIGNED_URL";
|
|
278
256
|
})(Type = exports.Type || (exports.Type = {}));
|
|
279
257
|
var CreateJobRequest;
|
|
@@ -300,6 +278,12 @@ var ExportRevisionsToS3ResponseDetails;
|
|
|
300
278
|
...obj,
|
|
301
279
|
});
|
|
302
280
|
})(ExportRevisionsToS3ResponseDetails = exports.ExportRevisionsToS3ResponseDetails || (exports.ExportRevisionsToS3ResponseDetails = {}));
|
|
281
|
+
var ImportAssetFromApiGatewayApiResponseDetails;
|
|
282
|
+
(function (ImportAssetFromApiGatewayApiResponseDetails) {
|
|
283
|
+
ImportAssetFromApiGatewayApiResponseDetails.filterSensitiveLog = (obj) => ({
|
|
284
|
+
...obj,
|
|
285
|
+
});
|
|
286
|
+
})(ImportAssetFromApiGatewayApiResponseDetails = exports.ImportAssetFromApiGatewayApiResponseDetails || (exports.ImportAssetFromApiGatewayApiResponseDetails = {}));
|
|
303
287
|
var ImportAssetFromSignedUrlResponseDetails;
|
|
304
288
|
(function (ImportAssetFromSignedUrlResponseDetails) {
|
|
305
289
|
ImportAssetFromSignedUrlResponseDetails.filterSensitiveLog = (obj) => ({
|
|
@@ -561,6 +545,18 @@ var ListTagsForResourceResponse;
|
|
|
561
545
|
...obj,
|
|
562
546
|
});
|
|
563
547
|
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
548
|
+
var SendApiAssetRequest;
|
|
549
|
+
(function (SendApiAssetRequest) {
|
|
550
|
+
SendApiAssetRequest.filterSensitiveLog = (obj) => ({
|
|
551
|
+
...obj,
|
|
552
|
+
});
|
|
553
|
+
})(SendApiAssetRequest = exports.SendApiAssetRequest || (exports.SendApiAssetRequest = {}));
|
|
554
|
+
var SendApiAssetResponse;
|
|
555
|
+
(function (SendApiAssetResponse) {
|
|
556
|
+
SendApiAssetResponse.filterSensitiveLog = (obj) => ({
|
|
557
|
+
...obj,
|
|
558
|
+
});
|
|
559
|
+
})(SendApiAssetResponse = exports.SendApiAssetResponse || (exports.SendApiAssetResponse = {}));
|
|
564
560
|
var StartJobRequest;
|
|
565
561
|
(function (StartJobRequest) {
|
|
566
562
|
StartJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateRevisionCommand = exports.deserializeAws_restJson1UpdateEventActionCommand = exports.deserializeAws_restJson1UpdateDataSetCommand = exports.deserializeAws_restJson1UpdateAssetCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1StartJobCommand = exports.deserializeAws_restJson1SendApiAssetCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRevisionAssetsCommand = exports.deserializeAws_restJson1ListJobsCommand = exports.deserializeAws_restJson1ListEventActionsCommand = exports.deserializeAws_restJson1ListDataSetsCommand = exports.deserializeAws_restJson1ListDataSetRevisionsCommand = exports.deserializeAws_restJson1GetRevisionCommand = exports.deserializeAws_restJson1GetJobCommand = exports.deserializeAws_restJson1GetEventActionCommand = exports.deserializeAws_restJson1GetDataSetCommand = exports.deserializeAws_restJson1GetAssetCommand = exports.deserializeAws_restJson1DeleteRevisionCommand = exports.deserializeAws_restJson1DeleteEventActionCommand = exports.deserializeAws_restJson1DeleteDataSetCommand = exports.deserializeAws_restJson1DeleteAssetCommand = exports.deserializeAws_restJson1CreateRevisionCommand = exports.deserializeAws_restJson1CreateJobCommand = exports.deserializeAws_restJson1CreateEventActionCommand = exports.deserializeAws_restJson1CreateDataSetCommand = exports.deserializeAws_restJson1CancelJobCommand = exports.serializeAws_restJson1UpdateRevisionCommand = exports.serializeAws_restJson1UpdateEventActionCommand = exports.serializeAws_restJson1UpdateDataSetCommand = exports.serializeAws_restJson1UpdateAssetCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartJobCommand = exports.serializeAws_restJson1SendApiAssetCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRevisionAssetsCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1ListEventActionsCommand = exports.serializeAws_restJson1ListDataSetsCommand = exports.serializeAws_restJson1ListDataSetRevisionsCommand = exports.serializeAws_restJson1GetRevisionCommand = exports.serializeAws_restJson1GetJobCommand = exports.serializeAws_restJson1GetEventActionCommand = exports.serializeAws_restJson1GetDataSetCommand = exports.serializeAws_restJson1GetAssetCommand = exports.serializeAws_restJson1DeleteRevisionCommand = exports.serializeAws_restJson1DeleteEventActionCommand = exports.serializeAws_restJson1DeleteDataSetCommand = exports.serializeAws_restJson1DeleteAssetCommand = exports.serializeAws_restJson1CreateRevisionCommand = exports.serializeAws_restJson1CreateJobCommand = exports.serializeAws_restJson1CreateEventActionCommand = exports.serializeAws_restJson1CreateDataSetCommand = exports.serializeAws_restJson1CancelJobCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateRevisionCommand = exports.deserializeAws_restJson1UpdateEventActionCommand = exports.deserializeAws_restJson1UpdateDataSetCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const serializeAws_restJson1CancelJobCommand = async (input, context) => {
|
|
@@ -599,6 +599,48 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
599
599
|
});
|
|
600
600
|
};
|
|
601
601
|
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
602
|
+
const serializeAws_restJson1SendApiAssetCommand = async (input, context) => {
|
|
603
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
604
|
+
const headers = {
|
|
605
|
+
"content-type": "text/plain",
|
|
606
|
+
...(isSerializableHeaderValue(input.AssetId) && { "x-amzn-dataexchange-asset-id": input.AssetId }),
|
|
607
|
+
...(isSerializableHeaderValue(input.DataSetId) && { "x-amzn-dataexchange-data-set-id": input.DataSetId }),
|
|
608
|
+
...(isSerializableHeaderValue(input.Method) && { "x-amzn-dataexchange-http-method": input.Method }),
|
|
609
|
+
...(isSerializableHeaderValue(input.Path) && { "x-amzn-dataexchange-path": input.Path }),
|
|
610
|
+
...(isSerializableHeaderValue(input.RevisionId) && { "x-amzn-dataexchange-revision-id": input.RevisionId }),
|
|
611
|
+
...(input.RequestHeaders !== undefined &&
|
|
612
|
+
Object.keys(input.RequestHeaders).reduce((acc, suffix) => ({
|
|
613
|
+
...acc,
|
|
614
|
+
[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`]: input.RequestHeaders[suffix],
|
|
615
|
+
}), {})),
|
|
616
|
+
};
|
|
617
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1";
|
|
618
|
+
const query = {
|
|
619
|
+
...(input.QueryStringParameters !== undefined && input.QueryStringParameters),
|
|
620
|
+
};
|
|
621
|
+
let body;
|
|
622
|
+
if (input.Body !== undefined) {
|
|
623
|
+
body = input.Body;
|
|
624
|
+
}
|
|
625
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
626
|
+
if (context.disableHostPrefix !== true) {
|
|
627
|
+
resolvedHostname = "api-fulfill." + resolvedHostname;
|
|
628
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
629
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
return new protocol_http_1.HttpRequest({
|
|
633
|
+
protocol,
|
|
634
|
+
hostname: resolvedHostname,
|
|
635
|
+
port,
|
|
636
|
+
method: "POST",
|
|
637
|
+
headers,
|
|
638
|
+
path: resolvedPath,
|
|
639
|
+
query,
|
|
640
|
+
body,
|
|
641
|
+
});
|
|
642
|
+
};
|
|
643
|
+
exports.serializeAws_restJson1SendApiAssetCommand = serializeAws_restJson1SendApiAssetCommand;
|
|
602
644
|
const serializeAws_restJson1StartJobCommand = async (input, context) => {
|
|
603
645
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
604
646
|
const headers = {};
|
|
@@ -2618,6 +2660,93 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2618
2660
|
delete response.Message;
|
|
2619
2661
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2620
2662
|
};
|
|
2663
|
+
const deserializeAws_restJson1SendApiAssetCommand = async (output, context) => {
|
|
2664
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2665
|
+
return deserializeAws_restJson1SendApiAssetCommandError(output, context);
|
|
2666
|
+
}
|
|
2667
|
+
const contents = {
|
|
2668
|
+
$metadata: deserializeMetadata(output),
|
|
2669
|
+
Body: undefined,
|
|
2670
|
+
ResponseHeaders: undefined,
|
|
2671
|
+
};
|
|
2672
|
+
Object.keys(output.headers).forEach((header) => {
|
|
2673
|
+
if (contents.ResponseHeaders === undefined) {
|
|
2674
|
+
contents.ResponseHeaders = {};
|
|
2675
|
+
}
|
|
2676
|
+
if (header.startsWith("")) {
|
|
2677
|
+
contents.ResponseHeaders[header.substring(0)] = output.headers[header];
|
|
2678
|
+
}
|
|
2679
|
+
});
|
|
2680
|
+
const data = await collectBodyString(output.body, context);
|
|
2681
|
+
contents.Body = smithy_client_1.expectString(data);
|
|
2682
|
+
return Promise.resolve(contents);
|
|
2683
|
+
};
|
|
2684
|
+
exports.deserializeAws_restJson1SendApiAssetCommand = deserializeAws_restJson1SendApiAssetCommand;
|
|
2685
|
+
const deserializeAws_restJson1SendApiAssetCommandError = async (output, context) => {
|
|
2686
|
+
const parsedOutput = {
|
|
2687
|
+
...output,
|
|
2688
|
+
body: await parseBody(output.body, context),
|
|
2689
|
+
};
|
|
2690
|
+
let response;
|
|
2691
|
+
let errorCode = "UnknownError";
|
|
2692
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2693
|
+
switch (errorCode) {
|
|
2694
|
+
case "AccessDeniedException":
|
|
2695
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2696
|
+
response = {
|
|
2697
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2698
|
+
name: errorCode,
|
|
2699
|
+
$metadata: deserializeMetadata(output),
|
|
2700
|
+
};
|
|
2701
|
+
break;
|
|
2702
|
+
case "InternalServerException":
|
|
2703
|
+
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2704
|
+
response = {
|
|
2705
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2706
|
+
name: errorCode,
|
|
2707
|
+
$metadata: deserializeMetadata(output),
|
|
2708
|
+
};
|
|
2709
|
+
break;
|
|
2710
|
+
case "ResourceNotFoundException":
|
|
2711
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2712
|
+
response = {
|
|
2713
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2714
|
+
name: errorCode,
|
|
2715
|
+
$metadata: deserializeMetadata(output),
|
|
2716
|
+
};
|
|
2717
|
+
break;
|
|
2718
|
+
case "ThrottlingException":
|
|
2719
|
+
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2720
|
+
response = {
|
|
2721
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2722
|
+
name: errorCode,
|
|
2723
|
+
$metadata: deserializeMetadata(output),
|
|
2724
|
+
};
|
|
2725
|
+
break;
|
|
2726
|
+
case "ValidationException":
|
|
2727
|
+
case "com.amazonaws.dataexchange#ValidationException":
|
|
2728
|
+
response = {
|
|
2729
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2730
|
+
name: errorCode,
|
|
2731
|
+
$metadata: deserializeMetadata(output),
|
|
2732
|
+
};
|
|
2733
|
+
break;
|
|
2734
|
+
default:
|
|
2735
|
+
const parsedBody = parsedOutput.body;
|
|
2736
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2737
|
+
response = {
|
|
2738
|
+
...parsedBody,
|
|
2739
|
+
name: `${errorCode}`,
|
|
2740
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2741
|
+
$fault: "client",
|
|
2742
|
+
$metadata: deserializeMetadata(output),
|
|
2743
|
+
};
|
|
2744
|
+
}
|
|
2745
|
+
const message = response.message || response.Message || errorCode;
|
|
2746
|
+
response.message = message;
|
|
2747
|
+
delete response.Message;
|
|
2748
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2749
|
+
};
|
|
2621
2750
|
const deserializeAws_restJson1StartJobCommand = async (output, context) => {
|
|
2622
2751
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2623
2752
|
return deserializeAws_restJson1StartJobCommandError(output, context);
|
|
@@ -3436,6 +3565,21 @@ const serializeAws_restJson1ExportServerSideEncryption = (input, context) => {
|
|
|
3436
3565
|
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
3437
3566
|
};
|
|
3438
3567
|
};
|
|
3568
|
+
const serializeAws_restJson1ImportAssetFromApiGatewayApiRequestDetails = (input, context) => {
|
|
3569
|
+
return {
|
|
3570
|
+
...(input.ApiDescription !== undefined &&
|
|
3571
|
+
input.ApiDescription !== null && { ApiDescription: input.ApiDescription }),
|
|
3572
|
+
...(input.ApiId !== undefined && input.ApiId !== null && { ApiId: input.ApiId }),
|
|
3573
|
+
...(input.ApiKey !== undefined && input.ApiKey !== null && { ApiKey: input.ApiKey }),
|
|
3574
|
+
...(input.ApiName !== undefined && input.ApiName !== null && { ApiName: input.ApiName }),
|
|
3575
|
+
...(input.ApiSpecificationMd5Hash !== undefined &&
|
|
3576
|
+
input.ApiSpecificationMd5Hash !== null && { ApiSpecificationMd5Hash: input.ApiSpecificationMd5Hash }),
|
|
3577
|
+
...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
|
|
3578
|
+
...(input.ProtocolType !== undefined && input.ProtocolType !== null && { ProtocolType: input.ProtocolType }),
|
|
3579
|
+
...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
|
|
3580
|
+
...(input.Stage !== undefined && input.Stage !== null && { Stage: input.Stage }),
|
|
3581
|
+
};
|
|
3582
|
+
};
|
|
3439
3583
|
const serializeAws_restJson1ImportAssetFromSignedUrlRequestDetails = (input, context) => {
|
|
3440
3584
|
return {
|
|
3441
3585
|
...(input.AssetName !== undefined && input.AssetName !== null && { AssetName: input.AssetName }),
|
|
@@ -3534,6 +3678,10 @@ const serializeAws_restJson1RequestDetails = (input, context) => {
|
|
|
3534
3678
|
input.ExportRevisionsToS3 !== null && {
|
|
3535
3679
|
ExportRevisionsToS3: serializeAws_restJson1ExportRevisionsToS3RequestDetails(input.ExportRevisionsToS3, context),
|
|
3536
3680
|
}),
|
|
3681
|
+
...(input.ImportAssetFromApiGatewayApi !== undefined &&
|
|
3682
|
+
input.ImportAssetFromApiGatewayApi !== null && {
|
|
3683
|
+
ImportAssetFromApiGatewayApi: serializeAws_restJson1ImportAssetFromApiGatewayApiRequestDetails(input.ImportAssetFromApiGatewayApi, context),
|
|
3684
|
+
}),
|
|
3537
3685
|
...(input.ImportAssetFromSignedUrl !== undefined &&
|
|
3538
3686
|
input.ImportAssetFromSignedUrl !== null && {
|
|
3539
3687
|
ImportAssetFromSignedUrl: serializeAws_restJson1ImportAssetFromSignedUrlRequestDetails(input.ImportAssetFromSignedUrl, context),
|
|
@@ -3567,6 +3715,21 @@ const deserializeAws_restJson1Action = (output, context) => {
|
|
|
3567
3715
|
: undefined,
|
|
3568
3716
|
};
|
|
3569
3717
|
};
|
|
3718
|
+
const deserializeAws_restJson1ApiGatewayApiAsset = (output, context) => {
|
|
3719
|
+
return {
|
|
3720
|
+
ApiDescription: smithy_client_1.expectString(output.ApiDescription),
|
|
3721
|
+
ApiEndpoint: smithy_client_1.expectString(output.ApiEndpoint),
|
|
3722
|
+
ApiId: smithy_client_1.expectString(output.ApiId),
|
|
3723
|
+
ApiKey: smithy_client_1.expectString(output.ApiKey),
|
|
3724
|
+
ApiName: smithy_client_1.expectString(output.ApiName),
|
|
3725
|
+
ApiSpecificationDownloadUrl: smithy_client_1.expectString(output.ApiSpecificationDownloadUrl),
|
|
3726
|
+
ApiSpecificationDownloadUrlExpiresAt: output.ApiSpecificationDownloadUrlExpiresAt !== undefined && output.ApiSpecificationDownloadUrlExpiresAt !== null
|
|
3727
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.ApiSpecificationDownloadUrlExpiresAt))
|
|
3728
|
+
: undefined,
|
|
3729
|
+
ProtocolType: smithy_client_1.expectString(output.ProtocolType),
|
|
3730
|
+
Stage: smithy_client_1.expectString(output.Stage),
|
|
3731
|
+
};
|
|
3732
|
+
};
|
|
3570
3733
|
const deserializeAws_restJson1AssetDestinationEntry = (output, context) => {
|
|
3571
3734
|
return {
|
|
3572
3735
|
AssetId: smithy_client_1.expectString(output.AssetId),
|
|
@@ -3576,6 +3739,9 @@ const deserializeAws_restJson1AssetDestinationEntry = (output, context) => {
|
|
|
3576
3739
|
};
|
|
3577
3740
|
const deserializeAws_restJson1AssetDetails = (output, context) => {
|
|
3578
3741
|
return {
|
|
3742
|
+
ApiGatewayApiAsset: output.ApiGatewayApiAsset !== undefined && output.ApiGatewayApiAsset !== null
|
|
3743
|
+
? deserializeAws_restJson1ApiGatewayApiAsset(output.ApiGatewayApiAsset, context)
|
|
3744
|
+
: undefined,
|
|
3579
3745
|
RedshiftDataShareAsset: output.RedshiftDataShareAsset !== undefined && output.RedshiftDataShareAsset !== null
|
|
3580
3746
|
? deserializeAws_restJson1RedshiftDataShareAsset(output.RedshiftDataShareAsset, context)
|
|
3581
3747
|
: undefined,
|
|
@@ -3723,6 +3889,23 @@ const deserializeAws_restJson1ExportServerSideEncryption = (output, context) =>
|
|
|
3723
3889
|
Type: smithy_client_1.expectString(output.Type),
|
|
3724
3890
|
};
|
|
3725
3891
|
};
|
|
3892
|
+
const deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails = (output, context) => {
|
|
3893
|
+
return {
|
|
3894
|
+
ApiDescription: smithy_client_1.expectString(output.ApiDescription),
|
|
3895
|
+
ApiId: smithy_client_1.expectString(output.ApiId),
|
|
3896
|
+
ApiKey: smithy_client_1.expectString(output.ApiKey),
|
|
3897
|
+
ApiName: smithy_client_1.expectString(output.ApiName),
|
|
3898
|
+
ApiSpecificationMd5Hash: smithy_client_1.expectString(output.ApiSpecificationMd5Hash),
|
|
3899
|
+
ApiSpecificationUploadUrl: smithy_client_1.expectString(output.ApiSpecificationUploadUrl),
|
|
3900
|
+
ApiSpecificationUploadUrlExpiresAt: output.ApiSpecificationUploadUrlExpiresAt !== undefined && output.ApiSpecificationUploadUrlExpiresAt !== null
|
|
3901
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.ApiSpecificationUploadUrlExpiresAt))
|
|
3902
|
+
: undefined,
|
|
3903
|
+
DataSetId: smithy_client_1.expectString(output.DataSetId),
|
|
3904
|
+
ProtocolType: smithy_client_1.expectString(output.ProtocolType),
|
|
3905
|
+
RevisionId: smithy_client_1.expectString(output.RevisionId),
|
|
3906
|
+
Stage: smithy_client_1.expectString(output.Stage),
|
|
3907
|
+
};
|
|
3908
|
+
};
|
|
3726
3909
|
const deserializeAws_restJson1ImportAssetFromSignedUrlJobErrorDetails = (output, context) => {
|
|
3727
3910
|
return {
|
|
3728
3911
|
AssetName: smithy_client_1.expectString(output.AssetName),
|
|
@@ -3928,6 +4111,9 @@ const deserializeAws_restJson1ResponseDetails = (output, context) => {
|
|
|
3928
4111
|
ExportRevisionsToS3: output.ExportRevisionsToS3 !== undefined && output.ExportRevisionsToS3 !== null
|
|
3929
4112
|
? deserializeAws_restJson1ExportRevisionsToS3ResponseDetails(output.ExportRevisionsToS3, context)
|
|
3930
4113
|
: undefined,
|
|
4114
|
+
ImportAssetFromApiGatewayApi: output.ImportAssetFromApiGatewayApi !== undefined && output.ImportAssetFromApiGatewayApi !== null
|
|
4115
|
+
? deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails(output.ImportAssetFromApiGatewayApi, context)
|
|
4116
|
+
: undefined,
|
|
3931
4117
|
ImportAssetFromSignedUrl: output.ImportAssetFromSignedUrl !== undefined && output.ImportAssetFromSignedUrl !== null
|
|
3932
4118
|
? deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails(output.ImportAssetFromSignedUrl, context)
|
|
3933
4119
|
: undefined,
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|