Skip to content

Commit

Permalink
feat(client-amplifyuibuilder): We have added the ability to tag resou…
Browse files Browse the repository at this point in the history
…rces after they are created
  • Loading branch information
awstools committed Feb 27, 2024
1 parent 59c19e5 commit 19ebae1
Show file tree
Hide file tree
Showing 20 changed files with 1,020 additions and 181 deletions.
24 changes: 24 additions & 0 deletions clients/client-amplifyuibuilder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,14 @@ ListForms

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amplifyuibuilder/command/ListFormsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/ListFormsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/ListFormsCommandOutput/)

</details>
<details>
<summary>
ListTagsForResource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amplifyuibuilder/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/ListTagsForResourceCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -386,6 +394,22 @@ StartCodegenJob

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amplifyuibuilder/command/StartCodegenJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/StartCodegenJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/StartCodegenJobCommandOutput/)

</details>
<details>
<summary>
TagResource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amplifyuibuilder/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/TagResourceCommandOutput/)

</details>
<details>
<summary>
UntagResource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amplifyuibuilder/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amplifyuibuilder/Interface/UntagResourceCommandOutput/)

</details>
<details>
<summary>
Expand Down
55 changes: 54 additions & 1 deletion clients/client-amplifyuibuilder/src/AmplifyUIBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ import {
ListComponentsCommandOutput,
} from "./commands/ListComponentsCommand";
import { ListFormsCommand, ListFormsCommandInput, ListFormsCommandOutput } from "./commands/ListFormsCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { ListThemesCommand, ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand";
import {
PutMetadataFlagCommand,
Expand All @@ -73,6 +78,12 @@ import {
StartCodegenJobCommandInput,
StartCodegenJobCommandOutput,
} from "./commands/StartCodegenJobCommand";
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
UntagResourceCommand,
UntagResourceCommandInput,
UntagResourceCommandOutput,
} from "./commands/UntagResourceCommand";
import {
UpdateComponentCommand,
UpdateComponentCommandInput,
Expand Down Expand Up @@ -100,10 +111,13 @@ const commands = {
ListCodegenJobsCommand,
ListComponentsCommand,
ListFormsCommand,
ListTagsForResourceCommand,
ListThemesCommand,
PutMetadataFlagCommand,
RefreshTokenCommand,
StartCodegenJobCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateComponentCommand,
UpdateFormCommand,
UpdateThemeCommand,
Expand Down Expand Up @@ -332,6 +346,23 @@ export interface AmplifyUIBuilder {
cb: (err: any, data?: ListFormsCommandOutput) => void
): void;

/**
* @see {@link ListTagsForResourceCommand}
*/
listTagsForResource(
args: ListTagsForResourceCommandInput,
options?: __HttpHandlerOptions
): Promise<ListTagsForResourceCommandOutput>;
listTagsForResource(
args: ListTagsForResourceCommandInput,
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;
listTagsForResource(
args: ListTagsForResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;

/**
* @see {@link ListThemesCommand}
*/
Expand Down Expand Up @@ -382,6 +413,28 @@ export interface AmplifyUIBuilder {
cb: (err: any, data?: StartCodegenJobCommandOutput) => void
): void;

/**
* @see {@link TagResourceCommand}
*/
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
tagResource(
args: TagResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: TagResourceCommandOutput) => void
): void;

/**
* @see {@link UntagResourceCommand}
*/
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
untagResource(
args: UntagResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UntagResourceCommandOutput) => void
): void;

/**
* @see {@link UpdateComponentCommand}
*/
Expand Down Expand Up @@ -426,7 +479,7 @@ export interface AmplifyUIBuilder {
* backend Amazon Web Services resources.</p>
* <p>You can also use the Amplify Studio visual designer to create UI components
* and model data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
* <i>Amplify Docs</i>.</p>
* <i>Amplify Docs</i>.</p>
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
* documentation for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
* deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify User Guide</a>.</p>
Expand Down
14 changes: 13 additions & 1 deletion clients/client-amplifyuibuilder/src/AmplifyUIBuilderClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,16 @@ import { GetThemeCommandInput, GetThemeCommandOutput } from "./commands/GetTheme
import { ListCodegenJobsCommandInput, ListCodegenJobsCommandOutput } from "./commands/ListCodegenJobsCommand";
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
import { ListFormsCommandInput, ListFormsCommandOutput } from "./commands/ListFormsCommand";
import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand";
import { PutMetadataFlagCommandInput, PutMetadataFlagCommandOutput } from "./commands/PutMetadataFlagCommand";
import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "./commands/RefreshTokenCommand";
import { StartCodegenJobCommandInput, StartCodegenJobCommandOutput } from "./commands/StartCodegenJobCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
import { UpdateFormCommandInput, UpdateFormCommandOutput } from "./commands/UpdateFormCommand";
import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "./commands/UpdateThemeCommand";
Expand Down Expand Up @@ -114,10 +120,13 @@ export type ServiceInputTypes =
| ListCodegenJobsCommandInput
| ListComponentsCommandInput
| ListFormsCommandInput
| ListTagsForResourceCommandInput
| ListThemesCommandInput
| PutMetadataFlagCommandInput
| RefreshTokenCommandInput
| StartCodegenJobCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateComponentCommandInput
| UpdateFormCommandInput
| UpdateThemeCommandInput;
Expand All @@ -144,10 +153,13 @@ export type ServiceOutputTypes =
| ListCodegenJobsCommandOutput
| ListComponentsCommandOutput
| ListFormsCommandOutput
| ListTagsForResourceCommandOutput
| ListThemesCommandOutput
| PutMetadataFlagCommandOutput
| RefreshTokenCommandOutput
| StartCodegenJobCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateComponentCommandOutput
| UpdateFormCommandOutput
| UpdateThemeCommandOutput;
Expand Down Expand Up @@ -330,7 +342,7 @@ export interface AmplifyUIBuilderClientResolvedConfig extends AmplifyUIBuilderCl
* backend Amazon Web Services resources.</p>
* <p>You can also use the Amplify Studio visual designer to create UI components
* and model data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
* <i>Amplify Docs</i>.</p>
* <i>Amplify Docs</i>.</p>
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
* documentation for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
* deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify User Guide</a>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export interface CreateComponentCommandOutput extends CreateComponentResponse, _
* sort: [ // SortPropertyList
* { // SortProperty
* field: "STRING_VALUE", // required
* direction: "STRING_VALUE", // required
* direction: "ASC" || "DESC", // required
* },
* ],
* predicate: "<Predicate>",
Expand Down Expand Up @@ -459,7 +459,7 @@ export interface CreateComponentCommandOutput extends CreateComponentResponse, _
* // sort: [ // SortPropertyList
* // { // SortProperty
* // field: "STRING_VALUE", // required
* // direction: "STRING_VALUE", // required
* // direction: "ASC" || "DESC", // required
* // },
* // ],
* // predicate: "<Predicate>",
Expand Down
32 changes: 16 additions & 16 deletions clients/client-amplifyuibuilder/src/commands/CreateFormCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* dataSourceType: "STRING_VALUE", // required
* dataTypeName: "STRING_VALUE", // required
* },
* formActionType: "STRING_VALUE", // required
* formActionType: "create" || "update", // required
* fields: { // FieldsMap // required
* "<keys>": { // FieldConfig
* label: "STRING_VALUE",
* position: { // FieldPosition Union: only one key present
* fixed: "STRING_VALUE",
* fixed: "first",
* rightOf: "STRING_VALUE",
* below: "STRING_VALUE",
* },
Expand Down Expand Up @@ -105,7 +105,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* value: "STRING_VALUE",
* isArray: true || false,
* fileUploaderConfig: { // FileUploaderFieldConfig
* accessLevel: "STRING_VALUE", // required
* accessLevel: "public" || "protected" || "private", // required
* acceptedFileTypes: [ // StrValues // required
* "STRING_VALUE",
* ],
Expand Down Expand Up @@ -147,7 +147,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* "<keys>": { // SectionalElement
* type: "STRING_VALUE", // required
* position: {// Union: only one key present
* fixed: "STRING_VALUE",
* fixed: "first",
* rightOf: "STRING_VALUE",
* below: "STRING_VALUE",
* },
Expand All @@ -159,12 +159,12 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* },
* schemaVersion: "STRING_VALUE", // required
* cta: { // FormCTA
* position: "STRING_VALUE",
* position: "top" || "bottom" || "top_and_bottom",
* clear: { // FormButton
* excluded: true || false,
* children: "STRING_VALUE",
* position: {// Union: only one key present
* fixed: "STRING_VALUE",
* fixed: "first",
* rightOf: "STRING_VALUE",
* below: "STRING_VALUE",
* },
Expand All @@ -173,7 +173,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* excluded: true || false,
* children: "STRING_VALUE",
* position: {// Union: only one key present
* fixed: "STRING_VALUE",
* fixed: "first",
* rightOf: "STRING_VALUE",
* below: "STRING_VALUE",
* },
Expand All @@ -182,7 +182,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* excluded: true || false,
* children: "STRING_VALUE",
* position: {// Union: only one key present
* fixed: "STRING_VALUE",
* fixed: "first",
* rightOf: "STRING_VALUE",
* below: "STRING_VALUE",
* },
Expand All @@ -202,7 +202,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* // environmentName: "STRING_VALUE", // required
* // id: "STRING_VALUE", // required
* // name: "STRING_VALUE", // required
* // formActionType: "STRING_VALUE", // required
* // formActionType: "create" || "update", // required
* // style: { // FormStyle
* // horizontalGap: { // FormStyleConfig Union: only one key present
* // tokenReference: "STRING_VALUE",
Expand All @@ -225,7 +225,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* // "<keys>": { // FieldConfig
* // label: "STRING_VALUE",
* // position: { // FieldPosition Union: only one key present
* // fixed: "STRING_VALUE",
* // fixed: "first",
* // rightOf: "STRING_VALUE",
* // below: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -280,7 +280,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* // value: "STRING_VALUE",
* // isArray: true || false,
* // fileUploaderConfig: { // FileUploaderFieldConfig
* // accessLevel: "STRING_VALUE", // required
* // accessLevel: "public" || "protected" || "private", // required
* // acceptedFileTypes: [ // StrValues // required
* // "STRING_VALUE",
* // ],
Expand Down Expand Up @@ -308,7 +308,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* // "<keys>": { // SectionalElement
* // type: "STRING_VALUE", // required
* // position: {// Union: only one key present
* // fixed: "STRING_VALUE",
* // fixed: "first",
* // rightOf: "STRING_VALUE",
* // below: "STRING_VALUE",
* // },
Expand All @@ -323,12 +323,12 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* // "<keys>": "STRING_VALUE",
* // },
* // cta: { // FormCTA
* // position: "STRING_VALUE",
* // position: "top" || "bottom" || "top_and_bottom",
* // clear: { // FormButton
* // excluded: true || false,
* // children: "STRING_VALUE",
* // position: {// Union: only one key present
* // fixed: "STRING_VALUE",
* // fixed: "first",
* // rightOf: "STRING_VALUE",
* // below: "STRING_VALUE",
* // },
Expand All @@ -337,7 +337,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* // excluded: true || false,
* // children: "STRING_VALUE",
* // position: {// Union: only one key present
* // fixed: "STRING_VALUE",
* // fixed: "first",
* // rightOf: "STRING_VALUE",
* // below: "STRING_VALUE",
* // },
Expand All @@ -346,7 +346,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
* // excluded: true || false,
* // children: "STRING_VALUE",
* // position: {// Union: only one key present
* // fixed: "STRING_VALUE",
* // fixed: "first",
* // rightOf: "STRING_VALUE",
* // below: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export interface ExportComponentsCommandOutput extends ExportComponentsResponse,
* // sort: [ // SortPropertyList
* // { // SortProperty
* // field: "STRING_VALUE", // required
* // direction: "STRING_VALUE", // required
* // direction: "ASC" || "DESC", // required
* // },
* // ],
* // predicate: "<Predicate>",
Expand Down

0 comments on commit 19ebae1

Please sign in to comment.