Skip to content

Commit dacb8c6

Browse files
author
awstools
committed
feat(client-quicksight): Added ability to tag users upon creation.
1 parent c1d80c2 commit dacb8c6

File tree

8 files changed

+32
-9
lines changed

8 files changed

+32
-9
lines changed

clients/client-quicksight/src/commands/CreateFolderMembershipCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ export interface CreateFolderMembershipCommandOutput extends CreateFolderMembers
4848
* AwsAccountId: "STRING_VALUE", // required
4949
* FolderId: "STRING_VALUE", // required
5050
* MemberId: "STRING_VALUE", // required
51-
* MemberType: "DASHBOARD" || "ANALYSIS" || "DATASET", // required
51+
* MemberType: "DASHBOARD" || "ANALYSIS" || "DATASET" || "TOPIC", // required
5252
* };
5353
* const command = new CreateFolderMembershipCommand(input);
5454
* const response = await client.send(command);
5555
* // { // CreateFolderMembershipResponse
5656
* // Status: Number("int"),
5757
* // FolderMember: { // FolderMember
5858
* // MemberId: "STRING_VALUE",
59-
* // MemberType: "DASHBOARD" || "ANALYSIS" || "DATASET",
59+
* // MemberType: "DASHBOARD" || "ANALYSIS" || "DATASET" || "TOPIC",
6060
* // },
6161
* // RequestId: "STRING_VALUE",
6262
* // };

clients/client-quicksight/src/commands/DeleteFolderMembershipCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface DeleteFolderMembershipCommandOutput extends DeleteFolderMembers
4848
* AwsAccountId: "STRING_VALUE", // required
4949
* FolderId: "STRING_VALUE", // required
5050
* MemberId: "STRING_VALUE", // required
51-
* MemberType: "DASHBOARD" || "ANALYSIS" || "DATASET", // required
51+
* MemberType: "DASHBOARD" || "ANALYSIS" || "DATASET" || "TOPIC", // required
5252
* };
5353
* const command = new DeleteFolderMembershipCommand(input);
5454
* const response = await client.send(command);

clients/client-quicksight/src/commands/RegisterUserCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ export interface RegisterUserCommandOutput extends RegisterUserResponse, __Metad
5757
* ExternalLoginFederationProviderType: "STRING_VALUE",
5858
* CustomFederationProviderUrl: "STRING_VALUE",
5959
* ExternalLoginId: "STRING_VALUE",
60+
* Tags: [ // TagList
61+
* { // Tag
62+
* Key: "STRING_VALUE", // required
63+
* Value: "STRING_VALUE", // required
64+
* },
65+
* ],
6066
* };
6167
* const command = new RegisterUserCommand(input);
6268
* const response = await client.send(command);

clients/client-quicksight/src/commands/TagResourceCommand.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,12 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
4646
* that is already associated with the resource, the new tag value that you specify
4747
* replaces the previous value for that tag.</p>
4848
* <p>You can associate as many as 50 tags with a resource. Amazon QuickSight supports tagging on data
49-
* set, data source, dashboard, template, and topic. </p>
49+
* set, data source, dashboard, template, topic, and user. </p>
5050
* <p>Tagging for Amazon QuickSight works in a similar way to tagging for other Amazon Web Services services, except for
5151
* the following:</p>
5252
* <ul>
5353
* <li>
54-
* <p>You can't use tags to track costs for Amazon QuickSight. This isn't
55-
* possible because you can't tag the resources that Amazon QuickSight costs are based
56-
* on, for example Amazon QuickSight storage capacity (SPICE), number of users, type
57-
* of users, and usage metrics.</p>
54+
* <p>Tags are used to track costs for users in Amazon QuickSight. You can't tag other resources that Amazon QuickSight costs are based on, such as storage capacoty (SPICE), session usage, alert consumption, or reporting units.</p>
5855
* </li>
5956
* <li>
6057
* <p>Amazon QuickSight doesn't currently support the tag editor for Resource Groups.</p>

clients/client-quicksight/src/models/models_2.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5724,6 +5724,7 @@ export const MemberType = {
57245724
ANALYSIS: "ANALYSIS",
57255725
DASHBOARD: "DASHBOARD",
57265726
DATASET: "DATASET",
5727+
TOPIC: "TOPIC",
57275728
} as const;
57285729

57295730
/**

clients/client-quicksight/src/models/models_3.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8442,6 +8442,12 @@ export interface RegisterUserRequest {
84428442
* <p>The identity ID for a user in the external login provider.</p>
84438443
*/
84448444
ExternalLoginId?: string;
8445+
8446+
/**
8447+
* @public
8448+
* <p>The tags to associate with the user.</p>
8449+
*/
8450+
Tags?: Tag[];
84458451
}
84468452

