Skip to content

Commit

Permalink
feat(client-quicksight): Add support for PerformanceConfiguration att…
Browse files Browse the repository at this point in the history
…ribute to Dataset entity. Allow PerformanceConfiguration specification in CreateDataset and UpdateDataset APIs.
  • Loading branch information
awstools committed Dec 18, 2024
1 parent c7611a4 commit 2c03dc7
Show file tree
Hide file tree
Showing 11 changed files with 328 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,15 @@ export interface CreateDataSetCommandOutput extends CreateDataSetResponse, __Met
* FolderArns: [ // FolderArnList
* "STRING_VALUE",
* ],
* PerformanceConfiguration: { // PerformanceConfiguration
* UniqueKeys: [ // UniqueKeyList
* { // UniqueKey
* ColumnNames: [ // UniqueKeyColumnNameList // required
* "STRING_VALUE",
* ],
* },
* ],
* },
* };
* const command = new CreateDataSetCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
DescribeAnalysisDefinitionRequest,
DescribeAnalysisDefinitionResponse,
DescribeAnalysisDefinitionResponseFilterSensitiveLog,
} from "../models/models_3";
} from "../models/models_4";
import { de_DescribeAnalysisDefinitionCommand, se_DescribeAnalysisDefinitionCommand } from "../protocols/Aws_restJson1";
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,15 @@ export interface DescribeDataSetCommandOutput extends DescribeDataSetResponse, _
* // },
* // },
* // ],
* // PerformanceConfiguration: { // PerformanceConfiguration
* // UniqueKeys: [ // UniqueKeyList
* // { // UniqueKey
* // ColumnNames: [ // UniqueKeyColumnNameList // required
* // "STRING_VALUE",
* // ],
* // },
* // ],
* // },
* // },
* // RequestId: "STRING_VALUE",
* // Status: Number("int"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import {
UpdateApplicationWithTokenExchangeGrantRequest,
UpdateApplicationWithTokenExchangeGrantResponse,
} from "../models/models_4";
import { UpdateApplicationWithTokenExchangeGrantRequest } from "../models/models_4";
import { UpdateApplicationWithTokenExchangeGrantResponse } from "../models/models_5";
import {
de_UpdateApplicationWithTokenExchangeGrantCommand,
se_UpdateApplicationWithTokenExchangeGrantCommand,
Expand Down
3 changes: 1 addition & 2 deletions clients/client-quicksight/src/commands/UpdateBrandCommand.ts
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 { UpdateBrandRequest } from "../models/models_4";
import { UpdateBrandResponse } from "../models/models_5";
import { UpdateBrandRequest, UpdateBrandResponse } from "../models/models_5";
import { de_UpdateBrandCommand, se_UpdateBrandCommand } from "../protocols/Aws_restJson1";
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,15 @@ export interface UpdateDataSetCommandOutput extends UpdateDataSetResponse, __Met
* },
* },
* ],
* PerformanceConfiguration: { // PerformanceConfiguration
* UniqueKeys: [ // UniqueKeyList
* { // UniqueKey
* ColumnNames: [ // UniqueKeyColumnNameList // required
* "STRING_VALUE",
* ],
* },
* ],
* },
* };
* const command = new UpdateDataSetCommand(input);
* const response = await client.send(command);
Expand Down
154 changes: 36 additions & 118 deletions clients/client-quicksight/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
AdHocFilteringOption,
Analysis,
AnalysisDefaults,
AnalysisError,
AssetOptions,
CalculatedField,
CalculatedFieldFilterSensitiveLog,
Expand Down Expand Up @@ -2328,6 +2327,30 @@ export interface LogicalTable {
Source: LogicalTableSource | undefined;
}

/**
* <p>A <code>UniqueKey</code> configuration that references a dataset column.</p>
* @public
*/
export interface UniqueKey {
/**
* <p>The name of the column that is referenced in the <code>UniqueKey</code> configuration.</p>
* @public
*/
ColumnNames: string[] | undefined;
}

