@aws-sdk/client-dataexchange 3.42.0 → 3.46.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.
@@ -24,6 +24,14 @@ export var Action;
24
24
  (function (Action) {
25
25
  Action.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
26
  })(Action || (Action = {}));
27
+ export var ProtocolType;
28
+ (function (ProtocolType) {
29
+ ProtocolType["REST"] = "REST";
30
+ })(ProtocolType || (ProtocolType = {}));
31
+ export var ApiGatewayApiAsset;
32
+ (function (ApiGatewayApiAsset) {
33
+ ApiGatewayApiAsset.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
34
+ })(ApiGatewayApiAsset || (ApiGatewayApiAsset = {}));
27
35
  export var AssetDestinationEntry;
28
36
  (function (AssetDestinationEntry) {
29
37
  AssetDestinationEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -42,6 +50,7 @@ export var AssetDetails;
42
50
  })(AssetDetails || (AssetDetails = {}));
43
51
  export var AssetType;
44
52
  (function (AssetType) {
53
+ AssetType["API_GATEWAY_API"] = "API_GATEWAY_API";
45
54
  AssetType["REDSHIFT_DATA_SHARE"] = "REDSHIFT_DATA_SHARE";
46
55
  AssetType["S3_SNAPSHOT"] = "S3_SNAPSHOT";
47
56
  })(AssetType || (AssetType = {}));
@@ -119,6 +128,7 @@ export var CreateDataSetResponse;
119
128
  })(CreateDataSetResponse || (CreateDataSetResponse = {}));
120
129
  export var LimitName;
121
130
  (function (LimitName) {
131
+ LimitName["Amazon_API_Gateway_API_assets_per_revision"] = "Amazon API Gateway API assets per revision";
122
132
  LimitName["Amazon_Redshift_datashare_assets_per_import_job_from_Redshift"] = "Amazon Redshift datashare assets per import job from Redshift";
123
133
  LimitName["Amazon_Redshift_datashare_assets_per_revision"] = "Amazon Redshift datashare assets per revision";
124
134
  LimitName["Asset_per_export_job_from_Amazon_S3"] = "Asset per export job from Amazon S3";
@@ -132,10 +142,12 @@ export var LimitName;
132
142
  LimitName["Concurrent_in_progress_jobs_to_import_assets_from_Amazon_Redshift_datashares"] = "Concurrent in progress jobs to import assets from Amazon Redshift datashares";
133
143
  LimitName["Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3"] = "Concurrent in progress jobs to import assets from Amazon S3";
134
144
  LimitName["Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL"] = "Concurrent in progress jobs to import assets from a signed URL";
145
+ 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";
135
146
  LimitName["Data_sets_per_account"] = "Data sets per account";
136
147
  LimitName["Data_sets_per_product"] = "Data sets per product";
137
148
  LimitName["Event_actions_per_account"] = "Event actions per account";
138
149
  LimitName["Products_per_account"] = "Products per account";
150
+ LimitName["Revisions_per_Amazon_API_Gateway_API_data_set"] = "Revisions per Amazon API Gateway API data set";
139
151
  LimitName["Revisions_per_Amazon_Redshift_datashare_data_set"] = "Revisions per Amazon Redshift datashare data set";
140
152
  LimitName["Revisions_per_data_set"] = "Revisions per data set";
141
153
  })(LimitName || (LimitName = {}));
@@ -175,6 +187,10 @@ export var ExportRevisionsToS3RequestDetails;
175
187
  (function (ExportRevisionsToS3RequestDetails) {
176
188
  ExportRevisionsToS3RequestDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
189
  })(ExportRevisionsToS3RequestDetails || (ExportRevisionsToS3RequestDetails = {}));
190
+ export var ImportAssetFromApiGatewayApiRequestDetails;
191
+ (function (ImportAssetFromApiGatewayApiRequestDetails) {
192
+ ImportAssetFromApiGatewayApiRequestDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
+ })(ImportAssetFromApiGatewayApiRequestDetails || (ImportAssetFromApiGatewayApiRequestDetails = {}));
178
194
  export var ImportAssetFromSignedUrlRequestDetails;