84478453
/**

clients/client-quicksight/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5637,6 +5637,7 @@ export const se_RegisterUserCommand = async (
56375637
IamArn: [],
56385638
IdentityType: [],
56395639
SessionName: [],
5640+
Tags: (_) => _json(_),
56405641
UserName: [],
56415642
UserRole: [],
56425643
})

codegen/sdk-codegen/aws-models/quicksight.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30287,6 +30287,12 @@
3028730287
"traits": {
3028830288
"smithy.api#enumValue": "DATASET"
3028930289
}
30290+
},
30291+
"TOPIC": {
30292+
"target": "smithy.api#Unit",
30293+
"traits": {
30294+
"smithy.api#enumValue": "TOPIC"
30295+
}
3029030296
}
3029130297
}
3029230298
},
@@ -36380,6 +36386,12 @@
3638036386
"traits": {
3638136387
"smithy.api#documentation": "<p>The identity ID for a user in the external login provider.</p>"
3638236388
}
36389+
},
36390+
"Tags": {
36391+
"target": "com.amazonaws.quicksight#TagList",
36392+
"traits": {
36393+
"smithy.api#documentation": "<p>The tags to associate with the user.</p>"
36394+
}
3638336395
}
3638436396
},
3638536397
"traits": {
@@ -42341,7 +42353,7 @@
4234142353
}
4234242354
],
4234342355
"traits": {
42344-
"smithy.api#documentation": "<p>Assigns one or more tags (key-value pairs) to the specified Amazon QuickSight resource. </p>\n <p>Tags can help you organize and categorize your resources. You can also use them to\n\t\t\tscope user permissions, by granting a user permission to access or change only resources\n\t\t\twith certain tag values. You can use the <code>TagResource</code> operation with a\n\t\t\tresource that already has tags. If you specify a new tag key for the resource, this tag\n\t\t\tis appended to the list of tags associated with the resource. If you specify a tag key\n\t\t\tthat is already associated with the resource, the new tag value that you specify\n\t\t\treplaces the previous value for that tag.</p>\n <p>You can associate as many as 50 tags with a resource. Amazon QuickSight supports tagging on data\n\t\t\tset, data source, dashboard, template, and topic. </p>\n <p>Tagging for Amazon QuickSight works in a similar way to tagging for other Amazon Web Services services, except for\n\t\t\tthe following:</p>\n <ul>\n <li>\n <p>You can't use tags to track costs for Amazon QuickSight. This isn't\n\t\t\t\tpossible because you can't tag the resources that Amazon QuickSight costs are based \n\t\t\t\ton, for example Amazon QuickSight storage capacity (SPICE), number of users, type \n\t\t\t\tof users, and usage metrics.</p>\n </li>\n <li>\n <p>Amazon QuickSight doesn't currently support the tag editor for Resource Groups.</p>\n </li>\n </ul>",
42356+
"smithy.api#documentation": "<p>Assigns one or more tags (key-value pairs) to the specified Amazon QuickSight resource. </p>\n <p>Tags can help you organize and categorize your resources. You can also use them to\n\t\t\tscope user permissions, by granting a user permission to access or change only resources\n\t\t\twith certain tag values. You can use the <code>TagResource</code> operation with a\n\t\t\tresource that already has tags. If you specify a new tag key for the resource, this tag\n\t\t\tis appended to the list of tags associated with the resource. If you specify a tag key\n\t\t\tthat is already associated with the resource, the new tag value that you specify\n\t\t\treplaces the previous value for that tag.</p>\n <p>You can associate as many as 50 tags with a resource. Amazon QuickSight supports tagging on data\n\t\t\tset, data source, dashboard, template, topic, and user. </p>\n <p>Tagging for Amazon QuickSight works in a similar way to tagging for other Amazon Web Services services, except for\n\t\t\tthe following:</p>\n <ul>\n <li>\n <p>Tags are used to track costs for users in Amazon QuickSight. You can't tag other resources that Amazon QuickSight costs are based on, such as storage capacoty (SPICE), session usage, alert consumption, or reporting units.</p>\n </li>\n <li>\n <p>Amazon QuickSight doesn't currently support the tag editor for Resource Groups.</p>\n </li>\n </ul>",
4234542357
"smithy.api#http": {
4234642358
"method": "POST",
4234742359
"uri": "/resources/{ResourceArn}/tags",

0 commit comments

Comments
 (0)