diff --git a/clients/client-quicksight/README.md b/clients/client-quicksight/README.md index bf542116f0fe..0c8d20616dbe 100644 --- a/clients/client-quicksight/README.md +++ b/clients/client-quicksight/README.md @@ -362,6 +362,30 @@ CreateThemeAlias [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/createthemealiascommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/createthemealiascommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/createthemealiascommandoutput.html) + +
+ +CreateTopic + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/createtopiccommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/createtopiccommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/createtopiccommandoutput.html) + +
+
+ +CreateTopicRefreshSchedule + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/createtopicrefreshschedulecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/createtopicrefreshschedulecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/createtopicrefreshschedulecommandoutput.html) + +
+
+ +CreateVPCConnection + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/createvpcconnectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/createvpcconnectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/createvpcconnectioncommandoutput.html) +
@@ -506,6 +530,22 @@ DeleteThemeAlias [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/deletethemealiascommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deletethemealiascommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deletethemealiascommandoutput.html) +
+
+ +DeleteTopic + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/deletetopiccommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deletetopiccommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deletetopiccommandoutput.html) + +
+
+ +DeleteTopicRefreshSchedule + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/deletetopicrefreshschedulecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deletetopicrefreshschedulecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deletetopicrefreshschedulecommandoutput.html) +
@@ -522,6 +562,14 @@ DeleteUserByPrincipalId [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/deleteuserbyprincipalidcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deleteuserbyprincipalidcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deleteuserbyprincipalidcommandoutput.html) +
+
+ +DeleteVPCConnection + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/deletevpcconnectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deletevpcconnectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/deletevpcconnectioncommandoutput.html) +
@@ -770,6 +818,38 @@ DescribeThemePermissions [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/describethemepermissionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describethemepermissionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describethemepermissionscommandoutput.html) +
+
+ +DescribeTopic + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/describetopiccommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describetopiccommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describetopiccommandoutput.html) + +
+
+ +DescribeTopicPermissions + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/describetopicpermissionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describetopicpermissionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describetopicpermissionscommandoutput.html) + +
+
+ +DescribeTopicRefresh + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/describetopicrefreshcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describetopicrefreshcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describetopicrefreshcommandoutput.html) + +
+
+ +DescribeTopicRefreshSchedule + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/describetopicrefreshschedulecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describetopicrefreshschedulecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describetopicrefreshschedulecommandoutput.html) +
@@ -778,6 +858,14 @@ DescribeUser [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/describeusercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describeusercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describeusercommandoutput.html) +
+
+ +DescribeVPCConnection + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/describevpcconnectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describevpcconnectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/describevpcconnectioncommandoutput.html) +
@@ -978,6 +1066,22 @@ ListThemeVersions [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/listthemeversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listthemeversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listthemeversionscommandoutput.html) +
+
+ +ListTopicRefreshSchedules + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/listtopicrefreshschedulescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listtopicrefreshschedulescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listtopicrefreshschedulescommandoutput.html) + +
+
+ +ListTopics + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/listtopicscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listtopicscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listtopicscommandoutput.html) +
@@ -994,6 +1098,14 @@ ListUsers [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/listuserscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listuserscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listuserscommandoutput.html) +
+
+ +ListVPCConnections + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/listvpcconnectionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listvpcconnectionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/listvpcconnectionscommandoutput.html) +
@@ -1274,6 +1386,30 @@ UpdateThemePermissions [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/updatethemepermissionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatethemepermissionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatethemepermissionscommandoutput.html) +
+
+ +UpdateTopic + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/updatetopiccommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatetopiccommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatetopiccommandoutput.html) + +
+
+ +UpdateTopicPermissions + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/updatetopicpermissionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatetopicpermissionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatetopicpermissionscommandoutput.html) + +
+
+ +UpdateTopicRefreshSchedule + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/updatetopicrefreshschedulecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatetopicrefreshschedulecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatetopicrefreshschedulecommandoutput.html) +
@@ -1283,3 +1419,11 @@ UpdateUser [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/updateusercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updateusercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updateusercommandoutput.html)
+
+ +UpdateVPCConnection + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/classes/updatevpcconnectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatevpcconnectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-quicksight/interfaces/updatevpcconnectioncommandoutput.html) + +
diff --git a/clients/client-quicksight/src/QuickSight.ts b/clients/client-quicksight/src/QuickSight.ts index a9eddee467bb..fba8a0dee84b 100644 --- a/clients/client-quicksight/src/QuickSight.ts +++ b/clients/client-quicksight/src/QuickSight.ts @@ -89,6 +89,17 @@ import { CreateThemeAliasCommandOutput, } from "./commands/CreateThemeAliasCommand"; import { CreateThemeCommand, CreateThemeCommandInput, CreateThemeCommandOutput } from "./commands/CreateThemeCommand"; +import { CreateTopicCommand, CreateTopicCommandInput, CreateTopicCommandOutput } from "./commands/CreateTopicCommand"; +import { + CreateTopicRefreshScheduleCommand, + CreateTopicRefreshScheduleCommandInput, + CreateTopicRefreshScheduleCommandOutput, +} from "./commands/CreateTopicRefreshScheduleCommand"; +import { + CreateVPCConnectionCommand, + CreateVPCConnectionCommandInput, + CreateVPCConnectionCommandOutput, +} from "./commands/CreateVPCConnectionCommand"; import { DeleteAccountCustomizationCommand, DeleteAccountCustomizationCommandInput, @@ -171,12 +182,23 @@ import { DeleteThemeAliasCommandOutput, } from "./commands/DeleteThemeAliasCommand"; import { DeleteThemeCommand, DeleteThemeCommandInput, DeleteThemeCommandOutput } from "./commands/DeleteThemeCommand"; +import { DeleteTopicCommand, DeleteTopicCommandInput, DeleteTopicCommandOutput } from "./commands/DeleteTopicCommand"; +import { + DeleteTopicRefreshScheduleCommand, + DeleteTopicRefreshScheduleCommandInput, + DeleteTopicRefreshScheduleCommandOutput, +} from "./commands/DeleteTopicRefreshScheduleCommand"; import { DeleteUserByPrincipalIdCommand, DeleteUserByPrincipalIdCommandInput, DeleteUserByPrincipalIdCommandOutput, } from "./commands/DeleteUserByPrincipalIdCommand"; import { DeleteUserCommand, DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand"; +import { + DeleteVPCConnectionCommand, + DeleteVPCConnectionCommandInput, + DeleteVPCConnectionCommandOutput, +} from "./commands/DeleteVPCConnectionCommand"; import { DescribeAccountCustomizationCommand, DescribeAccountCustomizationCommandInput, @@ -332,11 +354,36 @@ import { DescribeThemePermissionsCommandInput, DescribeThemePermissionsCommandOutput, } from "./commands/DescribeThemePermissionsCommand"; +import { + DescribeTopicCommand, + DescribeTopicCommandInput, + DescribeTopicCommandOutput, +} from "./commands/DescribeTopicCommand"; +import { + DescribeTopicPermissionsCommand, + DescribeTopicPermissionsCommandInput, + DescribeTopicPermissionsCommandOutput, +} from "./commands/DescribeTopicPermissionsCommand"; +import { + DescribeTopicRefreshCommand, + DescribeTopicRefreshCommandInput, + DescribeTopicRefreshCommandOutput, +} from "./commands/DescribeTopicRefreshCommand"; +import { + DescribeTopicRefreshScheduleCommand, + DescribeTopicRefreshScheduleCommandInput, + DescribeTopicRefreshScheduleCommandOutput, +} from "./commands/DescribeTopicRefreshScheduleCommand"; import { DescribeUserCommand, DescribeUserCommandInput, DescribeUserCommandOutput, } from "./commands/DescribeUserCommand"; +import { + DescribeVPCConnectionCommand, + DescribeVPCConnectionCommandInput, + DescribeVPCConnectionCommandOutput, +} from "./commands/DescribeVPCConnectionCommand"; import { GenerateEmbedUrlForAnonymousUserCommand, GenerateEmbedUrlForAnonymousUserCommandInput, @@ -450,12 +497,23 @@ import { ListThemeVersionsCommandInput, ListThemeVersionsCommandOutput, } from "./commands/ListThemeVersionsCommand"; +import { + ListTopicRefreshSchedulesCommand, + ListTopicRefreshSchedulesCommandInput, + ListTopicRefreshSchedulesCommandOutput, +} from "./commands/ListTopicRefreshSchedulesCommand"; +import { ListTopicsCommand, ListTopicsCommandInput, ListTopicsCommandOutput } from "./commands/ListTopicsCommand"; import { ListUserGroupsCommand, ListUserGroupsCommandInput, ListUserGroupsCommandOutput, } from "./commands/ListUserGroupsCommand"; import { ListUsersCommand, ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand"; +import { + ListVPCConnectionsCommand, + ListVPCConnectionsCommandInput, + ListVPCConnectionsCommandOutput, +} from "./commands/ListVPCConnectionsCommand"; import { PutDataSetRefreshPropertiesCommand, PutDataSetRefreshPropertiesCommandInput, @@ -619,7 +677,23 @@ import { UpdateThemePermissionsCommandInput, UpdateThemePermissionsCommandOutput, } from "./commands/UpdateThemePermissionsCommand"; +import { UpdateTopicCommand, UpdateTopicCommandInput, UpdateTopicCommandOutput } from "./commands/UpdateTopicCommand"; +import { + UpdateTopicPermissionsCommand, + UpdateTopicPermissionsCommandInput, + UpdateTopicPermissionsCommandOutput, +} from "./commands/UpdateTopicPermissionsCommand"; +import { + UpdateTopicRefreshScheduleCommand, + UpdateTopicRefreshScheduleCommandInput, + UpdateTopicRefreshScheduleCommandOutput, +} from "./commands/UpdateTopicRefreshScheduleCommand"; import { UpdateUserCommand, UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand"; +import { + UpdateVPCConnectionCommand, + UpdateVPCConnectionCommandInput, + UpdateVPCConnectionCommandOutput, +} from "./commands/UpdateVPCConnectionCommand"; import { QuickSightClient, QuickSightClientConfig } from "./QuickSightClient"; const commands = { @@ -642,6 +716,9 @@ const commands = { CreateTemplateAliasCommand, CreateThemeCommand, CreateThemeAliasCommand, + CreateTopicCommand, + CreateTopicRefreshScheduleCommand, + CreateVPCConnectionCommand, DeleteAccountCustomizationCommand, DeleteAccountSubscriptionCommand, DeleteAnalysisCommand, @@ -660,8 +737,11 @@ const commands = { DeleteTemplateAliasCommand, DeleteThemeCommand, DeleteThemeAliasCommand, + DeleteTopicCommand, + DeleteTopicRefreshScheduleCommand, DeleteUserCommand, DeleteUserByPrincipalIdCommand, + DeleteVPCConnectionCommand, DescribeAccountCustomizationCommand, DescribeAccountSettingsCommand, DescribeAccountSubscriptionCommand, @@ -693,7 +773,12 @@ const commands = { DescribeThemeCommand, DescribeThemeAliasCommand, DescribeThemePermissionsCommand, + DescribeTopicCommand, + DescribeTopicPermissionsCommand, + DescribeTopicRefreshCommand, + DescribeTopicRefreshScheduleCommand, DescribeUserCommand, + DescribeVPCConnectionCommand, GenerateEmbedUrlForAnonymousUserCommand, GenerateEmbedUrlForRegisteredUserCommand, GetDashboardEmbedUrlCommand, @@ -719,8 +804,11 @@ const commands = { ListThemeAliasesCommand, ListThemesCommand, ListThemeVersionsCommand, + ListTopicRefreshSchedulesCommand, + ListTopicsCommand, ListUserGroupsCommand, ListUsersCommand, + ListVPCConnectionsCommand, PutDataSetRefreshPropertiesCommand, RegisterUserCommand, RestoreAnalysisCommand, @@ -756,7 +844,11 @@ const commands = { UpdateThemeCommand, UpdateThemeAliasCommand, UpdateThemePermissionsCommand, + UpdateTopicCommand, + UpdateTopicPermissionsCommand, + UpdateTopicRefreshScheduleCommand, UpdateUserCommand, + UpdateVPCConnectionCommand, }; export interface QuickSight { @@ -1041,6 +1133,51 @@ export interface QuickSight { cb: (err: any, data?: CreateThemeAliasCommandOutput) => void ): void; + /** + * @see {@link CreateTopicCommand} + */ + createTopic(args: CreateTopicCommandInput, options?: __HttpHandlerOptions): Promise; + createTopic(args: CreateTopicCommandInput, cb: (err: any, data?: CreateTopicCommandOutput) => void): void; + createTopic( + args: CreateTopicCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateTopicCommandOutput) => void + ): void; + + /** + * @see {@link CreateTopicRefreshScheduleCommand} + */ + createTopicRefreshSchedule( + args: CreateTopicRefreshScheduleCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createTopicRefreshSchedule( + args: CreateTopicRefreshScheduleCommandInput, + cb: (err: any, data?: CreateTopicRefreshScheduleCommandOutput) => void + ): void; + createTopicRefreshSchedule( + args: CreateTopicRefreshScheduleCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateTopicRefreshScheduleCommandOutput) => void + ): void; + + /** + * @see {@link CreateVPCConnectionCommand} + */ + createVPCConnection( + args: CreateVPCConnectionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createVPCConnection( + args: CreateVPCConnectionCommandInput, + cb: (err: any, data?: CreateVPCConnectionCommandOutput) => void + ): void; + createVPCConnection( + args: CreateVPCConnectionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateVPCConnectionCommandOutput) => void + ): void; + /** * @see {@link DeleteAccountCustomizationCommand} */ @@ -1311,6 +1448,34 @@ export interface QuickSight { cb: (err: any, data?: DeleteThemeAliasCommandOutput) => void ): void; + /** + * @see {@link DeleteTopicCommand} + */ + deleteTopic(args: DeleteTopicCommandInput, options?: __HttpHandlerOptions): Promise; + deleteTopic(args: DeleteTopicCommandInput, cb: (err: any, data?: DeleteTopicCommandOutput) => void): void; + deleteTopic( + args: DeleteTopicCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteTopicCommandOutput) => void + ): void; + + /** + * @see {@link DeleteTopicRefreshScheduleCommand} + */ + deleteTopicRefreshSchedule( + args: DeleteTopicRefreshScheduleCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteTopicRefreshSchedule( + args: DeleteTopicRefreshScheduleCommandInput, + cb: (err: any, data?: DeleteTopicRefreshScheduleCommandOutput) => void + ): void; + deleteTopicRefreshSchedule( + args: DeleteTopicRefreshScheduleCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteTopicRefreshScheduleCommandOutput) => void + ): void; + /** * @see {@link DeleteUserCommand} */ @@ -1339,6 +1504,23 @@ export interface QuickSight { cb: (err: any, data?: DeleteUserByPrincipalIdCommandOutput) => void ): void; + /** + * @see {@link DeleteVPCConnectionCommand} + */ + deleteVPCConnection( + args: DeleteVPCConnectionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteVPCConnection( + args: DeleteVPCConnectionCommandInput, + cb: (err: any, data?: DeleteVPCConnectionCommandOutput) => void + ): void; + deleteVPCConnection( + args: DeleteVPCConnectionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteVPCConnectionCommandOutput) => void + ): void; + /** * @see {@link DescribeAccountCustomizationCommand} */ @@ -1848,6 +2030,68 @@ export interface QuickSight { cb: (err: any, data?: DescribeThemePermissionsCommandOutput) => void ): void; + /** + * @see {@link DescribeTopicCommand} + */ + describeTopic(args: DescribeTopicCommandInput, options?: __HttpHandlerOptions): Promise; + describeTopic(args: DescribeTopicCommandInput, cb: (err: any, data?: DescribeTopicCommandOutput) => void): void; + describeTopic( + args: DescribeTopicCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeTopicCommandOutput) => void + ): void; + + /** + * @see {@link DescribeTopicPermissionsCommand} + */ + describeTopicPermissions( + args: DescribeTopicPermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeTopicPermissions( + args: DescribeTopicPermissionsCommandInput, + cb: (err: any, data?: DescribeTopicPermissionsCommandOutput) => void + ): void; + describeTopicPermissions( + args: DescribeTopicPermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeTopicPermissionsCommandOutput) => void + ): void; + + /** + * @see {@link DescribeTopicRefreshCommand} + */ + describeTopicRefresh( + args: DescribeTopicRefreshCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeTopicRefresh( + args: DescribeTopicRefreshCommandInput, + cb: (err: any, data?: DescribeTopicRefreshCommandOutput) => void + ): void; + describeTopicRefresh( + args: DescribeTopicRefreshCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeTopicRefreshCommandOutput) => void + ): void; + + /** + * @see {@link DescribeTopicRefreshScheduleCommand} + */ + describeTopicRefreshSchedule( + args: DescribeTopicRefreshScheduleCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeTopicRefreshSchedule( + args: DescribeTopicRefreshScheduleCommandInput, + cb: (err: any, data?: DescribeTopicRefreshScheduleCommandOutput) => void + ): void; + describeTopicRefreshSchedule( + args: DescribeTopicRefreshScheduleCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeTopicRefreshScheduleCommandOutput) => void + ): void; + /** * @see {@link DescribeUserCommand} */ @@ -1859,6 +2103,23 @@ export interface QuickSight { cb: (err: any, data?: DescribeUserCommandOutput) => void ): void; + /** + * @see {@link DescribeVPCConnectionCommand} + */ + describeVPCConnection( + args: DescribeVPCConnectionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + describeVPCConnection( + args: DescribeVPCConnectionCommandInput, + cb: (err: any, data?: DescribeVPCConnectionCommandOutput) => void + ): void; + describeVPCConnection( + args: DescribeVPCConnectionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeVPCConnectionCommandOutput) => void + ): void; + /** * @see {@link GenerateEmbedUrlForAnonymousUserCommand} */ @@ -2236,6 +2497,34 @@ export interface QuickSight { cb: (err: any, data?: ListThemeVersionsCommandOutput) => void ): void; + /** + * @see {@link ListTopicRefreshSchedulesCommand} + */ + listTopicRefreshSchedules( + args: ListTopicRefreshSchedulesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listTopicRefreshSchedules( + args: ListTopicRefreshSchedulesCommandInput, + cb: (err: any, data?: ListTopicRefreshSchedulesCommandOutput) => void + ): void; + listTopicRefreshSchedules( + args: ListTopicRefreshSchedulesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListTopicRefreshSchedulesCommandOutput) => void + ): void; + + /** + * @see {@link ListTopicsCommand} + */ + listTopics(args: ListTopicsCommandInput, options?: __HttpHandlerOptions): Promise; + listTopics(args: ListTopicsCommandInput, cb: (err: any, data?: ListTopicsCommandOutput) => void): void; + listTopics( + args: ListTopicsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListTopicsCommandOutput) => void + ): void; + /** * @see {@link ListUserGroupsCommand} */ @@ -2261,6 +2550,23 @@ export interface QuickSight { cb: (err: any, data?: ListUsersCommandOutput) => void ): void; + /** + * @see {@link ListVPCConnectionsCommand} + */ + listVPCConnections( + args: ListVPCConnectionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listVPCConnections( + args: ListVPCConnectionsCommandInput, + cb: (err: any, data?: ListVPCConnectionsCommandOutput) => void + ): void; + listVPCConnections( + args: ListVPCConnectionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListVPCConnectionsCommandOutput) => void + ): void; + /** * @see {@link PutDataSetRefreshPropertiesCommand} */ @@ -2784,6 +3090,51 @@ export interface QuickSight { cb: (err: any, data?: UpdateThemePermissionsCommandOutput) => void ): void; + /** + * @see {@link UpdateTopicCommand} + */ + updateTopic(args: UpdateTopicCommandInput, options?: __HttpHandlerOptions): Promise; + updateTopic(args: UpdateTopicCommandInput, cb: (err: any, data?: UpdateTopicCommandOutput) => void): void; + updateTopic( + args: UpdateTopicCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateTopicCommandOutput) => void + ): void; + + /** + * @see {@link UpdateTopicPermissionsCommand} + */ + updateTopicPermissions( + args: UpdateTopicPermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateTopicPermissions( + args: UpdateTopicPermissionsCommandInput, + cb: (err: any, data?: UpdateTopicPermissionsCommandOutput) => void + ): void; + updateTopicPermissions( + args: UpdateTopicPermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateTopicPermissionsCommandOutput) => void + ): void; + + /** + * @see {@link UpdateTopicRefreshScheduleCommand} + */ + updateTopicRefreshSchedule( + args: UpdateTopicRefreshScheduleCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateTopicRefreshSchedule( + args: UpdateTopicRefreshScheduleCommandInput, + cb: (err: any, data?: UpdateTopicRefreshScheduleCommandOutput) => void + ): void; + updateTopicRefreshSchedule( + args: UpdateTopicRefreshScheduleCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateTopicRefreshScheduleCommandOutput) => void + ): void; + /** * @see {@link UpdateUserCommand} */ @@ -2794,6 +3145,23 @@ export interface QuickSight { options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserCommandOutput) => void ): void; + + /** + * @see {@link UpdateVPCConnectionCommand} + */ + updateVPCConnection( + args: UpdateVPCConnectionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateVPCConnection( + args: UpdateVPCConnectionCommandInput, + cb: (err: any, data?: UpdateVPCConnectionCommandOutput) => void + ): void; + updateVPCConnection( + args: UpdateVPCConnectionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateVPCConnectionCommandOutput) => void + ): void; } /** diff --git a/clients/client-quicksight/src/QuickSightClient.ts b/clients/client-quicksight/src/QuickSightClient.ts index c9bd4dfb8917..346512e6ba33 100644 --- a/clients/client-quicksight/src/QuickSightClient.ts +++ b/clients/client-quicksight/src/QuickSightClient.ts @@ -89,6 +89,15 @@ import { import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand"; import { CreateThemeAliasCommandInput, CreateThemeAliasCommandOutput } from "./commands/CreateThemeAliasCommand"; import { CreateThemeCommandInput, CreateThemeCommandOutput } from "./commands/CreateThemeCommand"; +import { CreateTopicCommandInput, CreateTopicCommandOutput } from "./commands/CreateTopicCommand"; +import { + CreateTopicRefreshScheduleCommandInput, + CreateTopicRefreshScheduleCommandOutput, +} from "./commands/CreateTopicRefreshScheduleCommand"; +import { + CreateVPCConnectionCommandInput, + CreateVPCConnectionCommandOutput, +} from "./commands/CreateVPCConnectionCommand"; import { DeleteAccountCustomizationCommandInput, DeleteAccountCustomizationCommandOutput, @@ -131,11 +140,20 @@ import { import { DeleteTemplateCommandInput, DeleteTemplateCommandOutput } from "./commands/DeleteTemplateCommand"; import { DeleteThemeAliasCommandInput, DeleteThemeAliasCommandOutput } from "./commands/DeleteThemeAliasCommand"; import { DeleteThemeCommandInput, DeleteThemeCommandOutput } from "./commands/DeleteThemeCommand"; +import { DeleteTopicCommandInput, DeleteTopicCommandOutput } from "./commands/DeleteTopicCommand"; +import { + DeleteTopicRefreshScheduleCommandInput, + DeleteTopicRefreshScheduleCommandOutput, +} from "./commands/DeleteTopicRefreshScheduleCommand"; import { DeleteUserByPrincipalIdCommandInput, DeleteUserByPrincipalIdCommandOutput, } from "./commands/DeleteUserByPrincipalIdCommand"; import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand"; +import { + DeleteVPCConnectionCommandInput, + DeleteVPCConnectionCommandOutput, +} from "./commands/DeleteVPCConnectionCommand"; import { DescribeAccountCustomizationCommandInput, DescribeAccountCustomizationCommandOutput, @@ -227,7 +245,24 @@ import { DescribeThemePermissionsCommandInput, DescribeThemePermissionsCommandOutput, } from "./commands/DescribeThemePermissionsCommand"; +import { DescribeTopicCommandInput, DescribeTopicCommandOutput } from "./commands/DescribeTopicCommand"; +import { + DescribeTopicPermissionsCommandInput, + DescribeTopicPermissionsCommandOutput, +} from "./commands/DescribeTopicPermissionsCommand"; +import { + DescribeTopicRefreshCommandInput, + DescribeTopicRefreshCommandOutput, +} from "./commands/DescribeTopicRefreshCommand"; +import { + DescribeTopicRefreshScheduleCommandInput, + DescribeTopicRefreshScheduleCommandOutput, +} from "./commands/DescribeTopicRefreshScheduleCommand"; import { DescribeUserCommandInput, DescribeUserCommandOutput } from "./commands/DescribeUserCommand"; +import { + DescribeVPCConnectionCommandInput, + DescribeVPCConnectionCommandOutput, +} from "./commands/DescribeVPCConnectionCommand"; import { GenerateEmbedUrlForAnonymousUserCommandInput, GenerateEmbedUrlForAnonymousUserCommandOutput, @@ -286,8 +321,14 @@ import { import { ListThemeAliasesCommandInput, ListThemeAliasesCommandOutput } from "./commands/ListThemeAliasesCommand"; import { ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand"; import { ListThemeVersionsCommandInput, ListThemeVersionsCommandOutput } from "./commands/ListThemeVersionsCommand"; +import { + ListTopicRefreshSchedulesCommandInput, + ListTopicRefreshSchedulesCommandOutput, +} from "./commands/ListTopicRefreshSchedulesCommand"; +import { ListTopicsCommandInput, ListTopicsCommandOutput } from "./commands/ListTopicsCommand"; import { ListUserGroupsCommandInput, ListUserGroupsCommandOutput } from "./commands/ListUserGroupsCommand"; import { ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand"; +import { ListVPCConnectionsCommandInput, ListVPCConnectionsCommandOutput } from "./commands/ListVPCConnectionsCommand"; import { PutDataSetRefreshPropertiesCommandInput, PutDataSetRefreshPropertiesCommandOutput, @@ -371,7 +412,20 @@ import { UpdateThemePermissionsCommandInput, UpdateThemePermissionsCommandOutput, } from "./commands/UpdateThemePermissionsCommand"; +import { UpdateTopicCommandInput, UpdateTopicCommandOutput } from "./commands/UpdateTopicCommand"; +import { + UpdateTopicPermissionsCommandInput, + UpdateTopicPermissionsCommandOutput, +} from "./commands/UpdateTopicPermissionsCommand"; +import { + UpdateTopicRefreshScheduleCommandInput, + UpdateTopicRefreshScheduleCommandOutput, +} from "./commands/UpdateTopicRefreshScheduleCommand"; import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand"; +import { + UpdateVPCConnectionCommandInput, + UpdateVPCConnectionCommandOutput, +} from "./commands/UpdateVPCConnectionCommand"; import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, @@ -403,6 +457,9 @@ export type ServiceInputTypes = | CreateTemplateCommandInput | CreateThemeAliasCommandInput | CreateThemeCommandInput + | CreateTopicCommandInput + | CreateTopicRefreshScheduleCommandInput + | CreateVPCConnectionCommandInput | DeleteAccountCustomizationCommandInput | DeleteAccountSubscriptionCommandInput | DeleteAnalysisCommandInput @@ -421,8 +478,11 @@ export type ServiceInputTypes = | DeleteTemplateCommandInput | DeleteThemeAliasCommandInput | DeleteThemeCommandInput + | DeleteTopicCommandInput + | DeleteTopicRefreshScheduleCommandInput | DeleteUserByPrincipalIdCommandInput | DeleteUserCommandInput + | DeleteVPCConnectionCommandInput | DescribeAccountCustomizationCommandInput | DescribeAccountSettingsCommandInput | DescribeAccountSubscriptionCommandInput @@ -454,7 +514,12 @@ export type ServiceInputTypes = | DescribeThemeAliasCommandInput | DescribeThemeCommandInput | DescribeThemePermissionsCommandInput + | DescribeTopicCommandInput + | DescribeTopicPermissionsCommandInput + | DescribeTopicRefreshCommandInput + | DescribeTopicRefreshScheduleCommandInput | DescribeUserCommandInput + | DescribeVPCConnectionCommandInput | GenerateEmbedUrlForAnonymousUserCommandInput | GenerateEmbedUrlForRegisteredUserCommandInput | GetDashboardEmbedUrlCommandInput @@ -480,8 +545,11 @@ export type ServiceInputTypes = | ListThemeAliasesCommandInput | ListThemeVersionsCommandInput | ListThemesCommandInput + | ListTopicRefreshSchedulesCommandInput + | ListTopicsCommandInput | ListUserGroupsCommandInput | ListUsersCommandInput + | ListVPCConnectionsCommandInput | PutDataSetRefreshPropertiesCommandInput | RegisterUserCommandInput | RestoreAnalysisCommandInput @@ -517,7 +585,11 @@ export type ServiceInputTypes = | UpdateThemeAliasCommandInput | UpdateThemeCommandInput | UpdateThemePermissionsCommandInput - | UpdateUserCommandInput; + | UpdateTopicCommandInput + | UpdateTopicPermissionsCommandInput + | UpdateTopicRefreshScheduleCommandInput + | UpdateUserCommandInput + | UpdateVPCConnectionCommandInput; /** * @public @@ -542,6 +614,9 @@ export type ServiceOutputTypes = | CreateTemplateCommandOutput | CreateThemeAliasCommandOutput | CreateThemeCommandOutput + | CreateTopicCommandOutput + | CreateTopicRefreshScheduleCommandOutput + | CreateVPCConnectionCommandOutput | DeleteAccountCustomizationCommandOutput | DeleteAccountSubscriptionCommandOutput | DeleteAnalysisCommandOutput @@ -560,8 +635,11 @@ export type ServiceOutputTypes = | DeleteTemplateCommandOutput | DeleteThemeAliasCommandOutput | DeleteThemeCommandOutput + | DeleteTopicCommandOutput + | DeleteTopicRefreshScheduleCommandOutput | DeleteUserByPrincipalIdCommandOutput | DeleteUserCommandOutput + | DeleteVPCConnectionCommandOutput | DescribeAccountCustomizationCommandOutput | DescribeAccountSettingsCommandOutput | DescribeAccountSubscriptionCommandOutput @@ -593,7 +671,12 @@ export type ServiceOutputTypes = | DescribeThemeAliasCommandOutput | DescribeThemeCommandOutput | DescribeThemePermissionsCommandOutput + | DescribeTopicCommandOutput + | DescribeTopicPermissionsCommandOutput + | DescribeTopicRefreshCommandOutput + | DescribeTopicRefreshScheduleCommandOutput | DescribeUserCommandOutput + | DescribeVPCConnectionCommandOutput | GenerateEmbedUrlForAnonymousUserCommandOutput | GenerateEmbedUrlForRegisteredUserCommandOutput | GetDashboardEmbedUrlCommandOutput @@ -619,8 +702,11 @@ export type ServiceOutputTypes = | ListThemeAliasesCommandOutput | ListThemeVersionsCommandOutput | ListThemesCommandOutput + | ListTopicRefreshSchedulesCommandOutput + | ListTopicsCommandOutput | ListUserGroupsCommandOutput | ListUsersCommandOutput + | ListVPCConnectionsCommandOutput | PutDataSetRefreshPropertiesCommandOutput | RegisterUserCommandOutput | RestoreAnalysisCommandOutput @@ -656,7 +742,11 @@ export type ServiceOutputTypes = | UpdateThemeAliasCommandOutput | UpdateThemeCommandOutput | UpdateThemePermissionsCommandOutput - | UpdateUserCommandOutput; + | UpdateTopicCommandOutput + | UpdateTopicPermissionsCommandOutput + | UpdateTopicRefreshScheduleCommandOutput + | UpdateUserCommandOutput + | UpdateVPCConnectionCommandOutput; /** * @public diff --git a/clients/client-quicksight/src/commands/CreateAccountCustomizationCommand.ts b/clients/client-quicksight/src/commands/CreateAccountCustomizationCommand.ts index 5cd3b4af0090..a8ac6d382739 100644 --- a/clients/client-quicksight/src/commands/CreateAccountCustomizationCommand.ts +++ b/clients/client-quicksight/src/commands/CreateAccountCustomizationCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { CreateAccountCustomizationRequest, CreateAccountCustomizationResponse } from "../models/models_1"; +import { CreateAccountCustomizationRequest, CreateAccountCustomizationResponse } from "../models/models_2"; import { de_CreateAccountCustomizationCommand, se_CreateAccountCustomizationCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/CreateAccountSubscriptionCommand.ts b/clients/client-quicksight/src/commands/CreateAccountSubscriptionCommand.ts index 78d6ddf727d8..ee004a8924e0 100644 --- a/clients/client-quicksight/src/commands/CreateAccountSubscriptionCommand.ts +++ b/clients/client-quicksight/src/commands/CreateAccountSubscriptionCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { CreateAccountSubscriptionRequest, CreateAccountSubscriptionResponse } from "../models/models_1"; +import { CreateAccountSubscriptionRequest, CreateAccountSubscriptionResponse } from "../models/models_2"; import { de_CreateAccountSubscriptionCommand, se_CreateAccountSubscriptionCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/CreateAnalysisCommand.ts b/clients/client-quicksight/src/commands/CreateAnalysisCommand.ts index d132e5990153..335ee02853f1 100644 --- a/clients/client-quicksight/src/commands/CreateAnalysisCommand.ts +++ b/clients/client-quicksight/src/commands/CreateAnalysisCommand.ts @@ -1020,6 +1020,9 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ // CustomActionColumnList + * "", + * ], * }, * TargetVisualsConfiguration: { // FilterOperationTargetVisualsConfiguration * SameSheetTargetVisualConfiguration: { // SameSheetTargetVisualConfiguration @@ -1064,6 +1067,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1415,6 +1419,9 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1459,6 +1466,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1827,6 +1835,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { // TooltipOptions * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -1860,7 +1869,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * }, * DynamicConfiguration: { // ReferenceLineDynamicDataConfiguration * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -1907,6 +1916,9 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1951,6 +1963,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2186,6 +2199,9 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2230,6 +2246,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2436,6 +2453,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2493,6 +2511,9 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2537,6 +2558,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2630,6 +2652,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * TooltipOptions: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2995,6 +3018,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * ReferenceLines: [ * { @@ -3005,7 +3029,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3172,6 +3196,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3417,11 +3442,14 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * YAxis: "", * Category: "", * Size: "", + * Label: "", * }, * ScatterPlotUnaggregatedFieldWells: { // ScatterPlotUnaggregatedFieldWells * XAxis: "", * YAxis: "", * Size: "", + * Category: "", + * Label: "", * }, * }, * XAxisLabelOptions: "", @@ -3476,7 +3504,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3549,7 +3577,7 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -4080,6 +4108,12 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: "STRING_VALUE", * }, + * MappedDataSetParameters: [ // MappedDataSetParameters + * { // MappedDataSetParameter + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DecimalParameterDeclaration: { // DecimalParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4096,6 +4130,12 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("double"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * IntegerParameterDeclaration: { // IntegerParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4112,6 +4152,12 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("long"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DateTimeParameterDeclaration: { // DateTimeParameterDeclaration * Name: "STRING_VALUE", // required @@ -4132,6 +4178,12 @@ export interface CreateAnalysisCommandOutput extends CreateAnalysisResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: new Date("TIMESTAMP"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * }, * ], diff --git a/clients/client-quicksight/src/commands/CreateDashboardCommand.ts b/clients/client-quicksight/src/commands/CreateDashboardCommand.ts index 0c71c44e6e45..74f89ce20435 100644 --- a/clients/client-quicksight/src/commands/CreateDashboardCommand.ts +++ b/clients/client-quicksight/src/commands/CreateDashboardCommand.ts @@ -1066,6 +1066,9 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ // CustomActionColumnList + * "", + * ], * }, * TargetVisualsConfiguration: { // FilterOperationTargetVisualsConfiguration * SameSheetTargetVisualConfiguration: { // SameSheetTargetVisualConfiguration @@ -1110,6 +1113,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1461,6 +1465,9 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1505,6 +1512,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1873,6 +1881,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { // TooltipOptions * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -1906,7 +1915,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * }, * DynamicConfiguration: { // ReferenceLineDynamicDataConfiguration * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -1953,6 +1962,9 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1997,6 +2009,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2232,6 +2245,9 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2276,6 +2292,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2482,6 +2499,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2539,6 +2557,9 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2583,6 +2604,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2676,6 +2698,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * TooltipOptions: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3041,6 +3064,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * ReferenceLines: [ * { @@ -3051,7 +3075,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3218,6 +3242,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3463,11 +3488,14 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * YAxis: "", * Category: "", * Size: "", + * Label: "", * }, * ScatterPlotUnaggregatedFieldWells: { // ScatterPlotUnaggregatedFieldWells * XAxis: "", * YAxis: "", * Size: "", + * Category: "", + * Label: "", * }, * }, * XAxisLabelOptions: "", @@ -3522,7 +3550,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3595,7 +3623,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -4126,6 +4154,12 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: "STRING_VALUE", * }, + * MappedDataSetParameters: [ // MappedDataSetParameters + * { // MappedDataSetParameter + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DecimalParameterDeclaration: { // DecimalParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4142,6 +4176,12 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("double"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * IntegerParameterDeclaration: { // IntegerParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4158,6 +4198,12 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("long"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DateTimeParameterDeclaration: { // DateTimeParameterDeclaration * Name: "STRING_VALUE", // required @@ -4178,6 +4224,12 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _ * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: new Date("TIMESTAMP"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * }, * ], diff --git a/clients/client-quicksight/src/commands/CreateDataSetCommand.ts b/clients/client-quicksight/src/commands/CreateDataSetCommand.ts index 2889d81f7663..2571036b0038 100644 --- a/clients/client-quicksight/src/commands/CreateDataSetCommand.ts +++ b/clients/client-quicksight/src/commands/CreateDataSetCommand.ts @@ -138,6 +138,24 @@ export interface CreateDataSetCommandOutput extends CreateDataSetResponse, __Met * "COLUMN_GEOGRAPHIC_ROLE" || "COLUMN_DESCRIPTION", * ], * }, + * OverrideDatasetParameterOperation: { // OverrideDatasetParameterOperation + * ParameterName: "STRING_VALUE", // required + * NewParameterName: "STRING_VALUE", + * NewDefaultValues: { // NewDefaultValues + * StringStaticValues: [ // StringDatasetParameterValueList + * "STRING_VALUE", + * ], + * DecimalStaticValues: [ // DecimalDatasetParameterValueList + * Number("double"), + * ], + * DateTimeStaticValues: [ // DateTimeDatasetParameterValueList + * new Date("TIMESTAMP"), + * ], + * IntegerStaticValues: [ // IntegerDatasetParameterValueList + * Number("long"), + * ], + * }, + * }, * }, * ], * Source: { // LogicalTableSource @@ -229,6 +247,51 @@ export interface CreateDataSetCommandOutput extends CreateDataSetResponse, __Met * DisableUseAsDirectQuerySource: true || false, * DisableUseAsImportedSource: true || false, * }, + * DatasetParameters: [ // DatasetParameterList + * { // DatasetParameter + * StringDatasetParameter: { // StringDatasetParameter + * Id: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * DefaultValues: { // StringDatasetParameterDefaultValues + * StaticValues: [ + * "STRING_VALUE", + * ], + * }, + * }, + * DecimalDatasetParameter: { // DecimalDatasetParameter + * Id: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * DefaultValues: { // DecimalDatasetParameterDefaultValues + * StaticValues: [ + * Number("double"), + * ], + * }, + * }, + * IntegerDatasetParameter: { // IntegerDatasetParameter + * Id: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * DefaultValues: { // IntegerDatasetParameterDefaultValues + * StaticValues: [ + * Number("long"), + * ], + * }, + * }, + * DateTimeDatasetParameter: { // DateTimeDatasetParameter + * Id: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * TimeGranularity: "YEAR" || "QUARTER" || "MONTH" || "WEEK" || "DAY" || "HOUR" || "MINUTE" || "SECOND" || "MILLISECOND", + * DefaultValues: { // DateTimeDatasetParameterDefaultValues + * StaticValues: [ + * new Date("TIMESTAMP"), + * ], + * }, + * }, + * }, + * ], * }; * const command = new CreateDataSetCommand(input); * const response = await client.send(command); diff --git a/clients/client-quicksight/src/commands/CreateIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/src/commands/CreateIAMPolicyAssignmentCommand.ts index ea8696fda50a..1d2f383d4f82 100644 --- a/clients/client-quicksight/src/commands/CreateIAMPolicyAssignmentCommand.ts +++ b/clients/client-quicksight/src/commands/CreateIAMPolicyAssignmentCommand.ts @@ -32,10 +32,11 @@ export interface CreateIAMPolicyAssignmentCommandOutput extends CreateIAMPolicyA /** * @public - *

Creates an assignment with one specified IAM policy, identified by its Amazon Resource Name - * (ARN). This policy assignment is attached to the specified groups or users of Amazon QuickSight. - * Assignment names are unique per Amazon Web Services account. To avoid overwriting rules in other namespaces, - * use assignment names that are unique.

+ *

Creates an assignment with one specified IAM policy, identified by its + * Amazon Resource Name (ARN). This policy assignment is attached to the specified groups + * or users of Amazon QuickSight. Assignment names are unique per Amazon Web Services + * account. To avoid overwriting rules in other namespaces, use assignment names that are + * unique.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-quicksight/src/commands/CreateTemplateCommand.ts b/clients/client-quicksight/src/commands/CreateTemplateCommand.ts index 3fa7b63b34bb..81fe2fbe2ddc 100644 --- a/clients/client-quicksight/src/commands/CreateTemplateCommand.ts +++ b/clients/client-quicksight/src/commands/CreateTemplateCommand.ts @@ -1014,6 +1014,9 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ // CustomActionColumnList + * "", + * ], * }, * TargetVisualsConfiguration: { // FilterOperationTargetVisualsConfiguration * SameSheetTargetVisualConfiguration: { // SameSheetTargetVisualConfiguration @@ -1058,6 +1061,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1409,6 +1413,9 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1453,6 +1460,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1821,6 +1829,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { // TooltipOptions * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -1854,7 +1863,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * }, * DynamicConfiguration: { // ReferenceLineDynamicDataConfiguration * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -1901,6 +1910,9 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1945,6 +1957,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2180,6 +2193,9 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2224,6 +2240,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2430,6 +2447,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2487,6 +2505,9 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2531,6 +2552,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2624,6 +2646,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * TooltipOptions: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2989,6 +3012,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * ReferenceLines: [ * { @@ -2999,7 +3023,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3166,6 +3190,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3411,11 +3436,14 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * YAxis: "", * Category: "", * Size: "", + * Label: "", * }, * ScatterPlotUnaggregatedFieldWells: { // ScatterPlotUnaggregatedFieldWells * XAxis: "", * YAxis: "", * Size: "", + * Category: "", + * Label: "", * }, * }, * XAxisLabelOptions: "", @@ -3470,7 +3498,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3543,7 +3571,7 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -4074,6 +4102,12 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: "STRING_VALUE", * }, + * MappedDataSetParameters: [ // MappedDataSetParameters + * { // MappedDataSetParameter + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DecimalParameterDeclaration: { // DecimalParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4090,6 +4124,12 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("double"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * IntegerParameterDeclaration: { // IntegerParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4106,6 +4146,12 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("long"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DateTimeParameterDeclaration: { // DateTimeParameterDeclaration * Name: "STRING_VALUE", // required @@ -4126,6 +4172,12 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: new Date("TIMESTAMP"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * }, * ], diff --git a/clients/client-quicksight/src/commands/CreateTopicCommand.ts b/clients/client-quicksight/src/commands/CreateTopicCommand.ts new file mode 100644 index 000000000000..f1336c266e97 --- /dev/null +++ b/clients/client-quicksight/src/commands/CreateTopicCommand.ts @@ -0,0 +1,419 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { CreateTopicRequest, CreateTopicRequestFilterSensitiveLog, CreateTopicResponse } from "../models/models_2"; +import { de_CreateTopicCommand, se_CreateTopicCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link CreateTopicCommand}. + */ +export interface CreateTopicCommandInput extends CreateTopicRequest {} +/** + * @public + * + * The output of {@link CreateTopicCommand}. + */ +export interface CreateTopicCommandOutput extends CreateTopicResponse, __MetadataBearer {} + +/** + * @public + *

Creates a new Q topic.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, CreateTopicCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, CreateTopicCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // CreateTopicRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * Topic: { // TopicDetails + * Name: "STRING_VALUE", + * Description: "STRING_VALUE", + * DataSets: [ // Datasets + * { // DatasetMetadata + * DatasetArn: "STRING_VALUE", // required + * DatasetName: "STRING_VALUE", + * DatasetDescription: "STRING_VALUE", + * DataAggregation: { // DataAggregation + * DatasetRowDateGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * DefaultDateColumnName: "STRING_VALUE", + * }, + * Filters: [ // TopicFilters + * { // TopicFilter + * FilterDescription: "STRING_VALUE", + * FilterClass: "ENFORCED_VALUE_FILTER" || "CONDITIONAL_VALUE_FILTER" || "NAMED_VALUE_FILTER", + * FilterName: "STRING_VALUE", // required + * FilterSynonyms: [ // Synonyms + * "STRING_VALUE", + * ], + * OperandFieldName: "STRING_VALUE", // required + * FilterType: "CATEGORY_FILTER" || "NUMERIC_EQUALITY_FILTER" || "NUMERIC_RANGE_FILTER" || "DATE_RANGE_FILTER" || "RELATIVE_DATE_FILTER", + * CategoryFilter: { // TopicCategoryFilter + * CategoryFilterFunction: "EXACT" || "CONTAINS", + * CategoryFilterType: "CUSTOM_FILTER" || "CUSTOM_FILTER_LIST" || "FILTER_LIST", + * Constant: { // TopicCategoryFilterConstant + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * SingularConstant: "STRING_VALUE", + * CollectiveConstant: { // CollectiveConstant + * ValueList: [ // StringList + * "STRING_VALUE", + * ], + * }, + * }, + * Inverse: true || false, + * }, + * NumericEqualityFilter: { // TopicNumericEqualityFilter + * Constant: { // TopicSingularFilterConstant + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * SingularConstant: "STRING_VALUE", + * }, + * Aggregation: "NO_AGGREGATION" || "SUM" || "AVERAGE" || "COUNT" || "DISTINCT_COUNT" || "MAX" || "MEDIAN" || "MIN" || "STDEV" || "STDEVP" || "VAR" || "VARP", + * }, + * NumericRangeFilter: { // TopicNumericRangeFilter + * Inclusive: true || false, + * Constant: { // TopicRangeFilterConstant + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * RangeConstant: { // RangeConstant + * Minimum: "STRING_VALUE", + * Maximum: "STRING_VALUE", + * }, + * }, + * Aggregation: "NO_AGGREGATION" || "SUM" || "AVERAGE" || "COUNT" || "DISTINCT_COUNT" || "MAX" || "MEDIAN" || "MIN" || "STDEV" || "STDEVP" || "VAR" || "VARP", + * }, + * DateRangeFilter: { // TopicDateRangeFilter + * Inclusive: true || false, + * Constant: { + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * RangeConstant: { + * Minimum: "STRING_VALUE", + * Maximum: "STRING_VALUE", + * }, + * }, + * }, + * RelativeDateFilter: { // TopicRelativeDateFilter + * TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * RelativeDateFilterFunction: "PREVIOUS" || "THIS" || "LAST" || "NEXT" || "NOW", + * Constant: { + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * SingularConstant: "STRING_VALUE", + * }, + * }, + * }, + * ], + * Columns: [ // TopicColumns + * { // TopicColumn + * ColumnName: "STRING_VALUE", // required + * ColumnFriendlyName: "STRING_VALUE", + * ColumnDescription: "STRING_VALUE", + * ColumnSynonyms: [ + * "STRING_VALUE", + * ], + * ColumnDataRole: "DIMENSION" || "MEASURE", + * Aggregation: "SUM" || "MAX" || "MIN" || "COUNT" || "DISTINCT_COUNT" || "AVERAGE", + * IsIncludedInTopic: true || false, + * DisableIndexing: true || false, + * ComparativeOrder: { // ComparativeOrder + * UseOrdering: "GREATER_IS_BETTER" || "LESSER_IS_BETTER" || "SPECIFIED", + * SpecifedOrder: [ + * "STRING_VALUE", + * ], + * TreatUndefinedSpecifiedValues: "LEAST" || "MOST", + * }, + * SemanticType: { // SemanticType + * TypeName: "STRING_VALUE", + * SubTypeName: "STRING_VALUE", + * TypeParameters: { // TypeParameters + * "": "STRING_VALUE", + * }, + * TruthyCellValue: "STRING_VALUE", + * TruthyCellValueSynonyms: [ // SensitiveStringList + * "STRING_VALUE", + * ], + * FalseyCellValue: "STRING_VALUE", + * FalseyCellValueSynonyms: [ + * "STRING_VALUE", + * ], + * }, + * TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * AllowedAggregations: [ // AuthorSpecifiedAggregations + * "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * ], + * NotAllowedAggregations: [ + * "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * ], + * DefaultFormatting: { // DefaultFormatting + * DisplayFormat: "AUTO" || "PERCENT" || "CURRENCY" || "NUMBER" || "DATE" || "STRING", + * DisplayFormatOptions: { // DisplayFormatOptions + * UseBlankCellFormat: true || false, + * BlankCellFormat: "STRING_VALUE", + * DateFormat: "STRING_VALUE", + * DecimalSeparator: "COMMA" || "DOT", + * GroupingSeparator: "STRING_VALUE", + * UseGrouping: true || false, + * FractionDigits: Number("int"), + * Prefix: "STRING_VALUE", + * Suffix: "STRING_VALUE", + * UnitScaler: "NONE" || "AUTO" || "THOUSANDS" || "MILLIONS" || "BILLIONS" || "TRILLIONS", + * NegativeFormat: { // NegativeFormat + * Prefix: "STRING_VALUE", + * Suffix: "STRING_VALUE", + * }, + * CurrencySymbol: "STRING_VALUE", + * }, + * }, + * NeverAggregateInFilter: true || false, + * CellValueSynonyms: [ // CellValueSynonyms + * { // CellValueSynonym + * CellValue: "STRING_VALUE", + * Synonyms: "", + * }, + * ], + * }, + * ], + * CalculatedFields: [ // TopicCalculatedFields + * { // TopicCalculatedField + * CalculatedFieldName: "STRING_VALUE", // required + * CalculatedFieldDescription: "STRING_VALUE", + * Expression: "STRING_VALUE", // required + * CalculatedFieldSynonyms: [ + * "STRING_VALUE", + * ], + * IsIncludedInTopic: true || false, + * DisableIndexing: true || false, + * ColumnDataRole: "DIMENSION" || "MEASURE", + * TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * DefaultFormatting: { + * DisplayFormat: "AUTO" || "PERCENT" || "CURRENCY" || "NUMBER" || "DATE" || "STRING", + * DisplayFormatOptions: { + * UseBlankCellFormat: true || false, + * BlankCellFormat: "STRING_VALUE", + * DateFormat: "STRING_VALUE", + * DecimalSeparator: "COMMA" || "DOT", + * GroupingSeparator: "STRING_VALUE", + * UseGrouping: true || false, + * FractionDigits: Number("int"), + * Prefix: "STRING_VALUE", + * Suffix: "STRING_VALUE", + * UnitScaler: "NONE" || "AUTO" || "THOUSANDS" || "MILLIONS" || "BILLIONS" || "TRILLIONS", + * NegativeFormat: { + * Prefix: "STRING_VALUE", + * Suffix: "STRING_VALUE", + * }, + * CurrencySymbol: "STRING_VALUE", + * }, + * }, + * Aggregation: "SUM" || "MAX" || "MIN" || "COUNT" || "DISTINCT_COUNT" || "AVERAGE", + * ComparativeOrder: { + * UseOrdering: "GREATER_IS_BETTER" || "LESSER_IS_BETTER" || "SPECIFIED", + * SpecifedOrder: "", + * TreatUndefinedSpecifiedValues: "LEAST" || "MOST", + * }, + * SemanticType: { + * TypeName: "STRING_VALUE", + * SubTypeName: "STRING_VALUE", + * TypeParameters: { + * "": "STRING_VALUE", + * }, + * TruthyCellValue: "STRING_VALUE", + * TruthyCellValueSynonyms: [ + * "STRING_VALUE", + * ], + * FalseyCellValue: "STRING_VALUE", + * FalseyCellValueSynonyms: [ + * "STRING_VALUE", + * ], + * }, + * AllowedAggregations: [ + * "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * ], + * NotAllowedAggregations: [ + * "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * ], + * NeverAggregateInFilter: true || false, + * CellValueSynonyms: [ + * { + * CellValue: "STRING_VALUE", + * Synonyms: "", + * }, + * ], + * }, + * ], + * NamedEntities: [ // TopicNamedEntities + * { // TopicNamedEntity + * EntityName: "STRING_VALUE", // required + * EntityDescription: "STRING_VALUE", + * EntitySynonyms: [ + * "STRING_VALUE", + * ], + * SemanticEntityType: { // SemanticEntityType + * TypeName: "STRING_VALUE", + * SubTypeName: "STRING_VALUE", + * TypeParameters: { + * "": "STRING_VALUE", + * }, + * }, + * Definition: [ // NamedEntityDefinitions + * { // NamedEntityDefinition + * FieldName: "STRING_VALUE", + * PropertyName: "STRING_VALUE", + * PropertyRole: "PRIMARY" || "ID", + * PropertyUsage: "INHERIT" || "DIMENSION" || "MEASURE", + * Metric: { // NamedEntityDefinitionMetric + * Aggregation: "SUM" || "MIN" || "MAX" || "COUNT" || "AVERAGE" || "DISTINCT_COUNT" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE" || "MEDIAN" || "CUSTOM", + * AggregationFunctionParameters: { // AggregationFunctionParameters + * "": "STRING_VALUE", + * }, + * }, + * }, + * ], + * }, + * ], + * }, + * ], + * }, + * Tags: [ // TagList + * { // Tag + * Key: "STRING_VALUE", // required + * Value: "STRING_VALUE", // required + * }, + * ], + * }; + * const command = new CreateTopicCommand(input); + * const response = await client.send(command); + * // { // CreateTopicResponse + * // Arn: "STRING_VALUE", + * // TopicId: "STRING_VALUE", + * // RefreshArn: "STRING_VALUE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param CreateTopicCommandInput - {@link CreateTopicCommandInput} + * @returns {@link CreateTopicCommandOutput} + * @see {@link CreateTopicCommandInput} for command's `input` shape. + * @see {@link CreateTopicCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link LimitExceededException} (client fault) + *

A limit is exceeded.

+ * + * @throws {@link ResourceExistsException} (client fault) + *

The resource specified already exists.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class CreateTopicCommand extends $Command< + CreateTopicCommandInput, + CreateTopicCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateTopicCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, CreateTopicCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "CreateTopicCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: CreateTopicRequestFilterSensitiveLog, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateTopicCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateTopicCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_CreateTopicCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/CreateTopicRefreshScheduleCommand.ts b/clients/client-quicksight/src/commands/CreateTopicRefreshScheduleCommand.ts new file mode 100644 index 000000000000..e01958b3e285 --- /dev/null +++ b/clients/client-quicksight/src/commands/CreateTopicRefreshScheduleCommand.ts @@ -0,0 +1,183 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { CreateTopicRefreshScheduleRequest, CreateTopicRefreshScheduleResponse } from "../models/models_2"; +import { de_CreateTopicRefreshScheduleCommand, se_CreateTopicRefreshScheduleCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link CreateTopicRefreshScheduleCommand}. + */ +export interface CreateTopicRefreshScheduleCommandInput extends CreateTopicRefreshScheduleRequest {} +/** + * @public + * + * The output of {@link CreateTopicRefreshScheduleCommand}. + */ +export interface CreateTopicRefreshScheduleCommandOutput extends CreateTopicRefreshScheduleResponse, __MetadataBearer {} + +/** + * @public + *

Creates a topic refresh schedule.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, CreateTopicRefreshScheduleCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, CreateTopicRefreshScheduleCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // CreateTopicRefreshScheduleRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * DatasetArn: "STRING_VALUE", // required + * DatasetName: "STRING_VALUE", + * RefreshSchedule: { // TopicRefreshSchedule + * IsEnabled: true || false, // required + * BasedOnSpiceSchedule: true || false, // required + * StartingAt: new Date("TIMESTAMP"), + * Timezone: "STRING_VALUE", + * RepeatAt: "STRING_VALUE", + * TopicScheduleType: "HOURLY" || "DAILY" || "WEEKLY" || "MONTHLY", + * }, + * }; + * const command = new CreateTopicRefreshScheduleCommand(input); + * const response = await client.send(command); + * // { // CreateTopicRefreshScheduleResponse + * // TopicId: "STRING_VALUE", + * // TopicArn: "STRING_VALUE", + * // DatasetArn: "STRING_VALUE", + * // Status: Number("int"), + * // RequestId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CreateTopicRefreshScheduleCommandInput - {@link CreateTopicRefreshScheduleCommandInput} + * @returns {@link CreateTopicRefreshScheduleCommandOutput} + * @see {@link CreateTopicRefreshScheduleCommandInput} for command's `input` shape. + * @see {@link CreateTopicRefreshScheduleCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link LimitExceededException} (client fault) + *

A limit is exceeded.

+ * + * @throws {@link ResourceExistsException} (client fault) + *

The resource specified already exists.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class CreateTopicRefreshScheduleCommand extends $Command< + CreateTopicRefreshScheduleCommandInput, + CreateTopicRefreshScheduleCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateTopicRefreshScheduleCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateTopicRefreshScheduleCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "CreateTopicRefreshScheduleCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateTopicRefreshScheduleCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateTopicRefreshScheduleCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_CreateTopicRefreshScheduleCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/CreateVPCConnectionCommand.ts b/clients/client-quicksight/src/commands/CreateVPCConnectionCommand.ts new file mode 100644 index 000000000000..4721ab0b9003 --- /dev/null +++ b/clients/client-quicksight/src/commands/CreateVPCConnectionCommand.ts @@ -0,0 +1,191 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { CreateVPCConnectionRequest, CreateVPCConnectionResponse } from "../models/models_2"; +import { de_CreateVPCConnectionCommand, se_CreateVPCConnectionCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link CreateVPCConnectionCommand}. + */ +export interface CreateVPCConnectionCommandInput extends CreateVPCConnectionRequest {} +/** + * @public + * + * The output of {@link CreateVPCConnectionCommand}. + */ +export interface CreateVPCConnectionCommandOutput extends CreateVPCConnectionResponse, __MetadataBearer {} + +/** + * @public + *

Creates a new VPC connection.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, CreateVPCConnectionCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, CreateVPCConnectionCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // CreateVPCConnectionRequest + * AwsAccountId: "STRING_VALUE", // required + * VPCConnectionId: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * SubnetIds: [ // SubnetIdList // required + * "STRING_VALUE", + * ], + * SecurityGroupIds: [ // SecurityGroupIdList // required + * "STRING_VALUE", + * ], + * DnsResolvers: [ // DnsResolverList + * "STRING_VALUE", + * ], + * RoleArn: "STRING_VALUE", // required + * Tags: [ // TagList + * { // Tag + * Key: "STRING_VALUE", // required + * Value: "STRING_VALUE", // required + * }, + * ], + * }; + * const command = new CreateVPCConnectionCommand(input); + * const response = await client.send(command); + * // { // CreateVPCConnectionResponse + * // Arn: "STRING_VALUE", + * // VPCConnectionId: "STRING_VALUE", + * // CreationStatus: "CREATION_IN_PROGRESS" || "CREATION_SUCCESSFUL" || "CREATION_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_SUCCESSFUL" || "UPDATE_FAILED" || "DELETION_IN_PROGRESS" || "DELETION_FAILED" || "DELETED", + * // AvailabilityStatus: "AVAILABLE" || "UNAVAILABLE" || "PARTIALLY_AVAILABLE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param CreateVPCConnectionCommandInput - {@link CreateVPCConnectionCommandInput} + * @returns {@link CreateVPCConnectionCommandOutput} + * @see {@link CreateVPCConnectionCommandInput} for command's `input` shape. + * @see {@link CreateVPCConnectionCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link LimitExceededException} (client fault) + *

A limit is exceeded.

+ * + * @throws {@link ResourceExistsException} (client fault) + *

The resource specified already exists.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link UnsupportedUserEditionException} (client fault) + *

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.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class CreateVPCConnectionCommand extends $Command< + CreateVPCConnectionCommandInput, + CreateVPCConnectionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateVPCConnectionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateVPCConnectionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "CreateVPCConnectionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateVPCConnectionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateVPCConnectionCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_CreateVPCConnectionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/DeleteTopicCommand.ts b/clients/client-quicksight/src/commands/DeleteTopicCommand.ts new file mode 100644 index 000000000000..1bb7972d061f --- /dev/null +++ b/clients/client-quicksight/src/commands/DeleteTopicCommand.ts @@ -0,0 +1,161 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { DeleteTopicRequest, DeleteTopicResponse } from "../models/models_2"; +import { de_DeleteTopicCommand, se_DeleteTopicCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link DeleteTopicCommand}. + */ +export interface DeleteTopicCommandInput extends DeleteTopicRequest {} +/** + * @public + * + * The output of {@link DeleteTopicCommand}. + */ +export interface DeleteTopicCommandOutput extends DeleteTopicResponse, __MetadataBearer {} + +/** + * @public + *

Deletes a topic.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DeleteTopicCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DeleteTopicCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DeleteTopicRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * }; + * const command = new DeleteTopicCommand(input); + * const response = await client.send(command); + * // { // DeleteTopicResponse + * // Arn: "STRING_VALUE", + * // TopicId: "STRING_VALUE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param DeleteTopicCommandInput - {@link DeleteTopicCommandInput} + * @returns {@link DeleteTopicCommandOutput} + * @see {@link DeleteTopicCommandInput} for command's `input` shape. + * @see {@link DeleteTopicCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class DeleteTopicCommand extends $Command< + DeleteTopicCommandInput, + DeleteTopicCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteTopicCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, DeleteTopicCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "DeleteTopicCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteTopicCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteTopicCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DeleteTopicCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/DeleteTopicRefreshScheduleCommand.ts b/clients/client-quicksight/src/commands/DeleteTopicRefreshScheduleCommand.ts new file mode 100644 index 000000000000..df7f0afecc40 --- /dev/null +++ b/clients/client-quicksight/src/commands/DeleteTopicRefreshScheduleCommand.ts @@ -0,0 +1,174 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { DeleteTopicRefreshScheduleRequest, DeleteTopicRefreshScheduleResponse } from "../models/models_2"; +import { de_DeleteTopicRefreshScheduleCommand, se_DeleteTopicRefreshScheduleCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link DeleteTopicRefreshScheduleCommand}. + */ +export interface DeleteTopicRefreshScheduleCommandInput extends DeleteTopicRefreshScheduleRequest {} +/** + * @public + * + * The output of {@link DeleteTopicRefreshScheduleCommand}. + */ +export interface DeleteTopicRefreshScheduleCommandOutput extends DeleteTopicRefreshScheduleResponse, __MetadataBearer {} + +/** + * @public + *

Deletes a topic refresh schedule.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DeleteTopicRefreshScheduleCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DeleteTopicRefreshScheduleCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DeleteTopicRefreshScheduleRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * DatasetId: "STRING_VALUE", // required + * }; + * const command = new DeleteTopicRefreshScheduleCommand(input); + * const response = await client.send(command); + * // { // DeleteTopicRefreshScheduleResponse + * // TopicId: "STRING_VALUE", + * // TopicArn: "STRING_VALUE", + * // DatasetArn: "STRING_VALUE", + * // Status: Number("int"), + * // RequestId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DeleteTopicRefreshScheduleCommandInput - {@link DeleteTopicRefreshScheduleCommandInput} + * @returns {@link DeleteTopicRefreshScheduleCommandOutput} + * @see {@link DeleteTopicRefreshScheduleCommandInput} for command's `input` shape. + * @see {@link DeleteTopicRefreshScheduleCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link LimitExceededException} (client fault) + *

A limit is exceeded.

+ * + * @throws {@link ResourceExistsException} (client fault) + *

The resource specified already exists.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class DeleteTopicRefreshScheduleCommand extends $Command< + DeleteTopicRefreshScheduleCommandInput, + DeleteTopicRefreshScheduleCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteTopicRefreshScheduleCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteTopicRefreshScheduleCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "DeleteTopicRefreshScheduleCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteTopicRefreshScheduleCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteTopicRefreshScheduleCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DeleteTopicRefreshScheduleCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/DeleteVPCConnectionCommand.ts b/clients/client-quicksight/src/commands/DeleteVPCConnectionCommand.ts new file mode 100644 index 000000000000..bfe76ad26b52 --- /dev/null +++ b/clients/client-quicksight/src/commands/DeleteVPCConnectionCommand.ts @@ -0,0 +1,171 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { DeleteVPCConnectionRequest, DeleteVPCConnectionResponse } from "../models/models_2"; +import { de_DeleteVPCConnectionCommand, se_DeleteVPCConnectionCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link DeleteVPCConnectionCommand}. + */ +export interface DeleteVPCConnectionCommandInput extends DeleteVPCConnectionRequest {} +/** + * @public + * + * The output of {@link DeleteVPCConnectionCommand}. + */ +export interface DeleteVPCConnectionCommandOutput extends DeleteVPCConnectionResponse, __MetadataBearer {} + +/** + * @public + *

Deletes a VPC connection.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DeleteVPCConnectionCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DeleteVPCConnectionCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DeleteVPCConnectionRequest + * AwsAccountId: "STRING_VALUE", // required + * VPCConnectionId: "STRING_VALUE", // required + * }; + * const command = new DeleteVPCConnectionCommand(input); + * const response = await client.send(command); + * // { // DeleteVPCConnectionResponse + * // Arn: "STRING_VALUE", + * // VPCConnectionId: "STRING_VALUE", + * // DeletionStatus: "CREATION_IN_PROGRESS" || "CREATION_SUCCESSFUL" || "CREATION_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_SUCCESSFUL" || "UPDATE_FAILED" || "DELETION_IN_PROGRESS" || "DELETION_FAILED" || "DELETED", + * // AvailabilityStatus: "AVAILABLE" || "UNAVAILABLE" || "PARTIALLY_AVAILABLE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param DeleteVPCConnectionCommandInput - {@link DeleteVPCConnectionCommandInput} + * @returns {@link DeleteVPCConnectionCommandOutput} + * @see {@link DeleteVPCConnectionCommandInput} for command's `input` shape. + * @see {@link DeleteVPCConnectionCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link UnsupportedUserEditionException} (client fault) + *

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.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class DeleteVPCConnectionCommand extends $Command< + DeleteVPCConnectionCommandInput, + DeleteVPCConnectionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteVPCConnectionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteVPCConnectionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "DeleteVPCConnectionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteVPCConnectionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteVPCConnectionCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DeleteVPCConnectionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/DescribeAnalysisDefinitionCommand.ts b/clients/client-quicksight/src/commands/DescribeAnalysisDefinitionCommand.ts index f699a5ab668f..1b3b8cf8c6fe 100644 --- a/clients/client-quicksight/src/commands/DescribeAnalysisDefinitionCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeAnalysisDefinitionCommand.ts @@ -986,6 +986,9 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ // CustomActionColumnList + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { // FilterOperationTargetVisualsConfiguration * // SameSheetTargetVisualConfiguration: { // SameSheetTargetVisualConfiguration @@ -1030,6 +1033,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -1381,6 +1385,9 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -1425,6 +1432,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -1793,6 +1801,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // Tooltip: { // TooltipOptions * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -1826,7 +1835,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // }, * // DynamicConfiguration: { // ReferenceLineDynamicDataConfiguration * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -1873,6 +1882,9 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -1917,6 +1929,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -2152,6 +2165,9 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -2196,6 +2212,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -2402,6 +2419,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // Tooltip: { * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2459,6 +2477,9 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -2503,6 +2524,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -2596,6 +2618,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // TooltipOptions: { * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2961,6 +2984,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // ReferenceLines: [ * // { @@ -2971,7 +2995,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // }, * // DynamicConfiguration: { * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3138,6 +3162,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // Tooltip: { * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3383,11 +3408,14 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // YAxis: "", * // Category: "", * // Size: "", + * // Label: "", * // }, * // ScatterPlotUnaggregatedFieldWells: { // ScatterPlotUnaggregatedFieldWells * // XAxis: "", * // YAxis: "", * // Size: "", + * // Category: "", + * // Label: "", * // }, * // }, * // XAxisLabelOptions: "", @@ -3442,7 +3470,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // }, * // DynamicConfiguration: { * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3515,7 +3543,7 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // }, * // DynamicConfiguration: { * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -4046,6 +4074,12 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: "STRING_VALUE", * // }, + * // MappedDataSetParameters: [ // MappedDataSetParameters + * // { // MappedDataSetParameter + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // DecimalParameterDeclaration: { // DecimalParameterDeclaration * // ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4062,6 +4096,12 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: Number("double"), * // }, + * // MappedDataSetParameters: [ + * // { + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // IntegerParameterDeclaration: { // IntegerParameterDeclaration * // ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4078,6 +4118,12 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: Number("long"), * // }, + * // MappedDataSetParameters: [ + * // { + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // DateTimeParameterDeclaration: { // DateTimeParameterDeclaration * // Name: "STRING_VALUE", // required @@ -4098,6 +4144,12 @@ export interface DescribeAnalysisDefinitionCommandOutput extends DescribeAnalysi * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: new Date("TIMESTAMP"), * // }, + * // MappedDataSetParameters: [ + * // { + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // }, * // ], diff --git a/clients/client-quicksight/src/commands/DescribeDashboardDefinitionCommand.ts b/clients/client-quicksight/src/commands/DescribeDashboardDefinitionCommand.ts index a48901f57b85..ffa46c5ded9d 100644 --- a/clients/client-quicksight/src/commands/DescribeDashboardDefinitionCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeDashboardDefinitionCommand.ts @@ -993,6 +993,9 @@ export interface DescribeDashboardDefinitionCommandOutput * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ // CustomActionColumnList + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { // FilterOperationTargetVisualsConfiguration * // SameSheetTargetVisualConfiguration: { // SameSheetTargetVisualConfiguration @@ -1037,6 +1040,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -1388,6 +1392,9 @@ export interface DescribeDashboardDefinitionCommandOutput * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -1432,6 +1439,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -1800,6 +1808,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // Tooltip: { // TooltipOptions * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -1833,7 +1842,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // }, * // DynamicConfiguration: { // ReferenceLineDynamicDataConfiguration * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -1880,6 +1889,9 @@ export interface DescribeDashboardDefinitionCommandOutput * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -1924,6 +1936,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -2159,6 +2172,9 @@ export interface DescribeDashboardDefinitionCommandOutput * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -2203,6 +2219,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -2409,6 +2426,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // Tooltip: { * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2466,6 +2484,9 @@ export interface DescribeDashboardDefinitionCommandOutput * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -2510,6 +2531,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -2603,6 +2625,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // TooltipOptions: { * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2968,6 +2991,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // ReferenceLines: [ * // { @@ -2978,7 +3002,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // }, * // DynamicConfiguration: { * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3145,6 +3169,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // Tooltip: { * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3390,11 +3415,14 @@ export interface DescribeDashboardDefinitionCommandOutput * // YAxis: "", * // Category: "", * // Size: "", + * // Label: "", * // }, * // ScatterPlotUnaggregatedFieldWells: { // ScatterPlotUnaggregatedFieldWells * // XAxis: "", * // YAxis: "", * // Size: "", + * // Category: "", + * // Label: "", * // }, * // }, * // XAxisLabelOptions: "", @@ -3449,7 +3477,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // }, * // DynamicConfiguration: { * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3522,7 +3550,7 @@ export interface DescribeDashboardDefinitionCommandOutput * // }, * // DynamicConfiguration: { * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -4053,6 +4081,12 @@ export interface DescribeDashboardDefinitionCommandOutput * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: "STRING_VALUE", * // }, + * // MappedDataSetParameters: [ // MappedDataSetParameters + * // { // MappedDataSetParameter + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // DecimalParameterDeclaration: { // DecimalParameterDeclaration * // ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4069,6 +4103,12 @@ export interface DescribeDashboardDefinitionCommandOutput * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: Number("double"), * // }, + * // MappedDataSetParameters: [ + * // { + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // IntegerParameterDeclaration: { // IntegerParameterDeclaration * // ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4085,6 +4125,12 @@ export interface DescribeDashboardDefinitionCommandOutput * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: Number("long"), * // }, + * // MappedDataSetParameters: [ + * // { + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // DateTimeParameterDeclaration: { // DateTimeParameterDeclaration * // Name: "STRING_VALUE", // required @@ -4105,6 +4151,12 @@ export interface DescribeDashboardDefinitionCommandOutput * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: new Date("TIMESTAMP"), * // }, + * // MappedDataSetParameters: [ + * // { + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // }, * // ], diff --git a/clients/client-quicksight/src/commands/DescribeDataSetCommand.ts b/clients/client-quicksight/src/commands/DescribeDataSetCommand.ts index 74d4ee592b04..1f2edaf755c5 100644 --- a/clients/client-quicksight/src/commands/DescribeDataSetCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeDataSetCommand.ts @@ -17,7 +17,7 @@ import { DescribeDataSetRequest, DescribeDataSetResponse, DescribeDataSetResponseFilterSensitiveLog, -} from "../models/models_2"; +} from "../models/models_3"; import { de_DescribeDataSetCommand, se_DescribeDataSetCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; @@ -147,6 +147,24 @@ export interface DescribeDataSetCommandOutput extends DescribeDataSetResponse, _ * // "COLUMN_GEOGRAPHIC_ROLE" || "COLUMN_DESCRIPTION", * // ], * // }, + * // OverrideDatasetParameterOperation: { // OverrideDatasetParameterOperation + * // ParameterName: "STRING_VALUE", // required + * // NewParameterName: "STRING_VALUE", + * // NewDefaultValues: { // NewDefaultValues + * // StringStaticValues: [ // StringDatasetParameterValueList + * // "STRING_VALUE", + * // ], + * // DecimalStaticValues: [ // DecimalDatasetParameterValueList + * // Number("double"), + * // ], + * // DateTimeStaticValues: [ // DateTimeDatasetParameterValueList + * // new Date("TIMESTAMP"), + * // ], + * // IntegerStaticValues: [ // IntegerDatasetParameterValueList + * // Number("long"), + * // ], + * // }, + * // }, * // }, * // ], * // Source: { // LogicalTableSource @@ -232,6 +250,51 @@ export interface DescribeDataSetCommandOutput extends DescribeDataSetResponse, _ * // DisableUseAsDirectQuerySource: true || false, * // DisableUseAsImportedSource: true || false, * // }, + * // DatasetParameters: [ // DatasetParameterList + * // { // DatasetParameter + * // StringDatasetParameter: { // StringDatasetParameter + * // Id: "STRING_VALUE", // required + * // Name: "STRING_VALUE", // required + * // ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * // DefaultValues: { // StringDatasetParameterDefaultValues + * // StaticValues: [ + * // "STRING_VALUE", + * // ], + * // }, + * // }, + * // DecimalDatasetParameter: { // DecimalDatasetParameter + * // Id: "STRING_VALUE", // required + * // Name: "STRING_VALUE", // required + * // ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * // DefaultValues: { // DecimalDatasetParameterDefaultValues + * // StaticValues: [ + * // Number("double"), + * // ], + * // }, + * // }, + * // IntegerDatasetParameter: { // IntegerDatasetParameter + * // Id: "STRING_VALUE", // required + * // Name: "STRING_VALUE", // required + * // ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * // DefaultValues: { // IntegerDatasetParameterDefaultValues + * // StaticValues: [ + * // Number("long"), + * // ], + * // }, + * // }, + * // DateTimeDatasetParameter: { // DateTimeDatasetParameter + * // Id: "STRING_VALUE", // required + * // Name: "STRING_VALUE", // required + * // ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * // TimeGranularity: "YEAR" || "QUARTER" || "MONTH" || "WEEK" || "DAY" || "HOUR" || "MINUTE" || "SECOND" || "MILLISECOND", + * // DefaultValues: { // DateTimeDatasetParameterDefaultValues + * // StaticValues: [ + * // new Date("TIMESTAMP"), + * // ], + * // }, + * // }, + * // }, + * // ], * // }, * // RequestId: "STRING_VALUE", * // Status: Number("int"), diff --git a/clients/client-quicksight/src/commands/DescribeDataSetPermissionsCommand.ts b/clients/client-quicksight/src/commands/DescribeDataSetPermissionsCommand.ts index cd953de2ba3c..0c4a0c375008 100644 --- a/clients/client-quicksight/src/commands/DescribeDataSetPermissionsCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeDataSetPermissionsCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeDataSetPermissionsRequest, DescribeDataSetPermissionsResponse } from "../models/models_2"; +import { DescribeDataSetPermissionsRequest, DescribeDataSetPermissionsResponse } from "../models/models_3"; import { de_DescribeDataSetPermissionsCommand, se_DescribeDataSetPermissionsCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeDataSetRefreshPropertiesCommand.ts b/clients/client-quicksight/src/commands/DescribeDataSetRefreshPropertiesCommand.ts index e7aa3a42a777..038ddf9fca5a 100644 --- a/clients/client-quicksight/src/commands/DescribeDataSetRefreshPropertiesCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeDataSetRefreshPropertiesCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeDataSetRefreshPropertiesRequest, DescribeDataSetRefreshPropertiesResponse } from "../models/models_2"; +import { DescribeDataSetRefreshPropertiesRequest, DescribeDataSetRefreshPropertiesResponse } from "../models/models_3"; import { de_DescribeDataSetRefreshPropertiesCommand, se_DescribeDataSetRefreshPropertiesCommand, diff --git a/clients/client-quicksight/src/commands/DescribeDataSourceCommand.ts b/clients/client-quicksight/src/commands/DescribeDataSourceCommand.ts index f6deb5513deb..d48d8f507c67 100644 --- a/clients/client-quicksight/src/commands/DescribeDataSourceCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeDataSourceCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeDataSourceRequest, DescribeDataSourceResponse } from "../models/models_2"; +import { DescribeDataSourceRequest, DescribeDataSourceResponse } from "../models/models_3"; import { de_DescribeDataSourceCommand, se_DescribeDataSourceCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeDataSourcePermissionsCommand.ts b/clients/client-quicksight/src/commands/DescribeDataSourcePermissionsCommand.ts index 771595e093d0..1fb389f7c11a 100644 --- a/clients/client-quicksight/src/commands/DescribeDataSourcePermissionsCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeDataSourcePermissionsCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeDataSourcePermissionsRequest, DescribeDataSourcePermissionsResponse } from "../models/models_2"; +import { DescribeDataSourcePermissionsRequest, DescribeDataSourcePermissionsResponse } from "../models/models_3"; import { de_DescribeDataSourcePermissionsCommand, se_DescribeDataSourcePermissionsCommand, diff --git a/clients/client-quicksight/src/commands/DescribeFolderCommand.ts b/clients/client-quicksight/src/commands/DescribeFolderCommand.ts index 18f49fd6672c..d276ab7cbffc 100644 --- a/clients/client-quicksight/src/commands/DescribeFolderCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeFolderCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeFolderRequest, DescribeFolderResponse } from "../models/models_2"; +import { DescribeFolderRequest, DescribeFolderResponse } from "../models/models_3"; import { de_DescribeFolderCommand, se_DescribeFolderCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeFolderPermissionsCommand.ts b/clients/client-quicksight/src/commands/DescribeFolderPermissionsCommand.ts index b677d86d01cf..349eb0df9baf 100644 --- a/clients/client-quicksight/src/commands/DescribeFolderPermissionsCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeFolderPermissionsCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeFolderPermissionsRequest, DescribeFolderPermissionsResponse } from "../models/models_2"; +import { DescribeFolderPermissionsRequest, DescribeFolderPermissionsResponse } from "../models/models_3"; import { de_DescribeFolderPermissionsCommand, se_DescribeFolderPermissionsCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeFolderResolvedPermissionsCommand.ts b/clients/client-quicksight/src/commands/DescribeFolderResolvedPermissionsCommand.ts index 73d10cc90534..d569cd6a4ca1 100644 --- a/clients/client-quicksight/src/commands/DescribeFolderResolvedPermissionsCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeFolderResolvedPermissionsCommand.ts @@ -16,7 +16,7 @@ import { import { DescribeFolderResolvedPermissionsRequest, DescribeFolderResolvedPermissionsResponse, -} from "../models/models_2"; +} from "../models/models_3"; import { de_DescribeFolderResolvedPermissionsCommand, se_DescribeFolderResolvedPermissionsCommand, diff --git a/clients/client-quicksight/src/commands/DescribeGroupCommand.ts b/clients/client-quicksight/src/commands/DescribeGroupCommand.ts index 2529ad50457e..700b5dc9dbae 100644 --- a/clients/client-quicksight/src/commands/DescribeGroupCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeGroupCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeGroupRequest, DescribeGroupResponse } from "../models/models_2"; +import { DescribeGroupRequest, DescribeGroupResponse } from "../models/models_3"; import { de_DescribeGroupCommand, se_DescribeGroupCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeGroupMembershipCommand.ts b/clients/client-quicksight/src/commands/DescribeGroupMembershipCommand.ts index be6714752dab..181052480e37 100644 --- a/clients/client-quicksight/src/commands/DescribeGroupMembershipCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeGroupMembershipCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeGroupMembershipRequest, DescribeGroupMembershipResponse } from "../models/models_2"; +import { DescribeGroupMembershipRequest, DescribeGroupMembershipResponse } from "../models/models_3"; import { de_DescribeGroupMembershipCommand, se_DescribeGroupMembershipCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/src/commands/DescribeIAMPolicyAssignmentCommand.ts index afc1b863f490..d77d9b324810 100644 --- a/clients/client-quicksight/src/commands/DescribeIAMPolicyAssignmentCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeIAMPolicyAssignmentCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeIAMPolicyAssignmentRequest, DescribeIAMPolicyAssignmentResponse } from "../models/models_2"; +import { DescribeIAMPolicyAssignmentRequest, DescribeIAMPolicyAssignmentResponse } from "../models/models_3"; import { de_DescribeIAMPolicyAssignmentCommand, se_DescribeIAMPolicyAssignmentCommand, @@ -37,7 +37,8 @@ export interface DescribeIAMPolicyAssignmentCommandOutput /** * @public - *

Describes an existing IAM policy assignment, as specified by the assignment name.

+ *

Describes an existing IAM policy assignment, as specified by the + * assignment name.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-quicksight/src/commands/DescribeIngestionCommand.ts b/clients/client-quicksight/src/commands/DescribeIngestionCommand.ts index 45f67e37daa2..c7c0e5ac1add 100644 --- a/clients/client-quicksight/src/commands/DescribeIngestionCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeIngestionCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeIngestionRequest, DescribeIngestionResponse } from "../models/models_2"; +import { DescribeIngestionRequest, DescribeIngestionResponse } from "../models/models_3"; import { de_DescribeIngestionCommand, se_DescribeIngestionCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeIpRestrictionCommand.ts b/clients/client-quicksight/src/commands/DescribeIpRestrictionCommand.ts index d62ed818eb66..19173d7908b3 100644 --- a/clients/client-quicksight/src/commands/DescribeIpRestrictionCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeIpRestrictionCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeIpRestrictionRequest, DescribeIpRestrictionResponse } from "../models/models_2"; +import { DescribeIpRestrictionRequest, DescribeIpRestrictionResponse } from "../models/models_3"; import { de_DescribeIpRestrictionCommand, se_DescribeIpRestrictionCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeNamespaceCommand.ts b/clients/client-quicksight/src/commands/DescribeNamespaceCommand.ts index 079fe55a3fff..a3c957972ea4 100644 --- a/clients/client-quicksight/src/commands/DescribeNamespaceCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeNamespaceCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeNamespaceRequest, DescribeNamespaceResponse } from "../models/models_2"; +import { DescribeNamespaceRequest, DescribeNamespaceResponse } from "../models/models_3"; import { de_DescribeNamespaceCommand, se_DescribeNamespaceCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeRefreshScheduleCommand.ts b/clients/client-quicksight/src/commands/DescribeRefreshScheduleCommand.ts index ec9d33a92382..88c8212ae095 100644 --- a/clients/client-quicksight/src/commands/DescribeRefreshScheduleCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeRefreshScheduleCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeRefreshScheduleRequest, DescribeRefreshScheduleResponse } from "../models/models_2"; +import { DescribeRefreshScheduleRequest, DescribeRefreshScheduleResponse } from "../models/models_3"; import { de_DescribeRefreshScheduleCommand, se_DescribeRefreshScheduleCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeTemplateAliasCommand.ts b/clients/client-quicksight/src/commands/DescribeTemplateAliasCommand.ts index 9dcf3bf413b3..67c34e1fdcbc 100644 --- a/clients/client-quicksight/src/commands/DescribeTemplateAliasCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeTemplateAliasCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeTemplateAliasRequest, DescribeTemplateAliasResponse } from "../models/models_2"; +import { DescribeTemplateAliasRequest, DescribeTemplateAliasResponse } from "../models/models_3"; import { de_DescribeTemplateAliasCommand, se_DescribeTemplateAliasCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeTemplateCommand.ts b/clients/client-quicksight/src/commands/DescribeTemplateCommand.ts index 80d0b2c43b47..ff8b39a363c5 100644 --- a/clients/client-quicksight/src/commands/DescribeTemplateCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeTemplateCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeTemplateRequest, DescribeTemplateResponse } from "../models/models_2"; +import { DescribeTemplateRequest, DescribeTemplateResponse } from "../models/models_3"; import { de_DescribeTemplateCommand, se_DescribeTemplateCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeTemplateDefinitionCommand.ts b/clients/client-quicksight/src/commands/DescribeTemplateDefinitionCommand.ts index 4b94298fd823..f28afa5e719f 100644 --- a/clients/client-quicksight/src/commands/DescribeTemplateDefinitionCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeTemplateDefinitionCommand.ts @@ -17,7 +17,7 @@ import { DescribeTemplateDefinitionRequest, DescribeTemplateDefinitionResponse, DescribeTemplateDefinitionResponseFilterSensitiveLog, -} from "../models/models_2"; +} from "../models/models_3"; import { de_DescribeTemplateDefinitionCommand, se_DescribeTemplateDefinitionCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; @@ -1006,6 +1006,9 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ // CustomActionColumnList + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { // FilterOperationTargetVisualsConfiguration * // SameSheetTargetVisualConfiguration: { // SameSheetTargetVisualConfiguration @@ -1050,6 +1053,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -1401,6 +1405,9 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -1445,6 +1452,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -1813,6 +1821,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // Tooltip: { // TooltipOptions * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -1846,7 +1855,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // }, * // DynamicConfiguration: { // ReferenceLineDynamicDataConfiguration * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -1893,6 +1902,9 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -1937,6 +1949,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -2172,6 +2185,9 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -2216,6 +2232,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -2422,6 +2439,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // Tooltip: { * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2479,6 +2497,9 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // "STRING_VALUE", * // ], * // SelectedFieldOptions: "ALL_FIELDS", + * // SelectedColumns: [ + * // "", + * // ], * // }, * // TargetVisualsConfiguration: { * // SameSheetTargetVisualConfiguration: { @@ -2523,6 +2544,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // SelectAllValueOptions: "ALL_VALUES", * // SourceParameterName: "STRING_VALUE", * // SourceField: "STRING_VALUE", + * // SourceColumn: "", * // }, * // }, * // ], @@ -2616,6 +2638,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // TooltipOptions: { * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2981,6 +3004,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // ReferenceLines: [ * // { @@ -2991,7 +3015,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // }, * // DynamicConfiguration: { * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3158,6 +3182,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // LabelFontConfiguration: "", * // LabelColor: "STRING_VALUE", * // Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * // TotalsVisibility: "HIDDEN" || "VISIBLE", * // }, * // Tooltip: { * // TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3403,11 +3428,14 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // YAxis: "", * // Category: "", * // Size: "", + * // Label: "", * // }, * // ScatterPlotUnaggregatedFieldWells: { // ScatterPlotUnaggregatedFieldWells * // XAxis: "", * // YAxis: "", * // Size: "", + * // Category: "", + * // Label: "", * // }, * // }, * // XAxisLabelOptions: "", @@ -3462,7 +3490,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // }, * // DynamicConfiguration: { * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3535,7 +3563,7 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // }, * // DynamicConfiguration: { * // Column: "", // required - * // MeasureAggregationFunction: "", // required + * // MeasureAggregationFunction: "", * // Calculation: "", // required * // }, * // AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -4066,6 +4094,12 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: "STRING_VALUE", * // }, + * // MappedDataSetParameters: [ // MappedDataSetParameters + * // { // MappedDataSetParameter + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // DecimalParameterDeclaration: { // DecimalParameterDeclaration * // ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4082,6 +4116,12 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: Number("double"), * // }, + * // MappedDataSetParameters: [ + * // { + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // IntegerParameterDeclaration: { // IntegerParameterDeclaration * // ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4098,6 +4138,12 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: Number("long"), * // }, + * // MappedDataSetParameters: [ + * // { + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // DateTimeParameterDeclaration: { // DateTimeParameterDeclaration * // Name: "STRING_VALUE", // required @@ -4118,6 +4164,12 @@ export interface DescribeTemplateDefinitionCommandOutput extends DescribeTemplat * // ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * // CustomValue: new Date("TIMESTAMP"), * // }, + * // MappedDataSetParameters: [ + * // { + * // DataSetIdentifier: "STRING_VALUE", // required + * // DataSetParameterName: "STRING_VALUE", // required + * // }, + * // ], * // }, * // }, * // ], diff --git a/clients/client-quicksight/src/commands/DescribeTemplatePermissionsCommand.ts b/clients/client-quicksight/src/commands/DescribeTemplatePermissionsCommand.ts index b75166c3d56a..bda5c56afce5 100644 --- a/clients/client-quicksight/src/commands/DescribeTemplatePermissionsCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeTemplatePermissionsCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeTemplatePermissionsRequest, DescribeTemplatePermissionsResponse } from "../models/models_2"; +import { DescribeTemplatePermissionsRequest, DescribeTemplatePermissionsResponse } from "../models/models_3"; import { de_DescribeTemplatePermissionsCommand, se_DescribeTemplatePermissionsCommand, diff --git a/clients/client-quicksight/src/commands/DescribeThemeAliasCommand.ts b/clients/client-quicksight/src/commands/DescribeThemeAliasCommand.ts index 320aa2bed8b4..1688605f33f0 100644 --- a/clients/client-quicksight/src/commands/DescribeThemeAliasCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeThemeAliasCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeThemeAliasRequest, DescribeThemeAliasResponse } from "../models/models_2"; +import { DescribeThemeAliasRequest, DescribeThemeAliasResponse } from "../models/models_3"; import { de_DescribeThemeAliasCommand, se_DescribeThemeAliasCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeThemeCommand.ts b/clients/client-quicksight/src/commands/DescribeThemeCommand.ts index 66a7b0209784..f2cf6a3af6af 100644 --- a/clients/client-quicksight/src/commands/DescribeThemeCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeThemeCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeThemeRequest, DescribeThemeResponse } from "../models/models_2"; +import { DescribeThemeRequest, DescribeThemeResponse } from "../models/models_3"; import { de_DescribeThemeCommand, se_DescribeThemeCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeThemePermissionsCommand.ts b/clients/client-quicksight/src/commands/DescribeThemePermissionsCommand.ts index 0ccb4b1cea7b..e4ed90b97d55 100644 --- a/clients/client-quicksight/src/commands/DescribeThemePermissionsCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeThemePermissionsCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeThemePermissionsRequest, DescribeThemePermissionsResponse } from "../models/models_2"; +import { DescribeThemePermissionsRequest, DescribeThemePermissionsResponse } from "../models/models_3"; import { de_DescribeThemePermissionsCommand, se_DescribeThemePermissionsCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeTopicCommand.ts b/clients/client-quicksight/src/commands/DescribeTopicCommand.ts new file mode 100644 index 000000000000..51616b3b6d9f --- /dev/null +++ b/clients/client-quicksight/src/commands/DescribeTopicCommand.ts @@ -0,0 +1,407 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + DescribeTopicRequest, + DescribeTopicResponse, + DescribeTopicResponseFilterSensitiveLog, +} from "../models/models_3"; +import { de_DescribeTopicCommand, se_DescribeTopicCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link DescribeTopicCommand}. + */ +export interface DescribeTopicCommandInput extends DescribeTopicRequest {} +/** + * @public + * + * The output of {@link DescribeTopicCommand}. + */ +export interface DescribeTopicCommandOutput extends DescribeTopicResponse, __MetadataBearer {} + +/** + * @public + *

Describes a topic.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DescribeTopicCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DescribeTopicCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DescribeTopicRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * }; + * const command = new DescribeTopicCommand(input); + * const response = await client.send(command); + * // { // DescribeTopicResponse + * // Arn: "STRING_VALUE", + * // TopicId: "STRING_VALUE", + * // Topic: { // TopicDetails + * // Name: "STRING_VALUE", + * // Description: "STRING_VALUE", + * // DataSets: [ // Datasets + * // { // DatasetMetadata + * // DatasetArn: "STRING_VALUE", // required + * // DatasetName: "STRING_VALUE", + * // DatasetDescription: "STRING_VALUE", + * // DataAggregation: { // DataAggregation + * // DatasetRowDateGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * // DefaultDateColumnName: "STRING_VALUE", + * // }, + * // Filters: [ // TopicFilters + * // { // TopicFilter + * // FilterDescription: "STRING_VALUE", + * // FilterClass: "ENFORCED_VALUE_FILTER" || "CONDITIONAL_VALUE_FILTER" || "NAMED_VALUE_FILTER", + * // FilterName: "STRING_VALUE", // required + * // FilterSynonyms: [ // Synonyms + * // "STRING_VALUE", + * // ], + * // OperandFieldName: "STRING_VALUE", // required + * // FilterType: "CATEGORY_FILTER" || "NUMERIC_EQUALITY_FILTER" || "NUMERIC_RANGE_FILTER" || "DATE_RANGE_FILTER" || "RELATIVE_DATE_FILTER", + * // CategoryFilter: { // TopicCategoryFilter + * // CategoryFilterFunction: "EXACT" || "CONTAINS", + * // CategoryFilterType: "CUSTOM_FILTER" || "CUSTOM_FILTER_LIST" || "FILTER_LIST", + * // Constant: { // TopicCategoryFilterConstant + * // ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * // SingularConstant: "STRING_VALUE", + * // CollectiveConstant: { // CollectiveConstant + * // ValueList: [ // StringList + * // "STRING_VALUE", + * // ], + * // }, + * // }, + * // Inverse: true || false, + * // }, + * // NumericEqualityFilter: { // TopicNumericEqualityFilter + * // Constant: { // TopicSingularFilterConstant + * // ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * // SingularConstant: "STRING_VALUE", + * // }, + * // Aggregation: "NO_AGGREGATION" || "SUM" || "AVERAGE" || "COUNT" || "DISTINCT_COUNT" || "MAX" || "MEDIAN" || "MIN" || "STDEV" || "STDEVP" || "VAR" || "VARP", + * // }, + * // NumericRangeFilter: { // TopicNumericRangeFilter + * // Inclusive: true || false, + * // Constant: { // TopicRangeFilterConstant + * // ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * // RangeConstant: { // RangeConstant + * // Minimum: "STRING_VALUE", + * // Maximum: "STRING_VALUE", + * // }, + * // }, + * // Aggregation: "NO_AGGREGATION" || "SUM" || "AVERAGE" || "COUNT" || "DISTINCT_COUNT" || "MAX" || "MEDIAN" || "MIN" || "STDEV" || "STDEVP" || "VAR" || "VARP", + * // }, + * // DateRangeFilter: { // TopicDateRangeFilter + * // Inclusive: true || false, + * // Constant: { + * // ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * // RangeConstant: { + * // Minimum: "STRING_VALUE", + * // Maximum: "STRING_VALUE", + * // }, + * // }, + * // }, + * // RelativeDateFilter: { // TopicRelativeDateFilter + * // TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * // RelativeDateFilterFunction: "PREVIOUS" || "THIS" || "LAST" || "NEXT" || "NOW", + * // Constant: { + * // ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * // SingularConstant: "STRING_VALUE", + * // }, + * // }, + * // }, + * // ], + * // Columns: [ // TopicColumns + * // { // TopicColumn + * // ColumnName: "STRING_VALUE", // required + * // ColumnFriendlyName: "STRING_VALUE", + * // ColumnDescription: "STRING_VALUE", + * // ColumnSynonyms: [ + * // "STRING_VALUE", + * // ], + * // ColumnDataRole: "DIMENSION" || "MEASURE", + * // Aggregation: "SUM" || "MAX" || "MIN" || "COUNT" || "DISTINCT_COUNT" || "AVERAGE", + * // IsIncludedInTopic: true || false, + * // DisableIndexing: true || false, + * // ComparativeOrder: { // ComparativeOrder + * // UseOrdering: "GREATER_IS_BETTER" || "LESSER_IS_BETTER" || "SPECIFIED", + * // SpecifedOrder: [ + * // "STRING_VALUE", + * // ], + * // TreatUndefinedSpecifiedValues: "LEAST" || "MOST", + * // }, + * // SemanticType: { // SemanticType + * // TypeName: "STRING_VALUE", + * // SubTypeName: "STRING_VALUE", + * // TypeParameters: { // TypeParameters + * // "": "STRING_VALUE", + * // }, + * // TruthyCellValue: "STRING_VALUE", + * // TruthyCellValueSynonyms: [ // SensitiveStringList + * // "STRING_VALUE", + * // ], + * // FalseyCellValue: "STRING_VALUE", + * // FalseyCellValueSynonyms: [ + * // "STRING_VALUE", + * // ], + * // }, + * // TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * // AllowedAggregations: [ // AuthorSpecifiedAggregations + * // "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * // ], + * // NotAllowedAggregations: [ + * // "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * // ], + * // DefaultFormatting: { // DefaultFormatting + * // DisplayFormat: "AUTO" || "PERCENT" || "CURRENCY" || "NUMBER" || "DATE" || "STRING", + * // DisplayFormatOptions: { // DisplayFormatOptions + * // UseBlankCellFormat: true || false, + * // BlankCellFormat: "STRING_VALUE", + * // DateFormat: "STRING_VALUE", + * // DecimalSeparator: "COMMA" || "DOT", + * // GroupingSeparator: "STRING_VALUE", + * // UseGrouping: true || false, + * // FractionDigits: Number("int"), + * // Prefix: "STRING_VALUE", + * // Suffix: "STRING_VALUE", + * // UnitScaler: "NONE" || "AUTO" || "THOUSANDS" || "MILLIONS" || "BILLIONS" || "TRILLIONS", + * // NegativeFormat: { // NegativeFormat + * // Prefix: "STRING_VALUE", + * // Suffix: "STRING_VALUE", + * // }, + * // CurrencySymbol: "STRING_VALUE", + * // }, + * // }, + * // NeverAggregateInFilter: true || false, + * // CellValueSynonyms: [ // CellValueSynonyms + * // { // CellValueSynonym + * // CellValue: "STRING_VALUE", + * // Synonyms: "", + * // }, + * // ], + * // }, + * // ], + * // CalculatedFields: [ // TopicCalculatedFields + * // { // TopicCalculatedField + * // CalculatedFieldName: "STRING_VALUE", // required + * // CalculatedFieldDescription: "STRING_VALUE", + * // Expression: "STRING_VALUE", // required + * // CalculatedFieldSynonyms: [ + * // "STRING_VALUE", + * // ], + * // IsIncludedInTopic: true || false, + * // DisableIndexing: true || false, + * // ColumnDataRole: "DIMENSION" || "MEASURE", + * // TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * // DefaultFormatting: { + * // DisplayFormat: "AUTO" || "PERCENT" || "CURRENCY" || "NUMBER" || "DATE" || "STRING", + * // DisplayFormatOptions: { + * // UseBlankCellFormat: true || false, + * // BlankCellFormat: "STRING_VALUE", + * // DateFormat: "STRING_VALUE", + * // DecimalSeparator: "COMMA" || "DOT", + * // GroupingSeparator: "STRING_VALUE", + * // UseGrouping: true || false, + * // FractionDigits: Number("int"), + * // Prefix: "STRING_VALUE", + * // Suffix: "STRING_VALUE", + * // UnitScaler: "NONE" || "AUTO" || "THOUSANDS" || "MILLIONS" || "BILLIONS" || "TRILLIONS", + * // NegativeFormat: { + * // Prefix: "STRING_VALUE", + * // Suffix: "STRING_VALUE", + * // }, + * // CurrencySymbol: "STRING_VALUE", + * // }, + * // }, + * // Aggregation: "SUM" || "MAX" || "MIN" || "COUNT" || "DISTINCT_COUNT" || "AVERAGE", + * // ComparativeOrder: { + * // UseOrdering: "GREATER_IS_BETTER" || "LESSER_IS_BETTER" || "SPECIFIED", + * // SpecifedOrder: "", + * // TreatUndefinedSpecifiedValues: "LEAST" || "MOST", + * // }, + * // SemanticType: { + * // TypeName: "STRING_VALUE", + * // SubTypeName: "STRING_VALUE", + * // TypeParameters: { + * // "": "STRING_VALUE", + * // }, + * // TruthyCellValue: "STRING_VALUE", + * // TruthyCellValueSynonyms: [ + * // "STRING_VALUE", + * // ], + * // FalseyCellValue: "STRING_VALUE", + * // FalseyCellValueSynonyms: [ + * // "STRING_VALUE", + * // ], + * // }, + * // AllowedAggregations: [ + * // "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * // ], + * // NotAllowedAggregations: [ + * // "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * // ], + * // NeverAggregateInFilter: true || false, + * // CellValueSynonyms: [ + * // { + * // CellValue: "STRING_VALUE", + * // Synonyms: "", + * // }, + * // ], + * // }, + * // ], + * // NamedEntities: [ // TopicNamedEntities + * // { // TopicNamedEntity + * // EntityName: "STRING_VALUE", // required + * // EntityDescription: "STRING_VALUE", + * // EntitySynonyms: [ + * // "STRING_VALUE", + * // ], + * // SemanticEntityType: { // SemanticEntityType + * // TypeName: "STRING_VALUE", + * // SubTypeName: "STRING_VALUE", + * // TypeParameters: { + * // "": "STRING_VALUE", + * // }, + * // }, + * // Definition: [ // NamedEntityDefinitions + * // { // NamedEntityDefinition + * // FieldName: "STRING_VALUE", + * // PropertyName: "STRING_VALUE", + * // PropertyRole: "PRIMARY" || "ID", + * // PropertyUsage: "INHERIT" || "DIMENSION" || "MEASURE", + * // Metric: { // NamedEntityDefinitionMetric + * // Aggregation: "SUM" || "MIN" || "MAX" || "COUNT" || "AVERAGE" || "DISTINCT_COUNT" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE" || "MEDIAN" || "CUSTOM", + * // AggregationFunctionParameters: { // AggregationFunctionParameters + * // "": "STRING_VALUE", + * // }, + * // }, + * // }, + * // ], + * // }, + * // ], + * // }, + * // ], + * // }, + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param DescribeTopicCommandInput - {@link DescribeTopicCommandInput} + * @returns {@link DescribeTopicCommandOutput} + * @see {@link DescribeTopicCommandInput} for command's `input` shape. + * @see {@link DescribeTopicCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class DescribeTopicCommand extends $Command< + DescribeTopicCommandInput, + DescribeTopicCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeTopicCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, DescribeTopicCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "DescribeTopicCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: DescribeTopicResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DescribeTopicCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DescribeTopicCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DescribeTopicCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/DescribeTopicPermissionsCommand.ts b/clients/client-quicksight/src/commands/DescribeTopicPermissionsCommand.ts new file mode 100644 index 000000000000..fdd4ee06ad60 --- /dev/null +++ b/clients/client-quicksight/src/commands/DescribeTopicPermissionsCommand.ts @@ -0,0 +1,168 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { DescribeTopicPermissionsRequest, DescribeTopicPermissionsResponse } from "../models/models_3"; +import { de_DescribeTopicPermissionsCommand, se_DescribeTopicPermissionsCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link DescribeTopicPermissionsCommand}. + */ +export interface DescribeTopicPermissionsCommandInput extends DescribeTopicPermissionsRequest {} +/** + * @public + * + * The output of {@link DescribeTopicPermissionsCommand}. + */ +export interface DescribeTopicPermissionsCommandOutput extends DescribeTopicPermissionsResponse, __MetadataBearer {} + +/** + * @public + *

Describes the permissions of a topic.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DescribeTopicPermissionsCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DescribeTopicPermissionsCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DescribeTopicPermissionsRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * }; + * const command = new DescribeTopicPermissionsCommand(input); + * const response = await client.send(command); + * // { // DescribeTopicPermissionsResponse + * // TopicId: "STRING_VALUE", + * // TopicArn: "STRING_VALUE", + * // Permissions: [ // ResourcePermissionList + * // { // ResourcePermission + * // Principal: "STRING_VALUE", // required + * // Actions: [ // ActionList // required + * // "STRING_VALUE", + * // ], + * // }, + * // ], + * // Status: Number("int"), + * // RequestId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeTopicPermissionsCommandInput - {@link DescribeTopicPermissionsCommandInput} + * @returns {@link DescribeTopicPermissionsCommandOutput} + * @see {@link DescribeTopicPermissionsCommandInput} for command's `input` shape. + * @see {@link DescribeTopicPermissionsCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class DescribeTopicPermissionsCommand extends $Command< + DescribeTopicPermissionsCommandInput, + DescribeTopicPermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeTopicPermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeTopicPermissionsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "DescribeTopicPermissionsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DescribeTopicPermissionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DescribeTopicPermissionsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DescribeTopicPermissionsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/DescribeTopicRefreshCommand.ts b/clients/client-quicksight/src/commands/DescribeTopicRefreshCommand.ts new file mode 100644 index 000000000000..6c35c16b3422 --- /dev/null +++ b/clients/client-quicksight/src/commands/DescribeTopicRefreshCommand.ts @@ -0,0 +1,164 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { DescribeTopicRefreshRequest, DescribeTopicRefreshResponse } from "../models/models_3"; +import { de_DescribeTopicRefreshCommand, se_DescribeTopicRefreshCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link DescribeTopicRefreshCommand}. + */ +export interface DescribeTopicRefreshCommandInput extends DescribeTopicRefreshRequest {} +/** + * @public + * + * The output of {@link DescribeTopicRefreshCommand}. + */ +export interface DescribeTopicRefreshCommandOutput extends DescribeTopicRefreshResponse, __MetadataBearer {} + +/** + * @public + *

Describes the status of a topic refresh.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DescribeTopicRefreshCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DescribeTopicRefreshCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DescribeTopicRefreshRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * RefreshId: "STRING_VALUE", // required + * }; + * const command = new DescribeTopicRefreshCommand(input); + * const response = await client.send(command); + * // { // DescribeTopicRefreshResponse + * // RefreshDetails: { // TopicRefreshDetails + * // RefreshArn: "STRING_VALUE", + * // RefreshId: "STRING_VALUE", + * // RefreshStatus: "INITIALIZED" || "RUNNING" || "FAILED" || "COMPLETED" || "CANCELLED", + * // }, + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param DescribeTopicRefreshCommandInput - {@link DescribeTopicRefreshCommandInput} + * @returns {@link DescribeTopicRefreshCommandOutput} + * @see {@link DescribeTopicRefreshCommandInput} for command's `input` shape. + * @see {@link DescribeTopicRefreshCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class DescribeTopicRefreshCommand extends $Command< + DescribeTopicRefreshCommandInput, + DescribeTopicRefreshCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeTopicRefreshCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeTopicRefreshCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "DescribeTopicRefreshCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DescribeTopicRefreshCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DescribeTopicRefreshCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DescribeTopicRefreshCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/DescribeTopicRefreshScheduleCommand.ts b/clients/client-quicksight/src/commands/DescribeTopicRefreshScheduleCommand.ts new file mode 100644 index 000000000000..040c1d093103 --- /dev/null +++ b/clients/client-quicksight/src/commands/DescribeTopicRefreshScheduleCommand.ts @@ -0,0 +1,187 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { DescribeTopicRefreshScheduleRequest, DescribeTopicRefreshScheduleResponse } from "../models/models_3"; +import { + de_DescribeTopicRefreshScheduleCommand, + se_DescribeTopicRefreshScheduleCommand, +} from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link DescribeTopicRefreshScheduleCommand}. + */ +export interface DescribeTopicRefreshScheduleCommandInput extends DescribeTopicRefreshScheduleRequest {} +/** + * @public + * + * The output of {@link DescribeTopicRefreshScheduleCommand}. + */ +export interface DescribeTopicRefreshScheduleCommandOutput + extends DescribeTopicRefreshScheduleResponse, + __MetadataBearer {} + +/** + * @public + *

Deletes a topic refresh schedule.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DescribeTopicRefreshScheduleCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DescribeTopicRefreshScheduleCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DescribeTopicRefreshScheduleRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * DatasetId: "STRING_VALUE", // required + * }; + * const command = new DescribeTopicRefreshScheduleCommand(input); + * const response = await client.send(command); + * // { // DescribeTopicRefreshScheduleResponse + * // TopicId: "STRING_VALUE", + * // TopicArn: "STRING_VALUE", + * // DatasetArn: "STRING_VALUE", + * // RefreshSchedule: { // TopicRefreshSchedule + * // IsEnabled: true || false, // required + * // BasedOnSpiceSchedule: true || false, // required + * // StartingAt: new Date("TIMESTAMP"), + * // Timezone: "STRING_VALUE", + * // RepeatAt: "STRING_VALUE", + * // TopicScheduleType: "HOURLY" || "DAILY" || "WEEKLY" || "MONTHLY", + * // }, + * // Status: Number("int"), + * // RequestId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DescribeTopicRefreshScheduleCommandInput - {@link DescribeTopicRefreshScheduleCommandInput} + * @returns {@link DescribeTopicRefreshScheduleCommandOutput} + * @see {@link DescribeTopicRefreshScheduleCommandInput} for command's `input` shape. + * @see {@link DescribeTopicRefreshScheduleCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link LimitExceededException} (client fault) + *

A limit is exceeded.

+ * + * @throws {@link ResourceExistsException} (client fault) + *

The resource specified already exists.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class DescribeTopicRefreshScheduleCommand extends $Command< + DescribeTopicRefreshScheduleCommandInput, + DescribeTopicRefreshScheduleCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeTopicRefreshScheduleCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeTopicRefreshScheduleCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "DescribeTopicRefreshScheduleCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DescribeTopicRefreshScheduleCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DescribeTopicRefreshScheduleCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DescribeTopicRefreshScheduleCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/DescribeUserCommand.ts b/clients/client-quicksight/src/commands/DescribeUserCommand.ts index 66ed5792f532..202ef2ea933f 100644 --- a/clients/client-quicksight/src/commands/DescribeUserCommand.ts +++ b/clients/client-quicksight/src/commands/DescribeUserCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { DescribeUserRequest, DescribeUserResponse } from "../models/models_2"; +import { DescribeUserRequest, DescribeUserResponse } from "../models/models_3"; import { de_DescribeUserCommand, se_DescribeUserCommand } from "../protocols/Aws_restJson1"; import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; diff --git a/clients/client-quicksight/src/commands/DescribeVPCConnectionCommand.ts b/clients/client-quicksight/src/commands/DescribeVPCConnectionCommand.ts new file mode 100644 index 000000000000..57f34afeb199 --- /dev/null +++ b/clients/client-quicksight/src/commands/DescribeVPCConnectionCommand.ts @@ -0,0 +1,190 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { DescribeVPCConnectionRequest, DescribeVPCConnectionResponse } from "../models/models_3"; +import { de_DescribeVPCConnectionCommand, se_DescribeVPCConnectionCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link DescribeVPCConnectionCommand}. + */ +export interface DescribeVPCConnectionCommandInput extends DescribeVPCConnectionRequest {} +/** + * @public + * + * The output of {@link DescribeVPCConnectionCommand}. + */ +export interface DescribeVPCConnectionCommandOutput extends DescribeVPCConnectionResponse, __MetadataBearer {} + +/** + * @public + *

Describes a VPC connection.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DescribeVPCConnectionCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DescribeVPCConnectionCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DescribeVPCConnectionRequest + * AwsAccountId: "STRING_VALUE", // required + * VPCConnectionId: "STRING_VALUE", // required + * }; + * const command = new DescribeVPCConnectionCommand(input); + * const response = await client.send(command); + * // { // DescribeVPCConnectionResponse + * // VPCConnection: { // VPCConnection + * // VPCConnectionId: "STRING_VALUE", + * // Arn: "STRING_VALUE", + * // Name: "STRING_VALUE", + * // VPCId: "STRING_VALUE", + * // SecurityGroupIds: [ // SecurityGroupIdList + * // "STRING_VALUE", + * // ], + * // DnsResolvers: [ // StringList + * // "STRING_VALUE", + * // ], + * // Status: "CREATION_IN_PROGRESS" || "CREATION_SUCCESSFUL" || "CREATION_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_SUCCESSFUL" || "UPDATE_FAILED" || "DELETION_IN_PROGRESS" || "DELETION_FAILED" || "DELETED", + * // AvailabilityStatus: "AVAILABLE" || "UNAVAILABLE" || "PARTIALLY_AVAILABLE", + * // NetworkInterfaces: [ // NetworkInterfaceList + * // { // NetworkInterface + * // SubnetId: "STRING_VALUE", + * // AvailabilityZone: "STRING_VALUE", + * // ErrorMessage: "STRING_VALUE", + * // Status: "CREATING" || "AVAILABLE" || "CREATION_FAILED" || "UPDATING" || "UPDATE_FAILED" || "DELETING" || "DELETED" || "DELETION_FAILED" || "DELETION_SCHEDULED" || "ATTACHMENT_FAILED_ROLLBACK_FAILED", + * // NetworkInterfaceId: "STRING_VALUE", + * // }, + * // ], + * // RoleArn: "STRING_VALUE", + * // CreatedTime: new Date("TIMESTAMP"), + * // LastUpdatedTime: new Date("TIMESTAMP"), + * // }, + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param DescribeVPCConnectionCommandInput - {@link DescribeVPCConnectionCommandInput} + * @returns {@link DescribeVPCConnectionCommandOutput} + * @see {@link DescribeVPCConnectionCommandInput} for command's `input` shape. + * @see {@link DescribeVPCConnectionCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link UnsupportedUserEditionException} (client fault) + *

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.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class DescribeVPCConnectionCommand extends $Command< + DescribeVPCConnectionCommandInput, + DescribeVPCConnectionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DescribeVPCConnectionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DescribeVPCConnectionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "DescribeVPCConnectionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DescribeVPCConnectionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DescribeVPCConnectionCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DescribeVPCConnectionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/GenerateEmbedUrlForRegisteredUserCommand.ts b/clients/client-quicksight/src/commands/GenerateEmbedUrlForRegisteredUserCommand.ts index 6731d7346ecf..8da9253ddb18 100644 --- a/clients/client-quicksight/src/commands/GenerateEmbedUrlForRegisteredUserCommand.ts +++ b/clients/client-quicksight/src/commands/GenerateEmbedUrlForRegisteredUserCommand.ts @@ -79,6 +79,9 @@ export interface GenerateEmbedUrlForRegisteredUserCommandOutput * StatePersistence: { // StatePersistenceConfigurations * Enabled: true || false, // required * }, + * Bookmarks: { // BookmarksConfigurations + * Enabled: true || false, // required + * }, * }, * }, * QuickSightConsole: { // RegisteredUserQuickSightConsoleEmbeddingConfiguration diff --git a/clients/client-quicksight/src/commands/ListIAMPolicyAssignmentsCommand.ts b/clients/client-quicksight/src/commands/ListIAMPolicyAssignmentsCommand.ts index c178be92efc2..c080e22c3ba6 100644 --- a/clients/client-quicksight/src/commands/ListIAMPolicyAssignmentsCommand.ts +++ b/clients/client-quicksight/src/commands/ListIAMPolicyAssignmentsCommand.ts @@ -32,7 +32,9 @@ export interface ListIAMPolicyAssignmentsCommandOutput extends ListIAMPolicyAssi /** * @public - *

Lists IAM policy assignments in the current Amazon QuickSight account.

+ *

Lists the + * IAM policy assignments in the current Amazon QuickSight + * account.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-quicksight/src/commands/ListIAMPolicyAssignmentsForUserCommand.ts b/clients/client-quicksight/src/commands/ListIAMPolicyAssignmentsForUserCommand.ts index 3873b4245e76..95ebf5960b31 100644 --- a/clients/client-quicksight/src/commands/ListIAMPolicyAssignmentsForUserCommand.ts +++ b/clients/client-quicksight/src/commands/ListIAMPolicyAssignmentsForUserCommand.ts @@ -37,9 +37,13 @@ export interface ListIAMPolicyAssignmentsForUserCommandOutput /** * @public - *

Lists all the IAM policy assignments, including the Amazon Resource Names (ARNs) for the IAM - * policies assigned to the specified user and group or groups that the user belongs - * to.

+ *

Lists all of + * the IAM policy assignments, including the Amazon + * Resource Names + * (ARNs), + * for the IAM policies assigned to the specified user and + * group, + * or groups that the user belongs to.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-quicksight/src/commands/ListTopicRefreshSchedulesCommand.ts b/clients/client-quicksight/src/commands/ListTopicRefreshSchedulesCommand.ts new file mode 100644 index 000000000000..ab63f9b8e004 --- /dev/null +++ b/clients/client-quicksight/src/commands/ListTopicRefreshSchedulesCommand.ts @@ -0,0 +1,187 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { ListTopicRefreshSchedulesRequest, ListTopicRefreshSchedulesResponse } from "../models/models_3"; +import { de_ListTopicRefreshSchedulesCommand, se_ListTopicRefreshSchedulesCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link ListTopicRefreshSchedulesCommand}. + */ +export interface ListTopicRefreshSchedulesCommandInput extends ListTopicRefreshSchedulesRequest {} +/** + * @public + * + * The output of {@link ListTopicRefreshSchedulesCommand}. + */ +export interface ListTopicRefreshSchedulesCommandOutput extends ListTopicRefreshSchedulesResponse, __MetadataBearer {} + +/** + * @public + *

Lists all of the refresh schedules for a topic.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, ListTopicRefreshSchedulesCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, ListTopicRefreshSchedulesCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // ListTopicRefreshSchedulesRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * }; + * const command = new ListTopicRefreshSchedulesCommand(input); + * const response = await client.send(command); + * // { // ListTopicRefreshSchedulesResponse + * // TopicId: "STRING_VALUE", + * // TopicArn: "STRING_VALUE", + * // RefreshSchedules: [ // TopicRefreshScheduleSummaries + * // { // TopicRefreshScheduleSummary + * // DatasetId: "STRING_VALUE", + * // DatasetArn: "STRING_VALUE", + * // DatasetName: "STRING_VALUE", + * // RefreshSchedule: { // TopicRefreshSchedule + * // IsEnabled: true || false, // required + * // BasedOnSpiceSchedule: true || false, // required + * // StartingAt: new Date("TIMESTAMP"), + * // Timezone: "STRING_VALUE", + * // RepeatAt: "STRING_VALUE", + * // TopicScheduleType: "HOURLY" || "DAILY" || "WEEKLY" || "MONTHLY", + * // }, + * // }, + * // ], + * // Status: Number("int"), + * // RequestId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListTopicRefreshSchedulesCommandInput - {@link ListTopicRefreshSchedulesCommandInput} + * @returns {@link ListTopicRefreshSchedulesCommandOutput} + * @see {@link ListTopicRefreshSchedulesCommandInput} for command's `input` shape. + * @see {@link ListTopicRefreshSchedulesCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link ConflictException} (client fault) + *

Updating or deleting a resource can cause an inconsistent state.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link LimitExceededException} (client fault) + *

A limit is exceeded.

+ * + * @throws {@link ResourceExistsException} (client fault) + *

The resource specified already exists.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

One or more resources can't be found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class ListTopicRefreshSchedulesCommand extends $Command< + ListTopicRefreshSchedulesCommandInput, + ListTopicRefreshSchedulesCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListTopicRefreshSchedulesCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListTopicRefreshSchedulesCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "ListTopicRefreshSchedulesCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListTopicRefreshSchedulesCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListTopicRefreshSchedulesCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_ListTopicRefreshSchedulesCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/ListTopicsCommand.ts b/clients/client-quicksight/src/commands/ListTopicsCommand.ts new file mode 100644 index 000000000000..6dbb04389778 --- /dev/null +++ b/clients/client-quicksight/src/commands/ListTopicsCommand.ts @@ -0,0 +1,165 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { ListTopicsRequest, ListTopicsResponse } from "../models/models_3"; +import { de_ListTopicsCommand, se_ListTopicsCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link ListTopicsCommand}. + */ +export interface ListTopicsCommandInput extends ListTopicsRequest {} +/** + * @public + * + * The output of {@link ListTopicsCommand}. + */ +export interface ListTopicsCommandOutput extends ListTopicsResponse, __MetadataBearer {} + +/** + * @public + *

Lists all of the topics within an account.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, ListTopicsCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, ListTopicsCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // ListTopicsRequest + * AwsAccountId: "STRING_VALUE", // required + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new ListTopicsCommand(input); + * const response = await client.send(command); + * // { // ListTopicsResponse + * // TopicsSummaries: [ // TopicSummaries + * // { // TopicSummary + * // Arn: "STRING_VALUE", + * // TopicId: "STRING_VALUE", + * // Name: "STRING_VALUE", + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param ListTopicsCommandInput - {@link ListTopicsCommandInput} + * @returns {@link ListTopicsCommandOutput} + * @see {@link ListTopicsCommandInput} for command's `input` shape. + * @see {@link ListTopicsCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidNextTokenException} (client fault) + *

The NextToken value isn't valid.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class ListTopicsCommand extends $Command< + ListTopicsCommandInput, + ListTopicsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListTopicsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, ListTopicsCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "ListTopicsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListTopicsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListTopicsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListTopicsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/ListVPCConnectionsCommand.ts b/clients/client-quicksight/src/commands/ListVPCConnectionsCommand.ts new file mode 100644 index 000000000000..c619f48cf848 --- /dev/null +++ b/clients/client-quicksight/src/commands/ListVPCConnectionsCommand.ts @@ -0,0 +1,195 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { ListVPCConnectionsRequest, ListVPCConnectionsResponse } from "../models/models_3"; +import { de_ListVPCConnectionsCommand, se_ListVPCConnectionsCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link ListVPCConnectionsCommand}. + */ +export interface ListVPCConnectionsCommandInput extends ListVPCConnectionsRequest {} +/** + * @public + * + * The output of {@link ListVPCConnectionsCommand}. + */ +export interface ListVPCConnectionsCommandOutput extends ListVPCConnectionsResponse, __MetadataBearer {} + +/** + * @public + *

Lists all of the VPC connections in the current set Amazon Web Services Region of an + * Amazon Web Services account.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, ListVPCConnectionsCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, ListVPCConnectionsCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // ListVPCConnectionsRequest + * AwsAccountId: "STRING_VALUE", // required + * NextToken: "STRING_VALUE", + * MaxResults: Number("int"), + * }; + * const command = new ListVPCConnectionsCommand(input); + * const response = await client.send(command); + * // { // ListVPCConnectionsResponse + * // VPCConnectionSummaries: [ // VPCConnectionSummaryList + * // { // VPCConnectionSummary + * // VPCConnectionId: "STRING_VALUE", + * // Arn: "STRING_VALUE", + * // Name: "STRING_VALUE", + * // VPCId: "STRING_VALUE", + * // SecurityGroupIds: [ // SecurityGroupIdList + * // "STRING_VALUE", + * // ], + * // DnsResolvers: [ // StringList + * // "STRING_VALUE", + * // ], + * // Status: "CREATION_IN_PROGRESS" || "CREATION_SUCCESSFUL" || "CREATION_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_SUCCESSFUL" || "UPDATE_FAILED" || "DELETION_IN_PROGRESS" || "DELETION_FAILED" || "DELETED", + * // AvailabilityStatus: "AVAILABLE" || "UNAVAILABLE" || "PARTIALLY_AVAILABLE", + * // NetworkInterfaces: [ // NetworkInterfaceList + * // { // NetworkInterface + * // SubnetId: "STRING_VALUE", + * // AvailabilityZone: "STRING_VALUE", + * // ErrorMessage: "STRING_VALUE", + * // Status: "CREATING" || "AVAILABLE" || "CREATION_FAILED" || "UPDATING" || "UPDATE_FAILED" || "DELETING" || "DELETED" || "DELETION_FAILED" || "DELETION_SCHEDULED" || "ATTACHMENT_FAILED_ROLLBACK_FAILED", + * // NetworkInterfaceId: "STRING_VALUE", + * // }, + * // ], + * // RoleArn: "STRING_VALUE", + * // CreatedTime: new Date("TIMESTAMP"), + * // LastUpdatedTime: new Date("TIMESTAMP"), + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param ListVPCConnectionsCommandInput - {@link ListVPCConnectionsCommandInput} + * @returns {@link ListVPCConnectionsCommandOutput} + * @see {@link ListVPCConnectionsCommandInput} for command's `input` shape. + * @see {@link ListVPCConnectionsCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

+ * + * @throws {@link InternalFailureException} (server fault) + *

An internal failure occurred.

+ * + * @throws {@link InvalidNextTokenException} (client fault) + *

The NextToken value isn't valid.

+ * + * @throws {@link InvalidParameterValueException} (client fault) + *

One or more parameters has a value that isn't valid.

+ * + * @throws {@link ThrottlingException} (client fault) + *

Access is throttled.

+ * + * @throws {@link UnsupportedUserEditionException} (client fault) + *

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.

+ * + * @throws {@link QuickSightServiceException} + *

Base exception class for all service exceptions from QuickSight service.

+ * + */ +export class ListVPCConnectionsCommand extends $Command< + ListVPCConnectionsCommandInput, + ListVPCConnectionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListVPCConnectionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListVPCConnectionsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "ListVPCConnectionsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListVPCConnectionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListVPCConnectionsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListVPCConnectionsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/TagResourceCommand.ts b/clients/client-quicksight/src/commands/TagResourceCommand.ts index 477bea0ab61e..e237a5433903 100644 --- a/clients/client-quicksight/src/commands/TagResourceCommand.ts +++ b/clients/client-quicksight/src/commands/TagResourceCommand.ts @@ -41,7 +41,7 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat * that is already associated with the resource, the new tag value that you specify * replaces the previous value for that tag.

*

You can associate as many as 50 tags with a resource. Amazon QuickSight supports tagging on data - * set, data source, dashboard, and template.

+ * set, data source, dashboard, template, and topic.

*

Tagging for Amazon QuickSight works in a similar way to tagging for other Amazon Web Services services, except for * the following:

*
    diff --git a/clients/client-quicksight/src/commands/UpdateAnalysisCommand.ts b/clients/client-quicksight/src/commands/UpdateAnalysisCommand.ts index 7aed1918066a..43f16683d9a9 100644 --- a/clients/client-quicksight/src/commands/UpdateAnalysisCommand.ts +++ b/clients/client-quicksight/src/commands/UpdateAnalysisCommand.ts @@ -1006,6 +1006,9 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ // CustomActionColumnList + * "", + * ], * }, * TargetVisualsConfiguration: { // FilterOperationTargetVisualsConfiguration * SameSheetTargetVisualConfiguration: { // SameSheetTargetVisualConfiguration @@ -1050,6 +1053,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1401,6 +1405,9 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1445,6 +1452,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1813,6 +1821,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { // TooltipOptions * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -1846,7 +1855,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * }, * DynamicConfiguration: { // ReferenceLineDynamicDataConfiguration * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -1893,6 +1902,9 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1937,6 +1949,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2172,6 +2185,9 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2216,6 +2232,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2422,6 +2439,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2479,6 +2497,9 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2523,6 +2544,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2616,6 +2638,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * TooltipOptions: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2981,6 +3004,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * ReferenceLines: [ * { @@ -2991,7 +3015,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3158,6 +3182,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3403,11 +3428,14 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * YAxis: "", * Category: "", * Size: "", + * Label: "", * }, * ScatterPlotUnaggregatedFieldWells: { // ScatterPlotUnaggregatedFieldWells * XAxis: "", * YAxis: "", * Size: "", + * Category: "", + * Label: "", * }, * }, * XAxisLabelOptions: "", @@ -3462,7 +3490,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3535,7 +3563,7 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -4066,6 +4094,12 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: "STRING_VALUE", * }, + * MappedDataSetParameters: [ // MappedDataSetParameters + * { // MappedDataSetParameter + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DecimalParameterDeclaration: { // DecimalParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4082,6 +4116,12 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("double"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * IntegerParameterDeclaration: { // IntegerParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4098,6 +4138,12 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("long"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DateTimeParameterDeclaration: { // DateTimeParameterDeclaration * Name: "STRING_VALUE", // required @@ -4118,6 +4164,12 @@ export interface UpdateAnalysisCommandOutput extends UpdateAnalysisResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: new Date("TIMESTAMP"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * }, * ], diff --git a/clients/client-quicksight/src/commands/UpdateDashboardCommand.ts b/clients/client-quicksight/src/commands/UpdateDashboardCommand.ts index 1ba5a18398e2..946a5e5cddde 100644 --- a/clients/client-quicksight/src/commands/UpdateDashboardCommand.ts +++ b/clients/client-quicksight/src/commands/UpdateDashboardCommand.ts @@ -1051,6 +1051,9 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ // CustomActionColumnList + * "", + * ], * }, * TargetVisualsConfiguration: { // FilterOperationTargetVisualsConfiguration * SameSheetTargetVisualConfiguration: { // SameSheetTargetVisualConfiguration @@ -1095,6 +1098,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1446,6 +1450,9 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1490,6 +1497,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1858,6 +1866,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { // TooltipOptions * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -1891,7 +1900,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * }, * DynamicConfiguration: { // ReferenceLineDynamicDataConfiguration * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -1938,6 +1947,9 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1982,6 +1994,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2217,6 +2230,9 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2261,6 +2277,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2467,6 +2484,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2524,6 +2542,9 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2568,6 +2589,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2661,6 +2683,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * TooltipOptions: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3026,6 +3049,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * ReferenceLines: [ * { @@ -3036,7 +3060,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3203,6 +3227,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3448,11 +3473,14 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * YAxis: "", * Category: "", * Size: "", + * Label: "", * }, * ScatterPlotUnaggregatedFieldWells: { // ScatterPlotUnaggregatedFieldWells * XAxis: "", * YAxis: "", * Size: "", + * Category: "", + * Label: "", * }, * }, * XAxisLabelOptions: "", @@ -3507,7 +3535,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3580,7 +3608,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -4111,6 +4139,12 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: "STRING_VALUE", * }, + * MappedDataSetParameters: [ // MappedDataSetParameters + * { // MappedDataSetParameter + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DecimalParameterDeclaration: { // DecimalParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4127,6 +4161,12 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("double"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * IntegerParameterDeclaration: { // IntegerParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4143,6 +4183,12 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("long"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DateTimeParameterDeclaration: { // DateTimeParameterDeclaration * Name: "STRING_VALUE", // required @@ -4163,6 +4209,12 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _ * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: new Date("TIMESTAMP"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * }, * ], diff --git a/clients/client-quicksight/src/commands/UpdateDataSetCommand.ts b/clients/client-quicksight/src/commands/UpdateDataSetCommand.ts index 39c9dfd9e932..cc33ae6fcc59 100644 --- a/clients/client-quicksight/src/commands/UpdateDataSetCommand.ts +++ b/clients/client-quicksight/src/commands/UpdateDataSetCommand.ts @@ -138,6 +138,24 @@ export interface UpdateDataSetCommandOutput extends UpdateDataSetResponse, __Met * "COLUMN_GEOGRAPHIC_ROLE" || "COLUMN_DESCRIPTION", * ], * }, + * OverrideDatasetParameterOperation: { // OverrideDatasetParameterOperation + * ParameterName: "STRING_VALUE", // required + * NewParameterName: "STRING_VALUE", + * NewDefaultValues: { // NewDefaultValues + * StringStaticValues: [ // StringDatasetParameterValueList + * "STRING_VALUE", + * ], + * DecimalStaticValues: [ // DecimalDatasetParameterValueList + * Number("double"), + * ], + * DateTimeStaticValues: [ // DateTimeDatasetParameterValueList + * new Date("TIMESTAMP"), + * ], + * IntegerStaticValues: [ // IntegerDatasetParameterValueList + * Number("long"), + * ], + * }, + * }, * }, * ], * Source: { // LogicalTableSource @@ -215,6 +233,51 @@ export interface UpdateDataSetCommandOutput extends UpdateDataSetResponse, __Met * DisableUseAsDirectQuerySource: true || false, * DisableUseAsImportedSource: true || false, * }, + * DatasetParameters: [ // DatasetParameterList + * { // DatasetParameter + * StringDatasetParameter: { // StringDatasetParameter + * Id: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * DefaultValues: { // StringDatasetParameterDefaultValues + * StaticValues: [ + * "STRING_VALUE", + * ], + * }, + * }, + * DecimalDatasetParameter: { // DecimalDatasetParameter + * Id: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * DefaultValues: { // DecimalDatasetParameterDefaultValues + * StaticValues: [ + * Number("double"), + * ], + * }, + * }, + * IntegerDatasetParameter: { // IntegerDatasetParameter + * Id: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * DefaultValues: { // IntegerDatasetParameterDefaultValues + * StaticValues: [ + * Number("long"), + * ], + * }, + * }, + * DateTimeDatasetParameter: { // DateTimeDatasetParameter + * Id: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * ValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required + * TimeGranularity: "YEAR" || "QUARTER" || "MONTH" || "WEEK" || "DAY" || "HOUR" || "MINUTE" || "SECOND" || "MILLISECOND", + * DefaultValues: { // DateTimeDatasetParameterDefaultValues + * StaticValues: [ + * new Date("TIMESTAMP"), + * ], + * }, + * }, + * }, + * ], * }; * const command = new UpdateDataSetCommand(input); * const response = await client.send(command); diff --git a/clients/client-quicksight/src/commands/UpdateIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/src/commands/UpdateIAMPolicyAssignmentCommand.ts index 2a6ac49b8874..ac0a916bf401 100644 --- a/clients/client-quicksight/src/commands/UpdateIAMPolicyAssignmentCommand.ts +++ b/clients/client-quicksight/src/commands/UpdateIAMPolicyAssignmentCommand.ts @@ -32,10 +32,9 @@ export interface UpdateIAMPolicyAssignmentCommandOutput extends UpdateIAMPolicyA /** * @public - *

    Updates an existing IAM policy assignment. This operation updates only the optional - * parameter or parameters that are specified in the request. - * This overwrites all of the users included in Identities. - *

    + *

    Updates an existing IAM policy assignment. This operation updates only + * the optional parameter or parameters that are specified in the request. This overwrites + * all of the users included in Identities.

    * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-quicksight/src/commands/UpdateIpRestrictionCommand.ts b/clients/client-quicksight/src/commands/UpdateIpRestrictionCommand.ts index 659fe9384536..23a766295880 100644 --- a/clients/client-quicksight/src/commands/UpdateIpRestrictionCommand.ts +++ b/clients/client-quicksight/src/commands/UpdateIpRestrictionCommand.ts @@ -32,7 +32,10 @@ export interface UpdateIpRestrictionCommandOutput extends UpdateIpRestrictionRes /** * @public - *

    Updates the content and status of IP rules. To use this operation, you need to provide the entire map of rules. You can use the DescribeIpRestriction operation to get the current rule map.

    + *

    Updates the content and status of IP rules. To use this operation, you + * must + * provide the entire map of rules. You can use the DescribeIpRestriction + * operation to get the current rule map.

    * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-quicksight/src/commands/UpdateTemplateCommand.ts b/clients/client-quicksight/src/commands/UpdateTemplateCommand.ts index 8d6a3c86b6b7..8fe066c7a8d8 100644 --- a/clients/client-quicksight/src/commands/UpdateTemplateCommand.ts +++ b/clients/client-quicksight/src/commands/UpdateTemplateCommand.ts @@ -993,6 +993,9 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ // CustomActionColumnList + * "", + * ], * }, * TargetVisualsConfiguration: { // FilterOperationTargetVisualsConfiguration * SameSheetTargetVisualConfiguration: { // SameSheetTargetVisualConfiguration @@ -1037,6 +1040,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1388,6 +1392,9 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1432,6 +1439,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -1800,6 +1808,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { // TooltipOptions * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -1833,7 +1842,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * }, * DynamicConfiguration: { // ReferenceLineDynamicDataConfiguration * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -1880,6 +1889,9 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -1924,6 +1936,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2159,6 +2172,9 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2203,6 +2219,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2409,6 +2426,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2466,6 +2484,9 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ + * "", + * ], * }, * TargetVisualsConfiguration: { * SameSheetTargetVisualConfiguration: { @@ -2510,6 +2531,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * SelectAllValueOptions: "ALL_VALUES", * SourceParameterName: "STRING_VALUE", * SourceField: "STRING_VALUE", + * SourceColumn: "", * }, * }, * ], @@ -2603,6 +2625,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * TooltipOptions: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -2968,6 +2991,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * ReferenceLines: [ * { @@ -2978,7 +3002,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3145,6 +3169,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * LabelFontConfiguration: "", * LabelColor: "STRING_VALUE", * Overlap: "DISABLE_OVERLAP" || "ENABLE_OVERLAP", + * TotalsVisibility: "HIDDEN" || "VISIBLE", * }, * Tooltip: { * TooltipVisibility: "HIDDEN" || "VISIBLE", @@ -3390,11 +3415,14 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * YAxis: "", * Category: "", * Size: "", + * Label: "", * }, * ScatterPlotUnaggregatedFieldWells: { // ScatterPlotUnaggregatedFieldWells * XAxis: "", * YAxis: "", * Size: "", + * Category: "", + * Label: "", * }, * }, * XAxisLabelOptions: "", @@ -3449,7 +3477,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -3522,7 +3550,7 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * }, * DynamicConfiguration: { * Column: "", // required - * MeasureAggregationFunction: "", // required + * MeasureAggregationFunction: "", * Calculation: "", // required * }, * AxisBinding: "PRIMARY_YAXIS" || "SECONDARY_YAXIS", @@ -4053,6 +4081,12 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: "STRING_VALUE", * }, + * MappedDataSetParameters: [ // MappedDataSetParameters + * { // MappedDataSetParameter + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DecimalParameterDeclaration: { // DecimalParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4069,6 +4103,12 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("double"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * IntegerParameterDeclaration: { // IntegerParameterDeclaration * ParameterValueType: "MULTI_VALUED" || "SINGLE_VALUED", // required @@ -4085,6 +4125,12 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: Number("long"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * DateTimeParameterDeclaration: { // DateTimeParameterDeclaration * Name: "STRING_VALUE", // required @@ -4105,6 +4151,12 @@ export interface UpdateTemplateCommandOutput extends UpdateTemplateResponse, __M * ValueWhenUnsetOption: "RECOMMENDED_VALUE" || "NULL", * CustomValue: new Date("TIMESTAMP"), * }, + * MappedDataSetParameters: [ + * { + * DataSetIdentifier: "STRING_VALUE", // required + * DataSetParameterName: "STRING_VALUE", // required + * }, + * ], * }, * }, * ], diff --git a/clients/client-quicksight/src/commands/UpdateTopicCommand.ts b/clients/client-quicksight/src/commands/UpdateTopicCommand.ts new file mode 100644 index 000000000000..e64804f31726 --- /dev/null +++ b/clients/client-quicksight/src/commands/UpdateTopicCommand.ts @@ -0,0 +1,413 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { UpdateTopicRequest, UpdateTopicRequestFilterSensitiveLog, UpdateTopicResponse } from "../models/models_3"; +import { de_UpdateTopicCommand, se_UpdateTopicCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link UpdateTopicCommand}. + */ +export interface UpdateTopicCommandInput extends UpdateTopicRequest {} +/** + * @public + * + * The output of {@link UpdateTopicCommand}. + */ +export interface UpdateTopicCommandOutput extends UpdateTopicResponse, __MetadataBearer {} + +/** + * @public + *

    Updates a topic.

    + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, UpdateTopicCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, UpdateTopicCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // UpdateTopicRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * Topic: { // TopicDetails + * Name: "STRING_VALUE", + * Description: "STRING_VALUE", + * DataSets: [ // Datasets + * { // DatasetMetadata + * DatasetArn: "STRING_VALUE", // required + * DatasetName: "STRING_VALUE", + * DatasetDescription: "STRING_VALUE", + * DataAggregation: { // DataAggregation + * DatasetRowDateGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * DefaultDateColumnName: "STRING_VALUE", + * }, + * Filters: [ // TopicFilters + * { // TopicFilter + * FilterDescription: "STRING_VALUE", + * FilterClass: "ENFORCED_VALUE_FILTER" || "CONDITIONAL_VALUE_FILTER" || "NAMED_VALUE_FILTER", + * FilterName: "STRING_VALUE", // required + * FilterSynonyms: [ // Synonyms + * "STRING_VALUE", + * ], + * OperandFieldName: "STRING_VALUE", // required + * FilterType: "CATEGORY_FILTER" || "NUMERIC_EQUALITY_FILTER" || "NUMERIC_RANGE_FILTER" || "DATE_RANGE_FILTER" || "RELATIVE_DATE_FILTER", + * CategoryFilter: { // TopicCategoryFilter + * CategoryFilterFunction: "EXACT" || "CONTAINS", + * CategoryFilterType: "CUSTOM_FILTER" || "CUSTOM_FILTER_LIST" || "FILTER_LIST", + * Constant: { // TopicCategoryFilterConstant + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * SingularConstant: "STRING_VALUE", + * CollectiveConstant: { // CollectiveConstant + * ValueList: [ // StringList + * "STRING_VALUE", + * ], + * }, + * }, + * Inverse: true || false, + * }, + * NumericEqualityFilter: { // TopicNumericEqualityFilter + * Constant: { // TopicSingularFilterConstant + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * SingularConstant: "STRING_VALUE", + * }, + * Aggregation: "NO_AGGREGATION" || "SUM" || "AVERAGE" || "COUNT" || "DISTINCT_COUNT" || "MAX" || "MEDIAN" || "MIN" || "STDEV" || "STDEVP" || "VAR" || "VARP", + * }, + * NumericRangeFilter: { // TopicNumericRangeFilter + * Inclusive: true || false, + * Constant: { // TopicRangeFilterConstant + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * RangeConstant: { // RangeConstant + * Minimum: "STRING_VALUE", + * Maximum: "STRING_VALUE", + * }, + * }, + * Aggregation: "NO_AGGREGATION" || "SUM" || "AVERAGE" || "COUNT" || "DISTINCT_COUNT" || "MAX" || "MEDIAN" || "MIN" || "STDEV" || "STDEVP" || "VAR" || "VARP", + * }, + * DateRangeFilter: { // TopicDateRangeFilter + * Inclusive: true || false, + * Constant: { + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * RangeConstant: { + * Minimum: "STRING_VALUE", + * Maximum: "STRING_VALUE", + * }, + * }, + * }, + * RelativeDateFilter: { // TopicRelativeDateFilter + * TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * RelativeDateFilterFunction: "PREVIOUS" || "THIS" || "LAST" || "NEXT" || "NOW", + * Constant: { + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * SingularConstant: "STRING_VALUE", + * }, + * }, + * }, + * ], + * Columns: [ // TopicColumns + * { // TopicColumn + * ColumnName: "STRING_VALUE", // required + * ColumnFriendlyName: "STRING_VALUE", + * ColumnDescription: "STRING_VALUE", + * ColumnSynonyms: [ + * "STRING_VALUE", + * ], + * ColumnDataRole: "DIMENSION" || "MEASURE", + * Aggregation: "SUM" || "MAX" || "MIN" || "COUNT" || "DISTINCT_COUNT" || "AVERAGE", + * IsIncludedInTopic: true || false, + * DisableIndexing: true || false, + * ComparativeOrder: { // ComparativeOrder + * UseOrdering: "GREATER_IS_BETTER" || "LESSER_IS_BETTER" || "SPECIFIED", + * SpecifedOrder: [ + * "STRING_VALUE", + * ], + * TreatUndefinedSpecifiedValues: "LEAST" || "MOST", + * }, + * SemanticType: { // SemanticType + * TypeName: "STRING_VALUE", + * SubTypeName: "STRING_VALUE", + * TypeParameters: { // TypeParameters + * "": "STRING_VALUE", + * }, + * TruthyCellValue: "STRING_VALUE", + * TruthyCellValueSynonyms: [ // SensitiveStringList + * "STRING_VALUE", + * ], + * FalseyCellValue: "STRING_VALUE", + * FalseyCellValueSynonyms: [ + * "STRING_VALUE", + * ], + * }, + * TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * AllowedAggregations: [ // AuthorSpecifiedAggregations + * "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * ], + * NotAllowedAggregations: [ + * "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * ], + * DefaultFormatting: { // DefaultFormatting + * DisplayFormat: "AUTO" || "PERCENT" || "CURRENCY" || "NUMBER" || "DATE" || "STRING", + * DisplayFormatOptions: { // DisplayFormatOptions + * UseBlankCellFormat: true || false, + * BlankCellFormat: "STRING_VALUE", + * DateFormat: "STRING_VALUE", + * DecimalSeparator: "COMMA" || "DOT", + * GroupingSeparator: "STRING_VALUE", + * UseGrouping: true || false, + * FractionDigits: Number("int"), + * Prefix: "STRING_VALUE", + * Suffix: "STRING_VALUE", + * UnitScaler: "NONE" || "AUTO" || "THOUSANDS" || "MILLIONS" || "BILLIONS" || "TRILLIONS", + * NegativeFormat: { // NegativeFormat + * Prefix: "STRING_VALUE", + * Suffix: "STRING_VALUE", + * }, + * CurrencySymbol: "STRING_VALUE", + * }, + * }, + * NeverAggregateInFilter: true || false, + * CellValueSynonyms: [ // CellValueSynonyms + * { // CellValueSynonym + * CellValue: "STRING_VALUE", + * Synonyms: "", + * }, + * ], + * }, + * ], + * CalculatedFields: [ // TopicCalculatedFields + * { // TopicCalculatedField + * CalculatedFieldName: "STRING_VALUE", // required + * CalculatedFieldDescription: "STRING_VALUE", + * Expression: "STRING_VALUE", // required + * CalculatedFieldSynonyms: [ + * "STRING_VALUE", + * ], + * IsIncludedInTopic: true || false, + * DisableIndexing: true || false, + * ColumnDataRole: "DIMENSION" || "MEASURE", + * TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * DefaultFormatting: { + * DisplayFormat: "AUTO" || "PERCENT" || "CURRENCY" || "NUMBER" || "DATE" || "STRING", + * DisplayFormatOptions: { + * UseBlankCellFormat: true || false, + * BlankCellFormat: "STRING_VALUE", + * DateFormat: "STRING_VALUE", + * DecimalSeparator: "COMMA" || "DOT", + * GroupingSeparator: "STRING_VALUE", + * UseGrouping: true || false, + * FractionDigits: Number("int"), + * Prefix: "STRING_VALUE", + * Suffix: "STRING_VALUE", + * UnitScaler: "NONE" || "AUTO" || "THOUSANDS" || "MILLIONS" || "BILLIONS" || "TRILLIONS", + * NegativeFormat: { + * Prefix: "STRING_VALUE", + * Suffix: "STRING_VALUE", + * }, + * CurrencySymbol: "STRING_VALUE", + * }, + * }, + * Aggregation: "SUM" || "MAX" || "MIN" || "COUNT" || "DISTINCT_COUNT" || "AVERAGE", + * ComparativeOrder: { + * UseOrdering: "GREATER_IS_BETTER" || "LESSER_IS_BETTER" || "SPECIFIED", + * SpecifedOrder: "", + * TreatUndefinedSpecifiedValues: "LEAST" || "MOST", + * }, + * SemanticType: { + * TypeName: "STRING_VALUE", + * SubTypeName: "STRING_VALUE", + * TypeParameters: { + * "": "STRING_VALUE", + * }, + * TruthyCellValue: "STRING_VALUE", + * TruthyCellValueSynonyms: [ + * "STRING_VALUE", + * ], + * FalseyCellValue: "STRING_VALUE", + * FalseyCellValueSynonyms: [ + * "STRING_VALUE", + * ], + * }, + * AllowedAggregations: [ + * "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * ], + * NotAllowedAggregations: [ + * "COUNT" || "DISTINCT_COUNT" || "MIN" || "MAX" || "MEDIAN" || "SUM" || "AVERAGE" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE", + * ], + * NeverAggregateInFilter: true || false, + * CellValueSynonyms: [ + * { + * CellValue: "STRING_VALUE", + * Synonyms: "", + * }, + * ], + * }, + * ], + * NamedEntities: [ // TopicNamedEntities + * { // TopicNamedEntity + * EntityName: "STRING_VALUE", // required + * EntityDescription: "STRING_VALUE", + * EntitySynonyms: [ + * "STRING_VALUE", + * ], + * SemanticEntityType: { // SemanticEntityType + * TypeName: "STRING_VALUE", + * SubTypeName: "STRING_VALUE", + * TypeParameters: { + * "": "STRING_VALUE", + * }, + * }, + * Definition: [ // NamedEntityDefinitions + * { // NamedEntityDefinition + * FieldName: "STRING_VALUE", + * PropertyName: "STRING_VALUE", + * PropertyRole: "PRIMARY" || "ID", + * PropertyUsage: "INHERIT" || "DIMENSION" || "MEASURE", + * Metric: { // NamedEntityDefinitionMetric + * Aggregation: "SUM" || "MIN" || "MAX" || "COUNT" || "AVERAGE" || "DISTINCT_COUNT" || "STDEV" || "STDEVP" || "VAR" || "VARP" || "PERCENTILE" || "MEDIAN" || "CUSTOM", + * AggregationFunctionParameters: { // AggregationFunctionParameters + * "": "STRING_VALUE", + * }, + * }, + * }, + * ], + * }, + * ], + * }, + * ], + * }, + * }; + * const command = new UpdateTopicCommand(input); + * const response = await client.send(command); + * // { // UpdateTopicResponse + * // TopicId: "STRING_VALUE", + * // Arn: "STRING_VALUE", + * // RefreshArn: "STRING_VALUE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param UpdateTopicCommandInput - {@link UpdateTopicCommandInput} + * @returns {@link UpdateTopicCommandOutput} + * @see {@link UpdateTopicCommandInput} for command's `input` shape. + * @see {@link UpdateTopicCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

    You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

    + * + * @throws {@link ConflictException} (client fault) + *

    Updating or deleting a resource can cause an inconsistent state.

    + * + * @throws {@link InternalFailureException} (server fault) + *

    An internal failure occurred.

    + * + * @throws {@link InvalidParameterValueException} (client fault) + *

    One or more parameters has a value that isn't valid.

    + * + * @throws {@link LimitExceededException} (client fault) + *

    A limit is exceeded.

    + * + * @throws {@link ResourceExistsException} (client fault) + *

    The resource specified already exists.

    + * + * @throws {@link ResourceNotFoundException} (client fault) + *

    One or more resources can't be found.

    + * + * @throws {@link ThrottlingException} (client fault) + *

    Access is throttled.

    + * + * @throws {@link QuickSightServiceException} + *

    Base exception class for all service exceptions from QuickSight service.

    + * + */ +export class UpdateTopicCommand extends $Command< + UpdateTopicCommandInput, + UpdateTopicCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: UpdateTopicCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, UpdateTopicCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "UpdateTopicCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: UpdateTopicRequestFilterSensitiveLog, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: UpdateTopicCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_UpdateTopicCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_UpdateTopicCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/UpdateTopicPermissionsCommand.ts b/clients/client-quicksight/src/commands/UpdateTopicPermissionsCommand.ts new file mode 100644 index 000000000000..bb757d51d9d2 --- /dev/null +++ b/clients/client-quicksight/src/commands/UpdateTopicPermissionsCommand.ts @@ -0,0 +1,196 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { UpdateTopicPermissionsRequest, UpdateTopicPermissionsResponse } from "../models/models_3"; +import { de_UpdateTopicPermissionsCommand, se_UpdateTopicPermissionsCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link UpdateTopicPermissionsCommand}. + */ +export interface UpdateTopicPermissionsCommandInput extends UpdateTopicPermissionsRequest {} +/** + * @public + * + * The output of {@link UpdateTopicPermissionsCommand}. + */ +export interface UpdateTopicPermissionsCommandOutput extends UpdateTopicPermissionsResponse, __MetadataBearer {} + +/** + * @public + *

    Updates the permissions of a topic.

    + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, UpdateTopicPermissionsCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, UpdateTopicPermissionsCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // UpdateTopicPermissionsRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * GrantPermissions: [ // UpdateResourcePermissionList + * { // ResourcePermission + * Principal: "STRING_VALUE", // required + * Actions: [ // ActionList // required + * "STRING_VALUE", + * ], + * }, + * ], + * RevokePermissions: [ + * { + * Principal: "STRING_VALUE", // required + * Actions: [ // required + * "STRING_VALUE", + * ], + * }, + * ], + * }; + * const command = new UpdateTopicPermissionsCommand(input); + * const response = await client.send(command); + * // { // UpdateTopicPermissionsResponse + * // TopicId: "STRING_VALUE", + * // TopicArn: "STRING_VALUE", + * // Permissions: [ // ResourcePermissionList + * // { // ResourcePermission + * // Principal: "STRING_VALUE", // required + * // Actions: [ // ActionList // required + * // "STRING_VALUE", + * // ], + * // }, + * // ], + * // Status: Number("int"), + * // RequestId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param UpdateTopicPermissionsCommandInput - {@link UpdateTopicPermissionsCommandInput} + * @returns {@link UpdateTopicPermissionsCommandOutput} + * @see {@link UpdateTopicPermissionsCommandInput} for command's `input` shape. + * @see {@link UpdateTopicPermissionsCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

    You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

    + * + * @throws {@link ConflictException} (client fault) + *

    Updating or deleting a resource can cause an inconsistent state.

    + * + * @throws {@link InternalFailureException} (server fault) + *

    An internal failure occurred.

    + * + * @throws {@link InvalidParameterValueException} (client fault) + *

    One or more parameters has a value that isn't valid.

    + * + * @throws {@link LimitExceededException} (client fault) + *

    A limit is exceeded.

    + * + * @throws {@link ResourceNotFoundException} (client fault) + *

    One or more resources can't be found.

    + * + * @throws {@link ThrottlingException} (client fault) + *

    Access is throttled.

    + * + * @throws {@link UnsupportedUserEditionException} (client fault) + *

    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.

    + * + * @throws {@link QuickSightServiceException} + *

    Base exception class for all service exceptions from QuickSight service.

    + * + */ +export class UpdateTopicPermissionsCommand extends $Command< + UpdateTopicPermissionsCommandInput, + UpdateTopicPermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: UpdateTopicPermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateTopicPermissionsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "UpdateTopicPermissionsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: UpdateTopicPermissionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_UpdateTopicPermissionsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_UpdateTopicPermissionsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/UpdateTopicRefreshScheduleCommand.ts b/clients/client-quicksight/src/commands/UpdateTopicRefreshScheduleCommand.ts new file mode 100644 index 000000000000..b5eea95f87f3 --- /dev/null +++ b/clients/client-quicksight/src/commands/UpdateTopicRefreshScheduleCommand.ts @@ -0,0 +1,182 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { UpdateTopicRefreshScheduleRequest, UpdateTopicRefreshScheduleResponse } from "../models/models_3"; +import { de_UpdateTopicRefreshScheduleCommand, se_UpdateTopicRefreshScheduleCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link UpdateTopicRefreshScheduleCommand}. + */ +export interface UpdateTopicRefreshScheduleCommandInput extends UpdateTopicRefreshScheduleRequest {} +/** + * @public + * + * The output of {@link UpdateTopicRefreshScheduleCommand}. + */ +export interface UpdateTopicRefreshScheduleCommandOutput extends UpdateTopicRefreshScheduleResponse, __MetadataBearer {} + +/** + * @public + *

    Updates a topic refresh schedule.

    + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, UpdateTopicRefreshScheduleCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, UpdateTopicRefreshScheduleCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // UpdateTopicRefreshScheduleRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * DatasetId: "STRING_VALUE", // required + * RefreshSchedule: { // TopicRefreshSchedule + * IsEnabled: true || false, // required + * BasedOnSpiceSchedule: true || false, // required + * StartingAt: new Date("TIMESTAMP"), + * Timezone: "STRING_VALUE", + * RepeatAt: "STRING_VALUE", + * TopicScheduleType: "HOURLY" || "DAILY" || "WEEKLY" || "MONTHLY", + * }, + * }; + * const command = new UpdateTopicRefreshScheduleCommand(input); + * const response = await client.send(command); + * // { // UpdateTopicRefreshScheduleResponse + * // TopicId: "STRING_VALUE", + * // TopicArn: "STRING_VALUE", + * // DatasetArn: "STRING_VALUE", + * // Status: Number("int"), + * // RequestId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param UpdateTopicRefreshScheduleCommandInput - {@link UpdateTopicRefreshScheduleCommandInput} + * @returns {@link UpdateTopicRefreshScheduleCommandOutput} + * @see {@link UpdateTopicRefreshScheduleCommandInput} for command's `input` shape. + * @see {@link UpdateTopicRefreshScheduleCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

    You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

    + * + * @throws {@link ConflictException} (client fault) + *

    Updating or deleting a resource can cause an inconsistent state.

    + * + * @throws {@link InternalFailureException} (server fault) + *

    An internal failure occurred.

    + * + * @throws {@link InvalidParameterValueException} (client fault) + *

    One or more parameters has a value that isn't valid.

    + * + * @throws {@link LimitExceededException} (client fault) + *

    A limit is exceeded.

    + * + * @throws {@link ResourceExistsException} (client fault) + *

    The resource specified already exists.

    + * + * @throws {@link ResourceNotFoundException} (client fault) + *

    One or more resources can't be found.

    + * + * @throws {@link ThrottlingException} (client fault) + *

    Access is throttled.

    + * + * @throws {@link QuickSightServiceException} + *

    Base exception class for all service exceptions from QuickSight service.

    + * + */ +export class UpdateTopicRefreshScheduleCommand extends $Command< + UpdateTopicRefreshScheduleCommandInput, + UpdateTopicRefreshScheduleCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: UpdateTopicRefreshScheduleCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateTopicRefreshScheduleCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "UpdateTopicRefreshScheduleCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: UpdateTopicRefreshScheduleCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_UpdateTopicRefreshScheduleCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_UpdateTopicRefreshScheduleCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/UpdateVPCConnectionCommand.ts b/clients/client-quicksight/src/commands/UpdateVPCConnectionCommand.ts new file mode 100644 index 000000000000..1f891be48288 --- /dev/null +++ b/clients/client-quicksight/src/commands/UpdateVPCConnectionCommand.ts @@ -0,0 +1,185 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { UpdateVPCConnectionRequest, UpdateVPCConnectionResponse } from "../models/models_3"; +import { de_UpdateVPCConnectionCommand, se_UpdateVPCConnectionCommand } from "../protocols/Aws_restJson1"; +import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient"; + +/** + * @public + * + * The input for {@link UpdateVPCConnectionCommand}. + */ +export interface UpdateVPCConnectionCommandInput extends UpdateVPCConnectionRequest {} +/** + * @public + * + * The output of {@link UpdateVPCConnectionCommand}. + */ +export interface UpdateVPCConnectionCommandOutput extends UpdateVPCConnectionResponse, __MetadataBearer {} + +/** + * @public + *

    Updates a VPC connection.

    + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, UpdateVPCConnectionCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, UpdateVPCConnectionCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // UpdateVPCConnectionRequest + * AwsAccountId: "STRING_VALUE", // required + * VPCConnectionId: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * SubnetIds: [ // SubnetIdList // required + * "STRING_VALUE", + * ], + * SecurityGroupIds: [ // SecurityGroupIdList // required + * "STRING_VALUE", + * ], + * DnsResolvers: [ // DnsResolverList + * "STRING_VALUE", + * ], + * RoleArn: "STRING_VALUE", // required + * }; + * const command = new UpdateVPCConnectionCommand(input); + * const response = await client.send(command); + * // { // UpdateVPCConnectionResponse + * // Arn: "STRING_VALUE", + * // VPCConnectionId: "STRING_VALUE", + * // UpdateStatus: "CREATION_IN_PROGRESS" || "CREATION_SUCCESSFUL" || "CREATION_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_SUCCESSFUL" || "UPDATE_FAILED" || "DELETION_IN_PROGRESS" || "DELETION_FAILED" || "DELETED", + * // AvailabilityStatus: "AVAILABLE" || "UNAVAILABLE" || "PARTIALLY_AVAILABLE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param UpdateVPCConnectionCommandInput - {@link UpdateVPCConnectionCommandInput} + * @returns {@link UpdateVPCConnectionCommandOutput} + * @see {@link UpdateVPCConnectionCommandInput} for command's `input` shape. + * @see {@link UpdateVPCConnectionCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

    You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.

    + * + * @throws {@link ConflictException} (client fault) + *

    Updating or deleting a resource can cause an inconsistent state.

    + * + * @throws {@link InternalFailureException} (server fault) + *

    An internal failure occurred.

    + * + * @throws {@link InvalidParameterValueException} (client fault) + *

    One or more parameters has a value that isn't valid.

    + * + * @throws {@link LimitExceededException} (client fault) + *

    A limit is exceeded.

    + * + * @throws {@link ResourceNotFoundException} (client fault) + *

    One or more resources can't be found.

    + * + * @throws {@link ThrottlingException} (client fault) + *

    Access is throttled.

    + * + * @throws {@link UnsupportedUserEditionException} (client fault) + *

    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.

    + * + * @throws {@link QuickSightServiceException} + *

    Base exception class for all service exceptions from QuickSight service.

    + * + */ +export class UpdateVPCConnectionCommand extends $Command< + UpdateVPCConnectionCommandInput, + UpdateVPCConnectionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: UpdateVPCConnectionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, UpdateVPCConnectionCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "QuickSightClient"; + const commandName = "UpdateVPCConnectionCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: UpdateVPCConnectionCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_UpdateVPCConnectionCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_UpdateVPCConnectionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/src/commands/index.ts b/clients/client-quicksight/src/commands/index.ts index eb46d9e605b5..d212a906fe8c 100644 --- a/clients/client-quicksight/src/commands/index.ts +++ b/clients/client-quicksight/src/commands/index.ts @@ -18,6 +18,9 @@ export * from "./CreateTemplateAliasCommand"; export * from "./CreateTemplateCommand"; export * from "./CreateThemeAliasCommand"; export * from "./CreateThemeCommand"; +export * from "./CreateTopicCommand"; +export * from "./CreateTopicRefreshScheduleCommand"; +export * from "./CreateVPCConnectionCommand"; export * from "./DeleteAccountCustomizationCommand"; export * from "./DeleteAccountSubscriptionCommand"; export * from "./DeleteAnalysisCommand"; @@ -36,8 +39,11 @@ export * from "./DeleteTemplateAliasCommand"; export * from "./DeleteTemplateCommand"; export * from "./DeleteThemeAliasCommand"; export * from "./DeleteThemeCommand"; +export * from "./DeleteTopicCommand"; +export * from "./DeleteTopicRefreshScheduleCommand"; export * from "./DeleteUserByPrincipalIdCommand"; export * from "./DeleteUserCommand"; +export * from "./DeleteVPCConnectionCommand"; export * from "./DescribeAccountCustomizationCommand"; export * from "./DescribeAccountSettingsCommand"; export * from "./DescribeAccountSubscriptionCommand"; @@ -69,7 +75,12 @@ export * from "./DescribeTemplatePermissionsCommand"; export * from "./DescribeThemeAliasCommand"; export * from "./DescribeThemeCommand"; export * from "./DescribeThemePermissionsCommand"; +export * from "./DescribeTopicCommand"; +export * from "./DescribeTopicPermissionsCommand"; +export * from "./DescribeTopicRefreshCommand"; +export * from "./DescribeTopicRefreshScheduleCommand"; export * from "./DescribeUserCommand"; +export * from "./DescribeVPCConnectionCommand"; export * from "./GenerateEmbedUrlForAnonymousUserCommand"; export * from "./GenerateEmbedUrlForRegisteredUserCommand"; export * from "./GetDashboardEmbedUrlCommand"; @@ -95,8 +106,11 @@ export * from "./ListTemplatesCommand"; export * from "./ListThemeAliasesCommand"; export * from "./ListThemeVersionsCommand"; export * from "./ListThemesCommand"; +export * from "./ListTopicRefreshSchedulesCommand"; +export * from "./ListTopicsCommand"; export * from "./ListUserGroupsCommand"; export * from "./ListUsersCommand"; +export * from "./ListVPCConnectionsCommand"; export * from "./PutDataSetRefreshPropertiesCommand"; export * from "./RegisterUserCommand"; export * from "./RestoreAnalysisCommand"; @@ -132,4 +146,8 @@ export * from "./UpdateTemplatePermissionsCommand"; export * from "./UpdateThemeAliasCommand"; export * from "./UpdateThemeCommand"; export * from "./UpdateThemePermissionsCommand"; +export * from "./UpdateTopicCommand"; +export * from "./UpdateTopicPermissionsCommand"; +export * from "./UpdateTopicRefreshScheduleCommand"; export * from "./UpdateUserCommand"; +export * from "./UpdateVPCConnectionCommand"; diff --git a/clients/client-quicksight/src/models/models_0.ts b/clients/client-quicksight/src/models/models_0.ts index 9d882dc32ba2..7982e2099ac7 100644 --- a/clients/client-quicksight/src/models/models_0.ts +++ b/clients/client-quicksight/src/models/models_0.ts @@ -2316,6 +2316,22 @@ export interface DateTimeDefaultValues { RollingDate?: RollingDateConfiguration; } +/** + * @public + *

    A dataset parameter that is mapped to an analysis parameter.

    + */ +export interface MappedDataSetParameter { + /** + *

    A unique name that identifies a dataset within the analysis or dashboard.

    + */ + DataSetIdentifier: string | undefined; + + /** + *

    The name of the dataset parameter.

    + */ + DataSetParameterName: string | undefined; +} + /** * @public * @enum @@ -2380,6 +2396,11 @@ export interface DateTimeParameterDeclaration { *

    The configuration that defines the default value of a DateTime parameter when a value has not been set.

    */ ValueWhenUnset?: DateTimeValueWhenUnsetConfiguration; + + /** + *

    A list of dataset parameters that are mapped to an analysis parameter.

    + */ + MappedDataSetParameters?: MappedDataSetParameter[]; } /** @@ -2462,6 +2483,11 @@ export interface DecimalParameterDeclaration { *

    The configuration that defines the default value of a Decimal parameter when a value has not been set.

    */ ValueWhenUnset?: DecimalValueWhenUnsetConfiguration; + + /** + *

    A list of dataset parameters that are mapped to an analysis parameter.

    + */ + MappedDataSetParameters?: MappedDataSetParameter[]; } /** @@ -2531,6 +2557,11 @@ export interface IntegerParameterDeclaration { *

    A parameter declaration for the Integer data type.

    */ ValueWhenUnset?: IntegerValueWhenUnsetConfiguration; + + /** + *

    A list of dataset parameters that are mapped to an analysis parameter.

    + */ + MappedDataSetParameters?: MappedDataSetParameter[]; } /** @@ -2599,6 +2630,11 @@ export interface StringParameterDeclaration { *

    The configuration that defines the default value of a String parameter when a value has not been set.

    */ ValueWhenUnset?: StringValueWhenUnsetConfiguration; + + /** + *

    A list of dataset parameters that are mapped to an analysis parameter.

    + */ + MappedDataSetParameters?: MappedDataSetParameter[]; } /** @@ -4074,6 +4110,11 @@ export interface FilterOperationSelectedFieldsConfiguration { *
*/ SelectedFieldOptions?: SelectedFieldOptions | string; + + /** + *

The selected columns of a dataset.

+ */ + SelectedColumns?: ColumnIdentifier[]; } /** @@ -4246,6 +4287,11 @@ export interface DestinationParameterValueConfiguration { *

The source field ID of the destination parameter.

*/ SourceField?: string; + + /** + *

A column of a data set.

+ */ + SourceColumn?: ColumnIdentifier; } /** @@ -4929,6 +4975,11 @@ export interface DataLabelOptions { *

Determines whether overlap is enabled or disabled for the data labels.

*/ Overlap?: DataLabelOverlap | string; + + /** + *

Determines the visibility of the total.

+ */ + TotalsVisibility?: Visibility | string; } /** @@ -5353,7 +5404,7 @@ export interface ReferenceLineDynamicDataConfiguration { /** *

The aggregation function that is used in the dynamic data.

*/ - MeasureAggregationFunction: AggregationFunction | undefined; + MeasureAggregationFunction?: AggregationFunction; /** *

The calculation that is used in the dynamic data.

@@ -6770,108 +6821,6 @@ export interface ComboChartSortConfiguration { ColorItemsLimit?: ItemsLimitConfiguration; } -/** - * @public - *

The configuration of a ComboChartVisual.

- */ -export interface ComboChartConfiguration { - /** - *

The field wells of the visual.

- */ - FieldWells?: ComboChartFieldWells; - - /** - *

The sort configuration of a ComboChartVisual.

- */ - SortConfiguration?: ComboChartSortConfiguration; - - /** - *

Determines the bar arrangement in a combo chart. The following are valid values in this structure:

- *
    - *
  • - *

    - * CLUSTERED: For clustered bar combo charts.

    - *
  • - *
  • - *

    - * STACKED: For stacked bar combo charts.

    - *
  • - *
  • - *

    - * STACKED_PERCENT: Do not use. If you use this value, the operation returns a validation error.

    - *
  • - *
- */ - BarsArrangement?: BarsArrangement | string; - - /** - *

The category axis of a combo chart.

- */ - CategoryAxis?: AxisDisplayOptions; - - /** - *

The label options (label text, label visibility, and sort icon visibility) of a combo chart category (group/color) field well.

- */ - CategoryLabelOptions?: ChartAxisLabelOptions; - - /** - *

The label display options (grid line, range, scale, and axis step) of a combo chart's primary y-axis (bar) field well.

- */ - PrimaryYAxisDisplayOptions?: AxisDisplayOptions; - - /** - *

The label options (label text, label visibility, and sort icon visibility) of a combo chart's primary y-axis (bar) field well.

- */ - PrimaryYAxisLabelOptions?: ChartAxisLabelOptions; - - /** - *

The label display options (grid line, range, scale, axis step) of a combo chart's secondary y-axis (line) field well.

- */ - SecondaryYAxisDisplayOptions?: AxisDisplayOptions; - - /** - *

The label options (label text, label visibility, and sort icon visibility) of a combo chart's secondary y-axis(line) field well.

- */ - SecondaryYAxisLabelOptions?: ChartAxisLabelOptions; - - /** - *

The label options (label text, label visibility, and sort icon visibility) of a combo chart's color field well.

- */ - ColorLabelOptions?: ChartAxisLabelOptions; - - /** - *

The legend display setup of the visual.

- */ - Legend?: LegendOptions; - - /** - *

The options that determine if visual data labels are displayed.

- *

The data label options for a bar in a combo chart.

- */ - BarDataLabels?: DataLabelOptions; - - /** - *

The options that determine if visual data labels are displayed.

- *

The data label options for a line in a combo chart.

- */ - LineDataLabels?: DataLabelOptions; - - /** - *

The legend display setup of the visual.

- */ - Tooltip?: TooltipOptions; - - /** - *

The reference line setup of the visual.

- */ - ReferenceLines?: ReferenceLine[]; - - /** - *

The palette (chart color) display setup of the visual.

- */ - VisualPalette?: VisualPalette; -} - /** * @internal */ @@ -7604,16 +7553,3 @@ export const ComboChartAggregatedFieldWellsFilterSensitiveLog = (obj: ComboChart export const ComboChartFieldWellsFilterSensitiveLog = (obj: ComboChartFieldWells): any => ({ ...obj, }); - -/** - * @internal - */ -export const ComboChartConfigurationFilterSensitiveLog = (obj: ComboChartConfiguration): any => ({ - ...obj, - ...(obj.BarDataLabels && { BarDataLabels: DataLabelOptionsFilterSensitiveLog(obj.BarDataLabels) }), - ...(obj.LineDataLabels && { LineDataLabels: DataLabelOptionsFilterSensitiveLog(obj.LineDataLabels) }), - ...(obj.ReferenceLines && { - ReferenceLines: obj.ReferenceLines.map((item) => ReferenceLineFilterSensitiveLog(item)), - }), - ...(obj.VisualPalette && { VisualPalette: VisualPaletteFilterSensitiveLog(obj.VisualPalette) }), -}); diff --git a/clients/client-quicksight/src/models/models_1.ts b/clients/client-quicksight/src/models/models_1.ts index a72c5b657f9d..a458661331e0 100644 --- a/clients/client-quicksight/src/models/models_1.ts +++ b/clients/client-quicksight/src/models/models_1.ts @@ -2,11 +2,11 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@aws-sdk/smithy-client"; import { - AccountCustomization, AnalysisDefaults, AxisBinding, AxisDisplayOptions, BarChartVisual, + BarsArrangement, BoxPlotVisual, CalculatedField, CalculatedFieldFilterSensitiveLog, @@ -16,7 +16,8 @@ import { ColumnHierarchy, ColumnIdentifier, ColumnSort, - ComboChartConfiguration, + ComboChartFieldWells, + ComboChartSortConfiguration, ContributionAnalysisDefault, DataLabelOptions, DataLabelOptionsFilterSensitiveLog, @@ -25,7 +26,6 @@ import { DataPathValueFilterSensitiveLog, DataSetIdentifierDeclaration, DimensionField, - Edition, FieldSort, FieldSortOptions, FilterControl, @@ -68,6 +68,108 @@ import { } from "./models_0"; import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException"; +/** + * @public + *

The configuration of a ComboChartVisual.

+ */ +export interface ComboChartConfiguration { + /** + *

The field wells of the visual.

+ */ + FieldWells?: ComboChartFieldWells; + + /** + *

The sort configuration of a ComboChartVisual.

+ */ + SortConfiguration?: ComboChartSortConfiguration; + + /** + *

Determines the bar arrangement in a combo chart. The following are valid values in this structure:

+ *
    + *
  • + *

    + * CLUSTERED: For clustered bar combo charts.

    + *
  • + *
  • + *

    + * STACKED: For stacked bar combo charts.

    + *
  • + *
  • + *

    + * STACKED_PERCENT: Do not use. If you use this value, the operation returns a validation error.

    + *
  • + *
+ */ + BarsArrangement?: BarsArrangement | string; + + /** + *

The category axis of a combo chart.

+ */ + CategoryAxis?: AxisDisplayOptions; + + /** + *

The label options (label text, label visibility, and sort icon visibility) of a combo chart category (group/color) field well.

+ */ + CategoryLabelOptions?: ChartAxisLabelOptions; + + /** + *

The label display options (grid line, range, scale, and axis step) of a combo chart's primary y-axis (bar) field well.

+ */ + PrimaryYAxisDisplayOptions?: AxisDisplayOptions; + + /** + *

The label options (label text, label visibility, and sort icon visibility) of a combo chart's primary y-axis (bar) field well.

+ */ + PrimaryYAxisLabelOptions?: ChartAxisLabelOptions; + + /** + *

The label display options (grid line, range, scale, axis step) of a combo chart's secondary y-axis (line) field well.

+ */ + SecondaryYAxisDisplayOptions?: AxisDisplayOptions; + + /** + *

The label options (label text, label visibility, and sort icon visibility) of a combo chart's secondary y-axis(line) field well.

+ */ + SecondaryYAxisLabelOptions?: ChartAxisLabelOptions; + + /** + *

The label options (label text, label visibility, and sort icon visibility) of a combo chart's color field well.

+ */ + ColorLabelOptions?: ChartAxisLabelOptions; + + /** + *

The legend display setup of the visual.

+ */ + Legend?: LegendOptions; + + /** + *

The options that determine if visual data labels are displayed.

+ *

The data label options for a bar in a combo chart.

+ */ + BarDataLabels?: DataLabelOptions; + + /** + *

The options that determine if visual data labels are displayed.

+ *

The data label options for a line in a combo chart.

+ */ + LineDataLabels?: DataLabelOptions; + + /** + *

The legend display setup of the visual.

+ */ + Tooltip?: TooltipOptions; + + /** + *

The reference line setup of the visual.

+ */ + ReferenceLines?: ReferenceLine[]; + + /** + *

The palette (chart color) display setup of the visual.

+ */ + VisualPalette?: VisualPalette; +} + /** * @public *

A combo chart.

@@ -4480,6 +4582,11 @@ export interface ScatterPlotCategoricallyAggregatedFieldWells { *

The size field well of a scatter plot.

*/ Size?: MeasureField[]; + + /** + *

The label field well of a scatter plot.

+ */ + Label?: DimensionField[]; } /** @@ -4503,6 +4610,16 @@ export interface ScatterPlotUnaggregatedFieldWells { *

The size field well of a scatter plot.

*/ Size?: MeasureField[]; + + /** + *

The category field well of a scatter plot.

+ */ + Category?: DimensionField[]; + + /** + *

The label field well of a scatter plot.

+ */ + Label?: DimensionField[]; } /** @@ -4512,13 +4629,12 @@ export interface ScatterPlotUnaggregatedFieldWells { */ export interface ScatterPlotFieldWells { /** - *

The aggregated field wells of a scatter plot. Scatter plots that have a field in the category (group/color) field will have aggregated field wells. The x and y-axes of these scatter plots are aggregated by category.

+ *

The aggregated field wells of a scatter plot. The x and y-axes of scatter plots with aggregated field wells are aggregated by category, label, or both.

*/ ScatterPlotCategoricallyAggregatedFieldWells?: ScatterPlotCategoricallyAggregatedFieldWells; /** - *

The unaggregated field wells of a scatter plot. Scatter plots without a category field - * well have unaggregated field wells. The x and y-axes of these scatter plots are + *

The unaggregated field wells of a scatter plot. The x and y-axes of these scatter plots are * unaggregated.

*/ ScatterPlotUnaggregatedFieldWells?: ScatterPlotUnaggregatedFieldWells; @@ -6239,6 +6355,30 @@ export const AuthenticationMethodOption = { */ export type AuthenticationMethodOption = (typeof AuthenticationMethodOption)[keyof typeof AuthenticationMethodOption]; +/** + * @public + * @enum + */ +export const AuthorSpecifiedAggregation = { + AVERAGE: "AVERAGE", + COUNT: "COUNT", + DISTINCT_COUNT: "DISTINCT_COUNT", + MAX: "MAX", + MEDIAN: "MEDIAN", + MIN: "MIN", + PERCENTILE: "PERCENTILE", + STDEV: "STDEV", + STDEVP: "STDEVP", + SUM: "SUM", + VAR: "VAR", + VARP: "VARP", +} as const; + +/** + * @public + */ +export type AuthorSpecifiedAggregation = (typeof AuthorSpecifiedAggregation)[keyof typeof AuthorSpecifiedAggregation]; + /** * @public *

The parameters for IoT Analytics.

@@ -6250,6 +6390,18 @@ export interface AwsIotAnalyticsParameters { DataSetName: string | undefined; } +/** + * @public + *

The bookmarks configuration of an embedded dashboard.

+ */ +export interface BookmarksConfigurations { + /** + *

A Boolean value that determines whether a user + * can bookmark an embedded dashboard.

+ */ + Enabled: boolean | undefined; +} + /** * @public *

The display options for tile borders for visuals.

@@ -6535,6 +6687,76 @@ export interface CastColumnTypeOperation { Format?: string; } +/** + * @public + * @enum + */ +export const CategoryFilterFunction = { + CONTAINS: "CONTAINS", + EXACT: "EXACT", +} as const; + +/** + * @public + */ +export type CategoryFilterFunction = (typeof CategoryFilterFunction)[keyof typeof CategoryFilterFunction]; + +/** + * @public + * @enum + */ +export const CategoryFilterType = { + CUSTOM_FILTER: "CUSTOM_FILTER", + CUSTOM_FILTER_LIST: "CUSTOM_FILTER_LIST", + FILTER_LIST: "FILTER_LIST", +} as const; + +/** + * @public + */ +export type CategoryFilterType = (typeof CategoryFilterType)[keyof typeof CategoryFilterType]; + +/** + * @public + *

A structure that represents the cell value synonym.

+ */ +export interface CellValueSynonym { + /** + *

The cell value.

+ */ + CellValue?: string; + + /** + *

Other names or aliases for the cell value.

+ */ + Synonyms?: string[]; +} + +/** + * @public + *

A structure that represents a collective constant.

+ */ +export interface CollectiveConstant { + /** + *

A list of values for the collective constant.

+ */ + ValueList?: string[]; +} + +/** + * @public + * @enum + */ +export const ColumnDataRole = { + DIMENSION: "DIMENSION", + MEASURE: "MEASURE", +} as const; + +/** + * @public + */ +export type ColumnDataRole = (typeof ColumnDataRole)[keyof typeof ColumnDataRole]; + /** * @public *

Metadata that contains a description for a column.

@@ -6641,6 +6863,21 @@ export interface ColumnLevelPermissionRule { ColumnNames?: string[]; } +/** + * @public + * @enum + */ +export const ColumnOrderingType = { + GREATER_IS_BETTER: "GREATER_IS_BETTER", + LESSER_IS_BETTER: "LESSER_IS_BETTER", + SPECIFIED: "SPECIFIED", +} as const; + +/** + * @public + */ +export type ColumnOrderingType = (typeof ColumnOrderingType)[keyof typeof ColumnOrderingType]; + /** * @public *

The column schema.

@@ -6718,349 +6955,17 @@ export const ColumnTagName = { export type ColumnTagName = (typeof ColumnTagName)[keyof typeof ColumnTagName]; /** - * @public - *

A resource is already in a state that indicates an operation is happening that must complete - * before a new update can be applied.

- */ -export class ConcurrentUpdatingException extends __BaseException { - readonly name: "ConcurrentUpdatingException" = "ConcurrentUpdatingException"; - readonly $fault: "server" = "server"; - Message?: string; - RequestId?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "ConcurrentUpdatingException", - $fault: "server", - ...opts, - }); - Object.setPrototypeOf(this, ConcurrentUpdatingException.prototype); - this.Message = opts.Message; - this.RequestId = opts.RequestId; - } -} - -/** - * @public - *

Updating or deleting a resource can cause an inconsistent state.

- */ -export class ConflictException extends __BaseException { - readonly name: "ConflictException" = "ConflictException"; - readonly $fault: "client" = "client"; - Message?: string; - /** - *

The Amazon Web Services request ID for this request.

- */ - RequestId?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "ConflictException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, ConflictException.prototype); - this.Message = opts.Message; - this.RequestId = opts.RequestId; - } -} - -/** - * @public - *

The key or keys of the key-value pairs for the resource tag or tags assigned to the - * resource.

- */ -export interface Tag { - /** - *

Tag key.

- */ - Key: string | undefined; - - /** - *

Tag value.

- */ - Value: string | undefined; -} - -/** - * @public - */ -export interface CreateAccountCustomizationRequest { - /** - *

The ID for the Amazon Web Services account that you want to customize Amazon QuickSight for.

- */ - AwsAccountId: string | undefined; - - /** - *

The Amazon QuickSight namespace that you want to add customizations to.

- */ - Namespace?: string; - - /** - *

The Amazon QuickSight customizations you're adding in the current Amazon Web Services Region. You can add - * these to an Amazon Web Services account and a QuickSight namespace.

- *

For example, you can add a default theme by setting AccountCustomization - * to the midnight theme: "AccountCustomization": \{ "DefaultTheme": - * "arn:aws:quicksight::aws:theme/MIDNIGHT" \}. Or, you can add a custom theme by - * specifying "AccountCustomization": \{ "DefaultTheme": - * "arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639" - * \}.

- */ - AccountCustomization: AccountCustomization | undefined; - - /** - *

A list of the tags that you want to attach to this resource.

- */ - Tags?: Tag[]; -} - -/** - * @public - */ -export interface CreateAccountCustomizationResponse { - /** - *

The Amazon Resource Name (ARN) for the customization that you created for this Amazon Web Services account.

- */ - Arn?: string; - - /** - *

The ID for the Amazon Web Services account that you want to customize Amazon QuickSight for.

- */ - AwsAccountId?: string; - - /** - *

The namespace associated with the customization you're creating.

- */ - Namespace?: string; - - /** - *

The Amazon QuickSight customizations you're adding in the current Amazon Web Services Region.

- */ - AccountCustomization?: AccountCustomization; - - /** - *

The Amazon Web Services request ID for this operation.

- */ - RequestId?: string; - - /** - *

The HTTP status of the request.

- */ - Status?: number; -} - -/** - * @public - *

This resource is currently unavailable.

- */ -export class ResourceUnavailableException extends __BaseException { - readonly name: "ResourceUnavailableException" = "ResourceUnavailableException"; - readonly $fault: "server" = "server"; - Message?: string; - /** - *

The resource type for this request.

- */ - ResourceType?: ExceptionResourceType | string; - - /** - *

The Amazon Web Services request ID for this request.

- */ - RequestId?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "ResourceUnavailableException", - $fault: "server", - ...opts, - }); - Object.setPrototypeOf(this, ResourceUnavailableException.prototype); - this.Message = opts.Message; - this.ResourceType = opts.ResourceType; - this.RequestId = opts.RequestId; - } -} - -/** - * @public - */ -export interface CreateAccountSubscriptionRequest { - /** - *

The edition of Amazon QuickSight that you want your account to have. Currently, you can - * choose from ENTERPRISE or - * ENTERPRISE_AND_Q.

- *

If you choose ENTERPRISE_AND_Q, the following parameters are - * required:

- *
    - *
  • - *

    - * FirstName - *

    - *
  • - *
  • - *

    - * LastName - *

    - *
  • - *
  • - *

    - * EmailAddress - *

    - *
  • - *
  • - *

    - * ContactNumber - *

    - *
  • - *
- */ - Edition: Edition | string | undefined; - - /** - *

The method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for this parameter are IAM_AND_QUICKSIGHT, IAM_ONLY, and ACTIVE_DIRECTORY.

- *

If you choose ACTIVE_DIRECTORY, provide an ActiveDirectoryName - * and an AdminGroup associated with your Active Directory.

- */ - AuthenticationMethod: AuthenticationMethodOption | string | undefined; - - /** - *

The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight account.

- */ - AwsAccountId: string | undefined; - - /** - *

The name of your Amazon QuickSight account. This name is unique over all of Amazon Web Services, and it appears only when users sign in. You can't change - * AccountName value after the Amazon QuickSight account is - * created.

- */ - AccountName: string | undefined; - - /** - *

The email address that you want Amazon QuickSight to send notifications to regarding your Amazon QuickSight account or Amazon QuickSight subscription.

- */ - NotificationEmail: string | undefined; - - /** - *

The name of your Active Directory. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account.

- */ - ActiveDirectoryName?: string; - - /** - *

The realm of the Active Directory that is associated with your Amazon QuickSight account. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account.

- */ - Realm?: string; - - /** - *

The ID of the Active Directory that is associated with your Amazon QuickSight account.

- */ - DirectoryId?: string; - - /** - *

The admin group associated with your Active Directory. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account. For more information about using - * Active Directory in Amazon QuickSight, see Using Active Directory with - * Amazon QuickSight Enterprise Edition in the Amazon QuickSight - * User Guide.

- */ - AdminGroup?: string[]; - - /** - *

The author group associated with your Active Directory. For more information about using - * Active Directory in Amazon QuickSight, see Using Active Directory with - * Amazon QuickSight Enterprise Edition in the Amazon QuickSight - * User Guide.

- */ - AuthorGroup?: string[]; - - /** - *

The reader group associated with your Active Direcrtory. For more information about - * using Active Directory in Amazon QuickSight, see Using Active Directory with - * Amazon QuickSight Enterprise Edition in the Amazon QuickSight - * User Guide.

- */ - ReaderGroup?: string[]; - - /** - *

The first name of the author of the Amazon QuickSight account to use for future - * communications. This field is required if ENTERPPRISE_AND_Q is the selected - * edition of the new Amazon QuickSight account.

- */ - FirstName?: string; - - /** - *

The last name of the author of the Amazon QuickSight account to use for future - * communications. This field is required if ENTERPPRISE_AND_Q is the selected - * edition of the new Amazon QuickSight account.

- */ - LastName?: string; - - /** - *

The email address of the author of the Amazon QuickSight account to use for future - * communications. This field is required if ENTERPPRISE_AND_Q is the selected - * edition of the new Amazon QuickSight account.

- */ - EmailAddress?: string; - - /** - *

A 10-digit phone number for the author of the Amazon QuickSight account to use for - * future communications. This field is required if ENTERPPRISE_AND_Q is the - * selected edition of the new Amazon QuickSight account.

- */ - ContactNumber?: string; -} - -/** - * @public - *

A SignupResponse object that contains a summary of a newly created account.

- */ -export interface SignupResponse { - /** - *

A Boolean that is TRUE if the Amazon QuickSight uses IAM as an - * authentication method.

- */ - IAMUser?: boolean; - - /** - *

The user login name for your Amazon QuickSight account.

- */ - userLoginName?: string; - - /** - *

The name of your Amazon QuickSight account.

- */ - accountName?: string; - - /** - *

The type of Active Directory that is being used to authenticate the Amazon QuickSight - * account. Valid values are SIMPLE_AD, AD_CONNECTOR, and - * MICROSOFT_AD.

- */ - directoryType?: string; -} - -/** - * @public + * @internal */ -export interface CreateAccountSubscriptionResponse { - /** - *

A SignupResponse object that returns information about a newly created Amazon QuickSight account.

- */ - SignupResponse?: SignupResponse; - - /** - *

The HTTP status of the request.

- */ - Status?: number; - - /** - *

The Amazon Web Services request ID for this operation.

- */ - RequestId?: string; -} +export const ComboChartConfigurationFilterSensitiveLog = (obj: ComboChartConfiguration): any => ({ + ...obj, + ...(obj.BarDataLabels && { BarDataLabels: DataLabelOptionsFilterSensitiveLog(obj.BarDataLabels) }), + ...(obj.LineDataLabels && { LineDataLabels: DataLabelOptionsFilterSensitiveLog(obj.LineDataLabels) }), + ...(obj.ReferenceLines && { + ReferenceLines: obj.ReferenceLines.map((item) => ReferenceLineFilterSensitiveLog(item)), + }), + ...(obj.VisualPalette && { VisualPalette: VisualPaletteFilterSensitiveLog(obj.VisualPalette) }), +}); /** * @internal diff --git a/clients/client-quicksight/src/models/models_2.ts b/clients/client-quicksight/src/models/models_2.ts index ed3b5961acfb..10a765b3f004 100644 --- a/clients/client-quicksight/src/models/models_2.ts +++ b/clients/client-quicksight/src/models/models_2.ts @@ -17,12 +17,15 @@ import { ColumnConfigurationFilterSensitiveLog, DashboardBehavior, DataSetIdentifierDeclaration, + Edition, Entity, FilterGroup, + NumberScale, ParameterDeclaration, ParameterDeclarationFilterSensitiveLog, ResourceStatus, Sheet, + TimeGranularity, } from "./models_0"; import { AnalysisDefinition, @@ -31,15 +34,23 @@ import { AthenaParameters, AuroraParameters, AuroraPostgreSqlParameters, + AuthenticationMethodOption, + AuthorSpecifiedAggregation, AwsIotAnalyticsParameters, BorderStyle, CalculatedColumn, CalculatedColumnFilterSensitiveLog, CastColumnTypeOperation, + CategoryFilterFunction, + CategoryFilterType, + CellValueSynonym, + CollectiveConstant, + ColumnDataRole, ColumnDataType, ColumnGroup, ColumnGroupSchema, ColumnLevelPermissionRule, + ColumnOrderingType, ColumnSchema, ColumnTag, ColumnTagName, @@ -47,16 +58,76 @@ import { ExceptionResourceType, FilterOperator, SheetDefinition, - Tag, } from "./models_1"; import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException"; /** * @public - *

One or more preconditions aren't met.

+ * @enum */ -export class PreconditionNotMetException extends __BaseException { - readonly name: "PreconditionNotMetException" = "PreconditionNotMetException"; +export const UndefinedSpecifiedValueType = { + LEAST: "LEAST", + MOST: "MOST", +} as const; + +/** + * @public + */ +export type UndefinedSpecifiedValueType = + (typeof UndefinedSpecifiedValueType)[keyof typeof UndefinedSpecifiedValueType]; + +/** + * @public + *

A structure that represents a comparative order.

+ */ +export interface ComparativeOrder { + /** + *

The ordering type for a column. Valid values for this structure are GREATER_IS_BETTER, LESSER_IS_BETTER and SPECIFIED.

+ */ + UseOrdering?: ColumnOrderingType | string; + + /** + *

The list of columns to be used in the ordering.

+ */ + SpecifedOrder?: string[]; + + /** + *

The treat of undefined specified values. Valid values for this structure are LEAST and MOST.

+ */ + TreatUndefinedSpecifiedValues?: UndefinedSpecifiedValueType | string; +} + +/** + * @public + *

A resource is already in a state that indicates an operation is happening that must complete + * before a new update can be applied.

+ */ +export class ConcurrentUpdatingException extends __BaseException { + readonly name: "ConcurrentUpdatingException" = "ConcurrentUpdatingException"; + readonly $fault: "server" = "server"; + Message?: string; + RequestId?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ConcurrentUpdatingException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, ConcurrentUpdatingException.prototype); + this.Message = opts.Message; + this.RequestId = opts.RequestId; + } +} + +/** + * @public + *

Updating or deleting a resource can cause an inconsistent state.

+ */ +export class ConflictException extends __BaseException { + readonly name: "ConflictException" = "ConflictException"; readonly $fault: "client" = "client"; Message?: string; /** @@ -66,13 +137,13 @@ export class PreconditionNotMetException extends __BaseException { /** * @internal */ - constructor(opts: __ExceptionOptionType) { + constructor(opts: __ExceptionOptionType) { super({ - name: "PreconditionNotMetException", + name: "ConflictException", $fault: "client", ...opts, }); - Object.setPrototypeOf(this, PreconditionNotMetException.prototype); + Object.setPrototypeOf(this, ConflictException.prototype); this.Message = opts.Message; this.RequestId = opts.RequestId; } @@ -80,207 +151,300 @@ export class PreconditionNotMetException extends __BaseException { /** * @public - *

A date-time parameter.

+ * @enum */ -export interface DateTimeParameter { +export const ConstantType = { + COLLECTIVE: "COLLECTIVE", + RANGE: "RANGE", + SINGULAR: "SINGULAR", +} as const; + +/** + * @public + */ +export type ConstantType = (typeof ConstantType)[keyof typeof ConstantType]; + +/** + * @public + *

The key or keys of the key-value pairs for the resource tag or tags assigned to the + * resource.

+ */ +export interface Tag { /** - *

A display name for the date-time parameter.

+ *

Tag key.

*/ - Name: string | undefined; + Key: string | undefined; /** - *

The values for the date-time parameter.

+ *

Tag value.

*/ - Values: Date[] | undefined; + Value: string | undefined; } /** * @public - *

A decimal parameter.

*/ -export interface DecimalParameter { +export interface CreateAccountCustomizationRequest { /** - *

A display name for the decimal parameter.

+ *

The ID for the Amazon Web Services account that you want to customize Amazon QuickSight for.

*/ - Name: string | undefined; + AwsAccountId: string | undefined; /** - *

The values for the decimal parameter.

+ *

The Amazon QuickSight namespace that you want to add customizations to.

*/ - Values: number[] | undefined; -} + Namespace?: string; -/** - * @public - *

An integer parameter.

- */ -export interface IntegerParameter { /** - *

The name of the integer parameter.

+ *

The Amazon QuickSight customizations you're adding in the current Amazon Web Services Region. You can add + * these to an Amazon Web Services account and a QuickSight namespace.

+ *

For example, you can add a default theme by setting AccountCustomization + * to the midnight theme: "AccountCustomization": \{ "DefaultTheme": + * "arn:aws:quicksight::aws:theme/MIDNIGHT" \}. Or, you can add a custom theme by + * specifying "AccountCustomization": \{ "DefaultTheme": + * "arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639" + * \}.

*/ - Name: string | undefined; + AccountCustomization: AccountCustomization | undefined; /** - *

The values for the integer parameter.

+ *

A list of the tags that you want to attach to this resource.

*/ - Values: number[] | undefined; + Tags?: Tag[]; } /** * @public - *

A string parameter.

*/ -export interface StringParameter { +export interface CreateAccountCustomizationResponse { /** - *

A display name for a string parameter.

+ *

The Amazon Resource Name (ARN) for the customization that you created for this Amazon Web Services account.

*/ - Name: string | undefined; + Arn?: string; /** - *

The values of a string parameter.

+ *

The ID for the Amazon Web Services account that you want to customize Amazon QuickSight for.

*/ - Values: string[] | undefined; -} + AwsAccountId?: string; -/** - * @public - *

A list of Amazon QuickSight parameters and the list's override values.

- */ -export interface _Parameters { /** - *

The parameters that have a data type of string.

+ *

The namespace associated with the customization you're creating.

*/ - StringParameters?: StringParameter[]; + Namespace?: string; /** - *

The parameters that have a data type of integer.

+ *

The Amazon QuickSight customizations you're adding in the current Amazon Web Services Region.

*/ - IntegerParameters?: IntegerParameter[]; + AccountCustomization?: AccountCustomization; /** - *

The parameters that have a data type of decimal.

+ *

The Amazon Web Services request ID for this operation.

*/ - DecimalParameters?: DecimalParameter[]; + RequestId?: string; /** - *

The parameters that have a data type of date-time.

+ *

The HTTP status of the request.

*/ - DateTimeParameters?: DateTimeParameter[]; + Status?: number; } /** * @public - *

Permission for the resource.

+ *

This resource is currently unavailable.

*/ -export interface ResourcePermission { +export class ResourceUnavailableException extends __BaseException { + readonly name: "ResourceUnavailableException" = "ResourceUnavailableException"; + readonly $fault: "server" = "server"; + Message?: string; /** - *

The Amazon Resource Name (ARN) of the principal. This can be one of the - * following:

+ *

The resource type for this request.

+ */ + ResourceType?: ExceptionResourceType | string; + + /** + *

The Amazon Web Services request ID for this request.

+ */ + RequestId?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ResourceUnavailableException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, ResourceUnavailableException.prototype); + this.Message = opts.Message; + this.ResourceType = opts.ResourceType; + this.RequestId = opts.RequestId; + } +} + +/** + * @public + */ +export interface CreateAccountSubscriptionRequest { + /** + *

The edition of Amazon QuickSight that you want your account to have. Currently, you can + * choose from ENTERPRISE or + * ENTERPRISE_AND_Q.

+ *

If you choose ENTERPRISE_AND_Q, the following parameters are + * required:

*
    *
  • - *

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    + *

    + * FirstName + *

    *
  • *
  • - *

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    + *

    + * LastName + *

    *
  • *
  • - *

    The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight - * ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. - * (This is less common.)

    + *

    + * EmailAddress + *

    + *
  • + *
  • + *

    + * ContactNumber + *

    *
  • *
*/ - Principal: string | undefined; + Edition: Edition | string | undefined; /** - *

The IAM action to grant or revoke permissions on.

+ *

The method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for this parameter are IAM_AND_QUICKSIGHT, IAM_ONLY, and ACTIVE_DIRECTORY.

+ *

If you choose ACTIVE_DIRECTORY, provide an ActiveDirectoryName + * and an AdminGroup associated with your Active Directory.

*/ - Actions: string[] | undefined; -} + AuthenticationMethod: AuthenticationMethodOption | string | undefined; -/** - * @public - */ -export interface CreateAnalysisRequest { /** - *

The ID of the Amazon Web Services account where you are creating an analysis.

+ *

The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight account.

*/ AwsAccountId: string | undefined; /** - *

The ID for the analysis that you're creating. This ID displays in the URL of the - * analysis.

+ *

The name of your Amazon QuickSight account. This name is unique over all of Amazon Web Services, and it appears only when users sign in. You can't change + * AccountName value after the Amazon QuickSight account is + * created.

*/ - AnalysisId: string | undefined; + AccountName: string | undefined; /** - *

A descriptive name for the analysis that you're creating. This name displays for the - * analysis in the Amazon QuickSight console.

+ *

The email address that you want Amazon QuickSight to send notifications to regarding your Amazon QuickSight account or Amazon QuickSight subscription.

*/ - Name: string | undefined; + NotificationEmail: string | undefined; /** - *

The parameter names and override values that you want to use. An analysis can have - * any parameter type, and some parameters might accept multiple values.

+ *

The name of your Active Directory. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account.

*/ - Parameters?: _Parameters; + ActiveDirectoryName?: string; /** - *

A structure that describes the principals and the resource-level permissions on an - * analysis. You can use the Permissions structure to grant permissions by - * providing a list of Identity and Access Management (IAM) action information for each - * principal listed by Amazon Resource Name (ARN).

- *

To specify no permissions, omit Permissions.

+ *

The realm of the Active Directory that is associated with your Amazon QuickSight account. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account.

*/ - Permissions?: ResourcePermission[]; + Realm?: string; /** - *

A source entity to use for the analysis that you're creating. This metadata structure - * contains details that describe a source template and one or more datasets.

- *

Either a SourceEntity or a Definition must be provided in - * order for the request to be valid.

+ *

The ID of the Active Directory that is associated with your Amazon QuickSight account.

*/ - SourceEntity?: AnalysisSourceEntity; + DirectoryId?: string; /** - *

The ARN for the theme to apply to the analysis that you're creating. To see the theme - * in the Amazon QuickSight console, make sure that you have access to it.

+ *

The admin group associated with your Active Directory. This field is required if ACTIVE_DIRECTORY is the selected authentication method of the new Amazon QuickSight account. For more information about using + * Active Directory in Amazon QuickSight, see Using Active Directory with + * Amazon QuickSight Enterprise Edition in the Amazon QuickSight + * User Guide.

*/ - ThemeArn?: string; + AdminGroup?: string[]; /** - *

Contains a map of the key-value pairs for the resource tag or tags assigned to the - * analysis.

+ *

The author group associated with your Active Directory. For more information about using + * Active Directory in Amazon QuickSight, see Using Active Directory with + * Amazon QuickSight Enterprise Edition in the Amazon QuickSight + * User Guide.

*/ - Tags?: Tag[]; + AuthorGroup?: string[]; /** - *

The definition of an analysis.

- *

A definition is the data model of all features in a Dashboard, Template, or Analysis.

- *

Either a SourceEntity or a Definition must be provided in - * order for the request to be valid.

+ *

The reader group associated with your Active Direcrtory. For more information about + * using Active Directory in Amazon QuickSight, see Using Active Directory with + * Amazon QuickSight Enterprise Edition in the Amazon QuickSight + * User Guide.

*/ - Definition?: AnalysisDefinition; + ReaderGroup?: string[]; + + /** + *

The first name of the author of the Amazon QuickSight account to use for future + * communications. This field is required if ENTERPPRISE_AND_Q is the selected + * edition of the new Amazon QuickSight account.

+ */ + FirstName?: string; + + /** + *

The last name of the author of the Amazon QuickSight account to use for future + * communications. This field is required if ENTERPPRISE_AND_Q is the selected + * edition of the new Amazon QuickSight account.

+ */ + LastName?: string; + + /** + *

The email address of the author of the Amazon QuickSight account to use for future + * communications. This field is required if ENTERPPRISE_AND_Q is the selected + * edition of the new Amazon QuickSight account.

+ */ + EmailAddress?: string; + + /** + *

A 10-digit phone number for the author of the Amazon QuickSight account to use for + * future communications. This field is required if ENTERPPRISE_AND_Q is the + * selected edition of the new Amazon QuickSight account.

+ */ + ContactNumber?: string; } /** * @public + *

A SignupResponse object that contains a summary of a newly created account.

*/ -export interface CreateAnalysisResponse { +export interface SignupResponse { /** - *

The ARN for the analysis.

+ *

A Boolean that is TRUE if the Amazon QuickSight uses IAM as an + * authentication method.

*/ - Arn?: string; + IAMUser?: boolean; /** - *

The ID of the analysis.

+ *

The user login name for your Amazon QuickSight account.

*/ - AnalysisId?: string; + userLoginName?: string; /** - *

The status of the creation of the analysis.

+ *

The name of your Amazon QuickSight account.

*/ - CreationStatus?: ResourceStatus | string; + accountName?: string; + + /** + *

The type of Active Directory that is being used to authenticate the Amazon QuickSight + * account. Valid values are SIMPLE_AD, AD_CONNECTOR, and + * MICROSOFT_AD.

+ */ + directoryType?: string; +} + +/** + * @public + */ +export interface CreateAccountSubscriptionResponse { + /** + *

A SignupResponse object that returns information about a newly created Amazon QuickSight account.

+ */ + SignupResponse?: SignupResponse; /** *

The HTTP status of the request.

@@ -295,17 +459,12 @@ export interface CreateAnalysisResponse { /** * @public - *

A limit is exceeded.

+ *

One or more preconditions aren't met.

*/ -export class LimitExceededException extends __BaseException { - readonly name: "LimitExceededException" = "LimitExceededException"; +export class PreconditionNotMetException extends __BaseException { + readonly name: "PreconditionNotMetException" = "PreconditionNotMetException"; readonly $fault: "client" = "client"; Message?: string; - /** - *

Limit exceeded.

- */ - ResourceType?: ExceptionResourceType | string; - /** *

The Amazon Web Services request ID for this request.

*/ @@ -313,34 +472,281 @@ export class LimitExceededException extends __BaseException { /** * @internal */ - constructor(opts: __ExceptionOptionType) { + constructor(opts: __ExceptionOptionType) { super({ - name: "LimitExceededException", + name: "PreconditionNotMetException", $fault: "client", ...opts, }); - Object.setPrototypeOf(this, LimitExceededException.prototype); + Object.setPrototypeOf(this, PreconditionNotMetException.prototype); this.Message = opts.Message; - this.ResourceType = opts.ResourceType; this.RequestId = opts.RequestId; } } /** * @public - *

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.

+ *

A date-time parameter.

*/ -export class UnsupportedUserEditionException extends __BaseException { - readonly name: "UnsupportedUserEditionException" = "UnsupportedUserEditionException"; - readonly $fault: "client" = "client"; - Message?: string; +export interface DateTimeParameter { /** - *

The Amazon Web Services request ID for this request.

+ *

A display name for the date-time parameter.

*/ - RequestId?: string; + Name: string | undefined; + + /** + *

The values for the date-time parameter.

+ */ + Values: Date[] | undefined; +} + +/** + * @public + *

A decimal parameter.

+ */ +export interface DecimalParameter { + /** + *

A display name for the decimal parameter.

+ */ + Name: string | undefined; + + /** + *

The values for the decimal parameter.

+ */ + Values: number[] | undefined; +} + +/** + * @public + *

An integer parameter.

+ */ +export interface IntegerParameter { + /** + *

The name of the integer parameter.

+ */ + Name: string | undefined; + + /** + *

The values for the integer parameter.

+ */ + Values: number[] | undefined; +} + +/** + * @public + *

A string parameter.

+ */ +export interface StringParameter { + /** + *

A display name for a string parameter.

+ */ + Name: string | undefined; + + /** + *

The values of a string parameter.

+ */ + Values: string[] | undefined; +} + +/** + * @public + *

A list of Amazon QuickSight parameters and the list's override values.

+ */ +export interface _Parameters { + /** + *

The parameters that have a data type of string.

+ */ + StringParameters?: StringParameter[]; + + /** + *

The parameters that have a data type of integer.

+ */ + IntegerParameters?: IntegerParameter[]; + + /** + *

The parameters that have a data type of decimal.

+ */ + DecimalParameters?: DecimalParameter[]; + + /** + *

The parameters that have a data type of date-time.

+ */ + DateTimeParameters?: DateTimeParameter[]; +} + +/** + * @public + *

Permission for the resource.

+ */ +export interface ResourcePermission { + /** + *

The Amazon Resource Name (ARN) of the principal. This can be one of the + * following:

+ *
    + *
  • + *

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    + *
  • + *
  • + *

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    + *
  • + *
  • + *

    The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight + * ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. + * (This is less common.)

    + *
  • + *
+ */ + Principal: string | undefined; + + /** + *

The IAM action to grant or revoke permissions on.

+ */ + Actions: string[] | undefined; +} + +/** + * @public + */ +export interface CreateAnalysisRequest { + /** + *

The ID of the Amazon Web Services account where you are creating an analysis.

+ */ + AwsAccountId: string | undefined; + + /** + *

The ID for the analysis that you're creating. This ID displays in the URL of the + * analysis.

+ */ + AnalysisId: string | undefined; + + /** + *

A descriptive name for the analysis that you're creating. This name displays for the + * analysis in the Amazon QuickSight console.

+ */ + Name: string | undefined; + + /** + *

The parameter names and override values that you want to use. An analysis can have + * any parameter type, and some parameters might accept multiple values.

+ */ + Parameters?: _Parameters; + + /** + *

A structure that describes the principals and the resource-level permissions on an + * analysis. You can use the Permissions structure to grant permissions by + * providing a list of Identity and Access Management (IAM) action information for each + * principal listed by Amazon Resource Name (ARN).

+ *

To specify no permissions, omit Permissions.

+ */ + Permissions?: ResourcePermission[]; + + /** + *

A source entity to use for the analysis that you're creating. This metadata structure + * contains details that describe a source template and one or more datasets.

+ *

Either a SourceEntity or a Definition must be provided in + * order for the request to be valid.

+ */ + SourceEntity?: AnalysisSourceEntity; + + /** + *

The ARN for the theme to apply to the analysis that you're creating. To see the theme + * in the Amazon QuickSight console, make sure that you have access to it.

+ */ + ThemeArn?: string; + + /** + *

Contains a map of the key-value pairs for the resource tag or tags assigned to the + * analysis.

+ */ + Tags?: Tag[]; + + /** + *

The definition of an analysis.

+ *

A definition is the data model of all features in a Dashboard, Template, or Analysis.

+ *

Either a SourceEntity or a Definition must be provided in + * order for the request to be valid.

+ */ + Definition?: AnalysisDefinition; +} + +/** + * @public + */ +export interface CreateAnalysisResponse { + /** + *

The ARN for the analysis.

+ */ + Arn?: string; + + /** + *

The ID of the analysis.

+ */ + AnalysisId?: string; + + /** + *

The status of the creation of the analysis.

+ */ + CreationStatus?: ResourceStatus | string; + + /** + *

The HTTP status of the request.

+ */ + Status?: number; + + /** + *

The Amazon Web Services request ID for this operation.

+ */ + RequestId?: string; +} + +/** + * @public + *

A limit is exceeded.

+ */ +export class LimitExceededException extends __BaseException { + readonly name: "LimitExceededException" = "LimitExceededException"; + readonly $fault: "client" = "client"; + Message?: string; + /** + *

Limit exceeded.

+ */ + ResourceType?: ExceptionResourceType | string; + + /** + *

The Amazon Web Services request ID for this request.

+ */ + RequestId?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "LimitExceededException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, LimitExceededException.prototype); + this.Message = opts.Message; + this.ResourceType = opts.ResourceType; + this.RequestId = opts.RequestId; + } +} + +/** + * @public + *

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.

+ */ +export class UnsupportedUserEditionException extends __BaseException { + readonly name: "UnsupportedUserEditionException" = "UnsupportedUserEditionException"; + readonly $fault: "client" = "client"; + Message?: string; + /** + *

The Amazon Web Services request ID for this request.

+ */ + RequestId?: string; /** * @internal */ @@ -787,11 +1193,204 @@ export interface CreateDashboardResponse { /** * @public - *

The usage configuration to apply to child datasets that reference this dataset as a source.

+ *

The default values of a date time parameter.

*/ -export interface DataSetUsageConfiguration { +export interface DateTimeDatasetParameterDefaultValues { /** - *

An option that controls whether a child dataset of a direct query can use this dataset as a source.

+ *

A list of static default values for a given date time parameter.

+ */ + StaticValues?: Date[]; +} + +/** + * @public + * @enum + */ +export const DatasetParameterValueType = { + MULTI_VALUED: "MULTI_VALUED", + SINGLE_VALUED: "SINGLE_VALUED", +} as const; + +/** + * @public + */ +export type DatasetParameterValueType = (typeof DatasetParameterValueType)[keyof typeof DatasetParameterValueType]; + +/** + * @public + *

A date time parameter for a dataset.

+ */ +export interface DateTimeDatasetParameter { + /** + *

An identifier for the parameter that is created in the dataset.

+ */ + Id: string | undefined; + + /** + *

The name of the date time parameter that is created in the dataset.

+ */ + Name: string | undefined; + + /** + *

The value type of the dataset parameter. Valid values are single value or multi value.

+ */ + ValueType: DatasetParameterValueType | string | undefined; + + /** + *

The time granularity of the date time parameter.

+ */ + TimeGranularity?: TimeGranularity | string; + + /** + *

A list of default values for a given date time parameter. This structure only accepts static values.

+ */ + DefaultValues?: DateTimeDatasetParameterDefaultValues; +} + +/** + * @public + *

The default values of a decimal parameter.

+ */ +export interface DecimalDatasetParameterDefaultValues { + /** + *

A list of static default values for a given decimal parameter.

+ */ + StaticValues?: number[]; +} + +/** + * @public + *

A decimal parameter for a dataset.

+ */ +export interface DecimalDatasetParameter { + /** + *

An identifier for the decimal parameter created in the dataset.

+ */ + Id: string | undefined; + + /** + *

The name of the decimal parameter that is created in the dataset.

+ */ + Name: string | undefined; + + /** + *

The value type of the dataset parameter. Valid values are single value or multi value.

+ */ + ValueType: DatasetParameterValueType | string | undefined; + + /** + *

A list of default values for a given decimal parameter. This structure only accepts static values.

+ */ + DefaultValues?: DecimalDatasetParameterDefaultValues; +} + +/** + * @public + *

The default values of an integer parameter.

+ */ +export interface IntegerDatasetParameterDefaultValues { + /** + *

A list of static default values for a given integer parameter.

+ */ + StaticValues?: number[]; +} + +/** + * @public + *

An integer parameter for a dataset.

+ */ +export interface IntegerDatasetParameter { + /** + *

An identifier for the integer parameter created in the dataset.

+ */ + Id: string | undefined; + + /** + *

The name of the integer parameter that is created in the dataset.

+ */ + Name: string | undefined; + + /** + *

The value type of the dataset parameter. Valid values are single value or multi value.

+ */ + ValueType: DatasetParameterValueType | string | undefined; + + /** + *

A list of default values for a given integer parameter. This structure only accepts static values.

+ */ + DefaultValues?: IntegerDatasetParameterDefaultValues; +} + +/** + * @public + *

The default values of a string parameter.

+ */ +export interface StringDatasetParameterDefaultValues { + /** + *

A list of static default values for a given string parameter.

+ */ + StaticValues?: string[]; +} + +/** + * @public + *

A string parameter for a dataset.

+ */ +export interface StringDatasetParameter { + /** + *

An identifier for the string parameter that is created in the dataset.

+ */ + Id: string | undefined; + + /** + *

The name of the string parameter that is created in the dataset.

+ */ + Name: string | undefined; + + /** + *

The value type of the dataset parameter. Valid values are single value or multi value.

+ */ + ValueType: DatasetParameterValueType | string | undefined; + + /** + *

A list of default values for a given string dataset parameter type. This structure only accepts static values.

+ */ + DefaultValues?: StringDatasetParameterDefaultValues; +} + +/** + * @public + *

A dataset parameter.

+ */ +export interface DatasetParameter { + /** + *

A string parameter that is created in the dataset.

+ */ + StringDatasetParameter?: StringDatasetParameter; + + /** + *

A decimal parameter that is created in the dataset.

+ */ + DecimalDatasetParameter?: DecimalDatasetParameter; + + /** + *

An integer parameter that is created in the dataset.

+ */ + IntegerDatasetParameter?: IntegerDatasetParameter; + + /** + *

A date time parameter that is created in the dataset.

+ */ + DateTimeDatasetParameter?: DateTimeDatasetParameter; +} + +/** + * @public + *

The usage configuration to apply to child datasets that reference this dataset as a source.

+ */ +export interface DataSetUsageConfiguration { + /** + *

An option that controls whether a child dataset of a direct query can use this dataset as a source.

*/ DisableUseAsDirectQuerySource?: boolean; @@ -843,6 +1442,53 @@ export interface FilterOperation { ConditionExpression: string | undefined; } +/** + * @public + *

The configuration that overrides the existing default values for a dataset parameter that is inherited from another dataset.

+ */ +export interface NewDefaultValues { + /** + *

A list of static default values for a given string parameter.

+ */ + StringStaticValues?: string[]; + + /** + *

A list of static default values for a given decimal parameter.

+ */ + DecimalStaticValues?: number[]; + + /** + *

A list of static default values for a given date time parameter.

+ */ + DateTimeStaticValues?: Date[]; + + /** + *

A list of static default values for a given integer parameter.

+ */ + IntegerStaticValues?: number[]; +} + +/** + * @public + *

A transform operation that overrides the dataset parameter values that are defined in another dataset.

+ */ +export interface OverrideDatasetParameterOperation { + /** + *

The name of the parameter to be overridden with different values.

+ */ + ParameterName: string | undefined; + + /** + *

The new name for the parameter.

+ */ + NewParameterName?: string; + + /** + *

The new default values for the parameter.

+ */ + NewDefaultValues?: NewDefaultValues; +} + /** * @public *

A transform operation that projects columns. Operations that come after a projection @@ -915,6 +1561,7 @@ export type TransformOperation = | TransformOperation.CastColumnTypeOperationMember | TransformOperation.CreateColumnsOperationMember | TransformOperation.FilterOperationMember + | TransformOperation.OverrideDatasetParameterOperationMember | TransformOperation.ProjectOperationMember | TransformOperation.RenameColumnOperationMember | TransformOperation.TagColumnOperationMember @@ -937,6 +1584,7 @@ export namespace TransformOperation { CastColumnTypeOperation?: never; TagColumnOperation?: never; UntagColumnOperation?: never; + OverrideDatasetParameterOperation?: never; $unknown?: never; } @@ -951,6 +1599,7 @@ export namespace TransformOperation { CastColumnTypeOperation?: never; TagColumnOperation?: never; UntagColumnOperation?: never; + OverrideDatasetParameterOperation?: never; $unknown?: never; } @@ -966,6 +1615,7 @@ export namespace TransformOperation { CastColumnTypeOperation?: never; TagColumnOperation?: never; UntagColumnOperation?: never; + OverrideDatasetParameterOperation?: never; $unknown?: never; } @@ -980,6 +1630,7 @@ export namespace TransformOperation { CastColumnTypeOperation?: never; TagColumnOperation?: never; UntagColumnOperation?: never; + OverrideDatasetParameterOperation?: never; $unknown?: never; } @@ -994,6 +1645,7 @@ export namespace TransformOperation { CastColumnTypeOperation: CastColumnTypeOperation; TagColumnOperation?: never; UntagColumnOperation?: never; + OverrideDatasetParameterOperation?: never; $unknown?: never; } @@ -1008,6 +1660,7 @@ export namespace TransformOperation { CastColumnTypeOperation?: never; TagColumnOperation: TagColumnOperation; UntagColumnOperation?: never; + OverrideDatasetParameterOperation?: never; $unknown?: never; } @@ -1022,6 +1675,22 @@ export namespace TransformOperation { CastColumnTypeOperation?: never; TagColumnOperation?: never; UntagColumnOperation: UntagColumnOperation; + OverrideDatasetParameterOperation?: never; + $unknown?: never; + } + + /** + *

A transform operation that overrides the dataset parameter values that are defined in another dataset.

+ */ + export interface OverrideDatasetParameterOperationMember { + ProjectOperation?: never; + FilterOperation?: never; + CreateColumnsOperation?: never; + RenameColumnOperation?: never; + CastColumnTypeOperation?: never; + TagColumnOperation?: never; + UntagColumnOperation?: never; + OverrideDatasetParameterOperation: OverrideDatasetParameterOperation; $unknown?: never; } @@ -1033,6 +1702,7 @@ export namespace TransformOperation { CastColumnTypeOperation?: never; TagColumnOperation?: never; UntagColumnOperation?: never; + OverrideDatasetParameterOperation?: never; $unknown: [string, any]; } @@ -1044,6 +1714,7 @@ export namespace TransformOperation { CastColumnTypeOperation: (value: CastColumnTypeOperation) => T; TagColumnOperation: (value: TagColumnOperation) => T; UntagColumnOperation: (value: UntagColumnOperation) => T; + OverrideDatasetParameterOperation: (value: OverrideDatasetParameterOperation) => T; _: (name: string, value: any) => T; } @@ -1056,6 +1727,8 @@ export namespace TransformOperation { return visitor.CastColumnTypeOperation(value.CastColumnTypeOperation); if (value.TagColumnOperation !== undefined) return visitor.TagColumnOperation(value.TagColumnOperation); if (value.UntagColumnOperation !== undefined) return visitor.UntagColumnOperation(value.UntagColumnOperation); + if (value.OverrideDatasetParameterOperation !== undefined) + return visitor.OverrideDatasetParameterOperation(value.OverrideDatasetParameterOperation); return visitor._(value.$unknown[0], value.$unknown[1]); }; } @@ -1620,6 +2293,11 @@ export interface CreateDataSetRequest { *

The usage configuration to apply to child datasets that reference this dataset as a source.

*/ DataSetUsageConfiguration?: DataSetUsageConfiguration; + + /** + *

The parameter declarations of the dataset.

+ */ + DatasetParameters?: DatasetParameter[]; } /** @@ -1760,12 +2438,12 @@ export interface OracleParameters { Host: string | undefined; /** - *

Port.

+ *

The port.

*/ Port: number | undefined; /** - *

Database.

+ *

The database.

*/ Database: string | undefined; } @@ -3315,13 +3993,16 @@ export interface CreateGroupMembershipResponse { */ export interface CreateIAMPolicyAssignmentRequest { /** - *

The ID of the Amazon Web Services account where you want to assign an IAM policy to Amazon QuickSight users or - * groups.

+ *

The ID of the Amazon Web Services account where you want to assign an IAM policy to Amazon QuickSight users or groups.

*/ AwsAccountId: string | undefined; /** - *

The name of the assignment, also called a rule. It must be unique within an Amazon Web Services account.

+ *

The name of the assignment, also called a rule. + * The + * name + * must be unique within the + * Amazon Web Services account.

*/ AssignmentName: string | undefined; @@ -3330,30 +4011,32 @@ export interface CreateIAMPolicyAssignmentRequest { *
    *
  • *

    - * ENABLED - Anything specified in this assignment is used when creating the data - * source.

    + * ENABLED - Anything specified in this assignment is used when + * creating the data source.

    *
  • *
  • *

    - * DISABLED - This assignment isn't used when creating the data source.

    + * DISABLED - This assignment isn't used when creating the data + * source.

    *
  • *
  • *

    - * DRAFT - This assignment is an unfinished draft and isn't used when creating the - * data source.

    + * DRAFT - This assignment is an unfinished draft and isn't used + * when creating the data source.

    *
  • *
*/ AssignmentStatus: AssignmentStatus | string | undefined; /** - *

The ARN for the IAM policy to apply to the Amazon QuickSight users and groups - * specified in this assignment.

+ *

The ARN for the IAM policy to apply to the Amazon QuickSight users and + * groups specified in this assignment.

*/ PolicyArn?: string; /** - *

The Amazon QuickSight users, groups, or both that you want to assign the policy to.

+ *

The Amazon QuickSight users, groups, or both that you want to assign the policy + * to.

*/ Identities?: Record; @@ -3368,7 +4051,9 @@ export interface CreateIAMPolicyAssignmentRequest { */ export interface CreateIAMPolicyAssignmentResponse { /** - *

The name of the assignment. This name must be unique within the Amazon Web Services account.

+ *

The name of the assignment. + * The + * name must be unique within the Amazon Web Services account.

*/ AssignmentName?: string; @@ -3382,29 +4067,32 @@ export interface CreateIAMPolicyAssignmentResponse { *
    *
  • *

    - * ENABLED - Anything specified in this assignment is used when creating the data - * source.

    + * ENABLED - Anything specified in this assignment is used when + * creating the data source.

    *
  • *
  • *

    - * DISABLED - This assignment isn't used when creating the data source.

    + * DISABLED - This assignment isn't used when creating the data + * source.

    *
  • *
  • *

    - * DRAFT - This assignment is an unfinished draft and isn't used when creating the - * data source.

    + * DRAFT - This assignment is an unfinished draft and isn't used + * when creating the data source.

    *
  • *
*/ AssignmentStatus?: AssignmentStatus | string; /** - *

The ARN for the IAM policy that is applied to the Amazon QuickSight users and groups specified in this assignment.

+ *

The ARN for the IAM policy that is applied to the Amazon QuickSight + * users and groups specified in this assignment.

*/ PolicyArn?: string; /** - *

The Amazon QuickSight users, groups, or both that the IAM policy is assigned to.

+ *

The Amazon QuickSight users, groups, or both that the IAM policy is + * assigned to.

*/ Identities?: Record; @@ -4493,1004 +5181,1035 @@ export interface CreateThemeAliasResponse { * @public * @enum */ -export const DashboardErrorType = { - ACCESS_DENIED: "ACCESS_DENIED", - COLUMN_GEOGRAPHIC_ROLE_MISMATCH: "COLUMN_GEOGRAPHIC_ROLE_MISMATCH", - COLUMN_REPLACEMENT_MISSING: "COLUMN_REPLACEMENT_MISSING", - COLUMN_TYPE_MISMATCH: "COLUMN_TYPE_MISMATCH", - DATA_SET_NOT_FOUND: "DATA_SET_NOT_FOUND", - INTERNAL_FAILURE: "INTERNAL_FAILURE", - PARAMETER_NOT_FOUND: "PARAMETER_NOT_FOUND", - PARAMETER_TYPE_INVALID: "PARAMETER_TYPE_INVALID", - PARAMETER_VALUE_INCOMPATIBLE: "PARAMETER_VALUE_INCOMPATIBLE", - SOURCE_NOT_FOUND: "SOURCE_NOT_FOUND", +export const DefaultAggregation = { + AVERAGE: "AVERAGE", + COUNT: "COUNT", + DISTINCT_COUNT: "DISTINCT_COUNT", + MAX: "MAX", + MIN: "MIN", + SUM: "SUM", } as const; /** * @public */ -export type DashboardErrorType = (typeof DashboardErrorType)[keyof typeof DashboardErrorType]; +export type DefaultAggregation = (typeof DefaultAggregation)[keyof typeof DefaultAggregation]; /** * @public - *

Dashboard error.

+ * @enum */ -export interface DashboardError { - /** - *

Type.

- */ - Type?: DashboardErrorType | string; +export const DisplayFormat = { + AUTO: "AUTO", + CURRENCY: "CURRENCY", + DATE: "DATE", + NUMBER: "NUMBER", + PERCENT: "PERCENT", + STRING: "STRING", +} as const; + +/** + * @public + */ +export type DisplayFormat = (typeof DisplayFormat)[keyof typeof DisplayFormat]; + +/** + * @public + * @enum + */ +export const TopicNumericSeparatorSymbol = { + COMMA: "COMMA", + DOT: "DOT", +} as const; +/** + * @public + */ +export type TopicNumericSeparatorSymbol = + (typeof TopicNumericSeparatorSymbol)[keyof typeof TopicNumericSeparatorSymbol]; + +/** + * @public + *

A structure that represents a negative format.

+ */ +export interface NegativeFormat { /** - *

Message.

+ *

The prefix for a negative format.

*/ - Message?: string; + Prefix?: string; /** - *

Lists the violated entities that caused the dashboard error.

+ *

The suffix for a negative format.

*/ - ViolatedEntities?: Entity[]; + Suffix?: string; } /** * @public - *

Dashboard version.

+ *

A structure that represents additional options for display formatting.

*/ -export interface DashboardVersion { +export interface DisplayFormatOptions { /** - *

The time that this dashboard version was created.

+ *

A Boolean value that indicates whether to use blank cell format.

*/ - CreatedTime?: Date; + UseBlankCellFormat?: boolean; /** - *

Errors associated with this dashboard version.

+ *

Determines the blank cell format.

*/ - Errors?: DashboardError[]; + BlankCellFormat?: string; /** - *

Version number for this version of the dashboard.

+ *

Determines the DateTime format.

*/ - VersionNumber?: number; + DateFormat?: string; /** - *

The HTTP status of the request.

+ *

Determines the decimal separator.

*/ - Status?: ResourceStatus | string; + DecimalSeparator?: TopicNumericSeparatorSymbol | string; /** - *

The Amazon Resource Name (ARN) of the resource.

+ *

Determines the grouping separator.

*/ - Arn?: string; + GroupingSeparator?: string; /** - *

Source entity ARN.

+ *

A Boolean value that indicates whether to use grouping.

*/ - SourceEntityArn?: string; + UseGrouping?: boolean; /** - *

The Amazon Resource Numbers (ARNs) for the datasets that are associated with this - * version of the dashboard.

+ *

Determines the number of fraction digits.

*/ - DataSetArns?: string[]; + FractionDigits?: number; /** - *

Description.

+ *

The prefix value for a display format.

*/ - Description?: string; + Prefix?: string; /** - *

The ARN of the theme associated with a version of the dashboard.

+ *

The suffix value for a display format.

*/ - ThemeArn?: string; + Suffix?: string; /** - *

A list of the associated sheets with the unique identifier and name of each sheet.

+ *

The unit scaler. Valid values for this structure are: NONE, + * AUTO, THOUSANDS, MILLIONS, + * BILLIONS, + * and TRILLIONS.

*/ - Sheets?: Sheet[]; + UnitScaler?: NumberScale | string; + + /** + *

The negative format.

+ */ + NegativeFormat?: NegativeFormat; + + /** + *

The currency symbol, such as USD.

+ */ + CurrencySymbol?: string; } /** * @public - *

Dashboard.

+ *

A structure that represents a default formatting definition.

*/ -export interface Dashboard { +export interface DefaultFormatting { /** - *

Dashboard ID.

+ *

The display format. Valid values for this structure are AUTO, + * PERCENT, CURRENCY, NUMBER, DATE, and + * STRING.

*/ - DashboardId?: string; + DisplayFormat?: DisplayFormat | string; /** - *

The Amazon Resource Name (ARN) of the resource.

+ *

The additional options for display formatting.

*/ - Arn?: string; + DisplayFormatOptions?: DisplayFormatOptions; +} - /** - *

A display name for the dashboard.

+/** + * @public + *

A structure that represents a semantic type.

+ */ +export interface SemanticType { + /** + *

The semantic type name.

*/ - Name?: string; + TypeName?: string; /** - *

Version.

+ *

The semantic type sub type name.

*/ - Version?: DashboardVersion; + SubTypeName?: string; /** - *

The time that this dashboard was created.

+ *

The semantic type parameters.

*/ - CreatedTime?: Date; + TypeParameters?: Record; /** - *

The last time that this dashboard was published.

+ *

The semantic type truthy cell value.

*/ - LastPublishedTime?: Date; + TruthyCellValue?: string; /** - *

The last time that this dashboard was updated.

+ *

The other names or aliases for the true cell value.

*/ - LastUpdatedTime?: Date; + TruthyCellValueSynonyms?: string[]; + + /** + *

The semantic type falsey cell value.

+ */ + FalseyCellValue?: string; + + /** + *

The other names or aliases for the false cell value.

+ */ + FalseyCellValueSynonyms?: string[]; } /** * @public * @enum */ -export const DashboardFilterAttribute = { - DASHBOARD_NAME: "DASHBOARD_NAME", - DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER", - DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER", - DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER", - QUICKSIGHT_OWNER: "QUICKSIGHT_OWNER", - QUICKSIGHT_USER: "QUICKSIGHT_USER", - QUICKSIGHT_VIEWER_OR_OWNER: "QUICKSIGHT_VIEWER_OR_OWNER", +export const TopicTimeGranularity = { + DAY: "DAY", + HOUR: "HOUR", + MINUTE: "MINUTE", + MONTH: "MONTH", + QUARTER: "QUARTER", + SECOND: "SECOND", + WEEK: "WEEK", + YEAR: "YEAR", } as const; /** * @public */ -export type DashboardFilterAttribute = (typeof DashboardFilterAttribute)[keyof typeof DashboardFilterAttribute]; +export type TopicTimeGranularity = (typeof TopicTimeGranularity)[keyof typeof TopicTimeGranularity]; /** * @public - *

A filter that you apply when searching for dashboards.

+ *

A structure that represents a calculated field.

*/ -export interface DashboardSearchFilter { +export interface TopicCalculatedField { /** - *

The comparison operator that you want to use as a filter, for example "Operator": "StringEquals". Valid values are "StringEquals" and "StringLike".

- *

If you set the operator value to "StringEquals", you need to provide an ownership related filter in the "NAME" field and the arn of the user or group whose folders you want to search in the "Value" field. For example, "Name":"DIRECT_QUICKSIGHT_OWNER", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

- *

If you set the value to "StringLike", you need to provide the name of the folders you are searching for. For example, "Name":"DASHBOARD_NAME", "Operator": "StringLike", "Value": "Test". The "StringLike" operator only supports the NAME value DASHBOARD_NAME.

+ *

The calculated field name.

*/ - Operator: FilterOperator | string | undefined; + CalculatedFieldName: string | undefined; /** - *

The name of the value that you want to use as a filter, for example, "Name": - * "QUICKSIGHT_OWNER".

- *

Valid values are defined as follows:

- *
    - *
  • - *

    - * QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as one of the dashboards's owners or viewers are returned. Implicit permissions from folders or groups are considered.

    - *
  • - *
  • - *

    - * QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as one of the owners of the dashboards are returned. Implicit permissions from folders or groups are considered.

    - *
  • - *
  • - *

    - * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as the only owner of the dashboard are returned. Implicit permissions from folders or groups are not considered.

    - *
  • - *
  • - *

    - * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as one of the owners of the dashboards are returned. Implicit permissions from folders or groups are not considered.

    - *
  • - *
  • - *

    - * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as one of the owners or viewers of the dashboards are returned. Implicit permissions from folders or groups are not considered.

    - *
  • - *
  • - *

    - * DASHBOARD_NAME: Any dashboards whose names have a substring match to this value will be returned.

    - *
  • - *
+ *

The calculated field description.

*/ - Name?: DashboardFilterAttribute | string; + CalculatedFieldDescription?: string; /** - *

The value of the named item, in this case QUICKSIGHT_USER, that you want - * to use as a filter, for example, "Value": - * "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

+ *

The calculated field expression.

*/ - Value?: string; -} + Expression: string | undefined; -/** - * @public - *

Dashboard summary.

- */ -export interface DashboardSummary { /** - *

The Amazon Resource Name (ARN) of the resource.

+ *

The other names or aliases for the calculated field.

*/ - Arn?: string; + CalculatedFieldSynonyms?: string[]; /** - *

Dashboard ID.

+ *

A boolean value that indicates if a calculated field is included in the topic.

*/ - DashboardId?: string; + IsIncludedInTopic?: boolean; /** - *

A display name for the dashboard.

+ *

A Boolean value that indicates if a calculated field is visible in the autocomplete.

*/ - Name?: string; + DisableIndexing?: boolean; /** - *

The time that this dashboard was created.

+ *

The column data role for a calculated field. Valid values for this structure are DIMENSION and MEASURE.

*/ - CreatedTime?: Date; + ColumnDataRole?: ColumnDataRole | string; /** - *

The last time that this dashboard was updated.

+ *

The level of time precision that is used to aggregate DateTime values.

*/ - LastUpdatedTime?: Date; + TimeGranularity?: TopicTimeGranularity | string; /** - *

Published version number.

+ *

The default formatting definition.

*/ - PublishedVersionNumber?: number; + DefaultFormatting?: DefaultFormatting; /** - *

The last time that this dashboard was published.

+ *

The default aggregation. Valid values for this structure are SUM, + * MAX, MIN, COUNT, + * DISTINCT_COUNT, + * and AVERAGE.

*/ - LastPublishedTime?: Date; -} + Aggregation?: DefaultAggregation | string; -/** - * @public - *

Dashboard version summary.

- */ -export interface DashboardVersionSummary { /** - *

The Amazon Resource Name (ARN) of the resource.

+ *

The order in which data is displayed for the calculated field when + * it's used in a comparative context.

*/ - Arn?: string; + ComparativeOrder?: ComparativeOrder; /** - *

The time that this dashboard version was created.

+ *

The semantic type.

*/ - CreatedTime?: Date; + SemanticType?: SemanticType; /** - *

Version number.

+ *

The list of aggregation types that are allowed for the calculated field. Valid values + * for this structure are COUNT, DISTINCT_COUNT, MIN, + * MAX, MEDIAN, SUM, AVERAGE, + * STDEV, STDEVP, VAR, + * VARP, and PERCENTILE.

*/ - VersionNumber?: number; + AllowedAggregations?: (AuthorSpecifiedAggregation | string)[]; /** - *

The HTTP status of the request.

+ *

The list of aggregation types that are not allowed for the calculated field. Valid + * values for this structure are COUNT, DISTINCT_COUNT, + * MIN, MAX, MEDIAN, SUM, + * AVERAGE, STDEV, STDEVP, VAR, + * VARP, and PERCENTILE.

*/ - Status?: ResourceStatus | string; + NotAllowedAggregations?: (AuthorSpecifiedAggregation | string)[]; /** - *

Source entity ARN.

+ *

A Boolean value that indicates whether to never aggregate calculated field in filters.

*/ - SourceEntityArn?: string; + NeverAggregateInFilter?: boolean; /** - *

Description.

+ *

The other + * names or aliases for the calculated field cell value.

*/ - Description?: string; + CellValueSynonyms?: CellValueSynonym[]; } /** * @public - *

Output column.

+ *

Represents a column in a dataset.

*/ -export interface OutputColumn { +export interface TopicColumn { /** - *

A display name for the dataset.

- */ - Name?: string; - - /** - *

A description for a column.

+ *

The name of the column.

*/ - Description?: string; + ColumnName: string | undefined; /** - *

Type.

+ *

A user-friendly name for the column.

*/ - Type?: ColumnDataType | string; -} + ColumnFriendlyName?: string; -/** - * @public - *

Dataset.

- */ -export interface DataSet { /** - *

The Amazon Resource Name (ARN) of the resource.

+ *

A description of the column and its contents.

*/ - Arn?: string; + ColumnDescription?: string; /** - *

The ID of the dataset.

+ *

The other names or aliases for the column.

*/ - DataSetId?: string; + ColumnSynonyms?: string[]; /** - *

A display name for the dataset.

+ *

The role of the column in the data. Valid values are DIMENSION and MEASURE.

*/ - Name?: string; + ColumnDataRole?: ColumnDataRole | string; /** - *

The time that this dataset was created.

+ *

The type of aggregation that is performed on the column data when + * it's queried. Valid values for this structure are SUM, MAX, + * MIN, COUNT, + * DISTINCT_COUNT, and AVERAGE.

*/ - CreatedTime?: Date; + Aggregation?: DefaultAggregation | string; /** - *

The last time that this dataset was updated.

+ *

A Boolean value that indicates whether the column is included in the query results.

*/ - LastUpdatedTime?: Date; + IsIncludedInTopic?: boolean; /** - *

Declares the physical tables that are available in the underlying data sources.

+ *

A Boolean value that indicates whether the column shows in the autocomplete functionality.

*/ - PhysicalTableMap?: Record; + DisableIndexing?: boolean; /** - *

Configures the combination and transformation of the data from the physical - * tables.

+ *

The order in which data is displayed for the column when + * it's used in a comparative context.

*/ - LogicalTableMap?: Record; + ComparativeOrder?: ComparativeOrder; /** - *

The list of columns after all transforms. These columns are available in templates, - * analyses, and dashboards.

+ *

The semantic type of data contained in the column.

*/ - OutputColumns?: OutputColumn[]; + SemanticType?: SemanticType; /** - *

A value that indicates whether you want to import the data into SPICE.

+ *

The level of time precision that is used to aggregate DateTime values.

*/ - ImportMode?: DataSetImportMode | string; + TimeGranularity?: TopicTimeGranularity | string; /** - *

The amount of SPICE capacity used by this dataset. This is 0 if the dataset isn't - * imported into SPICE.

+ *

The list of aggregation types that are allowed for the column. Valid values for this + * structure are COUNT, DISTINCT_COUNT, MIN, + * MAX, MEDIAN, SUM, AVERAGE, + * STDEV, STDEVP, VAR, + * VARP, + * and PERCENTILE.

*/ - ConsumedSpiceCapacityInBytes?: number; + AllowedAggregations?: (AuthorSpecifiedAggregation | string)[]; /** - *

Groupings of columns that work together in certain Amazon QuickSight features. - * Currently, only geospatial hierarchy is supported.

+ *

The list of aggregation types that are not allowed for the column. Valid values for this + * structure are COUNT, DISTINCT_COUNT, MIN, + * MAX, MEDIAN, SUM, AVERAGE, + * STDEV, STDEVP, VAR, + * VARP, + * and PERCENTILE.

*/ - ColumnGroups?: ColumnGroup[]; + NotAllowedAggregations?: (AuthorSpecifiedAggregation | string)[]; /** - *

The folder that contains fields and nested subfolders for your dataset.

+ *

The default formatting used for values in the column.

*/ - FieldFolders?: Record; + DefaultFormatting?: DefaultFormatting; /** - *

The row-level security configuration for the dataset.

+ *

A Boolean + * value that indicates whether to aggregate the column data when + * it's used in a filter context.

*/ - RowLevelPermissionDataSet?: RowLevelPermissionDataSet; + NeverAggregateInFilter?: boolean; /** - *

The element you can use to define tags for row-level security.

+ *

The other names or aliases for the column cell value.

*/ - RowLevelPermissionTagConfiguration?: RowLevelPermissionTagConfiguration; + CellValueSynonyms?: CellValueSynonym[]; +} +/** + * @public + *

A structure that represents a data aggregation.

+ */ +export interface DataAggregation { /** - *

A set of one or more definitions of a - * ColumnLevelPermissionRule - * .

+ *

The level of time precision that is used to aggregate DateTime values.

*/ - ColumnLevelPermissionRules?: ColumnLevelPermissionRule[]; + DatasetRowDateGranularity?: TopicTimeGranularity | string; /** - *

The usage configuration to apply to child datasets that reference this dataset as a source.

+ *

The column name for the default date.

*/ - DataSetUsageConfiguration?: DataSetUsageConfiguration; + DefaultDateColumnName?: string; } /** * @public - * @enum + *

A constant used in a category filter.

*/ -export const DataSetFilterAttribute = { - DATASET_NAME: "DATASET_NAME", - DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER", - DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER", - DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER", - QUICKSIGHT_OWNER: "QUICKSIGHT_OWNER", - QUICKSIGHT_VIEWER_OR_OWNER: "QUICKSIGHT_VIEWER_OR_OWNER", -} as const; +export interface TopicCategoryFilterConstant { + /** + *

The type of category filter constant. This element is used to specify whether a constant is a singular or collective. Valid values are SINGULAR and COLLECTIVE.

+ */ + ConstantType?: ConstantType | string; -/** - * @public - */ -export type DataSetFilterAttribute = (typeof DataSetFilterAttribute)[keyof typeof DataSetFilterAttribute]; + /** + *

A singular constant used in a category filter. This element is used to specify a single value for the constant.

+ */ + SingularConstant?: string; -/** - * @public - * @enum - */ -export const LookbackWindowSizeUnit = { - DAY: "DAY", - HOUR: "HOUR", - WEEK: "WEEK", -} as const; + /** + *

A collective constant used in a category filter. This element is used to specify a list of values for the constant.

+ */ + CollectiveConstant?: CollectiveConstant; +} /** * @public + *

A structure that represents a category filter.

*/ -export type LookbackWindowSizeUnit = (typeof LookbackWindowSizeUnit)[keyof typeof LookbackWindowSizeUnit]; +export interface TopicCategoryFilter { + /** + *

The category filter function. Valid values for this structure are EXACT and CONTAINS.

+ */ + CategoryFilterFunction?: CategoryFilterFunction | string; -/** - * @public - *

The lookback window setup of an incremental refresh configuration.

- */ -export interface LookbackWindow { /** - *

The name of the lookback window column.

+ *

The category filter type. This element is used to specify whether a filter is a simple category filter or an inverse category filter.

*/ - ColumnName: string | undefined; + CategoryFilterType?: CategoryFilterType | string; /** - *

The lookback window column size.

+ *

The constant used in a category filter.

*/ - Size: number | undefined; + Constant?: TopicCategoryFilterConstant; /** - *

The size unit that is used for the lookback window column. Valid values for this structure are HOUR, DAY, and WEEK.

+ *

A Boolean value that indicates if the filter is inverse.

*/ - SizeUnit: LookbackWindowSizeUnit | string | undefined; + Inverse?: boolean; } /** * @public - *

The incremental refresh configuration for a dataset.

+ *

A structure that represents a range constant.

*/ -export interface IncrementalRefresh { +export interface RangeConstant { /** - *

The lookback window setup for an incremental refresh configuration.

+ *

The minimum value for a range constant.

*/ - LookbackWindow: LookbackWindow | undefined; + Minimum?: string; + + /** + *

The maximum value for a range constant.

+ */ + Maximum?: string; } /** * @public - *

The refresh configuration of a dataset.

+ *

A constant value that is used in a range filter to specify the endpoints of the range.

*/ -export interface RefreshConfiguration { +export interface TopicRangeFilterConstant { /** - *

The incremental refresh for the dataset.

+ *

The data type of the constant value that is used in a range filter. Valid values for this structure are RANGE.

*/ - IncrementalRefresh: IncrementalRefresh | undefined; + ConstantType?: ConstantType | string; + + /** + *

The value of the constant that is used to specify the endpoints of a range filter.

+ */ + RangeConstant?: RangeConstant; } /** * @public - *

The refresh properties of a dataset.

+ *

A filter used to restrict data based on a range of dates or times.

*/ -export interface DataSetRefreshProperties { +export interface TopicDateRangeFilter { /** - *

The refresh configuration for a dataset.

+ *

A Boolean value that indicates whether the date range filter should include the boundary values. If + * set to true, the filter includes the start and end dates. If set to false, the filter + * excludes them.

*/ - RefreshConfiguration: RefreshConfiguration | undefined; + Inclusive?: boolean; + + /** + *

The constant used in a date range filter.

+ */ + Constant?: TopicRangeFilterConstant; } /** * @public - *

A filter that you apply when searching for datasets.

+ * @enum */ -export interface DataSetSearchFilter { - /** - *

The comparison operator that you want to use as a filter, for example "Operator": "StringEquals". Valid values are "StringEquals" and "StringLike".

- *

If you set the operator value to "StringEquals", you need to provide an ownership related filter in the "NAME" field and the arn of the user or group whose datasets you want to search in the "Value" field. For example, "Name":"QUICKSIGHT_OWNER", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east- 1:1:user/default/UserName1".

- *

If you set the value to "StringLike", you need to provide the name of the datasets you are searching for. For example, "Name":"DATASET_NAME", "Operator": "StringLike", "Value": "Test". The "StringLike" operator only supports the NAME value DATASET_NAME.

- */ - Operator: FilterOperator | string | undefined; +export const FilterClass = { + CONDITIONAL_VALUE_FILTER: "CONDITIONAL_VALUE_FILTER", + ENFORCED_VALUE_FILTER: "ENFORCED_VALUE_FILTER", + NAMED_VALUE_FILTER: "NAMED_VALUE_FILTER", +} as const; - /** - *

The name of the value that you want to use as a filter, for example, "Name": - * "QUICKSIGHT_OWNER".

- *

Valid values are defined as follows:

- *
    - *
  • - *

    - * QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the dataset owners or viewers are returned. Implicit permissions from folders or groups are considered.

    - *
  • - *
  • - *

    - * QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners of the dataset are returned. Implicit permissions from folders or groups are considered.

    - *
  • - *
  • - *

    - * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as the only owner of the dataset are returned. Implicit permissions from folders or groups are not considered.

    - *
  • - *
  • - *

    - * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners if the dataset are returned. Implicit permissions from folders or groups are not considered.

    - *
  • - *
  • - *

    - * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners or viewers of the dataset are returned. Implicit permissions from folders or groups are not considered.

    - *
  • - *
  • - *

    - * DATASET_NAME: Any datasets whose names have a substring match to this value will be returned.

    - *
  • - *
- */ - Name: DataSetFilterAttribute | string | undefined; +/** + * @public + */ +export type FilterClass = (typeof FilterClass)[keyof typeof FilterClass]; - /** - *

The value of the named item, in this case QUICKSIGHT_OWNER, that you want - * to use as a filter, for example, "Value": - * "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

- */ - Value: string | undefined; -} +/** + * @public + * @enum + */ +export const NamedFilterType = { + CATEGORY_FILTER: "CATEGORY_FILTER", + DATE_RANGE_FILTER: "DATE_RANGE_FILTER", + NUMERIC_EQUALITY_FILTER: "NUMERIC_EQUALITY_FILTER", + NUMERIC_RANGE_FILTER: "NUMERIC_RANGE_FILTER", + RELATIVE_DATE_FILTER: "RELATIVE_DATE_FILTER", +} as const; /** * @public - *

Dataset summary.

*/ -export interface DataSetSummary { - /** - *

The Amazon Resource Name (ARN) of the dataset.

- */ - Arn?: string; +export type NamedFilterType = (typeof NamedFilterType)[keyof typeof NamedFilterType]; - /** - *

The ID of the dataset.

- */ - DataSetId?: string; +/** + * @public + * @enum + */ +export const NamedFilterAggType = { + AVERAGE: "AVERAGE", + COUNT: "COUNT", + DISTINCT_COUNT: "DISTINCT_COUNT", + MAX: "MAX", + MEDIAN: "MEDIAN", + MIN: "MIN", + NO_AGGREGATION: "NO_AGGREGATION", + STDEV: "STDEV", + STDEVP: "STDEVP", + SUM: "SUM", + VAR: "VAR", + VARP: "VARP", +} as const; + +/** + * @public + */ +export type NamedFilterAggType = (typeof NamedFilterAggType)[keyof typeof NamedFilterAggType]; +/** + * @public + *

A structure that represents a singular filter constant, used in filters to specify a single value to match against.

+ */ +export interface TopicSingularFilterConstant { /** - *

A display name for the dataset.

+ *

The type of the singular filter constant. Valid values for this structure are SINGULAR.

*/ - Name?: string; + ConstantType?: ConstantType | string; /** - *

The time that this dataset was created.

+ *

The value of the singular filter constant.

*/ - CreatedTime?: Date; + SingularConstant?: string; +} +/** + * @public + *

A filter that filters topics based on the value of a numeric field. The filter includes only topics whose numeric field value matches the specified value.

+ */ +export interface TopicNumericEqualityFilter { /** - *

The last time that this dataset was updated.

+ *

The constant used in a numeric equality filter.

*/ - LastUpdatedTime?: Date; + Constant?: TopicSingularFilterConstant; /** - *

A value that indicates whether you want to import the data into SPICE.

+ *

An aggregation function that specifies how to calculate the value of a numeric field for + * a topic. Valid values for this structure are NO_AGGREGATION, SUM, + * AVERAGE, COUNT, DISTINCT_COUNT, MAX, + * MEDIAN, MIN, STDEV, STDEVP, + * VAR, + * and VARP.

*/ - ImportMode?: DataSetImportMode | string; + Aggregation?: NamedFilterAggType | string; +} +/** + * @public + *

A filter that filters topics based on the value of a numeric field. The filter includes only topics whose numeric field value falls within the specified range.

+ */ +export interface TopicNumericRangeFilter { /** - *

The row-level security configuration for the dataset.

+ *

A Boolean value that indicates whether the endpoints of the numeric range are included in the filter. + * If set to true, topics whose numeric field value is equal to the endpoint values will be + * included in the filter. If set to false, topics whose numeric field value is equal to the + * endpoint values will be excluded from the filter.

*/ - RowLevelPermissionDataSet?: RowLevelPermissionDataSet; + Inclusive?: boolean; /** - *

Whether or not the row level permission tags are applied.

+ *

The constant used in a + * numeric range filter.

*/ - RowLevelPermissionTagConfigurationApplied?: boolean; + Constant?: TopicRangeFilterConstant; /** - *

A value that indicates if the dataset has column level permission configured.

+ *

An aggregation function that specifies how to calculate the value of a numeric field for + * a topic, Valid values for this structure are NO_AGGREGATION, SUM, + * AVERAGE, COUNT, DISTINCT_COUNT, MAX, + * MEDIAN, MIN, STDEV, STDEVP, + * VAR, + * and VARP.

*/ - ColumnLevelPermissionRulesApplied?: boolean; + Aggregation?: NamedFilterAggType | string; } /** * @public * @enum */ -export const DataSourceErrorInfoType = { - ACCESS_DENIED: "ACCESS_DENIED", - CONFLICT: "CONFLICT", - COPY_SOURCE_NOT_FOUND: "COPY_SOURCE_NOT_FOUND", - ENGINE_VERSION_NOT_SUPPORTED: "ENGINE_VERSION_NOT_SUPPORTED", - GENERIC_SQL_FAILURE: "GENERIC_SQL_FAILURE", - TIMEOUT: "TIMEOUT", - UNKNOWN: "UNKNOWN", - UNKNOWN_HOST: "UNKNOWN_HOST", +export const TopicRelativeDateFilterFunction = { + LAST: "LAST", + NEXT: "NEXT", + NOW: "NOW", + PREVIOUS: "PREVIOUS", + THIS: "THIS", } as const; /** * @public */ -export type DataSourceErrorInfoType = (typeof DataSourceErrorInfoType)[keyof typeof DataSourceErrorInfoType]; +export type TopicRelativeDateFilterFunction = + (typeof TopicRelativeDateFilterFunction)[keyof typeof TopicRelativeDateFilterFunction]; /** * @public - *

Error information for the data source creation or update.

+ *

A structure that represents a relative date filter.

*/ -export interface DataSourceErrorInfo { +export interface TopicRelativeDateFilter { /** - *

Error type.

+ *

The level of time precision that is used to aggregate DateTime values.

*/ - Type?: DataSourceErrorInfoType | string; + TimeGranularity?: TopicTimeGranularity | string; /** - *

Error message.

+ *

The function to be used in a relative date filter to determine the range of dates to include in the results. Valid values for this structure are BEFORE, AFTER, and BETWEEN.

*/ - Message?: string; + RelativeDateFilterFunction?: TopicRelativeDateFilterFunction | string; + + /** + *

The constant used in a + * relative date filter.

+ */ + Constant?: TopicSingularFilterConstant; } /** * @public - *

The structure of a data source.

+ *

A structure that represents a filter used to select items for a topic.

*/ -export interface DataSource { - /** - *

The Amazon Resource Name (ARN) of the data source.

- */ - Arn?: string; - - /** - *

The ID of the data source. This ID is unique per Amazon Web Services Region for each - * Amazon Web Services account.

- */ - DataSourceId?: string; - +export interface TopicFilter { /** - *

A display name for the data source.

+ *

A description of the filter used to select items for a topic.

*/ - Name?: string; + FilterDescription?: string; /** - *

The type of the data source. This type indicates which database engine the data source - * connects to.

+ *

The class of the filter. Valid values for this structure are + * ENFORCED_VALUE_FILTER, + * CONDITIONAL_VALUE_FILTER, + * and NAMED_VALUE_FILTER.

*/ - Type?: DataSourceType | string; + FilterClass?: FilterClass | string; /** - *

The HTTP status of the request.

+ *

The name of the filter.

*/ - Status?: ResourceStatus | string; + FilterName: string | undefined; /** - *

The time that this data source was created.

+ *

The other names or aliases for the filter.

*/ - CreatedTime?: Date; + FilterSynonyms?: string[]; /** - *

The last time that this data source was updated.

+ *

The name of the field that the filter operates on.

*/ - LastUpdatedTime?: Date; + OperandFieldName: string | undefined; /** - *

The parameters that Amazon QuickSight uses to connect to your underlying source. This - * is a variant type structure. For this structure to be valid, only one of the attributes - * can be non-null.

+ *

The type of the filter. Valid values for this structure are + * CATEGORY_FILTER, NUMERIC_EQUALITY_FILTER, + * NUMERIC_RANGE_FILTER, + * DATE_RANGE_FILTER, + * and RELATIVE_DATE_FILTER.

*/ - DataSourceParameters?: DataSourceParameters; + FilterType?: NamedFilterType | string; /** - *

A set of alternate data source parameters that you want to share for the credentials - * stored with this data source. The credentials are applied in tandem with the data source - * parameters when you copy a data source by using a create or update request. The API - * operation compares the DataSourceParameters structure that's in the request - * with the structures in the AlternateDataSourceParameters allow list. If the - * structures are an exact match, the request is allowed to use the credentials from this - * existing data source. If the AlternateDataSourceParameters list is null, - * the Credentials originally used with this DataSourceParameters - * are automatically allowed.

+ *

The category filter that is associated with this filter.

*/ - AlternateDataSourceParameters?: DataSourceParameters[]; + CategoryFilter?: TopicCategoryFilter; /** - *

The VPC connection information. You need to use this parameter only when you want - * Amazon QuickSight to use a VPC connection when connecting to your underlying source.

+ *

The numeric equality filter.

*/ - VpcConnectionProperties?: VpcConnectionProperties; + NumericEqualityFilter?: TopicNumericEqualityFilter; /** - *

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your - * underlying source.

+ *

The numeric range filter.

*/ - SslProperties?: SslProperties; + NumericRangeFilter?: TopicNumericRangeFilter; /** - *

Error information from the last update or the creation of the data source.

+ *

The date range filter.

*/ - ErrorInfo?: DataSourceErrorInfo; + DateRangeFilter?: TopicDateRangeFilter; /** - *

The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.

+ *

The relative date filter.

*/ - SecretArn?: string; + RelativeDateFilter?: TopicRelativeDateFilter; } /** * @public * @enum */ -export const DataSourceFilterAttribute = { - DATASOURCE_NAME: "DATASOURCE_NAME", - DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER", - DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER", - DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER", +export const NamedEntityAggType = { + AVERAGE: "AVERAGE", + COUNT: "COUNT", + CUSTOM: "CUSTOM", + DISTINCT_COUNT: "DISTINCT_COUNT", + MAX: "MAX", + MEDIAN: "MEDIAN", + MIN: "MIN", + PERCENTILE: "PERCENTILE", + STDEV: "STDEV", + STDEVP: "STDEVP", + SUM: "SUM", + VAR: "VAR", + VARP: "VARP", } as const; /** * @public */ -export type DataSourceFilterAttribute = (typeof DataSourceFilterAttribute)[keyof typeof DataSourceFilterAttribute]; +export type NamedEntityAggType = (typeof NamedEntityAggType)[keyof typeof NamedEntityAggType]; /** * @public - *

A filter that you apply when searching for data sources.

+ *

A structure that represents a metric.

*/ -export interface DataSourceSearchFilter { - /** - *

The comparison operator that you want to use as a filter, for example "Operator": "StringEquals". Valid values are "StringEquals" and "StringLike".

- *

If you set the operator value to "StringEquals", you need to provide an ownership related filter in the "NAME" field and the arn of the user or group whose data sources you want to search in the "Value" field. For example, "Name":"DIRECT_QUICKSIGHT_OWNER", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

- *

If you set the value to "StringLike", you need to provide the name of the data sources you are searching for. For example, "Name":"DATASOURCE_NAME", "Operator": "StringLike", "Value": "Test". The "StringLike" operator only supports the NAME value DATASOURCE_NAME.

- */ - Operator: FilterOperator | string | undefined; - +export interface NamedEntityDefinitionMetric { /** - *

The name of the value that you want to use as a filter, for example, "Name": - * "DIRECT_QUICKSIGHT_OWNER".

- *

Valid values are defined as follows:

- *
    - *
  • - *

    - * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any data sources with that ARN listed as one of the owners or viewers of the data sources are returned. Implicit permissions from folders or groups are not considered.

    - *
  • - *
  • - *

    - * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any data sources with that ARN listed as one of the owners if the data source are returned. Implicit permissions from folders or groups are not considered.

    - *
  • - *
  • - *

    - * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and any data sources with that ARN listed as the only owner of the data source are returned. Implicit permissions from folders or groups are not considered.

    - *
  • - *
  • - *

    - * DATASOURCE_NAME: Any data sources whose names have a substring match to the provided value are returned.

    - *
  • - *
+ *

The aggregation of a named entity. Valid values for this structure are SUM, + * MIN, MAX, COUNT, AVERAGE, + * DISTINCT_COUNT, STDEV, STDEVP, VAR, + * VARP, PERCENTILE, + * MEDIAN, + * and CUSTOM.

*/ - Name: DataSourceFilterAttribute | string | undefined; + Aggregation?: NamedEntityAggType | string; /** - *

The value of the named item, for example DIRECT_QUICKSIGHT_OWNER, that you want - * to use as a filter, for example, "Value": - * "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

+ *

The additional parameters for an aggregation function.

*/ - Value: string | undefined; + AggregationFunctionParameters?: Record; } /** * @public - *

A DataSourceSummary object that returns a summary of a data source.

+ * @enum */ -export interface DataSourceSummary { - /** - *

The arn of the datasource.

- */ - Arn?: string; +export const PropertyRole = { + ID: "ID", + PRIMARY: "PRIMARY", +} as const; + +/** + * @public + */ +export type PropertyRole = (typeof PropertyRole)[keyof typeof PropertyRole]; + +/** + * @public + * @enum + */ +export const PropertyUsage = { + DIMENSION: "DIMENSION", + INHERIT: "INHERIT", + MEASURE: "MEASURE", +} as const; + +/** + * @public + */ +export type PropertyUsage = (typeof PropertyUsage)[keyof typeof PropertyUsage]; +/** + * @public + *

A structure that represents a named entity.

+ */ +export interface NamedEntityDefinition { /** - *

The unique ID of the data source.

+ *

The name of the entity.

*/ - DataSourceId?: string; + FieldName?: string; /** - *

The name of the data source.

+ *

The property name to be used for the named entity.

*/ - Name?: string; + PropertyName?: string; /** - *

The type of the data source.

+ *

The property role. Valid values for this structure are PRIMARY and ID.

*/ - Type?: DataSourceType | string; + PropertyRole?: PropertyRole | string; /** - *

The date and time that the data source was created. This value is expressed in MM-DD-YYYY HH:MM:SS format.

+ *

The property usage. Valid values for this structure are INHERIT, + * DIMENSION, + * and MEASURE.

*/ - CreatedTime?: Date; + PropertyUsage?: PropertyUsage | string; /** - *

The date and time the data source was last updated. This value is expressed in MM-DD-YYYY HH:MM:SS format.

+ *

The definition of a metric.

*/ - LastUpdatedTime?: Date; + Metric?: NamedEntityDefinitionMetric; } /** * @public + *

A structure that represents a semantic entity type.

*/ -export interface DeleteAccountCustomizationRequest { +export interface SemanticEntityType { /** - *

The ID for the Amazon Web Services account that you want to delete Amazon QuickSight customizations from in - * this Amazon Web Services Region.

+ *

The semantic entity type name.

*/ - AwsAccountId: string | undefined; + TypeName?: string; /** - *

The Amazon QuickSight namespace that you're deleting the customizations from.

+ *

The semantic entity sub type name.

*/ - Namespace?: string; + SubTypeName?: string; + + /** + *

The semantic entity type parameters.

+ */ + TypeParameters?: Record; } /** * @public + *

A structure that represents a named entity.

*/ -export interface DeleteAccountCustomizationResponse { +export interface TopicNamedEntity { /** - *

The Amazon Web Services request ID for this operation.

+ *

The name of the named entity.

*/ - RequestId?: string; + EntityName: string | undefined; /** - *

The HTTP status of the request.

+ *

The description of the named entity.

*/ - Status?: number; -} + EntityDescription?: string; -/** - * @public - */ -export interface DeleteAccountSubscriptionRequest { /** - *

The Amazon Web Services account ID of the account that you want to delete.

+ *

The other + * names or aliases for the named entity.

*/ - AwsAccountId: string | undefined; -} + EntitySynonyms?: string[]; -/** - * @public - */ -export interface DeleteAccountSubscriptionResponse { /** - *

The Amazon Web Services request ID for this operation.

+ *

The type of named entity that a topic represents.

*/ - RequestId?: string; + SemanticEntityType?: SemanticEntityType; /** - *

The HTTP status of the request.

+ *

The definition of a named entity.

*/ - Status?: number; + Definition?: NamedEntityDefinition[]; } /** * @public + *

A structure that represents a dataset.

*/ -export interface DeleteAnalysisRequest { +export interface DatasetMetadata { /** - *

The ID of the Amazon Web Services account where you want to delete an analysis.

+ *

The Amazon Resource Name (ARN) of the dataset.

*/ - AwsAccountId: string | undefined; - - /** - *

The ID of the analysis that you're deleting.

- */ - AnalysisId: string | undefined; + DatasetArn: string | undefined; /** - *

A value that specifies the number of days that Amazon QuickSight waits before it deletes the - * analysis. You can't use this parameter with the ForceDeleteWithoutRecovery - * option in the same API call. The default value is 30.

+ *

The name of the dataset.

*/ - RecoveryWindowInDays?: number; + DatasetName?: string; /** - *

This option defaults to the value NoForceDeleteWithoutRecovery. To - * immediately delete the analysis, add the ForceDeleteWithoutRecovery option. - * You can't restore an analysis after it's deleted.

+ *

The description of the dataset.

*/ - ForceDeleteWithoutRecovery?: boolean; -} + DatasetDescription?: string; -/** - * @public - */ -export interface DeleteAnalysisResponse { /** - *

The HTTP status of the request.

+ *

The definition of a data aggregation.

*/ - Status?: number; + DataAggregation?: DataAggregation; /** - *

The Amazon Resource Name (ARN) of the deleted analysis.

+ *

The list of filter definitions.

*/ - Arn?: string; + Filters?: TopicFilter[]; /** - *

The ID of the deleted analysis.

+ *

The list of column definitions.

*/ - AnalysisId?: string; + Columns?: TopicColumn[]; /** - *

The date and time that the analysis is scheduled to be deleted.

+ *

The list of calculated field definitions.

*/ - DeletionTime?: Date; + CalculatedFields?: TopicCalculatedField[]; /** - *

The Amazon Web Services request ID for this operation.

+ *

The list of named entities definitions.

*/ - RequestId?: string; + NamedEntities?: TopicNamedEntity[]; } /** * @public + *

A structure that describes the details of a topic, such as its name, description, and associated data sets.

*/ -export interface DeleteDashboardRequest { +export interface TopicDetails { /** - *

The ID of the Amazon Web Services account that contains the dashboard that you're - * deleting.

+ *

The name of the topic.

*/ - AwsAccountId: string | undefined; + Name?: string; /** - *

The ID for the dashboard.

+ *

The description of the topic.

*/ - DashboardId: string | undefined; + Description?: string; /** - *

The version number of the dashboard. If the version number property is provided, only - * the specified version of the dashboard is deleted.

+ *

The data sets that the topic is associated with.

*/ - VersionNumber?: number; + DataSets?: DatasetMetadata[]; } /** * @public */ -export interface DeleteDashboardResponse { +export interface CreateTopicRequest { /** - *

The HTTP status of the request.

+ *

The ID of the Amazon Web Services account that you want to create a topic in.

*/ - Status?: number; + AwsAccountId: string | undefined; /** - *

The Secure Socket Layer (SSL) properties that apply for the resource.

+ *

The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

*/ - Arn?: string; + TopicId: string | undefined; /** - *

The ID of the dashboard.

+ *

The definition of a topic to create.

*/ - DashboardId?: string; + Topic: TopicDetails | undefined; /** - *

The Amazon Web Services request ID for this operation.

+ *

Contains a map of the key-value pairs for the resource tag or tags that are assigned to + * the dataset.

*/ - RequestId?: string; + Tags?: Tag[]; } /** * @public */ -export interface DeleteDataSetRequest { - /** - *

The Amazon Web Services account ID.

- */ - AwsAccountId: string | undefined; - +export interface CreateTopicResponse { /** - *

The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

+ *

The Amazon Resource Name (ARN) of the topic.

*/ - DataSetId: string | undefined; -} + Arn?: string; -/** - * @public - */ -export interface DeleteDataSetResponse { /** - *

The Amazon Resource Name (ARN) of the dataset.

+ *

The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region + * for each Amazon Web Services account.

*/ - Arn?: string; + TopicId?: string; /** - *

The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

+ *

The Amazon Resource Name (ARN) of the topic refresh.

*/ - DataSetId?: string; + RefreshArn?: string; /** *

The Amazon Web Services request ID for this operation.

@@ -5505,144 +6224,111 @@ export interface DeleteDataSetResponse { /** * @public + * @enum */ -export interface DeleteDataSetRefreshPropertiesRequest { - /** - *

The Amazon Web Services account ID.

- */ - AwsAccountId: string | undefined; - - /** - *

The ID of the dataset.

- */ - DataSetId: string | undefined; -} +export const TopicScheduleType = { + DAILY: "DAILY", + HOURLY: "HOURLY", + MONTHLY: "MONTHLY", + WEEKLY: "WEEKLY", +} as const; /** * @public */ -export interface DeleteDataSetRefreshPropertiesResponse { - /** - *

The Amazon Web Services request ID for this operation.

- */ - RequestId?: string; - - /** - *

The HTTP status of the request.

- */ - Status?: number; -} +export type TopicScheduleType = (typeof TopicScheduleType)[keyof typeof TopicScheduleType]; /** * @public + *

A structure that represents a topic refresh schedule.

*/ -export interface DeleteDataSourceRequest { +export interface TopicRefreshSchedule { /** - *

The Amazon Web Services account ID.

+ *

A Boolean value that controls whether to schedule is enabled.

*/ - AwsAccountId: string | undefined; + IsEnabled: boolean | undefined; /** - *

The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

+ *

A Boolean value that controls whether to schedule runs at the same schedule that is specified in + * SPICE dataset.

*/ - DataSourceId: string | undefined; -} + BasedOnSpiceSchedule: boolean | undefined; -/** - * @public - */ -export interface DeleteDataSourceResponse { /** - *

The Amazon Resource Name (ARN) of the data source that you deleted.

+ *

The starting date and time for the refresh schedule.

*/ - Arn?: string; + StartingAt?: Date; /** - *

The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

+ *

The timezone that you want the refresh schedule to use.

*/ - DataSourceId?: string; + Timezone?: string; /** - *

The Amazon Web Services request ID for this operation.

+ *

The time of day when the refresh should run, for + * example, Monday-Sunday.

*/ - RequestId?: string; + RepeatAt?: string; /** - *

The HTTP status of the request.

+ *

The type of refresh schedule. Valid values for this structure are HOURLY, + * DAILY, + * WEEKLY, + * and MONTHLY.

*/ - Status?: number; + TopicScheduleType?: TopicScheduleType | string; } /** * @public */ -export interface DeleteFolderRequest { +export interface CreateTopicRefreshScheduleRequest { /** - *

The ID for the Amazon Web Services account that contains the folder.

+ *

The ID of the Amazon Web Services account that contains the topic + * you're creating a refresh schedule for.

*/ AwsAccountId: string | undefined; /** - *

The ID of the folder.

- */ - FolderId: string | undefined; -} - -/** - * @public - */ -export interface DeleteFolderResponse { - /** - *

The HTTP status of the request.

+ *

The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

*/ - Status?: number; + TopicId: string | undefined; /** - *

The Amazon Resource Name of the deleted folder.

+ *

The Amazon Resource Name (ARN) of the dataset.

*/ - Arn?: string; + DatasetArn: string | undefined; /** - *

The ID of the folder.

+ *

The name of the dataset.

*/ - FolderId?: string; + DatasetName?: string; /** - *

The Amazon Web Services request ID for this operation.

+ *

The definition of a refresh schedule.

*/ - RequestId?: string; + RefreshSchedule: TopicRefreshSchedule | undefined; } /** * @public */ -export interface DeleteFolderMembershipRequest { - /** - *

The ID for the Amazon Web Services account that contains the folder.

- */ - AwsAccountId: string | undefined; - +export interface CreateTopicRefreshScheduleResponse { /** - *

The Folder ID.

+ *

The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

*/ - FolderId: string | undefined; + TopicId?: string; /** - *

The ID of the asset (the dashboard, analysis, or dataset) that you want to delete.

+ *

The Amazon Resource Name (ARN) of the topic.

*/ - MemberId: string | undefined; + TopicArn?: string; /** - *

The type of the member, including DASHBOARD, ANALYSIS, and DATASET - *

+ *

The Amazon Resource Name (ARN) of the dataset.

*/ - MemberType: MemberType | string | undefined; -} + DatasetArn?: string; -/** - * @public - */ -export interface DeleteFolderMembershipResponse { /** *

The HTTP status of the request.

*/ @@ -5657,139 +6343,116 @@ export interface DeleteFolderMembershipResponse { /** * @public */ -export interface DeleteGroupRequest { - /** - *

The name of the group that you want to delete.

- */ - GroupName: string | undefined; - +export interface CreateVPCConnectionRequest { /** - *

The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the - * Amazon Web Services account that contains your Amazon QuickSight account.

+ *

The Amazon Web Services account ID of the account where you want to create a new VPC + * connection.

*/ AwsAccountId: string | undefined; /** - *

The namespace of the group that you want to delete.

+ *

The ID of the VPC connection that + * you're creating. This ID is a unique identifier for each Amazon Web Services Region in an + * Amazon Web Services account.

*/ - Namespace: string | undefined; -} + VPCConnectionId: string | undefined; -/** - * @public - */ -export interface DeleteGroupResponse { /** - *

The Amazon Web Services request ID for this operation.

+ *

The display name for the VPC connection.

*/ - RequestId?: string; + Name: string | undefined; /** - *

The HTTP status of the request.

+ *

A list of subnet IDs for the VPC connection.

*/ - Status?: number; -} + SubnetIds: string[] | undefined; -/** - * @public - */ -export interface DeleteGroupMembershipRequest { /** - *

The name of the user that you want to delete from the group membership.

+ *

A list of security group IDs for the VPC connection.

*/ - MemberName: string | undefined; + SecurityGroupIds: string[] | undefined; /** - *

The name of the group that you want to delete the user from.

+ *

A list of IP addresses of DNS resolver endpoints for the VPC connection.

*/ - GroupName: string | undefined; + DnsResolvers?: string[]; /** - *

The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the - * Amazon Web Services account that contains your Amazon QuickSight account.

+ *

The IAM role to associate with the VPC connection.

*/ - AwsAccountId: string | undefined; + RoleArn: string | undefined; /** - *

The namespace of the group that you want to remove a user from.

+ *

A map of the key-value pairs for the resource tag or tags assigned to the VPC + * connection.

*/ - Namespace: string | undefined; + Tags?: Tag[]; } /** * @public + * @enum */ -export interface DeleteGroupMembershipResponse { - /** - *

The Amazon Web Services request ID for this operation.

- */ - RequestId?: string; - - /** - *

The HTTP status of the request.

- */ - Status?: number; -} +export const VPCConnectionAvailabilityStatus = { + AVAILABLE: "AVAILABLE", + PARTIALLY_AVAILABLE: "PARTIALLY_AVAILABLE", + UNAVAILABLE: "UNAVAILABLE", +} as const; /** * @public */ -export interface DeleteIAMPolicyAssignmentRequest { - /** - *

The Amazon Web Services account ID where you want to delete the IAM policy assignment.

- */ - AwsAccountId: string | undefined; +export type VPCConnectionAvailabilityStatus = + (typeof VPCConnectionAvailabilityStatus)[keyof typeof VPCConnectionAvailabilityStatus]; - /** - *

The name of the assignment.

- */ - AssignmentName: string | undefined; - - /** - *

The namespace that contains the assignment.

- */ - Namespace: string | undefined; -} +/** + * @public + * @enum + */ +export const VPCConnectionResourceStatus = { + CREATION_FAILED: "CREATION_FAILED", + CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS", + CREATION_SUCCESSFUL: "CREATION_SUCCESSFUL", + DELETED: "DELETED", + DELETION_FAILED: "DELETION_FAILED", + DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", + UPDATE_SUCCESSFUL: "UPDATE_SUCCESSFUL", +} as const; /** * @public */ -export interface DeleteIAMPolicyAssignmentResponse { - /** - *

The name of the assignment.

- */ - AssignmentName?: string; +export type VPCConnectionResourceStatus = + (typeof VPCConnectionResourceStatus)[keyof typeof VPCConnectionResourceStatus]; +/** + * @public + */ +export interface CreateVPCConnectionResponse { /** - *

The Amazon Web Services request ID for this operation.

+ *

The Amazon Resource Name (ARN) of the VPC connection.

*/ - RequestId?: string; + Arn?: string; /** - *

The HTTP status of the request.

+ *

The ID for the VPC connection that + * you're creating. This ID is unique per Amazon Web Services Region for each Amazon Web Services + * account.

*/ - Status?: number; -} + VPCConnectionId?: string; -/** - * @public - */ -export interface DeleteNamespaceRequest { /** - *

The ID for the Amazon Web Services account that you want to delete the Amazon QuickSight namespace from.

+ *

The status of the creation of the VPC connection.

*/ - AwsAccountId: string | undefined; + CreationStatus?: VPCConnectionResourceStatus | string; /** - *

The namespace that you want to delete.

+ *

The availability status of the VPC connection.

*/ - Namespace: string | undefined; -} + AvailabilityStatus?: VPCConnectionAvailabilityStatus | string; -/** - * @public - */ -export interface DeleteNamespaceResponse { /** *

The Amazon Web Services request ID for this operation.

*/ @@ -5803,79 +6466,71 @@ export interface DeleteNamespaceResponse { /** * @public + * @enum */ -export interface DeleteRefreshScheduleRequest { - /** - *

The ID of the dataset.

- */ - DataSetId: string | undefined; - - /** - *

The Amazon Web Services account ID.

- */ - AwsAccountId: string | undefined; - - /** - *

The ID of the refresh schedule.

- */ - ScheduleId: string | undefined; -} +export const DashboardErrorType = { + ACCESS_DENIED: "ACCESS_DENIED", + COLUMN_GEOGRAPHIC_ROLE_MISMATCH: "COLUMN_GEOGRAPHIC_ROLE_MISMATCH", + COLUMN_REPLACEMENT_MISSING: "COLUMN_REPLACEMENT_MISSING", + COLUMN_TYPE_MISMATCH: "COLUMN_TYPE_MISMATCH", + DATA_SET_NOT_FOUND: "DATA_SET_NOT_FOUND", + INTERNAL_FAILURE: "INTERNAL_FAILURE", + PARAMETER_NOT_FOUND: "PARAMETER_NOT_FOUND", + PARAMETER_TYPE_INVALID: "PARAMETER_TYPE_INVALID", + PARAMETER_VALUE_INCOMPATIBLE: "PARAMETER_VALUE_INCOMPATIBLE", + SOURCE_NOT_FOUND: "SOURCE_NOT_FOUND", +} as const; /** * @public */ -export interface DeleteRefreshScheduleResponse { - /** - *

The HTTP status of the request.

- */ - Status?: number; +export type DashboardErrorType = (typeof DashboardErrorType)[keyof typeof DashboardErrorType]; +/** + * @public + *

Dashboard error.

+ */ +export interface DashboardError { /** - *

The Amazon Web Services request ID for this operation.

+ *

Type.

*/ - RequestId?: string; + Type?: DashboardErrorType | string; /** - *

The ID of the refresh schedule.

+ *

Message.

*/ - ScheduleId?: string; + Message?: string; /** - *

The Amazon Resource Name (ARN) for the refresh schedule.

+ *

Lists the violated entities that caused the dashboard error.

*/ - Arn?: string; + ViolatedEntities?: Entity[]; } /** * @public + *

Dashboard version.

*/ -export interface DeleteTemplateRequest { +export interface DashboardVersion { /** - *

The ID of the Amazon Web Services account that contains the template that you're deleting.

+ *

The time that this dashboard version was created.

*/ - AwsAccountId: string | undefined; + CreatedTime?: Date; /** - *

An ID for the template you want to delete.

+ *

Errors associated with this dashboard version.

*/ - TemplateId: string | undefined; + Errors?: DashboardError[]; /** - *

Specifies the version of the template that you want to delete. - * If you don't provide a version number, DeleteTemplate deletes all versions of the template. - *

+ *

Version number for this version of the dashboard.

*/ VersionNumber?: number; -} -/** - * @public - */ -export interface DeleteTemplateResponse { /** - *

The Amazon Web Services request ID for this operation.

+ *

The HTTP status of the request.

*/ - RequestId?: string; + Status?: ResourceStatus | string; /** *

The Amazon Resource Name (ARN) of the resource.

@@ -5883,847 +6538,769 @@ export interface DeleteTemplateResponse { Arn?: string; /** - *

An ID for the template.

+ *

Source entity ARN.

*/ - TemplateId?: string; + SourceEntityArn?: string; /** - *

The HTTP status of the request.

+ *

The Amazon Resource Numbers (ARNs) for the datasets that are associated with this + * version of the dashboard.

*/ - Status?: number; -} + DataSetArns?: string[]; -/** - * @public - */ -export interface DeleteTemplateAliasRequest { /** - *

The ID of the Amazon Web Services account that contains the item to delete.

+ *

Description.

*/ - AwsAccountId: string | undefined; + Description?: string; /** - *

The ID for the template that the specified alias is for.

+ *

The ARN of the theme associated with a version of the dashboard.

*/ - TemplateId: string | undefined; + ThemeArn?: string; /** - *

The name for the template alias. To delete a specific alias, you delete the version that the - * alias points to. You can specify the alias name, or specify the latest version of the - * template by providing the keyword $LATEST in the AliasName - * parameter.

+ *

A list of the associated sheets with the unique identifier and name of each sheet.

*/ - AliasName: string | undefined; + Sheets?: Sheet[]; } /** * @public + *

Dashboard.

*/ -export interface DeleteTemplateAliasResponse { +export interface Dashboard { /** - *

The HTTP status of the request.

+ *

Dashboard ID.

*/ - Status?: number; + DashboardId?: string; /** - *

An ID for the template associated with the deletion.

+ *

The Amazon Resource Name (ARN) of the resource.

*/ - TemplateId?: string; + Arn?: string; /** - *

The name for the template alias.

+ *

A display name for the dashboard.

*/ - AliasName?: string; + Name?: string; /** - *

The Amazon Resource Name (ARN) of the template you want to delete.

+ *

Version.

*/ - Arn?: string; + Version?: DashboardVersion; /** - *

The Amazon Web Services request ID for this operation.

+ *

The time that this dashboard was created.

*/ - RequestId?: string; + CreatedTime?: Date; + + /** + *

The last time that this dashboard was published.

+ */ + LastPublishedTime?: Date; + + /** + *

The last time that this dashboard was updated.

+ */ + LastUpdatedTime?: Date; } /** * @public + * @enum */ -export interface DeleteThemeRequest { +export const DashboardFilterAttribute = { + DASHBOARD_NAME: "DASHBOARD_NAME", + DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER", + DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER", + DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER", + QUICKSIGHT_OWNER: "QUICKSIGHT_OWNER", + QUICKSIGHT_USER: "QUICKSIGHT_USER", + QUICKSIGHT_VIEWER_OR_OWNER: "QUICKSIGHT_VIEWER_OR_OWNER", +} as const; + +/** + * @public + */ +export type DashboardFilterAttribute = (typeof DashboardFilterAttribute)[keyof typeof DashboardFilterAttribute]; + +/** + * @public + *

A filter that you apply when searching for dashboards.

+ */ +export interface DashboardSearchFilter { /** - *

The ID of the Amazon Web Services account that contains the theme that you're deleting.

+ *

The comparison operator that you want to use as a filter, for example "Operator": "StringEquals". Valid values are "StringEquals" and "StringLike".

+ *

If you set the operator value to "StringEquals", you need to provide an ownership related filter in the "NAME" field and the arn of the user or group whose folders you want to search in the "Value" field. For example, "Name":"DIRECT_QUICKSIGHT_OWNER", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

+ *

If you set the value to "StringLike", you need to provide the name of the folders you are searching for. For example, "Name":"DASHBOARD_NAME", "Operator": "StringLike", "Value": "Test". The "StringLike" operator only supports the NAME value DASHBOARD_NAME.

*/ - AwsAccountId: string | undefined; + Operator: FilterOperator | string | undefined; /** - *

An ID for the theme that you want to delete.

+ *

The name of the value that you want to use as a filter, for example, "Name": + * "QUICKSIGHT_OWNER".

+ *

Valid values are defined as follows:

+ *
    + *
  • + *

    + * QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as one of the dashboards's owners or viewers are returned. Implicit permissions from folders or groups are considered.

    + *
  • + *
  • + *

    + * QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as one of the owners of the dashboards are returned. Implicit permissions from folders or groups are considered.

    + *
  • + *
  • + *

    + * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as the only owner of the dashboard are returned. Implicit permissions from folders or groups are not considered.

    + *
  • + *
  • + *

    + * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as one of the owners of the dashboards are returned. Implicit permissions from folders or groups are not considered.

    + *
  • + *
  • + *

    + * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any dashboards with that ARN listed as one of the owners or viewers of the dashboards are returned. Implicit permissions from folders or groups are not considered.

    + *
  • + *
  • + *

    + * DASHBOARD_NAME: Any dashboards whose names have a substring match to this value will be returned.

    + *
  • + *
*/ - ThemeId: string | undefined; + Name?: DashboardFilterAttribute | string; /** - *

The version of the theme that you want to delete.

- *

- * Note: If you don't provide a version number, you're - * using this call to DeleteTheme to delete all versions of the theme.

+ *

The value of the named item, in this case QUICKSIGHT_USER, that you want + * to use as a filter, for example, "Value": + * "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

*/ - VersionNumber?: number; + Value?: string; } /** * @public + *

Dashboard summary.

*/ -export interface DeleteThemeResponse { +export interface DashboardSummary { /** *

The Amazon Resource Name (ARN) of the resource.

*/ Arn?: string; /** - *

The Amazon Web Services request ID for this operation.

+ *

Dashboard ID.

*/ - RequestId?: string; + DashboardId?: string; /** - *

The HTTP status of the request.

+ *

A display name for the dashboard.

*/ - Status?: number; + Name?: string; /** - *

An ID for the theme.

+ *

The time that this dashboard was created.

*/ - ThemeId?: string; -} + CreatedTime?: Date; -/** - * @public - */ -export interface DeleteThemeAliasRequest { /** - *

The ID of the Amazon Web Services account that contains the theme alias to delete.

+ *

The last time that this dashboard was updated.

*/ - AwsAccountId: string | undefined; + LastUpdatedTime?: Date; /** - *

The ID for the theme that the specified alias is for.

+ *

Published version number.

*/ - ThemeId: string | undefined; + PublishedVersionNumber?: number; /** - *

The unique name for the theme alias to delete.

+ *

The last time that this dashboard was published.

*/ - AliasName: string | undefined; + LastPublishedTime?: Date; } /** * @public + *

Dashboard version summary.

*/ -export interface DeleteThemeAliasResponse { +export interface DashboardVersionSummary { /** - *

The name for the theme alias.

+ *

The Amazon Resource Name (ARN) of the resource.

*/ - AliasName?: string; + Arn?: string; /** - *

The Amazon Resource Name (ARN) of the theme resource using the deleted alias.

+ *

The time that this dashboard version was created.

*/ - Arn?: string; + CreatedTime?: Date; /** - *

The Amazon Web Services request ID for this operation.

+ *

Version number.

*/ - RequestId?: string; + VersionNumber?: number; /** *

The HTTP status of the request.

*/ - Status?: number; + Status?: ResourceStatus | string; /** - *

An ID for the theme associated with the deletion.

+ *

Source entity ARN.

*/ - ThemeId?: string; -} + SourceEntityArn?: string; -/** + /** + *

Description.

+ */ + Description?: string; +} + +/** * @public + *

Output column.

*/ -export interface DeleteUserRequest { +export interface OutputColumn { /** - *

The name of the user that you want to delete.

+ *

A display name for the dataset.

*/ - UserName: string | undefined; + Name?: string; /** - *

The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the - * Amazon Web Services account that contains your Amazon QuickSight account.

+ *

A description for a column.

*/ - AwsAccountId: string | undefined; + Description?: string; /** - *

The namespace. Currently, you should set this to default.

+ *

The type.

*/ - Namespace: string | undefined; + Type?: ColumnDataType | string; } /** * @public + *

Dataset.

*/ -export interface DeleteUserResponse { +export interface DataSet { /** - *

The Amazon Web Services request ID for this operation.

+ *

The Amazon Resource Name (ARN) of the resource.

*/ - RequestId?: string; + Arn?: string; /** - *

The HTTP status of the request.

+ *

The ID of the dataset.

*/ - Status?: number; -} + DataSetId?: string; -/** - * @public - *

- */ -export interface DeleteUserByPrincipalIdRequest { /** - *

The principal ID of the user.

+ *

A display name for the dataset.

*/ - PrincipalId: string | undefined; + Name?: string; /** - *

The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the - * Amazon Web Services account that contains your Amazon QuickSight account.

+ *

The time that this dataset was created.

*/ - AwsAccountId: string | undefined; + CreatedTime?: Date; /** - *

The namespace. Currently, you should set this to default.

+ *

The last time that this dataset was updated.

*/ - Namespace: string | undefined; -} + LastUpdatedTime?: Date; -/** - * @public - */ -export interface DeleteUserByPrincipalIdResponse { /** - *

The Amazon Web Services request ID for this operation.

+ *

Declares the physical tables that are available in the underlying data sources.

*/ - RequestId?: string; + PhysicalTableMap?: Record; /** - *

The HTTP status of the request.

+ *

Configures the combination and transformation of the data from the physical + * tables.

*/ - Status?: number; -} + LogicalTableMap?: Record; -/** - * @public - */ -export interface DescribeAccountCustomizationRequest { /** - *

The ID for the Amazon Web Services account that you want to describe Amazon QuickSight customizations - * for.

+ *

The list of columns after all transforms. These columns are available in templates, + * analyses, and dashboards.

*/ - AwsAccountId: string | undefined; + OutputColumns?: OutputColumn[]; /** - *

The Amazon QuickSight namespace that you want to describe Amazon QuickSight customizations - * for.

+ *

A value that indicates whether you want to import the data into SPICE.

*/ - Namespace?: string; + ImportMode?: DataSetImportMode | string; /** - *

The Resolved flag works with the other parameters to determine which view - * of Amazon QuickSight customizations is returned. You can add this flag to your command to use - * the same view that Amazon QuickSight uses to identify which customizations to apply to the - * console. Omit this flag, or set it to no-resolved, to reveal customizations - * that are configured at different levels.

+ *

The amount of SPICE capacity used by this dataset. This is 0 if the dataset isn't + * imported into SPICE.

*/ - Resolved?: boolean; -} + ConsumedSpiceCapacityInBytes?: number; -/** - * @public - */ -export interface DescribeAccountCustomizationResponse { /** - *

The Amazon Resource Name (ARN) of the customization that's associated with this Amazon Web Services account.

+ *

Groupings of columns that work together in certain Amazon QuickSight features. + * Currently, only geospatial hierarchy is supported.

*/ - Arn?: string; + ColumnGroups?: ColumnGroup[]; /** - *

The ID for the Amazon Web Services account that you're describing.

+ *

The folder that contains fields and nested subfolders for your dataset.

*/ - AwsAccountId?: string; + FieldFolders?: Record; /** - *

The Amazon QuickSight namespace that you're describing.

+ *

The row-level security configuration for the dataset.

*/ - Namespace?: string; + RowLevelPermissionDataSet?: RowLevelPermissionDataSet; /** - *

The Amazon QuickSight customizations that exist in the current Amazon Web Services Region.

+ *

The element you can use to define tags for row-level security.

*/ - AccountCustomization?: AccountCustomization; + RowLevelPermissionTagConfiguration?: RowLevelPermissionTagConfiguration; /** - *

The Amazon Web Services request ID for this operation.

+ *

A set of one or more definitions of a + * ColumnLevelPermissionRule + * .

*/ - RequestId?: string; + ColumnLevelPermissionRules?: ColumnLevelPermissionRule[]; /** - *

The HTTP status of the request.

+ *

The usage configuration to apply to child datasets that reference this dataset as a source.

*/ - Status?: number; -} + DataSetUsageConfiguration?: DataSetUsageConfiguration; -/** - * @public - */ -export interface DescribeAccountSettingsRequest { /** - *

The ID for the Amazon Web Services account that contains the settings that you want to list.

+ *

The parameters that are declared in a dataset.

*/ - AwsAccountId: string | undefined; + DatasetParameters?: DatasetParameter[]; } /** * @public + * @enum */ -export interface DescribeAccountSettingsResponse { - /** - *

The Amazon QuickSight settings for this Amazon Web Services account. This information - * includes the edition of Amazon Amazon QuickSight that you subscribed to (Standard or - * Enterprise) and the notification email for the Amazon QuickSight subscription.

- *

In the QuickSight console, the Amazon QuickSight subscription is sometimes referred to - * as a QuickSight "account" even though it's technically not an account by - * itself. Instead, it's a subscription to the Amazon QuickSight service for your - * Amazon Web Services account. The edition that you subscribe to applies to Amazon QuickSight in every Amazon Web Services Region where you use it.

- */ - AccountSettings?: AccountSettings; +export const DataSetFilterAttribute = { + DATASET_NAME: "DATASET_NAME", + DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER", + DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER", + DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER", + QUICKSIGHT_OWNER: "QUICKSIGHT_OWNER", + QUICKSIGHT_VIEWER_OR_OWNER: "QUICKSIGHT_VIEWER_OR_OWNER", +} as const; - /** - *

The Amazon Web Services request ID for this operation.

- */ - RequestId?: string; +/** + * @public + */ +export type DataSetFilterAttribute = (typeof DataSetFilterAttribute)[keyof typeof DataSetFilterAttribute]; - /** - *

The HTTP status of the request.

- */ - Status?: number; -} +/** + * @public + * @enum + */ +export const LookbackWindowSizeUnit = { + DAY: "DAY", + HOUR: "HOUR", + WEEK: "WEEK", +} as const; /** * @public */ -export interface DescribeAccountSubscriptionRequest { - /** - *

The Amazon Web Services account ID associated with your Amazon QuickSight account.

- */ - AwsAccountId: string | undefined; -} +export type LookbackWindowSizeUnit = (typeof LookbackWindowSizeUnit)[keyof typeof LookbackWindowSizeUnit]; /** * @public + *

The lookback window setup of an incremental refresh configuration.

*/ -export interface DescribeAccountSubscriptionResponse { +export interface LookbackWindow { /** - *

A structure that contains the following elements:

- *
    - *
  • - *

    Your Amazon QuickSight account name.

    - *
  • - *
  • - *

    The edition of Amazon QuickSight that your account is using.

    - *
  • - *
  • - *

    The notification email address that is associated with the Amazon QuickSight - * account. - *

    - *
  • - *
  • - *

    The authentication type of the Amazon QuickSight account.

    - *
  • - *
  • - *

    The status of the Amazon QuickSight account's subscription.

    - *
  • - *
+ *

The name of the lookback window column.

*/ - AccountInfo?: AccountInfo; + ColumnName: string | undefined; /** - *

The HTTP status of the request.

+ *

The lookback window column size.

*/ - Status?: number; + Size: number | undefined; /** - *

The Amazon Web Services request ID for this operation.

+ *

The size unit that is used for the lookback window column. Valid values for this structure are HOUR, DAY, and WEEK.

*/ - RequestId?: string; + SizeUnit: LookbackWindowSizeUnit | string | undefined; } /** * @public + *

The incremental refresh configuration for a dataset.

*/ -export interface DescribeAnalysisRequest { - /** - *

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.

- */ - AwsAccountId: string | undefined; - +export interface IncrementalRefresh { /** - *

The ID of the analysis that you're describing. The ID is part of the URL of the - * analysis.

+ *

The lookback window setup for an incremental refresh configuration.

*/ - AnalysisId: string | undefined; + LookbackWindow: LookbackWindow | undefined; } /** * @public + *

The refresh configuration of a dataset.

*/ -export interface DescribeAnalysisResponse { - /** - *

A metadata structure that contains summary information for the analysis that you're - * describing.

- */ - Analysis?: Analysis; - +export interface RefreshConfiguration { /** - *

The HTTP status of the request.

+ *

The incremental refresh for the dataset.

*/ - Status?: number; + IncrementalRefresh: IncrementalRefresh | undefined; +} +/** + * @public + *

The refresh properties of a dataset.

+ */ +export interface DataSetRefreshProperties { /** - *

The Amazon Web Services request ID for this operation.

+ *

The refresh configuration for a dataset.

*/ - RequestId?: string; + RefreshConfiguration: RefreshConfiguration | undefined; } /** * @public + *

A filter that you apply when searching for datasets.

*/ -export interface DescribeAnalysisDefinitionRequest { +export interface DataSetSearchFilter { /** - *

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.

- */ - AwsAccountId: string | undefined; - - /** - *

The ID of the analysis that you're describing. The ID is part of the URL of the - * analysis.

- */ - AnalysisId: string | undefined; -} - -/** - * @public - */ -export interface DescribeAnalysisDefinitionResponse { - /** - *

The ID of the analysis described.

- */ - AnalysisId?: string; - - /** - *

The descriptive name of the analysis.

- */ - Name?: string; - - /** - *

Errors associated with the analysis.

+ *

The comparison operator that you want to use as a filter, for example "Operator": "StringEquals". Valid values are "StringEquals" and "StringLike".

+ *

If you set the operator value to "StringEquals", you need to provide an ownership related filter in the "NAME" field and the arn of the user or group whose datasets you want to search in the "Value" field. For example, "Name":"QUICKSIGHT_OWNER", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east- 1:1:user/default/UserName1".

+ *

If you set the value to "StringLike", you need to provide the name of the datasets you are searching for. For example, "Name":"DATASET_NAME", "Operator": "StringLike", "Value": "Test". The "StringLike" operator only supports the NAME value DATASET_NAME.

*/ - Errors?: AnalysisError[]; + Operator: FilterOperator | string | undefined; /** - *

Status associated with the analysis.

+ *

The name of the value that you want to use as a filter, for example, "Name": + * "QUICKSIGHT_OWNER".

+ *

Valid values are defined as follows:

*
    *
  • *

    - * CREATION_IN_PROGRESS - *

    - *
  • - *
  • - *

    - * CREATION_SUCCESSFUL - *

    + * QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the dataset owners or viewers are returned. Implicit permissions from folders or groups are considered.

    *
  • *
  • *

    - * CREATION_FAILED - *

    + * QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners of the dataset are returned. Implicit permissions from folders or groups are considered.

    *
  • *
  • *

    - * UPDATE_IN_PROGRESS - *

    + * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as the only owner of the dataset are returned. Implicit permissions from folders or groups are not considered.

    *
  • *
  • *

    - * UPDATE_SUCCESSFUL - *

    + * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners if the dataset are returned. Implicit permissions from folders or groups are not considered.

    *
  • *
  • *

    - * UPDATE_FAILED - *

    + * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any datasets with that ARN listed as one of the owners or viewers of the dataset are returned. Implicit permissions from folders or groups are not considered.

    *
  • *
  • *

    - * DELETED - *

    + * DATASET_NAME: Any datasets whose names have a substring match to this value will be returned.

    *
  • *
*/ - ResourceStatus?: ResourceStatus | string; - - /** - *

The ARN of the theme of the analysis.

- */ - ThemeArn?: string; + Name: DataSetFilterAttribute | string | undefined; /** - *

The definition of an analysis.

- *

A definition is the data model of all features in a Dashboard, Template, or Analysis.

+ *

The value of the named item, in this case QUICKSIGHT_OWNER, that you want + * to use as a filter, for example, "Value": + * "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

*/ - Definition?: AnalysisDefinition; + Value: string | undefined; +} +/** + * @public + *

Dataset summary.

+ */ +export interface DataSetSummary { /** - *

The HTTP status of the request.

+ *

The Amazon Resource Name (ARN) of the dataset.

*/ - Status?: number; + Arn?: string; /** - *

The Amazon Web Services request ID for this operation.

+ *

The ID of the dataset.

*/ - RequestId?: string; -} + DataSetId?: string; -/** - * @public - */ -export interface DescribeAnalysisPermissionsRequest { /** - *

The ID of the Amazon Web Services account that contains the analysis whose permissions you're - * describing. You must be using the Amazon Web Services account that the analysis is in.

+ *

A display name for the dataset.

*/ - AwsAccountId: string | undefined; + Name?: string; /** - *

The ID of the analysis whose permissions you're describing. The ID is part of the - * analysis URL.

+ *

The time that this dataset was created.

*/ - AnalysisId: string | undefined; -} + CreatedTime?: Date; -/** - * @public - */ -export interface DescribeAnalysisPermissionsResponse { /** - *

The ID of the analysis whose permissions you're describing.

+ *

The last time that this dataset was updated.

*/ - AnalysisId?: string; + LastUpdatedTime?: Date; /** - *

The Amazon Resource Name (ARN) of the analysis whose permissions you're - * describing.

+ *

A value that indicates whether you want to import the data into SPICE.

*/ - AnalysisArn?: string; + ImportMode?: DataSetImportMode | string; /** - *

A structure that describes the principals and the resource-level permissions on an - * analysis.

+ *

The row-level security configuration for the dataset.

*/ - Permissions?: ResourcePermission[]; + RowLevelPermissionDataSet?: RowLevelPermissionDataSet; /** - *

The HTTP status of the request.

+ *

Whether or not the row level permission tags are applied.

*/ - Status?: number; + RowLevelPermissionTagConfigurationApplied?: boolean; /** - *

The Amazon Web Services request ID for this operation.

+ *

A value that indicates if the dataset has column level permission configured.

*/ - RequestId?: string; + ColumnLevelPermissionRulesApplied?: boolean; } /** * @public + * @enum */ -export interface DescribeDashboardRequest { - /** - *

The ID of the Amazon Web Services account that contains the dashboard that you're - * describing.

- */ - AwsAccountId: string | undefined; +export const DataSourceErrorInfoType = { + ACCESS_DENIED: "ACCESS_DENIED", + CONFLICT: "CONFLICT", + COPY_SOURCE_NOT_FOUND: "COPY_SOURCE_NOT_FOUND", + ENGINE_VERSION_NOT_SUPPORTED: "ENGINE_VERSION_NOT_SUPPORTED", + GENERIC_SQL_FAILURE: "GENERIC_SQL_FAILURE", + TIMEOUT: "TIMEOUT", + UNKNOWN: "UNKNOWN", + UNKNOWN_HOST: "UNKNOWN_HOST", +} as const; - /** - *

The ID for the dashboard.

- */ - DashboardId: string | undefined; +/** + * @public + */ +export type DataSourceErrorInfoType = (typeof DataSourceErrorInfoType)[keyof typeof DataSourceErrorInfoType]; +/** + * @public + *

Error information for the data source creation or update.

+ */ +export interface DataSourceErrorInfo { /** - *

The version number for the dashboard. If a version number isn't passed, the - * latest published dashboard version is described.

+ *

Error type.

*/ - VersionNumber?: number; + Type?: DataSourceErrorInfoType | string; /** - *

The alias name.

+ *

Error message.

*/ - AliasName?: string; + Message?: string; } /** * @public + *

The structure of a data source.

*/ -export interface DescribeDashboardResponse { +export interface DataSource { /** - *

Information about the dashboard.

+ *

The Amazon Resource Name (ARN) of the data source.

*/ - Dashboard?: Dashboard; + Arn?: string; /** - *

The HTTP status of this request.

+ *

The ID of the data source. This ID is unique per Amazon Web Services Region for each + * Amazon Web Services account.

*/ - Status?: number; + DataSourceId?: string; /** - *

The Amazon Web Services request ID for this operation.

+ *

A display name for the data source.

*/ - RequestId?: string; -} + Name?: string; -/** - * @public - */ -export interface DescribeDashboardDefinitionRequest { /** - *

The ID of the Amazon Web Services account that contains the dashboard that you're - * describing.

+ *

The type of the data source. This type indicates which database engine the data source + * connects to.

*/ - AwsAccountId: string | undefined; + Type?: DataSourceType | string; /** - *

The ID for the dashboard.

+ *

The HTTP status of the request.

*/ - DashboardId: string | undefined; + Status?: ResourceStatus | string; /** - *

The version number for the dashboard. If a version number isn't passed, the - * latest published dashboard version is described.

+ *

The time that this data source was created.

*/ - VersionNumber?: number; + CreatedTime?: Date; /** - *

The alias name.

+ *

The last time that this data source was updated.

*/ - AliasName?: string; -} + LastUpdatedTime?: Date; -/** - * @public - */ -export interface DescribeDashboardDefinitionResponse { /** - *

The ID of the dashboard described.

+ *

The parameters that Amazon QuickSight uses to connect to your underlying source. This + * is a variant type structure. For this structure to be valid, only one of the attributes + * can be non-null.

*/ - DashboardId?: string; + DataSourceParameters?: DataSourceParameters; /** - *

Errors associated with this dashboard version.

+ *

A set of alternate data source parameters that you want to share for the credentials + * stored with this data source. The credentials are applied in tandem with the data source + * parameters when you copy a data source by using a create or update request. The API + * operation compares the DataSourceParameters structure that's in the request + * with the structures in the AlternateDataSourceParameters allow list. If the + * structures are an exact match, the request is allowed to use the credentials from this + * existing data source. If the AlternateDataSourceParameters list is null, + * the Credentials originally used with this DataSourceParameters + * are automatically allowed.

*/ - Errors?: DashboardError[]; + AlternateDataSourceParameters?: DataSourceParameters[]; /** - *

The display name of the dashboard.

+ *

The VPC connection information. You need to use this parameter only when you want + * Amazon QuickSight to use a VPC connection when connecting to your underlying source.

*/ - Name?: string; + VpcConnectionProperties?: VpcConnectionProperties; /** - *

Status associated with the dashboard version.

- *
    - *
  • - *

    - * CREATION_IN_PROGRESS - *

    - *
  • - *
  • - *

    - * CREATION_SUCCESSFUL - *

    - *
  • - *
  • - *

    - * CREATION_FAILED - *

    - *
  • - *
  • - *

    - * UPDATE_IN_PROGRESS - *

    - *
  • - *
  • - *

    - * UPDATE_SUCCESSFUL - *

    - *
  • - *
  • - *

    - * UPDATE_FAILED - *

    - *
  • - *
  • - *

    - * DELETED - *

    - *
  • - *
+ *

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your + * underlying source.

*/ - ResourceStatus?: ResourceStatus | string; + SslProperties?: SslProperties; /** - *

The ARN of the theme of the dashboard.

+ *

Error information from the last update or the creation of the data source.

*/ - ThemeArn?: string; + ErrorInfo?: DataSourceErrorInfo; /** - *

The definition of a dashboard.

- *

A definition is the data model of all features in a Dashboard, Template, or Analysis.

+ *

The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.

*/ - Definition?: DashboardVersionDefinition; + SecretArn?: string; +} - /** - *

The HTTP status of the request.

- */ - Status?: number; +/** + * @public + * @enum + */ +export const DataSourceFilterAttribute = { + DATASOURCE_NAME: "DATASOURCE_NAME", + DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER", + DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER", + DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER", +} as const; + +/** + * @public + */ +export type DataSourceFilterAttribute = (typeof DataSourceFilterAttribute)[keyof typeof DataSourceFilterAttribute]; +/** + * @public + *

A filter that you apply when searching for data sources.

+ */ +export interface DataSourceSearchFilter { /** - *

The Amazon Web Services request ID for this operation.

+ *

The comparison operator that you want to use as a filter, for example "Operator": "StringEquals". Valid values are "StringEquals" and "StringLike".

+ *

If you set the operator value to "StringEquals", you need to provide an ownership related filter in the "NAME" field and the arn of the user or group whose data sources you want to search in the "Value" field. For example, "Name":"DIRECT_QUICKSIGHT_OWNER", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

+ *

If you set the value to "StringLike", you need to provide the name of the data sources you are searching for. For example, "Name":"DATASOURCE_NAME", "Operator": "StringLike", "Value": "Test". The "StringLike" operator only supports the NAME value DATASOURCE_NAME.

*/ - RequestId?: string; + Operator: FilterOperator | string | undefined; /** - *

Options for publishing the dashboard:

+ *

The name of the value that you want to use as a filter, for example, "Name": + * "DIRECT_QUICKSIGHT_OWNER".

+ *

Valid values are defined as follows:

*
    *
  • *

    - * AvailabilityStatus for AdHocFilteringOption - This - * status can be either ENABLED or DISABLED. When this is - * set to DISABLED, Amazon QuickSight disables the left filter pane on the - * published dashboard, which can be used for ad hoc (one-time) filtering. This - * option is ENABLED by default.

    + * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any data sources with that ARN listed as one of the owners or viewers of the data sources are returned. Implicit permissions from folders or groups are not considered.

    *
  • *
  • *

    - * AvailabilityStatus for ExportToCSVOption - This - * status can be either ENABLED or DISABLED. The visual - * option to export data to .CSV format isn't enabled when this is set to - * DISABLED. This option is ENABLED by default.

    + * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any data sources with that ARN listed as one of the owners if the data source are returned. Implicit permissions from folders or groups are not considered.

    *
  • *
  • *

    - * VisibilityState for SheetControlsOption - This - * visibility state can be either COLLAPSED or EXPANDED. - * This option is COLLAPSED by default.

    + * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and any data sources with that ARN listed as the only owner of the data source are returned. Implicit permissions from folders or groups are not considered.

    *
  • - *
- */ - DashboardPublishOptions?: DashboardPublishOptions; -} - -/** - * @public - */ -export interface DescribeDashboardPermissionsRequest { - /** - *

The ID of the Amazon Web Services account that contains the dashboard that you're describing - * permissions for.

- */ - AwsAccountId: string | undefined; - - /** - *

The ID for the dashboard, also added to the IAM policy.

- */ - DashboardId: string | undefined; -} - -/** - * @public - *

A structure that contains the configuration of a shareable link to the dashboard.

- */ -export interface LinkSharingConfiguration { + *
  • + *

    + * DATASOURCE_NAME: Any data sources whose names have a substring match to the provided value are returned.

    + *
  • + * + */ + Name: DataSourceFilterAttribute | string | undefined; + /** - *

    A structure that contains the permissions of a shareable link.

    + *

    The value of the named item, for example DIRECT_QUICKSIGHT_OWNER, that you want + * to use as a filter, for example, "Value": + * "arn:aws:quicksight:us-east-1:1:user/default/UserName1".

    */ - Permissions?: ResourcePermission[]; + Value: string | undefined; } /** * @public + *

    A DataSourceSummary object that returns a summary of a data source.

    */ -export interface DescribeDashboardPermissionsResponse { +export interface DataSourceSummary { /** - *

    The ID for the dashboard.

    + *

    The arn of the datasource.

    */ - DashboardId?: string; + Arn?: string; /** - *

    The Amazon Resource Name (ARN) of the dashboard.

    + *

    The unique ID of the data source.

    */ - DashboardArn?: string; + DataSourceId?: string; /** - *

    A structure that contains the permissions for the dashboard.

    + *

    The name of the data source.

    */ - Permissions?: ResourcePermission[]; + Name?: string; /** - *

    The HTTP status of the request.

    + *

    The type of the data source.

    */ - Status?: number; + Type?: DataSourceType | string; /** - *

    The Amazon Web Services request ID for this operation.

    + *

    The date and time that the data source was created. This value is expressed in MM-DD-YYYY HH:MM:SS format.

    */ - RequestId?: string; + CreatedTime?: Date; /** - *

    A structure that contains the configuration of a shareable link that grants access to - * the dashboard. Your users can use the link to view and interact with the dashboard, if - * the dashboard has been shared with them. For more information about sharing dashboards, - * see Sharing Dashboards.

    + *

    The date and time the data source was last updated. This value is expressed in MM-DD-YYYY HH:MM:SS format.

    */ - LinkSharingConfiguration?: LinkSharingConfiguration; + LastUpdatedTime?: Date; } /** * @public */ -export interface DescribeDataSetRequest { +export interface DeleteAccountCustomizationRequest { /** - *

    The Amazon Web Services account ID.

    + *

    The ID for the Amazon Web Services account that you want to delete Amazon QuickSight customizations from in + * this Amazon Web Services Region.

    */ AwsAccountId: string | undefined; /** - *

    The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    + *

    The Amazon QuickSight namespace that you're deleting the customizations from.

    */ - DataSetId: string | undefined; + Namespace?: string; } /** * @public */ -export interface DescribeDataSetResponse { - /** - *

    Information on the dataset.

    - */ - DataSet?: DataSet; - +export interface DeleteAccountCustomizationResponse { /** *

    The Amazon Web Services request ID for this operation.

    */ @@ -6738,37 +7315,17 @@ export interface DescribeDataSetResponse { /** * @public */ -export interface DescribeDataSetPermissionsRequest { +export interface DeleteAccountSubscriptionRequest { /** - *

    The Amazon Web Services account ID.

    + *

    The Amazon Web Services account ID of the account that you want to delete.

    */ AwsAccountId: string | undefined; - - /** - *

    The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    - */ - DataSetId: string | undefined; } /** * @public */ -export interface DescribeDataSetPermissionsResponse { - /** - *

    The Amazon Resource Name (ARN) of the dataset.

    - */ - DataSetArn?: string; - - /** - *

    The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    - */ - DataSetId?: string; - - /** - *

    A list of resource permissions on the dataset.

    - */ - Permissions?: ResourcePermission[]; - +export interface DeleteAccountSubscriptionResponse { /** *

    The Amazon Web Services request ID for this operation.

    */ @@ -6783,106 +7340,137 @@ export interface DescribeDataSetPermissionsResponse { /** * @public */ -export interface DescribeDataSetRefreshPropertiesRequest { +export interface DeleteAnalysisRequest { /** - *

    The Amazon Web Services account ID.

    + *

    The ID of the Amazon Web Services account where you want to delete an analysis.

    */ AwsAccountId: string | undefined; /** - *

    The ID of the dataset.

    + *

    The ID of the analysis that you're deleting.

    */ - DataSetId: string | undefined; + AnalysisId: string | undefined; + + /** + *

    A value that specifies the number of days that Amazon QuickSight waits before it deletes the + * analysis. You can't use this parameter with the ForceDeleteWithoutRecovery + * option in the same API call. The default value is 30.

    + */ + RecoveryWindowInDays?: number; + + /** + *

    This option defaults to the value NoForceDeleteWithoutRecovery. To + * immediately delete the analysis, add the ForceDeleteWithoutRecovery option. + * You can't restore an analysis after it's deleted.

    + */ + ForceDeleteWithoutRecovery?: boolean; } /** * @public */ -export interface DescribeDataSetRefreshPropertiesResponse { +export interface DeleteAnalysisResponse { /** - *

    The Amazon Web Services request ID for this operation.

    + *

    The HTTP status of the request.

    */ - RequestId?: string; + Status?: number; /** - *

    The HTTP status of the request.

    + *

    The Amazon Resource Name (ARN) of the deleted analysis.

    */ - Status?: number; + Arn?: string; + + /** + *

    The ID of the deleted analysis.

    + */ + AnalysisId?: string; + + /** + *

    The date and time that the analysis is scheduled to be deleted.

    + */ + DeletionTime?: Date; /** - *

    The dataset refresh properties.

    + *

    The Amazon Web Services request ID for this operation.

    */ - DataSetRefreshProperties?: DataSetRefreshProperties; + RequestId?: string; } /** * @public */ -export interface DescribeDataSourceRequest { +export interface DeleteDashboardRequest { /** - *

    The Amazon Web Services account ID.

    + *

    The ID of the Amazon Web Services account that contains the dashboard that you're + * deleting.

    */ AwsAccountId: string | undefined; /** - *

    The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    + *

    The ID for the dashboard.

    */ - DataSourceId: string | undefined; + DashboardId: string | undefined; + + /** + *

    The version number of the dashboard. If the version number property is provided, only + * the specified version of the dashboard is deleted.

    + */ + VersionNumber?: number; } /** * @public */ -export interface DescribeDataSourceResponse { +export interface DeleteDashboardResponse { /** - *

    The information on the data source.

    + *

    The HTTP status of the request.

    */ - DataSource?: DataSource; + Status?: number; /** - *

    The Amazon Web Services request ID for this operation.

    + *

    The Secure Socket Layer (SSL) properties that apply for the resource.

    */ - RequestId?: string; + Arn?: string; /** - *

    The HTTP status of the request.

    + *

    The ID of the dashboard.

    */ - Status?: number; + DashboardId?: string; + + /** + *

    The Amazon Web Services request ID for this operation.

    + */ + RequestId?: string; } /** * @public */ -export interface DescribeDataSourcePermissionsRequest { +export interface DeleteDataSetRequest { /** *

    The Amazon Web Services account ID.

    */ AwsAccountId: string | undefined; /** - *

    The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    + *

    The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    */ - DataSourceId: string | undefined; + DataSetId: string | undefined; } /** * @public */ -export interface DescribeDataSourcePermissionsResponse { - /** - *

    The Amazon Resource Name (ARN) of the data source.

    - */ - DataSourceArn?: string; - +export interface DeleteDataSetResponse { /** - *

    The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    + *

    The Amazon Resource Name (ARN) of the dataset.

    */ - DataSourceId?: string; + Arn?: string; /** - *

    A list of resource permissions on the data source.

    + *

    The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    */ - Permissions?: ResourcePermission[]; + DataSetId?: string; /** *

    The Amazon Web Services request ID for this operation.

    @@ -6898,83 +7486,77 @@ export interface DescribeDataSourcePermissionsResponse { /** * @public */ -export interface DescribeFolderRequest { +export interface DeleteDataSetRefreshPropertiesRequest { /** - *

    The ID for the Amazon Web Services account that contains the folder.

    + *

    The Amazon Web Services account ID.

    */ AwsAccountId: string | undefined; /** - *

    The ID of the folder.

    + *

    The ID of the dataset.

    */ - FolderId: string | undefined; + DataSetId: string | undefined; } /** * @public - *

    A folder in Amazon QuickSight.

    */ -export interface Folder { - /** - *

    The ID of the folder.

    - */ - FolderId?: string; - - /** - *

    The Amazon Resource Name (ARN) for the folder.

    - */ - Arn?: string; - - /** - *

    A display name for the folder.

    - */ - Name?: string; - +export interface DeleteDataSetRefreshPropertiesResponse { /** - *

    The type of folder it is.

    + *

    The Amazon Web Services request ID for this operation.

    */ - FolderType?: FolderType | string; + RequestId?: string; /** - *

    An array of ancestor ARN strings for the folder.

    + *

    The HTTP status of the request.

    */ - FolderPath?: string[]; + Status?: number; +} +/** + * @public + */ +export interface DeleteDataSourceRequest { /** - *

    The time that the folder was created.

    + *

    The Amazon Web Services account ID.

    */ - CreatedTime?: Date; + AwsAccountId: string | undefined; /** - *

    The time that the folder was last updated.

    + *

    The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    */ - LastUpdatedTime?: Date; + DataSourceId: string | undefined; } /** * @public */ -export interface DescribeFolderResponse { +export interface DeleteDataSourceResponse { /** - *

    The HTTP status of the request.

    + *

    The Amazon Resource Name (ARN) of the data source that you deleted.

    */ - Status?: number; + Arn?: string; /** - *

    Information about the folder.

    + *

    The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    */ - Folder?: Folder; + DataSourceId?: string; /** *

    The Amazon Web Services request ID for this operation.

    */ RequestId?: string; + + /** + *

    The HTTP status of the request.

    + */ + Status?: number; } /** * @public */ -export interface DescribeFolderPermissionsRequest { +export interface DeleteFolderRequest { /** *

    The ID for the Amazon Web Services account that contains the folder.

    */ @@ -6989,26 +7571,21 @@ export interface DescribeFolderPermissionsRequest { /** * @public */ -export interface DescribeFolderPermissionsResponse { +export interface DeleteFolderResponse { /** *

    The HTTP status of the request.

    */ Status?: number; /** - *

    The ID of the folder.

    - */ - FolderId?: string; - - /** - *

    The Amazon Resource Name (ARN) for the folder.

    + *

    The Amazon Resource Name of the deleted folder.

    */ Arn?: string; /** - *

    Information about the permissions on the folder.

    + *

    The ID of the folder.

    */ - Permissions?: ResourcePermission[]; + FolderId?: string; /** *

    The Amazon Web Services request ID for this operation.

    @@ -7019,41 +7596,37 @@ export interface DescribeFolderPermissionsResponse { /** * @public */ -export interface DescribeFolderResolvedPermissionsRequest { +export interface DeleteFolderMembershipRequest { /** *

    The ID for the Amazon Web Services account that contains the folder.

    */ AwsAccountId: string | undefined; /** - *

    The ID of the folder.

    + *

    The Folder ID.

    */ FolderId: string | undefined; -} - -/** - * @public - */ -export interface DescribeFolderResolvedPermissionsResponse { - /** - *

    The HTTP status of the request.

    - */ - Status?: number; /** - *

    The ID of the folder.

    + *

    The ID of the asset (the dashboard, analysis, or dataset) that you want to delete.

    */ - FolderId?: string; + MemberId: string | undefined; /** - *

    The Amazon Resource Name (ARN) of the folder.

    + *

    The type of the member, including DASHBOARD, ANALYSIS, and DATASET + *

    */ - Arn?: string; + MemberType: MemberType | string | undefined; +} +/** + * @public + */ +export interface DeleteFolderMembershipResponse { /** - *

    Information about the permissions for the folder.

    + *

    The HTTP status of the request.

    */ - Permissions?: ResourcePermission[]; + Status?: number; /** *

    The Amazon Web Services request ID for this operation.

    @@ -7064,9 +7637,9 @@ export interface DescribeFolderResolvedPermissionsResponse { /** * @public */ -export interface DescribeGroupRequest { +export interface DeleteGroupRequest { /** - *

    The name of the group that you want to describe.

    + *

    The name of the group that you want to delete.

    */ GroupName: string | undefined; @@ -7077,7 +7650,7 @@ export interface DescribeGroupRequest { AwsAccountId: string | undefined; /** - *

    The namespace of the group that you want described.

    + *

    The namespace of the group that you want to delete.

    */ Namespace: string | undefined; } @@ -7085,12 +7658,7 @@ export interface DescribeGroupRequest { /** * @public */ -export interface DescribeGroupResponse { - /** - *

    The name of the group.

    - */ - Group?: Group; - +export interface DeleteGroupResponse { /** *

    The Amazon Web Services request ID for this operation.

    */ @@ -7105,25 +7673,25 @@ export interface DescribeGroupResponse { /** * @public */ -export interface DescribeGroupMembershipRequest { +export interface DeleteGroupMembershipRequest { /** - *

    The user name of the user that you want to search for.

    + *

    The name of the user that you want to delete from the group membership.

    */ MemberName: string | undefined; /** - *

    The name of the group that you want to search.

    + *

    The name of the group that you want to delete the user from.

    */ GroupName: string | undefined; /** *

    The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the - * Amazon Web Services account that contains your Amazon QuickSight account.

    + * Amazon Web Services account that contains your Amazon QuickSight account.

    */ AwsAccountId: string | undefined; /** - *

    The namespace that includes the group you are searching within.

    + *

    The namespace of the group that you want to remove a user from.

    */ Namespace: string | undefined; } @@ -7131,13 +7699,7 @@ export interface DescribeGroupMembershipRequest { /** * @public */ -export interface DescribeGroupMembershipResponse { - /** - *

    A member of an Amazon QuickSight group. Currently, group members must be users. Groups - * can't be members of another group. .

    - */ - GroupMember?: GroupMember; - +export interface DeleteGroupMembershipResponse { /** *

    The Amazon Web Services request ID for this operation.

    */ @@ -7152,14 +7714,15 @@ export interface DescribeGroupMembershipResponse { /** * @public */ -export interface DescribeIAMPolicyAssignmentRequest { +export interface DeleteIAMPolicyAssignmentRequest { /** - *

    The ID of the Amazon Web Services account that contains the assignment that you want to describe.

    + *

    The Amazon Web Services account ID where you want to delete the IAM + * policy assignment.

    */ AwsAccountId: string | undefined; /** - *

    The name of the assignment, also called a rule.

    + *

    The name of the assignment.

    */ AssignmentName: string | undefined; @@ -7171,49 +7734,43 @@ export interface DescribeIAMPolicyAssignmentRequest { /** * @public - *

    An Identity and Access Management (IAM) policy assignment.

    */ -export interface IAMPolicyAssignment { - /** - *

    The Amazon Web Services account ID.

    - */ - AwsAccountId?: string; - +export interface DeleteIAMPolicyAssignmentResponse { /** - *

    Assignment ID.

    + *

    The name of the assignment.

    */ - AssignmentId?: string; + AssignmentName?: string; /** - *

    Assignment name.

    + *

    The Amazon Web Services request ID for this operation.

    */ - AssignmentName?: string; + RequestId?: string; /** - *

    The Amazon Resource Name (ARN) for the IAM policy.

    + *

    The HTTP status of the request.

    */ - PolicyArn?: string; + Status?: number; +} +/** + * @public + */ +export interface DeleteNamespaceRequest { /** - *

    Identities.

    + *

    The ID for the Amazon Web Services account that you want to delete the Amazon QuickSight namespace from.

    */ - Identities?: Record; + AwsAccountId: string | undefined; /** - *

    Assignment status.

    + *

    The namespace that you want to delete.

    */ - AssignmentStatus?: AssignmentStatus | string; + Namespace: string | undefined; } /** * @public */ -export interface DescribeIAMPolicyAssignmentResponse { - /** - *

    Information describing the IAM policy assignment.

    - */ - IAMPolicyAssignment?: IAMPolicyAssignment; - +export interface DeleteNamespaceResponse { /** *

    The Amazon Web Services request ID for this operation.

    */ @@ -7227,261 +7784,230 @@ export interface DescribeIAMPolicyAssignmentResponse { /** * @public - *

    The NextToken value isn't valid.

    */ -export class InvalidNextTokenException extends __BaseException { - readonly name: "InvalidNextTokenException" = "InvalidNextTokenException"; - readonly $fault: "client" = "client"; - Message?: string; +export interface DeleteRefreshScheduleRequest { /** - *

    The Amazon Web Services request ID for this request.

    + *

    The ID of the dataset.

    */ - RequestId?: string; + DataSetId: string | undefined; + /** - * @internal + *

    The Amazon Web Services account ID.

    */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "InvalidNextTokenException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, InvalidNextTokenException.prototype); - this.Message = opts.Message; - this.RequestId = opts.RequestId; - } + AwsAccountId: string | undefined; + + /** + *

    The ID of the refresh schedule.

    + */ + ScheduleId: string | undefined; } /** * @public */ -export interface DescribeIngestionRequest { +export interface DeleteRefreshScheduleResponse { /** - *

    The Amazon Web Services account ID.

    + *

    The HTTP status of the request.

    */ - AwsAccountId: string | undefined; + Status?: number; /** - *

    The ID of the dataset used in the ingestion.

    + *

    The Amazon Web Services request ID for this operation.

    */ - DataSetId: string | undefined; + RequestId?: string; /** - *

    An ID for the ingestion.

    + *

    The ID of the refresh schedule.

    */ - IngestionId: string | undefined; -} + ScheduleId?: string; -/** - * @public - * @enum - */ -export const IngestionErrorType = { - ACCOUNT_CAPACITY_LIMIT_EXCEEDED: "ACCOUNT_CAPACITY_LIMIT_EXCEEDED", - CONNECTION_FAILURE: "CONNECTION_FAILURE", - CURSOR_NOT_ENABLED: "CURSOR_NOT_ENABLED", - CUSTOMER_ERROR: "CUSTOMER_ERROR", - DATA_SET_DELETED: "DATA_SET_DELETED", - DATA_SET_NOT_SPICE: "DATA_SET_NOT_SPICE", - DATA_SET_SIZE_LIMIT_EXCEEDED: "DATA_SET_SIZE_LIMIT_EXCEEDED", - DATA_SOURCE_AUTH_FAILED: "DATA_SOURCE_AUTH_FAILED", - DATA_SOURCE_CONNECTION_FAILED: "DATA_SOURCE_CONNECTION_FAILED", - DATA_SOURCE_NOT_FOUND: "DATA_SOURCE_NOT_FOUND", - DATA_TOLERANCE_EXCEPTION: "DATA_TOLERANCE_EXCEPTION", - DUPLICATE_COLUMN_NAMES_FOUND: "DUPLICATE_COLUMN_NAMES_FOUND", - ELASTICSEARCH_CURSOR_NOT_ENABLED: "ELASTICSEARCH_CURSOR_NOT_ENABLED", - FAILURE_TO_ASSUME_ROLE: "FAILURE_TO_ASSUME_ROLE", - FAILURE_TO_PROCESS_JSON_FILE: "FAILURE_TO_PROCESS_JSON_FILE", - IAM_ROLE_NOT_AVAILABLE: "IAM_ROLE_NOT_AVAILABLE", - INGESTION_CANCELED: "INGESTION_CANCELED", - INGESTION_SUPERSEDED: "INGESTION_SUPERSEDED", - INTERNAL_SERVICE_ERROR: "INTERNAL_SERVICE_ERROR", - INVALID_DATAPREP_SYNTAX: "INVALID_DATAPREP_SYNTAX", - INVALID_DATA_SOURCE_CONFIG: "INVALID_DATA_SOURCE_CONFIG", - INVALID_DATE_FORMAT: "INVALID_DATE_FORMAT", - IOT_DATA_SET_FILE_EMPTY: "IOT_DATA_SET_FILE_EMPTY", - IOT_FILE_NOT_FOUND: "IOT_FILE_NOT_FOUND", - OAUTH_TOKEN_FAILURE: "OAUTH_TOKEN_FAILURE", - PASSWORD_AUTHENTICATION_FAILURE: "PASSWORD_AUTHENTICATION_FAILURE", - PERMISSION_DENIED: "PERMISSION_DENIED", - PERMISSION_NOT_FOUND: "PERMISSION_NOT_FOUND", - QUERY_TIMEOUT: "QUERY_TIMEOUT", - REFRESH_SUPPRESSED_BY_EDIT: "REFRESH_SUPPRESSED_BY_EDIT", - ROW_SIZE_LIMIT_EXCEEDED: "ROW_SIZE_LIMIT_EXCEEDED", - S3_FILE_INACCESSIBLE: "S3_FILE_INACCESSIBLE", - S3_MANIFEST_ERROR: "S3_MANIFEST_ERROR", - S3_UPLOADED_FILE_DELETED: "S3_UPLOADED_FILE_DELETED", - SOURCE_API_LIMIT_EXCEEDED_FAILURE: "SOURCE_API_LIMIT_EXCEEDED_FAILURE", - SOURCE_RESOURCE_LIMIT_EXCEEDED: "SOURCE_RESOURCE_LIMIT_EXCEEDED", - SPICE_TABLE_NOT_FOUND: "SPICE_TABLE_NOT_FOUND", - SQL_EXCEPTION: "SQL_EXCEPTION", - SQL_INVALID_PARAMETER_VALUE: "SQL_INVALID_PARAMETER_VALUE", - SQL_NUMERIC_OVERFLOW: "SQL_NUMERIC_OVERFLOW", - SQL_SCHEMA_MISMATCH_ERROR: "SQL_SCHEMA_MISMATCH_ERROR", - SQL_TABLE_NOT_FOUND: "SQL_TABLE_NOT_FOUND", - SSL_CERTIFICATE_VALIDATION_FAILURE: "SSL_CERTIFICATE_VALIDATION_FAILURE", - UNRESOLVABLE_HOST: "UNRESOLVABLE_HOST", - UNROUTABLE_HOST: "UNROUTABLE_HOST", -} as const; + /** + *

    The Amazon Resource Name (ARN) for the refresh schedule.

    + */ + Arn?: string; +} /** * @public */ -export type IngestionErrorType = (typeof IngestionErrorType)[keyof typeof IngestionErrorType]; +export interface DeleteTemplateRequest { + /** + *

    The ID of the Amazon Web Services account that contains the template that you're deleting.

    + */ + AwsAccountId: string | undefined; -/** - * @public - *

    Error information for the SPICE ingestion of a dataset.

    - */ -export interface ErrorInfo { /** - *

    Error type.

    + *

    An ID for the template you want to delete.

    */ - Type?: IngestionErrorType | string; + TemplateId: string | undefined; /** - *

    Error message.

    + *

    Specifies the version of the template that you want to delete. + * If you don't provide a version number, DeleteTemplate deletes all versions of the template. + *

    */ - Message?: string; + VersionNumber?: number; } /** * @public - *

    Information about a queued dataset SPICE ingestion.

    */ -export interface QueueInfo { +export interface DeleteTemplateResponse { + /** + *

    The Amazon Web Services request ID for this operation.

    + */ + RequestId?: string; + + /** + *

    The Amazon Resource Name (ARN) of the resource.

    + */ + Arn?: string; + /** - *

    The ID of the queued ingestion.

    + *

    An ID for the template.

    */ - WaitingOnIngestion: string | undefined; + TemplateId?: string; /** - *

    The ID of the ongoing ingestion. The queued ingestion is waiting for the ongoing - * ingestion to complete.

    + *

    The HTTP status of the request.

    */ - QueuedIngestion: string | undefined; + Status?: number; } /** * @public - * @enum */ -export const IngestionRequestSource = { - MANUAL: "MANUAL", - SCHEDULED: "SCHEDULED", -} as const; +export interface DeleteTemplateAliasRequest { + /** + *

    The ID of the Amazon Web Services account that contains the item to delete.

    + */ + AwsAccountId: string | undefined; -/** - * @public - */ -export type IngestionRequestSource = (typeof IngestionRequestSource)[keyof typeof IngestionRequestSource]; + /** + *

    The ID for the template that the specified alias is for.

    + */ + TemplateId: string | undefined; -/** - * @public - * @enum - */ -export const IngestionRequestType = { - EDIT: "EDIT", - FULL_REFRESH: "FULL_REFRESH", - INCREMENTAL_REFRESH: "INCREMENTAL_REFRESH", - INITIAL_INGESTION: "INITIAL_INGESTION", -} as const; + /** + *

    The name for the template alias. To delete a specific alias, you delete the version that the + * alias points to. You can specify the alias name, or specify the latest version of the + * template by providing the keyword $LATEST in the AliasName + * parameter.

    + */ + AliasName: string | undefined; +} /** * @public */ -export type IngestionRequestType = (typeof IngestionRequestType)[keyof typeof IngestionRequestType]; +export interface DeleteTemplateAliasResponse { + /** + *

    The HTTP status of the request.

    + */ + Status?: number; + + /** + *

    An ID for the template associated with the deletion.

    + */ + TemplateId?: string; -/** - * @public - *

    Information about rows for a data set SPICE ingestion.

    - */ -export interface RowInfo { /** - *

    The number of rows that were ingested.

    + *

    The name for the template alias.

    */ - RowsIngested?: number; + AliasName?: string; /** - *

    The number of rows that were not ingested.

    + *

    The Amazon Resource Name (ARN) of the template you want to delete.

    */ - RowsDropped?: number; + Arn?: string; /** - *

    The total number of rows in the dataset.

    + *

    The Amazon Web Services request ID for this operation.

    */ - TotalRowsInDataset?: number; + RequestId?: string; } /** * @public - *

    Information about the SPICE ingestion for a dataset.

    */ -export interface Ingestion { - /** - *

    The Amazon Resource Name (ARN) of the resource.

    - */ - Arn: string | undefined; - +export interface DeleteThemeRequest { /** - *

    Ingestion ID.

    + *

    The ID of the Amazon Web Services account that contains the theme that you're deleting.

    */ - IngestionId?: string; + AwsAccountId: string | undefined; /** - *

    Ingestion status.

    + *

    An ID for the theme that you want to delete.

    */ - IngestionStatus: IngestionStatus | string | undefined; + ThemeId: string | undefined; /** - *

    Error information for this ingestion.

    + *

    The version of the theme that you want to delete.

    + *

    + * Note: If you don't provide a version number, you're + * using this call to DeleteTheme to delete all versions of the theme.

    */ - ErrorInfo?: ErrorInfo; + VersionNumber?: number; +} +/** + * @public + */ +export interface DeleteThemeResponse { /** - *

    Information about rows for a data set SPICE ingestion.

    + *

    The Amazon Resource Name (ARN) of the resource.

    */ - RowInfo?: RowInfo; + Arn?: string; /** - *

    Information about a queued dataset SPICE ingestion.

    + *

    The Amazon Web Services request ID for this operation.

    */ - QueueInfo?: QueueInfo; + RequestId?: string; /** - *

    The time that this ingestion started.

    + *

    The HTTP status of the request.

    */ - CreatedTime: Date | undefined; + Status?: number; /** - *

    The time that this ingestion took, measured in seconds.

    + *

    An ID for the theme.

    */ - IngestionTimeInSeconds?: number; + ThemeId?: string; +} +/** + * @public + */ +export interface DeleteThemeAliasRequest { /** - *

    The size of the data ingested, in bytes.

    + *

    The ID of the Amazon Web Services account that contains the theme alias to delete.

    */ - IngestionSizeInBytes?: number; + AwsAccountId: string | undefined; /** - *

    Event source for this ingestion.

    + *

    The ID for the theme that the specified alias is for.

    */ - RequestSource?: IngestionRequestSource | string; + ThemeId: string | undefined; /** - *

    Type of this ingestion.

    + *

    The unique name for the theme alias to delete.

    */ - RequestType?: IngestionRequestType | string; + AliasName: string | undefined; } /** * @public */ -export interface DescribeIngestionResponse { +export interface DeleteThemeAliasResponse { + /** + *

    The name for the theme alias.

    + */ + AliasName?: string; + /** - *

    Information about the ingestion.

    + *

    The Amazon Resource Name (ARN) of the theme resource using the deleted alias.

    */ - Ingestion?: Ingestion; + Arn?: string; /** *

    The Amazon Web Services request ID for this operation.

    @@ -7492,36 +8018,42 @@ export interface DescribeIngestionResponse { *

    The HTTP status of the request.

    */ Status?: number; + + /** + *

    An ID for the theme associated with the deletion.

    + */ + ThemeId?: string; } /** * @public */ -export interface DescribeIpRestrictionRequest { +export interface DeleteTopicRequest { /** - *

    The ID of the Amazon Web Services account that contains the IP rules.

    + *

    The ID of the Amazon Web Services account that contains the topic that you want to + * delete.

    */ AwsAccountId: string | undefined; + + /** + *

    The ID of the topic that you want to delete. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    + */ + TopicId: string | undefined; } /** * @public */ -export interface DescribeIpRestrictionResponse { +export interface DeleteTopicResponse { /** - *

    The ID of the Amazon Web Services account that contains the IP rules.

    + *

    The Amazon Resource Name (ARN) of the topic.

    */ - AwsAccountId?: string; - - /** - *

    A map that describes the IP rules with CIDR range and description.

    - */ - IpRestrictionRuleMap?: Record; + Arn?: string; /** - *

    A value that specifies whether IP rules are turned on.

    + *

    The ID of the topic that you want to delete. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    */ - Enabled?: boolean; + TopicId?: string; /** *

    The Amazon Web Services request ID for this operation.

    @@ -7529,7 +8061,7 @@ export interface DescribeIpRestrictionResponse { RequestId?: string; /** - *

    The HTTP status of the request.

    + *

    The HTTP status of the request.

    */ Status?: number; } @@ -7537,96 +8069,78 @@ export interface DescribeIpRestrictionResponse { /** * @public */ -export interface DescribeNamespaceRequest { +export interface DeleteTopicRefreshScheduleRequest { /** - *

    The ID for the Amazon Web Services account that contains the Amazon QuickSight namespace that you want to describe.

    + *

    The Amazon Web Services account ID.

    */ AwsAccountId: string | undefined; /** - *

    The namespace that you want to describe.

    + *

    The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    */ - Namespace: string | undefined; -} - -/** - * @public - * @enum - */ -export const NamespaceErrorType = { - INTERNAL_SERVICE_ERROR: "INTERNAL_SERVICE_ERROR", - PERMISSION_DENIED: "PERMISSION_DENIED", -} as const; + TopicId: string | undefined; -/** - * @public - */ -export type NamespaceErrorType = (typeof NamespaceErrorType)[keyof typeof NamespaceErrorType]; + /** + *

    The ID of the dataset.

    + */ + DatasetId: string | undefined; +} /** * @public - *

    Errors that occur during namespace creation.

    */ -export interface NamespaceError { +export interface DeleteTopicRefreshScheduleResponse { /** - *

    The error type.

    + *

    The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    */ - Type?: NamespaceErrorType | string; + TopicId?: string; /** - *

    The message for the error.

    + *

    The Amazon Resource Name (ARN) of the topic.

    */ - Message?: string; -} + TopicArn?: string; -/** - * @public - *

    The error type.

    - */ -export interface NamespaceInfoV2 { /** - *

    The name of the error.

    + *

    The Amazon Resource Name (ARN) of the dataset.

    */ - Name?: string; + DatasetArn?: string; /** - *

    The namespace ARN.

    + *

    The HTTP status of the request.

    */ - Arn?: string; + Status?: number; /** - *

    The namespace Amazon Web Services Region.

    + *

    The Amazon Web Services request ID for this operation.

    */ - CapacityRegion?: string; + RequestId?: string; +} +/** + * @public + */ +export interface DeleteUserRequest { /** - *

    The creation status of a namespace that is not yet completely created.

    + *

    The name of the user that you want to delete.

    */ - CreationStatus?: NamespaceStatus | string; + UserName: string | undefined; /** - *

    The identity store used for the namespace.

    + *

    The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the + * Amazon Web Services account that contains your Amazon QuickSight account.

    */ - IdentityStore?: IdentityStore | string; + AwsAccountId: string | undefined; /** - *

    An error that occurred when the namespace was created.

    + *

    The namespace. Currently, you should set this to default.

    */ - NamespaceError?: NamespaceError; + Namespace: string | undefined; } /** * @public */ -export interface DescribeNamespaceResponse { - /** - *

    The information about the namespace that you're describing. The response includes - * the namespace ARN, name, Amazon Web Services Region, creation status, and identity store. DescribeNamespace also - * works for namespaces that are in the process of being created. For incomplete namespaces, - * this API operation lists the namespace error types and messages associated with the creation process.

    - */ - Namespace?: NamespaceInfoV2; - +export interface DeleteUserResponse { /** *

    The Amazon Web Services request ID for this operation.

    */ @@ -7640,257 +8154,229 @@ export interface DescribeNamespaceResponse { /** * @public + *

    */ -export interface DescribeRefreshScheduleRequest { +export interface DeleteUserByPrincipalIdRequest { /** - *

    The Amazon Web Services account ID.

    + *

    The principal ID of the user.

    */ - AwsAccountId: string | undefined; + PrincipalId: string | undefined; /** - *

    The ID of the dataset.

    + *

    The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the + * Amazon Web Services account that contains your Amazon QuickSight account.

    */ - DataSetId: string | undefined; + AwsAccountId: string | undefined; /** - *

    The ID of the refresh schedule.

    + *

    The namespace. Currently, you should set this to default.

    */ - ScheduleId: string | undefined; + Namespace: string | undefined; } /** * @public */ -export interface DescribeRefreshScheduleResponse { +export interface DeleteUserByPrincipalIdResponse { /** - *

    The refresh schedule.

    + *

    The Amazon Web Services request ID for this operation.

    */ - RefreshSchedule?: RefreshSchedule; + RequestId?: string; /** *

    The HTTP status of the request.

    */ Status?: number; +} +/** + * @public + */ +export interface DeleteVPCConnectionRequest { /** - *

    The Amazon Web Services request ID for this operation.

    + *

    The Amazon Web Services account ID of the account where you want to delete a VPC + * connection.

    */ - RequestId?: string; + AwsAccountId: string | undefined; /** - *

    The Amazon Resource Name (ARN) for the refresh schedule.

    + *

    The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web Services Region in an + * Amazon Web Services account.

    */ - Arn?: string; + VPCConnectionId: string | undefined; } /** * @public */ -export interface DescribeTemplateRequest { - /** - *

    The ID of the Amazon Web Services account that contains the template that you're describing.

    - */ - AwsAccountId: string | undefined; - +export interface DeleteVPCConnectionResponse { /** - *

    The ID for the template.

    + *

    The Amazon Resource Name (ARN) of the deleted VPC connection.

    */ - TemplateId: string | undefined; + Arn?: string; /** - *

    (Optional) The number for the version to describe. If a VersionNumber parameter - * value isn't provided, the latest version of the template is described.

    + *

    The ID of the VPC connection that + * you're creating. This ID is a unique identifier for each Amazon Web Services Region in an + * Amazon Web Services account.

    */ - VersionNumber?: number; + VPCConnectionId?: string; /** - *

    The alias of the template that you want to describe. If you name a specific alias, you - * describe the version that the alias points to. You can specify the latest version of the - * template by providing the keyword $LATEST in the AliasName - * parameter. The keyword $PUBLISHED doesn't apply to templates.

    + *

    The deletion status of the VPC connection.

    */ - AliasName?: string; -} - -/** - * @public - * @enum - */ -export const TemplateErrorType = { - ACCESS_DENIED: "ACCESS_DENIED", - DATA_SET_NOT_FOUND: "DATA_SET_NOT_FOUND", - INTERNAL_FAILURE: "INTERNAL_FAILURE", - SOURCE_NOT_FOUND: "SOURCE_NOT_FOUND", -} as const; - -/** - * @public - */ -export type TemplateErrorType = (typeof TemplateErrorType)[keyof typeof TemplateErrorType]; + DeletionStatus?: VPCConnectionResourceStatus | string; -/** - * @public - *

    List of errors that occurred when the template version creation failed.

    - */ -export interface TemplateError { /** - *

    Type of error.

    + *

    The availability status of the VPC connection.

    */ - Type?: TemplateErrorType | string; + AvailabilityStatus?: VPCConnectionAvailabilityStatus | string; /** - *

    Description of the error type.

    + *

    The Amazon Web Services request ID for this operation.

    */ - Message?: string; + RequestId?: string; /** - *

    An error path that shows which entities caused the template error.

    + *

    The HTTP status of the request.

    */ - ViolatedEntities?: Entity[]; + Status?: number; } /** * @public - *

    A version of a template.

    */ -export interface TemplateVersion { +export interface DescribeAccountCustomizationRequest { /** - *

    The time that this template version was created.

    + *

    The ID for the Amazon Web Services account that you want to describe Amazon QuickSight customizations + * for.

    */ - CreatedTime?: Date; + AwsAccountId: string | undefined; /** - *

    Errors associated with this template version.

    + *

    The Amazon QuickSight namespace that you want to describe Amazon QuickSight customizations + * for.

    */ - Errors?: TemplateError[]; + Namespace?: string; /** - *

    The version number of the template version.

    + *

    The Resolved flag works with the other parameters to determine which view + * of Amazon QuickSight customizations is returned. You can add this flag to your command to use + * the same view that Amazon QuickSight uses to identify which customizations to apply to the + * console. Omit this flag, or set it to no-resolved, to reveal customizations + * that are configured at different levels.

    */ - VersionNumber?: number; + Resolved?: boolean; +} +/** + * @public + */ +export interface DescribeAccountCustomizationResponse { /** - *

    The status that is associated with the template.

    - *
      - *
    • - *

      - * CREATION_IN_PROGRESS - *

      - *
    • - *
    • - *

      - * CREATION_SUCCESSFUL - *

      - *
    • - *
    • - *

      - * CREATION_FAILED - *

      - *
    • - *
    • - *

      - * UPDATE_IN_PROGRESS - *

      - *
    • - *
    • - *

      - * UPDATE_SUCCESSFUL - *

      - *
    • - *
    • - *

      - * UPDATE_FAILED - *

      - *
    • - *
    • - *

      - * DELETED - *

      - *
    • - *
    + *

    The Amazon Resource Name (ARN) of the customization that's associated with this Amazon Web Services account.

    */ - Status?: ResourceStatus | string; + Arn?: string; /** - *

    Schema of the dataset identified by the placeholder. Any dashboard created from this - * template should be bound to new datasets matching the same schema described through this - * API operation.

    + *

    The ID for the Amazon Web Services account that you're describing.

    */ - DataSetConfigurations?: DataSetConfiguration[]; + AwsAccountId?: string; /** - *

    The description of the template.

    + *

    The Amazon QuickSight namespace that you're describing.

    */ - Description?: string; + Namespace?: string; /** - *

    The Amazon Resource Name (ARN) of an analysis or template that was used to create this - * template.

    + *

    The Amazon QuickSight customizations that exist in the current Amazon Web Services Region.

    */ - SourceEntityArn?: string; + AccountCustomization?: AccountCustomization; /** - *

    The ARN of the theme associated with this version of the template.

    + *

    The Amazon Web Services request ID for this operation.

    */ - ThemeArn?: string; + RequestId?: string; /** - *

    A list of the associated sheets with the unique identifier and name of each sheet.

    + *

    The HTTP status of the request.

    */ - Sheets?: Sheet[]; + Status?: number; } /** * @public - *

    A template object. A template is an entity in Amazon QuickSight that - * encapsulates the metadata required to create an analysis and that you can use to create - * a dashboard. A template adds a layer of abstraction by using placeholders to replace the - * dataset associated with an analysis. You can use templates to create dashboards by - * replacing dataset placeholders with datasets that follow the same schema that was used - * to create the source analysis and template.

    - *

    You can share templates across Amazon Web Services accounts by allowing users in other Amazon Web Services accounts to - * create a template or a dashboard from an existing template.

    */ -export interface Template { - /** - *

    The Amazon Resource Name (ARN) of the template.

    - */ - Arn?: string; - +export interface DescribeAccountSettingsRequest { /** - *

    The display name of the template.

    + *

    The ID for the Amazon Web Services account that contains the settings that you want to list.

    */ - Name?: string; + AwsAccountId: string | undefined; +} +/** + * @public + */ +export interface DescribeAccountSettingsResponse { /** - *

    A structure describing the versions of the template.

    + *

    The Amazon QuickSight settings for this Amazon Web Services account. This information + * includes the edition of Amazon Amazon QuickSight that you subscribed to (Standard or + * Enterprise) and the notification email for the Amazon QuickSight subscription.

    + *

    In the QuickSight console, the Amazon QuickSight subscription is sometimes referred to + * as a QuickSight "account" even though it's technically not an account by + * itself. Instead, it's a subscription to the Amazon QuickSight service for your + * Amazon Web Services account. The edition that you subscribe to applies to Amazon QuickSight in every Amazon Web Services Region where you use it.

    */ - Version?: TemplateVersion; + AccountSettings?: AccountSettings; /** - *

    The ID for the template. This is unique per Amazon Web Services Region for each Amazon Web Services account.

    + *

    The Amazon Web Services request ID for this operation.

    */ - TemplateId?: string; + RequestId?: string; /** - *

    Time when this was last updated.

    + *

    The HTTP status of the request.

    */ - LastUpdatedTime?: Date; + Status?: number; +} +/** + * @public + */ +export interface DescribeAccountSubscriptionRequest { /** - *

    Time when this was created.

    + *

    The Amazon Web Services account ID associated with your Amazon QuickSight account.

    */ - CreatedTime?: Date; + AwsAccountId: string | undefined; } /** * @public */ -export interface DescribeTemplateResponse { +export interface DescribeAccountSubscriptionResponse { /** - *

    The template structure for the object you want to describe.

    + *

    A structure that contains the following elements:

    + *
      + *
    • + *

      Your Amazon QuickSight account name.

      + *
    • + *
    • + *

      The edition of Amazon QuickSight that your account is using.

      + *
    • + *
    • + *

      The notification email address that is associated with the Amazon QuickSight + * account. + *

      + *
    • + *
    • + *

      The authentication type of the Amazon QuickSight account.

      + *
    • + *
    • + *

      The status of the Amazon QuickSight account's subscription.

      + *
    • + *
    */ - Template?: Template; + AccountInfo?: AccountInfo; /** *

    The HTTP status of the request.

    @@ -7906,35 +8392,29 @@ export interface DescribeTemplateResponse { /** * @public */ -export interface DescribeTemplateAliasRequest { +export interface DescribeAnalysisRequest { /** - *

    The ID of the Amazon Web Services account that contains the template alias that you're - * describing.

    + *

    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.

    */ AwsAccountId: string | undefined; /** - *

    The ID for the template.

    - */ - TemplateId: string | undefined; - - /** - *

    The name of the template alias that you want to describe. If you name a specific alias, you - * describe the version that the alias points to. You can specify the latest version of the - * template by providing the keyword $LATEST in the AliasName - * parameter. The keyword $PUBLISHED doesn't apply to templates.

    + *

    The ID of the analysis that you're describing. The ID is part of the URL of the + * analysis.

    */ - AliasName: string | undefined; + AnalysisId: string | undefined; } /** * @public */ -export interface DescribeTemplateAliasResponse { +export interface DescribeAnalysisResponse { /** - *

    Information about the template alias.

    + *

    A metadata structure that contains summary information for the analysis that you're + * describing.

    */ - TemplateAlias?: TemplateAlias; + Analysis?: Analysis; /** *

    The HTTP status of the request.

    @@ -7950,53 +8430,41 @@ export interface DescribeTemplateAliasResponse { /** * @public */ -export interface DescribeTemplateDefinitionRequest { +export interface DescribeAnalysisDefinitionRequest { /** - *

    The ID of the Amazon Web Services account that contains the template. You must be using the - * Amazon Web Services account that the template is in.

    + *

    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.

    */ AwsAccountId: string | undefined; /** - *

    The ID of the template that you're describing.

    - */ - TemplateId: string | undefined; - - /** - *

    The version number of the template.

    - */ - VersionNumber?: number; - - /** - *

    The alias of the template that you want to describe. If you name a specific alias, you - * describe the version that the alias points to. You can specify the latest version of the - * template by providing the keyword $LATEST in the AliasName - * parameter. The keyword $PUBLISHED doesn't apply to templates.

    + *

    The ID of the analysis that you're describing. The ID is part of the URL of the + * analysis.

    */ - AliasName?: string; + AnalysisId: string | undefined; } /** * @public */ -export interface DescribeTemplateDefinitionResponse { +export interface DescribeAnalysisDefinitionResponse { /** - *

    The descriptive name of the template.

    + *

    The ID of the analysis described.

    */ - Name?: string; + AnalysisId?: string; /** - *

    The ID of the template described.

    + *

    The descriptive name of the analysis.

    */ - TemplateId?: string; + Name?: string; /** - *

    Errors associated with the template version.

    + *

    Errors associated with the analysis.

    */ - Errors?: TemplateError[]; + Errors?: AnalysisError[]; /** - *

    Status associated with the template.

    + *

    Status associated with the analysis.

    *
      *
    • *

      @@ -8038,15 +8506,15 @@ export interface DescribeTemplateDefinitionResponse { ResourceStatus?: ResourceStatus | string; /** - *

      The ARN of the theme of the template.

      + *

      The ARN of the theme of the analysis.

      */ ThemeArn?: string; /** - *

      The definition of the template.

      + *

      The definition of an analysis.

      *

      A definition is the data model of all features in a Dashboard, Template, or Analysis.

      */ - Definition?: TemplateVersionDefinition; + Definition?: AnalysisDefinition; /** *

      The HTTP status of the request.

      @@ -8062,219 +8530,41 @@ export interface DescribeTemplateDefinitionResponse { /** * @public */ -export interface DescribeTemplatePermissionsRequest { +export interface DescribeAnalysisPermissionsRequest { /** - *

      The ID of the Amazon Web Services account that contains the template that you're describing.

      + *

      The ID of the Amazon Web Services account that contains the analysis whose permissions you're + * describing. You must be using the Amazon Web Services account that the analysis is in.

      */ AwsAccountId: string | undefined; /** - *

      The ID for the template.

      + *

      The ID of the analysis whose permissions you're describing. The ID is part of the + * analysis URL.

      */ - TemplateId: string | undefined; + AnalysisId: string | undefined; } /** * @public */ -export interface DescribeTemplatePermissionsResponse { +export interface DescribeAnalysisPermissionsResponse { /** - *

      The ID for the template.

      + *

      The ID of the analysis whose permissions you're describing.

      */ - TemplateId?: string; + AnalysisId?: string; /** - *

      The Amazon Resource Name (ARN) of the template.

      + *

      The Amazon Resource Name (ARN) of the analysis whose permissions you're + * describing.

      */ - TemplateArn?: string; + AnalysisArn?: string; /** - *

      A list of resource permissions to be set on the template.

      + *

      A structure that describes the principals and the resource-level permissions on an + * analysis.

      */ Permissions?: ResourcePermission[]; - /** - *

      The Amazon Web Services request ID for this operation.

      - */ - RequestId?: string; - - /** - *

      The HTTP status of the request.

      - */ - Status?: number; -} - -/** - * @public - */ -export interface DescribeThemeRequest { - /** - *

      The ID of the Amazon Web Services account that contains the theme that you're describing.

      - */ - AwsAccountId: string | undefined; - - /** - *

      The ID for the theme.

      - */ - ThemeId: string | undefined; - - /** - *

      The version number for the version to describe. If a VersionNumber parameter - * value isn't provided, the latest version of the theme is described.

      - */ - VersionNumber?: number; - - /** - *

      The alias of the theme that you want to describe. If you name a specific alias, you - * describe the version that the alias points to. You can specify the latest version of the - * theme by providing the keyword $LATEST in the AliasName - * parameter. The keyword $PUBLISHED doesn't apply to themes.

      - */ - AliasName?: string; -} - -/** - * @public - * @enum - */ -export const ThemeType = { - ALL: "ALL", - CUSTOM: "CUSTOM", - QUICKSIGHT: "QUICKSIGHT", -} as const; - -/** - * @public - */ -export type ThemeType = (typeof ThemeType)[keyof typeof ThemeType]; - -/** - * @public - * @enum - */ -export const ThemeErrorType = { - INTERNAL_FAILURE: "INTERNAL_FAILURE", -} as const; - -/** - * @public - */ -export type ThemeErrorType = (typeof ThemeErrorType)[keyof typeof ThemeErrorType]; - -/** - * @public - *

      Theme error.

      - */ -export interface ThemeError { - /** - *

      The type of error.

      - */ - Type?: ThemeErrorType | string; - - /** - *

      The error message.

      - */ - Message?: string; -} - -/** - * @public - *

      A version of a theme.

      - */ -export interface ThemeVersion { - /** - *

      The version number of the theme.

      - */ - VersionNumber?: number; - - /** - *

      The Amazon Resource Name (ARN) of the resource.

      - */ - Arn?: string; - - /** - *

      The description of the theme.

      - */ - Description?: string; - - /** - *

      The Amazon QuickSight-defined ID of the theme that a custom theme inherits from. All - * themes initially inherit from a default Amazon QuickSight theme.

      - */ - BaseThemeId?: string; - - /** - *

      The date and time that this theme version was created.

      - */ - CreatedTime?: Date; - - /** - *

      The theme configuration, which contains all the theme display properties.

      - */ - Configuration?: ThemeConfiguration; - - /** - *

      Errors associated with the theme.

      - */ - Errors?: ThemeError[]; - - /** - *

      The status of the theme version.

      - */ - Status?: ResourceStatus | string; -} - -/** - * @public - *

      Summary information about a theme.

      - */ -export interface Theme { - /** - *

      The Amazon Resource Name (ARN) of the theme.

      - */ - Arn?: string; - - /** - *

      The name that the user gives to the theme.

      - */ - Name?: string; - - /** - *

      The identifier that the user gives to the theme.

      - */ - ThemeId?: string; - - /** - *

      A version of a theme.

      - */ - Version?: ThemeVersion; - - /** - *

      The date and time that the theme was created.

      - */ - CreatedTime?: Date; - - /** - *

      The date and time that the theme was last updated.

      - */ - LastUpdatedTime?: Date; - - /** - *

      The type of theme, based on how it was created. Valid values include: - * QUICKSIGHT and CUSTOM.

      - */ - Type?: ThemeType | string; -} - -/** - * @public - */ -export interface DescribeThemeResponse { - /** - *

      The information about the theme that you are describing.

      - */ - Theme?: Theme; - /** *

      The HTTP status of the request.

      */ @@ -8289,325 +8579,253 @@ export interface DescribeThemeResponse { /** * @public */ -export interface DescribeThemeAliasRequest { +export interface DescribeDashboardRequest { /** - *

      The ID of the Amazon Web Services account that contains the theme alias that you're - * describing.

      + *

      The ID of the Amazon Web Services account that contains the dashboard that you're + * describing.

      */ AwsAccountId: string | undefined; /** - *

      The ID for the theme.

      - */ - ThemeId: string | undefined; - - /** - *

      The name of the theme alias that you want to describe.

      - */ - AliasName: string | undefined; -} - -/** - * @public - */ -export interface DescribeThemeAliasResponse { - /** - *

      Information about the theme alias.

      - */ - ThemeAlias?: ThemeAlias; - - /** - *

      The HTTP status of the request.

      - */ - Status?: number; - - /** - *

      The Amazon Web Services request ID for this operation.

      + *

      The ID for the dashboard.

      */ - RequestId?: string; -} + DashboardId: string | undefined; -/** - * @public - */ -export interface DescribeThemePermissionsRequest { /** - *

      The ID of the Amazon Web Services account that contains the theme that you're describing.

      + *

      The version number for the dashboard. If a version number isn't passed, the + * latest published dashboard version is described.

      */ - AwsAccountId: string | undefined; + VersionNumber?: number; /** - *

      The ID for the theme that you want to describe permissions for.

      + *

      The alias name.

      */ - ThemeId: string | undefined; + AliasName?: string; } /** * @public */ -export interface DescribeThemePermissionsResponse { - /** - *

      The ID for the theme.

      - */ - ThemeId?: string; - +export interface DescribeDashboardResponse { /** - *

      The Amazon Resource Name (ARN) of the theme.

      + *

      Information about the dashboard.

      */ - ThemeArn?: string; + Dashboard?: Dashboard; /** - *

      A list of resource permissions set on the theme.

      + *

      The HTTP status of this request.

      */ - Permissions?: ResourcePermission[]; + Status?: number; /** *

      The Amazon Web Services request ID for this operation.

      */ RequestId?: string; - - /** - *

      The HTTP status of the request.

      - */ - Status?: number; } /** * @public */ -export interface DescribeUserRequest { - /** - *

      The name of the user that you want to describe.

      - */ - UserName: string | undefined; - +export interface DescribeDashboardDefinitionRequest { /** - *

      The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the - * Amazon Web Services account that contains your Amazon QuickSight account.

      + *

      The ID of the Amazon Web Services account that contains the dashboard that you're + * describing.

      */ AwsAccountId: string | undefined; /** - *

      The namespace. Currently, you should set this to default.

      + *

      The ID for the dashboard.

      */ - Namespace: string | undefined; -} - -/** - * @public - * @enum - */ -export const IdentityType = { - IAM: "IAM", - QUICKSIGHT: "QUICKSIGHT", -} as const; - -/** - * @public - */ -export type IdentityType = (typeof IdentityType)[keyof typeof IdentityType]; + DashboardId: string | undefined; -/** - * @public - * @enum - */ -export const UserRole = { - ADMIN: "ADMIN", - AUTHOR: "AUTHOR", - READER: "READER", - RESTRICTED_AUTHOR: "RESTRICTED_AUTHOR", - RESTRICTED_READER: "RESTRICTED_READER", -} as const; + /** + *

      The version number for the dashboard. If a version number isn't passed, the + * latest published dashboard version is described.

      + */ + VersionNumber?: number; -/** - * @public - */ -export type UserRole = (typeof UserRole)[keyof typeof UserRole]; + /** + *

      The alias name.

      + */ + AliasName?: string; +} /** * @public - *

      A registered user of Amazon QuickSight.

      */ -export interface User { +export interface DescribeDashboardDefinitionResponse { /** - *

      The Amazon Resource Name (ARN) for the user.

      + *

      The ID of the dashboard described.

      */ - Arn?: string; + DashboardId?: string; /** - *

      The user's user name. This value is required if you are registering a user that will be managed in Amazon QuickSight. In the output, the value for UserName is - * N/A when the value for IdentityType is IAM - * and the corresponding IAM user is deleted.

      + *

      Errors associated with this dashboard version.

      */ - UserName?: string; + Errors?: DashboardError[]; /** - *

      The user's email address.

      + *

      The display name of the dashboard.

      */ - Email?: string; + Name?: string; /** - *

      The Amazon QuickSight role for the user. The user role can be one of the - * following:.

      + *

      Status associated with the dashboard version.

      *
        *
      • *

        - * READER: A user who has read-only access to dashboards.

        + * CREATION_IN_PROGRESS + *

        + *
      • + *
      • + *

        + * CREATION_SUCCESSFUL + *

        + *
      • + *
      • + *

        + * CREATION_FAILED + *

        *
      • *
      • *

        - * AUTHOR: A user who can create data sources, datasets, analyses, - * and dashboards.

        + * UPDATE_IN_PROGRESS + *

        *
      • *
      • *

        - * ADMIN: A user who is an author, who can also manage Amazon - * Amazon QuickSight settings.

        + * UPDATE_SUCCESSFUL + *

        *
      • *
      • *

        - * RESTRICTED_READER: This role isn't currently available for - * use.

        + * UPDATE_FAILED + *

        *
      • *
      • *

        - * RESTRICTED_AUTHOR: This role isn't currently available for - * use.

        + * DELETED + *

        *
      • *
      */ - Role?: UserRole | string; + ResourceStatus?: ResourceStatus | string; /** - *

      The type of identity authentication used by the user.

      + *

      The ARN of the theme of the dashboard.

      */ - IdentityType?: IdentityType | string; + ThemeArn?: string; /** - *

      The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active Directory user, that user is inactive until they sign in and provide a - * password.

      + *

      The definition of a dashboard.

      + *

      A definition is the data model of all features in a Dashboard, Template, or Analysis.

      */ - Active?: boolean; + Definition?: DashboardVersionDefinition; /** - *

      The principal ID of the user.

      + *

      The HTTP status of the request.

      */ - PrincipalId?: string; + Status?: number; /** - *

      The custom permissions profile associated with this user.

      + *

      The Amazon Web Services request ID for this operation.

      */ - CustomPermissionsName?: string; + RequestId?: string; /** - *

      The type of supported external login provider that provides identity to let the user - * federate into Amazon QuickSight with an associated IAM role. The type can be one of the following.

      + *

      Options for publishing the dashboard:

      *
        *
      • *

        - * COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com.

        + * AvailabilityStatus for AdHocFilteringOption - This + * status can be either ENABLED or DISABLED. When this is + * set to DISABLED, Amazon QuickSight disables the left filter pane on the + * published dashboard, which can be used for ad hoc (one-time) filtering. This + * option is ENABLED by default.

        + *
      • + *
      • + *

        + * AvailabilityStatus for ExportToCSVOption - This + * status can be either ENABLED or DISABLED. The visual + * option to export data to .CSV format isn't enabled when this is set to + * DISABLED. This option is ENABLED by default.

        *
      • *
      • *

        - * CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider.

        + * VisibilityState for SheetControlsOption - This + * visibility state can be either COLLAPSED or EXPANDED. + * This option is COLLAPSED by default.

        *
      • *
      */ - ExternalLoginFederationProviderType?: string; + DashboardPublishOptions?: DashboardPublishOptions; +} + +/** + * @public + */ +export interface DescribeDashboardPermissionsRequest { + /** + *

      The ID of the Amazon Web Services account that contains the dashboard that you're describing + * permissions for.

      + */ + AwsAccountId: string | undefined; /** - *

      The URL of the external login provider.

      + *

      The ID for the dashboard, also added to the IAM policy.

      */ - ExternalLoginFederationProviderUrl?: string; + DashboardId: string | undefined; +} +/** + * @public + *

      A structure that contains the configuration of a shareable link to the dashboard.

      + */ +export interface LinkSharingConfiguration { /** - *

      The identity ID for the user in the external login provider.

      + *

      A structure that contains the permissions of a shareable link.

      */ - ExternalLoginId?: string; + Permissions?: ResourcePermission[]; } /** * @public */ -export interface DescribeUserResponse { +export interface DescribeDashboardPermissionsResponse { /** - *

      The user name.

      + *

      The ID for the dashboard.

      */ - User?: User; + DashboardId?: string; /** - *

      The Amazon Web Services request ID for this operation.

      + *

      The Amazon Resource Name (ARN) of the dashboard.

      */ - RequestId?: string; + DashboardArn?: string; + + /** + *

      A structure that contains the permissions for the dashboard.

      + */ + Permissions?: ResourcePermission[]; /** *

      The HTTP status of the request.

      */ Status?: number; -} -/** - * @public - *

      The domain specified isn't on the allow list. All domains for embedded dashboards must be - * added to the approved list by an Amazon QuickSight admin.

      - */ -export class DomainNotWhitelistedException extends __BaseException { - readonly name: "DomainNotWhitelistedException" = "DomainNotWhitelistedException"; - readonly $fault: "client" = "client"; - Message?: string; /** - *

      The Amazon Web Services request ID for this request.

      + *

      The Amazon Web Services request ID for this operation.

      */ RequestId?: string; + /** - * @internal + *

      A structure that contains the configuration of a shareable link that grants access to + * the dashboard. Your users can use the link to view and interact with the dashboard, if + * the dashboard has been shared with them. For more information about sharing dashboards, + * see Sharing Dashboards.

      */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "DomainNotWhitelistedException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, DomainNotWhitelistedException.prototype); - this.Message = opts.Message; - this.RequestId = opts.RequestId; - } + LinkSharingConfiguration?: LinkSharingConfiguration; } -/** - * @public - * @enum - */ -export const EmbeddingIdentityType = { - ANONYMOUS: "ANONYMOUS", - IAM: "IAM", - QUICKSIGHT: "QUICKSIGHT", -} as const; - -/** - * @public - */ -export type EmbeddingIdentityType = (typeof EmbeddingIdentityType)[keyof typeof EmbeddingIdentityType]; - -/** - * @public - * @enum - */ -export const FolderFilterAttribute = { - DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER", - DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER", - DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER", - FOLDER_NAME: "FOLDER_NAME", - PARENT_FOLDER_ARN: "PARENT_FOLDER_ARN", - QUICKSIGHT_OWNER: "QUICKSIGHT_OWNER", - QUICKSIGHT_VIEWER_OR_OWNER: "QUICKSIGHT_VIEWER_OR_OWNER", -} as const; - -/** - * @public - */ -export type FolderFilterAttribute = (typeof FolderFilterAttribute)[keyof typeof FolderFilterAttribute]; - /** * @internal */ @@ -8720,6 +8938,8 @@ export const TransformOperationFilterSensitiveLog = (obj: TransformOperation): a if (obj.CastColumnTypeOperation !== undefined) return { CastColumnTypeOperation: obj.CastColumnTypeOperation }; if (obj.TagColumnOperation !== undefined) return { TagColumnOperation: obj.TagColumnOperation }; if (obj.UntagColumnOperation !== undefined) return { UntagColumnOperation: obj.UntagColumnOperation }; + if (obj.OverrideDatasetParameterOperation !== undefined) + return { OverrideDatasetParameterOperation: obj.OverrideDatasetParameterOperation }; if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" }; }; @@ -8813,6 +9033,139 @@ export const CreateTemplateRequestFilterSensitiveLog = (obj: CreateTemplateReque ...obj, }); +/** + * @internal + */ +export const SemanticTypeFilterSensitiveLog = (obj: SemanticType): any => ({ + ...obj, + ...(obj.TruthyCellValue && { TruthyCellValue: SENSITIVE_STRING }), + ...(obj.TruthyCellValueSynonyms && { TruthyCellValueSynonyms: SENSITIVE_STRING }), + ...(obj.FalseyCellValue && { FalseyCellValue: SENSITIVE_STRING }), + ...(obj.FalseyCellValueSynonyms && { FalseyCellValueSynonyms: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const TopicCalculatedFieldFilterSensitiveLog = (obj: TopicCalculatedField): any => ({ + ...obj, + ...(obj.Expression && { Expression: SENSITIVE_STRING }), + ...(obj.SemanticType && { SemanticType: SemanticTypeFilterSensitiveLog(obj.SemanticType) }), +}); + +/** + * @internal + */ +export const TopicColumnFilterSensitiveLog = (obj: TopicColumn): any => ({ + ...obj, + ...(obj.SemanticType && { SemanticType: SemanticTypeFilterSensitiveLog(obj.SemanticType) }), +}); + +/** + * @internal + */ +export const TopicCategoryFilterConstantFilterSensitiveLog = (obj: TopicCategoryFilterConstant): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const TopicCategoryFilterFilterSensitiveLog = (obj: TopicCategoryFilter): any => ({ + ...obj, + ...(obj.Constant && { Constant: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const TopicRangeFilterConstantFilterSensitiveLog = (obj: TopicRangeFilterConstant): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const TopicDateRangeFilterFilterSensitiveLog = (obj: TopicDateRangeFilter): any => ({ + ...obj, + ...(obj.Constant && { Constant: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const TopicSingularFilterConstantFilterSensitiveLog = (obj: TopicSingularFilterConstant): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const TopicNumericEqualityFilterFilterSensitiveLog = (obj: TopicNumericEqualityFilter): any => ({ + ...obj, + ...(obj.Constant && { Constant: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const TopicNumericRangeFilterFilterSensitiveLog = (obj: TopicNumericRangeFilter): any => ({ + ...obj, + ...(obj.Constant && { Constant: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const TopicRelativeDateFilterFilterSensitiveLog = (obj: TopicRelativeDateFilter): any => ({ + ...obj, + ...(obj.Constant && { Constant: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const TopicFilterFilterSensitiveLog = (obj: TopicFilter): any => ({ + ...obj, + ...(obj.CategoryFilter && { CategoryFilter: TopicCategoryFilterFilterSensitiveLog(obj.CategoryFilter) }), + ...(obj.NumericEqualityFilter && { + NumericEqualityFilter: TopicNumericEqualityFilterFilterSensitiveLog(obj.NumericEqualityFilter), + }), + ...(obj.NumericRangeFilter && { + NumericRangeFilter: TopicNumericRangeFilterFilterSensitiveLog(obj.NumericRangeFilter), + }), + ...(obj.DateRangeFilter && { DateRangeFilter: TopicDateRangeFilterFilterSensitiveLog(obj.DateRangeFilter) }), + ...(obj.RelativeDateFilter && { + RelativeDateFilter: TopicRelativeDateFilterFilterSensitiveLog(obj.RelativeDateFilter), + }), +}); + +/** + * @internal + */ +export const DatasetMetadataFilterSensitiveLog = (obj: DatasetMetadata): any => ({ + ...obj, + ...(obj.Filters && { Filters: obj.Filters.map((item) => TopicFilterFilterSensitiveLog(item)) }), + ...(obj.Columns && { Columns: obj.Columns.map((item) => TopicColumnFilterSensitiveLog(item)) }), + ...(obj.CalculatedFields && { + CalculatedFields: obj.CalculatedFields.map((item) => TopicCalculatedFieldFilterSensitiveLog(item)), + }), +}); + +/** + * @internal + */ +export const TopicDetailsFilterSensitiveLog = (obj: TopicDetails): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const CreateTopicRequestFilterSensitiveLog = (obj: CreateTopicRequest): any => ({ + ...obj, +}); + /** * @internal */ @@ -8852,18 +9205,3 @@ export const DescribeDashboardDefinitionResponseFilterSensitiveLog = ( ): any => ({ ...obj, }); - -/** - * @internal - */ -export const DescribeDataSetResponseFilterSensitiveLog = (obj: DescribeDataSetResponse): any => ({ - ...obj, - ...(obj.DataSet && { DataSet: DataSetFilterSensitiveLog(obj.DataSet) }), -}); - -/** - * @internal - */ -export const DescribeTemplateDefinitionResponseFilterSensitiveLog = (obj: DescribeTemplateDefinitionResponse): any => ({ - ...obj, -}); diff --git a/clients/client-quicksight/src/models/models_3.ts b/clients/client-quicksight/src/models/models_3.ts index 3fc28d3310e0..82982662bd4f 100644 --- a/clients/client-quicksight/src/models/models_3.ts +++ b/clients/client-quicksight/src/models/models_3.ts @@ -1,7 +1,7 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@aws-sdk/smithy-client"; -import { AccountCustomization, ActiveIAMPolicyAssignment, ResourceStatus } from "./models_0"; +import { AccountCustomization, ActiveIAMPolicyAssignment, Entity, ResourceStatus, Sheet } from "./models_0"; import { AnalysisDefinition, AnalysisSearchFilter, @@ -9,11 +9,11 @@ import { AnalysisSummary, AnonymousUserEmbeddingExperienceConfiguration, AssignmentStatus, + BookmarksConfigurations, ColumnGroup, ColumnLevelPermissionRule, DashboardVisualId, FilterOperator, - Tag, } from "./models_1"; import { _Parameters, @@ -24,7 +24,11 @@ import { DashboardSummary, DashboardVersionDefinition, DashboardVersionSummary, + DataSet, + DataSetConfiguration, + DataSetFilterSensitiveLog, DataSetImportMode, + DatasetParameter, DataSetRefreshProperties, DataSetSearchFilter, DataSetSummary, @@ -34,18 +38,16 @@ import { DataSourceParameters, DataSourceSearchFilter, DataSourceSummary, - EmbeddingIdentityType, FieldFolder, - FolderFilterAttribute, FolderType, Group, GroupMember, - IdentityType, - Ingestion, + IdentityStore, + IngestionStatus, LinkSharingConfiguration, LogicalTable, LogicalTableFilterSensitiveLog, - NamespaceInfoV2, + NamespaceStatus, PhysicalTable, RefreshSchedule, ResourcePermission, @@ -53,18 +55,2316 @@ import { RowLevelPermissionTagConfiguration, RowLevelPermissionTagConfigurationFilterSensitiveLog, SslProperties, + Tag, TemplateAlias, TemplateSourceEntity, TemplateVersionDefinition, ThemeAlias, ThemeConfiguration, - ThemeType, - User, - UserRole, + TopicDetails, + TopicRefreshSchedule, + VPCConnectionAvailabilityStatus, VpcConnectionProperties, + VPCConnectionResourceStatus, } from "./models_2"; import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException"; +/** + * @public + */ +export interface DescribeDataSetRequest { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + DataSetId: string | undefined; +} + +/** + * @public + */ +export interface DescribeDataSetResponse { + /** + *

      Information on the dataset.

      + */ + DataSet?: DataSet; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeDataSetPermissionsRequest { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + DataSetId: string | undefined; +} + +/** + * @public + */ +export interface DescribeDataSetPermissionsResponse { + /** + *

      The Amazon Resource Name (ARN) of the dataset.

      + */ + DataSetArn?: string; + + /** + *

      The ID for the dataset that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + DataSetId?: string; + + /** + *

      A list of resource permissions on the dataset.

      + */ + Permissions?: ResourcePermission[]; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeDataSetRefreshPropertiesRequest { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the dataset.

      + */ + DataSetId: string | undefined; +} + +/** + * @public + */ +export interface DescribeDataSetRefreshPropertiesResponse { + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The dataset refresh properties.

      + */ + DataSetRefreshProperties?: DataSetRefreshProperties; +} + +/** + * @public + */ +export interface DescribeDataSourceRequest { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + DataSourceId: string | undefined; +} + +/** + * @public + */ +export interface DescribeDataSourceResponse { + /** + *

      The information on the data source.

      + */ + DataSource?: DataSource; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeDataSourcePermissionsRequest { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + DataSourceId: string | undefined; +} + +/** + * @public + */ +export interface DescribeDataSourcePermissionsResponse { + /** + *

      The Amazon Resource Name (ARN) of the data source.

      + */ + DataSourceArn?: string; + + /** + *

      The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + DataSourceId?: string; + + /** + *

      A list of resource permissions on the data source.

      + */ + Permissions?: ResourcePermission[]; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeFolderRequest { + /** + *

      The ID for the Amazon Web Services account that contains the folder.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the folder.

      + */ + FolderId: string | undefined; +} + +/** + * @public + *

      A folder in Amazon QuickSight.

      + */ +export interface Folder { + /** + *

      The ID of the folder.

      + */ + FolderId?: string; + + /** + *

      The Amazon Resource Name (ARN) for the folder.

      + */ + Arn?: string; + + /** + *

      A display name for the folder.

      + */ + Name?: string; + + /** + *

      The type of folder it is.

      + */ + FolderType?: FolderType | string; + + /** + *

      An array of ancestor ARN strings for the folder.

      + */ + FolderPath?: string[]; + + /** + *

      The time that the folder was created.

      + */ + CreatedTime?: Date; + + /** + *

      The time that the folder was last updated.

      + */ + LastUpdatedTime?: Date; +} + +/** + * @public + */ +export interface DescribeFolderResponse { + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      Information about the folder.

      + */ + Folder?: Folder; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeFolderPermissionsRequest { + /** + *

      The ID for the Amazon Web Services account that contains the folder.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the folder.

      + */ + FolderId: string | undefined; +} + +/** + * @public + */ +export interface DescribeFolderPermissionsResponse { + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The ID of the folder.

      + */ + FolderId?: string; + + /** + *

      The Amazon Resource Name (ARN) for the folder.

      + */ + Arn?: string; + + /** + *

      Information about the permissions on the folder.

      + */ + Permissions?: ResourcePermission[]; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeFolderResolvedPermissionsRequest { + /** + *

      The ID for the Amazon Web Services account that contains the folder.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the folder.

      + */ + FolderId: string | undefined; +} + +/** + * @public + */ +export interface DescribeFolderResolvedPermissionsResponse { + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The ID of the folder.

      + */ + FolderId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the folder.

      + */ + Arn?: string; + + /** + *

      Information about the permissions for the folder.

      + */ + Permissions?: ResourcePermission[]; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeGroupRequest { + /** + *

      The name of the group that you want to describe.

      + */ + GroupName: string | undefined; + + /** + *

      The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the + * Amazon Web Services account that contains your Amazon QuickSight account.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The namespace of the group that you want described.

      + */ + Namespace: string | undefined; +} + +/** + * @public + */ +export interface DescribeGroupResponse { + /** + *

      The name of the group.

      + */ + Group?: Group; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeGroupMembershipRequest { + /** + *

      The user name of the user that you want to search for.

      + */ + MemberName: string | undefined; + + /** + *

      The name of the group that you want to search.

      + */ + GroupName: string | undefined; + + /** + *

      The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the + * Amazon Web Services account that contains your Amazon QuickSight account.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The namespace that includes the group you are searching within.

      + */ + Namespace: string | undefined; +} + +/** + * @public + */ +export interface DescribeGroupMembershipResponse { + /** + *

      A member of an Amazon QuickSight group. Currently, group members must be users. Groups + * can't be members of another group. .

      + */ + GroupMember?: GroupMember; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeIAMPolicyAssignmentRequest { + /** + *

      The ID of the Amazon Web Services account that contains the assignment that you want to + * describe.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The name of the assignment, also called a rule.

      + */ + AssignmentName: string | undefined; + + /** + *

      The namespace that contains the assignment.

      + */ + Namespace: string | undefined; +} + +/** + * @public + *

      An Identity and Access Management (IAM) policy assignment.

      + */ +export interface IAMPolicyAssignment { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId?: string; + + /** + *

      Assignment ID.

      + */ + AssignmentId?: string; + + /** + *

      Assignment name.

      + */ + AssignmentName?: string; + + /** + *

      The Amazon Resource Name (ARN) for the IAM policy.

      + */ + PolicyArn?: string; + + /** + *

      Identities.

      + */ + Identities?: Record; + + /** + *

      Assignment status.

      + */ + AssignmentStatus?: AssignmentStatus | string; +} + +/** + * @public + */ +export interface DescribeIAMPolicyAssignmentResponse { + /** + *

      Information describing the IAM policy assignment.

      + */ + IAMPolicyAssignment?: IAMPolicyAssignment; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + *

      The NextToken value isn't valid.

      + */ +export class InvalidNextTokenException extends __BaseException { + readonly name: "InvalidNextTokenException" = "InvalidNextTokenException"; + readonly $fault: "client" = "client"; + Message?: string; + /** + *

      The Amazon Web Services request ID for this request.

      + */ + RequestId?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "InvalidNextTokenException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidNextTokenException.prototype); + this.Message = opts.Message; + this.RequestId = opts.RequestId; + } +} + +/** + * @public + */ +export interface DescribeIngestionRequest { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the dataset used in the ingestion.

      + */ + DataSetId: string | undefined; + + /** + *

      An ID for the ingestion.

      + */ + IngestionId: string | undefined; +} + +/** + * @public + * @enum + */ +export const IngestionErrorType = { + ACCOUNT_CAPACITY_LIMIT_EXCEEDED: "ACCOUNT_CAPACITY_LIMIT_EXCEEDED", + CONNECTION_FAILURE: "CONNECTION_FAILURE", + CURSOR_NOT_ENABLED: "CURSOR_NOT_ENABLED", + CUSTOMER_ERROR: "CUSTOMER_ERROR", + DATA_SET_DELETED: "DATA_SET_DELETED", + DATA_SET_NOT_SPICE: "DATA_SET_NOT_SPICE", + DATA_SET_SIZE_LIMIT_EXCEEDED: "DATA_SET_SIZE_LIMIT_EXCEEDED", + DATA_SOURCE_AUTH_FAILED: "DATA_SOURCE_AUTH_FAILED", + DATA_SOURCE_CONNECTION_FAILED: "DATA_SOURCE_CONNECTION_FAILED", + DATA_SOURCE_NOT_FOUND: "DATA_SOURCE_NOT_FOUND", + DATA_TOLERANCE_EXCEPTION: "DATA_TOLERANCE_EXCEPTION", + DUPLICATE_COLUMN_NAMES_FOUND: "DUPLICATE_COLUMN_NAMES_FOUND", + ELASTICSEARCH_CURSOR_NOT_ENABLED: "ELASTICSEARCH_CURSOR_NOT_ENABLED", + FAILURE_TO_ASSUME_ROLE: "FAILURE_TO_ASSUME_ROLE", + FAILURE_TO_PROCESS_JSON_FILE: "FAILURE_TO_PROCESS_JSON_FILE", + IAM_ROLE_NOT_AVAILABLE: "IAM_ROLE_NOT_AVAILABLE", + INGESTION_CANCELED: "INGESTION_CANCELED", + INGESTION_SUPERSEDED: "INGESTION_SUPERSEDED", + INTERNAL_SERVICE_ERROR: "INTERNAL_SERVICE_ERROR", + INVALID_DATAPREP_SYNTAX: "INVALID_DATAPREP_SYNTAX", + INVALID_DATA_SOURCE_CONFIG: "INVALID_DATA_SOURCE_CONFIG", + INVALID_DATE_FORMAT: "INVALID_DATE_FORMAT", + IOT_DATA_SET_FILE_EMPTY: "IOT_DATA_SET_FILE_EMPTY", + IOT_FILE_NOT_FOUND: "IOT_FILE_NOT_FOUND", + OAUTH_TOKEN_FAILURE: "OAUTH_TOKEN_FAILURE", + PASSWORD_AUTHENTICATION_FAILURE: "PASSWORD_AUTHENTICATION_FAILURE", + PERMISSION_DENIED: "PERMISSION_DENIED", + PERMISSION_NOT_FOUND: "PERMISSION_NOT_FOUND", + QUERY_TIMEOUT: "QUERY_TIMEOUT", + REFRESH_SUPPRESSED_BY_EDIT: "REFRESH_SUPPRESSED_BY_EDIT", + ROW_SIZE_LIMIT_EXCEEDED: "ROW_SIZE_LIMIT_EXCEEDED", + S3_FILE_INACCESSIBLE: "S3_FILE_INACCESSIBLE", + S3_MANIFEST_ERROR: "S3_MANIFEST_ERROR", + S3_UPLOADED_FILE_DELETED: "S3_UPLOADED_FILE_DELETED", + SOURCE_API_LIMIT_EXCEEDED_FAILURE: "SOURCE_API_LIMIT_EXCEEDED_FAILURE", + SOURCE_RESOURCE_LIMIT_EXCEEDED: "SOURCE_RESOURCE_LIMIT_EXCEEDED", + SPICE_TABLE_NOT_FOUND: "SPICE_TABLE_NOT_FOUND", + SQL_EXCEPTION: "SQL_EXCEPTION", + SQL_INVALID_PARAMETER_VALUE: "SQL_INVALID_PARAMETER_VALUE", + SQL_NUMERIC_OVERFLOW: "SQL_NUMERIC_OVERFLOW", + SQL_SCHEMA_MISMATCH_ERROR: "SQL_SCHEMA_MISMATCH_ERROR", + SQL_TABLE_NOT_FOUND: "SQL_TABLE_NOT_FOUND", + SSL_CERTIFICATE_VALIDATION_FAILURE: "SSL_CERTIFICATE_VALIDATION_FAILURE", + UNRESOLVABLE_HOST: "UNRESOLVABLE_HOST", + UNROUTABLE_HOST: "UNROUTABLE_HOST", +} as const; + +/** + * @public + */ +export type IngestionErrorType = (typeof IngestionErrorType)[keyof typeof IngestionErrorType]; + +/** + * @public + *

      Error information for the SPICE ingestion of a dataset.

      + */ +export interface ErrorInfo { + /** + *

      Error type.

      + */ + Type?: IngestionErrorType | string; + + /** + *

      Error message.

      + */ + Message?: string; +} + +/** + * @public + *

      Information about a queued dataset SPICE ingestion.

      + */ +export interface QueueInfo { + /** + *

      The ID of the queued ingestion.

      + */ + WaitingOnIngestion: string | undefined; + + /** + *

      The ID of the ongoing ingestion. The queued ingestion is waiting for the ongoing + * ingestion to complete.

      + */ + QueuedIngestion: string | undefined; +} + +/** + * @public + * @enum + */ +export const IngestionRequestSource = { + MANUAL: "MANUAL", + SCHEDULED: "SCHEDULED", +} as const; + +/** + * @public + */ +export type IngestionRequestSource = (typeof IngestionRequestSource)[keyof typeof IngestionRequestSource]; + +/** + * @public + * @enum + */ +export const IngestionRequestType = { + EDIT: "EDIT", + FULL_REFRESH: "FULL_REFRESH", + INCREMENTAL_REFRESH: "INCREMENTAL_REFRESH", + INITIAL_INGESTION: "INITIAL_INGESTION", +} as const; + +/** + * @public + */ +export type IngestionRequestType = (typeof IngestionRequestType)[keyof typeof IngestionRequestType]; + +/** + * @public + *

      Information about rows for a data set SPICE ingestion.

      + */ +export interface RowInfo { + /** + *

      The number of rows that were ingested.

      + */ + RowsIngested?: number; + + /** + *

      The number of rows that were not ingested.

      + */ + RowsDropped?: number; + + /** + *

      The total number of rows in the dataset.

      + */ + TotalRowsInDataset?: number; +} + +/** + * @public + *

      Information about the SPICE ingestion for a dataset.

      + */ +export interface Ingestion { + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + Arn: string | undefined; + + /** + *

      Ingestion ID.

      + */ + IngestionId?: string; + + /** + *

      Ingestion status.

      + */ + IngestionStatus: IngestionStatus | string | undefined; + + /** + *

      Error information for this ingestion.

      + */ + ErrorInfo?: ErrorInfo; + + /** + *

      Information about rows for a data set SPICE ingestion.

      + */ + RowInfo?: RowInfo; + + /** + *

      Information about a queued dataset SPICE ingestion.

      + */ + QueueInfo?: QueueInfo; + + /** + *

      The time that this ingestion started.

      + */ + CreatedTime: Date | undefined; + + /** + *

      The time that this ingestion took, measured in seconds.

      + */ + IngestionTimeInSeconds?: number; + + /** + *

      The size of the data ingested, in bytes.

      + */ + IngestionSizeInBytes?: number; + + /** + *

      Event source for this ingestion.

      + */ + RequestSource?: IngestionRequestSource | string; + + /** + *

      Type of this ingestion.

      + */ + RequestType?: IngestionRequestType | string; +} + +/** + * @public + */ +export interface DescribeIngestionResponse { + /** + *

      Information about the ingestion.

      + */ + Ingestion?: Ingestion; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeIpRestrictionRequest { + /** + *

      The ID of the Amazon Web Services account that contains the IP rules.

      + */ + AwsAccountId: string | undefined; +} + +/** + * @public + */ +export interface DescribeIpRestrictionResponse { + /** + *

      The ID of the Amazon Web Services account that contains the IP rules.

      + */ + AwsAccountId?: string; + + /** + *

      A map that describes the IP rules with CIDR range and description.

      + */ + IpRestrictionRuleMap?: Record; + + /** + *

      A value that specifies whether IP rules are turned on.

      + */ + Enabled?: boolean; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request. + *

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeNamespaceRequest { + /** + *

      The ID for the Amazon Web Services account that contains the Amazon QuickSight namespace that you want to describe.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The namespace that you want to describe.

      + */ + Namespace: string | undefined; +} + +/** + * @public + * @enum + */ +export const NamespaceErrorType = { + INTERNAL_SERVICE_ERROR: "INTERNAL_SERVICE_ERROR", + PERMISSION_DENIED: "PERMISSION_DENIED", +} as const; + +/** + * @public + */ +export type NamespaceErrorType = (typeof NamespaceErrorType)[keyof typeof NamespaceErrorType]; + +/** + * @public + *

      Errors that occur during namespace creation.

      + */ +export interface NamespaceError { + /** + *

      The error type.

      + */ + Type?: NamespaceErrorType | string; + + /** + *

      The message for the error.

      + */ + Message?: string; +} + +/** + * @public + *

      The error type.

      + */ +export interface NamespaceInfoV2 { + /** + *

      The name of the error.

      + */ + Name?: string; + + /** + *

      The namespace ARN.

      + */ + Arn?: string; + + /** + *

      The namespace Amazon Web Services Region.

      + */ + CapacityRegion?: string; + + /** + *

      The creation status of a namespace that is not yet completely created.

      + */ + CreationStatus?: NamespaceStatus | string; + + /** + *

      The identity store used for the namespace.

      + */ + IdentityStore?: IdentityStore | string; + + /** + *

      An error that occurred when the namespace was created.

      + */ + NamespaceError?: NamespaceError; +} + +/** + * @public + */ +export interface DescribeNamespaceResponse { + /** + *

      The information about the namespace that you're describing. The response includes + * the namespace ARN, name, Amazon Web Services Region, creation status, and identity store. DescribeNamespace also + * works for namespaces that are in the process of being created. For incomplete namespaces, + * this API operation lists the namespace error types and messages associated with the creation process.

      + */ + Namespace?: NamespaceInfoV2; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeRefreshScheduleRequest { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the dataset.

      + */ + DataSetId: string | undefined; + + /** + *

      The ID of the refresh schedule.

      + */ + ScheduleId: string | undefined; +} + +/** + * @public + */ +export interface DescribeRefreshScheduleResponse { + /** + *

      The refresh schedule.

      + */ + RefreshSchedule?: RefreshSchedule; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The Amazon Resource Name (ARN) for the refresh schedule.

      + */ + Arn?: string; +} + +/** + * @public + */ +export interface DescribeTemplateRequest { + /** + *

      The ID of the Amazon Web Services account that contains the template that you're describing.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID for the template.

      + */ + TemplateId: string | undefined; + + /** + *

      (Optional) The number for the version to describe. If a VersionNumber parameter + * value isn't provided, the latest version of the template is described.

      + */ + VersionNumber?: number; + + /** + *

      The alias of the template that you want to describe. If you name a specific alias, you + * describe the version that the alias points to. You can specify the latest version of the + * template by providing the keyword $LATEST in the AliasName + * parameter. The keyword $PUBLISHED doesn't apply to templates.

      + */ + AliasName?: string; +} + +/** + * @public + * @enum + */ +export const TemplateErrorType = { + ACCESS_DENIED: "ACCESS_DENIED", + DATA_SET_NOT_FOUND: "DATA_SET_NOT_FOUND", + INTERNAL_FAILURE: "INTERNAL_FAILURE", + SOURCE_NOT_FOUND: "SOURCE_NOT_FOUND", +} as const; + +/** + * @public + */ +export type TemplateErrorType = (typeof TemplateErrorType)[keyof typeof TemplateErrorType]; + +/** + * @public + *

      List of errors that occurred when the template version creation failed.

      + */ +export interface TemplateError { + /** + *

      Type of error.

      + */ + Type?: TemplateErrorType | string; + + /** + *

      Description of the error type.

      + */ + Message?: string; + + /** + *

      An error path that shows which entities caused the template error.

      + */ + ViolatedEntities?: Entity[]; +} + +/** + * @public + *

      A version of a template.

      + */ +export interface TemplateVersion { + /** + *

      The time that this template version was created.

      + */ + CreatedTime?: Date; + + /** + *

      Errors associated with this template version.

      + */ + Errors?: TemplateError[]; + + /** + *

      The version number of the template version.

      + */ + VersionNumber?: number; + + /** + *

      The status that is associated with the template.

      + *
        + *
      • + *

        + * CREATION_IN_PROGRESS + *

        + *
      • + *
      • + *

        + * CREATION_SUCCESSFUL + *

        + *
      • + *
      • + *

        + * CREATION_FAILED + *

        + *
      • + *
      • + *

        + * UPDATE_IN_PROGRESS + *

        + *
      • + *
      • + *

        + * UPDATE_SUCCESSFUL + *

        + *
      • + *
      • + *

        + * UPDATE_FAILED + *

        + *
      • + *
      • + *

        + * DELETED + *

        + *
      • + *
      + */ + Status?: ResourceStatus | string; + + /** + *

      Schema of the dataset identified by the placeholder. Any dashboard created from this + * template should be bound to new datasets matching the same schema described through this + * API operation.

      + */ + DataSetConfigurations?: DataSetConfiguration[]; + + /** + *

      The description of the template.

      + */ + Description?: string; + + /** + *

      The Amazon Resource Name (ARN) of an analysis or template that was used to create this + * template.

      + */ + SourceEntityArn?: string; + + /** + *

      The ARN of the theme associated with this version of the template.

      + */ + ThemeArn?: string; + + /** + *

      A list of the associated sheets with the unique identifier and name of each sheet.

      + */ + Sheets?: Sheet[]; +} + +/** + * @public + *

      A template object. A template is an entity in Amazon QuickSight that + * encapsulates the metadata required to create an analysis and that you can use to create + * a dashboard. A template adds a layer of abstraction by using placeholders to replace the + * dataset associated with an analysis. You can use templates to create dashboards by + * replacing dataset placeholders with datasets that follow the same schema that was used + * to create the source analysis and template.

      + *

      You can share templates across Amazon Web Services accounts by allowing users in other Amazon Web Services accounts to + * create a template or a dashboard from an existing template.

      + */ +export interface Template { + /** + *

      The Amazon Resource Name (ARN) of the template.

      + */ + Arn?: string; + + /** + *

      The display name of the template.

      + */ + Name?: string; + + /** + *

      A structure describing the versions of the template.

      + */ + Version?: TemplateVersion; + + /** + *

      The ID for the template. This is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TemplateId?: string; + + /** + *

      Time when this was last updated.

      + */ + LastUpdatedTime?: Date; + + /** + *

      Time when this was created.

      + */ + CreatedTime?: Date; +} + +/** + * @public + */ +export interface DescribeTemplateResponse { + /** + *

      The template structure for the object you want to describe.

      + */ + Template?: Template; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeTemplateAliasRequest { + /** + *

      The ID of the Amazon Web Services account that contains the template alias that you're + * describing.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID for the template.

      + */ + TemplateId: string | undefined; + + /** + *

      The name of the template alias that you want to describe. If you name a specific alias, you + * describe the version that the alias points to. You can specify the latest version of the + * template by providing the keyword $LATEST in the AliasName + * parameter. The keyword $PUBLISHED doesn't apply to templates.

      + */ + AliasName: string | undefined; +} + +/** + * @public + */ +export interface DescribeTemplateAliasResponse { + /** + *

      Information about the template alias.

      + */ + TemplateAlias?: TemplateAlias; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeTemplateDefinitionRequest { + /** + *

      The ID of the Amazon Web Services account that contains the template. You must be using the + * Amazon Web Services account that the template is in.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the template that you're describing.

      + */ + TemplateId: string | undefined; + + /** + *

      The version number of the template.

      + */ + VersionNumber?: number; + + /** + *

      The alias of the template that you want to describe. If you name a specific alias, you + * describe the version that the alias points to. You can specify the latest version of the + * template by providing the keyword $LATEST in the AliasName + * parameter. The keyword $PUBLISHED doesn't apply to templates.

      + */ + AliasName?: string; +} + +/** + * @public + */ +export interface DescribeTemplateDefinitionResponse { + /** + *

      The descriptive name of the template.

      + */ + Name?: string; + + /** + *

      The ID of the template described.

      + */ + TemplateId?: string; + + /** + *

      Errors associated with the template version.

      + */ + Errors?: TemplateError[]; + + /** + *

      Status associated with the template.

      + *
        + *
      • + *

        + * CREATION_IN_PROGRESS + *

        + *
      • + *
      • + *

        + * CREATION_SUCCESSFUL + *

        + *
      • + *
      • + *

        + * CREATION_FAILED + *

        + *
      • + *
      • + *

        + * UPDATE_IN_PROGRESS + *

        + *
      • + *
      • + *

        + * UPDATE_SUCCESSFUL + *

        + *
      • + *
      • + *

        + * UPDATE_FAILED + *

        + *
      • + *
      • + *

        + * DELETED + *

        + *
      • + *
      + */ + ResourceStatus?: ResourceStatus | string; + + /** + *

      The ARN of the theme of the template.

      + */ + ThemeArn?: string; + + /** + *

      The definition of the template.

      + *

      A definition is the data model of all features in a Dashboard, Template, or Analysis.

      + */ + Definition?: TemplateVersionDefinition; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeTemplatePermissionsRequest { + /** + *

      The ID of the Amazon Web Services account that contains the template that you're describing.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID for the template.

      + */ + TemplateId: string | undefined; +} + +/** + * @public + */ +export interface DescribeTemplatePermissionsResponse { + /** + *

      The ID for the template.

      + */ + TemplateId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the template.

      + */ + TemplateArn?: string; + + /** + *

      A list of resource permissions to be set on the template.

      + */ + Permissions?: ResourcePermission[]; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeThemeRequest { + /** + *

      The ID of the Amazon Web Services account that contains the theme that you're describing.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID for the theme.

      + */ + ThemeId: string | undefined; + + /** + *

      The version number for the version to describe. If a VersionNumber parameter + * value isn't provided, the latest version of the theme is described.

      + */ + VersionNumber?: number; + + /** + *

      The alias of the theme that you want to describe. If you name a specific alias, you + * describe the version that the alias points to. You can specify the latest version of the + * theme by providing the keyword $LATEST in the AliasName + * parameter. The keyword $PUBLISHED doesn't apply to themes.

      + */ + AliasName?: string; +} + +/** + * @public + * @enum + */ +export const ThemeType = { + ALL: "ALL", + CUSTOM: "CUSTOM", + QUICKSIGHT: "QUICKSIGHT", +} as const; + +/** + * @public + */ +export type ThemeType = (typeof ThemeType)[keyof typeof ThemeType]; + +/** + * @public + * @enum + */ +export const ThemeErrorType = { + INTERNAL_FAILURE: "INTERNAL_FAILURE", +} as const; + +/** + * @public + */ +export type ThemeErrorType = (typeof ThemeErrorType)[keyof typeof ThemeErrorType]; + +/** + * @public + *

      Theme error.

      + */ +export interface ThemeError { + /** + *

      The type of error.

      + */ + Type?: ThemeErrorType | string; + + /** + *

      The error message.

      + */ + Message?: string; +} + +/** + * @public + *

      A version of a theme.

      + */ +export interface ThemeVersion { + /** + *

      The version number of the theme.

      + */ + VersionNumber?: number; + + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + Arn?: string; + + /** + *

      The description of the theme.

      + */ + Description?: string; + + /** + *

      The Amazon QuickSight-defined ID of the theme that a custom theme inherits from. All + * themes initially inherit from a default Amazon QuickSight theme.

      + */ + BaseThemeId?: string; + + /** + *

      The date and time that this theme version was created.

      + */ + CreatedTime?: Date; + + /** + *

      The theme configuration, which contains all the theme display properties.

      + */ + Configuration?: ThemeConfiguration; + + /** + *

      Errors associated with the theme.

      + */ + Errors?: ThemeError[]; + + /** + *

      The status of the theme version.

      + */ + Status?: ResourceStatus | string; +} + +/** + * @public + *

      Summary information about a theme.

      + */ +export interface Theme { + /** + *

      The Amazon Resource Name (ARN) of the theme.

      + */ + Arn?: string; + + /** + *

      The name that the user gives to the theme.

      + */ + Name?: string; + + /** + *

      The identifier that the user gives to the theme.

      + */ + ThemeId?: string; + + /** + *

      A version of a theme.

      + */ + Version?: ThemeVersion; + + /** + *

      The date and time that the theme was created.

      + */ + CreatedTime?: Date; + + /** + *

      The date and time that the theme was last updated.

      + */ + LastUpdatedTime?: Date; + + /** + *

      The type of theme, based on how it was created. Valid values include: + * QUICKSIGHT and CUSTOM.

      + */ + Type?: ThemeType | string; +} + +/** + * @public + */ +export interface DescribeThemeResponse { + /** + *

      The information about the theme that you are describing.

      + */ + Theme?: Theme; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeThemeAliasRequest { + /** + *

      The ID of the Amazon Web Services account that contains the theme alias that you're + * describing.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID for the theme.

      + */ + ThemeId: string | undefined; + + /** + *

      The name of the theme alias that you want to describe.

      + */ + AliasName: string | undefined; +} + +/** + * @public + */ +export interface DescribeThemeAliasResponse { + /** + *

      Information about the theme alias.

      + */ + ThemeAlias?: ThemeAlias; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeThemePermissionsRequest { + /** + *

      The ID of the Amazon Web Services account that contains the theme that you're describing.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID for the theme that you want to describe permissions for.

      + */ + ThemeId: string | undefined; +} + +/** + * @public + */ +export interface DescribeThemePermissionsResponse { + /** + *

      The ID for the theme.

      + */ + ThemeId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the theme.

      + */ + ThemeArn?: string; + + /** + *

      A list of resource permissions set on the theme.

      + */ + Permissions?: ResourcePermission[]; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeTopicRequest { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the topic that you want to describe. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId: string | undefined; +} + +/** + * @public + */ +export interface DescribeTopicResponse { + /** + *

      The Amazon Resource Name (ARN) of the topic.

      + */ + Arn?: string; + + /** + *

      The ID of the topic that you want to describe. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId?: string; + + /** + *

      The definition of a topic.

      + */ + Topic?: TopicDetails; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeTopicPermissionsRequest { + /** + *

      The ID of the Amazon Web Services account that contains the topic that you want + * described.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the topic that you want to describe. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId: string | undefined; +} + +/** + * @public + */ +export interface DescribeTopicPermissionsResponse { + /** + *

      The ID of the topic that you want to describe. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the topic.

      + */ + TopicArn?: string; + + /** + *

      A list of resource permissions that are configured to the topic.

      + */ + Permissions?: ResourcePermission[]; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeTopicRefreshRequest { + /** + *

      The ID of the Amazon Web Services account that contains the topic whose refresh you want + * to describe.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the topic that you want to describe. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId: string | undefined; + + /** + *

      The ID of the refresh, which is performed when the topic is created or updated.

      + */ + RefreshId: string | undefined; +} + +/** + * @public + * @enum + */ +export const TopicRefreshStatus = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + FAILED: "FAILED", + INITIALIZED: "INITIALIZED", + RUNNING: "RUNNING", +} as const; + +/** + * @public + */ +export type TopicRefreshStatus = (typeof TopicRefreshStatus)[keyof typeof TopicRefreshStatus]; + +/** + * @public + *

      The details about the refresh of a topic.

      + */ +export interface TopicRefreshDetails { + /** + *

      The Amazon Resource Name (ARN) of the topic refresh.

      + */ + RefreshArn?: string; + + /** + *

      The ID of the refresh, which occurs as a result of topic creation or topic update.

      + */ + RefreshId?: string; + + /** + *

      The status of the refresh job that indicates whether the job is still running, completed successfully, or failed.

      + */ + RefreshStatus?: TopicRefreshStatus | string; +} + +/** + * @public + */ +export interface DescribeTopicRefreshResponse { + /** + *

      Details of the refresh, which is performed when the topic is created or updated.

      + */ + RefreshDetails?: TopicRefreshDetails; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeTopicRefreshScheduleRequest { + /** + *

      The Amazon Web Services account ID.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the topic that contains the refresh schedule that you want to describe. This + * ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId: string | undefined; + + /** + *

      The ID of the dataset.

      + */ + DatasetId: string | undefined; +} + +/** + * @public + */ +export interface DescribeTopicRefreshScheduleResponse { + /** + *

      The ID of the topic that contains the refresh schedule that you want to describe. This + * ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the topic.

      + */ + TopicArn?: string; + + /** + *

      The Amazon Resource Name (ARN) of the dataset.

      + */ + DatasetArn?: string; + + /** + *

      The definition of a refresh schedule.

      + */ + RefreshSchedule?: TopicRefreshSchedule; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface DescribeUserRequest { + /** + *

      The name of the user that you want to describe.

      + */ + UserName: string | undefined; + + /** + *

      The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the + * Amazon Web Services account that contains your Amazon QuickSight account.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The namespace. Currently, you should set this to default.

      + */ + Namespace: string | undefined; +} + +/** + * @public + * @enum + */ +export const IdentityType = { + IAM: "IAM", + QUICKSIGHT: "QUICKSIGHT", +} as const; + +/** + * @public + */ +export type IdentityType = (typeof IdentityType)[keyof typeof IdentityType]; + +/** + * @public + * @enum + */ +export const UserRole = { + ADMIN: "ADMIN", + AUTHOR: "AUTHOR", + READER: "READER", + RESTRICTED_AUTHOR: "RESTRICTED_AUTHOR", + RESTRICTED_READER: "RESTRICTED_READER", +} as const; + +/** + * @public + */ +export type UserRole = (typeof UserRole)[keyof typeof UserRole]; + +/** + * @public + *

      A registered user of Amazon QuickSight.

      + */ +export interface User { + /** + *

      The Amazon Resource Name (ARN) for the user.

      + */ + Arn?: string; + + /** + *

      The user's user name. This value is required if you are registering a user that will be managed in Amazon QuickSight. In the output, the value for UserName is + * N/A when the value for IdentityType is IAM + * and the corresponding IAM user is deleted.

      + */ + UserName?: string; + + /** + *

      The user's email address.

      + */ + Email?: string; + + /** + *

      The Amazon QuickSight role for the user. The user role can be one of the + * following:.

      + *
        + *
      • + *

        + * READER: A user who has read-only access to dashboards.

        + *
      • + *
      • + *

        + * AUTHOR: A user who can create data sources, datasets, analyses, + * and dashboards.

        + *
      • + *
      • + *

        + * ADMIN: A user who is an author, who can also manage Amazon + * Amazon QuickSight settings.

        + *
      • + *
      • + *

        + * RESTRICTED_READER: This role isn't currently available for + * use.

        + *
      • + *
      • + *

        + * RESTRICTED_AUTHOR: This role isn't currently available for + * use.

        + *
      • + *
      + */ + Role?: UserRole | string; + + /** + *

      The type of identity authentication used by the user.

      + */ + IdentityType?: IdentityType | string; + + /** + *

      The active status of user. When you create an Amazon QuickSight user that's not an IAM user or an Active Directory user, that user is inactive until they sign in and provide a + * password.

      + */ + Active?: boolean; + + /** + *

      The principal ID of the user.

      + */ + PrincipalId?: string; + + /** + *

      The custom permissions profile associated with this user.

      + */ + CustomPermissionsName?: string; + + /** + *

      The type of supported external login provider that provides identity to let the user + * federate into Amazon QuickSight with an associated IAM role. The type can be one of the following.

      + *
        + *
      • + *

        + * COGNITO: Amazon Cognito. The provider URL is cognito-identity.amazonaws.com.

        + *
      • + *
      • + *

        + * CUSTOM_OIDC: Custom OpenID Connect (OIDC) provider.

        + *
      • + *
      + */ + ExternalLoginFederationProviderType?: string; + + /** + *

      The URL of the external login provider.

      + */ + ExternalLoginFederationProviderUrl?: string; + + /** + *

      The identity ID for the user in the external login provider.

      + */ + ExternalLoginId?: string; +} + +/** + * @public + */ +export interface DescribeUserResponse { + /** + *

      The user name.

      + */ + User?: User; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface DescribeVPCConnectionRequest { + /** + *

      The Amazon Web Services account ID of the account that contains the VPC connection that + * you want described.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the VPC connection that + * you're creating. This ID is a unique identifier for each Amazon Web Services Region in an Amazon Web Services account.

      + */ + VPCConnectionId: string | undefined; +} + +/** + * @public + * @enum + */ +export const NetworkInterfaceStatus = { + ATTACHMENT_FAILED_ROLLBACK_FAILED: "ATTACHMENT_FAILED_ROLLBACK_FAILED", + AVAILABLE: "AVAILABLE", + CREATING: "CREATING", + CREATION_FAILED: "CREATION_FAILED", + DELETED: "DELETED", + DELETING: "DELETING", + DELETION_FAILED: "DELETION_FAILED", + DELETION_SCHEDULED: "DELETION_SCHEDULED", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATING: "UPDATING", +} as const; + +/** + * @public + */ +export type NetworkInterfaceStatus = (typeof NetworkInterfaceStatus)[keyof typeof NetworkInterfaceStatus]; + +/** + * @public + *

      The structure that contains information about a network interface.

      + */ +export interface NetworkInterface { + /** + *

      The subnet ID associated with the network interface.

      + */ + SubnetId?: string; + + /** + *

      The availability zone that the network interface resides in.

      + */ + AvailabilityZone?: string; + + /** + *

      An error message.

      + */ + ErrorMessage?: string; + + /** + *

      The status of the network interface.

      + */ + Status?: NetworkInterfaceStatus | string; + + /** + *

      The network interface ID.

      + */ + NetworkInterfaceId?: string; +} + +/** + * @public + *

      The structure of a VPC connection.

      + */ +export interface VPCConnection { + /** + *

      The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web Services Region in an + * Amazon Web Services account.

      + */ + VPCConnectionId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the VPC connection.

      + */ + Arn?: string; + + /** + *

      The display name for the VPC connection.

      + */ + Name?: string; + + /** + *

      The Amazon EC2 VPC ID associated with the VPC connection.

      + */ + VPCId?: string; + + /** + *

      The Amazon EC2 security group IDs associated with the VPC connection.

      + */ + SecurityGroupIds?: string[]; + + /** + *

      A list of IP addresses of DNS resolver endpoints for the VPC connection.

      + */ + DnsResolvers?: string[]; + + /** + *

      The status of the VPC connection.

      + */ + Status?: VPCConnectionResourceStatus | string; + + /** + *

      The availability status of the VPC connection.

      + */ + AvailabilityStatus?: VPCConnectionAvailabilityStatus | string; + + /** + *

      A list of network interfaces.

      + */ + NetworkInterfaces?: NetworkInterface[]; + + /** + *

      The ARN of the + * IAM role associated with the VPC + * connection.

      + */ + RoleArn?: string; + + /** + *

      The time that the VPC connection was created.

      + */ + CreatedTime?: Date; + + /** + *

      The time that the VPC connection was last updated.

      + */ + LastUpdatedTime?: Date; +} + +/** + * @public + */ +export interface DescribeVPCConnectionResponse { + /** + *

      A response object that provides information for the specified VPC connection.

      + */ + VPCConnection?: VPCConnection; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + *

      The domain specified isn't on the allow list. All domains for embedded dashboards must be + * added to the approved list by an Amazon QuickSight admin.

      + */ +export class DomainNotWhitelistedException extends __BaseException { + readonly name: "DomainNotWhitelistedException" = "DomainNotWhitelistedException"; + readonly $fault: "client" = "client"; + Message?: string; + /** + *

      The Amazon Web Services request ID for this request.

      + */ + RequestId?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "DomainNotWhitelistedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, DomainNotWhitelistedException.prototype); + this.Message = opts.Message; + this.RequestId = opts.RequestId; + } +} + +/** + * @public + * @enum + */ +export const EmbeddingIdentityType = { + ANONYMOUS: "ANONYMOUS", + IAM: "IAM", + QUICKSIGHT: "QUICKSIGHT", +} as const; + +/** + * @public + */ +export type EmbeddingIdentityType = (typeof EmbeddingIdentityType)[keyof typeof EmbeddingIdentityType]; + +/** + * @public + * @enum + */ +export const FolderFilterAttribute = { + DIRECT_QUICKSIGHT_OWNER: "DIRECT_QUICKSIGHT_OWNER", + DIRECT_QUICKSIGHT_SOLE_OWNER: "DIRECT_QUICKSIGHT_SOLE_OWNER", + DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER", + FOLDER_NAME: "FOLDER_NAME", + PARENT_FOLDER_ARN: "PARENT_FOLDER_ARN", + QUICKSIGHT_OWNER: "QUICKSIGHT_OWNER", + QUICKSIGHT_VIEWER_OR_OWNER: "QUICKSIGHT_VIEWER_OR_OWNER", +} as const; + +/** + * @public + */ +export type FolderFilterAttribute = (typeof FolderFilterAttribute)[keyof typeof FolderFilterAttribute]; + /** * @public *

      An object that consists of a member Amazon Resource Name (ARN) and a member ID.

      @@ -347,6 +2647,11 @@ export interface RegisteredUserDashboardFeatureConfigurations { *

      The state persistence settings of an embedded dashboard.

      */ StatePersistence?: StatePersistenceConfigurations; + + /** + *

      The bookmarks configuration for an embedded dashboard in Amazon QuickSight.

      + */ + Bookmarks?: BookmarksConfigurations; } /** @@ -1365,7 +3670,8 @@ export interface ListGroupsResponse { */ export interface ListIAMPolicyAssignmentsRequest { /** - *

      The ID of the Amazon Web Services account that contains these IAM policy assignments.

      + *

      The ID of the Amazon Web Services account that contains these IAM policy + * assignments.

      */ AwsAccountId: string | undefined; @@ -2079,96 +4385,353 @@ export interface ListThemeVersionsResponse { /** * @public */ -export interface ListUserGroupsRequest { - /** - *

      The Amazon QuickSight user name that you want to list group memberships for.

      - */ - UserName: string | undefined; - +export interface ListTopicRefreshSchedulesRequest { + /** + *

      The ID of the Amazon Web Services account that contains the topic whose refresh schedule + * you want described.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID for the topic that you want to describe. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId: string | undefined; +} + +/** + * @public + *

      A summary of the refresh schedule details for a dataset.

      + */ +export interface TopicRefreshScheduleSummary { + /** + *

      The ID of the dataset.

      + */ + DatasetId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the dataset.

      + */ + DatasetArn?: string; + + /** + *

      The name of the dataset.

      + */ + DatasetName?: string; + + /** + *

      The definition of a refresh schedule.

      + */ + RefreshSchedule?: TopicRefreshSchedule; +} + +/** + * @public + */ +export interface ListTopicRefreshSchedulesResponse { + /** + *

      The ID for the topic that you want to describe. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the topic.

      + */ + TopicArn?: string; + + /** + *

      The list of topic refresh schedules.

      + */ + RefreshSchedules?: TopicRefreshScheduleSummary[]; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface ListTopicsRequest { + /** + *

      The ID of the Amazon Web Services account that contains the topics that you want to + * list.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The token for the next set of results, or null if there are no more results.

      + */ + NextToken?: string; + + /** + *

      The maximum number of results to be returned per request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      A topic summary.

      + */ +export interface TopicSummary { + /** + *

      The Amazon Resource Name (ARN) of the topic.

      + */ + Arn?: string; + + /** + *

      The ID for the topic. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId?: string; + + /** + *

      The name of the topic.

      + */ + Name?: string; +} + +/** + * @public + */ +export interface ListTopicsResponse { + /** + *

      A list of topic summaries.

      + */ + TopicsSummaries?: TopicSummary[]; + + /** + *

      The token for the next set of results, or null if there are no more results.

      + */ + NextToken?: string; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface ListUserGroupsRequest { + /** + *

      The Amazon QuickSight user name that you want to list group memberships for.

      + */ + UserName: string | undefined; + + /** + *

      The Amazon Web Services account ID that the user is in. Currently, you use the ID for the Amazon Web Services account + * that contains your Amazon QuickSight account.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The namespace. Currently, you should set this to default.

      + */ + Namespace: string | undefined; + + /** + *

      A pagination token that can be used in a subsequent request.

      + */ + NextToken?: string; + + /** + *

      The maximum number of results to return from this request.

      + */ + MaxResults?: number; +} + +/** + * @public + */ +export interface ListUserGroupsResponse { + /** + *

      The list of groups the user is a member of.

      + */ + GroupList?: Group[]; + + /** + *

      A pagination token that can be used in a subsequent request.

      + */ + NextToken?: string; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface ListUsersRequest { + /** + *

      The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the + * Amazon Web Services account that contains your Amazon QuickSight account.

      + */ + AwsAccountId: string | undefined; + + /** + *

      A pagination token that can be used in a subsequent request.

      + */ + NextToken?: string; + + /** + *

      The maximum number of results to return from this request.

      + */ + MaxResults?: number; + + /** + *

      The namespace. Currently, you should set this to default.

      + */ + Namespace: string | undefined; +} + +/** + * @public + */ +export interface ListUsersResponse { + /** + *

      The list of users.

      + */ + UserList?: User[]; + + /** + *

      A pagination token that can be used in a subsequent request.

      + */ + NextToken?: string; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface ListVPCConnectionsRequest { + /** + *

      The Amazon Web Services account ID of the account that contains the VPC connections + * that you want to list.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The token for the next set of results, or null if there are no more results.

      + */ + NextToken?: string; + + /** + *

      The maximum number of results to be returned per request.

      + */ + MaxResults?: number; +} + +/** + * @public + *

      The summary metadata that describes a VPC connection.

      + */ +export interface VPCConnectionSummary { /** - *

      The Amazon Web Services account ID that the user is in. Currently, you use the ID for the Amazon Web Services account - * that contains your Amazon QuickSight account.

      + *

      The ID of the VPC connection that + * you're + * creating. This ID is a unique identifier for each Amazon Web Services Region in an + * Amazon Web Services account.

      */ - AwsAccountId: string | undefined; + VPCConnectionId?: string; /** - *

      The namespace. Currently, you should set this to default.

      + *

      The Amazon Resource Name (ARN) of the VPC connection.

      */ - Namespace: string | undefined; + Arn?: string; /** - *

      A pagination token that can be used in a subsequent request.

      + *

      The display name for the VPC connection.

      */ - NextToken?: string; + Name?: string; /** - *

      The maximum number of results to return from this request.

      + *

      The Amazon EC2 VPC ID associated with the VPC connection.

      */ - MaxResults?: number; -} + VPCId?: string; -/** - * @public - */ -export interface ListUserGroupsResponse { /** - *

      The list of groups the user is a member of.

      + *

      The Amazon EC2 security group IDs associated with the VPC connection.

      */ - GroupList?: Group[]; + SecurityGroupIds?: string[]; /** - *

      A pagination token that can be used in a subsequent request.

      + *

      A list of IP addresses of DNS resolver endpoints for the VPC connection.

      */ - NextToken?: string; + DnsResolvers?: string[]; /** - *

      The Amazon Web Services request ID for this operation.

      + *

      The status of the VPC connection.

      */ - RequestId?: string; + Status?: VPCConnectionResourceStatus | string; /** - *

      The HTTP status of the request.

      + *

      The availability status of the VPC connection.

      */ - Status?: number; -} + AvailabilityStatus?: VPCConnectionAvailabilityStatus | string; -/** - * @public - */ -export interface ListUsersRequest { /** - *

      The ID for the Amazon Web Services account that the user is in. Currently, you use the ID for the - * Amazon Web Services account that contains your Amazon QuickSight account.

      + *

      A list of network interfaces.

      */ - AwsAccountId: string | undefined; + NetworkInterfaces?: NetworkInterface[]; /** - *

      A pagination token that can be used in a subsequent request.

      + *

      The ARN of the IAM role associated + * with the VPC connection.

      */ - NextToken?: string; + RoleArn?: string; /** - *

      The maximum number of results to return from this request.

      + *

      The time that the VPC connection was created.

      */ - MaxResults?: number; + CreatedTime?: Date; /** - *

      The namespace. Currently, you should set this to default.

      + *

      The time that the VPC connection was last updated.

      */ - Namespace: string | undefined; + LastUpdatedTime?: Date; } /** * @public */ -export interface ListUsersResponse { +export interface ListVPCConnectionsResponse { /** - *

      The list of users.

      + *

      A VPCConnectionSummaries object that returns a summary of VPC connection + * objects.

      */ - UserList?: User[]; + VPCConnectionSummaries?: VPCConnectionSummary[]; /** - *

      A pagination token that can be used in a subsequent request.

      + *

      The token for the next set of results, or null if there are no more + * results.

      */ NextToken?: string; @@ -3361,6 +5924,11 @@ export interface UpdateDataSetRequest { *

      The usage configuration to apply to child datasets that reference this dataset as a source.

      */ DataSetUsageConfiguration?: DataSetUsageConfiguration; + + /** + *

      The parameter declarations of the dataset.

      + */ + DatasetParameters?: DatasetParameter[]; } /** @@ -3726,12 +6294,16 @@ export interface UpdateGroupResponse { */ export interface UpdateIAMPolicyAssignmentRequest { /** - *

      The ID of the Amazon Web Services account that contains the IAM policy assignment.

      + *

      The ID of the Amazon Web Services account that contains the IAM policy + * assignment.

      */ AwsAccountId: string | undefined; /** - *

      The name of the assignment, also called a rule. This name must be unique within an Amazon Web Services account.

      + *

      The name of the assignment, also called a rule. + * The + * name must be unique within the + * Amazon Web Services account.

      */ AssignmentName: string | undefined; @@ -3745,30 +6317,32 @@ export interface UpdateIAMPolicyAssignmentRequest { *
        *
      • *

        - * ENABLED - Anything specified in this assignment is used when creating the data - * source.

        + * ENABLED - Anything specified in this assignment is used when + * creating the data source.

        *
      • *
      • *

        - * DISABLED - This assignment isn't used when creating the data source.

        + * DISABLED - This assignment isn't used when creating the data + * source.

        *
      • *
      • *

        - * DRAFT - This assignment is an unfinished draft and isn't used when creating the - * data source.

        + * DRAFT - This assignment is an unfinished draft and isn't used + * when creating the data source.

        *
      • *
      */ AssignmentStatus?: AssignmentStatus | string; /** - *

      The ARN for the IAM policy to apply to the Amazon QuickSight users and groups - * specified in this assignment.

      + *

      The ARN for the IAM policy to apply to the Amazon QuickSight users and + * groups specified in this assignment.

      */ PolicyArn?: string; /** - *

      The Amazon QuickSight users, groups, or both that you want to assign the policy to.

      + *

      The Amazon QuickSight users, groups, or both that you want to assign the policy + * to.

      */ Identities?: Record; } @@ -3788,13 +6362,14 @@ export interface UpdateIAMPolicyAssignmentResponse { AssignmentId?: string; /** - *

      The ARN for the IAM policy applied to the Amazon QuickSight users and groups specified in this - * assignment.

      + *

      The ARN for the IAM policy applied to the Amazon QuickSight users and + * groups specified in this assignment.

      */ PolicyArn?: string; /** - *

      The Amazon QuickSight users, groups, or both that the IAM policy is assigned to.

      + *

      The Amazon QuickSight users, groups, or both that the IAM policy is + * assigned to.

      */ Identities?: Record; @@ -3803,17 +6378,18 @@ export interface UpdateIAMPolicyAssignmentResponse { *
        *
      • *

        - * ENABLED - Anything specified in this assignment is used when creating the data - * source.

        + * ENABLED - Anything specified in this assignment is used when + * creating the data source.

        *
      • *
      • *

        - * DISABLED - This assignment isn't used when creating the data source.

        + * DISABLED - This assignment isn't used when creating the data + * source.

        *
      • *
      • *

        - * DRAFT - This assignment is an unfinished draft and isn't used when creating the - * data source.

        + * DRAFT - This assignment is an unfinished draft and isn't used + * when creating the data source.

        *
      • *
      */ @@ -4304,6 +6880,169 @@ export interface UpdateThemePermissionsResponse { Status?: number; } +/** + * @public + */ +export interface UpdateTopicRequest { + /** + *

      The ID of the Amazon Web Services account that contains the topic that you want to + * update.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId: string | undefined; + + /** + *

      The definition of the topic that you want to update.

      + */ + Topic: TopicDetails | undefined; +} + +/** + * @public + */ +export interface UpdateTopicResponse { + /** + *

      The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the topic.

      + */ + Arn?: string; + + /** + *

      The Amazon Resource Name (ARN) of the topic refresh.

      + */ + RefreshArn?: string; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @public + */ +export interface UpdateTopicPermissionsRequest { + /** + *

      The ID of the Amazon Web Services account that contains the topic that you want to update + * the permissions for.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId: string | undefined; + + /** + *

      The resource permissions that you want to grant to the topic.

      + */ + GrantPermissions?: ResourcePermission[]; + + /** + *

      The resource permissions that you want to revoke from the topic.

      + */ + RevokePermissions?: ResourcePermission[]; +} + +/** + * @public + */ +export interface UpdateTopicPermissionsResponse { + /** + *

      The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the topic.

      + */ + TopicArn?: string; + + /** + *

      A list of resource permissions on the topic.

      + */ + Permissions?: ResourcePermission[]; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + +/** + * @public + */ +export interface UpdateTopicRefreshScheduleRequest { + /** + *

      The ID of the Amazon Web Services account that contains the topic whose refresh schedule + * you want to update.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId: string | undefined; + + /** + *

      The ID of the dataset.

      + */ + DatasetId: string | undefined; + + /** + *

      The definition of a refresh schedule.

      + */ + RefreshSchedule: TopicRefreshSchedule | undefined; +} + +/** + * @public + */ +export interface UpdateTopicRefreshScheduleResponse { + /** + *

      The ID of the topic that you want to modify. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

      + */ + TopicId?: string; + + /** + *

      The Amazon Resource Name (ARN) of the topic.

      + */ + TopicArn?: string; + + /** + *

      The Amazon Resource Name (ARN) of the dataset.

      + */ + DatasetArn?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; +} + /** * @public */ @@ -4446,6 +7185,106 @@ export interface UpdateUserResponse { Status?: number; } +/** + * @public + */ +export interface UpdateVPCConnectionRequest { + /** + *

      The Amazon Web Services account ID of the account that contains the VPC connection that + * you want to update.

      + */ + AwsAccountId: string | undefined; + + /** + *

      The ID of the VPC connection that + * you're updating. This ID is a unique identifier for each Amazon Web Services Region in an + * Amazon Web Services account.

      + */ + VPCConnectionId: string | undefined; + + /** + *

      The display name for the VPC connection.

      + */ + Name: string | undefined; + + /** + *

      A list of subnet IDs for the VPC connection.

      + */ + SubnetIds: string[] | undefined; + + /** + *

      A list of security group IDs for the VPC connection.

      + */ + SecurityGroupIds: string[] | undefined; + + /** + *

      A list of IP addresses of DNS resolver endpoints for the VPC connection.

      + */ + DnsResolvers?: string[]; + + /** + *

      An IAM role associated with the VPC connection.

      + */ + RoleArn: string | undefined; +} + +/** + * @public + */ +export interface UpdateVPCConnectionResponse { + /** + *

      The Amazon Resource Name (ARN) of the VPC connection.

      + */ + Arn?: string; + + /** + *

      The ID of the VPC connection that you are updating. This ID is a unique identifier for each Amazon Web Services Region in anAmazon Web Services account.

      + */ + VPCConnectionId?: string; + + /** + *

      The update status of the VPC connection's last update.

      + */ + UpdateStatus?: VPCConnectionResourceStatus | string; + + /** + *

      The availability status of the VPC connection.

      + */ + AvailabilityStatus?: VPCConnectionAvailabilityStatus | string; + + /** + *

      The Amazon Web Services request ID for this operation.

      + */ + RequestId?: string; + + /** + *

      The HTTP status of the request.

      + */ + Status?: number; +} + +/** + * @internal + */ +export const DescribeDataSetResponseFilterSensitiveLog = (obj: DescribeDataSetResponse): any => ({ + ...obj, + ...(obj.DataSet && { DataSet: DataSetFilterSensitiveLog(obj.DataSet) }), +}); + +/** + * @internal + */ +export const DescribeTemplateDefinitionResponseFilterSensitiveLog = (obj: DescribeTemplateDefinitionResponse): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const DescribeTopicResponseFilterSensitiveLog = (obj: DescribeTopicResponse): any => ({ + ...obj, +}); + /** * @internal */ @@ -4555,3 +7394,10 @@ export const UpdateDataSourceRequestFilterSensitiveLog = (obj: UpdateDataSourceR export const UpdateTemplateRequestFilterSensitiveLog = (obj: UpdateTemplateRequest): any => ({ ...obj, }); + +/** + * @internal + */ +export const UpdateTopicRequestFilterSensitiveLog = (obj: UpdateTopicRequest): any => ({ + ...obj, +}); diff --git a/clients/client-quicksight/src/pagination/ListTopicsPaginator.ts b/clients/client-quicksight/src/pagination/ListTopicsPaginator.ts new file mode 100644 index 000000000000..67c7481e5830 --- /dev/null +++ b/clients/client-quicksight/src/pagination/ListTopicsPaginator.ts @@ -0,0 +1,46 @@ +// smithy-typescript generated code +import { Paginator } from "@aws-sdk/types"; + +import { ListTopicsCommand, ListTopicsCommandInput, ListTopicsCommandOutput } from "../commands/ListTopicsCommand"; +import { QuickSightClient } from "../QuickSightClient"; +import { QuickSightPaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: QuickSightClient, + input: ListTopicsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new ListTopicsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateListTopics( + config: QuickSightPaginationConfiguration, + input: ListTopicsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: ListTopicsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof QuickSightClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected QuickSight | QuickSightClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-quicksight/src/pagination/ListVPCConnectionsPaginator.ts b/clients/client-quicksight/src/pagination/ListVPCConnectionsPaginator.ts new file mode 100644 index 000000000000..e4f272eefc20 --- /dev/null +++ b/clients/client-quicksight/src/pagination/ListVPCConnectionsPaginator.ts @@ -0,0 +1,50 @@ +// smithy-typescript generated code +import { Paginator } from "@aws-sdk/types"; + +import { + ListVPCConnectionsCommand, + ListVPCConnectionsCommandInput, + ListVPCConnectionsCommandOutput, +} from "../commands/ListVPCConnectionsCommand"; +import { QuickSightClient } from "../QuickSightClient"; +import { QuickSightPaginationConfiguration } from "./Interfaces"; + +/** + * @internal + */ +const makePagedClientRequest = async ( + client: QuickSightClient, + input: ListVPCConnectionsCommandInput, + ...args: any +): Promise => { + // @ts-ignore + return await client.send(new ListVPCConnectionsCommand(input), ...args); +}; +/** + * @public + */ +export async function* paginateListVPCConnections( + config: QuickSightPaginationConfiguration, + input: ListVPCConnectionsCommandInput, + ...additionalArguments: any +): Paginator { + // ToDo: replace with actual type instead of typeof input.NextToken + let token: typeof input.NextToken | undefined = config.startingToken || undefined; + let hasNext = true; + let page: ListVPCConnectionsCommandOutput; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof QuickSightClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected QuickSight | QuickSightClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + // @ts-ignore + return undefined; +} diff --git a/clients/client-quicksight/src/pagination/index.ts b/clients/client-quicksight/src/pagination/index.ts index 243c2132103a..05b057438a2d 100644 --- a/clients/client-quicksight/src/pagination/index.ts +++ b/clients/client-quicksight/src/pagination/index.ts @@ -12,6 +12,8 @@ export * from "./ListTemplateVersionsPaginator"; export * from "./ListTemplatesPaginator"; export * from "./ListThemeVersionsPaginator"; export * from "./ListThemesPaginator"; +export * from "./ListTopicsPaginator"; +export * from "./ListVPCConnectionsPaginator"; export * from "./SearchAnalysesPaginator"; export * from "./SearchDashboardsPaginator"; export * from "./SearchDataSetsPaginator"; diff --git a/clients/client-quicksight/src/protocols/Aws_restJson1.ts b/clients/client-quicksight/src/protocols/Aws_restJson1.ts index 3447149425a6..63e14fd40a93 100644 --- a/clients/client-quicksight/src/protocols/Aws_restJson1.ts +++ b/clients/client-quicksight/src/protocols/Aws_restJson1.ts @@ -66,6 +66,15 @@ import { import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "../commands/CreateTemplateCommand"; import { CreateThemeAliasCommandInput, CreateThemeAliasCommandOutput } from "../commands/CreateThemeAliasCommand"; import { CreateThemeCommandInput, CreateThemeCommandOutput } from "../commands/CreateThemeCommand"; +import { CreateTopicCommandInput, CreateTopicCommandOutput } from "../commands/CreateTopicCommand"; +import { + CreateTopicRefreshScheduleCommandInput, + CreateTopicRefreshScheduleCommandOutput, +} from "../commands/CreateTopicRefreshScheduleCommand"; +import { + CreateVPCConnectionCommandInput, + CreateVPCConnectionCommandOutput, +} from "../commands/CreateVPCConnectionCommand"; import { DeleteAccountCustomizationCommandInput, DeleteAccountCustomizationCommandOutput, @@ -108,11 +117,20 @@ import { import { DeleteTemplateCommandInput, DeleteTemplateCommandOutput } from "../commands/DeleteTemplateCommand"; import { DeleteThemeAliasCommandInput, DeleteThemeAliasCommandOutput } from "../commands/DeleteThemeAliasCommand"; import { DeleteThemeCommandInput, DeleteThemeCommandOutput } from "../commands/DeleteThemeCommand"; +import { DeleteTopicCommandInput, DeleteTopicCommandOutput } from "../commands/DeleteTopicCommand"; +import { + DeleteTopicRefreshScheduleCommandInput, + DeleteTopicRefreshScheduleCommandOutput, +} from "../commands/DeleteTopicRefreshScheduleCommand"; import { DeleteUserByPrincipalIdCommandInput, DeleteUserByPrincipalIdCommandOutput, } from "../commands/DeleteUserByPrincipalIdCommand"; import { DeleteUserCommandInput, DeleteUserCommandOutput } from "../commands/DeleteUserCommand"; +import { + DeleteVPCConnectionCommandInput, + DeleteVPCConnectionCommandOutput, +} from "../commands/DeleteVPCConnectionCommand"; import { DescribeAccountCustomizationCommandInput, DescribeAccountCustomizationCommandOutput, @@ -204,7 +222,24 @@ import { DescribeThemePermissionsCommandInput, DescribeThemePermissionsCommandOutput, } from "../commands/DescribeThemePermissionsCommand"; +import { DescribeTopicCommandInput, DescribeTopicCommandOutput } from "../commands/DescribeTopicCommand"; +import { + DescribeTopicPermissionsCommandInput, + DescribeTopicPermissionsCommandOutput, +} from "../commands/DescribeTopicPermissionsCommand"; +import { + DescribeTopicRefreshCommandInput, + DescribeTopicRefreshCommandOutput, +} from "../commands/DescribeTopicRefreshCommand"; +import { + DescribeTopicRefreshScheduleCommandInput, + DescribeTopicRefreshScheduleCommandOutput, +} from "../commands/DescribeTopicRefreshScheduleCommand"; import { DescribeUserCommandInput, DescribeUserCommandOutput } from "../commands/DescribeUserCommand"; +import { + DescribeVPCConnectionCommandInput, + DescribeVPCConnectionCommandOutput, +} from "../commands/DescribeVPCConnectionCommand"; import { GenerateEmbedUrlForAnonymousUserCommandInput, GenerateEmbedUrlForAnonymousUserCommandOutput, @@ -263,8 +298,14 @@ import { import { ListThemeAliasesCommandInput, ListThemeAliasesCommandOutput } from "../commands/ListThemeAliasesCommand"; import { ListThemesCommandInput, ListThemesCommandOutput } from "../commands/ListThemesCommand"; import { ListThemeVersionsCommandInput, ListThemeVersionsCommandOutput } from "../commands/ListThemeVersionsCommand"; +import { + ListTopicRefreshSchedulesCommandInput, + ListTopicRefreshSchedulesCommandOutput, +} from "../commands/ListTopicRefreshSchedulesCommand"; +import { ListTopicsCommandInput, ListTopicsCommandOutput } from "../commands/ListTopicsCommand"; import { ListUserGroupsCommandInput, ListUserGroupsCommandOutput } from "../commands/ListUserGroupsCommand"; import { ListUsersCommandInput, ListUsersCommandOutput } from "../commands/ListUsersCommand"; +import { ListVPCConnectionsCommandInput, ListVPCConnectionsCommandOutput } from "../commands/ListVPCConnectionsCommand"; import { PutDataSetRefreshPropertiesCommandInput, PutDataSetRefreshPropertiesCommandOutput, @@ -348,7 +389,20 @@ import { UpdateThemePermissionsCommandInput, UpdateThemePermissionsCommandOutput, } from "../commands/UpdateThemePermissionsCommand"; +import { UpdateTopicCommandInput, UpdateTopicCommandOutput } from "../commands/UpdateTopicCommand"; +import { + UpdateTopicPermissionsCommandInput, + UpdateTopicPermissionsCommandOutput, +} from "../commands/UpdateTopicPermissionsCommand"; +import { + UpdateTopicRefreshScheduleCommandInput, + UpdateTopicRefreshScheduleCommandOutput, +} from "../commands/UpdateTopicRefreshScheduleCommand"; import { UpdateUserCommandInput, UpdateUserCommandOutput } from "../commands/UpdateUserCommand"; +import { + UpdateVPCConnectionCommandInput, + UpdateVPCConnectionCommandOutput, +} from "../commands/UpdateVPCConnectionCommand"; import { AccessDeniedException, AccountCustomization, @@ -401,7 +455,6 @@ import { ColumnSort, ColumnTooltipItem, ComboChartAggregatedFieldWells, - ComboChartConfiguration, ComboChartFieldWells, ComboChartSortConfiguration, ContributionAnalysisDefault, @@ -496,6 +549,7 @@ import { LoadingAnimation, LocalNavigationConfiguration, LongFormatText, + MappedDataSetParameter, MaximumLabelType, MeasureField, MinimumLabelType, @@ -601,14 +655,18 @@ import { AthenaParameters, AuroraParameters, AuroraPostgreSqlParameters, + AuthorSpecifiedAggregation, AwsIotAnalyticsParameters, BinCountOptions, BinWidthOptions, + BookmarksConfigurations, BorderStyle, CalculatedColumn, CastColumnTypeOperation, + CellValueSynonym, ClusterMarker, ClusterMarkerConfiguration, + CollectiveConstant, ColorScale, ColumnDescription, ColumnGroup, @@ -618,11 +676,11 @@ import { ColumnSchema, ColumnTag, ColumnTagName, + ComboChartConfiguration, ComboChartVisual, ComparisonConfiguration, ComparisonFormatConfiguration, Computation, - ConcurrentUpdatingException, ConditionalFormattingColor, ConditionalFormattingCustomIconCondition, ConditionalFormattingCustomIconOptions, @@ -631,7 +689,6 @@ import { ConditionalFormattingIconDisplayConfiguration, ConditionalFormattingIconSet, ConditionalFormattingSolidColor, - ConflictException, CustomContentConfiguration, CustomContentVisual, CustomNarrativeOptions, @@ -755,7 +812,6 @@ import { RadarChartVisual, ResourceExistsException, ResourceNotFoundException, - ResourceUnavailableException, RowAlternateColorOptions, SankeyDiagramAggregatedFieldWells, SankeyDiagramChartConfiguration, @@ -798,7 +854,6 @@ import { TableSortConfiguration, TableUnaggregatedFieldWells, TableVisual, - Tag, TextConditionalFormat, ThrottlingException, TimeBasedForecastProperties, @@ -832,6 +887,9 @@ import { } from "../models/models_1"; import { _Parameters, + ComparativeOrder, + ConcurrentUpdatingException, + ConflictException, CreateColumnsOperation, CredentialPair, CustomSql, @@ -845,6 +903,7 @@ import { DashboardVersionDefinition, DashboardVersionSummary, DashboardVisualPublishOptions, + DataAggregation, DatabricksParameters, DataColorPalette, DataPointDrillUpDownOption, @@ -852,6 +911,8 @@ import { DataPointTooltipOption, DataSet, DataSetConfiguration, + DatasetMetadata, + DatasetParameter, DataSetRefreshProperties, DataSetSchema, DataSetSearchFilter, @@ -862,23 +923,27 @@ import { DataSourceParameters, DataSourceSearchFilter, DataSourceSummary, + DateTimeDatasetParameter, + DateTimeDatasetParameterDefaultValues, DateTimeParameter, + DecimalDatasetParameter, + DecimalDatasetParameterDefaultValues, DecimalParameter, - DomainNotWhitelistedException, + DefaultFormatting, + DisplayFormatOptions, ExasolParameters, ExportHiddenFieldsOption, ExportToCSVOption, ExportWithHiddenFieldsOption, FieldFolder, FilterOperation, - Folder, Font, GutterStyle, IncrementalRefresh, - Ingestion, InputColumn, + IntegerDatasetParameter, + IntegerDatasetParameterDefaultValues, IntegerParameter, - InvalidNextTokenException, JiraParameters, JoinInstruction, JoinKeyProperties, @@ -890,12 +955,18 @@ import { MarginStyle, MariaDbParameters, MySqlParameters, + NamedEntityDefinition, + NamedEntityDefinitionMetric, + NegativeFormat, + NewDefaultValues, OracleParameters, + OverrideDatasetParameterOperation, PhysicalTable, PostgreSqlParameters, PreconditionNotMetException, PrestoParameters, ProjectOperation, + RangeConstant, RdsParameters, RedshiftParameters, RefreshConfiguration, @@ -904,12 +975,15 @@ import { RelationalTable, RenameColumnOperation, ResourcePermission, + ResourceUnavailableException, RowLevelPermissionDataSet, RowLevelPermissionTagConfiguration, RowLevelPermissionTagRule, S3Parameters, S3Source, ScheduleRefreshOnEntity, + SemanticEntityType, + SemanticType, ServiceNowParameters, SheetControlsOption, SheetLayoutElementMaximizationOption, @@ -918,20 +992,33 @@ import { SparkParameters, SqlServerParameters, SslProperties, + StringDatasetParameter, + StringDatasetParameterDefaultValues, StringParameter, + Tag, TagColumnOperation, - Template, TemplateSourceAnalysis, TemplateSourceEntity, TemplateSourceTemplate, - TemplateVersion, TemplateVersionDefinition, TeradataParameters, - Theme, ThemeConfiguration, - ThemeVersion, TileLayoutStyle, TileStyle, + TopicCalculatedField, + TopicCategoryFilter, + TopicCategoryFilterConstant, + TopicColumn, + TopicDateRangeFilter, + TopicDetails, + TopicFilter, + TopicNamedEntity, + TopicNumericEqualityFilter, + TopicNumericRangeFilter, + TopicRangeFilterConstant, + TopicRefreshSchedule, + TopicRelativeDateFilter, + TopicSingularFilterConstant, TransformOperation, TwitterParameters, Typography, @@ -944,10 +1031,14 @@ import { VpcConnectionProperties, } from "../models/models_2"; import { + DomainNotWhitelistedException, + Folder, FolderSearchFilter, FolderSummary, GroupSearchFilter, IdentityTypeNotSupportedException, + Ingestion, + InvalidNextTokenException, InvalidRequestException, QuickSightUserNotFoundException, RegisteredUserConsoleFeatureConfigurations, @@ -960,11 +1051,18 @@ import { SessionLifetimeInMinutesInvalidException, SessionTag, StatePersistenceConfigurations, + Template, TemplateSummary, + TemplateVersion, TemplateVersionSummary, + Theme, ThemeSummary, + ThemeVersion, ThemeVersionSummary, + TopicRefreshScheduleSummary, UnsupportedPricingPlanException, + VPCConnection, + VPCConnectionSummary, } from "../models/models_3"; import { QuickSightServiceException as __BaseException } from "../models/QuickSightServiceException"; @@ -1217,9 +1315,10 @@ export const se_CreateDataSetCommand = async ( ColumnLevelPermissionRules: (_) => _json(_), DataSetId: [], DataSetUsageConfiguration: (_) => _json(_), + DatasetParameters: (_) => se_DatasetParameterList(_, context), FieldFolders: (_) => _json(_), ImportMode: [], - LogicalTableMap: (_) => _json(_), + LogicalTableMap: (_) => se_LogicalTableMap(_, context), Name: [], Permissions: (_) => _json(_), PhysicalTableMap: (_) => _json(_), @@ -1774,6 +1873,132 @@ export const se_CreateThemeAliasCommand = async ( }); }; +/** + * serializeAws_restJson1CreateTopicCommand + */ +export const se_CreateTopicCommand = async ( + input: CreateTopicCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + let body: any; + body = JSON.stringify( + take(input, { + Tags: (_) => _json(_), + Topic: (_) => _json(_), + TopicId: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1CreateTopicRefreshScheduleCommand + */ +export const se_CreateTopicRefreshScheduleCommand = async ( + input: CreateTopicRefreshScheduleCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/topics/{TopicId}/schedules"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + let body: any; + body = JSON.stringify( + take(input, { + DatasetArn: [], + DatasetName: [], + RefreshSchedule: (_) => se_TopicRefreshSchedule(_, context), + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1CreateVPCConnectionCommand + */ +export const se_CreateVPCConnectionCommand = async ( + input: CreateVPCConnectionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/vpc-connections"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + let body: any; + body = JSON.stringify( + take(input, { + DnsResolvers: (_) => _json(_), + Name: [], + RoleArn: [], + SecurityGroupIds: (_) => _json(_), + SubnetIds: (_) => _json(_), + Tags: (_) => _json(_), + VPCConnectionId: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1DeleteAccountCustomizationCommand */ @@ -2412,6 +2637,72 @@ export const se_DeleteThemeAliasCommand = async ( }); }; +/** + * serializeAws_restJson1DeleteTopicCommand + */ +export const se_DeleteTopicCommand = async ( + input: DeleteTopicCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics/{TopicId}"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1DeleteTopicRefreshScheduleCommand + */ +export const se_DeleteTopicRefreshScheduleCommand = async ( + input: DeleteTopicRefreshScheduleCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + resolvedPath = __resolvedPath(resolvedPath, input, "DatasetId", () => input.DatasetId!, "{DatasetId}", false); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1DeleteUserCommand */ @@ -2480,6 +2771,46 @@ export const se_DeleteUserByPrincipalIdCommand = async ( }); }; +/** + * serializeAws_restJson1DeleteVPCConnectionCommand + */ +export const se_DeleteVPCConnectionCommand = async ( + input: DeleteVPCConnectionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath( + resolvedPath, + input, + "VPCConnectionId", + () => input.VPCConnectionId!, + "{VPCConnectionId}", + false + ); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1DescribeAccountCustomizationCommand */ @@ -3553,18 +3884,16 @@ export const se_DescribeThemePermissionsCommand = async ( }; /** - * serializeAws_restJson1DescribeUserCommand + * serializeAws_restJson1DescribeTopicCommand */ -export const se_DescribeUserCommand = async ( - input: DescribeUserCommandInput, +export const se_DescribeTopicCommand = async ( + input: DescribeTopicCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const headers: any = {}; let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserName", () => input.UserName!, "{UserName}", false); + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics/{TopicId}"; resolvedPath = __resolvedPath( resolvedPath, input, @@ -3573,7 +3902,7 @@ export const se_DescribeUserCommand = async ( "{AwsAccountId}", false ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; return new __HttpRequest({ protocol, @@ -3587,19 +3916,17 @@ export const se_DescribeUserCommand = async ( }; /** - * serializeAws_restJson1GenerateEmbedUrlForAnonymousUserCommand + * serializeAws_restJson1DescribeTopicPermissionsCommand */ -export const se_GenerateEmbedUrlForAnonymousUserCommand = async ( - input: GenerateEmbedUrlForAnonymousUserCommandInput, +export const se_DescribeTopicPermissionsCommand = async ( + input: DescribeTopicPermissionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/embed-url/anonymous-user"; + "/accounts/{AwsAccountId}/topics/{TopicId}/permissions"; resolvedPath = __resolvedPath( resolvedPath, input, @@ -3608,22 +3935,199 @@ export const se_GenerateEmbedUrlForAnonymousUserCommand = async ( "{AwsAccountId}", false ); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; - body = JSON.stringify( - take(input, { - AllowedDomains: (_) => _json(_), - AuthorizedResourceArns: (_) => _json(_), - ExperienceConfiguration: (_) => _json(_), - Namespace: [], - SessionLifetimeInMinutes: [], - SessionTags: (_) => _json(_), - }) - ); return new __HttpRequest({ protocol, hostname, port, - method: "POST", + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1DescribeTopicRefreshCommand + */ +export const se_DescribeTopicRefreshCommand = async ( + input: DescribeTopicRefreshCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/topics/{TopicId}/refresh/{RefreshId}"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + resolvedPath = __resolvedPath(resolvedPath, input, "RefreshId", () => input.RefreshId!, "{RefreshId}", false); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1DescribeTopicRefreshScheduleCommand + */ +export const se_DescribeTopicRefreshScheduleCommand = async ( + input: DescribeTopicRefreshScheduleCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + resolvedPath = __resolvedPath(resolvedPath, input, "DatasetId", () => input.DatasetId!, "{DatasetId}", false); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1DescribeUserCommand + */ +export const se_DescribeUserCommand = async ( + input: DescribeUserCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"; + resolvedPath = __resolvedPath(resolvedPath, input, "UserName", () => input.UserName!, "{UserName}", false); + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1DescribeVPCConnectionCommand + */ +export const se_DescribeVPCConnectionCommand = async ( + input: DescribeVPCConnectionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath( + resolvedPath, + input, + "VPCConnectionId", + () => input.VPCConnectionId!, + "{VPCConnectionId}", + false + ); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1GenerateEmbedUrlForAnonymousUserCommand + */ +export const se_GenerateEmbedUrlForAnonymousUserCommand = async ( + input: GenerateEmbedUrlForAnonymousUserCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/embed-url/anonymous-user"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + let body: any; + body = JSON.stringify( + take(input, { + AllowedDomains: (_) => _json(_), + AuthorizedResourceArns: (_) => _json(_), + ExperienceConfiguration: (_) => _json(_), + Namespace: [], + SessionLifetimeInMinutes: [], + SessionTags: (_) => _json(_), + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", headers, path: resolvedPath, body, @@ -4107,12 +4611,10 @@ export const se_ListIAMPolicyAssignmentsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments"; + "/accounts/{AwsAccountId}/namespaces/{Namespace}/v2/iam-policy-assignments"; resolvedPath = __resolvedPath( resolvedPath, input, @@ -4123,15 +4625,11 @@ export const se_ListIAMPolicyAssignmentsCommand = async ( ); resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ + "assignment-status": [, input.AssignmentStatus!], "next-token": [, input.NextToken!], "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], }); let body: any; - body = JSON.stringify( - take(input, { - AssignmentStatus: [], - }) - ); return new __HttpRequest({ protocol, hostname, @@ -4540,18 +5038,17 @@ export const se_ListThemeVersionsCommand = async ( }; /** - * serializeAws_restJson1ListUserGroupsCommand + * serializeAws_restJson1ListTopicRefreshSchedulesCommand */ -export const se_ListUserGroupsCommand = async ( - input: ListUserGroupsCommandInput, +export const se_ListTopicRefreshSchedulesCommand = async ( + input: ListTopicRefreshSchedulesCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const headers: any = {}; let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups"; - resolvedPath = __resolvedPath(resolvedPath, input, "UserName", () => input.UserName!, "{UserName}", false); + "/accounts/{AwsAccountId}/topics/{TopicId}/schedules"; resolvedPath = __resolvedPath( resolvedPath, input, @@ -4560,11 +5057,7 @@ export const se_ListUserGroupsCommand = async ( "{AwsAccountId}", false ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); - const query: any = map({ - "next-token": [, input.NextToken!], - "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], - }); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); let body: any; return new __HttpRequest({ protocol, @@ -4573,23 +5066,21 @@ export const se_ListUserGroupsCommand = async ( method: "GET", headers, path: resolvedPath, - query, body, }); }; /** - * serializeAws_restJson1ListUsersCommand + * serializeAws_restJson1ListTopicsCommand */ -export const se_ListUsersCommand = async ( - input: ListUsersCommandInput, +export const se_ListTopicsCommand = async ( + input: ListTopicsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const headers: any = {}; let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/namespaces/{Namespace}/users"; + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics"; resolvedPath = __resolvedPath( resolvedPath, input, @@ -4598,7 +5089,6 @@ export const se_ListUsersCommand = async ( "{AwsAccountId}", false ); - resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); const query: any = map({ "next-token": [, input.NextToken!], "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], @@ -4617,19 +5107,18 @@ export const se_ListUsersCommand = async ( }; /** - * serializeAws_restJson1PutDataSetRefreshPropertiesCommand + * serializeAws_restJson1ListUserGroupsCommand */ -export const se_PutDataSetRefreshPropertiesCommand = async ( - input: PutDataSetRefreshPropertiesCommandInput, +export const se_ListUserGroupsCommand = async ( + input: ListUserGroupsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + - "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"; + "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups"; + resolvedPath = __resolvedPath(resolvedPath, input, "UserName", () => input.UserName!, "{UserName}", false); resolvedPath = __resolvedPath( resolvedPath, input, @@ -4638,35 +5127,33 @@ export const se_PutDataSetRefreshPropertiesCommand = async ( "{AwsAccountId}", false ); - resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + const query: any = map({ + "next-token": [, input.NextToken!], + "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + }); let body: any; - body = JSON.stringify( - take(input, { - DataSetRefreshProperties: (_) => _json(_), - }) - ); return new __HttpRequest({ protocol, hostname, port, - method: "PUT", + method: "GET", headers, path: resolvedPath, + query, body, }); }; /** - * serializeAws_restJson1RegisterUserCommand + * serializeAws_restJson1ListUsersCommand */ -export const se_RegisterUserCommand = async ( - input: RegisterUserCommandInput, +export const se_ListUsersCommand = async ( + input: ListUsersCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/namespaces/{Namespace}/users"; @@ -4679,43 +5166,159 @@ export const se_RegisterUserCommand = async ( false ); resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + const query: any = map({ + "next-token": [, input.NextToken!], + "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + }); let body: any; - body = JSON.stringify( - take(input, { - CustomFederationProviderUrl: [], - CustomPermissionsName: [], - Email: [], - ExternalLoginFederationProviderType: [], - ExternalLoginId: [], - IamArn: [], - IdentityType: [], - SessionName: [], - UserName: [], - UserRole: [], - }) - ); return new __HttpRequest({ protocol, hostname, port, - method: "POST", + method: "GET", headers, path: resolvedPath, + query, body, }); }; /** - * serializeAws_restJson1RestoreAnalysisCommand + * serializeAws_restJson1ListVPCConnectionsCommand */ -export const se_RestoreAnalysisCommand = async ( - input: RestoreAnalysisCommandInput, +export const se_ListVPCConnectionsCommand = async ( + input: ListVPCConnectionsCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const headers: any = {}; let resolvedPath = - `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/vpc-connections"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + const query: any = map({ + "next-token": [, input.NextToken!], + "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1PutDataSetRefreshPropertiesCommand + */ +export const se_PutDataSetRefreshPropertiesCommand = async ( + input: PutDataSetRefreshPropertiesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "DataSetId", () => input.DataSetId!, "{DataSetId}", false); + let body: any; + body = JSON.stringify( + take(input, { + DataSetRefreshProperties: (_) => _json(_), + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "PUT", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1RegisterUserCommand + */ +export const se_RegisterUserCommand = async ( + input: RegisterUserCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/namespaces/{Namespace}/users"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace!, "{Namespace}", false); + let body: any; + body = JSON.stringify( + take(input, { + CustomFederationProviderUrl: [], + CustomPermissionsName: [], + Email: [], + ExternalLoginFederationProviderType: [], + ExternalLoginId: [], + IamArn: [], + IdentityType: [], + SessionName: [], + UserName: [], + UserRole: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1RestoreAnalysisCommand + */ +export const se_RestoreAnalysisCommand = async ( + input: RestoreAnalysisCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/restore/analyses/{AnalysisId}"; resolvedPath = __resolvedPath( resolvedPath, @@ -5373,9 +5976,10 @@ export const se_UpdateDataSetCommand = async ( ColumnGroups: (_) => _json(_), ColumnLevelPermissionRules: (_) => _json(_), DataSetUsageConfiguration: (_) => _json(_), + DatasetParameters: (_) => se_DatasetParameterList(_, context), FieldFolders: (_) => _json(_), ImportMode: [], - LogicalTableMap: (_) => _json(_), + LogicalTableMap: (_) => se_LogicalTableMap(_, context), Name: [], PhysicalTableMap: (_) => _json(_), RowLevelPermissionDataSet: (_) => _json(_), @@ -6072,6 +6676,127 @@ export const se_UpdateThemePermissionsCommand = async ( }); }; +/** + * serializeAws_restJson1UpdateTopicCommand + */ +export const se_UpdateTopicCommand = async ( + input: UpdateTopicCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accounts/{AwsAccountId}/topics/{TopicId}"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + let body: any; + body = JSON.stringify( + take(input, { + Topic: (_) => _json(_), + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "PUT", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1UpdateTopicPermissionsCommand + */ +export const se_UpdateTopicPermissionsCommand = async ( + input: UpdateTopicPermissionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/topics/{TopicId}/permissions"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + let body: any; + body = JSON.stringify( + take(input, { + GrantPermissions: (_) => _json(_), + RevokePermissions: (_) => _json(_), + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "PUT", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1UpdateTopicRefreshScheduleCommand + */ +export const se_UpdateTopicRefreshScheduleCommand = async ( + input: UpdateTopicRefreshScheduleCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath(resolvedPath, input, "TopicId", () => input.TopicId!, "{TopicId}", false); + resolvedPath = __resolvedPath(resolvedPath, input, "DatasetId", () => input.DatasetId!, "{DatasetId}", false); + let body: any; + body = JSON.stringify( + take(input, { + RefreshSchedule: (_) => se_TopicRefreshSchedule(_, context), + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "PUT", + headers, + path: resolvedPath, + body, + }); +}; + /** * serializeAws_restJson1UpdateUserCommand */ @@ -6120,36 +6845,87 @@ export const se_UpdateUserCommand = async ( }; /** - * deserializeAws_restJson1CancelIngestionCommand + * serializeAws_restJson1UpdateVPCConnectionCommand */ -export const de_CancelIngestionCommand = async ( - output: __HttpResponse, +export const se_UpdateVPCConnectionCommand = async ( + input: UpdateVPCConnectionCommandInput, context: __SerdeContext -): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CancelIngestionCommandError(output, context); - } - const contents: any = map({ - $metadata: deserializeMetadata(output), - }); - const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - Arn: __expectString, - IngestionId: __expectString, - RequestId: __expectString, - }); - Object.assign(contents, doc); - map(contents, { - Status: [, output.statusCode], - }); - return contents; -}; - -/** - * deserializeAws_restJson1CancelIngestionCommandError - */ -const de_CancelIngestionCommandError = async ( - output: __HttpResponse, +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + + "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"; + resolvedPath = __resolvedPath( + resolvedPath, + input, + "AwsAccountId", + () => input.AwsAccountId!, + "{AwsAccountId}", + false + ); + resolvedPath = __resolvedPath( + resolvedPath, + input, + "VPCConnectionId", + () => input.VPCConnectionId!, + "{VPCConnectionId}", + false + ); + let body: any; + body = JSON.stringify( + take(input, { + DnsResolvers: (_) => _json(_), + Name: [], + RoleArn: [], + SecurityGroupIds: (_) => _json(_), + SubnetIds: (_) => _json(_), + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "PUT", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * deserializeAws_restJson1CancelIngestionCommand + */ +export const de_CancelIngestionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CancelIngestionCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + Arn: __expectString, + IngestionId: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1CancelIngestionCommandError + */ +const de_CancelIngestionCommandError = async ( + output: __HttpResponse, context: __SerdeContext ): Promise => { const parsedOutput: any = { @@ -7521,21 +8297,24 @@ const de_CreateThemeAliasCommandError = async ( }; /** - * deserializeAws_restJson1DeleteAccountCustomizationCommand + * deserializeAws_restJson1CreateTopicCommand */ -export const de_DeleteAccountCustomizationCommand = async ( +export const de_CreateTopicCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteAccountCustomizationCommandError(output, context); + return de_CreateTopicCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + Arn: __expectString, + RefreshArn: __expectString, RequestId: __expectString, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -7545,12 +8324,12 @@ export const de_DeleteAccountCustomizationCommand = async ( }; /** - * deserializeAws_restJson1DeleteAccountCustomizationCommandError + * deserializeAws_restJson1CreateTopicCommandError */ -const de_DeleteAccountCustomizationCommandError = async ( +const de_CreateTopicCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -7569,12 +8348,15 @@ const de_DeleteAccountCustomizationCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -7589,21 +8371,24 @@ const de_DeleteAccountCustomizationCommandError = async ( }; /** - * deserializeAws_restJson1DeleteAccountSubscriptionCommand + * deserializeAws_restJson1CreateTopicRefreshScheduleCommand */ -export const de_DeleteAccountSubscriptionCommand = async ( +export const de_CreateTopicRefreshScheduleCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteAccountSubscriptionCommandError(output, context); + return de_CreateTopicRefreshScheduleCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + DatasetArn: __expectString, RequestId: __expectString, + TopicArn: __expectString, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -7613,12 +8398,12 @@ export const de_DeleteAccountSubscriptionCommand = async ( }; /** - * deserializeAws_restJson1DeleteAccountSubscriptionCommandError + * deserializeAws_restJson1CreateTopicRefreshScheduleCommandError */ -const de_DeleteAccountSubscriptionCommandError = async ( +const de_CreateTopicRefreshScheduleCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -7628,21 +8413,24 @@ const de_DeleteAccountSubscriptionCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -7657,24 +8445,25 @@ const de_DeleteAccountSubscriptionCommandError = async ( }; /** - * deserializeAws_restJson1DeleteAnalysisCommand + * deserializeAws_restJson1CreateVPCConnectionCommand */ -export const de_DeleteAnalysisCommand = async ( +export const de_CreateVPCConnectionCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteAnalysisCommandError(output, context); + return de_CreateVPCConnectionCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AnalysisId: __expectString, Arn: __expectString, - DeletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + AvailabilityStatus: __expectString, + CreationStatus: __expectString, RequestId: __expectString, + VPCConnectionId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -7684,18 +8473,21 @@ export const de_DeleteAnalysisCommand = async ( }; /** - * deserializeAws_restJson1DeleteAnalysisCommandError + * deserializeAws_restJson1CreateVPCConnectionCommandError */ -const de_DeleteAnalysisCommandError = async ( +const de_CreateVPCConnectionCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -7705,9 +8497,12 @@ const de_DeleteAnalysisCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.quicksight#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -7725,22 +8520,20 @@ const de_DeleteAnalysisCommandError = async ( }; /** - * deserializeAws_restJson1DeleteDashboardCommand + * deserializeAws_restJson1DeleteAccountCustomizationCommand */ -export const de_DeleteDashboardCommand = async ( +export const de_DeleteAccountCustomizationCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteDashboardCommandError(output, context); + return de_DeleteAccountCustomizationCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Arn: __expectString, - DashboardId: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -7751,18 +8544,21 @@ export const de_DeleteDashboardCommand = async ( }; /** - * deserializeAws_restJson1DeleteDashboardCommandError + * deserializeAws_restJson1DeleteAccountCustomizationCommandError */ -const de_DeleteDashboardCommandError = async ( +const de_DeleteAccountCustomizationCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -7775,12 +8571,12 @@ const de_DeleteDashboardCommandError = async ( case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -7792,22 +8588,20 @@ const de_DeleteDashboardCommandError = async ( }; /** - * deserializeAws_restJson1DeleteDataSetCommand + * deserializeAws_restJson1DeleteAccountSubscriptionCommand */ -export const de_DeleteDataSetCommand = async ( +export const de_DeleteAccountSubscriptionCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteDataSetCommandError(output, context); + return de_DeleteAccountSubscriptionCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Arn: __expectString, - DataSetId: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -7818,12 +8612,12 @@ export const de_DeleteDataSetCommand = async ( }; /** - * deserializeAws_restJson1DeleteDataSetCommandError + * deserializeAws_restJson1DeleteAccountSubscriptionCommandError */ -const de_DeleteDataSetCommandError = async ( +const de_DeleteAccountSubscriptionCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -7839,9 +8633,15 @@ const de_DeleteDataSetCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -7856,20 +8656,23 @@ const de_DeleteDataSetCommandError = async ( }; /** - * deserializeAws_restJson1DeleteDataSetRefreshPropertiesCommand + * deserializeAws_restJson1DeleteAnalysisCommand */ -export const de_DeleteDataSetRefreshPropertiesCommand = async ( +export const de_DeleteAnalysisCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteDataSetRefreshPropertiesCommandError(output, context); + return de_DeleteAnalysisCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + AnalysisId: __expectString, + Arn: __expectString, + DeletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), RequestId: __expectString, }); Object.assign(contents, doc); @@ -7880,21 +8683,18 @@ export const de_DeleteDataSetRefreshPropertiesCommand = async ( }; /** - * deserializeAws_restJson1DeleteDataSetRefreshPropertiesCommandError + * deserializeAws_restJson1DeleteAnalysisCommandError */ -const de_DeleteDataSetRefreshPropertiesCommandError = async ( +const de_DeleteAnalysisCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -7904,15 +8704,15 @@ const de_DeleteDataSetRefreshPropertiesCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -7924,14 +8724,14 @@ const de_DeleteDataSetRefreshPropertiesCommandError = async ( }; /** - * deserializeAws_restJson1DeleteDataSourceCommand + * deserializeAws_restJson1DeleteDashboardCommand */ -export const de_DeleteDataSourceCommand = async ( +export const de_DeleteDashboardCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteDataSourceCommandError(output, context); + return de_DeleteDashboardCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), @@ -7939,7 +8739,7 @@ export const de_DeleteDataSourceCommand = async ( const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { Arn: __expectString, - DataSourceId: __expectString, + DashboardId: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -7950,21 +8750,21 @@ export const de_DeleteDataSourceCommand = async ( }; /** - * deserializeAws_restJson1DeleteDataSourceCommandError + * deserializeAws_restJson1DeleteDashboardCommandError */ -const de_DeleteDataSourceCommandError = async ( +const de_DeleteDashboardCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -7977,6 +8777,9 @@ const de_DeleteDataSourceCommandError = 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({ @@ -7988,14 +8791,14 @@ const de_DeleteDataSourceCommandError = async ( }; /** - * deserializeAws_restJson1DeleteFolderCommand + * deserializeAws_restJson1DeleteDataSetCommand */ -export const de_DeleteFolderCommand = async ( +export const de_DeleteDataSetCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteFolderCommandError(output, context); + return de_DeleteDataSetCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), @@ -8003,7 +8806,7 @@ export const de_DeleteFolderCommand = async ( const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { Arn: __expectString, - FolderId: __expectString, + DataSetId: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -8014,12 +8817,12 @@ export const de_DeleteFolderCommand = async ( }; /** - * deserializeAws_restJson1DeleteFolderCommandError + * deserializeAws_restJson1DeleteDataSetCommandError */ -const de_DeleteFolderCommandError = async ( +const de_DeleteDataSetCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -8029,27 +8832,18 @@ const de_DeleteFolderCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.quicksight#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -8061,9 +8855,214 @@ const de_DeleteFolderCommandError = async ( }; /** - * deserializeAws_restJson1DeleteFolderMembershipCommand + * deserializeAws_restJson1DeleteDataSetRefreshPropertiesCommand */ -export const de_DeleteFolderMembershipCommand = async ( +export const de_DeleteDataSetRefreshPropertiesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeleteDataSetRefreshPropertiesCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteDataSetRefreshPropertiesCommandError + */ +const de_DeleteDataSetRefreshPropertiesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DeleteDataSourceCommand + */ +export const de_DeleteDataSourceCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeleteDataSourceCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + Arn: __expectString, + DataSourceId: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteDataSourceCommandError + */ +const de_DeleteDataSourceCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DeleteFolderCommand + */ +export const de_DeleteFolderCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeleteFolderCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + Arn: __expectString, + FolderId: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteFolderCommandError + */ +const de_DeleteFolderCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + 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({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DeleteFolderMembershipCommand + */ +export const de_DeleteFolderMembershipCommand = async ( output: __HttpResponse, context: __SerdeContext ): Promise => { @@ -8737,21 +9736,23 @@ const de_DeleteThemeAliasCommandError = async ( }; /** - * deserializeAws_restJson1DeleteUserCommand + * deserializeAws_restJson1DeleteTopicCommand */ -export const de_DeleteUserCommand = async ( +export const de_DeleteTopicCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteUserCommandError(output, context); + return de_DeleteTopicCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + Arn: __expectString, RequestId: __expectString, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -8761,12 +9762,12 @@ export const de_DeleteUserCommand = async ( }; /** - * deserializeAws_restJson1DeleteUserCommandError + * deserializeAws_restJson1DeleteTopicCommandError */ -const de_DeleteUserCommandError = async ( +const de_DeleteTopicCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -8776,21 +9777,18 @@ const de_DeleteUserCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -8805,21 +9803,24 @@ const de_DeleteUserCommandError = async ( }; /** - * deserializeAws_restJson1DeleteUserByPrincipalIdCommand + * deserializeAws_restJson1DeleteTopicRefreshScheduleCommand */ -export const de_DeleteUserByPrincipalIdCommand = async ( +export const de_DeleteTopicRefreshScheduleCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DeleteUserByPrincipalIdCommandError(output, context); + return de_DeleteTopicRefreshScheduleCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + DatasetArn: __expectString, RequestId: __expectString, + TopicArn: __expectString, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -8829,12 +9830,12 @@ export const de_DeleteUserByPrincipalIdCommand = async ( }; /** - * deserializeAws_restJson1DeleteUserByPrincipalIdCommandError + * deserializeAws_restJson1DeleteTopicRefreshScheduleCommandError */ -const de_DeleteUserByPrincipalIdCommandError = async ( +const de_DeleteTopicRefreshScheduleCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -8844,21 +9845,24 @@ const de_DeleteUserByPrincipalIdCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -8873,24 +9877,232 @@ const de_DeleteUserByPrincipalIdCommandError = async ( }; /** - * deserializeAws_restJson1DescribeAccountCustomizationCommand + * deserializeAws_restJson1DeleteUserCommand */ -export const de_DescribeAccountCustomizationCommand = async ( +export const de_DeleteUserCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DescribeAccountCustomizationCommandError(output, context); + return de_DeleteUserCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AccountCustomization: _json, - Arn: __expectString, - AwsAccountId: __expectString, - Namespace: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteUserCommandError + */ +const de_DeleteUserCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DeleteUserByPrincipalIdCommand + */ +export const de_DeleteUserByPrincipalIdCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeleteUserByPrincipalIdCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteUserByPrincipalIdCommandError + */ +const de_DeleteUserByPrincipalIdCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DeleteVPCConnectionCommand + */ +export const de_DeleteVPCConnectionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeleteVPCConnectionCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + Arn: __expectString, + AvailabilityStatus: __expectString, + DeletionStatus: __expectString, + RequestId: __expectString, + VPCConnectionId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteVPCConnectionCommandError + */ +const de_DeleteVPCConnectionCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + 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({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DescribeAccountCustomizationCommand + */ +export const de_DescribeAccountCustomizationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DescribeAccountCustomizationCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + AccountCustomization: _json, + Arn: __expectString, + AwsAccountId: __expectString, + Namespace: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -10967,22 +12179,24 @@ const de_DescribeThemePermissionsCommandError = async ( }; /** - * deserializeAws_restJson1DescribeUserCommand + * deserializeAws_restJson1DescribeTopicCommand */ -export const de_DescribeUserCommand = async ( +export const de_DescribeTopicCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_DescribeUserCommandError(output, context); + return de_DescribeTopicCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + Arn: __expectString, RequestId: __expectString, - User: _json, + Topic: _json, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -10992,12 +12206,12 @@ export const de_DescribeUserCommand = async ( }; /** - * deserializeAws_restJson1DescribeUserCommandError + * deserializeAws_restJson1DescribeTopicCommandError */ -const de_DescribeUserCommandError = async ( +const de_DescribeTopicCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11013,15 +12227,9 @@ const de_DescribeUserCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -11036,23 +12244,24 @@ const de_DescribeUserCommandError = async ( }; /** - * deserializeAws_restJson1GenerateEmbedUrlForAnonymousUserCommand + * deserializeAws_restJson1DescribeTopicPermissionsCommand */ -export const de_GenerateEmbedUrlForAnonymousUserCommand = async ( +export const de_DescribeTopicPermissionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_GenerateEmbedUrlForAnonymousUserCommandError(output, context); + return de_DescribeTopicPermissionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AnonymousUserArn: __expectString, - EmbedUrl: __expectString, + Permissions: _json, RequestId: __expectString, + TopicArn: __expectString, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -11062,12 +12271,12 @@ export const de_GenerateEmbedUrlForAnonymousUserCommand = async ( }; /** - * deserializeAws_restJson1GenerateEmbedUrlForAnonymousUserCommandError + * deserializeAws_restJson1DescribeTopicPermissionsCommandError */ -const de_GenerateEmbedUrlForAnonymousUserCommandError = async ( +const de_DescribeTopicPermissionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11086,18 +12295,9 @@ const de_GenerateEmbedUrlForAnonymousUserCommandError = async ( case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "SessionLifetimeInMinutesInvalidException": - case "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException": - throw await de_SessionLifetimeInMinutesInvalidExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); - case "UnsupportedPricingPlanException": - case "com.amazonaws.quicksight#UnsupportedPricingPlanException": - throw await de_UnsupportedPricingPlanExceptionRes(parsedOutput, context); - case "UnsupportedUserEditionException": - case "com.amazonaws.quicksight#UnsupportedUserEditionException": - throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ @@ -11109,21 +12309,21 @@ const de_GenerateEmbedUrlForAnonymousUserCommandError = async ( }; /** - * deserializeAws_restJson1GenerateEmbedUrlForRegisteredUserCommand + * deserializeAws_restJson1DescribeTopicRefreshCommand */ -export const de_GenerateEmbedUrlForRegisteredUserCommand = async ( +export const de_DescribeTopicRefreshCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_GenerateEmbedUrlForRegisteredUserCommandError(output, context); + return de_DescribeTopicRefreshCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - EmbedUrl: __expectString, + RefreshDetails: _json, RequestId: __expectString, }); Object.assign(contents, doc); @@ -11134,12 +12334,12 @@ export const de_GenerateEmbedUrlForRegisteredUserCommand = async ( }; /** - * deserializeAws_restJson1GenerateEmbedUrlForRegisteredUserCommandError + * deserializeAws_restJson1DescribeTopicRefreshCommandError */ -const de_GenerateEmbedUrlForRegisteredUserCommandError = async ( +const de_DescribeTopicRefreshCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11155,24 +12355,12 @@ const de_GenerateEmbedUrlForRegisteredUserCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "QuickSightUserNotFoundException": - case "com.amazonaws.quicksight#QuickSightUserNotFoundException": - throw await de_QuickSightUserNotFoundExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "SessionLifetimeInMinutesInvalidException": - case "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException": - throw await de_SessionLifetimeInMinutesInvalidExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); - case "UnsupportedPricingPlanException": - case "com.amazonaws.quicksight#UnsupportedPricingPlanException": - throw await de_UnsupportedPricingPlanExceptionRes(parsedOutput, context); - case "UnsupportedUserEditionException": - case "com.amazonaws.quicksight#UnsupportedUserEditionException": - throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ @@ -11184,20 +12372,229 @@ const de_GenerateEmbedUrlForRegisteredUserCommandError = async ( }; /** - * deserializeAws_restJson1GetDashboardEmbedUrlCommand + * deserializeAws_restJson1DescribeTopicRefreshScheduleCommand */ -export const de_GetDashboardEmbedUrlCommand = async ( +export const de_DescribeTopicRefreshScheduleCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_GetDashboardEmbedUrlCommandError(output, context); + return de_DescribeTopicRefreshScheduleCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + DatasetArn: __expectString, + RefreshSchedule: (_) => de_TopicRefreshSchedule(_, context), + RequestId: __expectString, + TopicArn: __expectString, + TopicId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DescribeTopicRefreshScheduleCommandError + */ +const de_DescribeTopicRefreshScheduleCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DescribeUserCommand + */ +export const de_DescribeUserCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DescribeUserCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + RequestId: __expectString, + User: _json, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DescribeUserCommandError + */ +const de_DescribeUserCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DescribeVPCConnectionCommand + */ +export const de_DescribeVPCConnectionCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DescribeVPCConnectionCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + RequestId: __expectString, + Status: __expectInt32, + VPCConnection: (_) => de_VPCConnection(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1DescribeVPCConnectionCommandError + */ +const de_DescribeVPCConnectionCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + 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({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GenerateEmbedUrlForAnonymousUserCommand + */ +export const de_GenerateEmbedUrlForAnonymousUserCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GenerateEmbedUrlForAnonymousUserCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + AnonymousUserArn: __expectString, EmbedUrl: __expectString, RequestId: __expectString, }); @@ -11209,12 +12606,636 @@ export const de_GetDashboardEmbedUrlCommand = async ( }; /** - * deserializeAws_restJson1GetDashboardEmbedUrlCommandError + * deserializeAws_restJson1GenerateEmbedUrlForAnonymousUserCommandError + */ +const de_GenerateEmbedUrlForAnonymousUserCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "SessionLifetimeInMinutesInvalidException": + case "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException": + throw await de_SessionLifetimeInMinutesInvalidExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "UnsupportedPricingPlanException": + case "com.amazonaws.quicksight#UnsupportedPricingPlanException": + throw await de_UnsupportedPricingPlanExceptionRes(parsedOutput, context); + case "UnsupportedUserEditionException": + case "com.amazonaws.quicksight#UnsupportedUserEditionException": + throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GenerateEmbedUrlForRegisteredUserCommand + */ +export const de_GenerateEmbedUrlForRegisteredUserCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GenerateEmbedUrlForRegisteredUserCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + EmbedUrl: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1GenerateEmbedUrlForRegisteredUserCommandError + */ +const de_GenerateEmbedUrlForRegisteredUserCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "QuickSightUserNotFoundException": + case "com.amazonaws.quicksight#QuickSightUserNotFoundException": + throw await de_QuickSightUserNotFoundExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "SessionLifetimeInMinutesInvalidException": + case "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException": + throw await de_SessionLifetimeInMinutesInvalidExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "UnsupportedPricingPlanException": + case "com.amazonaws.quicksight#UnsupportedPricingPlanException": + throw await de_UnsupportedPricingPlanExceptionRes(parsedOutput, context); + case "UnsupportedUserEditionException": + case "com.amazonaws.quicksight#UnsupportedUserEditionException": + throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetDashboardEmbedUrlCommand + */ +export const de_GetDashboardEmbedUrlCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetDashboardEmbedUrlCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + EmbedUrl: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1GetDashboardEmbedUrlCommandError + */ +const de_GetDashboardEmbedUrlCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "DomainNotWhitelistedException": + case "com.amazonaws.quicksight#DomainNotWhitelistedException": + throw await de_DomainNotWhitelistedExceptionRes(parsedOutput, context); + case "IdentityTypeNotSupportedException": + case "com.amazonaws.quicksight#IdentityTypeNotSupportedException": + throw await de_IdentityTypeNotSupportedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "QuickSightUserNotFoundException": + case "com.amazonaws.quicksight#QuickSightUserNotFoundException": + throw await de_QuickSightUserNotFoundExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "SessionLifetimeInMinutesInvalidException": + case "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException": + throw await de_SessionLifetimeInMinutesInvalidExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "UnsupportedPricingPlanException": + case "com.amazonaws.quicksight#UnsupportedPricingPlanException": + throw await de_UnsupportedPricingPlanExceptionRes(parsedOutput, context); + case "UnsupportedUserEditionException": + case "com.amazonaws.quicksight#UnsupportedUserEditionException": + throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetSessionEmbedUrlCommand + */ +export const de_GetSessionEmbedUrlCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetSessionEmbedUrlCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + EmbedUrl: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1GetSessionEmbedUrlCommandError + */ +const de_GetSessionEmbedUrlCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "QuickSightUserNotFoundException": + case "com.amazonaws.quicksight#QuickSightUserNotFoundException": + throw await de_QuickSightUserNotFoundExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "SessionLifetimeInMinutesInvalidException": + case "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException": + throw await de_SessionLifetimeInMinutesInvalidExceptionRes(parsedOutput, context); + 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({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListAnalysesCommand + */ +export const de_ListAnalysesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListAnalysesCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + AnalysisSummaryList: (_) => de_AnalysisSummaryList(_, context), + NextToken: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1ListAnalysesCommandError + */ +const de_ListAnalysesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); + 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({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListDashboardsCommand + */ +export const de_ListDashboardsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListDashboardsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + DashboardSummaryList: (_) => de_DashboardSummaryList(_, context), + NextToken: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1ListDashboardsCommandError + */ +const de_ListDashboardsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); + 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({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListDashboardVersionsCommand + */ +export const de_ListDashboardVersionsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListDashboardVersionsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + DashboardVersionSummaryList: (_) => de_DashboardVersionSummaryList(_, context), + NextToken: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1ListDashboardVersionsCommandError + */ +const de_ListDashboardVersionsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + 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({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListDataSetsCommand + */ +export const de_ListDataSetsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListDataSetsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + DataSetSummaries: (_) => de_DataSetSummaryList(_, context), + NextToken: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1ListDataSetsCommandError + */ +const de_ListDataSetsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListDataSourcesCommand + */ +export const de_ListDataSourcesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListDataSourcesCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + DataSources: (_) => de_DataSourceList(_, context), + NextToken: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1ListDataSourcesCommandError + */ +const de_ListDataSourcesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.quicksight#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.quicksight#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListFolderMembersCommand + */ +export const de_ListFolderMembersCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListFolderMembersCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + FolderMemberList: _json, + NextToken: __expectString, + RequestId: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1ListFolderMembersCommandError */ -const de_GetDashboardEmbedUrlCommandError = async ( +const de_ListFolderMembersCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11224,36 +13245,21 @@ const de_GetDashboardEmbedUrlCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "DomainNotWhitelistedException": - case "com.amazonaws.quicksight#DomainNotWhitelistedException": - throw await de_DomainNotWhitelistedExceptionRes(parsedOutput, context); - case "IdentityTypeNotSupportedException": - case "com.amazonaws.quicksight#IdentityTypeNotSupportedException": - throw await de_IdentityTypeNotSupportedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "QuickSightUserNotFoundException": - case "com.amazonaws.quicksight#QuickSightUserNotFoundException": - throw await de_QuickSightUserNotFoundExceptionRes(parsedOutput, context); - case "ResourceExistsException": - case "com.amazonaws.quicksight#ResourceExistsException": - throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "SessionLifetimeInMinutesInvalidException": - case "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException": - throw await de_SessionLifetimeInMinutesInvalidExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); - case "UnsupportedPricingPlanException": - case "com.amazonaws.quicksight#UnsupportedPricingPlanException": - throw await de_UnsupportedPricingPlanExceptionRes(parsedOutput, context); case "UnsupportedUserEditionException": case "com.amazonaws.quicksight#UnsupportedUserEditionException": throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context); @@ -11268,21 +13274,22 @@ const de_GetDashboardEmbedUrlCommandError = async ( }; /** - * deserializeAws_restJson1GetSessionEmbedUrlCommand + * deserializeAws_restJson1ListFoldersCommand */ -export const de_GetSessionEmbedUrlCommand = async ( +export const de_ListFoldersCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_GetSessionEmbedUrlCommandError(output, context); + return de_ListFoldersCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - EmbedUrl: __expectString, + FolderSummaryList: (_) => de_FolderSummaryList(_, context), + NextToken: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -11293,12 +13300,12 @@ export const de_GetSessionEmbedUrlCommand = async ( }; /** - * deserializeAws_restJson1GetSessionEmbedUrlCommandError + * deserializeAws_restJson1ListFoldersCommandError */ -const de_GetSessionEmbedUrlCommandError = async ( +const de_ListFoldersCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11311,21 +13318,15 @@ const de_GetSessionEmbedUrlCommandError = async ( case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "QuickSightUserNotFoundException": - case "com.amazonaws.quicksight#QuickSightUserNotFoundException": - throw await de_QuickSightUserNotFoundExceptionRes(parsedOutput, context); - case "ResourceExistsException": - case "com.amazonaws.quicksight#ResourceExistsException": - throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "SessionLifetimeInMinutesInvalidException": - case "com.amazonaws.quicksight#SessionLifetimeInMinutesInvalidException": - throw await de_SessionLifetimeInMinutesInvalidExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -11343,21 +13344,21 @@ const de_GetSessionEmbedUrlCommandError = async ( }; /** - * deserializeAws_restJson1ListAnalysesCommand + * deserializeAws_restJson1ListGroupMembershipsCommand */ -export const de_ListAnalysesCommand = async ( +export const de_ListGroupMembershipsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListAnalysesCommandError(output, context); + return de_ListGroupMembershipsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AnalysisSummaryList: (_) => de_AnalysisSummaryList(_, context), + GroupMemberList: _json, NextToken: __expectString, RequestId: __expectString, }); @@ -11369,30 +13370,42 @@ export const de_ListAnalysesCommand = async ( }; /** - * deserializeAws_restJson1ListAnalysesCommandError + * deserializeAws_restJson1ListGroupMembershipsCommandError */ -const de_ListAnalysesCommandError = async ( +const de_ListGroupMembershipsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidNextTokenException": case "com.amazonaws.quicksight#InvalidNextTokenException": throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -11404,21 +13417,21 @@ const de_ListAnalysesCommandError = async ( }; /** - * deserializeAws_restJson1ListDashboardsCommand + * deserializeAws_restJson1ListGroupsCommand */ -export const de_ListDashboardsCommand = async ( +export const de_ListGroupsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListDashboardsCommandError(output, context); + return de_ListGroupsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DashboardSummaryList: (_) => de_DashboardSummaryList(_, context), + GroupList: _json, NextToken: __expectString, RequestId: __expectString, }); @@ -11430,30 +13443,42 @@ export const de_ListDashboardsCommand = async ( }; /** - * deserializeAws_restJson1ListDashboardsCommandError + * deserializeAws_restJson1ListGroupsCommandError */ -const de_ListDashboardsCommandError = async ( +const de_ListGroupsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidNextTokenException": case "com.amazonaws.quicksight#InvalidNextTokenException": throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -11465,21 +13490,21 @@ const de_ListDashboardsCommandError = async ( }; /** - * deserializeAws_restJson1ListDashboardVersionsCommand + * deserializeAws_restJson1ListIAMPolicyAssignmentsCommand */ -export const de_ListDashboardVersionsCommand = async ( +export const de_ListIAMPolicyAssignmentsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListDashboardVersionsCommandError(output, context); + return de_ListIAMPolicyAssignmentsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DashboardVersionSummaryList: (_) => de_DashboardVersionSummaryList(_, context), + IAMPolicyAssignments: _json, NextToken: __expectString, RequestId: __expectString, }); @@ -11491,18 +13516,21 @@ export const de_ListDashboardVersionsCommand = async ( }; /** - * deserializeAws_restJson1ListDashboardVersionsCommandError + * deserializeAws_restJson1ListIAMPolicyAssignmentsCommandError */ -const de_ListDashboardVersionsCommandError = async ( +const de_ListIAMPolicyAssignmentsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -11518,9 +13546,6 @@ const de_ListDashboardVersionsCommandError = 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({ @@ -11532,21 +13557,21 @@ const de_ListDashboardVersionsCommandError = async ( }; /** - * deserializeAws_restJson1ListDataSetsCommand + * deserializeAws_restJson1ListIAMPolicyAssignmentsForUserCommand */ -export const de_ListDataSetsCommand = async ( +export const de_ListIAMPolicyAssignmentsForUserCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListDataSetsCommandError(output, context); + return de_ListIAMPolicyAssignmentsForUserCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DataSetSummaries: (_) => de_DataSetSummaryList(_, context), + ActiveAssignments: _json, NextToken: __expectString, RequestId: __expectString, }); @@ -11558,12 +13583,12 @@ export const de_ListDataSetsCommand = async ( }; /** - * deserializeAws_restJson1ListDataSetsCommandError + * deserializeAws_restJson1ListIAMPolicyAssignmentsForUserCommandError */ -const de_ListDataSetsCommandError = async ( +const de_ListIAMPolicyAssignmentsForUserCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11573,15 +13598,21 @@ const de_ListDataSetsCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConcurrentUpdatingException": + case "com.amazonaws.quicksight#ConcurrentUpdatingException": + throw await de_ConcurrentUpdatingExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -11596,21 +13627,21 @@ const de_ListDataSetsCommandError = async ( }; /** - * deserializeAws_restJson1ListDataSourcesCommand + * deserializeAws_restJson1ListIngestionsCommand */ -export const de_ListDataSourcesCommand = async ( +export const de_ListIngestionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListDataSourcesCommandError(output, context); + return de_ListIngestionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DataSources: (_) => de_DataSourceList(_, context), + Ingestions: (_) => de_Ingestions(_, context), NextToken: __expectString, RequestId: __expectString, }); @@ -11622,12 +13653,12 @@ export const de_ListDataSourcesCommand = async ( }; /** - * deserializeAws_restJson1ListDataSourcesCommandError + * deserializeAws_restJson1ListIngestionsCommandError */ -const de_ListDataSourcesCommandError = async ( +const de_ListIngestionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11646,6 +13677,12 @@ const de_ListDataSourcesCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.quicksight#ResourceNotFoundException": + throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -11660,21 +13697,21 @@ const de_ListDataSourcesCommandError = async ( }; /** - * deserializeAws_restJson1ListFolderMembersCommand + * deserializeAws_restJson1ListNamespacesCommand */ -export const de_ListFolderMembersCommand = async ( +export const de_ListNamespacesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListFolderMembersCommandError(output, context); + return de_ListNamespacesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - FolderMemberList: _json, + Namespaces: _json, NextToken: __expectString, RequestId: __expectString, }); @@ -11686,12 +13723,12 @@ export const de_ListFolderMembersCommand = async ( }; /** - * deserializeAws_restJson1ListFolderMembersCommandError + * deserializeAws_restJson1ListNamespacesCommandError */ -const de_ListFolderMembersCommandError = async ( +const de_ListNamespacesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11710,15 +13747,18 @@ const de_ListFolderMembersCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -11730,22 +13770,21 @@ const de_ListFolderMembersCommandError = async ( }; /** - * deserializeAws_restJson1ListFoldersCommand + * deserializeAws_restJson1ListRefreshSchedulesCommand */ -export const de_ListFoldersCommand = async ( +export const de_ListRefreshSchedulesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListFoldersCommandError(output, context); + return de_ListRefreshSchedulesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - FolderSummaryList: (_) => de_FolderSummaryList(_, context), - NextToken: __expectString, + RefreshSchedules: (_) => de_RefreshSchedules(_, context), RequestId: __expectString, }); Object.assign(contents, doc); @@ -11756,12 +13795,12 @@ export const de_ListFoldersCommand = async ( }; /** - * deserializeAws_restJson1ListFoldersCommandError + * deserializeAws_restJson1ListRefreshSchedulesCommandError */ -const de_ListFoldersCommandError = async ( +const de_ListRefreshSchedulesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11774,21 +13813,18 @@ const de_ListFoldersCommandError = async ( case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -11800,23 +13836,22 @@ const de_ListFoldersCommandError = async ( }; /** - * deserializeAws_restJson1ListGroupMembershipsCommand + * deserializeAws_restJson1ListTagsForResourceCommand */ -export const de_ListGroupMembershipsCommand = async ( +export const de_ListTagsForResourceCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListGroupMembershipsCommandError(output, context); + return de_ListTagsForResourceCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - GroupMemberList: _json, - NextToken: __expectString, RequestId: __expectString, + Tags: _json, }); Object.assign(contents, doc); map(contents, { @@ -11826,12 +13861,12 @@ export const de_ListGroupMembershipsCommand = async ( }; /** - * deserializeAws_restJson1ListGroupMembershipsCommandError + * deserializeAws_restJson1ListTagsForResourceCommandError */ -const de_ListGroupMembershipsCommandError = async ( +const de_ListTagsForResourceCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -11844,21 +13879,12 @@ const de_ListGroupMembershipsCommandError = async ( case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -11873,23 +13899,23 @@ const de_ListGroupMembershipsCommandError = async ( }; /** - * deserializeAws_restJson1ListGroupsCommand + * deserializeAws_restJson1ListTemplateAliasesCommand */ -export const de_ListGroupsCommand = async ( +export const de_ListTemplateAliasesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListGroupsCommandError(output, context); + return de_ListTemplateAliasesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - GroupList: _json, NextToken: __expectString, RequestId: __expectString, + TemplateAliasList: _json, }); Object.assign(contents, doc); map(contents, { @@ -11899,42 +13925,33 @@ export const de_ListGroupsCommand = async ( }; /** - * deserializeAws_restJson1ListGroupsCommandError + * deserializeAws_restJson1ListTemplateAliasesCommandError */ -const de_ListGroupsCommandError = async ( +const de_ListTemplateAliasesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidNextTokenException": case "com.amazonaws.quicksight#InvalidNextTokenException": throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); - case "InvalidParameterValueException": - case "com.amazonaws.quicksight#InvalidParameterValueException": - throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -11946,23 +13963,23 @@ const de_ListGroupsCommandError = async ( }; /** - * deserializeAws_restJson1ListIAMPolicyAssignmentsCommand + * deserializeAws_restJson1ListTemplatesCommand */ -export const de_ListIAMPolicyAssignmentsCommand = async ( +export const de_ListTemplatesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListIAMPolicyAssignmentsCommandError(output, context); + return de_ListTemplatesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - IAMPolicyAssignments: _json, NextToken: __expectString, RequestId: __expectString, + TemplateSummaryList: (_) => de_TemplateSummaryList(_, context), }); Object.assign(contents, doc); map(contents, { @@ -11972,21 +13989,18 @@ export const de_ListIAMPolicyAssignmentsCommand = async ( }; /** - * deserializeAws_restJson1ListIAMPolicyAssignmentsCommandError + * deserializeAws_restJson1ListTemplatesCommandError */ -const de_ListIAMPolicyAssignmentsCommandError = async ( +const de_ListTemplatesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -12002,6 +14016,9 @@ const de_ListIAMPolicyAssignmentsCommandError = 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({ @@ -12013,23 +14030,23 @@ const de_ListIAMPolicyAssignmentsCommandError = async ( }; /** - * deserializeAws_restJson1ListIAMPolicyAssignmentsForUserCommand + * deserializeAws_restJson1ListTemplateVersionsCommand */ -export const de_ListIAMPolicyAssignmentsForUserCommand = async ( +export const de_ListTemplateVersionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListIAMPolicyAssignmentsForUserCommandError(output, context); + return de_ListTemplateVersionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - ActiveAssignments: _json, NextToken: __expectString, RequestId: __expectString, + TemplateVersionSummaryList: (_) => de_TemplateVersionSummaryList(_, context), }); Object.assign(contents, doc); map(contents, { @@ -12039,39 +14056,36 @@ export const de_ListIAMPolicyAssignmentsForUserCommand = async ( }; /** - * deserializeAws_restJson1ListIAMPolicyAssignmentsForUserCommandError + * deserializeAws_restJson1ListTemplateVersionsCommandError */ -const de_ListIAMPolicyAssignmentsForUserCommandError = async ( +const de_ListTemplateVersionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConcurrentUpdatingException": - case "com.amazonaws.quicksight#ConcurrentUpdatingException": - throw await de_ConcurrentUpdatingExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "ResourceExistsException": - case "com.amazonaws.quicksight#ResourceExistsException": - throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -12083,23 +14097,23 @@ const de_ListIAMPolicyAssignmentsForUserCommandError = async ( }; /** - * deserializeAws_restJson1ListIngestionsCommand + * deserializeAws_restJson1ListThemeAliasesCommand */ -export const de_ListIngestionsCommand = async ( +export const de_ListThemeAliasesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListIngestionsCommandError(output, context); + return de_ListThemeAliasesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Ingestions: (_) => de_Ingestions(_, context), NextToken: __expectString, RequestId: __expectString, + ThemeAliasList: _json, }); Object.assign(contents, doc); map(contents, { @@ -12109,21 +14123,21 @@ export const de_ListIngestionsCommand = async ( }; /** - * deserializeAws_restJson1ListIngestionsCommandError + * deserializeAws_restJson1ListThemeAliasesCommandError */ -const de_ListIngestionsCommandError = async ( +const de_ListThemeAliasesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -12133,15 +14147,15 @@ const de_ListIngestionsCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "ResourceExistsException": - case "com.amazonaws.quicksight#ResourceExistsException": - throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -12153,23 +14167,23 @@ const de_ListIngestionsCommandError = async ( }; /** - * deserializeAws_restJson1ListNamespacesCommand + * deserializeAws_restJson1ListThemesCommand */ -export const de_ListNamespacesCommand = async ( +export const de_ListThemesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListNamespacesCommandError(output, context); + return de_ListThemesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Namespaces: _json, NextToken: __expectString, RequestId: __expectString, + ThemeSummaryList: (_) => de_ThemeSummaryList(_, context), }); Object.assign(contents, doc); map(contents, { @@ -12179,12 +14193,12 @@ export const de_ListNamespacesCommand = async ( }; /** - * deserializeAws_restJson1ListNamespacesCommandError + * deserializeAws_restJson1ListThemesCommandError */ -const de_ListNamespacesCommandError = async ( +const de_ListThemesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -12203,18 +14217,15 @@ const de_ListNamespacesCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -12226,22 +14237,23 @@ const de_ListNamespacesCommandError = async ( }; /** - * deserializeAws_restJson1ListRefreshSchedulesCommand + * deserializeAws_restJson1ListThemeVersionsCommand */ -export const de_ListRefreshSchedulesCommand = async ( +export const de_ListThemeVersionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListRefreshSchedulesCommandError(output, context); + return de_ListThemeVersionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - RefreshSchedules: (_) => de_RefreshSchedules(_, context), + NextToken: __expectString, RequestId: __expectString, + ThemeVersionSummaryList: (_) => de_ThemeVersionSummaryList(_, context), }); Object.assign(contents, doc); map(contents, { @@ -12251,12 +14263,12 @@ export const de_ListRefreshSchedulesCommand = async ( }; /** - * deserializeAws_restJson1ListRefreshSchedulesCommandError + * deserializeAws_restJson1ListThemeVersionsCommandError */ -const de_ListRefreshSchedulesCommandError = async ( +const de_ListThemeVersionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -12269,18 +14281,21 @@ const de_ListRefreshSchedulesCommandError = async ( case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -12292,22 +14307,24 @@ const de_ListRefreshSchedulesCommandError = async ( }; /** - * deserializeAws_restJson1ListTagsForResourceCommand + * deserializeAws_restJson1ListTopicRefreshSchedulesCommand */ -export const de_ListTagsForResourceCommand = async ( +export const de_ListTopicRefreshSchedulesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListTagsForResourceCommandError(output, context); + return de_ListTopicRefreshSchedulesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + RefreshSchedules: (_) => de_TopicRefreshScheduleSummaries(_, context), RequestId: __expectString, - Tags: _json, + TopicArn: __expectString, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -12317,12 +14334,12 @@ export const de_ListTagsForResourceCommand = async ( }; /** - * deserializeAws_restJson1ListTagsForResourceCommandError + * deserializeAws_restJson1ListTopicRefreshSchedulesCommandError */ -const de_ListTagsForResourceCommandError = async ( +const de_ListTopicRefreshSchedulesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -12332,12 +14349,21 @@ const de_ListTagsForResourceCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -12355,14 +14381,14 @@ const de_ListTagsForResourceCommandError = async ( }; /** - * deserializeAws_restJson1ListTemplateAliasesCommand + * deserializeAws_restJson1ListTopicsCommand */ -export const de_ListTemplateAliasesCommand = async ( +export const de_ListTopicsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListTemplateAliasesCommandError(output, context); + return de_ListTopicsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), @@ -12371,7 +14397,7 @@ export const de_ListTemplateAliasesCommand = async ( const doc = take(data, { NextToken: __expectString, RequestId: __expectString, - TemplateAliasList: _json, + TopicsSummaries: _json, }); Object.assign(contents, doc); map(contents, { @@ -12381,33 +14407,33 @@ export const de_ListTemplateAliasesCommand = async ( }; /** - * deserializeAws_restJson1ListTemplateAliasesCommandError + * deserializeAws_restJson1ListTopicsCommandError */ -const de_ListTemplateAliasesCommandError = async ( +const de_ListTopicsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidNextTokenException": case "com.amazonaws.quicksight#InvalidNextTokenException": throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.quicksight#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); 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({ @@ -12419,23 +14445,23 @@ const de_ListTemplateAliasesCommandError = async ( }; /** - * deserializeAws_restJson1ListTemplatesCommand + * deserializeAws_restJson1ListUserGroupsCommand */ -export const de_ListTemplatesCommand = async ( +export const de_ListUserGroupsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListTemplatesCommandError(output, context); + return de_ListUserGroupsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + GroupList: _json, NextToken: __expectString, RequestId: __expectString, - TemplateSummaryList: (_) => de_TemplateSummaryList(_, context), }); Object.assign(contents, doc); map(contents, { @@ -12445,36 +14471,39 @@ export const de_ListTemplatesCommand = async ( }; /** - * deserializeAws_restJson1ListTemplatesCommandError + * deserializeAws_restJson1ListUserGroupsCommandError */ -const de_ListTemplatesCommandError = async ( +const de_ListUserGroupsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -12486,14 +14515,14 @@ const de_ListTemplatesCommandError = async ( }; /** - * deserializeAws_restJson1ListTemplateVersionsCommand + * deserializeAws_restJson1ListUsersCommand */ -export const de_ListTemplateVersionsCommand = async ( +export const de_ListUsersCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListTemplateVersionsCommandError(output, context); + return de_ListUsersCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), @@ -12502,7 +14531,7 @@ export const de_ListTemplateVersionsCommand = async ( const doc = take(data, { NextToken: __expectString, RequestId: __expectString, - TemplateVersionSummaryList: (_) => de_TemplateVersionSummaryList(_, context), + UserList: _json, }); Object.assign(contents, doc); map(contents, { @@ -12512,18 +14541,21 @@ export const de_ListTemplateVersionsCommand = async ( }; /** - * deserializeAws_restJson1ListTemplateVersionsCommandError + * deserializeAws_restJson1ListUsersCommandError */ -const de_ListTemplateVersionsCommandError = async ( +const de_ListUsersCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -12533,15 +14565,18 @@ const de_ListTemplateVersionsCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -12553,14 +14588,14 @@ const de_ListTemplateVersionsCommandError = async ( }; /** - * deserializeAws_restJson1ListThemeAliasesCommand + * deserializeAws_restJson1ListVPCConnectionsCommand */ -export const de_ListThemeAliasesCommand = async ( +export const de_ListVPCConnectionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListThemeAliasesCommandError(output, context); + return de_ListVPCConnectionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), @@ -12569,7 +14604,7 @@ export const de_ListThemeAliasesCommand = async ( const doc = take(data, { NextToken: __expectString, RequestId: __expectString, - ThemeAliasList: _json, + VPCConnectionSummaries: (_) => de_VPCConnectionSummaryList(_, context), }); Object.assign(contents, doc); map(contents, { @@ -12579,21 +14614,21 @@ export const de_ListThemeAliasesCommand = async ( }; /** - * deserializeAws_restJson1ListThemeAliasesCommandError + * deserializeAws_restJson1ListVPCConnectionsCommandError */ -const de_ListThemeAliasesCommandError = async ( +const de_ListVPCConnectionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ConflictException": - case "com.amazonaws.quicksight#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -12603,9 +14638,6 @@ const de_ListThemeAliasesCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.quicksight#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -12623,23 +14655,21 @@ const de_ListThemeAliasesCommandError = async ( }; /** - * deserializeAws_restJson1ListThemesCommand + * deserializeAws_restJson1PutDataSetRefreshPropertiesCommand */ -export const de_ListThemesCommand = async ( +export const de_PutDataSetRefreshPropertiesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListThemesCommandError(output, context); + return de_PutDataSetRefreshPropertiesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - NextToken: __expectString, RequestId: __expectString, - ThemeSummaryList: (_) => de_ThemeSummaryList(_, context), }); Object.assign(contents, doc); map(contents, { @@ -12649,12 +14679,12 @@ export const de_ListThemesCommand = async ( }; /** - * deserializeAws_restJson1ListThemesCommandError + * deserializeAws_restJson1PutDataSetRefreshPropertiesCommandError */ -const de_ListThemesCommandError = async ( +const de_PutDataSetRefreshPropertiesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -12664,24 +14694,27 @@ const de_ListThemesCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -12693,23 +14726,23 @@ const de_ListThemesCommandError = async ( }; /** - * deserializeAws_restJson1ListThemeVersionsCommand + * deserializeAws_restJson1RegisterUserCommand */ -export const de_ListThemeVersionsCommand = async ( +export const de_RegisterUserCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListThemeVersionsCommandError(output, context); + return de_RegisterUserCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - NextToken: __expectString, RequestId: __expectString, - ThemeVersionSummaryList: (_) => de_ThemeVersionSummaryList(_, context), + User: _json, + UserInvitationUrl: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -12719,12 +14752,12 @@ export const de_ListThemeVersionsCommand = async ( }; /** - * deserializeAws_restJson1ListThemeVersionsCommandError + * deserializeAws_restJson1RegisterUserCommandError */ -const de_ListThemeVersionsCommandError = async ( +const de_RegisterUserCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -12737,21 +14770,27 @@ const de_ListThemeVersionsCommandError = async ( case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -12763,22 +14802,22 @@ const de_ListThemeVersionsCommandError = async ( }; /** - * deserializeAws_restJson1ListUserGroupsCommand + * deserializeAws_restJson1RestoreAnalysisCommand */ -export const de_ListUserGroupsCommand = async ( +export const de_RestoreAnalysisCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListUserGroupsCommandError(output, context); + return de_RestoreAnalysisCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - GroupList: _json, - NextToken: __expectString, + AnalysisId: __expectString, + Arn: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -12789,39 +14828,36 @@ export const de_ListUserGroupsCommand = async ( }; /** - * deserializeAws_restJson1ListUserGroupsCommandError + * deserializeAws_restJson1RestoreAnalysisCommandError */ -const de_ListUserGroupsCommandError = async ( +const de_RestoreAnalysisCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -12833,23 +14869,23 @@ const de_ListUserGroupsCommandError = async ( }; /** - * deserializeAws_restJson1ListUsersCommand + * deserializeAws_restJson1SearchAnalysesCommand */ -export const de_ListUsersCommand = async ( +export const de_SearchAnalysesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListUsersCommandError(output, context); + return de_SearchAnalysesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + AnalysisSummaryList: (_) => de_AnalysisSummaryList(_, context), NextToken: __expectString, RequestId: __expectString, - UserList: _json, }); Object.assign(contents, doc); map(contents, { @@ -12859,21 +14895,18 @@ export const de_ListUsersCommand = async ( }; /** - * deserializeAws_restJson1ListUsersCommandError + * deserializeAws_restJson1SearchAnalysesCommandError */ -const de_ListUsersCommandError = async ( +const de_SearchAnalysesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -12883,18 +14916,15 @@ const de_ListUsersCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -12906,20 +14936,22 @@ const de_ListUsersCommandError = async ( }; /** - * deserializeAws_restJson1PutDataSetRefreshPropertiesCommand + * deserializeAws_restJson1SearchDashboardsCommand */ -export const de_PutDataSetRefreshPropertiesCommand = async ( +export const de_SearchDashboardsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_PutDataSetRefreshPropertiesCommandError(output, context); + return de_SearchDashboardsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + DashboardSummaryList: (_) => de_DashboardSummaryList(_, context), + NextToken: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -12930,42 +14962,36 @@ export const de_PutDataSetRefreshPropertiesCommand = async ( }; /** - * deserializeAws_restJson1PutDataSetRefreshPropertiesCommandError + * deserializeAws_restJson1SearchDashboardsCommandError */ -const de_PutDataSetRefreshPropertiesCommandError = async ( +const de_SearchDashboardsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.quicksight#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -12977,23 +15003,23 @@ const de_PutDataSetRefreshPropertiesCommandError = async ( }; /** - * deserializeAws_restJson1RegisterUserCommand + * deserializeAws_restJson1SearchDataSetsCommand */ -export const de_RegisterUserCommand = async ( +export const de_SearchDataSetsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RegisterUserCommandError(output, context); + return de_SearchDataSetsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + DataSetSummaries: (_) => de_DataSetSummaryList(_, context), + NextToken: __expectString, RequestId: __expectString, - User: _json, - UserInvitationUrl: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -13003,12 +15029,12 @@ export const de_RegisterUserCommand = async ( }; /** - * deserializeAws_restJson1RegisterUserCommandError + * deserializeAws_restJson1SearchDataSetsCommandError */ -const de_RegisterUserCommandError = async ( +const de_SearchDataSetsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -13021,24 +15047,15 @@ const de_RegisterUserCommandError = async ( case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); - case "ResourceExistsException": - case "com.amazonaws.quicksight#ResourceExistsException": - throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -13053,22 +15070,22 @@ const de_RegisterUserCommandError = async ( }; /** - * deserializeAws_restJson1RestoreAnalysisCommand + * deserializeAws_restJson1SearchDataSourcesCommand */ -export const de_RestoreAnalysisCommand = async ( +export const de_SearchDataSourcesCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RestoreAnalysisCommandError(output, context); + return de_SearchDataSourcesCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AnalysisId: __expectString, - Arn: __expectString, + DataSourceSummaries: (_) => de_DataSourceSummaryList(_, context), + NextToken: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -13079,24 +15096,27 @@ export const de_RestoreAnalysisCommand = async ( }; /** - * deserializeAws_restJson1RestoreAnalysisCommandError + * deserializeAws_restJson1SearchDataSourcesCommandError */ -const de_RestoreAnalysisCommandError = async ( +const de_SearchDataSourcesCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ConflictException": - case "com.amazonaws.quicksight#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.quicksight#InvalidNextTokenException": + throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); @@ -13106,9 +15126,6 @@ const de_RestoreAnalysisCommandError = 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({ @@ -13120,21 +15137,21 @@ const de_RestoreAnalysisCommandError = async ( }; /** - * deserializeAws_restJson1SearchAnalysesCommand + * deserializeAws_restJson1SearchFoldersCommand */ -export const de_SearchAnalysesCommand = async ( +export const de_SearchFoldersCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_SearchAnalysesCommandError(output, context); + return de_SearchFoldersCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AnalysisSummaryList: (_) => de_AnalysisSummaryList(_, context), + FolderSummaryList: (_) => de_FolderSummaryList(_, context), NextToken: __expectString, RequestId: __expectString, }); @@ -13146,18 +15163,21 @@ export const de_SearchAnalysesCommand = async ( }; /** - * deserializeAws_restJson1SearchAnalysesCommandError + * deserializeAws_restJson1SearchFoldersCommandError */ -const de_SearchAnalysesCommandError = async ( +const de_SearchFoldersCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -13167,6 +15187,9 @@ const de_SearchAnalysesCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "InvalidRequestException": + case "com.amazonaws.quicksight#InvalidRequestException": + throw await de_InvalidRequestExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -13187,21 +15210,21 @@ const de_SearchAnalysesCommandError = async ( }; /** - * deserializeAws_restJson1SearchDashboardsCommand + * deserializeAws_restJson1SearchGroupsCommand */ -export const de_SearchDashboardsCommand = async ( +export const de_SearchGroupsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_SearchDashboardsCommandError(output, context); + return de_SearchGroupsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DashboardSummaryList: (_) => de_DashboardSummaryList(_, context), + GroupList: _json, NextToken: __expectString, RequestId: __expectString, }); @@ -13213,18 +15236,21 @@ export const de_SearchDashboardsCommand = async ( }; /** - * deserializeAws_restJson1SearchDashboardsCommandError + * deserializeAws_restJson1SearchGroupsCommandError */ -const de_SearchDashboardsCommandError = async ( +const de_SearchGroupsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -13234,15 +15260,18 @@ const de_SearchDashboardsCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -13254,22 +15283,20 @@ const de_SearchDashboardsCommandError = async ( }; /** - * deserializeAws_restJson1SearchDataSetsCommand + * deserializeAws_restJson1TagResourceCommand */ -export const de_SearchDataSetsCommand = async ( +export const de_TagResourceCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_SearchDataSetsCommandError(output, context); + return de_TagResourceCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DataSetSummaries: (_) => de_DataSetSummaryList(_, context), - NextToken: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -13280,12 +15307,12 @@ export const de_SearchDataSetsCommand = async ( }; /** - * deserializeAws_restJson1SearchDataSetsCommandError + * deserializeAws_restJson1TagResourceCommandError */ -const de_SearchDataSetsCommandError = async ( +const de_TagResourceCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -13298,12 +15325,12 @@ const de_SearchDataSetsCommandError = async ( case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -13321,22 +15348,20 @@ const de_SearchDataSetsCommandError = async ( }; /** - * deserializeAws_restJson1SearchDataSourcesCommand + * deserializeAws_restJson1UntagResourceCommand */ -export const de_SearchDataSourcesCommand = async ( +export const de_UntagResourceCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_SearchDataSourcesCommandError(output, context); + return de_UntagResourceCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DataSourceSummaries: (_) => de_DataSourceSummaryList(_, context), - NextToken: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -13347,12 +15372,12 @@ export const de_SearchDataSourcesCommand = async ( }; /** - * deserializeAws_restJson1SearchDataSourcesCommandError + * deserializeAws_restJson1UntagResourceCommandError */ -const de_SearchDataSourcesCommandError = async ( +const de_UntagResourceCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -13365,9 +15390,6 @@ const de_SearchDataSourcesCommandError = async ( case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); @@ -13388,22 +15410,24 @@ const de_SearchDataSourcesCommandError = async ( }; /** - * deserializeAws_restJson1SearchFoldersCommand + * deserializeAws_restJson1UpdateAccountCustomizationCommand */ -export const de_SearchFoldersCommand = async ( +export const de_UpdateAccountCustomizationCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_SearchFoldersCommandError(output, context); + return de_UpdateAccountCustomizationCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - FolderSummaryList: (_) => de_FolderSummaryList(_, context), - NextToken: __expectString, + AccountCustomization: _json, + Arn: __expectString, + AwsAccountId: __expectString, + Namespace: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -13414,12 +15438,12 @@ export const de_SearchFoldersCommand = async ( }; /** - * deserializeAws_restJson1SearchFoldersCommandError + * deserializeAws_restJson1UpdateAccountCustomizationCommandError */ -const de_SearchFoldersCommandError = async ( +const de_UpdateAccountCustomizationCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -13429,27 +15453,24 @@ const de_SearchFoldersCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.quicksight#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -13461,22 +15482,20 @@ const de_SearchFoldersCommandError = async ( }; /** - * deserializeAws_restJson1SearchGroupsCommand + * deserializeAws_restJson1UpdateAccountSettingsCommand */ -export const de_SearchGroupsCommand = async ( +export const de_UpdateAccountSettingsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_SearchGroupsCommandError(output, context); + return de_UpdateAccountSettingsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - GroupList: _json, - NextToken: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -13487,12 +15506,12 @@ export const de_SearchGroupsCommand = async ( }; /** - * deserializeAws_restJson1SearchGroupsCommandError + * deserializeAws_restJson1UpdateAccountSettingsCommandError */ -const de_SearchGroupsCommandError = async ( +const de_UpdateAccountSettingsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -13505,15 +15524,9 @@ const de_SearchGroupsCommandError = async ( case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidNextTokenException": - case "com.amazonaws.quicksight#InvalidNextTokenException": - throw await de_InvalidNextTokenExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -13534,21 +15547,24 @@ const de_SearchGroupsCommandError = async ( }; /** - * deserializeAws_restJson1TagResourceCommand + * deserializeAws_restJson1UpdateAnalysisCommand */ -export const de_TagResourceCommand = async ( +export const de_UpdateAnalysisCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_TagResourceCommandError(output, context); + return de_UpdateAnalysisCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + AnalysisId: __expectString, + Arn: __expectString, RequestId: __expectString, + UpdateStatus: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -13558,36 +15574,39 @@ export const de_TagResourceCommand = async ( }; /** - * deserializeAws_restJson1TagResourceCommandError + * deserializeAws_restJson1UpdateAnalysisCommandError */ -const de_TagResourceCommandError = async ( +const de_UpdateAnalysisCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -13599,20 +15618,23 @@ const de_TagResourceCommandError = async ( }; /** - * deserializeAws_restJson1UntagResourceCommand + * deserializeAws_restJson1UpdateAnalysisPermissionsCommand */ -export const de_UntagResourceCommand = async ( +export const de_UpdateAnalysisPermissionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UntagResourceCommandError(output, context); + return de_UpdateAnalysisPermissionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + AnalysisArn: __expectString, + AnalysisId: __expectString, + Permissions: _json, RequestId: __expectString, }); Object.assign(contents, doc); @@ -13623,33 +15645,39 @@ export const de_UntagResourceCommand = async ( }; /** - * deserializeAws_restJson1UntagResourceCommandError + * deserializeAws_restJson1UpdateAnalysisPermissionsCommandError */ -const de_UntagResourceCommandError = async ( +const de_UpdateAnalysisPermissionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -13661,49 +15689,44 @@ const de_UntagResourceCommandError = async ( }; /** - * deserializeAws_restJson1UpdateAccountCustomizationCommand + * deserializeAws_restJson1UpdateDashboardCommand */ -export const de_UpdateAccountCustomizationCommand = async ( +export const de_UpdateDashboardCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateAccountCustomizationCommandError(output, context); + return de_UpdateDashboardCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AccountCustomization: _json, Arn: __expectString, - AwsAccountId: __expectString, - Namespace: __expectString, + CreationStatus: __expectString, + DashboardId: __expectString, RequestId: __expectString, + Status: __expectInt32, + VersionArn: __expectString, }); Object.assign(contents, doc); - map(contents, { - Status: [, output.statusCode], - }); return contents; }; /** - * deserializeAws_restJson1UpdateAccountCustomizationCommandError + * deserializeAws_restJson1UpdateDashboardCommandError */ -const de_UpdateAccountCustomizationCommandError = async ( +const de_UpdateDashboardCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -13713,15 +15736,18 @@ const de_UpdateAccountCustomizationCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -13733,20 +15759,24 @@ const de_UpdateAccountCustomizationCommandError = async ( }; /** - * deserializeAws_restJson1UpdateAccountSettingsCommand + * deserializeAws_restJson1UpdateDashboardPermissionsCommand */ -export const de_UpdateAccountSettingsCommand = async ( +export const de_UpdateDashboardPermissionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateAccountSettingsCommandError(output, context); + return de_UpdateDashboardPermissionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + DashboardArn: __expectString, + DashboardId: __expectString, + LinkSharingConfiguration: _json, + Permissions: _json, RequestId: __expectString, }); Object.assign(contents, doc); @@ -13757,36 +15787,39 @@ export const de_UpdateAccountSettingsCommand = async ( }; /** - * deserializeAws_restJson1UpdateAccountSettingsCommandError + * deserializeAws_restJson1UpdateDashboardPermissionsCommandError */ -const de_UpdateAccountSettingsCommandError = async ( +const de_UpdateDashboardPermissionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -13798,24 +15831,23 @@ const de_UpdateAccountSettingsCommandError = async ( }; /** - * deserializeAws_restJson1UpdateAnalysisCommand + * deserializeAws_restJson1UpdateDashboardPublishedVersionCommand */ -export const de_UpdateAnalysisCommand = async ( +export const de_UpdateDashboardPublishedVersionCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateAnalysisCommandError(output, context); + return de_UpdateDashboardPublishedVersionCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AnalysisId: __expectString, - Arn: __expectString, + DashboardArn: __expectString, + DashboardId: __expectString, RequestId: __expectString, - UpdateStatus: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -13825,12 +15857,12 @@ export const de_UpdateAnalysisCommand = async ( }; /** - * deserializeAws_restJson1UpdateAnalysisCommandError + * deserializeAws_restJson1UpdateDashboardPublishedVersionCommandError */ -const de_UpdateAnalysisCommandError = async ( +const de_UpdateDashboardPublishedVersionCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -13846,9 +15878,6 @@ const de_UpdateAnalysisCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "ResourceExistsException": - case "com.amazonaws.quicksight#ResourceExistsException": - throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -13869,23 +15898,24 @@ const de_UpdateAnalysisCommandError = async ( }; /** - * deserializeAws_restJson1UpdateAnalysisPermissionsCommand + * deserializeAws_restJson1UpdateDataSetCommand */ -export const de_UpdateAnalysisPermissionsCommand = async ( +export const de_UpdateDataSetCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateAnalysisPermissionsCommandError(output, context); + return de_UpdateDataSetCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AnalysisArn: __expectString, - AnalysisId: __expectString, - Permissions: _json, + Arn: __expectString, + DataSetId: __expectString, + IngestionArn: __expectString, + IngestionId: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -13896,18 +15926,21 @@ export const de_UpdateAnalysisPermissionsCommand = async ( }; /** - * deserializeAws_restJson1UpdateAnalysisPermissionsCommandError + * deserializeAws_restJson1UpdateDataSetCommandError */ -const de_UpdateAnalysisPermissionsCommandError = async ( +const de_UpdateDataSetCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -13940,44 +15973,47 @@ const de_UpdateAnalysisPermissionsCommandError = async ( }; /** - * deserializeAws_restJson1UpdateDashboardCommand + * deserializeAws_restJson1UpdateDataSetPermissionsCommand */ -export const de_UpdateDashboardCommand = async ( +export const de_UpdateDataSetPermissionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateDashboardCommandError(output, context); + return de_UpdateDataSetPermissionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Arn: __expectString, - CreationStatus: __expectString, - DashboardId: __expectString, + DataSetArn: __expectString, + DataSetId: __expectString, RequestId: __expectString, - Status: __expectInt32, - VersionArn: __expectString, }); Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); return contents; }; /** - * deserializeAws_restJson1UpdateDashboardCommandError + * deserializeAws_restJson1UpdateDataSetPermissionsCommandError */ -const de_UpdateDashboardCommandError = async ( +const de_UpdateDataSetPermissionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -13987,18 +16023,12 @@ const de_UpdateDashboardCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -14010,25 +16040,24 @@ const de_UpdateDashboardCommandError = async ( }; /** - * deserializeAws_restJson1UpdateDashboardPermissionsCommand + * deserializeAws_restJson1UpdateDataSourceCommand */ -export const de_UpdateDashboardPermissionsCommand = async ( +export const de_UpdateDataSourceCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateDashboardPermissionsCommandError(output, context); + return de_UpdateDataSourceCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DashboardArn: __expectString, - DashboardId: __expectString, - LinkSharingConfiguration: _json, - Permissions: _json, + Arn: __expectString, + DataSourceId: __expectString, RequestId: __expectString, + UpdateStatus: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -14038,18 +16067,21 @@ export const de_UpdateDashboardPermissionsCommand = async ( }; /** - * deserializeAws_restJson1UpdateDashboardPermissionsCommandError + * deserializeAws_restJson1UpdateDataSourceCommandError */ -const de_UpdateDashboardPermissionsCommandError = async ( +const de_UpdateDataSourceCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -14059,18 +16091,12 @@ const de_UpdateDashboardPermissionsCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -14082,22 +16108,22 @@ const de_UpdateDashboardPermissionsCommandError = async ( }; /** - * deserializeAws_restJson1UpdateDashboardPublishedVersionCommand + * deserializeAws_restJson1UpdateDataSourcePermissionsCommand */ -export const de_UpdateDashboardPublishedVersionCommand = async ( +export const de_UpdateDataSourcePermissionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateDashboardPublishedVersionCommandError(output, context); + return de_UpdateDataSourcePermissionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DashboardArn: __expectString, - DashboardId: __expectString, + DataSourceArn: __expectString, + DataSourceId: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -14108,18 +16134,21 @@ export const de_UpdateDashboardPublishedVersionCommand = async ( }; /** - * deserializeAws_restJson1UpdateDashboardPublishedVersionCommandError + * deserializeAws_restJson1UpdateDataSourcePermissionsCommandError */ -const de_UpdateDashboardPublishedVersionCommandError = async ( +const de_UpdateDataSourcePermissionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -14135,9 +16164,6 @@ const de_UpdateDashboardPublishedVersionCommandError = 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({ @@ -14149,14 +16175,14 @@ const de_UpdateDashboardPublishedVersionCommandError = async ( }; /** - * deserializeAws_restJson1UpdateDataSetCommand + * deserializeAws_restJson1UpdateFolderCommand */ -export const de_UpdateDataSetCommand = async ( +export const de_UpdateFolderCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateDataSetCommandError(output, context); + return de_UpdateFolderCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), @@ -14164,9 +16190,7 @@ export const de_UpdateDataSetCommand = async ( const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { Arn: __expectString, - DataSetId: __expectString, - IngestionArn: __expectString, - IngestionId: __expectString, + FolderId: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -14177,12 +16201,12 @@ export const de_UpdateDataSetCommand = async ( }; /** - * deserializeAws_restJson1UpdateDataSetCommandError + * deserializeAws_restJson1UpdateFolderCommandError */ -const de_UpdateDataSetCommandError = async ( +const de_UpdateFolderCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -14201,9 +16225,9 @@ const de_UpdateDataSetCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -14224,38 +16248,37 @@ const de_UpdateDataSetCommandError = async ( }; /** - * deserializeAws_restJson1UpdateDataSetPermissionsCommand + * deserializeAws_restJson1UpdateFolderPermissionsCommand */ -export const de_UpdateDataSetPermissionsCommand = async ( +export const de_UpdateFolderPermissionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateDataSetPermissionsCommandError(output, context); + return de_UpdateFolderPermissionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DataSetArn: __expectString, - DataSetId: __expectString, + Arn: __expectString, + FolderId: __expectString, + Permissions: _json, RequestId: __expectString, + Status: __expectInt32, }); Object.assign(contents, doc); - map(contents, { - Status: [, output.statusCode], - }); return contents; }; /** - * deserializeAws_restJson1UpdateDataSetPermissionsCommandError + * deserializeAws_restJson1UpdateFolderPermissionsCommandError */ -const de_UpdateDataSetPermissionsCommandError = async ( +const de_UpdateFolderPermissionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -14265,21 +16288,24 @@ const de_UpdateDataSetPermissionsCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.quicksight#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -14291,24 +16317,22 @@ const de_UpdateDataSetPermissionsCommandError = async ( }; /** - * deserializeAws_restJson1UpdateDataSourceCommand + * deserializeAws_restJson1UpdateGroupCommand */ -export const de_UpdateDataSourceCommand = async ( +export const de_UpdateGroupCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateDataSourceCommandError(output, context); + return de_UpdateGroupCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Arn: __expectString, - DataSourceId: __expectString, + Group: _json, RequestId: __expectString, - UpdateStatus: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -14318,12 +16342,12 @@ export const de_UpdateDataSourceCommand = async ( }; /** - * deserializeAws_restJson1UpdateDataSourceCommandError + * deserializeAws_restJson1UpdateGroupCommandError */ -const de_UpdateDataSourceCommandError = async ( +const de_UpdateGroupCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -14333,18 +16357,21 @@ const de_UpdateDataSourceCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.quicksight#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -14359,22 +16386,25 @@ const de_UpdateDataSourceCommandError = async ( }; /** - * deserializeAws_restJson1UpdateDataSourcePermissionsCommand + * deserializeAws_restJson1UpdateIAMPolicyAssignmentCommand */ -export const de_UpdateDataSourcePermissionsCommand = async ( +export const de_UpdateIAMPolicyAssignmentCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateDataSourcePermissionsCommandError(output, context); + return de_UpdateIAMPolicyAssignmentCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - DataSourceArn: __expectString, - DataSourceId: __expectString, + AssignmentId: __expectString, + AssignmentName: __expectString, + AssignmentStatus: __expectString, + Identities: _json, + PolicyArn: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -14385,12 +16415,12 @@ export const de_UpdateDataSourcePermissionsCommand = async ( }; /** - * deserializeAws_restJson1UpdateDataSourcePermissionsCommandError + * deserializeAws_restJson1UpdateIAMPolicyAssignmentCommandError */ -const de_UpdateDataSourcePermissionsCommandError = async ( +const de_UpdateIAMPolicyAssignmentCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -14400,15 +16430,18 @@ const de_UpdateDataSourcePermissionsCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.quicksight#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); + case "ConcurrentUpdatingException": + case "com.amazonaws.quicksight#ConcurrentUpdatingException": + throw await de_ConcurrentUpdatingExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -14426,22 +16459,21 @@ const de_UpdateDataSourcePermissionsCommandError = async ( }; /** - * deserializeAws_restJson1UpdateFolderCommand + * deserializeAws_restJson1UpdateIpRestrictionCommand */ -export const de_UpdateFolderCommand = async ( +export const de_UpdateIpRestrictionCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateFolderCommandError(output, context); + return de_UpdateIpRestrictionCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Arn: __expectString, - FolderId: __expectString, + AwsAccountId: __expectString, RequestId: __expectString, }); Object.assign(contents, doc); @@ -14452,12 +16484,12 @@ export const de_UpdateFolderCommand = async ( }; /** - * deserializeAws_restJson1UpdateFolderCommandError + * deserializeAws_restJson1UpdateIpRestrictionCommandError */ -const de_UpdateFolderCommandError = async ( +const de_UpdateIpRestrictionCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -14467,27 +16499,21 @@ const de_UpdateFolderCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConflictException": - case "com.amazonaws.quicksight#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "ResourceExistsException": - case "com.amazonaws.quicksight#ResourceExistsException": - throw await de_ResourceExistsExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -14499,37 +16525,36 @@ const de_UpdateFolderCommandError = async ( }; /** - * deserializeAws_restJson1UpdateFolderPermissionsCommand + * deserializeAws_restJson1UpdatePublicSharingSettingsCommand */ -export const de_UpdateFolderPermissionsCommand = async ( +export const de_UpdatePublicSharingSettingsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateFolderPermissionsCommandError(output, context); + return de_UpdatePublicSharingSettingsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Arn: __expectString, - FolderId: __expectString, - Permissions: _json, RequestId: __expectString, - Status: __expectInt32, }); Object.assign(contents, doc); + map(contents, { + Status: [, output.statusCode], + }); return contents; }; /** - * deserializeAws_restJson1UpdateFolderPermissionsCommandError + * deserializeAws_restJson1UpdatePublicSharingSettingsCommandError */ -const de_UpdateFolderPermissionsCommandError = async ( +const de_UpdatePublicSharingSettingsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -14545,18 +16570,15 @@ const de_UpdateFolderPermissionsCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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); + case "UnsupportedPricingPlanException": + case "com.amazonaws.quicksight#UnsupportedPricingPlanException": + throw await de_UnsupportedPricingPlanExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ @@ -14568,22 +16590,23 @@ const de_UpdateFolderPermissionsCommandError = async ( }; /** - * deserializeAws_restJson1UpdateGroupCommand + * deserializeAws_restJson1UpdateRefreshScheduleCommand */ -export const de_UpdateGroupCommand = async ( +export const de_UpdateRefreshScheduleCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateGroupCommandError(output, context); + return de_UpdateRefreshScheduleCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Group: _json, + Arn: __expectString, RequestId: __expectString, + ScheduleId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -14593,12 +16616,12 @@ export const de_UpdateGroupCommand = async ( }; /** - * deserializeAws_restJson1UpdateGroupCommandError + * deserializeAws_restJson1UpdateRefreshScheduleCommandError */ -const de_UpdateGroupCommandError = async ( +const de_UpdateRefreshScheduleCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -14614,15 +16637,15 @@ const de_UpdateGroupCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "PreconditionNotMetException": case "com.amazonaws.quicksight#PreconditionNotMetException": throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); @@ -14637,26 +16660,25 @@ const de_UpdateGroupCommandError = async ( }; /** - * deserializeAws_restJson1UpdateIAMPolicyAssignmentCommand + * deserializeAws_restJson1UpdateTemplateCommand */ -export const de_UpdateIAMPolicyAssignmentCommand = async ( +export const de_UpdateTemplateCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateIAMPolicyAssignmentCommandError(output, context); + return de_UpdateTemplateCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AssignmentId: __expectString, - AssignmentName: __expectString, - AssignmentStatus: __expectString, - Identities: _json, - PolicyArn: __expectString, + Arn: __expectString, + CreationStatus: __expectString, RequestId: __expectString, + TemplateId: __expectString, + VersionArn: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -14666,30 +16688,30 @@ export const de_UpdateIAMPolicyAssignmentCommand = async ( }; /** - * deserializeAws_restJson1UpdateIAMPolicyAssignmentCommandError + * deserializeAws_restJson1UpdateTemplateCommandError */ -const de_UpdateIAMPolicyAssignmentCommandError = async ( +const de_UpdateTemplateCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "ConcurrentUpdatingException": - case "com.amazonaws.quicksight#ConcurrentUpdatingException": - throw await de_ConcurrentUpdatingExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceExistsException": case "com.amazonaws.quicksight#ResourceExistsException": throw await de_ResourceExistsExceptionRes(parsedOutput, context); @@ -14699,6 +16721,9 @@ const de_UpdateIAMPolicyAssignmentCommandError = 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({ @@ -14710,22 +16735,22 @@ const de_UpdateIAMPolicyAssignmentCommandError = async ( }; /** - * deserializeAws_restJson1UpdateIpRestrictionCommand + * deserializeAws_restJson1UpdateTemplateAliasCommand */ -export const de_UpdateIpRestrictionCommand = async ( +export const de_UpdateTemplateAliasCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateIpRestrictionCommandError(output, context); + return de_UpdateTemplateAliasCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - AwsAccountId: __expectString, RequestId: __expectString, + TemplateAlias: _json, }); Object.assign(contents, doc); map(contents, { @@ -14735,36 +16760,33 @@ export const de_UpdateIpRestrictionCommand = async ( }; /** - * deserializeAws_restJson1UpdateIpRestrictionCommandError + * deserializeAws_restJson1UpdateTemplateAliasCommandError */ -const de_UpdateIpRestrictionCommandError = async ( +const de_UpdateTemplateAliasCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); - case "InvalidParameterValueException": - case "com.amazonaws.quicksight#InvalidParameterValueException": - throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -14776,21 +16798,24 @@ const de_UpdateIpRestrictionCommandError = async ( }; /** - * deserializeAws_restJson1UpdatePublicSharingSettingsCommand + * deserializeAws_restJson1UpdateTemplatePermissionsCommand */ -export const de_UpdatePublicSharingSettingsCommand = async ( +export const de_UpdateTemplatePermissionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdatePublicSharingSettingsCommandError(output, context); + return de_UpdateTemplatePermissionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + Permissions: _json, RequestId: __expectString, + TemplateArn: __expectString, + TemplateId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -14800,36 +16825,39 @@ export const de_UpdatePublicSharingSettingsCommand = async ( }; /** - * deserializeAws_restJson1UpdatePublicSharingSettingsCommandError + * deserializeAws_restJson1UpdateTemplatePermissionsCommandError */ -const de_UpdatePublicSharingSettingsCommandError = async ( +const de_UpdateTemplatePermissionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.quicksight#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.quicksight#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); - case "UnsupportedPricingPlanException": - case "com.amazonaws.quicksight#UnsupportedPricingPlanException": - throw await de_UnsupportedPricingPlanExceptionRes(parsedOutput, context); + case "UnsupportedUserEditionException": + case "com.amazonaws.quicksight#UnsupportedUserEditionException": + throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ @@ -14841,14 +16869,14 @@ const de_UpdatePublicSharingSettingsCommandError = async ( }; /** - * deserializeAws_restJson1UpdateRefreshScheduleCommand + * deserializeAws_restJson1UpdateThemeCommand */ -export const de_UpdateRefreshScheduleCommand = async ( +export const de_UpdateThemeCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateRefreshScheduleCommandError(output, context); + return de_UpdateThemeCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), @@ -14856,8 +16884,10 @@ export const de_UpdateRefreshScheduleCommand = async ( const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { Arn: __expectString, + CreationStatus: __expectString, RequestId: __expectString, - ScheduleId: __expectString, + ThemeId: __expectString, + VersionArn: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -14867,12 +16897,12 @@ export const de_UpdateRefreshScheduleCommand = async ( }; /** - * deserializeAws_restJson1UpdateRefreshScheduleCommandError + * deserializeAws_restJson1UpdateThemeCommandError */ -const de_UpdateRefreshScheduleCommandError = async ( +const de_UpdateThemeCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -14891,15 +16921,18 @@ const de_UpdateRefreshScheduleCommandError = async ( case "LimitExceededException": case "com.amazonaws.quicksight#LimitExceededException": throw await de_LimitExceededExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -14911,25 +16944,22 @@ const de_UpdateRefreshScheduleCommandError = async ( }; /** - * deserializeAws_restJson1UpdateTemplateCommand + * deserializeAws_restJson1UpdateThemeAliasCommand */ -export const de_UpdateTemplateCommand = async ( +export const de_UpdateThemeAliasCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateTemplateCommandError(output, context); + return de_UpdateThemeAliasCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Arn: __expectString, - CreationStatus: __expectString, RequestId: __expectString, - TemplateId: __expectString, - VersionArn: __expectString, + ThemeAlias: _json, }); Object.assign(contents, doc); map(contents, { @@ -14939,12 +16969,12 @@ export const de_UpdateTemplateCommand = async ( }; /** - * deserializeAws_restJson1UpdateTemplateCommandError + * deserializeAws_restJson1UpdateThemeAliasCommandError */ -const de_UpdateTemplateCommandError = async ( +const de_UpdateThemeAliasCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -14960,9 +16990,6 @@ const de_UpdateTemplateCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceExistsException": case "com.amazonaws.quicksight#ResourceExistsException": throw await de_ResourceExistsExceptionRes(parsedOutput, context); @@ -14986,22 +17013,24 @@ const de_UpdateTemplateCommandError = async ( }; /** - * deserializeAws_restJson1UpdateTemplateAliasCommand + * deserializeAws_restJson1UpdateThemePermissionsCommand */ -export const de_UpdateTemplateAliasCommand = async ( +export const de_UpdateThemePermissionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateTemplateAliasCommandError(output, context); + return de_UpdateThemePermissionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + Permissions: _json, RequestId: __expectString, - TemplateAlias: _json, + ThemeArn: __expectString, + ThemeId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -15011,24 +17040,30 @@ export const de_UpdateTemplateAliasCommand = async ( }; /** - * deserializeAws_restJson1UpdateTemplateAliasCommandError + * deserializeAws_restJson1UpdateThemePermissionsCommandError */ -const de_UpdateTemplateAliasCommandError = async ( +const de_UpdateThemePermissionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ConflictException": - case "com.amazonaws.quicksight#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidParameterValueException": + case "com.amazonaws.quicksight#InvalidParameterValueException": + throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -15049,24 +17084,24 @@ const de_UpdateTemplateAliasCommandError = async ( }; /** - * deserializeAws_restJson1UpdateTemplatePermissionsCommand + * deserializeAws_restJson1UpdateTopicCommand */ -export const de_UpdateTemplatePermissionsCommand = async ( +export const de_UpdateTopicCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateTemplatePermissionsCommandError(output, context); + return de_UpdateTopicCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Permissions: _json, + Arn: __expectString, + RefreshArn: __expectString, RequestId: __expectString, - TemplateArn: __expectString, - TemplateId: __expectString, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -15076,18 +17111,21 @@ export const de_UpdateTemplatePermissionsCommand = async ( }; /** - * deserializeAws_restJson1UpdateTemplatePermissionsCommandError + * deserializeAws_restJson1UpdateTopicCommandError */ -const de_UpdateTemplatePermissionsCommandError = async ( +const de_UpdateTopicCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -15100,15 +17138,15 @@ const de_UpdateTemplatePermissionsCommandError = async ( case "LimitExceededException": case "com.amazonaws.quicksight#LimitExceededException": throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "ResourceExistsException": + case "com.amazonaws.quicksight#ResourceExistsException": + throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); 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({ @@ -15120,25 +17158,24 @@ const de_UpdateTemplatePermissionsCommandError = async ( }; /** - * deserializeAws_restJson1UpdateThemeCommand + * deserializeAws_restJson1UpdateTopicPermissionsCommand */ -export const de_UpdateThemeCommand = async ( +export const de_UpdateTopicPermissionsCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateThemeCommandError(output, context); + return de_UpdateTopicPermissionsCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Arn: __expectString, - CreationStatus: __expectString, + Permissions: _json, RequestId: __expectString, - ThemeId: __expectString, - VersionArn: __expectString, + TopicArn: __expectString, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -15148,12 +17185,12 @@ export const de_UpdateThemeCommand = async ( }; /** - * deserializeAws_restJson1UpdateThemeCommandError + * deserializeAws_restJson1UpdateTopicPermissionsCommandError */ -const de_UpdateThemeCommandError = async ( +const de_UpdateTopicPermissionsCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -15163,6 +17200,9 @@ const de_UpdateThemeCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); @@ -15172,9 +17212,6 @@ const de_UpdateThemeCommandError = async ( case "LimitExceededException": case "com.amazonaws.quicksight#LimitExceededException": throw await de_LimitExceededExceptionRes(parsedOutput, context); - case "ResourceExistsException": - case "com.amazonaws.quicksight#ResourceExistsException": - throw await de_ResourceExistsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -15195,22 +17232,24 @@ const de_UpdateThemeCommandError = async ( }; /** - * deserializeAws_restJson1UpdateThemeAliasCommand + * deserializeAws_restJson1UpdateTopicRefreshScheduleCommand */ -export const de_UpdateThemeAliasCommand = async ( +export const de_UpdateTopicRefreshScheduleCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateThemeAliasCommandError(output, context); + return de_UpdateTopicRefreshScheduleCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + DatasetArn: __expectString, RequestId: __expectString, - ThemeAlias: _json, + TopicArn: __expectString, + TopicId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -15220,18 +17259,21 @@ export const de_UpdateThemeAliasCommand = async ( }; /** - * deserializeAws_restJson1UpdateThemeAliasCommandError + * deserializeAws_restJson1UpdateTopicRefreshScheduleCommandError */ -const de_UpdateThemeAliasCommandError = async ( +const de_UpdateTopicRefreshScheduleCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.quicksight#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.quicksight#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); @@ -15241,6 +17283,9 @@ const de_UpdateThemeAliasCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceExistsException": case "com.amazonaws.quicksight#ResourceExistsException": throw await de_ResourceExistsExceptionRes(parsedOutput, context); @@ -15250,9 +17295,6 @@ const de_UpdateThemeAliasCommandError = 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({ @@ -15264,24 +17306,22 @@ const de_UpdateThemeAliasCommandError = async ( }; /** - * deserializeAws_restJson1UpdateThemePermissionsCommand + * deserializeAws_restJson1UpdateUserCommand */ -export const de_UpdateThemePermissionsCommand = async ( +export const de_UpdateUserCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateThemePermissionsCommandError(output, context); + return de_UpdateUserCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - Permissions: _json, RequestId: __expectString, - ThemeArn: __expectString, - ThemeId: __expectString, + User: _json, }); Object.assign(contents, doc); map(contents, { @@ -15291,12 +17331,12 @@ export const de_UpdateThemePermissionsCommand = async ( }; /** - * deserializeAws_restJson1UpdateThemePermissionsCommandError + * deserializeAws_restJson1UpdateUserCommandError */ -const de_UpdateThemePermissionsCommandError = async ( +const de_UpdateUserCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -15312,18 +17352,18 @@ const de_UpdateThemePermissionsCommandError = async ( case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "LimitExceededException": - case "com.amazonaws.quicksight#LimitExceededException": - throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "PreconditionNotMetException": + case "com.amazonaws.quicksight#PreconditionNotMetException": + throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ResourceUnavailableException": + case "com.amazonaws.quicksight#ResourceUnavailableException": + throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -15335,22 +17375,25 @@ const de_UpdateThemePermissionsCommandError = async ( }; /** - * deserializeAws_restJson1UpdateUserCommand + * deserializeAws_restJson1UpdateVPCConnectionCommand */ -export const de_UpdateUserCommand = async ( +export const de_UpdateVPCConnectionCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_UpdateUserCommandError(output, context); + return de_UpdateVPCConnectionCommandError(output, context); } const contents: any = map({ $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + Arn: __expectString, + AvailabilityStatus: __expectString, RequestId: __expectString, - User: _json, + UpdateStatus: __expectString, + VPCConnectionId: __expectString, }); Object.assign(contents, doc); map(contents, { @@ -15360,12 +17403,12 @@ export const de_UpdateUserCommand = async ( }; /** - * deserializeAws_restJson1UpdateUserCommandError + * deserializeAws_restJson1UpdateVPCConnectionCommandError */ -const de_UpdateUserCommandError = async ( +const de_UpdateVPCConnectionCommandError = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { const parsedOutput: any = { ...output, body: await parseErrorBody(output.body, context), @@ -15375,24 +17418,27 @@ const de_UpdateUserCommandError = async ( case "AccessDeniedException": case "com.amazonaws.quicksight#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.quicksight#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalFailureException": case "com.amazonaws.quicksight#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidParameterValueException": case "com.amazonaws.quicksight#InvalidParameterValueException": throw await de_InvalidParameterValueExceptionRes(parsedOutput, context); - case "PreconditionNotMetException": - case "com.amazonaws.quicksight#PreconditionNotMetException": - throw await de_PreconditionNotMetExceptionRes(parsedOutput, context); + case "LimitExceededException": + case "com.amazonaws.quicksight#LimitExceededException": + throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.quicksight#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "ResourceUnavailableException": - case "com.amazonaws.quicksight#ResourceUnavailableException": - throw await de_ResourceUnavailableExceptionRes(parsedOutput, context); 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({ @@ -15818,6 +17864,8 @@ const se_AggregationFunction = (input: AggregationFunction, context: __SerdeCont }); }; +// se_AggregationFunctionParameters omitted. + /** * serializeAws_restJson1AggregationSortConfiguration */ @@ -15919,6 +17967,8 @@ const se_ArcConfiguration = (input: ArcConfiguration, context: __SerdeContext): // se_AuroraPostgreSqlParameters omitted. +// se_AuthorSpecifiedAggregations omitted. + // se_AwsIotAnalyticsParameters omitted. /** @@ -16103,6 +18153,8 @@ const se_BinWidthOptions = (input: BinWidthOptions, context: __SerdeContext): an // se_BodySectionContent omitted. +// se_BookmarksConfigurations omitted. + // se_BorderStyle omitted. /** @@ -16214,12 +18266,18 @@ const se_BoxPlotVisual = (input: BoxPlotVisual, context: __SerdeContext): any => // se_CategoryValueList omitted. +// se_CellValueSynonym omitted. + +// se_CellValueSynonyms omitted. + // se_ChartAxisLabelOptions omitted. // se_ClusterMarker omitted. // se_ClusterMarkerConfiguration omitted. +// se_CollectiveConstant omitted. + // se_ColorList omitted. /** @@ -16398,6 +18456,8 @@ const se_ComboChartVisual = (input: ComboChartVisual, context: __SerdeContext): }); }; +// se_ComparativeOrder omitted. + // se_ComparisonConfiguration omitted. // se_ComparisonFormatConfiguration omitted. @@ -16478,6 +18538,8 @@ const se_ConditionalFormattingGradientColor = ( // se_CurrencyDisplayFormatConfiguration omitted. +// se_CustomActionColumnList omitted. + // se_CustomActionFilterOperation omitted. // se_CustomActionNavigationOperation omitted. @@ -16571,6 +18633,8 @@ const se_DashboardVersionDefinition = (input: DashboardVersionDefinition, contex // se_DashboardVisualPublishOptions omitted. +// se_DataAggregation omitted. + // se_DataBarsOptions omitted. // se_DatabricksParameters omitted. @@ -16621,12 +18685,39 @@ const se_DataColor = (input: DataColor, context: __SerdeContext): any => { // se_DataSetIdentifierDeclarationList omitted. +// se_DatasetMetadata omitted. + +/** + * serializeAws_restJson1DatasetParameter + */ +const se_DatasetParameter = (input: DatasetParameter, context: __SerdeContext): any => { + return take(input, { + DateTimeDatasetParameter: (_) => se_DateTimeDatasetParameter(_, context), + DecimalDatasetParameter: (_) => se_DecimalDatasetParameter(_, context), + IntegerDatasetParameter: _json, + StringDatasetParameter: _json, + }); +}; + +/** + * serializeAws_restJson1DatasetParameterList + */ +const se_DatasetParameterList = (input: DatasetParameter[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + return se_DatasetParameter(entry, context); + }); +}; + // se_DataSetReference omitted. // se_DataSetReferenceList omitted. // se_DataSetRefreshProperties omitted. +// se_Datasets omitted. + // se_DataSetSchema omitted. // se_DataSetSearchFilter omitted. @@ -16651,6 +18742,42 @@ const se_DataColor = (input: DataColor, context: __SerdeContext): any => { // se_DateMeasureField omitted. +/** + * serializeAws_restJson1DateTimeDatasetParameter + */ +const se_DateTimeDatasetParameter = (input: DateTimeDatasetParameter, context: __SerdeContext): any => { + return take(input, { + DefaultValues: (_) => se_DateTimeDatasetParameterDefaultValues(_, context), + Id: [], + Name: [], + TimeGranularity: [], + ValueType: [], + }); +}; + +/** + * serializeAws_restJson1DateTimeDatasetParameterDefaultValues + */ +const se_DateTimeDatasetParameterDefaultValues = ( + input: DateTimeDatasetParameterDefaultValues, + context: __SerdeContext +): any => { + return take(input, { + StaticValues: (_) => se_DateTimeDatasetParameterValueList(_, context), + }); +}; + +/** + * serializeAws_restJson1DateTimeDatasetParameterValueList + */ +const se_DateTimeDatasetParameterValueList = (input: Date[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + return Math.round(entry.getTime() / 1000); + }); +}; + /** * serializeAws_restJson1DateTimeDefaultValueList */ @@ -16701,6 +18828,7 @@ const se_DateTimeParameter = (input: DateTimeParameter, context: __SerdeContext) const se_DateTimeParameterDeclaration = (input: DateTimeParameterDeclaration, context: __SerdeContext): any => { return take(input, { DefaultValues: (_) => se_DateTimeDefaultValues(_, context), + MappedDataSetParameters: _json, Name: [], TimeGranularity: [], ValueWhenUnset: (_) => se_DateTimeValueWhenUnsetConfiguration(_, context), @@ -16733,6 +18861,41 @@ const se_DateTimeValueWhenUnsetConfiguration = ( }); }; +/** + * serializeAws_restJson1DecimalDatasetParameter + */ +const se_DecimalDatasetParameter = (input: DecimalDatasetParameter, context: __SerdeContext): any => { + return take(input, { + DefaultValues: (_) => se_DecimalDatasetParameterDefaultValues(_, context), + Id: [], + Name: [], + ValueType: [], + }); +}; + +/** + * serializeAws_restJson1DecimalDatasetParameterDefaultValues + */ +const se_DecimalDatasetParameterDefaultValues = ( + input: DecimalDatasetParameterDefaultValues, + context: __SerdeContext +): any => { + return take(input, { + StaticValues: (_) => se_DecimalDatasetParameterValueList(_, context), + }); +}; + +/** + * serializeAws_restJson1DecimalDatasetParameterValueList + */ +const se_DecimalDatasetParameterValueList = (input: number[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + return __serializeFloat(entry); + }); +}; + /** * serializeAws_restJson1DecimalDefaultValueList */ @@ -16770,6 +18933,7 @@ const se_DecimalParameter = (input: DecimalParameter, context: __SerdeContext): const se_DecimalParameterDeclaration = (input: DecimalParameterDeclaration, context: __SerdeContext): any => { return take(input, { DefaultValues: (_) => se_DecimalDefaultValues(_, context), + MappedDataSetParameters: _json, Name: [], ParameterValueType: [], ValueWhenUnset: (_) => se_DecimalValueWhenUnsetConfiguration(_, context), @@ -16802,6 +18966,8 @@ const se_DecimalValueWhenUnsetConfiguration = ( }); }; +// se_DefaultFormatting omitted. + // se_DefaultFreeFormLayoutConfiguration omitted. // se_DefaultGridLayoutConfiguration omitted. @@ -16824,6 +18990,7 @@ const se_DestinationParameterValueConfiguration = ( return take(input, { CustomValuesConfiguration: (_) => se_CustomValuesConfiguration(_, context), SelectAllValueOptions: [], + SourceColumn: _json, SourceField: [], SourceParameterName: [], }); @@ -16833,6 +19000,10 @@ const se_DestinationParameterValueConfiguration = ( // se_DimensionFieldList omitted. +// se_DisplayFormatOptions omitted. + +// se_DnsResolverList omitted. + // se_DonutCenterOptions omitted. // se_DonutOptions omitted. @@ -17774,6 +19945,12 @@ const se_InsightVisual = (input: InsightVisual, context: __SerdeContext): any => }); }; +// se_IntegerDatasetParameter omitted. + +// se_IntegerDatasetParameterDefaultValues omitted. + +// se_IntegerDatasetParameterValueList omitted. + // se_IntegerDefaultValueList omitted. // se_IntegerDefaultValues omitted. @@ -18040,9 +20217,29 @@ const se_LineSeriesAxisDisplayOptions = (input: LineSeriesAxisDisplayOptions, co // se_LocalNavigationConfiguration omitted. -// se_LogicalTable omitted. +/** + * serializeAws_restJson1LogicalTable + */ +const se_LogicalTable = (input: LogicalTable, context: __SerdeContext): any => { + return take(input, { + Alias: [], + DataTransforms: (_) => se_TransformOperationList(_, context), + Source: _json, + }); +}; -// se_LogicalTableMap omitted. +/** + * serializeAws_restJson1LogicalTableMap + */ +const se_LogicalTableMap = (input: Record, context: __SerdeContext): any => { + return Object.entries(input).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + acc[key] = se_LogicalTable(value, context); + return acc; + }, {}); +}; // se_LogicalTableSource omitted. @@ -18052,6 +20249,10 @@ const se_LineSeriesAxisDisplayOptions = (input: LineSeriesAxisDisplayOptions, co // se_ManifestFileLocation omitted. +// se_MappedDataSetParameter omitted. + +// se_MappedDataSetParameters omitted. + // se_MarginStyle omitted. // se_MariaDbParameters omitted. @@ -18115,8 +20316,28 @@ const se_MetricComparisonComputation = (input: MetricComparisonComputation, cont // se_MySqlParameters omitted. +// se_NamedEntityDefinition omitted. + +// se_NamedEntityDefinitionMetric omitted. + +// se_NamedEntityDefinitions omitted. + +// se_NegativeFormat omitted. + // se_NegativeValueConfiguration omitted. +/** + * serializeAws_restJson1NewDefaultValues + */ +const se_NewDefaultValues = (input: NewDefaultValues, context: __SerdeContext): any => { + return take(input, { + DateTimeStaticValues: (_) => se_DateTimeDatasetParameterValueList(_, context), + DecimalStaticValues: (_) => se_DecimalDatasetParameterValueList(_, context), + IntegerStaticValues: _json, + StringStaticValues: _json, + }); +}; + // se_NullValueFormatConfiguration omitted. // se_NumberDisplayFormatConfiguration omitted. @@ -18216,6 +20437,20 @@ const se_NumericRangeFilterValue = (input: NumericRangeFilterValue, context: __S // se_OracleParameters omitted. +/** + * serializeAws_restJson1OverrideDatasetParameterOperation + */ +const se_OverrideDatasetParameterOperation = ( + input: OverrideDatasetParameterOperation, + context: __SerdeContext +): any => { + return take(input, { + NewDefaultValues: (_) => se_NewDefaultValues(_, context), + NewParameterName: [], + ParameterName: [], + }); +}; + // se_PaginationConfiguration omitted. // se_PanelConfiguration omitted. @@ -18713,6 +20948,8 @@ const se_RadarChartVisual = (input: RadarChartVisual, context: __SerdeContext): }); }; +// se_RangeConstant omitted. + // se_RangeEndsLabelType omitted. // se_RdsParameters omitted. @@ -18932,6 +21169,7 @@ const se_ScatterPlotCategoricallyAggregatedFieldWells = ( ): any => { return take(input, { Category: _json, + Label: _json, Size: (_) => se_MeasureFieldList(_, context), XAxis: (_) => se_MeasureFieldList(_, context), YAxis: (_) => se_MeasureFieldList(_, context), @@ -18973,6 +21211,8 @@ const se_ScatterPlotUnaggregatedFieldWells = ( context: __SerdeContext ): any => { return take(input, { + Category: _json, + Label: _json, Size: (_) => se_MeasureFieldList(_, context), XAxis: _json, YAxis: _json, @@ -19031,10 +21271,16 @@ const se_SectionBasedLayoutConfiguration = (input: SectionBasedLayoutConfigurati // se_SectionStyle omitted. +// se_SecurityGroupIdList omitted. + // se_SelectedFieldList omitted. // se_SelectedSheetsFilterScopeConfiguration omitted. +// se_SemanticEntityType omitted. + +// se_SemanticType omitted. + /** * serializeAws_restJson1SensitiveDoubleList */ @@ -19178,9 +21424,15 @@ const se_SheetDefinitionList = (input: SheetDefinition[], context: __SerdeContex // se_SqlServerParameters omitted. -// se_SslProperties omitted. +// se_SslProperties omitted. + +// se_StatePersistenceConfigurations omitted. + +// se_StringDatasetParameter omitted. + +// se_StringDatasetParameterDefaultValues omitted. -// se_StatePersistenceConfigurations omitted. +// se_StringDatasetParameterValueList omitted. // se_StringDefaultValueList omitted. @@ -19198,8 +21450,12 @@ const se_SheetDefinitionList = (input: SheetDefinition[], context: __SerdeContex // se_StringValueWhenUnsetConfiguration omitted. +// se_SubnetIdList omitted. + // se_SubtotalOptions omitted. +// se_Synonyms omitted. + /** * serializeAws_restJson1TableAggregatedFieldWells */ @@ -19547,6 +21803,54 @@ const se_TopBottomRankedComputation = (input: TopBottomRankedComputation, contex }); }; +// se_TopicCalculatedField omitted. + +// se_TopicCalculatedFields omitted. + +// se_TopicCategoryFilter omitted. + +// se_TopicCategoryFilterConstant omitted. + +// se_TopicColumn omitted. + +// se_TopicColumns omitted. + +// se_TopicDateRangeFilter omitted. + +// se_TopicDetails omitted. + +// se_TopicFilter omitted. + +// se_TopicFilters omitted. + +// se_TopicNamedEntities omitted. + +// se_TopicNamedEntity omitted. + +// se_TopicNumericEqualityFilter omitted. + +// se_TopicNumericRangeFilter omitted. + +// se_TopicRangeFilterConstant omitted. + +/** + * serializeAws_restJson1TopicRefreshSchedule + */ +const se_TopicRefreshSchedule = (input: TopicRefreshSchedule, context: __SerdeContext): any => { + return take(input, { + BasedOnSpiceSchedule: [], + IsEnabled: [], + RepeatAt: [], + StartingAt: (_) => Math.round(_.getTime() / 1000), + Timezone: [], + TopicScheduleType: [], + }); +}; + +// se_TopicRelativeDateFilter omitted. + +// se_TopicSingularFilterConstant omitted. + /** * serializeAws_restJson1TotalAggregationComputation */ @@ -19560,9 +21864,35 @@ const se_TotalAggregationComputation = (input: TotalAggregationComputation, cont // se_TotalOptions omitted. -// se_TransformOperation omitted. +/** + * serializeAws_restJson1TransformOperation + */ +const se_TransformOperation = (input: TransformOperation, context: __SerdeContext): any => { + return TransformOperation.visit(input, { + CastColumnTypeOperation: (value) => ({ CastColumnTypeOperation: _json(value) }), + CreateColumnsOperation: (value) => ({ CreateColumnsOperation: _json(value) }), + FilterOperation: (value) => ({ FilterOperation: _json(value) }), + OverrideDatasetParameterOperation: (value) => ({ + OverrideDatasetParameterOperation: se_OverrideDatasetParameterOperation(value, context), + }), + ProjectOperation: (value) => ({ ProjectOperation: _json(value) }), + RenameColumnOperation: (value) => ({ RenameColumnOperation: _json(value) }), + TagColumnOperation: (value) => ({ TagColumnOperation: _json(value) }), + UntagColumnOperation: (value) => ({ UntagColumnOperation: _json(value) }), + _: (name, value) => ({ name: value } as any), + }); +}; -// se_TransformOperationList omitted. +/** + * serializeAws_restJson1TransformOperationList + */ +const se_TransformOperationList = (input: TransformOperation[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + return se_TransformOperation(entry, context); + }); +}; /** * serializeAws_restJson1TreeMapAggregatedFieldWells @@ -19642,6 +21972,8 @@ const se_TreeMapVisual = (input: TreeMapVisual, context: __SerdeContext): any => // se_TwitterParameters omitted. +// se_TypeParameters omitted. + // se_Typography omitted. // se_UIColorPalette omitted. @@ -19953,6 +22285,8 @@ const de_AggregationFunction = (output: any, context: __SerdeContext): Aggregati }) as any; }; +// de_AggregationFunctionParameters omitted. + /** * deserializeAws_restJson1AggregationSortConfiguration */ @@ -20085,6 +22419,8 @@ const de_ArcConfiguration = (output: any, context: __SerdeContext): ArcConfigura // de_AuroraPostgreSqlParameters omitted. +// de_AuthorSpecifiedAggregations omitted. + // de_AwsIotAnalyticsParameters omitted. /** @@ -20381,12 +22717,18 @@ const de_BoxPlotVisual = (output: any, context: __SerdeContext): BoxPlotVisual = // de_CategoryValueList omitted. +// de_CellValueSynonym omitted. + +// de_CellValueSynonyms omitted. + // de_ChartAxisLabelOptions omitted. // de_ClusterMarker omitted. // de_ClusterMarkerConfiguration omitted. +// de_CollectiveConstant omitted. + // de_ColorList omitted. /** @@ -20567,6 +22909,8 @@ const de_ComboChartVisual = (output: any, context: __SerdeContext): ComboChartVi }) as any; }; +// de_ComparativeOrder omitted. + // de_ComparisonConfiguration omitted. // de_ComparisonFormatConfiguration omitted. @@ -20646,6 +22990,8 @@ const de_ConditionalFormattingGradientColor = ( // de_CurrencyDisplayFormatConfiguration omitted. +// de_CustomActionColumnList omitted. + // de_CustomActionFilterOperation omitted. // de_CustomActionNavigationOperation omitted. @@ -20819,6 +23165,8 @@ const de_DashboardVersionSummaryList = (output: any, context: __SerdeContext): D // de_DashboardVisualPublishOptions omitted. +// de_DataAggregation omitted. + // de_DataBarsOptions omitted. // de_DatabricksParameters omitted. @@ -20873,10 +23221,11 @@ const de_DataSet = (output: any, context: __SerdeContext): DataSet => { CreatedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), DataSetId: __expectString, DataSetUsageConfiguration: _json, + DatasetParameters: (_: any) => de_DatasetParameterList(_, context), FieldFolders: _json, ImportMode: __expectString, LastUpdatedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LogicalTableMap: _json, + LogicalTableMap: (_: any) => de_LogicalTableMap(_, context), Name: __expectString, OutputColumns: _json, PhysicalTableMap: _json, @@ -20895,8 +23244,36 @@ const de_DataSet = (output: any, context: __SerdeContext): DataSet => { // de_DataSetIdentifierDeclarationList omitted. +// de_DatasetMetadata omitted. + +/** + * deserializeAws_restJson1DatasetParameter + */ +const de_DatasetParameter = (output: any, context: __SerdeContext): DatasetParameter => { + return take(output, { + DateTimeDatasetParameter: (_: any) => de_DateTimeDatasetParameter(_, context), + DecimalDatasetParameter: (_: any) => de_DecimalDatasetParameter(_, context), + IntegerDatasetParameter: _json, + StringDatasetParameter: _json, + }) as any; +}; + +/** + * deserializeAws_restJson1DatasetParameterList + */ +const de_DatasetParameterList = (output: any, context: __SerdeContext): DatasetParameter[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_DatasetParameter(entry, context); + }); + return retVal; +}; + // de_DataSetRefreshProperties omitted. +// de_Datasets omitted. + // de_DataSetSchema omitted. /** @@ -21001,6 +23378,43 @@ const de_DataSourceSummaryList = (output: any, context: __SerdeContext): DataSou // de_DateMeasureField omitted. +/** + * deserializeAws_restJson1DateTimeDatasetParameter + */ +const de_DateTimeDatasetParameter = (output: any, context: __SerdeContext): DateTimeDatasetParameter => { + return take(output, { + DefaultValues: (_: any) => de_DateTimeDatasetParameterDefaultValues(_, context), + Id: __expectString, + Name: __expectString, + TimeGranularity: __expectString, + ValueType: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1DateTimeDatasetParameterDefaultValues + */ +const de_DateTimeDatasetParameterDefaultValues = ( + output: any, + context: __SerdeContext +): DateTimeDatasetParameterDefaultValues => { + return take(output, { + StaticValues: (_: any) => de_DateTimeDatasetParameterValueList(_, context), + }) as any; +}; + +/** + * deserializeAws_restJson1DateTimeDatasetParameterValueList + */ +const de_DateTimeDatasetParameterValueList = (output: any, context: __SerdeContext): Date[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry))); + }); + return retVal; +}; + /** * deserializeAws_restJson1DateTimeDefaultValueList */ @@ -21042,6 +23456,7 @@ const de_DateTimeHierarchy = (output: any, context: __SerdeContext): DateTimeHie const de_DateTimeParameterDeclaration = (output: any, context: __SerdeContext): DateTimeParameterDeclaration => { return take(output, { DefaultValues: (_: any) => de_DateTimeDefaultValues(_, context), + MappedDataSetParameters: _json, Name: __expectString, TimeGranularity: __expectString, ValueWhenUnset: (_: any) => de_DateTimeValueWhenUnsetConfiguration(_, context), @@ -21063,6 +23478,42 @@ const de_DateTimeValueWhenUnsetConfiguration = ( }) as any; }; +/** + * deserializeAws_restJson1DecimalDatasetParameter + */ +const de_DecimalDatasetParameter = (output: any, context: __SerdeContext): DecimalDatasetParameter => { + return take(output, { + DefaultValues: (_: any) => de_DecimalDatasetParameterDefaultValues(_, context), + Id: __expectString, + Name: __expectString, + ValueType: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1DecimalDatasetParameterDefaultValues + */ +const de_DecimalDatasetParameterDefaultValues = ( + output: any, + context: __SerdeContext +): DecimalDatasetParameterDefaultValues => { + return take(output, { + StaticValues: (_: any) => de_DecimalDatasetParameterValueList(_, context), + }) as any; +}; + +/** + * deserializeAws_restJson1DecimalDatasetParameterValueList + */ +const de_DecimalDatasetParameterValueList = (output: any, context: __SerdeContext): number[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return __limitedParseDouble(entry) as any; + }); + return retVal; +}; + /** * deserializeAws_restJson1DecimalDefaultValueList */ @@ -21091,6 +23542,7 @@ const de_DecimalDefaultValues = (output: any, context: __SerdeContext): DecimalD const de_DecimalParameterDeclaration = (output: any, context: __SerdeContext): DecimalParameterDeclaration => { return take(output, { DefaultValues: (_: any) => de_DecimalDefaultValues(_, context), + MappedDataSetParameters: _json, Name: __expectString, ParameterValueType: __expectString, ValueWhenUnset: (_: any) => de_DecimalValueWhenUnsetConfiguration(_, context), @@ -21112,6 +23564,8 @@ const de_DecimalValueWhenUnsetConfiguration = ( }) as any; }; +// de_DefaultFormatting omitted. + // de_DefaultFreeFormLayoutConfiguration omitted. // de_DefaultGridLayoutConfiguration omitted. @@ -21134,6 +23588,7 @@ const de_DestinationParameterValueConfiguration = ( return take(output, { CustomValuesConfiguration: (_: any) => de_CustomValuesConfiguration(_, context), SelectAllValueOptions: __expectString, + SourceColumn: _json, SourceField: __expectString, SourceParameterName: __expectString, }) as any; @@ -21143,6 +23598,8 @@ const de_DestinationParameterValueConfiguration = ( // de_DimensionFieldList omitted. +// de_DisplayFormatOptions omitted. + // de_DonutCenterOptions omitted. // de_DonutOptions omitted. @@ -22183,6 +24640,12 @@ const de_InsightVisual = (output: any, context: __SerdeContext): InsightVisual = }) as any; }; +// de_IntegerDatasetParameter omitted. + +// de_IntegerDatasetParameterDefaultValues omitted. + +// de_IntegerDatasetParameterValueList omitted. + // de_IntegerDefaultValueList omitted. // de_IntegerDefaultValues omitted. @@ -22449,9 +24912,29 @@ const de_LineSeriesAxisDisplayOptions = (output: any, context: __SerdeContext): // de_LocalNavigationConfiguration omitted. -// de_LogicalTable omitted. +/** + * deserializeAws_restJson1LogicalTable + */ +const de_LogicalTable = (output: any, context: __SerdeContext): LogicalTable => { + return take(output, { + Alias: __expectString, + DataTransforms: (_: any) => de_TransformOperationList(_, context), + Source: _json, + }) as any; +}; -// de_LogicalTableMap omitted. +/** + * deserializeAws_restJson1LogicalTableMap + */ +const de_LogicalTableMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + acc[key] = de_LogicalTable(value, context); + return acc; + }, {}); +}; // de_LogicalTableSource omitted. @@ -22461,6 +24944,10 @@ const de_LineSeriesAxisDisplayOptions = (output: any, context: __SerdeContext): // de_ManifestFileLocation omitted. +// de_MappedDataSetParameter omitted. + +// de_MappedDataSetParameters omitted. + // de_MarginStyle omitted. // de_MariaDbParameters omitted. @@ -22527,14 +25014,38 @@ const de_MetricComparisonComputation = (output: any, context: __SerdeContext): M // de_MySqlParameters omitted. +// de_NamedEntityDefinition omitted. + +// de_NamedEntityDefinitionMetric omitted. + +// de_NamedEntityDefinitions omitted. + // de_NamespaceError omitted. // de_NamespaceInfoV2 omitted. // de_Namespaces omitted. +// de_NegativeFormat omitted. + // de_NegativeValueConfiguration omitted. +// de_NetworkInterface omitted. + +// de_NetworkInterfaceList omitted. + +/** + * deserializeAws_restJson1NewDefaultValues + */ +const de_NewDefaultValues = (output: any, context: __SerdeContext): NewDefaultValues => { + return take(output, { + DateTimeStaticValues: (_: any) => de_DateTimeDatasetParameterValueList(_, context), + DecimalStaticValues: (_: any) => de_DecimalDatasetParameterValueList(_, context), + IntegerStaticValues: _json, + StringStaticValues: _json, + }) as any; +}; + // de_NullValueFormatConfiguration omitted. // de_NumberDisplayFormatConfiguration omitted. @@ -22638,6 +25149,20 @@ const de_NumericRangeFilterValue = (output: any, context: __SerdeContext): Numer // de_OutputColumnList omitted. +/** + * deserializeAws_restJson1OverrideDatasetParameterOperation + */ +const de_OverrideDatasetParameterOperation = ( + output: any, + context: __SerdeContext +): OverrideDatasetParameterOperation => { + return take(output, { + NewDefaultValues: (_: any) => de_NewDefaultValues(_, context), + NewParameterName: __expectString, + ParameterName: __expectString, + }) as any; +}; + // de_PaginationConfiguration omitted. // de_PanelConfiguration omitted. @@ -23133,6 +25658,8 @@ const de_RadarChartVisual = (output: any, context: __SerdeContext): RadarChartVi }) as any; }; +// de_RangeConstant omitted. + // de_RangeEndsLabelType omitted. // de_RdsParameters omitted. @@ -23354,6 +25881,7 @@ const de_ScatterPlotCategoricallyAggregatedFieldWells = ( ): ScatterPlotCategoricallyAggregatedFieldWells => { return take(output, { Category: _json, + Label: _json, Size: (_: any) => de_MeasureFieldList(_, context), XAxis: (_: any) => de_MeasureFieldList(_, context), YAxis: (_: any) => de_MeasureFieldList(_, context), @@ -23396,6 +25924,8 @@ const de_ScatterPlotUnaggregatedFieldWells = ( context: __SerdeContext ): ScatterPlotUnaggregatedFieldWells => { return take(output, { + Category: _json, + Label: _json, Size: (_: any) => de_MeasureFieldList(_, context), XAxis: _json, YAxis: _json, @@ -23454,10 +25984,18 @@ const de_SectionBasedLayoutConfiguration = (output: any, context: __SerdeContext // de_SectionStyle omitted. +// de_SecurityGroupIdList omitted. + // de_SelectedFieldList omitted. // de_SelectedSheetsFilterScopeConfiguration omitted. +// de_SemanticEntityType omitted. + +// de_SemanticType omitted. + +// de_SensitiveStringList omitted. + // de_SeriesItem omitted. // de_SeriesItemList omitted. @@ -23581,18 +26119,28 @@ const de_SheetDefinitionList = (output: any, context: __SerdeContext): SheetDefi // de_SslProperties omitted. +// de_StringDatasetParameter omitted. + +// de_StringDatasetParameterDefaultValues omitted. + +// de_StringDatasetParameterValueList omitted. + // de_StringDefaultValueList omitted. // de_StringDefaultValues omitted. // de_StringFormatConfiguration omitted. +// de_StringList omitted. + // de_StringParameterDeclaration omitted. // de_StringValueWhenUnsetConfiguration omitted. // de_SubtotalOptions omitted. +// de_Synonyms omitted. + /** * deserializeAws_restJson1TableAggregatedFieldWells */ @@ -24119,6 +26667,84 @@ const de_TopBottomRankedComputation = (output: any, context: __SerdeContext): To }) as any; }; +// de_TopicCalculatedField omitted. + +// de_TopicCalculatedFields omitted. + +// de_TopicCategoryFilter omitted. + +// de_TopicCategoryFilterConstant omitted. + +// de_TopicColumn omitted. + +// de_TopicColumns omitted. + +// de_TopicDateRangeFilter omitted. + +// de_TopicDetails omitted. + +// de_TopicFilter omitted. + +// de_TopicFilters omitted. + +// de_TopicNamedEntities omitted. + +// de_TopicNamedEntity omitted. + +// de_TopicNumericEqualityFilter omitted. + +// de_TopicNumericRangeFilter omitted. + +// de_TopicRangeFilterConstant omitted. + +// de_TopicRefreshDetails omitted. + +/** + * deserializeAws_restJson1TopicRefreshSchedule + */ +const de_TopicRefreshSchedule = (output: any, context: __SerdeContext): TopicRefreshSchedule => { + return take(output, { + BasedOnSpiceSchedule: __expectBoolean, + IsEnabled: __expectBoolean, + RepeatAt: __expectString, + StartingAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + Timezone: __expectString, + TopicScheduleType: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1TopicRefreshScheduleSummaries + */ +const de_TopicRefreshScheduleSummaries = (output: any, context: __SerdeContext): TopicRefreshScheduleSummary[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_TopicRefreshScheduleSummary(entry, context); + }); + return retVal; +}; + +/** + * deserializeAws_restJson1TopicRefreshScheduleSummary + */ +const de_TopicRefreshScheduleSummary = (output: any, context: __SerdeContext): TopicRefreshScheduleSummary => { + return take(output, { + DatasetArn: __expectString, + DatasetId: __expectString, + DatasetName: __expectString, + RefreshSchedule: (_: any) => de_TopicRefreshSchedule(_, context), + }) as any; +}; + +// de_TopicRelativeDateFilter omitted. + +// de_TopicSingularFilterConstant omitted. + +// de_TopicSummaries omitted. + +// de_TopicSummary omitted. + /** * deserializeAws_restJson1TotalAggregationComputation */ @@ -24132,9 +26758,67 @@ const de_TotalAggregationComputation = (output: any, context: __SerdeContext): T // de_TotalOptions omitted. -// de_TransformOperation omitted. +/** + * deserializeAws_restJson1TransformOperation + */ +const de_TransformOperation = (output: any, context: __SerdeContext): TransformOperation => { + if (output.CastColumnTypeOperation != null) { + return { + CastColumnTypeOperation: _json(output.CastColumnTypeOperation), + }; + } + if (output.CreateColumnsOperation != null) { + return { + CreateColumnsOperation: _json(output.CreateColumnsOperation), + }; + } + if (output.FilterOperation != null) { + return { + FilterOperation: _json(output.FilterOperation), + }; + } + if (output.OverrideDatasetParameterOperation != null) { + return { + OverrideDatasetParameterOperation: de_OverrideDatasetParameterOperation( + output.OverrideDatasetParameterOperation, + context + ), + }; + } + if (output.ProjectOperation != null) { + return { + ProjectOperation: _json(output.ProjectOperation), + }; + } + if (output.RenameColumnOperation != null) { + return { + RenameColumnOperation: _json(output.RenameColumnOperation), + }; + } + if (output.TagColumnOperation != null) { + return { + TagColumnOperation: _json(output.TagColumnOperation), + }; + } + if (output.UntagColumnOperation != null) { + return { + UntagColumnOperation: _json(output.UntagColumnOperation), + }; + } + return { $unknown: Object.entries(output)[0] }; +}; -// de_TransformOperationList omitted. +/** + * deserializeAws_restJson1TransformOperationList + */ +const de_TransformOperationList = (output: any, context: __SerdeContext): TransformOperation[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_TransformOperation(__expectUnion(entry), context); + }); + return retVal; +}; /** * deserializeAws_restJson1TreeMapAggregatedFieldWells @@ -24215,6 +26899,8 @@ const de_TreeMapVisual = (output: any, context: __SerdeContext): TreeMapVisual = // de_TwitterParameters omitted. +// de_TypeParameters omitted. + // de_Typography omitted. // de_UIColorPalette omitted. @@ -24344,8 +27030,60 @@ const de_VisualList = (output: any, context: __SerdeContext): Visual[] => { // de_VisualTitleLabelOptions omitted. +/** + * deserializeAws_restJson1VPCConnection + */ +const de_VPCConnection = (output: any, context: __SerdeContext): VPCConnection => { + return take(output, { + Arn: __expectString, + AvailabilityStatus: __expectString, + CreatedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DnsResolvers: _json, + LastUpdatedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + Name: __expectString, + NetworkInterfaces: _json, + RoleArn: __expectString, + SecurityGroupIds: _json, + Status: __expectString, + VPCConnectionId: __expectString, + VPCId: __expectString, + }) as any; +}; + // de_VpcConnectionProperties omitted. +/** + * deserializeAws_restJson1VPCConnectionSummary + */ +const de_VPCConnectionSummary = (output: any, context: __SerdeContext): VPCConnectionSummary => { + return take(output, { + Arn: __expectString, + AvailabilityStatus: __expectString, + CreatedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + DnsResolvers: _json, + LastUpdatedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + Name: __expectString, + NetworkInterfaces: _json, + RoleArn: __expectString, + SecurityGroupIds: _json, + Status: __expectString, + VPCConnectionId: __expectString, + VPCId: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1VPCConnectionSummaryList + */ +const de_VPCConnectionSummaryList = (output: any, context: __SerdeContext): VPCConnectionSummary[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_VPCConnectionSummary(entry, context); + }); + return retVal; +}; + /** * deserializeAws_restJson1WaterfallChartAggregatedFieldWells */