@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.
Files changed (36) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist-cjs/DataExchange.js +15 -0
  3. package/dist-cjs/commands/SendApiAssetCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoints.js +1 -0
  6. package/dist-cjs/models/models_0.js +41 -45
  7. package/dist-cjs/protocols/Aws_restJson1.js +188 -2
  8. package/dist-cjs/runtimeConfig.browser.js +7 -2
  9. package/dist-cjs/runtimeConfig.js +9 -3
  10. package/dist-es/DataExchange.js +15 -0
  11. package/dist-es/commands/SendApiAssetCommand.js +39 -0
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/endpoints.js +1 -0
  14. package/dist-es/models/models_0.js +29 -28
  15. package/dist-es/protocols/Aws_restJson1.js +186 -2
  16. package/dist-es/runtimeConfig.browser.js +12 -3
  17. package/dist-es/runtimeConfig.js +13 -6
  18. package/dist-types/DataExchange.d.ts +7 -0
  19. package/dist-types/DataExchangeClient.d.ts +8 -3
  20. package/dist-types/commands/SendApiAssetCommand.d.ts +35 -0
  21. package/dist-types/commands/index.d.ts +1 -0
  22. package/dist-types/models/models_0.d.ts +239 -47
  23. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  24. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  25. package/dist-types/runtimeConfig.d.ts +4 -3
  26. package/dist-types/runtimeConfig.native.d.ts +1 -0
  27. package/dist-types/ts3.4/DataExchange.d.ts +5 -0
  28. package/dist-types/ts3.4/DataExchangeClient.d.ts +6 -3
  29. package/dist-types/ts3.4/commands/SendApiAssetCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +132 -28
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  36. package/package.json +38 -45
@@ -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";
@@ -10,12 +10,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
10
10
  */
11
11
  Message: string | undefined;
12
12
  }