179
195
  (function (ImportAssetFromSignedUrlRequestDetails) {
180
196
  ImportAssetFromSignedUrlRequestDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -202,6 +218,7 @@ export var Type;
202
218
  Type["EXPORT_REVISIONS_TO_S3"] = "EXPORT_REVISIONS_TO_S3";
203
219
  Type["IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES"] = "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES";
204
220
  Type["IMPORT_ASSETS_FROM_S3"] = "IMPORT_ASSETS_FROM_S3";
221
+ Type["IMPORT_ASSET_FROM_API_GATEWAY_API"] = "IMPORT_ASSET_FROM_API_GATEWAY_API";
205
222
  Type["IMPORT_ASSET_FROM_SIGNED_URL"] = "IMPORT_ASSET_FROM_SIGNED_URL";
206
223
  })(Type || (Type = {}));
207
224
  export var CreateJobRequest;
@@ -220,6 +237,10 @@ export var ExportRevisionsToS3ResponseDetails;
220
237
  (function (ExportRevisionsToS3ResponseDetails) {
221
238
  ExportRevisionsToS3ResponseDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
222
239
  })(ExportRevisionsToS3ResponseDetails || (ExportRevisionsToS3ResponseDetails = {}));
240
+ export var ImportAssetFromApiGatewayApiResponseDetails;
241
+ (function (ImportAssetFromApiGatewayApiResponseDetails) {
242
+ ImportAssetFromApiGatewayApiResponseDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
+ })(ImportAssetFromApiGatewayApiResponseDetails || (ImportAssetFromApiGatewayApiResponseDetails = {}));
223
244
  export var ImportAssetFromSignedUrlResponseDetails;
224
245
  (function (ImportAssetFromSignedUrlResponseDetails) {
225
246
  ImportAssetFromSignedUrlResponseDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -401,6 +422,14 @@ export var ListTagsForResourceResponse;
401
422
  (function (ListTagsForResourceResponse) {
402
423
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
403
424
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
425
+ export var SendApiAssetRequest;
426
+ (function (SendApiAssetRequest) {
427
+ SendApiAssetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
428
+ })(SendApiAssetRequest || (SendApiAssetRequest = {}));
429
+ export var SendApiAssetResponse;
430
+ (function (SendApiAssetResponse) {
431
+ SendApiAssetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
432
+ })(SendApiAssetResponse || (SendApiAssetResponse = {}));
404
433
  export var StartJobRequest;
405
434
  (function (StartJobRequest) {
406
435
  StartJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,5 +1,5 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
- import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
+ import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
3
3
  import { expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1CancelJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
@@ -663,6 +663,45 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
663
663
  }
664
664
  });
665
665
  }); };
666
+ export var serializeAws_restJson1SendApiAssetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
667
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
668
+ return __generator(this, function (_c) {
669
+ switch (_c.label) {
670
+ case 0: return [4, context.endpoint()];
671
+ case 1:
672
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
673
+ 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 &&
674
+ Object.keys(input.RequestHeaders).reduce(function (acc, suffix) {
675
+ var _a;
676
+ return (__assign(__assign({}, acc), (_a = {}, _a["x-amzn-dataexchange-header-" + suffix.toLowerCase()] = input.RequestHeaders[suffix], _a)));
677
+ }, {})));
678
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1";
679
+ query = __assign({}, (input.QueryStringParameters !== undefined && input.QueryStringParameters));
680
+ if (input.Body !== undefined) {
681
+ body = input.Body;
682
+ }
683
+ return [4, context.endpoint()];
684
+ case 2:
685
+ resolvedHostname = (_c.sent()).hostname;
686
+ if (context.disableHostPrefix !== true) {
687
+ resolvedHostname = "api-fulfill." + resolvedHostname;
688
+ if (!__isValidHostname(resolvedHostname)) {
689
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
690
+ }
691
+ }
692
+ return [2, new __HttpRequest({
693
+ protocol: protocol,
694
+ hostname: resolvedHostname,
695
+ port: port,
696
+ method: "POST",
697
+ headers: headers,
698
+ path: resolvedPath,
699
+ query: query,
700
+ body: body,
701
+ })];
702
+ }
703
+ });
704
+ }); };
666
705
  export var serializeAws_restJson1StartJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
667
706
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
668
707
  return __generator(this, function (_c) {
@@ -2969,6 +3008,105 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2969
3008
  }
2970
3009
  });
2971
3010
  }); };
