Skip to content

Commit

Permalink
feat(client-datazone): This release supports Metadata Enforcement Rul…
Browse files Browse the repository at this point in the history
…e feature for Create Subscription Request action.
  • Loading branch information
awstools committed Nov 20, 2024
1 parent b1f5b06 commit efe0aaf
Show file tree
Hide file tree
Showing 28 changed files with 8,181 additions and 4,450 deletions.
40 changes: 40 additions & 0 deletions clients/client-datazone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,14 @@ CreateProjectMembership

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/CreateProjectMembershipCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/CreateProjectMembershipCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/CreateProjectMembershipCommandOutput/)

</details>
<details>
<summary>
CreateRule
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/CreateRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/CreateRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/CreateRuleCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -582,6 +590,14 @@ DeleteProjectMembership

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/DeleteProjectMembershipCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/DeleteProjectMembershipCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/DeleteProjectMembershipCommandOutput/)

</details>
<details>
<summary>
DeleteRule
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/DeleteRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/DeleteRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/DeleteRuleCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -806,6 +822,14 @@ GetProject

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/GetProjectCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetProjectCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetProjectCommandOutput/)

</details>
<details>
<summary>
GetRule
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/GetRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/GetRuleCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1014,6 +1038,14 @@ ListProjects

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/ListProjectsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListProjectsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListProjectsCommandOutput/)

</details>
<details>
<summary>
ListRules
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/ListRulesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListRulesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/ListRulesCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1286,6 +1318,14 @@ UpdateProject

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/UpdateProjectCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/UpdateProjectCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/UpdateProjectCommandOutput/)

</details>
<details>
<summary>
UpdateRule
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datazone/command/UpdateRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/UpdateRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datazone/Interface/UpdateRuleCommandOutput/)

