Skip to content

Commit dc63d2c

Browse files
author
awstools
committed
feat(client-datazone): This release supports the data lineage feature of business data catalog in Amazon DataZone.
1 parent c6917b4 commit dc63d2c

15 files changed

+2012
-176
lines changed

Diff for: clients/client-datazone/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,14 @@ GetIamPortalLoginUrl
670670

671671
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/GetIamPortalLoginUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetIamPortalLoginUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetIamPortalLoginUrlCommandOutput/)
672672

673+
</details>
674+
<details>
675+
<summary>
676+
GetLineageNode
677+
</summary>
678+
679+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/GetLineageNodeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetLineageNodeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetLineageNodeCommandOutput/)
680+
673681
</details>
674682
<details>
675683
<summary>
@@ -822,6 +830,14 @@ ListEnvironments
822830

823831
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/ListEnvironmentsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListEnvironmentsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListEnvironmentsCommandOutput/)
824832

833+
</details>
834+
<details>
835+
<summary>
836+
ListLineageNodeHistory
837+
</summary>
838+
839+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/ListLineageNodeHistoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListLineageNodeHistoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListLineageNodeHistoryCommandOutput/)
840+
825841
</details>
826842
<details>
827843
<summary>
@@ -902,6 +918,14 @@ ListTimeSeriesDataPoints
902918

903919
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/ListTimeSeriesDataPointsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListTimeSeriesDataPointsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListTimeSeriesDataPointsCommandOutput/)
904920

921+
</details>
922+
<details>
923+
<summary>
924+
PostLineageEvent
925+
</summary>
926+
927+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/PostLineageEventCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/PostLineageEventCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/PostLineageEventCommandOutput/)
928+
905929
</details>
906930
<details>
907931
<summary>

Diff for: clients/client-datazone/src/DataZone.ts