/**
* <p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>
* @public
*/
export interface PerformanceConfiguration {
/**
* <p>A <code>UniqueKey</code> configuration.</p>
* @public
*/
UniqueKeys?: UniqueKey[] | undefined;
}

/**
* @public
* @enum
Expand Down Expand Up @@ -2847,6 +2870,12 @@ export interface CreateDataSetRequest {
* @public
*/
FolderArns?: string[] | undefined;

/**
* <p>The configuration for the performance optimization of the dataset that contains a <code>UniqueKey</code> configuration.</p>
* @public
*/
PerformanceConfiguration?: PerformanceConfiguration | undefined;
}

/**
Expand Down Expand Up @@ -6817,6 +6846,12 @@ export interface DataSet {
* @public
*/
DatasetParameters?: DatasetParameter[] | undefined;

/**
* <p>The performance optimization configuration of a dataset.</p>
* @public
*/
PerformanceConfiguration?: PerformanceConfiguration | undefined;
}

/**
Expand Down Expand Up @@ -8863,116 +8898,6 @@ export interface DescribeAnalysisResponse {
RequestId?: string | undefined;
}

/**
* @public
*/
export interface DescribeAnalysisDefinitionRequest {
/**
* <p>The ID of the Amazon Web Services account that contains the analysis. You must be using the
* Amazon Web Services account that the analysis is in.</p>
* @public
*/
AwsAccountId: string | undefined;

/**
* <p>The ID of the analysis that you're describing. The ID is part of the URL of the
* analysis.</p>
* @public
*/
AnalysisId: string | undefined;
}

/**
* @public
*/
export interface DescribeAnalysisDefinitionResponse {
/**
* <p>The ID of the analysis described.</p>
* @public
*/
AnalysisId?: string | undefined;

/**
* <p>The descriptive name of the analysis.</p>
* @public
*/
Name?: string | undefined;

/**
* <p>Errors associated with the analysis.</p>
* @public
*/
Errors?: AnalysisError[] | undefined;

/**
* <p>Status associated with the analysis.</p>
* <ul>
* <li>
* <p>
* <code>CREATION_IN_PROGRESS</code>
* </p>
* </li>
* <li>
* <p>
* <code>CREATION_SUCCESSFUL</code>
* </p>
* </li>
* <li>
* <p>
* <code>CREATION_FAILED</code>
* </p>
* </li>
* <li>
* <p>
* <code>UPDATE_IN_PROGRESS</code>
* </p>
* </li>
* <li>
* <p>
* <code>UPDATE_SUCCESSFUL</code>
* </p>
* </li>
* <li>
* <p>
* <code>UPDATE_FAILED</code>
* </p>
* </li>
* <li>
* <p>
* <code>DELETED</code>
* </p>
* </li>
* </ul>
* @public
*/
ResourceStatus?: ResourceStatus | undefined;

/**
* <p>The ARN of the theme of the analysis.</p>
* @public
*/
ThemeArn?: string | undefined;

/**
* <p>The definition of an analysis.</p>
* <p>A definition is the data model of all features in a Dashboard, Template, or Analysis.</p>
* @public
*/
Definition?: AnalysisDefinition | undefined;

/**
* <p>The HTTP status of the request.</p>
* @public
*/
Status?: number | undefined;

/**
* <p>The Amazon Web Services request ID for this operation.</p>
* @public
*/
RequestId?: string | undefined;
}

/**
* @internal
*/
Expand Down Expand Up @@ -9383,10 +9308,3 @@ export const DataSetFilterSensitiveLog = (obj: DataSet): any => ({
export const DescribeAnalysisResponseFilterSensitiveLog = (obj: DescribeAnalysisResponse): any => ({
...obj,
});

/**
* @internal
*/
export const DescribeAnalysisDefinitionResponseFilterSensitiveLog = (obj: DescribeAnalysisDefinitionResponse): any => ({
...obj,
});
Loading

0 comments on commit 2c03dc7

Please sign in to comment.