Skip to content

Commit

Permalink
feat(client-quicksight): Add LinkEntityArn support for different part…
Browse files Browse the repository at this point in the history
…itions; Add UnsupportedUserEditionException in UpdateDashboardLinks API; Add support for New Reader Experience Topics
  • Loading branch information
awstools committed Dec 29, 2023
1 parent e713dfd commit 20cf1b2
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface CreateTopicCommandOutput extends CreateTopicResponse, __Metadat
* Topic: { // TopicDetails
* Name: "STRING_VALUE",
* Description: "STRING_VALUE",
* UserExperienceVersion: "LEGACY" || "NEW_READER_EXPERIENCE",
* DataSets: [ // Datasets
* { // DatasetMetadata
* DatasetArn: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export interface DescribeTopicCommandOutput extends DescribeTopicResponse, __Met
* // Topic: { // TopicDetails
* // Name: "STRING_VALUE",
* // Description: "STRING_VALUE",
* // UserExperienceVersion: "LEGACY" || "NEW_READER_EXPERIENCE",
* // DataSets: [ // Datasets
* // { // DatasetMetadata
* // DatasetArn: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { ListTagsForResourceRequest } from "../models/models_3";
import { ListTagsForResourceResponse } from "../models/models_4";
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_4";
import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ export interface UpdateDashboardLinksCommandOutput extends UpdateDashboardLinksR
* @throws {@link ThrottlingException} (client fault)
* <p>Access is throttled.</p>
*
* @throws {@link UnsupportedUserEditionException} (client fault)
* <p>This error indicates that you are calling an operation on an Amazon QuickSight
* subscription where the edition doesn't include support for that operation. Amazon
* Amazon QuickSight currently has Standard Edition and Enterprise Edition. Not every operation and
* capability is available in every edition.</p>
*
* @throws {@link QuickSightServiceException}
* <p>Base exception class for all service exceptions from QuickSight service.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface UpdateTopicCommandOutput extends UpdateTopicResponse, __Metadat
* Topic: { // TopicDetails
* Name: "STRING_VALUE",
* Description: "STRING_VALUE",
* UserExperienceVersion: "LEGACY" || "NEW_READER_EXPERIENCE",
* DataSets: [ // Datasets
* { // DatasetMetadata
* DatasetArn: "STRING_VALUE", // required
Expand Down
31 changes: 20 additions & 11 deletions clients/client-quicksight/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,20 @@ export interface DatasetMetadata {
NamedEntities?: TopicNamedEntity[];
}

/**
* @public
* @enum
*/
export const TopicUserExperienceVersion = {
LEGACY: "LEGACY",
NEW_READER_EXPERIENCE: "NEW_READER_EXPERIENCE",
} as const;

/**
* @public
*/
export type TopicUserExperienceVersion = (typeof TopicUserExperienceVersion)[keyof typeof TopicUserExperienceVersion];

/**
* @public
* <p>A structure that describes the details of a topic, such as its name, description, and associated data sets.</p>
Expand All @@ -705,6 +719,12 @@ export interface TopicDetails {
*/
Description?: string;

/**
* @public
* <p>The user experience version of a topic.</p>
*/
UserExperienceVersion?: TopicUserExperienceVersion;

/**
* @public
* <p>The data sets that the topic is associated with.</p>
Expand Down Expand Up @@ -9063,17 +9083,6 @@ export interface ListRoleMembershipsResponse {
Status?: number;
}

/**
* @public
*/
export interface ListTagsForResourceRequest {
/**
* @public
* <p>The Amazon Resource Name (ARN) of the resource that you want a list of tags for.</p>
*/
ResourceArn: string | undefined;
}

/**
* @internal
*/
Expand Down
11 changes: 11 additions & 0 deletions clients/client-quicksight/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ import {
VPCConnectionResourceStatus,
} from "./models_3";

/**
* @public
*/
export interface ListTagsForResourceRequest {
/**
* @public
* <p>The Amazon Resource Name (ARN) of the resource that you want a list of tags for.</p>
*/
ResourceArn: string | undefined;
}

/**
* @public
*/
Expand Down
3 changes: 3 additions & 0 deletions clients/client-quicksight/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15008,6 +15008,9 @@ const de_UpdateDashboardLinksCommandError = async (
case "ThrottlingException":
case "com.amazonaws.quicksight#ThrottlingException":
throw await de_ThrottlingExceptionRes(parsedOutput, context);
case "UnsupportedUserEditionException":
case "com.amazonaws.quicksight#UnsupportedUserEditionException":
throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
Expand Down
28 changes: 27 additions & 1 deletion codegen/sdk-codegen/aws-models/quicksight.json
Original file line number Diff line number Diff line change
Expand Up @@ -28058,7 +28058,7 @@
"min": 1,
"max": 1024
},
"smithy.api#pattern": "^arn:aws:quicksight:[\\w\\-]+:\\d+:analysis/[\\w\\-]{1,512}$"
"smithy.api#pattern": "^arn:aws[\\w\\-]*:quicksight:[\\w\\-]+:\\d+:analysis/[\\w\\-]{1,512}$"
}
},
"com.amazonaws.quicksight#LinkEntityArnList": {
Expand Down Expand Up @@ -46420,6 +46420,12 @@
"smithy.api#documentation": "<p>The description of the topic.</p>"
}
},
"UserExperienceVersion": {
"target": "com.amazonaws.quicksight#TopicUserExperienceVersion",
"traits": {
"smithy.api#documentation": "<p>The user experience version of a topic.</p>"
}
},
"DataSets": {
"target": "com.amazonaws.quicksight#Datasets",
"traits": {
Expand Down Expand Up @@ -46995,6 +47001,23 @@
}
}
},
"com.amazonaws.quicksight#TopicUserExperienceVersion": {
"type": "enum",
"members": {
"LEGACY": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "LEGACY"
}
},
"NEW_READER_EXPERIENCE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "NEW_READER_EXPERIENCE"
}
}
}
},
"com.amazonaws.quicksight#TotalAggregationComputation": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -48370,6 +48393,9 @@
},
{
"target": "com.amazonaws.quicksight#ThrottlingException"
},
{
"target": "com.amazonaws.quicksight#UnsupportedUserEditionException"
}
],
"traits": {
Expand Down

0 comments on commit 20cf1b2

Please sign in to comment.