+66
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ import {
268268
GetIamPortalLoginUrlCommandInput,
269269
GetIamPortalLoginUrlCommandOutput,
270270
} from "./commands/GetIamPortalLoginUrlCommand";
271+
import {
272+
GetLineageNodeCommand,
273+
GetLineageNodeCommandInput,
274+
GetLineageNodeCommandOutput,
275+
} from "./commands/GetLineageNodeCommand";
271276
import { GetListingCommand, GetListingCommandInput, GetListingCommandOutput } from "./commands/GetListingCommand";
272277
import {
273278
GetMetadataGenerationRunCommand,
@@ -351,6 +356,11 @@ import {
351356
ListEnvironmentsCommandInput,
352357
ListEnvironmentsCommandOutput,
353358
} from "./commands/ListEnvironmentsCommand";
359+
import {
360+
ListLineageNodeHistoryCommand,
361+
ListLineageNodeHistoryCommandInput,
362+
ListLineageNodeHistoryCommandOutput,
363+
} from "./commands/ListLineageNodeHistoryCommand";
354364
import {
355365
ListMetadataGenerationRunsCommand,
356366
ListMetadataGenerationRunsCommandInput,
@@ -401,6 +411,11 @@ import {
401411
ListTimeSeriesDataPointsCommandInput,
402412
ListTimeSeriesDataPointsCommandOutput,
403413
} from "./commands/ListTimeSeriesDataPointsCommand";
414+
import {
415+
PostLineageEventCommand,
416+
PostLineageEventCommandInput,
417+
PostLineageEventCommandOutput,
418+
} from "./commands/PostLineageEventCommand";
404419
import {
405420
PostTimeSeriesDataPointsCommand,
406421
PostTimeSeriesDataPointsCommandInput,
@@ -585,6 +600,7 @@ const commands = {
585600
GetGlossaryTermCommand,
586601
GetGroupProfileCommand,
587602
GetIamPortalLoginUrlCommand,
603+
GetLineageNodeCommand,
588604
GetListingCommand,
589605
GetMetadataGenerationRunCommand,
590606
GetProjectCommand,
@@ -604,6 +620,7 @@ const commands = {
604620
ListEnvironmentBlueprintsCommand,
605621
ListEnvironmentProfilesCommand,
606622
ListEnvironmentsCommand,
623+
ListLineageNodeHistoryCommand,
607624
ListMetadataGenerationRunsCommand,
608625
ListNotificationsCommand,
609626
ListProjectMembershipsCommand,
@@ -614,6 +631,7 @@ const commands = {
614631
ListSubscriptionTargetsCommand,
615632
ListTagsForResourceCommand,
616633
ListTimeSeriesDataPointsCommand,
634+
PostLineageEventCommand,
617635
PostTimeSeriesDataPointsCommand,
618636
PutEnvironmentBlueprintConfigurationCommand,
619637
RejectPredictionsCommand,
@@ -1525,6 +1543,20 @@ export interface DataZone {
15251543
cb: (err: any, data?: GetIamPortalLoginUrlCommandOutput) => void
15261544
): void;
15271545

1546+
/**
1547+
* @see {@link GetLineageNodeCommand}
1548+
*/
1549+
getLineageNode(
1550+
args: GetLineageNodeCommandInput,
1551+
options?: __HttpHandlerOptions
1552+
): Promise<GetLineageNodeCommandOutput>;
1553+
getLineageNode(args: GetLineageNodeCommandInput, cb: (err: any, data?: GetLineageNodeCommandOutput) => void): void;
1554+
getLineageNode(
1555+
args: GetLineageNodeCommandInput,
1556+
options: __HttpHandlerOptions,
1557+
cb: (err: any, data?: GetLineageNodeCommandOutput) => void
1558+
): void;
1559+
15281560
/**
15291561
* @see {@link GetListingCommand}
15301562
*/
@@ -1822,6 +1854,23 @@ export interface DataZone {
18221854
cb: (err: any, data?: ListEnvironmentsCommandOutput) => void
18231855
): void;
18241856

1857+
/**
1858+
* @see {@link ListLineageNodeHistoryCommand}
1859+
*/
1860+
listLineageNodeHistory(
1861+
args: ListLineageNodeHistoryCommandInput,
1862+
options?: __HttpHandlerOptions
1863+
): Promise<ListLineageNodeHistoryCommandOutput>;
1864+
listLineageNodeHistory(
1865+
args: ListLineageNodeHistoryCommandInput,
1866+
cb: (err: any, data?: ListLineageNodeHistoryCommandOutput) => void
1867+
): void;
1868+
listLineageNodeHistory(
1869+
args: ListLineageNodeHistoryCommandInput,
1870+
options: __HttpHandlerOptions,
1871+
cb: (err: any, data?: ListLineageNodeHistoryCommandOutput) => void
1872+
): void;
1873+
18251874
/**
18261875
* @see {@link ListMetadataGenerationRunsCommand}
18271876
*/
@@ -1986,6 +2035,23 @@ export interface DataZone {
19862035
cb: (err: any, data?: ListTimeSeriesDataPointsCommandOutput) => void
19872036
): void;
19882037

2038+
/**
2039+
* @see {@link PostLineageEventCommand}
2040+
*/
2041+
postLineageEvent(
2042+
args: PostLineageEventCommandInput,
2043+
options?: __HttpHandlerOptions
2044+
): Promise<PostLineageEventCommandOutput>;
2045+
postLineageEvent(
2046+
args: PostLineageEventCommandInput,
2047+
cb: (err: any, data?: PostLineageEventCommandOutput) => void
2048+
): void;
2049+
postLineageEvent(
2050+
args: PostLineageEventCommandInput,
2051+
options: __HttpHandlerOptions,
2052+
cb: (err: any, data?: PostLineageEventCommandOutput) => void
2053+
): void;
2054+
19892055
/**
19902056
* @see {@link PostTimeSeriesDataPointsCommand}
19912057
*/

Diff for: clients/client-datazone/src/DataZoneClient.ts

+12
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ import {
186186
GetIamPortalLoginUrlCommandInput,
187187
GetIamPortalLoginUrlCommandOutput,
188188
} from "./commands/GetIamPortalLoginUrlCommand";
189+
import { GetLineageNodeCommandInput, GetLineageNodeCommandOutput } from "./commands/GetLineageNodeCommand";
189190
import { GetListingCommandInput, GetListingCommandOutput } from "./commands/GetListingCommand";
190191
import {
191192
GetMetadataGenerationRunCommandInput,
@@ -235,6 +236,10 @@ import {
235236
ListEnvironmentProfilesCommandOutput,
236237
} from "./commands/ListEnvironmentProfilesCommand";
237238
import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "./commands/ListEnvironmentsCommand";
239+
import {
240+
ListLineageNodeHistoryCommandInput,
241+
ListLineageNodeHistoryCommandOutput,
242+
} from "./commands/ListLineageNodeHistoryCommand";
238243
import {
239244
ListMetadataGenerationRunsCommandInput,
240245
ListMetadataGenerationRunsCommandOutput,
@@ -266,6 +271,7 @@ import {
266271
ListTimeSeriesDataPointsCommandInput,
267272
ListTimeSeriesDataPointsCommandOutput,
268273
} from "./commands/ListTimeSeriesDataPointsCommand";
274+
import { PostLineageEventCommandInput, PostLineageEventCommandOutput } from "./commands/PostLineageEventCommand";
269275
import {
270276
PostTimeSeriesDataPointsCommandInput,
271277
PostTimeSeriesDataPointsCommandOutput,
@@ -396,6 +402,7 @@ export type ServiceInputTypes =
396402
| GetGlossaryTermCommandInput
397403
| GetGroupProfileCommandInput
398404
| GetIamPortalLoginUrlCommandInput
405+
| GetLineageNodeCommandInput
399406
| GetListingCommandInput
400407
| GetMetadataGenerationRunCommandInput
401408
| GetProjectCommandInput
@@ -415,6 +422,7 @@ export type ServiceInputTypes =
415422
| ListEnvironmentBlueprintsCommandInput
416423
| ListEnvironmentProfilesCommandInput
417424
| ListEnvironmentsCommandInput
425+
| ListLineageNodeHistoryCommandInput
418426
| ListMetadataGenerationRunsCommandInput
419427
| ListNotificationsCommandInput
420428
| ListProjectMembershipsCommandInput
@@ -425,6 +433,7 @@ export type ServiceInputTypes =
425433
| ListSubscriptionsCommandInput
426434
| ListTagsForResourceCommandInput
427435
| ListTimeSeriesDataPointsCommandInput
436+
| PostLineageEventCommandInput
428437
| PostTimeSeriesDataPointsCommandInput
429438
| PutEnvironmentBlueprintConfigurationCommandInput
430439
| RejectPredictionsCommandInput
@@ -515,6 +524,7 @@ export type ServiceOutputTypes =
515524
| GetGlossaryTermCommandOutput
516525
| GetGroupProfileCommandOutput
517526
| GetIamPortalLoginUrlCommandOutput
527+
| GetLineageNodeCommandOutput
518528
| GetListingCommandOutput
519529
| GetMetadataGenerationRunCommandOutput
520530
| GetProjectCommandOutput
@@ -534,6 +544,7 @@ export type ServiceOutputTypes =
534544
| ListEnvironmentBlueprintsCommandOutput
535545
| ListEnvironmentProfilesCommandOutput
536546
| ListEnvironmentsCommandOutput
547+
| ListLineageNodeHistoryCommandOutput
537548
| ListMetadataGenerationRunsCommandOutput
538549
| ListNotificationsCommandOutput
539550
| ListProjectMembershipsCommandOutput
@@ -544,6 +555,7 @@ export type ServiceOutputTypes =
544555
| ListSubscriptionsCommandOutput
545556
| ListTagsForResourceCommandOutput
546557
| ListTimeSeriesDataPointsCommandOutput
558+
| PostLineageEventCommandOutput
547559
| PostTimeSeriesDataPointsCommandOutput
548560
| PutEnvironmentBlueprintConfigurationCommandOutput
549561
| RejectPredictionsCommandOutput
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient";
8+
import { commonParams } from "../endpoint/EndpointParameters";
9+
import { GetLineageNodeInput, GetLineageNodeOutput, GetLineageNodeOutputFilterSensitiveLog } from "../models/models_0";
10+
import { de_GetLineageNodeCommand, se_GetLineageNodeCommand } from "../protocols/Aws_restJson1";
11+
12+
/**
13+
* @public
14+
*/
15+
export type { __MetadataBearer };
16+
export { $Command };
17+
/**
18+
* @public
19+
*
20+
* The input for {@link GetLineageNodeCommand}.
21+
*/
22+
export interface GetLineageNodeCommandInput extends GetLineageNodeInput {}
23+
/**
24+
* @public
25+
*
26+
* The output of {@link GetLineageNodeCommand}.
27+
*/
28+
export interface GetLineageNodeCommandOutput extends GetLineageNodeOutput, __MetadataBearer {}
29+
30+
/**
31+
* <p>Gets the data lineage node.</p>
32+
* @example
33+
* Use a bare-bones client and the command you need to make an API call.
34+
* ```javascript
35+
* import { DataZoneClient, GetLineageNodeCommand } from "@aws-sdk/client-datazone"; // ES Modules import
36+
* // const { DataZoneClient, GetLineageNodeCommand } = require("@aws-sdk/client-datazone"); // CommonJS import
37+
* const client = new DataZoneClient(config);
38+
* const input = { // GetLineageNodeInput
39+
* domainIdentifier: "STRING_VALUE", // required
40+
* identifier: "STRING_VALUE", // required
41+
* eventTimestamp: new Date("TIMESTAMP"),
42+
* };
43+
* const command = new GetLineageNodeCommand(input);
44+
* const response = await client.send(command);
45+
* // { // GetLineageNodeOutput
46+
* // domainId: "STRING_VALUE", // required
47+
* // name: "STRING_VALUE",
48+
* // description: "STRING_VALUE",
49+
* // createdAt: new Date("TIMESTAMP"),
50+
* // createdBy: "STRING_VALUE",
51+
* // updatedAt: new Date("TIMESTAMP"),
52+
* // updatedBy: "STRING_VALUE",
53+
* // id: "STRING_VALUE", // required
54+
* // typeName: "STRING_VALUE", // required
55+
* // typeRevision: "STRING_VALUE",
56+
* // sourceIdentifier: "STRING_VALUE",
57+
* // eventTimestamp: new Date("TIMESTAMP"),
58+
* // formsOutput: [ // FormOutputList
59+
* // { // FormOutput
60+
* // formName: "STRING_VALUE", // required
61+
* // typeName: "STRING_VALUE",
62+
* // typeRevision: "STRING_VALUE",
63+
* // content: "STRING_VALUE",
64+
* // },
65+
* // ],
66+
* // upstreamNodes: [ // LineageNodeReferenceList
67+
* // { // LineageNodeReference
68+
* // id: "STRING_VALUE",
69+
* // eventTimestamp: new Date("TIMESTAMP"),
70+
* // },
71+
* // ],
72+
* // downstreamNodes: [
73+
* // {
74+
* // id: "STRING_VALUE",
75+
* // eventTimestamp: new Date("TIMESTAMP"),
76+
* // },
77+
* // ],
78+
* // };
79+
*
80+
* ```
81+
*
82+
* @param GetLineageNodeCommandInput - {@link GetLineageNodeCommandInput}
83+
* @returns {@link GetLineageNodeCommandOutput}
84+
* @see {@link GetLineageNodeCommandInput} for command's `input` shape.
85+
* @see {@link GetLineageNodeCommandOutput} for command's `response` shape.
86+
* @see {@link DataZoneClientResolvedConfig | config} for DataZoneClient's `config` shape.
87+
*
88+
* @throws {@link AccessDeniedException} (client fault)
89+
* <p>You do not have sufficient access to perform this action.</p>
90+
*
91+
* @throws {@link InternalServerException} (server fault)
92+
* <p>The request has failed because of an unknown error, exception or failure.</p>
93+
*
94+
* @throws {@link ResourceNotFoundException} (client fault)
95+
* <p>The specified resource cannot be found.</p>
96+
*
97+
* @throws {@link ThrottlingException} (client fault)
98+
* <p>The request was denied due to request throttling.</p>
99+
*
100+
* @throws {@link ValidationException} (client fault)
101+
* <p>The input fails to satisfy the constraints specified by the Amazon Web Services service.</p>
102+
*
103+
* @throws {@link UnauthorizedException} (client fault)
104+
* <p>You do not have permission to perform this action.</p>
105+
*
106+
* @throws {@link DataZoneServiceException}
107+
* <p>Base exception class for all service exceptions from DataZone service.</p>
108+
*
109+
* @public
110+
*/
111+
export class GetLineageNodeCommand extends $Command
112+
.classBuilder<
113+
GetLineageNodeCommandInput,
114+
GetLineageNodeCommandOutput,
115+
DataZoneClientResolvedConfig,
116+
ServiceInputTypes,
117+
ServiceOutputTypes
118+
>()
119+
.ep({
120+
...commonParams,
121+
})
122+
.m(function (this: any, Command: any, cs: any, config: DataZoneClientResolvedConfig, o: any) {
123+
return [
124+
getSerdePlugin(config, this.serialize, this.deserialize),
125+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
126+
];
127+
})
128+
.s("DataZone", "GetLineageNode", {})
129+
.n("DataZoneClient", "GetLineageNodeCommand")
130+
.f(void 0, GetLineageNodeOutputFilterSensitiveLog)
131+
.ser(se_GetLineageNodeCommand)
132+
.de(de_GetLineageNodeCommand)
133+
.build() {}

0 commit comments

Comments
 (0)