</details>
<details>
<summary>
Expand Down
65 changes: 65 additions & 0 deletions clients/client-datazone/src/DataZone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ import {
CreateProjectMembershipCommandInput,
CreateProjectMembershipCommandOutput,
} from "./commands/CreateProjectMembershipCommand";
import { CreateRuleCommand, CreateRuleCommandInput, CreateRuleCommandOutput } from "./commands/CreateRuleCommand";
import {
CreateSubscriptionGrantCommand,
CreateSubscriptionGrantCommandInput,
Expand Down Expand Up @@ -229,6 +230,7 @@ import {
DeleteProjectMembershipCommandInput,
DeleteProjectMembershipCommandOutput,
} from "./commands/DeleteProjectMembershipCommand";
import { DeleteRuleCommand, DeleteRuleCommandInput, DeleteRuleCommandOutput } from "./commands/DeleteRuleCommand";
import {
DeleteSubscriptionGrantCommand,
DeleteSubscriptionGrantCommandInput,
Expand Down Expand Up @@ -345,6 +347,7 @@ import {
GetMetadataGenerationRunCommandOutput,
} from "./commands/GetMetadataGenerationRunCommand";
import { GetProjectCommand, GetProjectCommandInput, GetProjectCommandOutput } from "./commands/GetProjectCommand";
import { GetRuleCommand, GetRuleCommandInput, GetRuleCommandOutput } from "./commands/GetRuleCommand";
import {
GetSubscriptionCommand,
GetSubscriptionCommandInput,
Expand Down Expand Up @@ -471,6 +474,7 @@ import {
ListProjectsCommandInput,
ListProjectsCommandOutput,
} from "./commands/ListProjectsCommand";
import { ListRulesCommand, ListRulesCommandInput, ListRulesCommandOutput } from "./commands/ListRulesCommand";
import {
ListSubscriptionGrantsCommand,
ListSubscriptionGrantsCommandInput,
Expand Down Expand Up @@ -629,6 +633,7 @@ import {
UpdateProjectCommandInput,
UpdateProjectCommandOutput,
} from "./commands/UpdateProjectCommand";
import { UpdateRuleCommand, UpdateRuleCommandInput, UpdateRuleCommandOutput } from "./commands/UpdateRuleCommand";
import {
UpdateSubscriptionGrantStatusCommand,
UpdateSubscriptionGrantStatusCommandInput,
Expand Down Expand Up @@ -678,6 +683,7 @@ const commands = {
CreateListingChangeSetCommand,
CreateProjectCommand,
CreateProjectMembershipCommand,
CreateRuleCommand,
CreateSubscriptionGrantCommand,
CreateSubscriptionRequestCommand,
CreateSubscriptionTargetCommand,
Expand All @@ -699,6 +705,7 @@ const commands = {
DeleteListingCommand,
DeleteProjectCommand,
DeleteProjectMembershipCommand,
DeleteRuleCommand,
DeleteSubscriptionGrantCommand,
DeleteSubscriptionRequestCommand,
DeleteSubscriptionTargetCommand,
Expand Down Expand Up @@ -727,6 +734,7 @@ const commands = {
GetListingCommand,
GetMetadataGenerationRunCommand,
GetProjectCommand,
GetRuleCommand,
GetSubscriptionCommand,
GetSubscriptionGrantCommand,
GetSubscriptionRequestDetailsCommand,
Expand All @@ -753,6 +761,7 @@ const commands = {
ListPolicyGrantsCommand,
ListProjectMembershipsCommand,
ListProjectsCommand,
ListRulesCommand,
ListSubscriptionGrantsCommand,
ListSubscriptionRequestsCommand,
ListSubscriptionsCommand,
Expand Down Expand Up @@ -787,6 +796,7 @@ const commands = {
UpdateGlossaryTermCommand,
UpdateGroupProfileCommand,
UpdateProjectCommand,
UpdateRuleCommand,
UpdateSubscriptionGrantStatusCommand,
UpdateSubscriptionRequestCommand,
UpdateSubscriptionTargetCommand,
Expand Down Expand Up @@ -1203,6 +1213,17 @@ export interface DataZone {
cb: (err: any, data?: CreateProjectMembershipCommandOutput) => void
): void;

/**
* @see {@link CreateRuleCommand}
*/
createRule(args: CreateRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateRuleCommandOutput>;
createRule(args: CreateRuleCommandInput, cb: (err: any, data?: CreateRuleCommandOutput) => void): void;
createRule(
args: CreateRuleCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateRuleCommandOutput) => void
): void;

/**
* @see {@link CreateSubscriptionGrantCommand}
*/
Expand Down Expand Up @@ -1527,6 +1548,17 @@ export interface DataZone {
cb: (err: any, data?: DeleteProjectMembershipCommandOutput) => void
): void;

/**
* @see {@link DeleteRuleCommand}
*/
deleteRule(args: DeleteRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRuleCommandOutput>;
deleteRule(args: DeleteRuleCommandInput, cb: (err: any, data?: DeleteRuleCommandOutput) => void): void;
deleteRule(
args: DeleteRuleCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteRuleCommandOutput) => void
): void;

/**
* @see {@link DeleteSubscriptionGrantCommand}
*/
Expand Down Expand Up @@ -1931,6 +1963,17 @@ export interface DataZone {
cb: (err: any, data?: GetProjectCommandOutput) => void
): void;

/**
* @see {@link GetRuleCommand}
*/
getRule(args: GetRuleCommandInput, options?: __HttpHandlerOptions): Promise<GetRuleCommandOutput>;
getRule(args: GetRuleCommandInput, cb: (err: any, data?: GetRuleCommandOutput) => void): void;
getRule(
args: GetRuleCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetRuleCommandOutput) => void
): void;

/**
* @see {@link GetSubscriptionCommand}
*/
Expand Down Expand Up @@ -2353,6 +2396,17 @@ export interface DataZone {
cb: (err: any, data?: ListProjectsCommandOutput) => void
): void;

/**
* @see {@link ListRulesCommand}
*/
listRules(args: ListRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListRulesCommandOutput>;
listRules(args: ListRulesCommandInput, cb: (err: any, data?: ListRulesCommandOutput) => void): void;
listRules(
args: ListRulesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListRulesCommandOutput) => void
): void;

/**
* @see {@link ListSubscriptionGrantsCommand}
*/
Expand Down Expand Up @@ -2889,6 +2943,17 @@ export interface DataZone {
cb: (err: any, data?: UpdateProjectCommandOutput) => void
): void;

/**
* @see {@link UpdateRuleCommand}
*/
updateRule(args: UpdateRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRuleCommandOutput>;
updateRule(args: UpdateRuleCommandInput, cb: (err: any, data?: UpdateRuleCommandOutput) => void): void;
updateRule(
args: UpdateRuleCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateRuleCommandOutput) => void
): void;

/**
* @see {@link UpdateSubscriptionGrantStatusCommand}
*/
Expand Down
15 changes: 15 additions & 0 deletions clients/client-datazone/src/DataZoneClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ import {
CreateProjectMembershipCommandInput,
CreateProjectMembershipCommandOutput,
} from "./commands/CreateProjectMembershipCommand";
import { CreateRuleCommandInput, CreateRuleCommandOutput } from "./commands/CreateRuleCommand";
import {
CreateSubscriptionGrantCommandInput,
CreateSubscriptionGrantCommandOutput,
Expand Down Expand Up @@ -148,6 +149,7 @@ import {
DeleteProjectMembershipCommandInput,
DeleteProjectMembershipCommandOutput,
} from "./commands/DeleteProjectMembershipCommand";
import { DeleteRuleCommandInput, DeleteRuleCommandOutput } from "./commands/DeleteRuleCommand";
import {
DeleteSubscriptionGrantCommandInput,
DeleteSubscriptionGrantCommandOutput,
Expand Down Expand Up @@ -212,6 +214,7 @@ import {
GetMetadataGenerationRunCommandOutput,
} from "./commands/GetMetadataGenerationRunCommand";
import { GetProjectCommandInput, GetProjectCommandOutput } from "./commands/GetProjectCommand";
import { GetRuleCommandInput, GetRuleCommandOutput } from "./commands/GetRuleCommand";
import { GetSubscriptionCommandInput, GetSubscriptionCommandOutput } from "./commands/GetSubscriptionCommand";
import {
GetSubscriptionGrantCommandInput,
Expand Down Expand Up @@ -280,6 +283,7 @@ import {
ListProjectMembershipsCommandOutput,
} from "./commands/ListProjectMembershipsCommand";
import { ListProjectsCommandInput, ListProjectsCommandOutput } from "./commands/ListProjectsCommand";
import { ListRulesCommandInput, ListRulesCommandOutput } from "./commands/ListRulesCommand";
import {
ListSubscriptionGrantsCommandInput,
ListSubscriptionGrantsCommandOutput,
Expand Down Expand Up @@ -350,6 +354,7 @@ import { UpdateGlossaryCommandInput, UpdateGlossaryCommandOutput } from "./comma
import { UpdateGlossaryTermCommandInput, UpdateGlossaryTermCommandOutput } from "./commands/UpdateGlossaryTermCommand";
import { UpdateGroupProfileCommandInput, UpdateGroupProfileCommandOutput } from "./commands/UpdateGroupProfileCommand";
import { UpdateProjectCommandInput, UpdateProjectCommandOutput } from "./commands/UpdateProjectCommand";
import { UpdateRuleCommandInput, UpdateRuleCommandOutput } from "./commands/UpdateRuleCommand";
import {
UpdateSubscriptionGrantStatusCommandInput,
UpdateSubscriptionGrantStatusCommandOutput,
Expand Down Expand Up @@ -404,6 +409,7 @@ export type ServiceInputTypes =
| CreateListingChangeSetCommandInput
| CreateProjectCommandInput
| CreateProjectMembershipCommandInput
| CreateRuleCommandInput
| CreateSubscriptionGrantCommandInput
| CreateSubscriptionRequestCommandInput
| CreateSubscriptionTargetCommandInput
Expand All @@ -425,6 +431,7 @@ export type ServiceInputTypes =
| DeleteListingCommandInput
| DeleteProjectCommandInput
| DeleteProjectMembershipCommandInput
| DeleteRuleCommandInput
| DeleteSubscriptionGrantCommandInput
| DeleteSubscriptionRequestCommandInput
| DeleteSubscriptionTargetCommandInput
Expand Down Expand Up @@ -453,6 +460,7 @@ export type ServiceInputTypes =
| GetListingCommandInput
| GetMetadataGenerationRunCommandInput
| GetProjectCommandInput
| GetRuleCommandInput
| GetSubscriptionCommandInput
| GetSubscriptionGrantCommandInput
| GetSubscriptionRequestDetailsCommandInput
Expand All @@ -479,6 +487,7 @@ export type ServiceInputTypes =
| ListPolicyGrantsCommandInput
| ListProjectMembershipsCommandInput
| ListProjectsCommandInput
| ListRulesCommandInput
| ListSubscriptionGrantsCommandInput
| ListSubscriptionRequestsCommandInput
| ListSubscriptionTargetsCommandInput
Expand Down Expand Up @@ -513,6 +522,7 @@ export type ServiceInputTypes =
| UpdateGlossaryTermCommandInput
| UpdateGroupProfileCommandInput
| UpdateProjectCommandInput
| UpdateRuleCommandInput
| UpdateSubscriptionGrantStatusCommandInput
| UpdateSubscriptionRequestCommandInput
| UpdateSubscriptionTargetCommandInput
Expand Down Expand Up @@ -548,6 +558,7 @@ export type ServiceOutputTypes =
| CreateListingChangeSetCommandOutput
| CreateProjectCommandOutput
| CreateProjectMembershipCommandOutput
| CreateRuleCommandOutput
| CreateSubscriptionGrantCommandOutput
| CreateSubscriptionRequestCommandOutput
| CreateSubscriptionTargetCommandOutput
Expand All @@ -569,6 +580,7 @@ export type ServiceOutputTypes =
| DeleteListingCommandOutput
| DeleteProjectCommandOutput
| DeleteProjectMembershipCommandOutput
| DeleteRuleCommandOutput
| DeleteSubscriptionGrantCommandOutput
| DeleteSubscriptionRequestCommandOutput
| DeleteSubscriptionTargetCommandOutput
Expand Down Expand Up @@ -597,6 +609,7 @@ export type ServiceOutputTypes =
| GetListingCommandOutput
| GetMetadataGenerationRunCommandOutput
| GetProjectCommandOutput
| GetRuleCommandOutput
| GetSubscriptionCommandOutput
| GetSubscriptionGrantCommandOutput
| GetSubscriptionRequestDetailsCommandOutput
Expand All @@ -623,6 +636,7 @@ export type ServiceOutputTypes =
| ListPolicyGrantsCommandOutput
| ListProjectMembershipsCommandOutput
| ListProjectsCommandOutput
| ListRulesCommandOutput
| ListSubscriptionGrantsCommandOutput
| ListSubscriptionRequestsCommandOutput
| ListSubscriptionTargetsCommandOutput
Expand Down Expand Up @@ -657,6 +671,7 @@ export type ServiceOutputTypes =
| UpdateGlossaryTermCommandOutput
| UpdateGroupProfileCommandOutput
| UpdateProjectCommandOutput
| UpdateRuleCommandOutput
| UpdateSubscriptionGrantStatusCommandOutput
| UpdateSubscriptionRequestCommandOutput
| UpdateSubscriptionTargetCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ export interface AcceptSubscriptionRequestCommandOutput extends AcceptSubscripti
* // ],
* // reviewerId: "STRING_VALUE",
* // decisionComment: "STRING_VALUE",
* // existingSubscriptionId: "STRING_VALUE",
* // metadataForms: [ // MetadataForms
* // { // FormOutput
* // formName: "STRING_VALUE", // required
* // typeName: "STRING_VALUE",
* // typeRevision: "STRING_VALUE",
* // content: "STRING_VALUE",
* // },
* // ],
* // };
*
* ```
Expand Down
Loading

0 comments on commit efe0aaf

Please sign in to comment.