13
- export declare namespace AccessDeniedException {
14
- /**
15
- * @internal
16
- */
17
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
18
- }
19
13
  export declare enum ServerSideEncryptionTypes {
20
14
  AES256 = "AES256",
21
15
  aws_kms = "aws:kms"
@@ -92,6 +86,56 @@ export declare namespace Action {
92
86
  */
93
87
  const filterSensitiveLog: (obj: Action) => any;
94
88
  }
89
+ export declare enum ProtocolType {
90
+ REST = "REST"
91
+ }
92
+ /**
93
+ * <p>The API Gateway API that is the asset.</p>
94
+ */
95
+ export interface ApiGatewayApiAsset {
96
+ /**
97
+ * <p>The API description of the API asset.</p>
98
+ */
99
+ ApiDescription?: string;
100
+ /**
101
+ * <p>The API endpoint of the API asset.</p>
102
+ */
103
+ ApiEndpoint?: string;
104
+ /**
105
+ * <p>The unique identifier of the API asset.</p>
106
+ */
107
+ ApiId?: string;
108
+ /**
109
+ * <p>The API key of the API asset.</p>
110
+ */
111
+ ApiKey?: string;
112
+ /**
113
+ * <p>The API name of the API asset.</p>
114
+ */
115
+ ApiName?: string;
116
+ /**
117
+ * <p>The download URL of the API specification of the API asset.</p>
118
+ */
119
+ ApiSpecificationDownloadUrl?: string;
120
+ /**
121
+ * <p>The date and time that the upload URL expires, in ISO 8601 format.</p>
122
+ */
123
+ ApiSpecificationDownloadUrlExpiresAt?: Date;
124
+ /**
125
+ * <p>The protocol type of the API asset.</p>
126
+ */
127
+ ProtocolType?: ProtocolType | string;
128
+ /**
129
+ * <p>The stage of the API asset.</p>
130
+ */
131
+ Stage?: string;
132
+ }
133
+ export declare namespace ApiGatewayApiAsset {
134
+ /**
135
+ * @internal
136
+ */
137
+ const filterSensitiveLog: (obj: ApiGatewayApiAsset) => any;
138
+ }
95
139
  /**
96
140
  * <p>The destination for the asset.</p>
97
141
  */
@@ -157,6 +201,10 @@ export interface AssetDetails {
157
201
  * <p>The Amazon Redshift datashare that is the asset.</p>
158
202
  */
159
203
  RedshiftDataShareAsset?: RedshiftDataShareAsset;
204
+ /**
205
+ * <p>Information about the API Gateway API asset.</p>
206
+ */
207
+ ApiGatewayApiAsset?: ApiGatewayApiAsset;
160
208
  }
161
209
  export declare namespace AssetDetails {
162
210
  /**
@@ -165,11 +213,12 @@ export declare namespace AssetDetails {
165
213
  const filterSensitiveLog: (obj: AssetDetails) => any;
166
214
  }
167
215
  export declare enum AssetType {
216
+ API_GATEWAY_API = "API_GATEWAY_API",
168
217
  REDSHIFT_DATA_SHARE = "REDSHIFT_DATA_SHARE",
169
218
  S3_SNAPSHOT = "S3_SNAPSHOT"
170
219
  }
171
220
  /**
172
- * <p>An asset in AWS Data Exchange is a piece of data. The asset can be a structured data file, an image file, or some other data file that can be stored as an S3 object, or an Amazon Redshift datashare (Preview). When you create an import job for your files, you create an asset in AWS Data Exchange for each of those files.</p>
221
+ * <p>An asset in AWS Data Exchange is a piece of data (S3 object) or a means of fulfilling data (Amazon Redshift datashare or Amazon API Gateway API). The asset can be a structured data file, an image file, or some other data file that can be stored as an S3 object, an Amazon API Gateway API, or an Amazon Redshift datashare (Preview). When you create an import job for your files, API Gateway APIs, or Amazon Redshift datashares, you create an asset in AWS Data Exchange.</p>
173
222
  */
174
223
  export interface AssetEntry {
175
224
  /**
@@ -197,7 +246,7 @@ export interface AssetEntry {
197
246
  */
198
247
  Id: string | undefined;
199
248
  /**
200
- * <p>The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key.</p>
249
+ * <p>The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name.</p>
201
250
  */
202
251
  Name: string | undefined;
203
252
  /**
@@ -276,12 +325,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
276
325
  */
277
326
  ResourceType?: ResourceType | string;
278
327
  }
279
- export declare namespace ConflictException {
280
- /**
281
- * @internal
282
- */
283
- const filterSensitiveLog: (obj: ConflictException) => any;
284
- }
285
328
  /**
286
329
  * An exception occurred with the service.
287
330
  */
@@ -293,12 +336,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
293
336
  */
294
337
  Message: string | undefined;
295
338
  }
296
- export declare namespace InternalServerException {
297
- /**
298
- * @internal
299
- */
300
- const filterSensitiveLog: (obj: InternalServerException) => any;
301
- }
302
339
  /**
303
340
  * <p>The resource couldn't be found.</p>
304
341
  */
@@ -318,12 +355,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
318
355
  */
319
356
  ResourceType?: ResourceType | string;
320
357
  }
321
- export declare namespace ResourceNotFoundException {
322
- /**
323
- * @internal
324
- */
325
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
326
- }
327
358
  /**
328
359
  * <p>The limit on the number of requests per second was exceeded.</p>
329
360
  */
@@ -335,12 +366,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
335
366
  */
336
367
  Message: string | undefined;
337
368
  }
338
- export declare namespace ThrottlingException {
339
- /**
340
- * @internal
341
- */
342
- const filterSensitiveLog: (obj: ThrottlingException) => any;
343
- }
344
369
  export declare enum ExceptionCause {
345
370
  InsufficientS3BucketPolicy = "InsufficientS3BucketPolicy",
346
371
  S3AccessDenied = "S3AccessDenied"
@@ -360,12 +385,6 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
360
385
  */
361
386
  ExceptionCause?: ExceptionCause | string;
362
387
  }
