@aws-sdk/client-dataexchange 3.40.0 → 3.44.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 (53) hide show
  1. package/CHANGELOG.md +38 -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 +8 -0
  6. package/dist-cjs/models/models_0.js +42 -3
  7. package/dist-cjs/protocols/Aws_restJson1.js +188 -2
  8. package/dist-es/DataExchange.js +15 -0
  9. package/dist-es/commands/SendApiAssetCommand.js +39 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/endpoints.js +8 -0
  12. package/dist-es/models/models_0.js +29 -0
  13. package/dist-es/protocols/Aws_restJson1.js +186 -2
  14. package/dist-types/DataExchange.d.ts +7 -0
  15. package/dist-types/DataExchangeClient.d.ts +3 -2
  16. package/dist-types/commands/CancelJobCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateDataSetCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateEventActionCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateJobCommand.d.ts +1 -1
  20. package/dist-types/commands/CreateRevisionCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteAssetCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteDataSetCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteEventActionCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteRevisionCommand.d.ts +1 -1
  25. package/dist-types/commands/GetAssetCommand.d.ts +1 -1
  26. package/dist-types/commands/GetDataSetCommand.d.ts +1 -1
  27. package/dist-types/commands/GetEventActionCommand.d.ts +1 -1
  28. package/dist-types/commands/GetJobCommand.d.ts +1 -1
  29. package/dist-types/commands/GetRevisionCommand.d.ts +1 -1
  30. package/dist-types/commands/ListDataSetRevisionsCommand.d.ts +1 -1
  31. package/dist-types/commands/ListDataSetsCommand.d.ts +1 -1
  32. package/dist-types/commands/ListEventActionsCommand.d.ts +1 -1
  33. package/dist-types/commands/ListJobsCommand.d.ts +1 -1
  34. package/dist-types/commands/ListRevisionAssetsCommand.d.ts +1 -1
  35. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  36. package/dist-types/commands/SendApiAssetCommand.d.ts +35 -0
  37. package/dist-types/commands/StartJobCommand.d.ts +1 -1
  38. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  39. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  40. package/dist-types/commands/UpdateAssetCommand.d.ts +1 -1
  41. package/dist-types/commands/UpdateDataSetCommand.d.ts +1 -1
  42. package/dist-types/commands/UpdateEventActionCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateRevisionCommand.d.ts +1 -1
  44. package/dist-types/commands/index.d.ts +1 -0
  45. package/dist-types/models/models_0.d.ts +239 -5
  46. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  47. package/dist-types/ts3.4/DataExchange.d.ts +5 -0
  48. package/dist-types/ts3.4/DataExchangeClient.d.ts +3 -2
  49. package/dist-types/ts3.4/commands/SendApiAssetCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +132 -0
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  53. package/package.json +4 -4
@@ -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
+ }
@@ -20,7 +20,7 @@ export interface StartJobCommandOutput extends StartJobResponse, __MetadataBeare
20
20
  *
21
21
  * @see {@link StartJobCommandInput} for command's `input` shape.
22
22
  * @see {@link StartJobCommandOutput} for command's `response` shape.
