Skip to content

Commit

Permalink
feat(client-datazone): This release supports the data lineage feature…
Browse files Browse the repository at this point in the history
… of business data catalog in Amazon DataZone.
  • Loading branch information
awstools committed Jun 27, 2024
1 parent c6917b4 commit dc63d2c
Show file tree
Hide file tree
Showing 15 changed files with 2,012 additions and 176 deletions.
24 changes: 24 additions & 0 deletions clients/client-datazone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,14 @@ GetIamPortalLoginUrl

[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/)

</details>
<details>
<summary>
GetLineageNode
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -822,6 +830,14 @@ ListEnvironments

[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/)

</details>
<details>
<summary>
ListLineageNodeHistory
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -902,6 +918,14 @@ ListTimeSeriesDataPoints

[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/)

</details>
<details>
<summary>
PostLineageEvent
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
66 changes: 66 additions & 0 deletions clients/client-datazone/src/DataZone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ import {
GetIamPortalLoginUrlCommandInput,
GetIamPortalLoginUrlCommandOutput,
} from "./commands/GetIamPortalLoginUrlCommand";
import {
GetLineageNodeCommand,
GetLineageNodeCommandInput,
GetLineageNodeCommandOutput,
} from "./commands/GetLineageNodeCommand";
import { GetListingCommand, GetListingCommandInput, GetListingCommandOutput } from "./commands/GetListingCommand";
import {
GetMetadataGenerationRunCommand,
Expand Down Expand Up @@ -351,6 +356,11 @@ import {
ListEnvironmentsCommandInput,
ListEnvironmentsCommandOutput,
} from "./commands/ListEnvironmentsCommand";
import {
ListLineageNodeHistoryCommand,
ListLineageNodeHistoryCommandInput,
ListLineageNodeHistoryCommandOutput,
} from "./commands/ListLineageNodeHistoryCommand";
import {
ListMetadataGenerationRunsCommand,
ListMetadataGenerationRunsCommandInput,
Expand Down Expand Up @@ -401,6 +411,11 @@ import {
ListTimeSeriesDataPointsCommandInput,
ListTimeSeriesDataPointsCommandOutput,
} from "./commands/ListTimeSeriesDataPointsCommand";
import {
PostLineageEventCommand,
PostLineageEventCommandInput,
PostLineageEventCommandOutput,
} from "./commands/PostLineageEventCommand";
import {
PostTimeSeriesDataPointsCommand,
PostTimeSeriesDataPointsCommandInput,
Expand Down Expand Up @@ -585,6 +600,7 @@ const commands = {
GetGlossaryTermCommand,
GetGroupProfileCommand,
GetIamPortalLoginUrlCommand,
GetLineageNodeCommand,
GetListingCommand,
GetMetadataGenerationRunCommand,
GetProjectCommand,
Expand All @@ -604,6 +620,7 @@ const commands = {
ListEnvironmentBlueprintsCommand,
ListEnvironmentProfilesCommand,
ListEnvironmentsCommand,
ListLineageNodeHistoryCommand,
ListMetadataGenerationRunsCommand,
ListNotificationsCommand,
ListProjectMembershipsCommand,
Expand All @@ -614,6 +631,7 @@ const commands = {
ListSubscriptionTargetsCommand,
ListTagsForResourceCommand,
ListTimeSeriesDataPointsCommand,
PostLineageEventCommand,
PostTimeSeriesDataPointsCommand,
PutEnvironmentBlueprintConfigurationCommand,
RejectPredictionsCommand,
Expand Down Expand Up @@ -1525,6 +1543,20 @@ export interface DataZone {
cb: (err: any, data?: GetIamPortalLoginUrlCommandOutput) => void
): void;

/**
* @see {@link GetLineageNodeCommand}
*/
getLineageNode(
args: GetLineageNodeCommandInput,
options?: __HttpHandlerOptions
): Promise<GetLineageNodeCommandOutput>;
getLineageNode(args: GetLineageNodeCommandInput, cb: (err: any, data?: GetLineageNodeCommandOutput) => void): void;
getLineageNode(
args: GetLineageNodeCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetLineageNodeCommandOutput) => void
): void;

/**
* @see {@link GetListingCommand}
*/
Expand Down Expand Up @@ -1822,6 +1854,23 @@ export interface DataZone {
cb: (err: any, data?: ListEnvironmentsCommandOutput) => void
): void;

/**
* @see {@link ListLineageNodeHistoryCommand}
*/
listLineageNodeHistory(
args: ListLineageNodeHistoryCommandInput,
options?: __HttpHandlerOptions
): Promise<ListLineageNodeHistoryCommandOutput>;
listLineageNodeHistory(
args: ListLineageNodeHistoryCommandInput,
cb: (err: any, data?: ListLineageNodeHistoryCommandOutput) => void
): void;
listLineageNodeHistory(
args: ListLineageNodeHistoryCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListLineageNodeHistoryCommandOutput) => void
): void;

/**
* @see {@link ListMetadataGenerationRunsCommand}
*/
Expand Down Expand Up @@ -1986,6 +2035,23 @@ export interface DataZone {
cb: (err: any, data?: ListTimeSeriesDataPointsCommandOutput) => void
): void;

/**
* @see {@link PostLineageEventCommand}
*/
postLineageEvent(
args: PostLineageEventCommandInput,
options?: __HttpHandlerOptions
): Promise<PostLineageEventCommandOutput>;
postLineageEvent(
args: PostLineageEventCommandInput,
cb: (err: any, data?: PostLineageEventCommandOutput) => void
): void;
postLineageEvent(
args: PostLineageEventCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PostLineageEventCommandOutput) => void
): void;

/**
* @see {@link PostTimeSeriesDataPointsCommand}
*/
Expand Down
12 changes: 12 additions & 0 deletions clients/client-datazone/src/DataZoneClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ import {
GetIamPortalLoginUrlCommandInput,
GetIamPortalLoginUrlCommandOutput,
} from "./commands/GetIamPortalLoginUrlCommand";
import { GetLineageNodeCommandInput, GetLineageNodeCommandOutput } from "./commands/GetLineageNodeCommand";
import { GetListingCommandInput, GetListingCommandOutput } from "./commands/GetListingCommand";
import {
GetMetadataGenerationRunCommandInput,
Expand Down Expand Up @@ -235,6 +236,10 @@ import {
ListEnvironmentProfilesCommandOutput,
} from "./commands/ListEnvironmentProfilesCommand";
import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "./commands/ListEnvironmentsCommand";
import {
ListLineageNodeHistoryCommandInput,
ListLineageNodeHistoryCommandOutput,
} from "./commands/ListLineageNodeHistoryCommand";
import {
ListMetadataGenerationRunsCommandInput,
ListMetadataGenerationRunsCommandOutput,
Expand Down Expand Up @@ -266,6 +271,7 @@ import {
ListTimeSeriesDataPointsCommandInput,
ListTimeSeriesDataPointsCommandOutput,
} from "./commands/ListTimeSeriesDataPointsCommand";
import { PostLineageEventCommandInput, PostLineageEventCommandOutput } from "./commands/PostLineageEventCommand";
import {
PostTimeSeriesDataPointsCommandInput,
PostTimeSeriesDataPointsCommandOutput,
Expand Down Expand Up @@ -396,6 +402,7 @@ export type ServiceInputTypes =
| GetGlossaryTermCommandInput
| GetGroupProfileCommandInput
| GetIamPortalLoginUrlCommandInput
| GetLineageNodeCommandInput
| GetListingCommandInput
| GetMetadataGenerationRunCommandInput
| GetProjectCommandInput
Expand All @@ -415,6 +422,7 @@ export type ServiceInputTypes =
| ListEnvironmentBlueprintsCommandInput
| ListEnvironmentProfilesCommandInput
| ListEnvironmentsCommandInput
| ListLineageNodeHistoryCommandInput
| ListMetadataGenerationRunsCommandInput
| ListNotificationsCommandInput
| ListProjectMembershipsCommandInput
Expand All @@ -425,6 +433,7 @@ export type ServiceInputTypes =
| ListSubscriptionsCommandInput
| ListTagsForResourceCommandInput
| ListTimeSeriesDataPointsCommandInput
| PostLineageEventCommandInput
| PostTimeSeriesDataPointsCommandInput
| PutEnvironmentBlueprintConfigurationCommandInput
| RejectPredictionsCommandInput
Expand Down Expand Up @@ -515,6 +524,7 @@ export type ServiceOutputTypes =
| GetGlossaryTermCommandOutput
| GetGroupProfileCommandOutput
| GetIamPortalLoginUrlCommandOutput
| GetLineageNodeCommandOutput
| GetListingCommandOutput
| GetMetadataGenerationRunCommandOutput
| GetProjectCommandOutput
Expand All @@ -534,6 +544,7 @@ export type ServiceOutputTypes =
| ListEnvironmentBlueprintsCommandOutput
| ListEnvironmentProfilesCommandOutput
| ListEnvironmentsCommandOutput
| ListLineageNodeHistoryCommandOutput
| ListMetadataGenerationRunsCommandOutput
| ListNotificationsCommandOutput
| ListProjectMembershipsCommandOutput
Expand All @@ -544,6 +555,7 @@ export type ServiceOutputTypes =
| ListSubscriptionsCommandOutput
| ListTagsForResourceCommandOutput
| ListTimeSeriesDataPointsCommandOutput
| PostLineageEventCommandOutput
| PostTimeSeriesDataPointsCommandOutput
| PutEnvironmentBlueprintConfigurationCommandOutput
| RejectPredictionsCommandOutput
Expand Down
133 changes: 133 additions & 0 deletions clients/client-datazone/src/commands/GetLineageNodeCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetLineageNodeInput, GetLineageNodeOutput, GetLineageNodeOutputFilterSensitiveLog } from "../models/models_0";
import { de_GetLineageNodeCommand, se_GetLineageNodeCommand } from "../protocols/Aws_restJson1";

/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetLineageNodeCommand}.
*/
export interface GetLineageNodeCommandInput extends GetLineageNodeInput {}
/**
* @public
*
* The output of {@link GetLineageNodeCommand}.
*/
export interface GetLineageNodeCommandOutput extends GetLineageNodeOutput, __MetadataBearer {}

/**
* <p>Gets the data lineage node.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { DataZoneClient, GetLineageNodeCommand } from "@aws-sdk/client-datazone"; // ES Modules import
* // const { DataZoneClient, GetLineageNodeCommand } = require("@aws-sdk/client-datazone"); // CommonJS import
* const client = new DataZoneClient(config);
* const input = { // GetLineageNodeInput
* domainIdentifier: "STRING_VALUE", // required
* identifier: "STRING_VALUE", // required
* eventTimestamp: new Date("TIMESTAMP"),
* };
* const command = new GetLineageNodeCommand(input);
* const response = await client.send(command);
* // { // GetLineageNodeOutput
* // domainId: "STRING_VALUE", // required
* // name: "STRING_VALUE",
* // description: "STRING_VALUE",
* // createdAt: new Date("TIMESTAMP"),
* // createdBy: "STRING_VALUE",
* // updatedAt: new Date("TIMESTAMP"),
* // updatedBy: "STRING_VALUE",
* // id: "STRING_VALUE", // required
* // typeName: "STRING_VALUE", // required
* // typeRevision: "STRING_VALUE",
* // sourceIdentifier: "STRING_VALUE",
* // eventTimestamp: new Date("TIMESTAMP"),
* // formsOutput: [ // FormOutputList
* // { // FormOutput
* // formName: "STRING_VALUE", // required
* // typeName: "STRING_VALUE",
* // typeRevision: "STRING_VALUE",
* // content: "STRING_VALUE",
* // },
* // ],
* // upstreamNodes: [ // LineageNodeReferenceList
* // { // LineageNodeReference
* // id: "STRING_VALUE",
* // eventTimestamp: new Date("TIMESTAMP"),
* // },
* // ],
* // downstreamNodes: [
* // {
* // id: "STRING_VALUE",
* // eventTimestamp: new Date("TIMESTAMP"),
* // },
* // ],
* // };
*
* ```
*
* @param GetLineageNodeCommandInput - {@link GetLineageNodeCommandInput}
* @returns {@link GetLineageNodeCommandOutput}
* @see {@link GetLineageNodeCommandInput} for command's `input` shape.
* @see {@link GetLineageNodeCommandOutput} for command's `response` shape.
* @see {@link DataZoneClientResolvedConfig | config} for DataZoneClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>The request has failed because of an unknown error, exception or failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource cannot be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The request was denied due to request throttling.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>The input fails to satisfy the constraints specified by the Amazon Web Services service.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You do not have permission to perform this action.</p>
*
* @throws {@link DataZoneServiceException}
* <p>Base exception class for all service exceptions from DataZone service.</p>
*
* @public
*/
export class GetLineageNodeCommand extends $Command
.classBuilder<
GetLineageNodeCommandInput,
GetLineageNodeCommandOutput,
DataZoneClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
>()
.ep({
...commonParams,
})
.m(function (this: any, Command: any, cs: any, config: DataZoneClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
})
.s("DataZone", "GetLineageNode", {})
.n("DataZoneClient", "GetLineageNodeCommand")
.f(void 0, GetLineageNodeOutputFilterSensitiveLog)
.ser(se_GetLineageNodeCommand)
.de(de_GetLineageNodeCommand)
.build() {}
Loading

0 comments on commit dc63d2c

Please sign in to comment.