3011
+ export var deserializeAws_restJson1SendApiAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3012
+ var contents, data;
3013
+ return __generator(this, function (_a) {
3014
+ switch (_a.label) {
3015
+ case 0:
3016
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3017
+ return [2, deserializeAws_restJson1SendApiAssetCommandError(output, context)];
3018
+ }
3019
+ contents = {
3020
+ $metadata: deserializeMetadata(output),
3021
+ Body: undefined,
3022
+ ResponseHeaders: undefined,
3023
+ };
3024
+ Object.keys(output.headers).forEach(function (header) {
3025
+ if (contents.ResponseHeaders === undefined) {
3026
+ contents.ResponseHeaders = {};
3027
+ }
3028
+ if (header.startsWith("")) {
3029
+ contents.ResponseHeaders[header.substring(0)] = output.headers[header];
3030
+ }
3031
+ });
3032
+ return [4, collectBodyString(output.body, context)];
3033
+ case 1:
3034
+ data = _a.sent();
3035
+ contents.Body = __expectString(data);
3036
+ return [2, Promise.resolve(contents)];
3037
+ }
3038
+ });
3039
+ }); };
3040
+ var deserializeAws_restJson1SendApiAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3041
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
3042
+ var _h;
3043
+ return __generator(this, function (_j) {
3044
+ switch (_j.label) {
3045
+ case 0:
3046
+ _a = [__assign({}, output)];
3047
+ _h = {};
3048
+ return [4, parseBody(output.body, context)];
3049
+ case 1:
3050
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
3051
+ errorCode = "UnknownError";
3052
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3053
+ _b = errorCode;
3054
+ switch (_b) {
3055
+ case "AccessDeniedException": return [3, 2];
3056
+ case "com.amazonaws.dataexchange#AccessDeniedException": return [3, 2];
3057
+ case "InternalServerException": return [3, 4];
3058
+ case "com.amazonaws.dataexchange#InternalServerException": return [3, 4];
3059
+ case "ResourceNotFoundException": return [3, 6];
3060
+ case "com.amazonaws.dataexchange#ResourceNotFoundException": return [3, 6];
3061
+ case "ThrottlingException": return [3, 8];
3062
+ case "com.amazonaws.dataexchange#ThrottlingException": return [3, 8];
3063
+ case "ValidationException": return [3, 10];
3064
+ case "com.amazonaws.dataexchange#ValidationException": return [3, 10];
3065
+ }
3066
+ return [3, 12];
3067
+ case 2:
3068
+ _c = [{}];
3069
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
3070
+ case 3:
3071
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3072
+ return [3, 13];
3073
+ case 4:
3074
+ _d = [{}];
3075
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3076
+ case 5:
3077
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3078
+ return [3, 13];
3079
+ case 6:
3080
+ _e = [{}];
3081
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3082
+ case 7:
3083
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3084
+ return [3, 13];
3085
+ case 8:
3086
+ _f = [{}];
3087
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
3088
+ case 9:
3089
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3090
+ return [3, 13];
3091
+ case 10:
3092
+ _g = [{}];
3093
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
3094
+ case 11:
3095
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3096
+ return [3, 13];
3097
+ case 12:
3098
+ parsedBody = parsedOutput.body;
3099
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3100
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3101
+ _j.label = 13;
3102
+ case 13:
3103
+ message = response.message || response.Message || errorCode;
3104
+ response.message = message;
3105
+ delete response.Message;
3106
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3107
+ }
3108
+ });
3109
+ }); };
2972
3110
  export var deserializeAws_restJson1StartJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2973
3111
  var contents;
2974
3112
  return __generator(this, function (_a) {
@@ -3859,6 +3997,11 @@ var serializeAws_restJson1ExportRevisionsToS3RequestDetails = function (input, c
3859
3997
  var serializeAws_restJson1ExportServerSideEncryption = function (input, context) {
3860
3998
  return __assign(__assign({}, (input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
3861
3999
  };
4000
+ var serializeAws_restJson1ImportAssetFromApiGatewayApiRequestDetails = function (input, context) {
4001
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiDescription !== undefined &&
4002
+ input.ApiDescription !== null && { ApiDescription: input.ApiDescription })), (input.ApiId !== undefined && input.ApiId !== null && { ApiId: input.ApiId })), (input.ApiKey !== undefined && input.ApiKey !== null && { ApiKey: input.ApiKey })), (input.ApiName !== undefined && input.ApiName !== null && { ApiName: input.ApiName })), (input.ApiSpecificationMd5Hash !== undefined &&
4003
+ input.ApiSpecificationMd5Hash !== null && { ApiSpecificationMd5Hash: input.ApiSpecificationMd5Hash })), (input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId })), (input.ProtocolType !== undefined && input.ProtocolType !== null && { ProtocolType: input.ProtocolType })), (input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId })), (input.Stage !== undefined && input.Stage !== null && { Stage: input.Stage }));
4004
+ };
3862
4005
  var serializeAws_restJson1ImportAssetFromSignedUrlRequestDetails = function (input, context) {
3863
4006
  return __assign(__assign(__assign(__assign({}, (input.AssetName !== undefined && input.AssetName !== null && { AssetName: input.AssetName })), (input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId })), (input.Md5Hash !== undefined && input.Md5Hash !== null && { Md5Hash: input.Md5Hash })), (input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }));