23
- * @see {@link DataExchangeClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class StartJobCommand extends $Command<StartJobCommandInput, StartJobCommandOutput, DataExchangeClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface TagResourceCommandOutput extends __MetadataBearer {
20
20
  *
21
21
  * @see {@link TagResourceCommandInput} for command's `input` shape.
22
22
  * @see {@link TagResourceCommandOutput} for command's `response` shape.
23
- * @see {@link DataExchangeClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, DataExchangeClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface UntagResourceCommandOutput extends __MetadataBearer {
20
20
  *
21
21
  * @see {@link UntagResourceCommandInput} for command's `input` shape.
22
22
  * @see {@link UntagResourceCommandOutput} for command's `response` shape.
23
- * @see {@link DataExchangeClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, DataExchangeClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface UpdateAssetCommandOutput extends UpdateAssetResponse, __Metadat
20
20
  *
21
21
  * @see {@link UpdateAssetCommandInput} for command's `input` shape.
22
22
  * @see {@link UpdateAssetCommandOutput} for command's `response` shape.
23
- * @see {@link DataExchangeClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class UpdateAssetCommand extends $Command<UpdateAssetCommandInput, UpdateAssetCommandOutput, DataExchangeClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface UpdateDataSetCommandOutput extends UpdateDataSetResponse, __Met
20
20
  *
21
21
  * @see {@link UpdateDataSetCommandInput} for command's `input` shape.
22
22
  * @see {@link UpdateDataSetCommandOutput} for command's `response` shape.
23
- * @see {@link DataExchangeClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class UpdateDataSetCommand extends $Command<UpdateDataSetCommandInput, UpdateDataSetCommandOutput, DataExchangeClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface UpdateEventActionCommandOutput extends UpdateEventActionRespons
20
20
  *
21
21
  * @see {@link UpdateEventActionCommandInput} for command's `input` shape.
22
22
  * @see {@link UpdateEventActionCommandOutput} for command's `response` shape.
23
- * @see {@link DataExchangeClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class UpdateEventActionCommand extends $Command<UpdateEventActionCommandInput, UpdateEventActionCommandOutput, DataExchangeClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface UpdateRevisionCommandOutput extends UpdateRevisionResponse, __M
20
20
  *
21
21
  * @see {@link UpdateRevisionCommandInput} for command's `input` shape.
22
22
  * @see {@link UpdateRevisionCommandOutput} for command's `response` shape.
23
- * @see {@link DataExchangeClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class UpdateRevisionCommand extends $Command<UpdateRevisionCommandInput, UpdateRevisionCommandOutput, DataExchangeClientResolvedConfig> {
@@ -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";
@@ -92,6 +92,56 @@ export declare namespace Action {
92
92
  */
93
93
  const filterSensitiveLog: (obj: Action) => any;
94
94
  }
95
+ export declare enum ProtocolType {
96
+ REST = "REST"
97
+ }
98
+ /**
99
+ * <p>The API Gateway API that is the asset.</p>
100
+ */
101
+ export interface ApiGatewayApiAsset {
102
+ /**
103
+ * <p>The API description of the API asset.</p>
104
+ */
105
+ ApiDescription?: string;
106
+ /**
107
+ * <p>The API endpoint of the API asset.</p>
108
+ */
109
+ ApiEndpoint?: string;
110
+ /**
111
+ * <p>The unique identifier of the API asset.</p>
112
+ */
113
+ ApiId?: string;
114
+ /**
115
+ * <p>The API key of the API asset.</p>
116
+ */
117
+ ApiKey?: string;
118
+ /**
119
+ * <p>The API name of the API asset.</p>
120
+ */
121
+ ApiName?: string;
122
+ /**
123
+ * <p>The download URL of the API specification of the API asset.</p>
124
+ */
125
+ ApiSpecificationDownloadUrl?: string;
126
+ /**
127
+ * <p>The date and time that the upload URL expires, in ISO 8601 format.</p>
128
+ */
129
+ ApiSpecificationDownloadUrlExpiresAt?: Date;
130
+ /**
131
+ * <p>The protocol type of the API asset.</p>
132
+ */
133
+ ProtocolType?: ProtocolType | string;
134
+ /**
135
+ * <p>The stage of the API asset.</p>
136
+ */
137
+ Stage?: string;
138
+ }
139
+ export declare namespace ApiGatewayApiAsset {
140
+ /**
141
+ * @internal
142
+ */
143
+ const filterSensitiveLog: (obj: ApiGatewayApiAsset) => any;
144
+ }
95
145
  /**
96
146
  * <p>The destination for the asset.</p>
97
147
  */
@@ -157,6 +207,10 @@ export interface AssetDetails {
157
207
  * <p>The Amazon Redshift datashare that is the asset.</p>
158
208
  */
159
209
  RedshiftDataShareAsset?: RedshiftDataShareAsset;
210
+ /**
211
+ * <p>Information about the API Gateway API asset.</p>
212
+ */
213
+ ApiGatewayApiAsset?: ApiGatewayApiAsset;
160
214
  }
161
215
  export declare namespace AssetDetails {
162
216
  /**
@@ -165,11 +219,12 @@ export declare namespace AssetDetails {
165
219
  const filterSensitiveLog: (obj: AssetDetails) => any;
166
220
  }
167
221
  export declare enum AssetType {
222
+ API_GATEWAY_API = "API_GATEWAY_API",
168
223
  REDSHIFT_DATA_SHARE = "REDSHIFT_DATA_SHARE",
169
224
  S3_SNAPSHOT = "S3_SNAPSHOT"
170
225
  }
171
226
  /**
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>
227
+ * <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
228
  */
174
229
  export interface AssetEntry {
175
230
  /**
@@ -197,7 +252,7 @@ export interface AssetEntry {
197
252
  */
198
253
  Id: string | undefined;
199
254
  /**
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>
255
+ * <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
256
  */
202
257
  Name: string | undefined;
203
258
  /**
@@ -478,6 +533,7 @@ export declare namespace CreateDataSetResponse {
478
533
  const filterSensitiveLog: (obj: CreateDataSetResponse) => any;
479
534
  }
480
535
  export declare enum LimitName {
536
+ Amazon_API_Gateway_API_assets_per_revision = "Amazon API Gateway API assets per revision",
481
537
  Amazon_Redshift_datashare_assets_per_import_job_from_Redshift = "Amazon Redshift datashare assets per import job from Redshift",
482
538
  Amazon_Redshift_datashare_assets_per_revision = "Amazon Redshift datashare assets per revision",
483
539
  Asset_per_export_job_from_Amazon_S3 = "Asset per export job from Amazon S3",
@@ -491,10 +547,12 @@ export declare enum LimitName {
491
547
  Concurrent_in_progress_jobs_to_import_assets_from_Amazon_Redshift_datashares = "Concurrent in progress jobs to import assets from Amazon Redshift datashares",
492
548
  Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3 = "Concurrent in progress jobs to import assets from Amazon S3",
493
549
  Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL = "Concurrent in progress jobs to import assets from a signed URL",
550
+ 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
551
  Data_sets_per_account = "Data sets per account",
495
552
  Data_sets_per_product = "Data sets per product",
496
553
  Event_actions_per_account = "Event actions per account",
497
554
  Products_per_account = "Products per account",
555
+ Revisions_per_Amazon_API_Gateway_API_data_set = "Revisions per Amazon API Gateway API data set",
498
556
  Revisions_per_Amazon_Redshift_datashare_data_set = "Revisions per Amazon Redshift datashare data set",
499
557
  Revisions_per_data_set = "Revisions per data set"
500
558
  }
@@ -700,6 +758,53 @@ export declare namespace ExportRevisionsToS3RequestDetails {
700
758
  */
701
759
  const filterSensitiveLog: (obj: ExportRevisionsToS3RequestDetails) => any;
702
760
  }
761
+ /**
762
+ * <p>The request details.</p>
763
+ */
764
+ export interface ImportAssetFromApiGatewayApiRequestDetails {
765
+ /**
766
+ * <p>The API description. Markdown supported.</p>
767
+ */
768
+ ApiDescription?: string;
769
+ /**
770
+ * <p>The API Gateway API ID.</p>
771
+ */
772
+ ApiId: string | undefined;
773
+ /**
774
+ * <p>The API Gateway API key.</p>
775
+ */
776
+ ApiKey?: string;
777
+ /**
778
+ * <p>The API name.</p>
779
+ */
780
+ ApiName: string | undefined;
781
+ /**
782
+ * <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>
783
+ */
784
+ ApiSpecificationMd5Hash: string | undefined;
785
+ /**
786
+ * <p>The data set ID.</p>
787
+ */
788
+ DataSetId: string | undefined;
789
+ /**
790
+ * <p>The protocol type.</p>
791
+ */
792
+ ProtocolType: ProtocolType | string | undefined;
793
+ /**
794
+ * <p>The revision ID.</p>
795
+ */
796
+ RevisionId: string | undefined;
797
+ /**
798
+ * <p>The API stage.</p>
799
+ */
800
+ Stage: string | undefined;
801
+ }
802
+ export declare namespace ImportAssetFromApiGatewayApiRequestDetails {
803
+ /**
804
+ * @internal
805
+ */
806
+ const filterSensitiveLog: (obj: ImportAssetFromApiGatewayApiRequestDetails) => any;
807
+ }
703
808
  /**
704
809
  * <p>Details of the operation to be performed by the job.</p>
705
810
  */
@@ -816,6 +921,10 @@ export interface RequestDetails {
816
921
  * <p>Details from an import from Amazon Redshift datashare request.</p>
817
922
  */
818
923
  ImportAssetsFromRedshiftDataShares?: ImportAssetsFromRedshiftDataSharesRequestDetails;
924
+ /**
925
+ * <p>Information about the import asset from API Gateway API request.</p>
926
+ */
927
+ ImportAssetFromApiGatewayApi?: ImportAssetFromApiGatewayApiRequestDetails;
819
928
  }
820
929
  export declare namespace RequestDetails {
821
930
  /**
@@ -829,6 +938,7 @@ export declare enum Type {
829
938
  EXPORT_REVISIONS_TO_S3 = "EXPORT_REVISIONS_TO_S3",
830
939
  IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES = "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES",
831
940
  IMPORT_ASSETS_FROM_S3 = "IMPORT_ASSETS_FROM_S3",
941
+ IMPORT_ASSET_FROM_API_GATEWAY_API = "IMPORT_ASSET_FROM_API_GATEWAY_API",
832
942
  IMPORT_ASSET_FROM_SIGNED_URL = "IMPORT_ASSET_FROM_SIGNED_URL"
833
943
  }
834
944
  /**
@@ -935,6 +1045,61 @@ export declare namespace ExportRevisionsToS3ResponseDetails {
935
1045
  */
936
1046
  const filterSensitiveLog: (obj: ExportRevisionsToS3ResponseDetails) => any;
937
1047
  }
1048
+ /**
1049
+ * <p>The response details.</p>
1050
+ */
1051
+ export interface ImportAssetFromApiGatewayApiResponseDetails {
1052
+ /**
1053
+ * <p>The API description.</p>
1054
+ */
1055
+ ApiDescription?: string;
1056
+ /**
1057
+ * <p>The API ID.</p>
1058
+ */
1059
+ ApiId: string | undefined;
1060
+ /**
1061
+ * <p>The API key.</p>
1062
+ */
1063
+ ApiKey?: string;
1064
+ /**
1065
+ * <p>The API name.</p>
1066
+ */
1067
+ ApiName: string | undefined;
1068
+ /**
1069
+ * <p>The Base64-encoded Md5 hash for the API asset, used to ensure the integrity of the API at that location.</p>
1070
+ */
1071
+ ApiSpecificationMd5Hash: string | undefined;
1072
+ /**
1073
+ * <p>The upload URL of the API specification.</p>
1074
+ */
1075
+ ApiSpecificationUploadUrl: string | undefined;
1076
+ /**
1077
+ * <p>The date and time that the upload URL expires, in ISO 8601 format.</p>
1078
+ */
1079
+ ApiSpecificationUploadUrlExpiresAt: Date | undefined;
1080
+ /**
1081
+ * <p>The data set ID.</p>
1082
+ */
1083
+ DataSetId: string | undefined;
1084
+ /**
1085
+ * <p>The protocol type.</p>
1086
+ */
1087
+ ProtocolType: ProtocolType | string | undefined;
1088
+ /**
1089
+ * <p>The revision ID.</p>
1090
+ */
1091
+ RevisionId: string | undefined;
1092
+ /**
1093
+ * <p>The API stage.</p>
1094
+ */
1095
+ Stage: string | undefined;
1096
+ }
1097
+ export declare namespace ImportAssetFromApiGatewayApiResponseDetails {
1098
+ /**
1099
+ * @internal
1100
+ */
1101
+ const filterSensitiveLog: (obj: ImportAssetFromApiGatewayApiResponseDetails) => any;
1102
+ }
938
1103
  /**
939
1104
  * <p>The details in the response for an import request, including the signed URL and other information.</p>
940
1105
  */
@@ -1044,6 +1209,10 @@ export interface ResponseDetails {
1044
1209
  * <p>Details from an import from Amazon Redshift datashare response.</p>
1045
1210
  */
1046
1211
  ImportAssetsFromRedshiftDataShares?: ImportAssetsFromRedshiftDataSharesResponseDetails;
1212
+ /**
1213
+ * <p>The response details.</p>
1214
+ */
1215
+ ImportAssetFromApiGatewayApi?: ImportAssetFromApiGatewayApiResponseDetails;
1047
1216
  }
1048
1217
  export declare namespace ResponseDetails {
1049
1218
  /**
@@ -1359,7 +1528,7 @@ export interface GetAssetResponse {
1359
1528
  */
1360
1529
  Id?: string;
1361
1530
  /**
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>
1531
+ * <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
1532
  */
1364
1533
  Name?: string;
1365
1534
  /**
@@ -1991,6 +2160,71 @@ export declare namespace ListTagsForResourceResponse {
1991
2160
  */
1992
2161
  const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
1993
2162
  }
2163
+ /**
2164
+ * <p>The request body for SendApiAsset.</p>
2165
+ */
2166
+ export interface SendApiAssetRequest {
2167
+ /**
2168
+ * <p>The request body.</p>
2169
+ */
2170
+ Body?: string;
2171
+ /**
2172
+ * <p>Attach query string parameters to the end of the URI (for example, /v1/examplePath?exampleParam=exampleValue).</p>
2173
+ */
2174
+ QueryStringParameters?: {
2175
+ [key: string]: string;
2176
+ };
2177
+ /**
2178
+ * <p>Asset ID value for the API request.</p>
2179
+ */
2180
+ AssetId: string | undefined;
2181
+ /**
2182
+ * <p>Data set ID value for the API request.</p>
2183
+ */
2184
+ DataSetId: string | undefined;
2185
+ /**
2186
+ * <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>
2187
+ */
2188
+ RequestHeaders?: {
2189
+ [key: string]: string;
2190
+ };
2191
+ /**
2192
+ * <p>HTTP method value for the API request. Alternatively, you can use the appropriate verb in your request.</p>
2193
+ */
2194
+ Method?: string;
2195
+ /**
2196
+ * <p>URI path value for the API request. Alternatively, you can set the URI path directly by invoking /v1/{pathValue}</p>
2197
+ */
2198
+ Path?: string;
2199
+ /**
2200
+ * <p>Revision ID value for the API request.</p>
2201
+ */
2202
+ RevisionId: string | undefined;
2203
+ }
2204
+ export declare namespace SendApiAssetRequest {
2205
+ /**
2206
+ * @internal
2207
+ */
2208
+ const filterSensitiveLog: (obj: SendApiAssetRequest) => any;
2209
+ }
2210
+ export interface SendApiAssetResponse {
2211
+ /**
2212
+ * <p>The response body from the underlying API tracked by the API asset.</p>
2213
+ */
2214
+ Body?: string;
2215
+ /**
2216
+ * <p>The response headers from the underlying API tracked by the API asset.</p>
2217
+ */
2218
+ ResponseHeaders?: {
2219
+ [key: string]: string;
2220
+ };
2221
+ }
2222
+ export declare namespace SendApiAssetResponse {
2223
+ /**
2224
+ * @internal
2225
+ */
2226
+ const filterSensitiveLog: (obj: SendApiAssetResponse) => any;
2227
+ }
1994
2228
  export interface StartJobRequest {
1995
2229
  /**
1996
2230
  * <p>The unique identifier for a job.</p>
@@ -2061,7 +2295,7 @@ export interface UpdateAssetRequest {
2061
2295
  */
2062
2296
  DataSetId: string | undefined;
2063
2297
  /**
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>
2298
+ * <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
2299
  */
2066
2300
  Name: string | undefined;
2067
2301
  /**
@@ -2101,7 +2335,7 @@ export interface UpdateAssetResponse {
2101
2335
  */
2102
2336
  Id?: string;
2103
2337
  /**
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>
2338
+ * <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
2339
  */
2106
2340
  Name?: string;
2107
2341
  /**
@@ -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>;
@@ -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;
@@ -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;
@@ -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";