Skip to content

Commit f82c5bd

Browse files
author
awstools
committed
feat(client-datazone): Amazon DataZone now supports exporting Catalog datasets as Amazon S3 tables, and provides automatic business glossary term suggestions for data assets.
1 parent 99cda6c commit f82c5bd

17 files changed

+1408
-453
lines changed

clients/client-datazone/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,14 @@ GetConnection
770770

771771
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/GetConnectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetConnectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetConnectionCommandOutput/)
772772

773+
</details>
774+
<details>
775+
<summary>
776+
GetDataExportConfiguration
777+
</summary>
778+
779+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/GetDataExportConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetDataExportConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetDataExportConfigurationCommandOutput/)
780+
773781
</details>
774782
<details>
775783
<summary>
@@ -1290,6 +1298,14 @@ PostTimeSeriesDataPoints
12901298

12911299
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/PostTimeSeriesDataPointsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/PostTimeSeriesDataPointsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/PostTimeSeriesDataPointsCommandOutput/)
12921300

1301+
</details>
1302+
<details>
1303+
<summary>
1304+
PutDataExportConfiguration
1305+
</summary>
1306+
1307+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/PutDataExportConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/PutDataExportConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/PutDataExportConfigurationCommandOutput/)
1308+
12931309
</details>
12941310
<details>
12951311
<summary>