3864
4007
  };
@@ -3928,7 +4071,7 @@ var serializeAws_restJson1RedshiftDataShareAssetSourceEntry = function (input, c
3928
4071
  return __assign({}, (input.DataShareArn !== undefined && input.DataShareArn !== null && { DataShareArn: input.DataShareArn }));
3929
4072
  };
3930
4073
  var serializeAws_restJson1RequestDetails = function (input, context) {
3931
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExportAssetToSignedUrl !== undefined &&
4074
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExportAssetToSignedUrl !== undefined &&
3932
4075
  input.ExportAssetToSignedUrl !== null && {
3933
4076
  ExportAssetToSignedUrl: serializeAws_restJson1ExportAssetToSignedUrlRequestDetails(input.ExportAssetToSignedUrl, context),
3934
4077
  })), (input.ExportAssetsToS3 !== undefined &&
@@ -3937,6 +4080,9 @@ var serializeAws_restJson1RequestDetails = function (input, context) {
3937
4080
  })), (input.ExportRevisionsToS3 !== undefined &&
3938
4081
  input.ExportRevisionsToS3 !== null && {
3939
4082
  ExportRevisionsToS3: serializeAws_restJson1ExportRevisionsToS3RequestDetails(input.ExportRevisionsToS3, context),
4083
+ })), (input.ImportAssetFromApiGatewayApi !== undefined &&
4084
+ input.ImportAssetFromApiGatewayApi !== null && {
4085
+ ImportAssetFromApiGatewayApi: serializeAws_restJson1ImportAssetFromApiGatewayApiRequestDetails(input.ImportAssetFromApiGatewayApi, context),
3940
4086
  })), (input.ImportAssetFromSignedUrl !== undefined &&
3941
4087
  input.ImportAssetFromSignedUrl !== null && {
3942
4088
  ImportAssetFromSignedUrl: serializeAws_restJson1ImportAssetFromSignedUrlRequestDetails(input.ImportAssetFromSignedUrl, context),
@@ -3961,6 +4107,21 @@ var deserializeAws_restJson1Action = function (output, context) {
3961
4107
  : undefined,
3962
4108
  };
3963
4109
  };
4110
+ var deserializeAws_restJson1ApiGatewayApiAsset = function (output, context) {
4111
+ return {
4112
+ ApiDescription: __expectString(output.ApiDescription),
4113
+ ApiEndpoint: __expectString(output.ApiEndpoint),
4114
+ ApiId: __expectString(output.ApiId),
4115
+ ApiKey: __expectString(output.ApiKey),
4116
+ ApiName: __expectString(output.ApiName),
4117
+ ApiSpecificationDownloadUrl: __expectString(output.ApiSpecificationDownloadUrl),
4118
+ ApiSpecificationDownloadUrlExpiresAt: output.ApiSpecificationDownloadUrlExpiresAt !== undefined && output.ApiSpecificationDownloadUrlExpiresAt !== null
4119
+ ? __expectNonNull(__parseRfc3339DateTime(output.ApiSpecificationDownloadUrlExpiresAt))
4120
+ : undefined,
4121
+ ProtocolType: __expectString(output.ProtocolType),
4122
+ Stage: __expectString(output.Stage),
4123
+ };
4124
+ };
3964
4125
  var deserializeAws_restJson1AssetDestinationEntry = function (output, context) {
3965
4126
  return {
3966
4127
  AssetId: __expectString(output.AssetId),
@@ -3970,6 +4131,9 @@ var deserializeAws_restJson1AssetDestinationEntry = function (output, context) {
3970
4131
  };
3971
4132
  var deserializeAws_restJson1AssetDetails = function (output, context) {
3972
4133
  return {
4134
+ ApiGatewayApiAsset: output.ApiGatewayApiAsset !== undefined && output.ApiGatewayApiAsset !== null
4135
+ ? deserializeAws_restJson1ApiGatewayApiAsset(output.ApiGatewayApiAsset, context)
4136
+ : undefined,
3973
4137
  RedshiftDataShareAsset: output.RedshiftDataShareAsset !== undefined && output.RedshiftDataShareAsset !== null
3974
4138
  ? deserializeAws_restJson1RedshiftDataShareAsset(output.RedshiftDataShareAsset, context)
3975
4139
  : undefined,
@@ -4117,6 +4281,23 @@ var deserializeAws_restJson1ExportServerSideEncryption = function (output, conte
4117
4281
  Type: __expectString(output.Type),
4118
4282
  };
4119
4283
  };
4284
+ var deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails = function (output, context) {
4285
+ return {
4286
+ ApiDescription: __expectString(output.ApiDescription),
4287
+ ApiId: __expectString(output.ApiId),
4288
+ ApiKey: __expectString(output.ApiKey),
4289
+ ApiName: __expectString(output.ApiName),
4290
+ ApiSpecificationMd5Hash: __expectString(output.ApiSpecificationMd5Hash),
4291
+ ApiSpecificationUploadUrl: __expectString(output.ApiSpecificationUploadUrl),
4292
+ ApiSpecificationUploadUrlExpiresAt: output.ApiSpecificationUploadUrlExpiresAt !== undefined && output.ApiSpecificationUploadUrlExpiresAt !== null
4293
+ ? __expectNonNull(__parseRfc3339DateTime(output.ApiSpecificationUploadUrlExpiresAt))
4294
+ : undefined,
4295
+ DataSetId: __expectString(output.DataSetId),
4296
+ ProtocolType: __expectString(output.ProtocolType),
4297
+ RevisionId: __expectString(output.RevisionId),
4298
+ Stage: __expectString(output.Stage),
4299
+ };
4300
+ };
4120
4301
  var deserializeAws_restJson1ImportAssetFromSignedUrlJobErrorDetails = function (output, context) {
4121
4302
  return {
4122
4303
  AssetName: __expectString(output.AssetName),
@@ -4321,6 +4502,9 @@ var deserializeAws_restJson1ResponseDetails = function (output, context) {
4321
4502
  ExportRevisionsToS3: output.ExportRevisionsToS3 !== undefined && output.ExportRevisionsToS3 !== null
4322
4503
  ? deserializeAws_restJson1ExportRevisionsToS3ResponseDetails(output.ExportRevisionsToS3, context)
4323
4504
  : undefined,
4505
+ ImportAssetFromApiGatewayApi: output.ImportAssetFromApiGatewayApi !== undefined && output.ImportAssetFromApiGatewayApi !== null
4506
+ ? deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails(output.ImportAssetFromApiGatewayApi, context)
4507
+ : undefined,
4324
4508
  ImportAssetFromSignedUrl: output.ImportAssetFromSignedUrl !== undefined && output.ImportAssetFromSignedUrl !== null
4325
4509
  ? deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails(output.ImportAssetFromSignedUrl, context)
4326
4510
  : undefined,
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
15
  export var getRuntimeConfig = function (config) {
17
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
17
  var clientSharedValues = getSharedRuntimeConfig(config);
20
18
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
19
  };
@@ -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 { SendApiAssetCommandInput, SendApiAssetCommandOutput } from "./commands/SendApiAssetCommand";
22
23
  import { StartJobCommandInput, StartJobCommandOutput } from "./commands/StartJobCommand";
23
24
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
24
25
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -151,6 +152,12 @@ export declare class DataExchange extends DataExchangeClient {
151
152
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
152
153
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
153
154
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
155
+ /**
156
+ * <p>This operation invokes an API Gateway API asset. The request is proxied to the provider’s API Gateway API.</p>
157
+ */
158
+ sendApiAsset(args: SendApiAssetCommandInput, options?: __HttpHandlerOptions): Promise<SendApiAssetCommandOutput>;
159
+ sendApiAsset(args: SendApiAssetCommandInput, cb: (err: any, data?: SendApiAssetCommandOutput) => void): void;
160
+ sendApiAsset(args: SendApiAssetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendApiAssetCommandOutput) => void): void;
154
161
  /**
155
162
  * <p>This operation starts a job.</p>
156
163
  */
@@ -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 { SendApiAssetCommandInput, SendApiAssetCommandOutput } from "./commands/SendApiAssetCommand";
29
30
  import { StartJobCommandInput, StartJobCommandOutput } from "./commands/StartJobCommand";
30
31
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
31
32
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -33,8 +34,8 @@ import { UpdateAssetCommandInput, UpdateAssetCommandOutput } from "./commands/Up
33
34
  import { UpdateDataSetCommandInput, UpdateDataSetCommandOutput } from "./commands/UpdateDataSetCommand";
34
35
  import { UpdateEventActionCommandInput, UpdateEventActionCommandOutput } from "./commands/UpdateEventActionCommand";
35
36
  import { UpdateRevisionCommandInput, UpdateRevisionCommandOutput } from "./commands/UpdateRevisionCommand";
36
- export declare type ServiceInputTypes = CancelJobCommandInput | CreateDataSetCommandInput | CreateEventActionCommandInput | CreateJobCommandInput | CreateRevisionCommandInput | DeleteAssetCommandInput | DeleteDataSetCommandInput | DeleteEventActionCommandInput | DeleteRevisionCommandInput | GetAssetCommandInput | GetDataSetCommandInput | GetEventActionCommandInput | GetJobCommandInput | GetRevisionCommandInput | ListDataSetRevisionsCommandInput | ListDataSetsCommandInput | ListEventActionsCommandInput | ListJobsCommandInput | ListRevisionAssetsCommandInput | ListTagsForResourceCommandInput | StartJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAssetCommandInput | UpdateDataSetCommandInput | UpdateEventActionCommandInput | UpdateRevisionCommandInput;
37
- export declare type ServiceOutputTypes = CancelJobCommandOutput | CreateDataSetCommandOutput | CreateEventActionCommandOutput | CreateJobCommandOutput | CreateRevisionCommandOutput | DeleteAssetCommandOutput | DeleteDataSetCommandOutput | DeleteEventActionCommandOutput | DeleteRevisionCommandOutput | GetAssetCommandOutput | GetDataSetCommandOutput | GetEventActionCommandOutput | GetJobCommandOutput | GetRevisionCommandOutput | ListDataSetRevisionsCommandOutput | ListDataSetsCommandOutput | ListEventActionsCommandOutput | ListJobsCommandOutput | ListRevisionAssetsCommandOutput | ListTagsForResourceCommandOutput | StartJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAssetCommandOutput | UpdateDataSetCommandOutput | UpdateEventActionCommandOutput | UpdateRevisionCommandOutput;
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
39
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
39
40
  /**
40
41
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataExchangeClient";
4
+ import { SendApiAssetRequest, SendApiAssetResponse } from "../models/models_0";
5
+ export interface SendApiAssetCommandInput extends SendApiAssetRequest {
6
+ }
7
+ export interface SendApiAssetCommandOutput extends SendApiAssetResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>This operation invokes an API Gateway API asset. The request is proxied to the provider’s API Gateway API.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { DataExchangeClient, SendApiAssetCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import
15
+ * // const { DataExchangeClient, SendApiAssetCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import
16
+ * const client = new DataExchangeClient(config);
17
+ * const command = new SendApiAssetCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link SendApiAssetCommandInput} for command's `input` shape.
22
+ * @see {@link SendApiAssetCommandOutput} for command's `response` shape.
23
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class SendApiAssetCommand extends $Command<SendApiAssetCommandInput, SendApiAssetCommandOutput, DataExchangeClientResolvedConfig> {
27
+ readonly input: SendApiAssetCommandInput;
28
+ constructor(input: SendApiAssetCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendApiAssetCommandInput, SendApiAssetCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -18,6 +18,7 @@ export * from "./ListEventActionsCommand";
18
18
  export * from "./ListJobsCommand";
19
19
  export * from "./ListRevisionAssetsCommand";
20
20
  export * from "./ListTagsForResourceCommand";
21
+ export * from "./SendApiAssetCommand";
21
22
  export * from "./StartJobCommand";
22
23
  export * from "./TagResourceCommand";
23
24
  export * from "./UntagResourceCommand";