Skip to content

Commit

Permalink
feat(client-quicksight): Explicit query for authors and dashboard vie…
Browse files Browse the repository at this point in the history
…wing sharing for embedded users
  • Loading branch information
awstools committed Aug 22, 2024
1 parent 06501cb commit 18135bc
Show file tree
Hide file tree
Showing 16 changed files with 747 additions and 573 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5030,6 +5030,9 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M
* Timezone: "STRING_VALUE",
* WeekStart: "SUNDAY" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY",
* },
* QueryExecutionOptions: { // QueryExecutionOptions
* QueryExecutionMode: "AUTO" || "MANUAL",
* },
* },
* ValidationStrategy: { // ValidationStrategy
* Mode: "STRICT" || "LENIENT", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
CreateDataSourceRequest,
CreateDataSourceRequestFilterSensitiveLog,
CreateDataSourceResponse,
} from "../models/models_2";
} from "../models/models_3";
import { de_CreateDataSourceCommand, se_CreateDataSourceCommand } from "../protocols/Aws_restJson1";
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5024,6 +5024,9 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M
* Timezone: "STRING_VALUE",
* WeekStart: "SUNDAY" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY",
* },
* QueryExecutionOptions: { // QueryExecutionOptions
* QueryExecutionMode: "AUTO" || "MANUAL",
* },
* },
* ValidationStrategy: { // ValidationStrategy
* Mode: "STRICT" || "LENIENT", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4996,6 +4996,9 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi
* // Timezone: "STRING_VALUE",
* // WeekStart: "SUNDAY" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY",
* // },
* // QueryExecutionOptions: { // QueryExecutionOptions
* // QueryExecutionMode: "AUTO" || "MANUAL",
* // },
* // },
* // Status: Number("int"),
* // RequestId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5016,6 +5016,9 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat
* // Timezone: "STRING_VALUE",
* // WeekStart: "SUNDAY" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY",
* // },
* // QueryExecutionOptions: { // QueryExecutionOptions
* // QueryExecutionMode: "AUTO" || "MANUAL",
* // },
* // },
* // Status: Number("int"),
* // RequestId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeVPCConnectionRequest, DescribeVPCConnectionResponse } from "../models/models_3";
import { DescribeVPCConnectionRequest } from "../models/models_3";
import { DescribeVPCConnectionResponse } from "../models/models_4";
import { de_DescribeVPCConnectionCommand, se_DescribeVPCConnectionCommand } from "../protocols/Aws_restJson1";
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ export interface GenerateEmbedUrlForAnonymousUserCommandOutput
* ExperienceConfiguration: { // AnonymousUserEmbeddingExperienceConfiguration
* Dashboard: { // AnonymousUserDashboardEmbeddingConfiguration
* InitialDashboardId: "STRING_VALUE", // required
* EnabledFeatures: [ // AnonymousUserDashboardEmbeddingConfigurationEnabledFeatures
* "SHARED_VIEW",
* ],
* DisabledFeatures: [ // AnonymousUserDashboardEmbeddingConfigurationDisabledFeatures
* "SHARED_VIEW",
* ],
* FeatureConfigurations: { // AnonymousUserDashboardFeatureConfigurations
* SharedView: { // SharedViewConfigurations
* Enabled: true || false, // required
* },
* },
* },
* DashboardVisual: { // AnonymousUserDashboardVisualEmbeddingConfiguration
* InitialDashboardVisualId: { // DashboardVisualId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export interface GenerateEmbedUrlForRegisteredUserCommandOutput
* StatePersistence: { // StatePersistenceConfigurations
* Enabled: true || false, // required
* },
* SharedView: { // SharedViewConfigurations
* Enabled: true || false, // required
* },
* Bookmarks: { // BookmarksConfigurations
* Enabled: true || false, // required
* },
Expand All @@ -86,6 +89,9 @@ export interface GenerateEmbedUrlForRegisteredUserCommandOutput
* StatePersistence: {
* Enabled: true || false, // required
* },
* SharedView: {
* Enabled: true || false, // required
* },
* },
* },
* QSearchBar: { // RegisteredUserQSearchBarEmbeddingConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5016,6 +5016,9 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M
* Timezone: "STRING_VALUE",
* WeekStart: "SUNDAY" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY",
* },
* QueryExecutionOptions: { // QueryExecutionOptions
* QueryExecutionMode: "AUTO" || "MANUAL",
* },
* },
* ValidationStrategy: { // ValidationStrategy
* Mode: "STRICT" || "LENIENT", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5003,6 +5003,9 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M
* Timezone: "STRING_VALUE",
* WeekStart: "SUNDAY" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY",
* },
* QueryExecutionOptions: { // QueryExecutionOptions
* QueryExecutionMode: "AUTO" || "MANUAL",
* },
* },
* ValidationStrategy: { // ValidationStrategy
* Mode: "STRICT" || "LENIENT", // required
Expand Down
88 changes: 26 additions & 62 deletions clients/client-quicksight/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4004,6 +4004,32 @@ export interface ParameterDeclaration {
DateTimeParameterDeclaration?: DateTimeParameterDeclaration;
}

/**
* @public
* @enum
*/
export const QueryExecutionMode = {
AUTO: "AUTO",
MANUAL: "MANUAL",
} as const;

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

/**
* <p>A structure that describes the query execution options.</p>
* @public
*/
export interface QueryExecutionOptions {
/**
* <p>A structure that describes the query execution mode.</p>
* @public
*/
QueryExecutionMode?: QueryExecutionMode;
}

/**
* <p>The source controls that are used in a <code>CascadingControlConfiguration</code>.</p>
* @public
Expand Down Expand Up @@ -7462,68 +7488,6 @@ export const OtherCategories = {
*/
export type OtherCategories = (typeof OtherCategories)[keyof typeof OtherCategories];

/**
* <p>The limit configuration of the visual display for an axis.</p>
* @public
*/
export interface ItemsLimitConfiguration {
/**
* <p>The limit on how many items of a field are showed in the chart. For
* example, the number of slices that are displayed in a pie chart.</p>
* @public
*/
ItemsLimit?: number;

/**
* <p>The <code>Show
* other</code> of an axis in the chart. Choose one of the following options:</p>
* <ul>
* <li>
* <p>
* <code>INCLUDE</code>
* </p>
* </li>
* <li>
* <p>
* <code>EXCLUDE</code>
* </p>
* </li>
* </ul>
* @public
*/
OtherCategories?: OtherCategories;
}

/**
* <p>The sort configuration for a field in a
* field well.</p>
* @public
*/
export interface FieldSort {
/**
* <p>The sort configuration target field.</p>
* @public
*/
FieldId: string | undefined;

/**
* <p>The sort direction. Choose one of the following
* options:</p>
* <ul>
* <li>
* <p>
* <code>ASC</code>: Ascending</p>
* </li>
* <li>
* <p>
* <code>DESC</code>: Descending</p>
* </li>
* </ul>
* @public
*/
Direction: SortDirection | undefined;
}

/**
* @internal
*/
Expand Down
139 changes: 63 additions & 76 deletions clients/client-quicksight/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ import {
DataLabelOptionsFilterSensitiveLog,
DataLabelPosition,
DimensionField,
FieldSort,
FontConfiguration,
FormatConfiguration,
FormatConfigurationFilterSensitiveLog,
HorizontalTextAlignment,
ItemsLimitConfiguration,
LegendOptions,
MeasureField,
MeasureFieldFilterSensitiveLog,
NumberDisplayFormatConfiguration,
NumberDisplayFormatConfigurationFilterSensitiveLog,
OtherCategories,
PercentageDisplayFormatConfiguration,
PercentageDisplayFormatConfigurationFilterSensitiveLog,
ReferenceLine,
Expand All @@ -41,6 +40,68 @@ import {
WidgetStatus,
} from "./models_0";

/**
* <p>The limit configuration of the visual display for an axis.</p>
* @public
*/
export interface ItemsLimitConfiguration {
/**
* <p>The limit on how many items of a field are showed in the chart. For
* example, the number of slices that are displayed in a pie chart.</p>
* @public
*/
ItemsLimit?: number;

/**
* <p>The <code>Show
* other</code> of an axis in the chart. Choose one of the following options:</p>
* <ul>
* <li>
* <p>
* <code>INCLUDE</code>
* </p>
* </li>
* <li>
* <p>
* <code>EXCLUDE</code>
* </p>
* </li>
* </ul>
* @public
*/
OtherCategories?: OtherCategories;
}

/**
* <p>The sort configuration for a field in a
* field well.</p>
* @public
*/
export interface FieldSort {
/**
* <p>The sort configuration target field.</p>
* @public
*/
FieldId: string | undefined;

/**
* <p>The sort direction. Choose one of the following
* options:</p>
* <ul>
* <li>
* <p>
* <code>ASC</code>: Ascending</p>
* </li>
* <li>
* <p>
* <code>DESC</code>: Descending</p>
* </li>
* </ul>
* @public
*/
Direction: SortDirection | undefined;
}

/**
* <p>The field sort options in a chart configuration.</p>
* @public
Expand Down Expand Up @@ -7755,73 +7816,6 @@ export interface TreeMapConfiguration {
Interactions?: VisualInteractionOptions;
}

/**
* <p>A tree map.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/quicksight/latest/user/tree-map.html">Using tree maps</a> in the <i>Amazon QuickSight User Guide</i>.</p>
* @public
*/
export interface TreeMapVisual {
/**
* <p>The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers..</p>
* @public
*/
VisualId: string | undefined;

/**
* <p>The title that is displayed on the visual.</p>
* @public
*/
Title?: VisualTitleLabelOptions;

/**
* <p>The subtitle that is displayed on the visual.</p>
* @public
*/
Subtitle?: VisualSubtitleLabelOptions;

/**
* <p>The configuration settings of the visual.</p>
* @public
*/
ChartConfiguration?: TreeMapConfiguration;

/**
* <p>The list of custom actions that are configured for a visual.</p>
* @public
*/
Actions?: VisualCustomAction[];

/**
* <p>The column hierarchy that is used during drill-downs and drill-ups.</p>
* @public
*/
ColumnHierarchies?: ColumnHierarchy[];
}

/**
* <p>The color configuration for individual groups within a waterfall visual.</p>
* @public
*/
export interface WaterfallChartGroupColorConfiguration {
/**
* <p>Defines the color for the positive bars of a waterfall chart.</p>
* @public
*/
PositiveBarColor?: string;

/**
* <p>Defines the color for the negative bars of a waterfall chart.</p>
* @public
*/
NegativeBarColor?: string;

/**
* <p>Defines the color for the total bars of a waterfall chart.</p>
* @public
*/
TotalBarColor?: string;
}

/**
* @internal
*/
Expand Down Expand Up @@ -8987,10 +8981,3 @@ export const TreeMapConfigurationFilterSensitiveLog = (obj: TreeMapConfiguration
...obj,
...(obj.DataLabels && { DataLabels: DataLabelOptionsFilterSensitiveLog(obj.DataLabels) }),
});

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

0 comments on commit 18135bc

Please sign in to comment.