363
- export declare namespace ValidationException {
364
- /**
365
- * @internal
366
- */
367
- const filterSensitiveLog: (obj: ValidationException) => any;
368
- }
369
388
  export declare enum Code {
370
389
  ACCESS_DENIED_EXCEPTION = "ACCESS_DENIED_EXCEPTION",
371
390
  INTERNAL_SERVER_EXCEPTION = "INTERNAL_SERVER_EXCEPTION",
@@ -478,6 +497,7 @@ export declare namespace CreateDataSetResponse {
478
497
  const filterSensitiveLog: (obj: CreateDataSetResponse) => any;
479
498
  }
480
499
  export declare enum LimitName {
500
+ Amazon_API_Gateway_API_assets_per_revision = "Amazon API Gateway API assets per revision",
481
501
  Amazon_Redshift_datashare_assets_per_import_job_from_Redshift = "Amazon Redshift datashare assets per import job from Redshift",
482
502
  Amazon_Redshift_datashare_assets_per_revision = "Amazon Redshift datashare assets per revision",
483
503
  Asset_per_export_job_from_Amazon_S3 = "Asset per export job from Amazon S3",
@@ -491,10 +511,12 @@ export declare enum LimitName {
491
511
  Concurrent_in_progress_jobs_to_import_assets_from_Amazon_Redshift_datashares = "Concurrent in progress jobs to import assets from Amazon Redshift datashares",
492
512
  Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3 = "Concurrent in progress jobs to import assets from Amazon S3",
493
513
  Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL = "Concurrent in progress jobs to import assets from a signed URL",
514
+ Concurrent_in_progress_jobs_to_import_assets_from_an_API_Gateway_API = "Concurrent in progress jobs to import assets from an API Gateway API",
494
515
  Data_sets_per_account = "Data sets per account",
495
516
  Data_sets_per_product = "Data sets per product",
496
517
  Event_actions_per_account = "Event actions per account",
497
518
  Products_per_account = "Products per account",
519
+ Revisions_per_Amazon_API_Gateway_API_data_set = "Revisions per Amazon API Gateway API data set",
498
520
  Revisions_per_Amazon_Redshift_datashare_data_set = "Revisions per Amazon Redshift datashare data set",
499
521
  Revisions_per_data_set = "Revisions per data set"
500
522
  }
@@ -517,12 +539,6 @@ export interface ServiceLimitExceededException extends __SmithyException, $Metad
517
539
  */
518
540
  Message: string | undefined;
519
541
  }
520
- export declare namespace ServiceLimitExceededException {
521
- /**
522
- * @internal
523
- */
524
- const filterSensitiveLog: (obj: ServiceLimitExceededException) => any;
525
- }
526
542
  /**
527
543
  * <p>Information about the published revision.</p>
528
544
  */
@@ -700,6 +716,53 @@ export declare namespace ExportRevisionsToS3RequestDetails {
700
716
  */
701
717
  const filterSensitiveLog: (obj: ExportRevisionsToS3RequestDetails) => any;
702
718
  }
719
+ /**
720
+ * <p>The request details.</p>
721
+ */
722
+ export interface ImportAssetFromApiGatewayApiRequestDetails {
723
+ /**
724
+ * <p>The API description. Markdown supported.</p>
725
+ */
726
+ ApiDescription?: string;
727
+ /**
728
+ * <p>The API Gateway API ID.</p>
729
+ */
730
+ ApiId: string | undefined;
731
+ /**
732
+ * <p>The API Gateway API key.</p>
733
+ */
734
+ ApiKey?: string;
735
+ /**
736
+ * <p>The API name.</p>
737
+ */
738
+ ApiName: string | undefined;
739
+ /**
740
+ * <p>The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API specification file. It is used to ensure the integrity of the file.</p>
741
+ */
742
+ ApiSpecificationMd5Hash: string | undefined;
743
+ /**
744
+ * <p>The data set ID.</p>
745
+ */
746
+ DataSetId: string | undefined;
747
+ /**
748
+ * <p>The protocol type.</p>
749
+ */
750
+ ProtocolType: ProtocolType | string | undefined;
751
+ /**
752
+ * <p>The revision ID.</p>
753
+ */
754
+ RevisionId: string | undefined;
755
+ /**
756
+ * <p>The API stage.</p>
757
+ */
758
+ Stage: string | undefined;
759
+ }
760
+ export declare namespace ImportAssetFromApiGatewayApiRequestDetails {
761
+ /**
762
+ * @internal
763
+ */
764
+ const filterSensitiveLog: (obj: ImportAssetFromApiGatewayApiRequestDetails) => any;
765
+ }
703
766
  /**
704
767
  * <p>Details of the operation to be performed by the job.</p>
705
768
  */
@@ -816,6 +879,10 @@ export interface RequestDetails {
816
879
  * <p>Details from an import from Amazon Redshift datashare request.</p>
817
880
  */
818
881
  ImportAssetsFromRedshiftDataShares?: ImportAssetsFromRedshiftDataSharesRequestDetails;
882
+ /**
883
+ * <p>Information about the import asset from API Gateway API request.</p>
884
+ */
885
+ ImportAssetFromApiGatewayApi?: ImportAssetFromApiGatewayApiRequestDetails;
819
886
  }
820
887
  export declare namespace RequestDetails {
821
888
  /**
@@ -829,6 +896,7 @@ export declare enum Type {
829
896
  EXPORT_REVISIONS_TO_S3 = "EXPORT_REVISIONS_TO_S3",
830
897
  IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES = "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES",
831
898
  IMPORT_ASSETS_FROM_S3 = "IMPORT_ASSETS_FROM_S3",
899
+ IMPORT_ASSET_FROM_API_GATEWAY_API = "IMPORT_ASSET_FROM_API_GATEWAY_API",
832
900
  IMPORT_ASSET_FROM_SIGNED_URL = "IMPORT_ASSET_FROM_SIGNED_URL"
833
901
  }
834
902
  /**
@@ -935,6 +1003,61 @@ export declare namespace ExportRevisionsToS3ResponseDetails {
935
1003
  */
936
1004
  const filterSensitiveLog: (obj: ExportRevisionsToS3ResponseDetails) => any;
937
1005
  }
1006
+ /**
1007
+ * <p>The response details.</p>
1008
+ */
1009
+ export interface ImportAssetFromApiGatewayApiResponseDetails {
1010
+ /**
1011
+ * <p>The API description.</p>
1012
+ */
1013
+ ApiDescription?: string;
1014
+ /**
1015
+ * <p>The API ID.</p>
1016
+ */
1017
+ ApiId: string | undefined;
1018
+ /**
1019
+ * <p>The API key.</p>
1020
+ */
1021
+ ApiKey?: string;
1022
+ /**
1023
+ * <p>The API name.</p>
1024
+ */
1025
+ ApiName: string | undefined;
1026
+ /**
1027
+ * <p>The Base64-encoded Md5 hash for the API asset, used to ensure the integrity of the API at that location.</p>
1028
+ */
1029
+ ApiSpecificationMd5Hash: string | undefined;
1030
+ /**
1031
+ * <p>The upload URL of the API specification.</p>
1032
+ */
1033
+ ApiSpecificationUploadUrl: string | undefined;
1034
+ /**
1035
+ * <p>The date and time that the upload URL expires, in ISO 8601 format.</p>
1036
+ */
1037
+ ApiSpecificationUploadUrlExpiresAt: Date | undefined;
1038
+ /**
1039
+ * <p>The data set ID.</p>
1040
+ */
1041
+ DataSetId: string | undefined;
1042
+ /**
1043
+ * <p>The protocol type.</p>
1044
+ */
1045
+ ProtocolType: ProtocolType | string | undefined;
1046
+ /**
1047
+ * <p>The revision ID.</p>
1048
+ */
1049
+ RevisionId: string | undefined;
1050
+ /**
1051
+ * <p>The API stage.</p>
1052
+ */
1053
+ Stage: string | undefined;
1054
+ }
1055
+ export declare namespace ImportAssetFromApiGatewayApiResponseDetails {
1056
+ /**
1057
+ * @internal
1058
+ */
1059
+ const filterSensitiveLog: (obj: ImportAssetFromApiGatewayApiResponseDetails) => any;
1060
+ }
938
1061
  /**
939
1062
  * <p>The details in the response for an import request, including the signed URL and other information.</p>
940
1063
  */
@@ -1044,6 +1167,10 @@ export interface ResponseDetails {
1044
1167
  * <p>Details from an import from Amazon Redshift datashare response.</p>
1045
1168
  */
1046
1169
  ImportAssetsFromRedshiftDataShares?: ImportAssetsFromRedshiftDataSharesResponseDetails;
1170
+ /**
1171
+ * <p>The response details.</p>
1172
+ */
1173
+ ImportAssetFromApiGatewayApi?: ImportAssetFromApiGatewayApiResponseDetails;
1047
1174
  }
1048
1175
  export declare namespace ResponseDetails {
1049
1176
  /**
@@ -1359,7 +1486,7 @@ export interface GetAssetResponse {
1359
1486
  */
1360
1487
  Id?: string;
1361
1488
  /**
1362
- * <p>The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key.</p>
1489
+ * <p>The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name.</p>
1363
1490
  */
1364
1491
  Name?: string;
1365
1492
  /**
@@ -1991,6 +2118,71 @@ export declare namespace ListTagsForResourceResponse {
1991
2118
  */
1992
2119
  const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
1993
2120
  }
2121
+ /**
2122
+ * <p>The request body for SendApiAsset.</p>
2123
+ */
2124
+ export interface SendApiAssetRequest {
2125
+ /**
2126
+ * <p>The request body.</p>
2127
+ */
2128
+ Body?: string;
2129
+ /**
2130
+ * <p>Attach query string parameters to the end of the URI (for example, /v1/examplePath?exampleParam=exampleValue).</p>
2131
+ */
2132
+ QueryStringParameters?: {
2133
+ [key: string]: string;
2134
+ };
2135
+ /**
2136
+ * <p>Asset ID value for the API request.</p>
2137
+ */
2138
+ AssetId: string | undefined;
2139
+ /**
2140
+ * <p>Data set ID value for the API request.</p>
2141
+ */
2142
+ DataSetId: string | undefined;
2143
+ /**
2144
+ * <p>Any header value prefixed with x-amzn-dataexchange-header- will have that stripped before sending the Asset API request. Use this when you want to override a header that AWS Data Exchange uses. Alternatively, you can use the header without a prefix to the HTTP request.</p>
2145
+ */
2146
+ RequestHeaders?: {
2147
+ [key: string]: string;
2148
+ };
2149
+ /**
2150
+ * <p>HTTP method value for the API request. Alternatively, you can use the appropriate verb in your request.</p>
2151
+ */
2152
+ Method?: string;
2153
+ /**
2154
+ * <p>URI path value for the API request. Alternatively, you can set the URI path directly by invoking /v1/{pathValue}</p>
2155
+ */
2156
+ Path?: string;
2157
+ /**
2158
+ * <p>Revision ID value for the API request.</p>
2159
+ */
2160
+ RevisionId: string | undefined;
2161
+ }
2162
+ export declare namespace SendApiAssetRequest {
2163
+ /**
2164
+ * @internal
2165
+ */
2166
+ const filterSensitiveLog: (obj: SendApiAssetRequest) => any;
2167
+ }
2168
+ export interface SendApiAssetResponse {
2169
+ /**
2170
+ * <p>The response body from the underlying API tracked by the API asset.</p>
2171
+ */
2172
+ Body?: string;
2173
+ /**
2174
+ * <p>The response headers from the underlying API tracked by the API asset.</p>
2175
+ */
2176
+ ResponseHeaders?: {
2177
+ [key: string]: string;
2178
+ };
2179
+ }
2180
+ export declare namespace SendApiAssetResponse {
2181
+ /**
2182
+ * @internal
2183
+ */
2184
+ const filterSensitiveLog: (obj: SendApiAssetResponse) => any;
2185
+ }
1994
2186
  export interface StartJobRequest {
1995
2187
  /**
1996
2188
  * <p>The unique identifier for a job.</p>
@@ -2061,7 +2253,7 @@ export interface UpdateAssetRequest {
2061
2253
  */
2062
2254
  DataSetId: string | undefined;
2063
2255
  /**
2064
- * <p>The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key.</p>
2256
+ * <p>The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name.</p>
2065
2257
  */
2066
2258
  Name: string | undefined;
2067
2259
  /**
@@ -2101,7 +2293,7 @@ export interface UpdateAssetResponse {
2101
2293
  */
2102
2294
  Id?: string;
2103
2295
  /**
2104
- * <p>The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key.</p>
2296
+ * <p>The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name.</p>
2105
2297
  */
2106
2298
  Name?: string;
2107
2299
  /**
@@ -20,6 +20,7 @@ import { ListEventActionsCommandInput, ListEventActionsCommandOutput } from "../
20
20
  import { ListJobsCommandInput, ListJobsCommandOutput } from "../commands/ListJobsCommand";
21
21
  import { ListRevisionAssetsCommandInput, ListRevisionAssetsCommandOutput } from "../commands/ListRevisionAssetsCommand";
22
22
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
23
+ import { SendApiAssetCommandInput, SendApiAssetCommandOutput } from "../commands/SendApiAssetCommand";
23
24
  import { StartJobCommandInput, StartJobCommandOutput } from "../commands/StartJobCommand";
24
25
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
25
26
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
@@ -47,6 +48,7 @@ export declare const serializeAws_restJson1ListEventActionsCommand: (input: List
47
48
  export declare const serializeAws_restJson1ListJobsCommand: (input: ListJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
48
49
  export declare const serializeAws_restJson1ListRevisionAssetsCommand: (input: ListRevisionAssetsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
49
50
  export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
51
+ export declare const serializeAws_restJson1SendApiAssetCommand: (input: SendApiAssetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
50
52
  export declare const serializeAws_restJson1StartJobCommand: (input: StartJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
51
53
  export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
52
54
  export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -74,6 +76,7 @@ export declare const deserializeAws_restJson1ListEventActionsCommand: (output: _
74
76
  export declare const deserializeAws_restJson1ListJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListJobsCommandOutput>;
75
77
  export declare const deserializeAws_restJson1ListRevisionAssetsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRevisionAssetsCommandOutput>;
76
78
  export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
79
+ export declare const deserializeAws_restJson1SendApiAssetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendApiAssetCommandOutput>;
77
80
  export declare const deserializeAws_restJson1StartJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartJobCommandOutput>;
78
81
  export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
79
82
  export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { DataExchangeClientConfig } from "./DataExchangeClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: DataExchangeClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: DataExchangeClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { DataExchangeClientConfig } from "./DataExchangeClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: DataExchangeClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: DataExchangeClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -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";
@@ -110,6 +111,10 @@ export declare class DataExchange extends DataExchangeClient {
110
111
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
111
112
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
112
113
 
114
+ sendApiAsset(args: SendApiAssetCommandInput, options?: __HttpHandlerOptions): Promise<SendApiAssetCommandOutput>;
115
+ sendApiAsset(args: SendApiAssetCommandInput, cb: (err: any, data?: SendApiAssetCommandOutput) => void): void;
116
+ sendApiAsset(args: SendApiAssetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendApiAssetCommandOutput) => void): void;
117
+
113
118
  startJob(args: StartJobCommandInput, options?: __HttpHandlerOptions): Promise<StartJobCommandOutput>;
114
119
  startJob(args: StartJobCommandInput, cb: (err: any, data?: StartJobCommandOutput) => void): void;
115
120
  startJob(args: StartJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartJobCommandOutput) => void): void;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CancelJobCommandInput, CancelJobCommandOutput } from "./commands/CancelJobCommand";
10
10
  import { CreateDataSetCommandInput, CreateDataSetCommandOutput } from "./commands/CreateDataSetCommand";
@@ -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
  requestHandler?: __HttpHandler;
@@ -78,6 +79,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
78
79
  regionInfoProvider?: RegionInfoProvider;
79
80
 
80
81
  defaultUserAgentProvider?: Provider<__UserAgent>;
82
+
83
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
81
84
  }
82
85
  declare type DataExchangeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
83
86
 
@@ -0,0 +1,17 @@
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
+ export declare class SendApiAssetCommand extends $Command<SendApiAssetCommandInput, SendApiAssetCommandOutput, DataExchangeClientResolvedConfig> {
11
+ readonly input: SendApiAssetCommandInput;
12
+ constructor(input: SendApiAssetCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendApiAssetCommandInput, SendApiAssetCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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";