clients/client-datazone/src/DataZone.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ import {
337337
GetConnectionCommandInput,
338338
GetConnectionCommandOutput,
339339
} from "./commands/GetConnectionCommand";
340+
import {
341+
GetDataExportConfigurationCommand,
342+
GetDataExportConfigurationCommandInput,
343+
GetDataExportConfigurationCommandOutput,
344+
} from "./commands/GetDataExportConfigurationCommand";
340345
import {
341346
GetDataProductCommand,
342347
GetDataProductCommandInput,
@@ -622,6 +627,11 @@ import {
622627
PostTimeSeriesDataPointsCommandInput,
623628
PostTimeSeriesDataPointsCommandOutput,
624629
} from "./commands/PostTimeSeriesDataPointsCommand";
630+
import {
631+
PutDataExportConfigurationCommand,
632+
PutDataExportConfigurationCommandInput,
633+
PutDataExportConfigurationCommandOutput,
634+
} from "./commands/PutDataExportConfigurationCommand";
625635
import {
626636
PutEnvironmentBlueprintConfigurationCommand,
627637
PutEnvironmentBlueprintConfigurationCommandInput,
@@ -860,6 +870,7 @@ const commands = {
860870
GetAssetFilterCommand,
861871
GetAssetTypeCommand,
862872
GetConnectionCommand,
873+
GetDataExportConfigurationCommand,
863874
GetDataProductCommand,
864875
GetDataSourceCommand,
865876
GetDataSourceRunCommand,
@@ -925,6 +936,7 @@ const commands = {
925936
ListTimeSeriesDataPointsCommand,
926937
PostLineageEventCommand,
927938
PostTimeSeriesDataPointsCommand,
939+
PutDataExportConfigurationCommand,
928940
PutEnvironmentBlueprintConfigurationCommand,
929941
RejectPredictionsCommand,
930942
RejectSubscriptionRequestCommand,
@@ -2069,6 +2081,23 @@ export interface DataZone {
20692081
cb: (err: any, data?: GetConnectionCommandOutput) => void
20702082
): void;
20712083

2084+
/**
2085+
* @see {@link GetDataExportConfigurationCommand}
2086+
*/
2087+
getDataExportConfiguration(
2088+
args: GetDataExportConfigurationCommandInput,
2089+
options?: __HttpHandlerOptions
2090+
): Promise<GetDataExportConfigurationCommandOutput>;
2091+
getDataExportConfiguration(
2092+
args: GetDataExportConfigurationCommandInput,
2093+
cb: (err: any, data?: GetDataExportConfigurationCommandOutput) => void
2094+
): void;
2095+
getDataExportConfiguration(
2096+
args: GetDataExportConfigurationCommandInput,
2097+
options: __HttpHandlerOptions,
2098+
cb: (err: any, data?: GetDataExportConfigurationCommandOutput) => void
2099+
): void;
2100+
20722101
/**
20732102
* @see {@link GetDataProductCommand}
20742103
*/
@@ -3067,6 +3096,23 @@ export interface DataZone {
30673096
cb: (err: any, data?: PostTimeSeriesDataPointsCommandOutput) => void
30683097
): void;
30693098

3099+
/**
3100+
* @see {@link PutDataExportConfigurationCommand}
3101+
*/
3102+
putDataExportConfiguration(
3103+
args: PutDataExportConfigurationCommandInput,
3104+
options?: __HttpHandlerOptions
3105+
): Promise<PutDataExportConfigurationCommandOutput>;
3106+
putDataExportConfiguration(
3107+
args: PutDataExportConfigurationCommandInput,
3108+
cb: (err: any, data?: PutDataExportConfigurationCommandOutput) => void
3109+
): void;
3110+
putDataExportConfiguration(
3111+
args: PutDataExportConfigurationCommandInput,
3112+
options: __HttpHandlerOptions,
3113+
cb: (err: any, data?: PutDataExportConfigurationCommandOutput) => void
3114+
): void;
3115+
30703116
/**
30713117
* @see {@link PutEnvironmentBlueprintConfigurationCommand}
30723118
*/

clients/client-datazone/src/DataZoneClient.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ import { GetAssetCommandInput, GetAssetCommandOutput } from "./commands/GetAsset
215215
import { GetAssetFilterCommandInput, GetAssetFilterCommandOutput } from "./commands/GetAssetFilterCommand";
216216
import { GetAssetTypeCommandInput, GetAssetTypeCommandOutput } from "./commands/GetAssetTypeCommand";
217217
import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
218+
import {
219+
GetDataExportConfigurationCommandInput,
220+
GetDataExportConfigurationCommandOutput,
221+
} from "./commands/GetDataExportConfigurationCommand";
218222
import { GetDataProductCommandInput, GetDataProductCommandOutput } from "./commands/GetDataProductCommand";
219223
import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
220224
import { GetDataSourceRunCommandInput, GetDataSourceRunCommandOutput } from "./commands/GetDataSourceRunCommand";
@@ -367,6 +371,10 @@ import {
367371
PostTimeSeriesDataPointsCommandInput,
368372
PostTimeSeriesDataPointsCommandOutput,
369373
} from "./commands/PostTimeSeriesDataPointsCommand";
374+
import {
375+
PutDataExportConfigurationCommandInput,
376+
PutDataExportConfigurationCommandOutput,
377+
} from "./commands/PutDataExportConfigurationCommand";
370378
import {
371379
PutEnvironmentBlueprintConfigurationCommandInput,
372380
PutEnvironmentBlueprintConfigurationCommandOutput,
@@ -525,6 +533,7 @@ export type ServiceInputTypes =
525533
| GetAssetFilterCommandInput
526534
| GetAssetTypeCommandInput
527535
| GetConnectionCommandInput
536+
| GetDataExportConfigurationCommandInput
528537
| GetDataProductCommandInput
529538
| GetDataSourceCommandInput
530539
| GetDataSourceRunCommandInput
@@ -590,6 +599,7 @@ export type ServiceInputTypes =
590599
| ListTimeSeriesDataPointsCommandInput
591600
| PostLineageEventCommandInput
592601
| PostTimeSeriesDataPointsCommandInput
602+
| PutDataExportConfigurationCommandInput
593603
| PutEnvironmentBlueprintConfigurationCommandInput
594604
| RejectPredictionsCommandInput
595605
| RejectSubscriptionRequestCommandInput
@@ -702,6 +712,7 @@ export type ServiceOutputTypes =
702712
| GetAssetFilterCommandOutput
703713
| GetAssetTypeCommandOutput
704714
| GetConnectionCommandOutput
715+
| GetDataExportConfigurationCommandOutput
705716
| GetDataProductCommandOutput
706717
| GetDataSourceCommandOutput
707718
| GetDataSourceRunCommandOutput
@@ -767,6 +778,7 @@ export type ServiceOutputTypes =
767778
| ListTimeSeriesDataPointsCommandOutput
768779
| PostLineageEventCommandOutput
769780
| PostTimeSeriesDataPointsCommandOutput
781+
| PutDataExportConfigurationCommandOutput
770782
| PutEnvironmentBlueprintConfigurationCommandOutput
771783
| RejectPredictionsCommandOutput
772784
| RejectSubscriptionRequestCommandOutput
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { Command as $Command } from "@smithy/smithy-client";
4+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5+
6+
import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient";
7+
import { commonParams } from "../endpoint/EndpointParameters";
8+
import { GetDataExportConfigurationInput, GetDataExportConfigurationOutput } from "../models/models_1";
9+
import { GetDataExportConfiguration } from "../schemas/schemas_0";
10+
11+
/**
12+
* @public
13+
*/
14+
export type { __MetadataBearer };
15+
export { $Command };
16+
/**
17+
* @public
18+
*
19+
* The input for {@link GetDataExportConfigurationCommand}.
20+
*/
21+
export interface GetDataExportConfigurationCommandInput extends GetDataExportConfigurationInput {}
22+
/**
23+
* @public
24+
*
25+
* The output of {@link GetDataExportConfigurationCommand}.
26+
*/
27+
export interface GetDataExportConfigurationCommandOutput extends GetDataExportConfigurationOutput, __MetadataBearer {}
28+
29+
/**
30+
* <p>Gets data export configuration details.</p>
31+
* @example
32+
* Use a bare-bones client and the command you need to make an API call.
33+
* ```javascript
34+
* import { DataZoneClient, GetDataExportConfigurationCommand } from "@aws-sdk/client-datazone"; // ES Modules import
35+
* // const { DataZoneClient, GetDataExportConfigurationCommand } = require("@aws-sdk/client-datazone"); // CommonJS import
36+
* // import type { DataZoneClientConfig } from "@aws-sdk/client-datazone";
37+
* const config = {}; // type is DataZoneClientConfig
38+
* const client = new DataZoneClient(config);
39+
* const input = { // GetDataExportConfigurationInput
40+
* domainIdentifier: "STRING_VALUE", // required
41+
* };
42+
* const command = new GetDataExportConfigurationCommand(input);
43+
* const response = await client.send(command);
44+
* // { // GetDataExportConfigurationOutput
45+
* // isExportEnabled: true || false,
46+
* // status: "COMPLETED" || "FAILED",
47+
* // encryptionConfiguration: { // EncryptionConfiguration
48+
* // kmsKeyArn: "STRING_VALUE",
49+
* // sseAlgorithm: "STRING_VALUE",
50+
* // },
51+
* // s3TableBucketArn: "STRING_VALUE",
52+
* // createdAt: new Date("TIMESTAMP"),
53+
* // updatedAt: new Date("TIMESTAMP"),
54+
* // };
55+
*
56+
* ```
57+
*
58+
* @param GetDataExportConfigurationCommandInput - {@link GetDataExportConfigurationCommandInput}
59+
* @returns {@link GetDataExportConfigurationCommandOutput}
60+
* @see {@link GetDataExportConfigurationCommandInput} for command's `input` shape.
61+
* @see {@link GetDataExportConfigurationCommandOutput} for command's `response` shape.
62+
* @see {@link DataZoneClientResolvedConfig | config} for DataZoneClient's `config` shape.
63+
*
64+
* @throws {@link AccessDeniedException} (client fault)
65+
* <p>You do not have sufficient access to perform this action.</p>
66+
*
67+
* @throws {@link InternalServerException} (server fault)
68+
* <p>The request has failed because of an unknown error, exception or failure.</p>
69+
*
70+
* @throws {@link ResourceNotFoundException} (client fault)
71+
* <p>The specified resource cannot be found.</p>
72+
*
73+
* @throws {@link ThrottlingException} (client fault)
74+
* <p>The request was denied due to request throttling.</p>
75+
*
76+
* @throws {@link ValidationException} (client fault)
77+
* <p>The input fails to satisfy the constraints specified by the Amazon Web Services service.</p>
78+
*
79+
* @throws {@link UnauthorizedException} (client fault)
80+
* <p>You do not have permission to perform this action.</p>
81+
*
82+
* @throws {@link DataZoneServiceException}
83+
* <p>Base exception class for all service exceptions from DataZone service.</p>
84+
*
85+
*
86+
* @public
87+
*/
88+
export class GetDataExportConfigurationCommand extends $Command
89+
.classBuilder<
90+
GetDataExportConfigurationCommandInput,
91+
GetDataExportConfigurationCommandOutput,
92+
DataZoneClientResolvedConfig,
93+
ServiceInputTypes,
94+
ServiceOutputTypes
95+
>()
96+
.ep(commonParams)
97+
.m(function (this: any, Command: any, cs: any, config: DataZoneClientResolvedConfig, o: any) {
98+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
99+
})
100+
.s("DataZone", "GetDataExportConfiguration", {})
101+
.n("DataZoneClient", "GetDataExportConfigurationCommand")
102+
.sc(GetDataExportConfiguration)
103+
.build() {
104+
/** @internal type navigation helper, not in runtime. */
105+
protected declare static __types: {
106+
api: {
107+
input: GetDataExportConfigurationInput;
108+
output: GetDataExportConfigurationOutput;
109+
};
110+
sdk: {
111+
input: GetDataExportConfigurationCommandInput;
112+
output: GetDataExportConfigurationCommandOutput;
113+
};
114+
};
115+
}

clients/client-datazone/src/commands/GetMetadataGenerationRunCommand.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export interface GetMetadataGenerationRunCommandOutput extends GetMetadataGenera
3939
* const input = { // GetMetadataGenerationRunInput
4040
* domainIdentifier: "STRING_VALUE", // required
4141
* identifier: "STRING_VALUE", // required
42+
* type: "BUSINESS_DESCRIPTIONS" || "BUSINESS_NAMES" || "BUSINESS_GLOSSARY_ASSOCIATIONS",
4243
* };
4344
* const command = new GetMetadataGenerationRunCommand(input);
4445
* const response = await client.send(command);
@@ -50,11 +51,21 @@ export interface GetMetadataGenerationRunCommandOutput extends GetMetadataGenera
5051
* // identifier: "STRING_VALUE", // required
5152
* // revision: "STRING_VALUE",
5253
* // },
53-
* // status: "SUBMITTED" || "IN_PROGRESS" || "CANCELED" || "SUCCEEDED" || "FAILED",
54-
* // type: "BUSINESS_DESCRIPTIONS",
54+
* // status: "SUBMITTED" || "IN_PROGRESS" || "CANCELED" || "SUCCEEDED" || "FAILED" || "PARTIALLY_SUCCEEDED",
55+
* // type: "BUSINESS_DESCRIPTIONS" || "BUSINESS_NAMES" || "BUSINESS_GLOSSARY_ASSOCIATIONS",
56+
* // types: [ // MetadataGenerationRunTypes
57+
* // "BUSINESS_DESCRIPTIONS" || "BUSINESS_NAMES" || "BUSINESS_GLOSSARY_ASSOCIATIONS",
58+
* // ],
5559
* // createdAt: new Date("TIMESTAMP"),
5660
* // createdBy: "STRING_VALUE",
5761
* // owningProjectId: "STRING_VALUE", // required
62+
* // typeStats: [ // MetadataGenerationRunTypeStats
63+
* // { // MetadataGenerationRunTypeStat
64+
* // type: "BUSINESS_DESCRIPTIONS" || "BUSINESS_NAMES" || "BUSINESS_GLOSSARY_ASSOCIATIONS", // required
65+
* // status: "SUBMITTED" || "IN_PROGRESS" || "CANCELED" || "SUCCEEDED" || "FAILED" || "PARTIALLY_SUCCEEDED", // required
66+
* // errorMessage: "STRING_VALUE",
67+
* // },
68+
* // ],
5869
* // };
5970
*
6071
* ```

clients/client-datazone/src/commands/ListMetadataGenerationRunsCommand.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ export interface ListMetadataGenerationRunsCommandOutput extends ListMetadataGen
3838
* const client = new DataZoneClient(config);
3939
* const input = { // ListMetadataGenerationRunsInput
4040
* domainIdentifier: "STRING_VALUE", // required
41-
* status: "SUBMITTED" || "IN_PROGRESS" || "CANCELED" || "SUCCEEDED" || "FAILED",
42-
* type: "BUSINESS_DESCRIPTIONS",
41+
* status: "SUBMITTED" || "IN_PROGRESS" || "CANCELED" || "SUCCEEDED" || "FAILED" || "PARTIALLY_SUCCEEDED",
42+
* type: "BUSINESS_DESCRIPTIONS" || "BUSINESS_NAMES" || "BUSINESS_GLOSSARY_ASSOCIATIONS",
4343
* nextToken: "STRING_VALUE",
4444
* maxResults: Number("int"),
45+
* targetIdentifier: "STRING_VALUE",
4546
* };
4647
* const command = new ListMetadataGenerationRunsCommand(input);
4748
* const response = await client.send(command);
@@ -55,8 +56,11 @@ export interface ListMetadataGenerationRunsCommandOutput extends ListMetadataGen
5556
* // identifier: "STRING_VALUE", // required
5657
* // revision: "STRING_VALUE",
5758
* // },
58-
* // status: "SUBMITTED" || "IN_PROGRESS" || "CANCELED" || "SUCCEEDED" || "FAILED",
59-
* // type: "BUSINESS_DESCRIPTIONS",
59+
* // status: "SUBMITTED" || "IN_PROGRESS" || "CANCELED" || "SUCCEEDED" || "FAILED" || "PARTIALLY_SUCCEEDED",
60+
* // type: "BUSINESS_DESCRIPTIONS" || "BUSINESS_NAMES" || "BUSINESS_GLOSSARY_ASSOCIATIONS",
61+
* // types: [ // MetadataGenerationRunTypes
62+
* // "BUSINESS_DESCRIPTIONS" || "BUSINESS_NAMES" || "BUSINESS_GLOSSARY_ASSOCIATIONS",
63+
* // ],
6064
* // createdAt: new Date("TIMESTAMP"),
6165
* // createdBy: "STRING_VALUE",
6266
* // owningProjectId: "STRING_VALUE", // required

0 commit comments

Comments
 (0)