Skip to content

Commit 19ebae1

Browse files
author
awstools
committed
feat(client-amplifyuibuilder): We have added the ability to tag resources after they are created
1 parent 59c19e5 commit 19ebae1

20 files changed

+1020
-181
lines changed

clients/client-amplifyuibuilder/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,14 @@ ListForms
354354

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

357+
</details>
358+
<details>
359+
<summary>
360+
ListTagsForResource
361+
</summary>
362+
363+
[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/)
364+
357365
</details>
358366
<details>
359367
<summary>
@@ -386,6 +394,22 @@ StartCodegenJob
386394

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

397+
</details>
398+
<details>
399+
<summary>
400+
TagResource
401+
</summary>
402+
403+
[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/)
404+
405+
</details>
406+
<details>
407+
<summary>
408+
UntagResource
409+
</summary>
410+
411+
[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/)
412+
389413
</details>
390414
<details>
391415
<summary>

clients/client-amplifyuibuilder/src/AmplifyUIBuilder.ts

+54-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ import {
5757
ListComponentsCommandOutput,
5858
} from "./commands/ListComponentsCommand";
5959
import { ListFormsCommand, ListFormsCommandInput, ListFormsCommandOutput } from "./commands/ListFormsCommand";
60+
import {
61+
ListTagsForResourceCommand,
62+
ListTagsForResourceCommandInput,
63+
ListTagsForResourceCommandOutput,
64+
} from "./commands/ListTagsForResourceCommand";
6065
import { ListThemesCommand, ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand";
6166
import {
6267
PutMetadataFlagCommand,
@@ -73,6 +78,12 @@ import {
7378
StartCodegenJobCommandInput,
7479
StartCodegenJobCommandOutput,
7580
} from "./commands/StartCodegenJobCommand";
81+
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
82+
import {
83+
UntagResourceCommand,
84+
UntagResourceCommandInput,
85+
UntagResourceCommandOutput,
86+
} from "./commands/UntagResourceCommand";
7687
import {
7788
UpdateComponentCommand,
7889
UpdateComponentCommandInput,
@@ -100,10 +111,13 @@ const commands = {
100111
ListCodegenJobsCommand,
101112
ListComponentsCommand,
102113
ListFormsCommand,
114+
ListTagsForResourceCommand,
103115
ListThemesCommand,
104116
PutMetadataFlagCommand,
105117
RefreshTokenCommand,
106118
StartCodegenJobCommand,
119+
TagResourceCommand,
120+
UntagResourceCommand,
107121
UpdateComponentCommand,
108122
UpdateFormCommand,
109123
UpdateThemeCommand,
@@ -332,6 +346,23 @@ export interface AmplifyUIBuilder {
332346
cb: (err: any, data?: ListFormsCommandOutput) => void
333347
): void;
334348

349+
/**
350+
* @see {@link ListTagsForResourceCommand}
351+
*/
352+
listTagsForResource(
353+
args: ListTagsForResourceCommandInput,
354+
options?: __HttpHandlerOptions
355+
): Promise<ListTagsForResourceCommandOutput>;
356+
listTagsForResource(
357+
args: ListTagsForResourceCommandInput,
358+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
359+
): void;
360+
listTagsForResource(
361+
args: ListTagsForResourceCommandInput,
362+
options: __HttpHandlerOptions,
363+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
364+
): void;
365+
335366
/**
336367
* @see {@link ListThemesCommand}
337368
*/
@@ -382,6 +413,28 @@ export interface AmplifyUIBuilder {
382413
cb: (err: any, data?: StartCodegenJobCommandOutput) => void
383414
): void;
384415

416+
/**
417+
* @see {@link TagResourceCommand}
418+
*/
419+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
420+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
421+
tagResource(
422+
args: TagResourceCommandInput,
423+
options: __HttpHandlerOptions,
424+
cb: (err: any, data?: TagResourceCommandOutput) => void
425+
): void;
426+
427+
/**
428+
* @see {@link UntagResourceCommand}
429+
*/
430+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
431+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
432+
untagResource(
433+
args: UntagResourceCommandInput,
434+
options: __HttpHandlerOptions,
435+
cb: (err: any, data?: UntagResourceCommandOutput) => void
436+
): void;
437+
385438
/**
386439
* @see {@link UpdateComponentCommand}
387440
*/
@@ -426,7 +479,7 @@ export interface AmplifyUIBuilder {
426479
* backend Amazon Web Services resources.</p>
427480
* <p>You can also use the Amplify Studio visual designer to create UI components
428481
* and model data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
429-
* <i>Amplify Docs</i>.</p>
482+
* <i>Amplify Docs</i>.</p>
430483
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
431484
* documentation for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
432485
* 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>

clients/client-amplifyuibuilder/src/AmplifyUIBuilderClient.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,16 @@ import { GetThemeCommandInput, GetThemeCommandOutput } from "./commands/GetTheme
7474
import { ListCodegenJobsCommandInput, ListCodegenJobsCommandOutput } from "./commands/ListCodegenJobsCommand";
7575
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
7676
import { ListFormsCommandInput, ListFormsCommandOutput } from "./commands/ListFormsCommand";
77+
import {
78+
ListTagsForResourceCommandInput,
79+
ListTagsForResourceCommandOutput,
80+
} from "./commands/ListTagsForResourceCommand";
7781
import { ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand";
7882
import { PutMetadataFlagCommandInput, PutMetadataFlagCommandOutput } from "./commands/PutMetadataFlagCommand";
7983
import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "./commands/RefreshTokenCommand";
8084
import { StartCodegenJobCommandInput, StartCodegenJobCommandOutput } from "./commands/StartCodegenJobCommand";
85+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
86+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
8187
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
8288
import { UpdateFormCommandInput, UpdateFormCommandOutput } from "./commands/UpdateFormCommand";
8389
import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "./commands/UpdateThemeCommand";
@@ -114,10 +120,13 @@ export type ServiceInputTypes =
114120
| ListCodegenJobsCommandInput
115121
| ListComponentsCommandInput
116122
| ListFormsCommandInput
123+
| ListTagsForResourceCommandInput
117124
| ListThemesCommandInput
118125
| PutMetadataFlagCommandInput
119126
| RefreshTokenCommandInput
120127
| StartCodegenJobCommandInput
128+
| TagResourceCommandInput
129+
| UntagResourceCommandInput
121130
| UpdateComponentCommandInput
122131
| UpdateFormCommandInput
123132
| UpdateThemeCommandInput;
@@ -144,10 +153,13 @@ export type ServiceOutputTypes =
144153
| ListCodegenJobsCommandOutput
145154
| ListComponentsCommandOutput
146155
| ListFormsCommandOutput
156+
| ListTagsForResourceCommandOutput
147157
| ListThemesCommandOutput
148158
| PutMetadataFlagCommandOutput
149159
| RefreshTokenCommandOutput
150160
| StartCodegenJobCommandOutput
161+
| TagResourceCommandOutput
162+
| UntagResourceCommandOutput
151163
| UpdateComponentCommandOutput
152164
| UpdateFormCommandOutput
153165
| UpdateThemeCommandOutput;
@@ -330,7 +342,7 @@ export interface AmplifyUIBuilderClientResolvedConfig extends AmplifyUIBuilderCl
330342
* backend Amazon Web Services resources.</p>
331343
* <p>You can also use the Amplify Studio visual designer to create UI components
332344
* and model data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
333-
* <i>Amplify Docs</i>.</p>
345+
* <i>Amplify Docs</i>.</p>
334346
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
335347
* documentation for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
336348
* 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>

clients/client-amplifyuibuilder/src/commands/CreateComponentCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export interface CreateComponentCommandOutput extends CreateComponentResponse, _
238238
* sort: [ // SortPropertyList
239239
* { // SortProperty
240240
* field: "STRING_VALUE", // required
241-
* direction: "STRING_VALUE", // required
241+
* direction: "ASC" || "DESC", // required
242242
* },
243243
* ],
244244
* predicate: "<Predicate>",
@@ -459,7 +459,7 @@ export interface CreateComponentCommandOutput extends CreateComponentResponse, _
459459
* // sort: [ // SortPropertyList
460460
* // { // SortProperty
461461
* // field: "STRING_VALUE", // required
462-
* // direction: "STRING_VALUE", // required
462+
* // direction: "ASC" || "DESC", // required
463463
* // },
464464
* // ],
465465
* // predicate: "<Predicate>",

clients/client-amplifyuibuilder/src/commands/CreateFormCommand.ts

+16-16
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
4545
* dataSourceType: "STRING_VALUE", // required
4646
* dataTypeName: "STRING_VALUE", // required
4747
* },
48-
* formActionType: "STRING_VALUE", // required
48+
* formActionType: "create" || "update", // required
4949
* fields: { // FieldsMap // required
5050
* "<keys>": { // FieldConfig
5151
* label: "STRING_VALUE",
5252
* position: { // FieldPosition Union: only one key present
53-
* fixed: "STRING_VALUE",
53+
* fixed: "first",
5454
* rightOf: "STRING_VALUE",
5555
* below: "STRING_VALUE",
5656
* },
@@ -105,7 +105,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
105105
* value: "STRING_VALUE",
106106
* isArray: true || false,
107107
* fileUploaderConfig: { // FileUploaderFieldConfig
108-
* accessLevel: "STRING_VALUE", // required
108+
* accessLevel: "public" || "protected" || "private", // required
109109
* acceptedFileTypes: [ // StrValues // required
110110
* "STRING_VALUE",
111111
* ],
@@ -147,7 +147,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
147147
* "<keys>": { // SectionalElement
148148
* type: "STRING_VALUE", // required
149149
* position: {// Union: only one key present
150-
* fixed: "STRING_VALUE",
150+
* fixed: "first",
151151
* rightOf: "STRING_VALUE",
152152
* below: "STRING_VALUE",
153153
* },
@@ -159,12 +159,12 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
159159
* },
160160
* schemaVersion: "STRING_VALUE", // required
161161
* cta: { // FormCTA
162-
* position: "STRING_VALUE",
162+
* position: "top" || "bottom" || "top_and_bottom",
163163
* clear: { // FormButton
164164
* excluded: true || false,
165165
* children: "STRING_VALUE",
166166
* position: {// Union: only one key present
167-
* fixed: "STRING_VALUE",
167+
* fixed: "first",
168168
* rightOf: "STRING_VALUE",
169169
* below: "STRING_VALUE",
170170
* },
@@ -173,7 +173,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
173173
* excluded: true || false,
174174
* children: "STRING_VALUE",
175175
* position: {// Union: only one key present
176-
* fixed: "STRING_VALUE",
176+
* fixed: "first",
177177
* rightOf: "STRING_VALUE",
178178
* below: "STRING_VALUE",
179179
* },
@@ -182,7 +182,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
182182
* excluded: true || false,
183183
* children: "STRING_VALUE",
184184
* position: {// Union: only one key present
185-
* fixed: "STRING_VALUE",
185+
* fixed: "first",
186186
* rightOf: "STRING_VALUE",
187187
* below: "STRING_VALUE",
188188
* },
@@ -202,7 +202,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
202202
* // environmentName: "STRING_VALUE", // required
203203
* // id: "STRING_VALUE", // required
204204
* // name: "STRING_VALUE", // required
205-
* // formActionType: "STRING_VALUE", // required
205+
* // formActionType: "create" || "update", // required
206206
* // style: { // FormStyle
207207
* // horizontalGap: { // FormStyleConfig Union: only one key present
208208
* // tokenReference: "STRING_VALUE",
@@ -225,7 +225,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
225225
* // "<keys>": { // FieldConfig
226226
* // label: "STRING_VALUE",
227227
* // position: { // FieldPosition Union: only one key present
228-
* // fixed: "STRING_VALUE",
228+
* // fixed: "first",
229229
* // rightOf: "STRING_VALUE",
230230
* // below: "STRING_VALUE",
231231
* // },
@@ -280,7 +280,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
280280
* // value: "STRING_VALUE",
281281
* // isArray: true || false,
282282
* // fileUploaderConfig: { // FileUploaderFieldConfig
283-
* // accessLevel: "STRING_VALUE", // required
283+
* // accessLevel: "public" || "protected" || "private", // required
284284
* // acceptedFileTypes: [ // StrValues // required
285285
* // "STRING_VALUE",
286286
* // ],
@@ -308,7 +308,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
308308
* // "<keys>": { // SectionalElement
309309
* // type: "STRING_VALUE", // required
310310
* // position: {// Union: only one key present
311-
* // fixed: "STRING_VALUE",
311+
* // fixed: "first",
312312
* // rightOf: "STRING_VALUE",
313313
* // below: "STRING_VALUE",
314314
* // },
@@ -323,12 +323,12 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
323323
* // "<keys>": "STRING_VALUE",
324324
* // },
325325
* // cta: { // FormCTA
326-
* // position: "STRING_VALUE",
326+
* // position: "top" || "bottom" || "top_and_bottom",
327327
* // clear: { // FormButton
328328
* // excluded: true || false,
329329
* // children: "STRING_VALUE",
330330
* // position: {// Union: only one key present
331-
* // fixed: "STRING_VALUE",
331+
* // fixed: "first",
332332
* // rightOf: "STRING_VALUE",
333333
* // below: "STRING_VALUE",
334334
* // },
@@ -337,7 +337,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
337337
* // excluded: true || false,
338338
* // children: "STRING_VALUE",
339339
* // position: {// Union: only one key present
340-
* // fixed: "STRING_VALUE",
340+
* // fixed: "first",
341341
* // rightOf: "STRING_VALUE",
342342
* // below: "STRING_VALUE",
343343
* // },
@@ -346,7 +346,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
346346
* // excluded: true || false,
347347
* // children: "STRING_VALUE",
348348
* // position: {// Union: only one key present
349-
* // fixed: "STRING_VALUE",
349+
* // fixed: "first",
350350
* // rightOf: "STRING_VALUE",
351351
* // below: "STRING_VALUE",
352352
* // },

clients/client-amplifyuibuilder/src/commands/ExportComponentsCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export interface ExportComponentsCommandOutput extends ExportComponentsResponse,
246246
* // sort: [ // SortPropertyList
247247
* // { // SortProperty
248248
* // field: "STRING_VALUE", // required
249-
* // direction: "STRING_VALUE", // required
249+
* // direction: "ASC" || "DESC", // required
250250
* // },
251251
* // ],
252252
* // predicate: "<Predicate>",

0 commit comments

Comments
 (0)