@aws-sdk/client-dataexchange 3.54.1 → 3.58.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 +27 -0
- package/dist-cjs/DataExchange.js +15 -0
- package/dist-cjs/DataExchangeClient.js +13 -13
- package/dist-cjs/commands/CancelJobCommand.js +3 -3
- package/dist-cjs/commands/CreateDataSetCommand.js +3 -3
- package/dist-cjs/commands/CreateEventActionCommand.js +3 -3
- package/dist-cjs/commands/CreateJobCommand.js +3 -3
- package/dist-cjs/commands/CreateRevisionCommand.js +3 -3
- package/dist-cjs/commands/DeleteAssetCommand.js +3 -3
- package/dist-cjs/commands/DeleteDataSetCommand.js +3 -3
- package/dist-cjs/commands/DeleteEventActionCommand.js +3 -3
- package/dist-cjs/commands/DeleteRevisionCommand.js +3 -3
- package/dist-cjs/commands/GetAssetCommand.js +3 -3
- package/dist-cjs/commands/GetDataSetCommand.js +3 -3
- package/dist-cjs/commands/GetEventActionCommand.js +3 -3
- package/dist-cjs/commands/GetJobCommand.js +3 -3
- package/dist-cjs/commands/GetRevisionCommand.js +3 -3
- package/dist-cjs/commands/ListDataSetRevisionsCommand.js +3 -3
- package/dist-cjs/commands/ListDataSetsCommand.js +3 -3
- package/dist-cjs/commands/ListEventActionsCommand.js +3 -3
- package/dist-cjs/commands/ListJobsCommand.js +3 -3
- package/dist-cjs/commands/ListRevisionAssetsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/RevokeRevisionCommand.js +36 -0
- package/dist-cjs/commands/SendApiAssetCommand.js +3 -3
- package/dist-cjs/commands/StartJobCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateAssetCommand.js +3 -3
- package/dist-cjs/commands/UpdateDataSetCommand.js +3 -3
- package/dist-cjs/commands/UpdateEventActionCommand.js +3 -3
- package/dist-cjs/commands/UpdateRevisionCommand.js +3 -3
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +14 -2
- package/dist-cjs/protocols/Aws_restJson1.js +480 -301
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/DataExchange.js +43 -28
- package/dist-es/commands/RevokeRevisionCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/pagination/ListDataSetRevisionsPaginator.js +4 -4
- package/dist-es/pagination/ListDataSetsPaginator.js +4 -4
- package/dist-es/pagination/ListEventActionsPaginator.js +4 -4
- package/dist-es/pagination/ListJobsPaginator.js +4 -4
- package/dist-es/pagination/ListRevisionAssetsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +250 -43
- package/dist-types/DataExchange.d.ts +7 -0
- package/dist-types/DataExchangeClient.d.ts +3 -2
- package/dist-types/commands/RevokeRevisionCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +124 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/DataExchange.d.ts +5 -0
- package/dist-types/ts3.4/DataExchangeClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/RevokeRevisionCommand.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 +65 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -11,7 +11,7 @@ export var serializeAws_restJson1CancelJobCommand = function (input, context) {
|
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
|
-
resolvedPath = ""
|
|
14
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/jobs/{JobId}";
|
|
15
15
|
if (input.JobId !== undefined) {
|
|
16
16
|
labelValue = input.JobId;
|
|
17
17
|
if (labelValue.length <= 0) {
|
|
@@ -44,7 +44,7 @@ export var serializeAws_restJson1CreateDataSetCommand = function (input, context
|
|
|
44
44
|
headers = {
|
|
45
45
|
"content-type": "application/json",
|
|
46
46
|
};
|
|
47
|
-
resolvedPath = ""
|
|
47
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets";
|
|
48
48
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AssetType !== undefined && input.AssetType !== null && { AssetType: input.AssetType })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
49
49
|
input.Tags !== null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) })));
|
|
50
50
|
return [2, new __HttpRequest({
|
|
@@ -69,7 +69,7 @@ export var serializeAws_restJson1CreateEventActionCommand = function (input, con
|
|
|
69
69
|
headers = {
|
|
70
70
|
"content-type": "application/json",
|
|
71
71
|
};
|
|
72
|
-
resolvedPath = ""
|
|
72
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions";
|
|
73
73
|
body = JSON.stringify(__assign(__assign({}, (input.Action !== undefined &&
|
|
74
74
|
input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) })), (input.Event !== undefined &&
|
|
75
75
|
input.Event !== null && { Event: serializeAws_restJson1Event(input.Event, context) })));
|
|
@@ -95,7 +95,7 @@ export var serializeAws_restJson1CreateJobCommand = function (input, context) {
|
|
|
95
95
|
headers = {
|
|
96
96
|
"content-type": "application/json",
|
|
97
97
|
};
|
|
98
|
-
resolvedPath = ""
|
|
98
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/jobs";
|
|
99
99
|
body = JSON.stringify(__assign(__assign({}, (input.Details !== undefined &&
|
|
100
100
|
input.Details !== null && { Details: serializeAws_restJson1RequestDetails(input.Details, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
101
101
|
return [2, new __HttpRequest({
|
|
@@ -120,7 +120,7 @@ export var serializeAws_restJson1CreateRevisionCommand = function (input, contex
|
|
|
120
120
|
headers = {
|
|
121
121
|
"content-type": "application/json",
|
|
122
122
|
};
|
|
123
|
-
resolvedPath = ""
|
|
123
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets/{DataSetId}/revisions";
|
|
124
124
|
if (input.DataSetId !== undefined) {
|
|
125
125
|
labelValue = input.DataSetId;
|
|
126
126
|
if (labelValue.length <= 0) {
|
|
@@ -153,7 +153,7 @@ export var serializeAws_restJson1DeleteAssetCommand = function (input, context)
|
|
|
153
153
|
case 1:
|
|
154
154
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
155
155
|
headers = {};
|
|
156
|
-
resolvedPath = ""
|
|
156
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
157
157
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}";
|
|
158
158
|
if (input.AssetId !== undefined) {
|
|
159
159
|
labelValue = input.AssetId;
|
|
@@ -205,7 +205,7 @@ export var serializeAws_restJson1DeleteDataSetCommand = function (input, context
|
|
|
205
205
|
case 1:
|
|
206
206
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
207
207
|
headers = {};
|
|
208
|
-
resolvedPath = ""
|
|
208
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets/{DataSetId}";
|
|
209
209
|
if (input.DataSetId !== undefined) {
|
|
210
210
|
labelValue = input.DataSetId;
|
|
211
211
|
if (labelValue.length <= 0) {
|
|
@@ -236,7 +236,7 @@ export var serializeAws_restJson1DeleteEventActionCommand = function (input, con
|
|
|
236
236
|
case 1:
|
|
237
237
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
238
238
|
headers = {};
|
|
239
|
-
resolvedPath = ""
|
|
239
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions/{EventActionId}";
|
|
240
240
|
if (input.EventActionId !== undefined) {
|
|
241
241
|
labelValue = input.EventActionId;
|
|
242
242
|
if (labelValue.length <= 0) {
|
|
@@ -267,7 +267,7 @@ export var serializeAws_restJson1DeleteRevisionCommand = function (input, contex
|
|
|
267
267
|
case 1:
|
|
268
268
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
269
269
|
headers = {};
|
|
270
|
-
resolvedPath = ""
|
|
270
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
271
271
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}";
|
|
272
272
|
if (input.DataSetId !== undefined) {
|
|
273
273
|
labelValue = input.DataSetId;
|
|
@@ -309,7 +309,7 @@ export var serializeAws_restJson1GetAssetCommand = function (input, context) { r
|
|
|
309
309
|
case 1:
|
|
310
310
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
311
311
|
headers = {};
|
|
312
|
-
resolvedPath = ""
|
|
312
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
313
313
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}";
|
|
314
314
|
if (input.AssetId !== undefined) {
|
|
315
315
|
labelValue = input.AssetId;
|
|
@@ -361,7 +361,7 @@ export var serializeAws_restJson1GetDataSetCommand = function (input, context) {
|
|
|
361
361
|
case 1:
|
|
362
362
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
363
363
|
headers = {};
|
|
364
|
-
resolvedPath = ""
|
|
364
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets/{DataSetId}";
|
|
365
365
|
if (input.DataSetId !== undefined) {
|
|
366
366
|
labelValue = input.DataSetId;
|
|
367
367
|
if (labelValue.length <= 0) {
|
|
@@ -392,7 +392,7 @@ export var serializeAws_restJson1GetEventActionCommand = function (input, contex
|
|
|
392
392
|
case 1:
|
|
393
393
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
394
394
|
headers = {};
|
|
395
|
-
resolvedPath = ""
|
|
395
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions/{EventActionId}";
|
|
396
396
|
if (input.EventActionId !== undefined) {
|
|
397
397
|
labelValue = input.EventActionId;
|
|
398
398
|
if (labelValue.length <= 0) {
|
|
@@ -423,7 +423,7 @@ export var serializeAws_restJson1GetJobCommand = function (input, context) { ret
|
|
|
423
423
|
case 1:
|
|
424
424
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
425
425
|
headers = {};
|
|
426
|
-
resolvedPath = ""
|
|
426
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/jobs/{JobId}";
|
|
427
427
|
if (input.JobId !== undefined) {
|
|
428
428
|
labelValue = input.JobId;
|
|
429
429
|
if (labelValue.length <= 0) {
|
|
@@ -454,7 +454,7 @@ export var serializeAws_restJson1GetRevisionCommand = function (input, context)
|
|
|
454
454
|
case 1:
|
|
455
455
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
456
456
|
headers = {};
|
|
457
|
-
resolvedPath = ""
|
|
457
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
458
458
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}";
|
|
459
459
|
if (input.DataSetId !== undefined) {
|
|
460
460
|
labelValue = input.DataSetId;
|
|
@@ -496,7 +496,7 @@ export var serializeAws_restJson1ListDataSetRevisionsCommand = function (input,
|
|
|
496
496
|
case 1:
|
|
497
497
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
498
498
|
headers = {};
|
|
499
|
-
resolvedPath = ""
|
|
499
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets/{DataSetId}/revisions";
|
|
500
500
|
if (input.DataSetId !== undefined) {
|
|
501
501
|
labelValue = input.DataSetId;
|
|
502
502
|
if (labelValue.length <= 0) {
|
|
@@ -529,7 +529,7 @@ export var serializeAws_restJson1ListDataSetsCommand = function (input, context)
|
|
|
529
529
|
case 1:
|
|
530
530
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
531
531
|
headers = {};
|
|
532
|
-
resolvedPath = ""
|
|
532
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets";
|
|
533
533
|
query = __assign(__assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.Origin !== undefined && { origin: input.Origin }));
|
|
534
534
|
return [2, new __HttpRequest({
|
|
535
535
|
protocol: protocol,
|
|
@@ -552,7 +552,7 @@ export var serializeAws_restJson1ListEventActionsCommand = function (input, cont
|
|
|
552
552
|
case 1:
|
|
553
553
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
554
554
|
headers = {};
|
|
555
|
-
resolvedPath = ""
|
|
555
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions";
|
|
556
556
|
query = __assign(__assign(__assign({}, (input.EventSourceId !== undefined && { eventSourceId: input.EventSourceId })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
557
557
|
return [2, new __HttpRequest({
|
|
558
558
|
protocol: protocol,
|
|
@@ -575,7 +575,7 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
575
575
|
case 1:
|
|
576
576
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
577
577
|
headers = {};
|
|
578
|
-
resolvedPath = ""
|
|
578
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/jobs";
|
|
579
579
|
query = __assign(__assign(__assign(__assign({}, (input.DataSetId !== undefined && { dataSetId: input.DataSetId })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.RevisionId !== undefined && { revisionId: input.RevisionId }));
|
|
580
580
|
return [2, new __HttpRequest({
|
|
581
581
|
protocol: protocol,
|
|
@@ -598,7 +598,7 @@ export var serializeAws_restJson1ListRevisionAssetsCommand = function (input, co
|
|
|
598
598
|
case 1:
|
|
599
599
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
600
600
|
headers = {};
|
|
601
|
-
resolvedPath = ""
|
|
601
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
602
602
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets";
|
|
603
603
|
if (input.DataSetId !== undefined) {
|
|
604
604
|
labelValue = input.DataSetId;
|
|
@@ -642,7 +642,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
642
642
|
case 1:
|
|
643
643
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
644
644
|
headers = {};
|
|
645
|
-
resolvedPath = ""
|
|
645
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
646
646
|
if (input.ResourceArn !== undefined) {
|
|
647
647
|
labelValue = input.ResourceArn;
|
|
648
648
|
if (labelValue.length <= 0) {
|
|
@@ -665,6 +665,52 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
665
665
|
}
|
|
666
666
|
});
|
|
667
667
|
}); };
|
|
668
|
+
export var serializeAws_restJson1RevokeRevisionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
669
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
670
|
+
return __generator(this, function (_c) {
|
|
671
|
+
switch (_c.label) {
|
|
672
|
+
case 0: return [4, context.endpoint()];
|
|
673
|
+
case 1:
|
|
674
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
675
|
+
headers = {
|
|
676
|
+
"content-type": "application/json",
|
|
677
|
+
};
|
|
678
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
679
|
+
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/revoke";
|
|
680
|
+
if (input.DataSetId !== undefined) {
|
|
681
|
+
labelValue = input.DataSetId;
|
|
682
|
+
if (labelValue.length <= 0) {
|
|
683
|
+
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
684
|
+
}
|
|
685
|
+
resolvedPath = resolvedPath.replace("{DataSetId}", __extendedEncodeURIComponent(labelValue));
|
|
686
|
+
}
|
|
687
|
+
else {
|
|
688
|
+
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
689
|
+
}
|
|
690
|
+
if (input.RevisionId !== undefined) {
|
|
691
|
+
labelValue = input.RevisionId;
|
|
692
|
+
if (labelValue.length <= 0) {
|
|
693
|
+
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
694
|
+
}
|
|
695
|
+
resolvedPath = resolvedPath.replace("{RevisionId}", __extendedEncodeURIComponent(labelValue));
|
|
696
|
+
}
|
|
697
|
+
else {
|
|
698
|
+
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
699
|
+
}
|
|
700
|
+
body = JSON.stringify(__assign({}, (input.RevocationComment !== undefined &&
|
|
701
|
+
input.RevocationComment !== null && { RevocationComment: input.RevocationComment })));
|
|
702
|
+
return [2, new __HttpRequest({
|
|
703
|
+
protocol: protocol,
|
|
704
|
+
hostname: hostname,
|
|
705
|
+
port: port,
|
|
706
|
+
method: "POST",
|
|
707
|
+
headers: headers,
|
|
708
|
+
path: resolvedPath,
|
|
709
|
+
body: body,
|
|
710
|
+
})];
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
}); };
|
|
668
714
|
export var serializeAws_restJson1SendApiAssetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
669
715
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
670
716
|
return __generator(this, function (_c) {
|
|
@@ -675,9 +721,9 @@ export var serializeAws_restJson1SendApiAssetCommand = function (input, context)
|
|
|
675
721
|
headers = __assign(__assign(__assign(__assign(__assign(__assign({ "content-type": "text/plain" }, (isSerializableHeaderValue(input.AssetId) && { "x-amzn-dataexchange-asset-id": input.AssetId })), (isSerializableHeaderValue(input.DataSetId) && { "x-amzn-dataexchange-data-set-id": input.DataSetId })), (isSerializableHeaderValue(input.Method) && { "x-amzn-dataexchange-http-method": input.Method })), (isSerializableHeaderValue(input.Path) && { "x-amzn-dataexchange-path": input.Path })), (isSerializableHeaderValue(input.RevisionId) && { "x-amzn-dataexchange-revision-id": input.RevisionId })), (input.RequestHeaders !== undefined &&
|
|
676
722
|
Object.keys(input.RequestHeaders).reduce(function (acc, suffix) {
|
|
677
723
|
var _a;
|
|
678
|
-
return (__assign(__assign({}, acc), (_a = {}, _a["x-amzn-dataexchange-header-"
|
|
724
|
+
return (__assign(__assign({}, acc), (_a = {}, _a["x-amzn-dataexchange-header-".concat(suffix.toLowerCase())] = input.RequestHeaders[suffix], _a)));
|
|
679
725
|
}, {})));
|
|
680
|
-
resolvedPath = ""
|
|
726
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1";
|
|
681
727
|
query = __assign({}, (input.QueryStringParameters !== undefined && input.QueryStringParameters));
|
|
682
728
|
if (input.Body !== undefined) {
|
|
683
729
|
body = input.Body;
|
|
@@ -712,7 +758,7 @@ export var serializeAws_restJson1StartJobCommand = function (input, context) { r
|
|
|
712
758
|
case 1:
|
|
713
759
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
714
760
|
headers = {};
|
|
715
|
-
resolvedPath = ""
|
|
761
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/jobs/{JobId}";
|
|
716
762
|
if (input.JobId !== undefined) {
|
|
717
763
|
labelValue = input.JobId;
|
|
718
764
|
if (labelValue.length <= 0) {
|
|
@@ -745,7 +791,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
745
791
|
headers = {
|
|
746
792
|
"content-type": "application/json",
|
|
747
793
|
};
|
|
748
|
-
resolvedPath = ""
|
|
794
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
749
795
|
if (input.ResourceArn !== undefined) {
|
|
750
796
|
labelValue = input.ResourceArn;
|
|
751
797
|
if (labelValue.length <= 0) {
|
|
@@ -778,7 +824,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
778
824
|
case 1:
|
|
779
825
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
780
826
|
headers = {};
|
|
781
|
-
resolvedPath = ""
|
|
827
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
782
828
|
if (input.ResourceArn !== undefined) {
|
|
783
829
|
labelValue = input.ResourceArn;
|
|
784
830
|
if (labelValue.length <= 0) {
|
|
@@ -813,7 +859,7 @@ export var serializeAws_restJson1UpdateAssetCommand = function (input, context)
|
|
|
813
859
|
headers = {
|
|
814
860
|
"content-type": "application/json",
|
|
815
861
|
};
|
|
816
|
-
resolvedPath = ""
|
|
862
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
817
863
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}";
|
|
818
864
|
if (input.AssetId !== undefined) {
|
|
819
865
|
labelValue = input.AssetId;
|
|
@@ -868,7 +914,7 @@ export var serializeAws_restJson1UpdateDataSetCommand = function (input, context
|
|
|
868
914
|
headers = {
|
|
869
915
|
"content-type": "application/json",
|
|
870
916
|
};
|
|
871
|
-
resolvedPath = ""
|
|
917
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/data-sets/{DataSetId}";
|
|
872
918
|
if (input.DataSetId !== undefined) {
|
|
873
919
|
labelValue = input.DataSetId;
|
|
874
920
|
if (labelValue.length <= 0) {
|
|
@@ -902,7 +948,7 @@ export var serializeAws_restJson1UpdateEventActionCommand = function (input, con
|
|
|
902
948
|
headers = {
|
|
903
949
|
"content-type": "application/json",
|
|
904
950
|
};
|
|
905
|
-
resolvedPath = ""
|
|
951
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/event-actions/{EventActionId}";
|
|
906
952
|
if (input.EventActionId !== undefined) {
|
|
907
953
|
labelValue = input.EventActionId;
|
|
908
954
|
if (labelValue.length <= 0) {
|
|
@@ -937,7 +983,7 @@ export var serializeAws_restJson1UpdateRevisionCommand = function (input, contex
|
|
|
937
983
|
headers = {
|
|
938
984
|
"content-type": "application/json",
|
|
939
985
|
};
|
|
940
|
-
resolvedPath = ""
|
|
986
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
941
987
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}";
|
|
942
988
|
if (input.DataSetId !== undefined) {
|
|
943
989
|
labelValue = input.DataSetId;
|
|
@@ -1311,27 +1357,31 @@ var deserializeAws_restJson1CreateJobCommandError = function (output, context) {
|
|
|
1311
1357
|
switch (_b) {
|
|
1312
1358
|
case "AccessDeniedException": return [3, 2];
|
|
1313
1359
|
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
1314
|
-
case "
|
|
1315
|
-
case "com.amazonaws.dataexchange#
|
|
1316
|
-
case "
|
|
1317
|
-
case "com.amazonaws.dataexchange#
|
|
1318
|
-
case "
|
|
1319
|
-
case "com.amazonaws.dataexchange#
|
|
1320
|
-
case "
|
|
1321
|
-
case "com.amazonaws.dataexchange#
|
|
1360
|
+
case "ConflictException": return [3, 4];
|
|
1361
|
+
case "com.amazonaws.dataexchange#ConflictException": return [3, 4];
|
|
1362
|
+
case "InternalServerException": return [3, 6];
|
|
1363
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 6];
|
|
1364
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1365
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 8];
|
|
1366
|
+
case "ThrottlingException": return [3, 10];
|
|
1367
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 10];
|
|
1368
|
+
case "ValidationException": return [3, 12];
|
|
1369
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 12];
|
|
1322
1370
|
}
|
|
1323
|
-
return [3,
|
|
1371
|
+
return [3, 14];
|
|
1324
1372
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1325
1373
|
case 3: throw _d.sent();
|
|
1326
|
-
case 4: return [4,
|
|
1374
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1327
1375
|
case 5: throw _d.sent();
|
|
1328
|
-
case 6: return [4,
|
|
1376
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1329
1377
|
case 7: throw _d.sent();
|
|
1330
|
-
case 8: return [4,
|
|
1378
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1331
1379
|
case 9: throw _d.sent();
|
|
1332
|
-
case 10: return [4,
|
|
1380
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1333
1381
|
case 11: throw _d.sent();
|
|
1334
|
-
case 12:
|
|
1382
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1383
|
+
case 13: throw _d.sent();
|
|
1384
|
+
case 14:
|
|
1335
1385
|
parsedBody = parsedOutput.body;
|
|
1336
1386
|
response = new __BaseException({
|
|
1337
1387
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -1358,6 +1408,9 @@ export var deserializeAws_restJson1CreateRevisionCommand = function (output, con
|
|
|
1358
1408
|
DataSetId: undefined,
|
|
1359
1409
|
Finalized: undefined,
|
|
1360
1410
|
Id: undefined,
|
|
1411
|
+
RevocationComment: undefined,
|
|
1412
|
+
Revoked: undefined,
|
|
1413
|
+
RevokedAt: undefined,
|
|
1361
1414
|
SourceId: undefined,
|
|
1362
1415
|
Tags: undefined,
|
|
1363
1416
|
UpdatedAt: undefined,
|
|
@@ -1385,6 +1438,15 @@ export var deserializeAws_restJson1CreateRevisionCommand = function (output, con
|
|
|
1385
1438
|
if (data.Id !== undefined && data.Id !== null) {
|
|
1386
1439
|
contents.Id = __expectString(data.Id);
|
|
1387
1440
|
}
|
|
1441
|
+
if (data.RevocationComment !== undefined && data.RevocationComment !== null) {
|
|
1442
|
+
contents.RevocationComment = __expectString(data.RevocationComment);
|
|
1443
|
+
}
|
|
1444
|
+
if (data.Revoked !== undefined && data.Revoked !== null) {
|
|
1445
|
+
contents.Revoked = __expectBoolean(data.Revoked);
|
|
1446
|
+
}
|
|
1447
|
+
if (data.RevokedAt !== undefined && data.RevokedAt !== null) {
|
|
1448
|
+
contents.RevokedAt = __expectNonNull(__parseRfc3339DateTime(data.RevokedAt));
|
|
1449
|
+
}
|
|
1388
1450
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
1389
1451
|
contents.SourceId = __expectString(data.SourceId);
|
|
1390
1452
|
}
|
|
@@ -2130,6 +2192,9 @@ export var deserializeAws_restJson1GetRevisionCommand = function (output, contex
|
|
|
2130
2192
|
DataSetId: undefined,
|
|
2131
2193
|
Finalized: undefined,
|
|
2132
2194
|
Id: undefined,
|
|
2195
|
+
RevocationComment: undefined,
|
|
2196
|
+
Revoked: undefined,
|
|
2197
|
+
RevokedAt: undefined,
|
|
2133
2198
|
SourceId: undefined,
|
|
2134
2199
|
Tags: undefined,
|
|
2135
2200
|
UpdatedAt: undefined,
|
|
@@ -2157,6 +2222,15 @@ export var deserializeAws_restJson1GetRevisionCommand = function (output, contex
|
|
|
2157
2222
|
if (data.Id !== undefined && data.Id !== null) {
|
|
2158
2223
|
contents.Id = __expectString(data.Id);
|
|
2159
2224
|
}
|
|
2225
|
+
if (data.RevocationComment !== undefined && data.RevocationComment !== null) {
|
|
2226
|
+
contents.RevocationComment = __expectString(data.RevocationComment);
|
|
2227
|
+
}
|
|
2228
|
+
if (data.Revoked !== undefined && data.Revoked !== null) {
|
|
2229
|
+
contents.Revoked = __expectBoolean(data.Revoked);
|
|
2230
|
+
}
|
|
2231
|
+
if (data.RevokedAt !== undefined && data.RevokedAt !== null) {
|
|
2232
|
+
contents.RevokedAt = __expectNonNull(__parseRfc3339DateTime(data.RevokedAt));
|
|
2233
|
+
}
|
|
2160
2234
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
2161
2235
|
contents.SourceId = __expectString(data.SourceId);
|
|
2162
2236
|
}
|
|
@@ -2625,6 +2699,122 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2625
2699
|
}
|
|
2626
2700
|
});
|
|
2627
2701
|
}); };
|
|
2702
|
+
export var deserializeAws_restJson1RevokeRevisionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2703
|
+
var contents, data, _a, _b;
|
|
2704
|
+
return __generator(this, function (_c) {
|
|
2705
|
+
switch (_c.label) {
|
|
2706
|
+
case 0:
|
|
2707
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2708
|
+
return [2, deserializeAws_restJson1RevokeRevisionCommandError(output, context)];
|
|
2709
|
+
}
|
|
2710
|
+
contents = {
|
|
2711
|
+
$metadata: deserializeMetadata(output),
|
|
2712
|
+
Arn: undefined,
|
|
2713
|
+
Comment: undefined,
|
|
2714
|
+
CreatedAt: undefined,
|
|
2715
|
+
DataSetId: undefined,
|
|
2716
|
+
Finalized: undefined,
|
|
2717
|
+
Id: undefined,
|
|
2718
|
+
RevocationComment: undefined,
|
|
2719
|
+
Revoked: undefined,
|
|
2720
|
+
RevokedAt: undefined,
|
|
2721
|
+
SourceId: undefined,
|
|
2722
|
+
UpdatedAt: undefined,
|
|
2723
|
+
};
|
|
2724
|
+
_a = __expectNonNull;
|
|
2725
|
+
_b = __expectObject;
|
|
2726
|
+
return [4, parseBody(output.body, context)];
|
|
2727
|
+
case 1:
|
|
2728
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2729
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2730
|
+
contents.Arn = __expectString(data.Arn);
|
|
2731
|
+
}
|
|
2732
|
+
if (data.Comment !== undefined && data.Comment !== null) {
|
|
2733
|
+
contents.Comment = __expectString(data.Comment);
|
|
2734
|
+
}
|
|
2735
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
2736
|
+
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
|
|
2737
|
+
}
|
|
2738
|
+
if (data.DataSetId !== undefined && data.DataSetId !== null) {
|
|
2739
|
+
contents.DataSetId = __expectString(data.DataSetId);
|
|
2740
|
+
}
|
|
2741
|
+
if (data.Finalized !== undefined && data.Finalized !== null) {
|
|
2742
|
+
contents.Finalized = __expectBoolean(data.Finalized);
|
|
2743
|
+
}
|
|
2744
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
2745
|
+
contents.Id = __expectString(data.Id);
|
|
2746
|
+
}
|
|
2747
|
+
if (data.RevocationComment !== undefined && data.RevocationComment !== null) {
|
|
2748
|
+
contents.RevocationComment = __expectString(data.RevocationComment);
|
|
2749
|
+
}
|
|
2750
|
+
if (data.Revoked !== undefined && data.Revoked !== null) {
|
|
2751
|
+
contents.Revoked = __expectBoolean(data.Revoked);
|
|
2752
|
+
}
|
|
2753
|
+
if (data.RevokedAt !== undefined && data.RevokedAt !== null) {
|
|
2754
|
+
contents.RevokedAt = __expectNonNull(__parseRfc3339DateTime(data.RevokedAt));
|
|
2755
|
+
}
|
|
2756
|
+
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
2757
|
+
contents.SourceId = __expectString(data.SourceId);
|
|
2758
|
+
}
|
|
2759
|
+
if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
|
|
2760
|
+
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
|
|
2761
|
+
}
|
|
2762
|
+
return [2, Promise.resolve(contents)];
|
|
2763
|
+
}
|
|
2764
|
+
});
|
|
2765
|
+
}); };
|
|
2766
|
+
var deserializeAws_restJson1RevokeRevisionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2767
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2768
|
+
var _c;
|
|
2769
|
+
return __generator(this, function (_d) {
|
|
2770
|
+
switch (_d.label) {
|
|
2771
|
+
case 0:
|
|
2772
|
+
_a = [__assign({}, output)];
|
|
2773
|
+
_c = {};
|
|
2774
|
+
return [4, parseBody(output.body, context)];
|
|
2775
|
+
case 1:
|
|
2776
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2777
|
+
errorCode = "UnknownError";
|
|
2778
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2779
|
+
_b = errorCode;
|
|
2780
|
+
switch (_b) {
|
|
2781
|
+
case "AccessDeniedException": return [3, 2];
|
|
2782
|
+
case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
|
|
2783
|
+
case "ConflictException": return [3, 4];
|
|
2784
|
+
case "com.amazonaws.dataexchange#ConflictException": return [3, 4];
|
|
2785
|
+
case "InternalServerException": return [3, 6];
|
|
2786
|
+
case "com.amazonaws.dataexchange#InternalServerException": return [3, 6];
|
|
2787
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2788
|
+
case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 8];
|
|
2789
|
+
case "ThrottlingException": return [3, 10];
|
|
2790
|
+
case "com.amazonaws.dataexchange#ThrottlingException": return [3, 10];
|
|
2791
|
+
case "ValidationException": return [3, 12];
|
|
2792
|
+
case "com.amazonaws.dataexchange#ValidationException": return [3, 12];
|
|
2793
|
+
}
|
|
2794
|
+
return [3, 14];
|
|
2795
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2796
|
+
case 3: throw _d.sent();
|
|
2797
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2798
|
+
case 5: throw _d.sent();
|
|
2799
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2800
|
+
case 7: throw _d.sent();
|
|
2801
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2802
|
+
case 9: throw _d.sent();
|
|
2803
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2804
|
+
case 11: throw _d.sent();
|
|
2805
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2806
|
+
case 13: throw _d.sent();
|
|
2807
|
+
case 14:
|
|
2808
|
+
parsedBody = parsedOutput.body;
|
|
2809
|
+
response = new __BaseException({
|
|
2810
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2811
|
+
$fault: "client",
|
|
2812
|
+
$metadata: deserializeMetadata(output),
|
|
2813
|
+
});
|
|
2814
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2815
|
+
}
|
|
2816
|
+
});
|
|
2817
|
+
}); };
|
|
2628
2818
|
export var deserializeAws_restJson1SendApiAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2629
2819
|
var contents, data;
|
|
2630
2820
|
return __generator(this, function (_a) {
|
|
@@ -3190,6 +3380,9 @@ export var deserializeAws_restJson1UpdateRevisionCommand = function (output, con
|
|
|
3190
3380
|
DataSetId: undefined,
|
|
3191
3381
|
Finalized: undefined,
|
|
3192
3382
|
Id: undefined,
|
|
3383
|
+
RevocationComment: undefined,
|
|
3384
|
+
Revoked: undefined,
|
|
3385
|
+
RevokedAt: undefined,
|
|
3193
3386
|
SourceId: undefined,
|
|
3194
3387
|
UpdatedAt: undefined,
|
|
3195
3388
|
};
|
|
@@ -3216,6 +3409,15 @@ export var deserializeAws_restJson1UpdateRevisionCommand = function (output, con
|
|
|
3216
3409
|
if (data.Id !== undefined && data.Id !== null) {
|
|
3217
3410
|
contents.Id = __expectString(data.Id);
|
|
3218
3411
|
}
|
|
3412
|
+
if (data.RevocationComment !== undefined && data.RevocationComment !== null) {
|
|
3413
|
+
contents.RevocationComment = __expectString(data.RevocationComment);
|
|
3414
|
+
}
|
|
3415
|
+
if (data.Revoked !== undefined && data.Revoked !== null) {
|
|
3416
|
+
contents.Revoked = __expectBoolean(data.Revoked);
|
|
3417
|
+
}
|
|
3418
|
+
if (data.RevokedAt !== undefined && data.RevokedAt !== null) {
|
|
3419
|
+
contents.RevokedAt = __expectNonNull(__parseRfc3339DateTime(data.RevokedAt));
|
|
3420
|
+
}
|
|
3219
3421
|
if (data.SourceId !== undefined && data.SourceId !== null) {
|
|
3220
3422
|
contents.SourceId = __expectString(data.SourceId);
|
|
3221
3423
|
}
|
|
@@ -3983,6 +4185,11 @@ var deserializeAws_restJson1RevisionEntry = function (output, context) {
|
|
|
3983
4185
|
DataSetId: __expectString(output.DataSetId),
|
|
3984
4186
|
Finalized: __expectBoolean(output.Finalized),
|
|
3985
4187
|
Id: __expectString(output.Id),
|
|
4188
|
+
RevocationComment: __expectString(output.RevocationComment),
|
|
4189
|
+
Revoked: __expectBoolean(output.Revoked),
|
|
4190
|
+
RevokedAt: output.RevokedAt !== undefined && output.RevokedAt !== null
|
|
4191
|
+
? __expectNonNull(__parseRfc3339DateTime(output.RevokedAt))
|
|
4192
|
+
: undefined,
|
|
3986
4193
|
SourceId: __expectString(output.SourceId),
|
|
3987
4194
|
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
3988
4195
|
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
|
|
@@ -19,6 +19,7 @@ import { ListEventActionsCommandInput, ListEventActionsCommandOutput } from "./c
|
|
|
19
19
|
import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
|
|
20
20
|
import { ListRevisionAssetsCommandInput, ListRevisionAssetsCommandOutput } from "./commands/ListRevisionAssetsCommand";
|
|
21
21
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
22
|
+
import { RevokeRevisionCommandInput, RevokeRevisionCommandOutput } from "./commands/RevokeRevisionCommand";
|
|
22
23
|
import { SendApiAssetCommandInput, SendApiAssetCommandOutput } from "./commands/SendApiAssetCommand";
|
|
23
24
|
import { StartJobCommandInput, StartJobCommandOutput } from "./commands/StartJobCommand";
|
|
24
25
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
@@ -152,6 +153,12 @@ export declare class DataExchange extends DataExchangeClient {
|
|
|
152
153
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
153
154
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
154
155
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
156
|
+
/**
|
|
157
|
+
* <p>This operation revokes subscribers' access to a revision.</p>
|
|
158
|
+
*/
|
|
159
|
+
revokeRevision(args: RevokeRevisionCommandInput, options?: __HttpHandlerOptions): Promise<RevokeRevisionCommandOutput>;
|
|
160
|
+
revokeRevision(args: RevokeRevisionCommandInput, cb: (err: any, data?: RevokeRevisionCommandOutput) => void): void;
|
|
161
|
+
revokeRevision(args: RevokeRevisionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeRevisionCommandOutput) => void): void;
|
|
155
162
|
/**
|
|
156
163
|
* <p>This operation invokes an API Gateway API asset. The request is proxied to the provider’s API Gateway API.</p>
|
|
157
164
|
*/
|
|
@@ -26,6 +26,7 @@ import { ListEventActionsCommandInput, ListEventActionsCommandOutput } from "./c
|
|
|
26
26
|
import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
|
|
27
27
|
import { ListRevisionAssetsCommandInput, ListRevisionAssetsCommandOutput } from "./commands/ListRevisionAssetsCommand";
|
|
28
28
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
29
|
+
import { RevokeRevisionCommandInput, RevokeRevisionCommandOutput } from "./commands/RevokeRevisionCommand";
|
|
29
30
|
import { SendApiAssetCommandInput, SendApiAssetCommandOutput } from "./commands/SendApiAssetCommand";
|
|
30
31
|
import { StartJobCommandInput, StartJobCommandOutput } from "./commands/StartJobCommand";
|
|
31
32
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
@@ -34,8 +35,8 @@ import { UpdateAssetCommandInput, UpdateAssetCommandOutput } from "./commands/Up
|
|
|
34
35
|
import { UpdateDataSetCommandInput, UpdateDataSetCommandOutput } from "./commands/UpdateDataSetCommand";
|
|
35
36
|
import { UpdateEventActionCommandInput, UpdateEventActionCommandOutput } from "./commands/UpdateEventActionCommand";
|
|
36
37
|
import { UpdateRevisionCommandInput, UpdateRevisionCommandOutput } from "./commands/UpdateRevisionCommand";
|
|
37
|
-
export declare type ServiceInputTypes = CancelJobCommandInput | CreateDataSetCommandInput | CreateEventActionCommandInput | CreateJobCommandInput | CreateRevisionCommandInput | DeleteAssetCommandInput | DeleteDataSetCommandInput | DeleteEventActionCommandInput | DeleteRevisionCommandInput | GetAssetCommandInput | GetDataSetCommandInput | GetEventActionCommandInput | GetJobCommandInput | GetRevisionCommandInput | ListDataSetRevisionsCommandInput | ListDataSetsCommandInput | ListEventActionsCommandInput | ListJobsCommandInput | ListRevisionAssetsCommandInput | ListTagsForResourceCommandInput | SendApiAssetCommandInput | StartJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAssetCommandInput | UpdateDataSetCommandInput | UpdateEventActionCommandInput | UpdateRevisionCommandInput;
|
|
38
|
-
export declare type ServiceOutputTypes = CancelJobCommandOutput | CreateDataSetCommandOutput | CreateEventActionCommandOutput | CreateJobCommandOutput | CreateRevisionCommandOutput | DeleteAssetCommandOutput | DeleteDataSetCommandOutput | DeleteEventActionCommandOutput | DeleteRevisionCommandOutput | GetAssetCommandOutput | GetDataSetCommandOutput | GetEventActionCommandOutput | GetJobCommandOutput | GetRevisionCommandOutput | ListDataSetRevisionsCommandOutput | ListDataSetsCommandOutput | ListEventActionsCommandOutput | ListJobsCommandOutput | ListRevisionAssetsCommandOutput | ListTagsForResourceCommandOutput | SendApiAssetCommandOutput | StartJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAssetCommandOutput | UpdateDataSetCommandOutput | UpdateEventActionCommandOutput | UpdateRevisionCommandOutput;
|
|
38
|
+
export declare type ServiceInputTypes = CancelJobCommandInput | CreateDataSetCommandInput | CreateEventActionCommandInput | CreateJobCommandInput | CreateRevisionCommandInput | DeleteAssetCommandInput | DeleteDataSetCommandInput | DeleteEventActionCommandInput | DeleteRevisionCommandInput | GetAssetCommandInput | GetDataSetCommandInput | GetEventActionCommandInput | GetJobCommandInput | GetRevisionCommandInput | ListDataSetRevisionsCommandInput | ListDataSetsCommandInput | ListEventActionsCommandInput | ListJobsCommandInput | ListRevisionAssetsCommandInput | ListTagsForResourceCommandInput | RevokeRevisionCommandInput | SendApiAssetCommandInput | StartJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAssetCommandInput | UpdateDataSetCommandInput | UpdateEventActionCommandInput | UpdateRevisionCommandInput;
|
|
39
|
+
export declare type ServiceOutputTypes = CancelJobCommandOutput | CreateDataSetCommandOutput | CreateEventActionCommandOutput | CreateJobCommandOutput | CreateRevisionCommandOutput | DeleteAssetCommandOutput | DeleteDataSetCommandOutput | DeleteEventActionCommandOutput | DeleteRevisionCommandOutput | GetAssetCommandOutput | GetDataSetCommandOutput | GetEventActionCommandOutput | GetJobCommandOutput | GetRevisionCommandOutput | ListDataSetRevisionsCommandOutput | ListDataSetsCommandOutput | ListEventActionsCommandOutput | ListJobsCommandOutput | ListRevisionAssetsCommandOutput | ListTagsForResourceCommandOutput | RevokeRevisionCommandOutput | SendApiAssetCommandOutput | StartJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAssetCommandOutput | UpdateDataSetCommandOutput | UpdateEventActionCommandOutput | UpdateRevisionCommandOutput;
|
|
39
40
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
40
41
|
/**
|
|
41
42
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|