diff --git a/clients/client-quicksight/.gitignore b/clients/client-quicksight/.gitignore new file mode 100644 index 000000000000..b41c05b597c4 --- /dev/null +++ b/clients/client-quicksight/.gitignore @@ -0,0 +1,14 @@ +/node_modules/ +/build/ +/coverage/ +/docs/ +/types/ +/dist/ +*.tsbuildinfo +*.tgz +*.log +package-lock.json + +*.d.ts +*.js +*.js.map diff --git a/clients/client-quicksight/.npmignore b/clients/client-quicksight/.npmignore new file mode 100644 index 000000000000..b7ff81137c4a --- /dev/null +++ b/clients/client-quicksight/.npmignore @@ -0,0 +1,4 @@ +/coverage/ +/docs/ +tsconfig.test.json +*.tsbuildinfo diff --git a/clients/client-quicksight/LICENSE b/clients/client-quicksight/LICENSE new file mode 100644 index 000000000000..b7d2463d8cc0 --- /dev/null +++ b/clients/client-quicksight/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/clients/client-quicksight/QuickSight.ts b/clients/client-quicksight/QuickSight.ts new file mode 100644 index 000000000000..3306993e94ee --- /dev/null +++ b/clients/client-quicksight/QuickSight.ts @@ -0,0 +1,2827 @@ +import { QuickSightClient } from "./QuickSightClient"; +import { + CancelIngestionCommand, + CancelIngestionCommandInput, + CancelIngestionCommandOutput +} from "./commands/CancelIngestionCommand"; +import { + CreateDashboardCommand, + CreateDashboardCommandInput, + CreateDashboardCommandOutput +} from "./commands/CreateDashboardCommand"; +import { + CreateDataSetCommand, + CreateDataSetCommandInput, + CreateDataSetCommandOutput +} from "./commands/CreateDataSetCommand"; +import { + CreateDataSourceCommand, + CreateDataSourceCommandInput, + CreateDataSourceCommandOutput +} from "./commands/CreateDataSourceCommand"; +import { + CreateGroupCommand, + CreateGroupCommandInput, + CreateGroupCommandOutput +} from "./commands/CreateGroupCommand"; +import { + CreateGroupMembershipCommand, + CreateGroupMembershipCommandInput, + CreateGroupMembershipCommandOutput +} from "./commands/CreateGroupMembershipCommand"; +import { + CreateIAMPolicyAssignmentCommand, + CreateIAMPolicyAssignmentCommandInput, + CreateIAMPolicyAssignmentCommandOutput +} from "./commands/CreateIAMPolicyAssignmentCommand"; +import { + CreateIngestionCommand, + CreateIngestionCommandInput, + CreateIngestionCommandOutput +} from "./commands/CreateIngestionCommand"; +import { + CreateTemplateAliasCommand, + CreateTemplateAliasCommandInput, + CreateTemplateAliasCommandOutput +} from "./commands/CreateTemplateAliasCommand"; +import { + CreateTemplateCommand, + CreateTemplateCommandInput, + CreateTemplateCommandOutput +} from "./commands/CreateTemplateCommand"; +import { + DeleteDashboardCommand, + DeleteDashboardCommandInput, + DeleteDashboardCommandOutput +} from "./commands/DeleteDashboardCommand"; +import { + DeleteDataSetCommand, + DeleteDataSetCommandInput, + DeleteDataSetCommandOutput +} from "./commands/DeleteDataSetCommand"; +import { + DeleteDataSourceCommand, + DeleteDataSourceCommandInput, + DeleteDataSourceCommandOutput +} from "./commands/DeleteDataSourceCommand"; +import { + DeleteGroupCommand, + DeleteGroupCommandInput, + DeleteGroupCommandOutput +} from "./commands/DeleteGroupCommand"; +import { + DeleteGroupMembershipCommand, + DeleteGroupMembershipCommandInput, + DeleteGroupMembershipCommandOutput +} from "./commands/DeleteGroupMembershipCommand"; +import { + DeleteIAMPolicyAssignmentCommand, + DeleteIAMPolicyAssignmentCommandInput, + DeleteIAMPolicyAssignmentCommandOutput +} from "./commands/DeleteIAMPolicyAssignmentCommand"; +import { + DeleteTemplateAliasCommand, + DeleteTemplateAliasCommandInput, + DeleteTemplateAliasCommandOutput +} from "./commands/DeleteTemplateAliasCommand"; +import { + DeleteTemplateCommand, + DeleteTemplateCommandInput, + DeleteTemplateCommandOutput +} from "./commands/DeleteTemplateCommand"; +import { + DeleteUserByPrincipalIdCommand, + DeleteUserByPrincipalIdCommandInput, + DeleteUserByPrincipalIdCommandOutput +} from "./commands/DeleteUserByPrincipalIdCommand"; +import { + DeleteUserCommand, + DeleteUserCommandInput, + DeleteUserCommandOutput +} from "./commands/DeleteUserCommand"; +import { + DescribeDashboardCommand, + DescribeDashboardCommandInput, + DescribeDashboardCommandOutput +} from "./commands/DescribeDashboardCommand"; +import { + DescribeDashboardPermissionsCommand, + DescribeDashboardPermissionsCommandInput, + DescribeDashboardPermissionsCommandOutput +} from "./commands/DescribeDashboardPermissionsCommand"; +import { + DescribeDataSetCommand, + DescribeDataSetCommandInput, + DescribeDataSetCommandOutput +} from "./commands/DescribeDataSetCommand"; +import { + DescribeDataSetPermissionsCommand, + DescribeDataSetPermissionsCommandInput, + DescribeDataSetPermissionsCommandOutput +} from "./commands/DescribeDataSetPermissionsCommand"; +import { + DescribeDataSourceCommand, + DescribeDataSourceCommandInput, + DescribeDataSourceCommandOutput +} from "./commands/DescribeDataSourceCommand"; +import { + DescribeDataSourcePermissionsCommand, + DescribeDataSourcePermissionsCommandInput, + DescribeDataSourcePermissionsCommandOutput +} from "./commands/DescribeDataSourcePermissionsCommand"; +import { + DescribeGroupCommand, + DescribeGroupCommandInput, + DescribeGroupCommandOutput +} from "./commands/DescribeGroupCommand"; +import { + DescribeIAMPolicyAssignmentCommand, + DescribeIAMPolicyAssignmentCommandInput, + DescribeIAMPolicyAssignmentCommandOutput +} from "./commands/DescribeIAMPolicyAssignmentCommand"; +import { + DescribeIngestionCommand, + DescribeIngestionCommandInput, + DescribeIngestionCommandOutput +} from "./commands/DescribeIngestionCommand"; +import { + DescribeTemplateAliasCommand, + DescribeTemplateAliasCommandInput, + DescribeTemplateAliasCommandOutput +} from "./commands/DescribeTemplateAliasCommand"; +import { + DescribeTemplateCommand, + DescribeTemplateCommandInput, + DescribeTemplateCommandOutput +} from "./commands/DescribeTemplateCommand"; +import { + DescribeTemplatePermissionsCommand, + DescribeTemplatePermissionsCommandInput, + DescribeTemplatePermissionsCommandOutput +} from "./commands/DescribeTemplatePermissionsCommand"; +import { + DescribeUserCommand, + DescribeUserCommandInput, + DescribeUserCommandOutput +} from "./commands/DescribeUserCommand"; +import { + GetDashboardEmbedUrlCommand, + GetDashboardEmbedUrlCommandInput, + GetDashboardEmbedUrlCommandOutput +} from "./commands/GetDashboardEmbedUrlCommand"; +import { + ListDashboardVersionsCommand, + ListDashboardVersionsCommandInput, + ListDashboardVersionsCommandOutput +} from "./commands/ListDashboardVersionsCommand"; +import { + ListDashboardsCommand, + ListDashboardsCommandInput, + ListDashboardsCommandOutput +} from "./commands/ListDashboardsCommand"; +import { + ListDataSetsCommand, + ListDataSetsCommandInput, + ListDataSetsCommandOutput +} from "./commands/ListDataSetsCommand"; +import { + ListDataSourcesCommand, + ListDataSourcesCommandInput, + ListDataSourcesCommandOutput +} from "./commands/ListDataSourcesCommand"; +import { + ListGroupMembershipsCommand, + ListGroupMembershipsCommandInput, + ListGroupMembershipsCommandOutput +} from "./commands/ListGroupMembershipsCommand"; +import { + ListGroupsCommand, + ListGroupsCommandInput, + ListGroupsCommandOutput +} from "./commands/ListGroupsCommand"; +import { + ListIAMPolicyAssignmentsCommand, + ListIAMPolicyAssignmentsCommandInput, + ListIAMPolicyAssignmentsCommandOutput +} from "./commands/ListIAMPolicyAssignmentsCommand"; +import { + ListIAMPolicyAssignmentsForUserCommand, + ListIAMPolicyAssignmentsForUserCommandInput, + ListIAMPolicyAssignmentsForUserCommandOutput +} from "./commands/ListIAMPolicyAssignmentsForUserCommand"; +import { + ListIngestionsCommand, + ListIngestionsCommandInput, + ListIngestionsCommandOutput +} from "./commands/ListIngestionsCommand"; +import { + ListTagsForResourceCommand, + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput +} from "./commands/ListTagsForResourceCommand"; +import { + ListTemplateAliasesCommand, + ListTemplateAliasesCommandInput, + ListTemplateAliasesCommandOutput +} from "./commands/ListTemplateAliasesCommand"; +import { + ListTemplateVersionsCommand, + ListTemplateVersionsCommandInput, + ListTemplateVersionsCommandOutput +} from "./commands/ListTemplateVersionsCommand"; +import { + ListTemplatesCommand, + ListTemplatesCommandInput, + ListTemplatesCommandOutput +} from "./commands/ListTemplatesCommand"; +import { + ListUserGroupsCommand, + ListUserGroupsCommandInput, + ListUserGroupsCommandOutput +} from "./commands/ListUserGroupsCommand"; +import { + ListUsersCommand, + ListUsersCommandInput, + ListUsersCommandOutput +} from "./commands/ListUsersCommand"; +import { + RegisterUserCommand, + RegisterUserCommandInput, + RegisterUserCommandOutput +} from "./commands/RegisterUserCommand"; +import { + TagResourceCommand, + TagResourceCommandInput, + TagResourceCommandOutput +} from "./commands/TagResourceCommand"; +import { + UntagResourceCommand, + UntagResourceCommandInput, + UntagResourceCommandOutput +} from "./commands/UntagResourceCommand"; +import { + UpdateDashboardCommand, + UpdateDashboardCommandInput, + UpdateDashboardCommandOutput +} from "./commands/UpdateDashboardCommand"; +import { + UpdateDashboardPermissionsCommand, + UpdateDashboardPermissionsCommandInput, + UpdateDashboardPermissionsCommandOutput +} from "./commands/UpdateDashboardPermissionsCommand"; +import { + UpdateDashboardPublishedVersionCommand, + UpdateDashboardPublishedVersionCommandInput, + UpdateDashboardPublishedVersionCommandOutput +} from "./commands/UpdateDashboardPublishedVersionCommand"; +import { + UpdateDataSetCommand, + UpdateDataSetCommandInput, + UpdateDataSetCommandOutput +} from "./commands/UpdateDataSetCommand"; +import { + UpdateDataSetPermissionsCommand, + UpdateDataSetPermissionsCommandInput, + UpdateDataSetPermissionsCommandOutput +} from "./commands/UpdateDataSetPermissionsCommand"; +import { + UpdateDataSourceCommand, + UpdateDataSourceCommandInput, + UpdateDataSourceCommandOutput +} from "./commands/UpdateDataSourceCommand"; +import { + UpdateDataSourcePermissionsCommand, + UpdateDataSourcePermissionsCommandInput, + UpdateDataSourcePermissionsCommandOutput +} from "./commands/UpdateDataSourcePermissionsCommand"; +import { + UpdateGroupCommand, + UpdateGroupCommandInput, + UpdateGroupCommandOutput +} from "./commands/UpdateGroupCommand"; +import { + UpdateIAMPolicyAssignmentCommand, + UpdateIAMPolicyAssignmentCommandInput, + UpdateIAMPolicyAssignmentCommandOutput +} from "./commands/UpdateIAMPolicyAssignmentCommand"; +import { + UpdateTemplateAliasCommand, + UpdateTemplateAliasCommandInput, + UpdateTemplateAliasCommandOutput +} from "./commands/UpdateTemplateAliasCommand"; +import { + UpdateTemplateCommand, + UpdateTemplateCommandInput, + UpdateTemplateCommandOutput +} from "./commands/UpdateTemplateCommand"; +import { + UpdateTemplatePermissionsCommand, + UpdateTemplatePermissionsCommandInput, + UpdateTemplatePermissionsCommandOutput +} from "./commands/UpdateTemplatePermissionsCommand"; +import { + UpdateUserCommand, + UpdateUserCommandInput, + UpdateUserCommandOutput +} from "./commands/UpdateUserCommand"; +import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; + +/** + * + * Amazon QuickSight API Reference + *

Amazon QuickSight is a fully managed, serverless business intelligence service for the AWS + * Cloud that makes it easy to extend data and insights to every user in your organization. + * This API reference contains documentation for a programming interface that you can use + * to manage Amazon QuickSight.

+ * + */ +export class QuickSight extends QuickSightClient { + /** + * + *

Deletes the data source permanently. This action breaks + * all the datasets that reference the deleted data source.

+ * + * + */ + public deleteDataSource( + args: DeleteDataSourceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteDataSource( + args: DeleteDataSourceCommandInput, + cb: (err: any, data?: DeleteDataSourceCommandOutput) => void + ): void; + public deleteDataSource( + args: DeleteDataSourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteDataSourceCommandOutput) => void + ): void; + public deleteDataSource( + args: DeleteDataSourceCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteDataSourceCommandOutput) => void), + cb?: (err: any, data?: DeleteDataSourceCommandOutput) => void + ): Promise | void { + const command = new DeleteDataSourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists all the versions of the templates in the Quicksight account.

+ * + */ + public listTemplateVersions( + args: ListTemplateVersionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listTemplateVersions( + args: ListTemplateVersionsCommandInput, + cb: (err: any, data?: ListTemplateVersionsCommandOutput) => void + ): void; + public listTemplateVersions( + args: ListTemplateVersionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListTemplateVersionsCommandOutput) => void + ): void; + public listTemplateVersions( + args: ListTemplateVersionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListTemplateVersionsCommandOutput) => void), + cb?: (err: any, data?: ListTemplateVersionsCommandOutput) => void + ): Promise | void { + const command = new ListTemplateVersionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Returns an Amazon QuickSight group's description and Amazon Resource Name (ARN).

+ * + */ + public describeGroup( + args: DescribeGroupCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeGroup( + args: DescribeGroupCommandInput, + cb: (err: any, data?: DescribeGroupCommandOutput) => void + ): void; + public describeGroup( + args: DescribeGroupCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeGroupCommandOutput) => void + ): void; + public describeGroup( + args: DescribeGroupCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeGroupCommandOutput) => void), + cb?: (err: any, data?: DescribeGroupCommandOutput) => void + ): Promise | void { + const command = new DescribeGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Removes a user from a group so that the user is no longer a member of the group.

+ * + */ + public deleteGroupMembership( + args: DeleteGroupMembershipCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteGroupMembership( + args: DeleteGroupMembershipCommandInput, + cb: (err: any, data?: DeleteGroupMembershipCommandOutput) => void + ): void; + public deleteGroupMembership( + args: DeleteGroupMembershipCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteGroupMembershipCommandOutput) => void + ): void; + public deleteGroupMembership( + args: DeleteGroupMembershipCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteGroupMembershipCommandOutput) => void), + cb?: (err: any, data?: DeleteGroupMembershipCommandOutput) => void + ): Promise | void { + const command = new DeleteGroupMembershipCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists the Amazon QuickSight groups that an Amazon QuickSight user is a member of.

+ * + */ + public listUserGroups( + args: ListUserGroupsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listUserGroups( + args: ListUserGroupsCommandInput, + cb: (err: any, data?: ListUserGroupsCommandOutput) => void + ): void; + public listUserGroups( + args: ListUserGroupsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListUserGroupsCommandOutput) => void + ): void; + public listUserGroups( + args: ListUserGroupsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListUserGroupsCommandOutput) => void), + cb?: (err: any, data?: ListUserGroupsCommandOutput) => void + ): Promise | void { + const command = new ListUserGroupsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists all the versions of the dashboards in the Quicksight subscription.

+ * + */ + public listDashboardVersions( + args: ListDashboardVersionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listDashboardVersions( + args: ListDashboardVersionsCommandInput, + cb: (err: any, data?: ListDashboardVersionsCommandOutput) => void + ): void; + public listDashboardVersions( + args: ListDashboardVersionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListDashboardVersionsCommandOutput) => void + ): void; + public listDashboardVersions( + args: ListDashboardVersionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListDashboardVersionsCommandOutput) => void), + cb?: (err: any, data?: ListDashboardVersionsCommandOutput) => void + ): Promise | void { + const command = new ListDashboardVersionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Generates a server-side embeddable URL and authorization code. Before this can work + * properly, first you need to configure the dashboards and user permissions. For more + * information, see the Amazon QuickSight User Guide section on Embedding + * Amazon QuickSight Dashboards or see the Amazon QuickSight API Reference section on + * Embedding + * Amazon QuickSight Dashboards + * .

+ *

Currently, you can use GetDashboardEmbedURL only from the server, not from + * the user’s browser.

+ * + */ + public getDashboardEmbedUrl( + args: GetDashboardEmbedUrlCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public getDashboardEmbedUrl( + args: GetDashboardEmbedUrlCommandInput, + cb: (err: any, data?: GetDashboardEmbedUrlCommandOutput) => void + ): void; + public getDashboardEmbedUrl( + args: GetDashboardEmbedUrlCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetDashboardEmbedUrlCommandOutput) => void + ): void; + public getDashboardEmbedUrl( + args: GetDashboardEmbedUrlCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: GetDashboardEmbedUrlCommandOutput) => void), + cb?: (err: any, data?: GetDashboardEmbedUrlCommandOutput) => void + ): Promise | void { + const command = new GetDashboardEmbedUrlCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes the template aliases of a template.

+ * + */ + public describeTemplateAlias( + args: DescribeTemplateAliasCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeTemplateAlias( + args: DescribeTemplateAliasCommandInput, + cb: (err: any, data?: DescribeTemplateAliasCommandOutput) => void + ): void; + public describeTemplateAlias( + args: DescribeTemplateAliasCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeTemplateAliasCommandOutput) => void + ): void; + public describeTemplateAlias( + args: DescribeTemplateAliasCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeTemplateAliasCommandOutput) => void), + cb?: (err: any, data?: DescribeTemplateAliasCommandOutput) => void + ): Promise | void { + const command = new DescribeTemplateAliasCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes a dataset.

+ * + * + */ + public describeDataSet( + args: DescribeDataSetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeDataSet( + args: DescribeDataSetCommandInput, + cb: (err: any, data?: DescribeDataSetCommandOutput) => void + ): void; + public describeDataSet( + args: DescribeDataSetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeDataSetCommandOutput) => void + ): void; + public describeDataSet( + args: DescribeDataSetCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeDataSetCommandOutput) => void), + cb?: (err: any, data?: DescribeDataSetCommandOutput) => void + ): Promise | void { + const command = new DescribeDataSetCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Returns information about a user, given the user name.

+ * + */ + public describeUser( + args: DescribeUserCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeUser( + args: DescribeUserCommandInput, + cb: (err: any, data?: DescribeUserCommandOutput) => void + ): void; + public describeUser( + args: DescribeUserCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeUserCommandOutput) => void + ): void; + public describeUser( + args: DescribeUserCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeUserCommandOutput) => void), + cb?: (err: any, data?: DescribeUserCommandOutput) => void + ): Promise | void { + const command = new DescribeUserCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Adds an Amazon QuickSight user to an Amazon QuickSight group.

+ * + */ + public createGroupMembership( + args: CreateGroupMembershipCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createGroupMembership( + args: CreateGroupMembershipCommandInput, + cb: (err: any, data?: CreateGroupMembershipCommandOutput) => void + ): void; + public createGroupMembership( + args: CreateGroupMembershipCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateGroupMembershipCommandOutput) => void + ): void; + public createGroupMembership( + args: CreateGroupMembershipCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CreateGroupMembershipCommandOutput) => void), + cb?: (err: any, data?: CreateGroupMembershipCommandOutput) => void + ): Promise | void { + const command = new CreateGroupMembershipCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates the permissions on a template.

+ * + */ + public updateTemplatePermissions( + args: UpdateTemplatePermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateTemplatePermissions( + args: UpdateTemplatePermissionsCommandInput, + cb: (err: any, data?: UpdateTemplatePermissionsCommandOutput) => void + ): void; + public updateTemplatePermissions( + args: UpdateTemplatePermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateTemplatePermissionsCommandOutput) => void + ): void; + public updateTemplatePermissions( + args: UpdateTemplatePermissionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateTemplatePermissionsCommandOutput) => void), + cb?: (err: any, data?: UpdateTemplatePermissionsCommandOutput) => void + ): Promise | void { + const command = new UpdateTemplatePermissionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Returns a list of all of the Amazon QuickSight users belonging to this account.

+ * + */ + public listUsers( + args: ListUsersCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listUsers( + args: ListUsersCommandInput, + cb: (err: any, data?: ListUsersCommandOutput) => void + ): void; + public listUsers( + args: ListUsersCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListUsersCommandOutput) => void + ): void; + public listUsers( + args: ListUsersCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListUsersCommandOutput) => void), + cb?: (err: any, data?: ListUsersCommandOutput) => void + ): Promise | void { + const command = new ListUsersCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes a template's metadata.

+ * + */ + public describeTemplate( + args: DescribeTemplateCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeTemplate( + args: DescribeTemplateCommandInput, + cb: (err: any, data?: DescribeTemplateCommandOutput) => void + ): void; + public describeTemplate( + args: DescribeTemplateCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeTemplateCommandOutput) => void + ): void; + public describeTemplate( + args: DescribeTemplateCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeTemplateCommandOutput) => void), + cb?: (err: any, data?: DescribeTemplateCommandOutput) => void + ): Promise | void { + const command = new DescribeTemplateCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Creates and starts a new SPICE ingestion on a dataset

+ * + *

Any ingestions operating on tagged datasets inherit the same tags automatically for use in + * access control. For an example, see How do I create an IAM policy to control access to Amazon EC2 resources using + * tags? in the AWS Knowledge Center. Tags are visible on the tagged dataset, but not on the ingestion resource.

+ * + */ + public createIngestion( + args: CreateIngestionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createIngestion( + args: CreateIngestionCommandInput, + cb: (err: any, data?: CreateIngestionCommandOutput) => void + ): void; + public createIngestion( + args: CreateIngestionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateIngestionCommandOutput) => void + ): void; + public createIngestion( + args: CreateIngestionCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CreateIngestionCommandOutput) => void), + cb?: (err: any, data?: CreateIngestionCommandOutput) => void + ): Promise | void { + const command = new CreateIngestionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists all user groups in Amazon QuickSight.

+ * + */ + public listGroups( + args: ListGroupsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listGroups( + args: ListGroupsCommandInput, + cb: (err: any, data?: ListGroupsCommandOutput) => void + ): void; + public listGroups( + args: ListGroupsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListGroupsCommandOutput) => void + ): void; + public listGroups( + args: ListGroupsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListGroupsCommandOutput) => void), + cb?: (err: any, data?: ListGroupsCommandOutput) => void + ): Promise | void { + const command = new ListGroupsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates a template from an existing QuickSight analysis.

+ * + */ + public updateTemplate( + args: UpdateTemplateCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateTemplate( + args: UpdateTemplateCommandInput, + cb: (err: any, data?: UpdateTemplateCommandOutput) => void + ): void; + public updateTemplate( + args: UpdateTemplateCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateTemplateCommandOutput) => void + ): void; + public updateTemplate( + args: UpdateTemplateCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateTemplateCommandOutput) => void), + cb?: (err: any, data?: UpdateTemplateCommandOutput) => void + ): Promise | void { + const command = new UpdateTemplateCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes a data source.

+ * + */ + public describeDataSource( + args: DescribeDataSourceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeDataSource( + args: DescribeDataSourceCommandInput, + cb: (err: any, data?: DescribeDataSourceCommandOutput) => void + ): void; + public describeDataSource( + args: DescribeDataSourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeDataSourceCommandOutput) => void + ): void; + public describeDataSource( + args: DescribeDataSourceCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeDataSourceCommandOutput) => void), + cb?: (err: any, data?: DescribeDataSourceCommandOutput) => void + ): Promise | void { + const command = new DescribeDataSourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Update template alias of given template.

+ * + */ + public deleteTemplateAlias( + args: DeleteTemplateAliasCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteTemplateAlias( + args: DeleteTemplateAliasCommandInput, + cb: (err: any, data?: DeleteTemplateAliasCommandOutput) => void + ): void; + public deleteTemplateAlias( + args: DeleteTemplateAliasCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteTemplateAliasCommandOutput) => void + ): void; + public deleteTemplateAlias( + args: DeleteTemplateAliasCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteTemplateAliasCommandOutput) => void), + cb?: (err: any, data?: DeleteTemplateAliasCommandOutput) => void + ): Promise | void { + const command = new DeleteTemplateAliasCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Deletes the Amazon QuickSight user that is associated with the identity of the AWS + * Identity and Access Management (IAM) user or role that's making the call. The IAM user + * isn't deleted as a result of this call.

+ * + */ + public deleteUser( + args: DeleteUserCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteUser( + args: DeleteUserCommandInput, + cb: (err: any, data?: DeleteUserCommandOutput) => void + ): void; + public deleteUser( + args: DeleteUserCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteUserCommandOutput) => void + ): void; + public deleteUser( + args: DeleteUserCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteUserCommandOutput) => void), + cb?: (err: any, data?: DeleteUserCommandOutput) => void + ): Promise | void { + const command = new DeleteUserCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Deletes a template.

+ * + */ + public deleteTemplate( + args: DeleteTemplateCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteTemplate( + args: DeleteTemplateCommandInput, + cb: (err: any, data?: DeleteTemplateCommandOutput) => void + ): void; + public deleteTemplate( + args: DeleteTemplateCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteTemplateCommandOutput) => void + ): void; + public deleteTemplate( + args: DeleteTemplateCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteTemplateCommandOutput) => void), + cb?: (err: any, data?: DeleteTemplateCommandOutput) => void + ): Promise | void { + const command = new DeleteTemplateCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Removes a user group from Amazon QuickSight.

+ * + */ + public deleteGroup( + args: DeleteGroupCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteGroup( + args: DeleteGroupCommandInput, + cb: (err: any, data?: DeleteGroupCommandOutput) => void + ): void; + public deleteGroup( + args: DeleteGroupCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteGroupCommandOutput) => void + ): void; + public deleteGroup( + args: DeleteGroupCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteGroupCommandOutput) => void), + cb?: (err: any, data?: DeleteGroupCommandOutput) => void + ): Promise | void { + const command = new DeleteGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates the published version of a dashboard.

+ * + */ + public updateDashboardPublishedVersion( + args: UpdateDashboardPublishedVersionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateDashboardPublishedVersion( + args: UpdateDashboardPublishedVersionCommandInput, + cb: (err: any, data?: UpdateDashboardPublishedVersionCommandOutput) => void + ): void; + public updateDashboardPublishedVersion( + args: UpdateDashboardPublishedVersionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDashboardPublishedVersionCommandOutput) => void + ): void; + public updateDashboardPublishedVersion( + args: UpdateDashboardPublishedVersionCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | (( + err: any, + data?: UpdateDashboardPublishedVersionCommandOutput + ) => void), + cb?: (err: any, data?: UpdateDashboardPublishedVersionCommandOutput) => void + ): Promise | void { + const command = new UpdateDashboardPublishedVersionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists member users in a group.

+ * + */ + public listGroupMemberships( + args: ListGroupMembershipsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listGroupMemberships( + args: ListGroupMembershipsCommandInput, + cb: (err: any, data?: ListGroupMembershipsCommandOutput) => void + ): void; + public listGroupMemberships( + args: ListGroupMembershipsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListGroupMembershipsCommandOutput) => void + ): void; + public listGroupMemberships( + args: ListGroupMembershipsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListGroupMembershipsCommandOutput) => void), + cb?: (err: any, data?: ListGroupMembershipsCommandOutput) => void + ): Promise | void { + const command = new ListGroupMembershipsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists all of the datasets belonging to this account in an AWS region.

+ *

The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*.

+ * + * + */ + public listDataSets( + args: ListDataSetsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listDataSets( + args: ListDataSetsCommandInput, + cb: (err: any, data?: ListDataSetsCommandOutput) => void + ): void; + public listDataSets( + args: ListDataSetsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListDataSetsCommandOutput) => void + ): void; + public listDataSets( + args: ListDataSetsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListDataSetsCommandOutput) => void), + cb?: (err: any, data?: ListDataSetsCommandOutput) => void + ): Promise | void { + const command = new ListDataSetsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Creates a template from an existing QuickSight analysis or template. The resulting template + * can be used to create a dashboard.

+ *

A template is an entity in QuickSight which encapsulates the metadata required to create an + * analysis that can be used to create dashboard. It adds a layer of abstraction by use + * placeholders to replace the dataset associated with the analysis. You can use templates to + * create dashboards by replacing dataset placeholders with datasets which follow the same + * schema that was used to create the source analysis and template.

+ * + */ + public createTemplate( + args: CreateTemplateCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createTemplate( + args: CreateTemplateCommandInput, + cb: (err: any, data?: CreateTemplateCommandOutput) => void + ): void; + public createTemplate( + args: CreateTemplateCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateTemplateCommandOutput) => void + ): void; + public createTemplate( + args: CreateTemplateCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CreateTemplateCommandOutput) => void), + cb?: (err: any, data?: CreateTemplateCommandOutput) => void + ): Promise | void { + const command = new CreateTemplateCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Creates a dashboard from a template. To first create a template, see the CreateTemplate API.

+ *

A dashboard is an entity in QuickSight which identifies + * Quicksight reports, created from analyses. QuickSight dashboards are sharable. With the + * right permissions, you can create scheduled email reports from them. The + * CreateDashboard, DescribeDashboard and + * ListDashboardsByUser APIs act on the dashboard entity. If you have the correct + * permissions, you can create a dashboard from a template that exists in a different AWS + * account.

+ * + */ + public createDashboard( + args: CreateDashboardCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createDashboard( + args: CreateDashboardCommandInput, + cb: (err: any, data?: CreateDashboardCommandOutput) => void + ): void; + public createDashboard( + args: CreateDashboardCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateDashboardCommandOutput) => void + ): void; + public createDashboard( + args: CreateDashboardCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CreateDashboardCommandOutput) => void), + cb?: (err: any, data?: CreateDashboardCommandOutput) => void + ): Promise | void { + const command = new CreateDashboardCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates the permissions to a data source.

+ * + * + */ + public updateDataSourcePermissions( + args: UpdateDataSourcePermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateDataSourcePermissions( + args: UpdateDataSourcePermissionsCommandInput, + cb: (err: any, data?: UpdateDataSourcePermissionsCommandOutput) => void + ): void; + public updateDataSourcePermissions( + args: UpdateDataSourcePermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDataSourcePermissionsCommandOutput) => void + ): void; + public updateDataSourcePermissions( + args: UpdateDataSourcePermissionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateDataSourcePermissionsCommandOutput) => void), + cb?: (err: any, data?: UpdateDataSourcePermissionsCommandOutput) => void + ): Promise | void { + const command = new UpdateDataSourcePermissionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists all the templates in the QuickSight account.

+ * + */ + public listTemplates( + args: ListTemplatesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listTemplates( + args: ListTemplatesCommandInput, + cb: (err: any, data?: ListTemplatesCommandOutput) => void + ): void; + public listTemplates( + args: ListTemplatesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListTemplatesCommandOutput) => void + ): void; + public listTemplates( + args: ListTemplatesCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListTemplatesCommandOutput) => void), + cb?: (err: any, data?: ListTemplatesCommandOutput) => void + ): Promise | void { + const command = new ListTemplatesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates read and write permissions on a dashboard.

+ * + */ + public updateDashboardPermissions( + args: UpdateDashboardPermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateDashboardPermissions( + args: UpdateDashboardPermissionsCommandInput, + cb: (err: any, data?: UpdateDashboardPermissionsCommandOutput) => void + ): void; + public updateDashboardPermissions( + args: UpdateDashboardPermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDashboardPermissionsCommandOutput) => void + ): void; + public updateDashboardPermissions( + args: UpdateDashboardPermissionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateDashboardPermissionsCommandOutput) => void), + cb?: (err: any, data?: UpdateDashboardPermissionsCommandOutput) => void + ): Promise | void { + const command = new UpdateDashboardPermissionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Deletes a dashboard.

+ * + */ + public deleteDashboard( + args: DeleteDashboardCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteDashboard( + args: DeleteDashboardCommandInput, + cb: (err: any, data?: DeleteDashboardCommandOutput) => void + ): void; + public deleteDashboard( + args: DeleteDashboardCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteDashboardCommandOutput) => void + ): void; + public deleteDashboard( + args: DeleteDashboardCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteDashboardCommandOutput) => void), + cb?: (err: any, data?: DeleteDashboardCommandOutput) => void + ): Promise | void { + const command = new DeleteDashboardCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes a SPICE ingestion.

+ * + * + */ + public describeIngestion( + args: DescribeIngestionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeIngestion( + args: DescribeIngestionCommandInput, + cb: (err: any, data?: DescribeIngestionCommandOutput) => void + ): void; + public describeIngestion( + args: DescribeIngestionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeIngestionCommandOutput) => void + ): void; + public describeIngestion( + args: DescribeIngestionCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeIngestionCommandOutput) => void), + cb?: (err: any, data?: DescribeIngestionCommandOutput) => void + ): Promise | void { + const command = new DescribeIngestionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates an Amazon QuickSight user.

+ * + */ + public updateUser( + args: UpdateUserCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateUser( + args: UpdateUserCommandInput, + cb: (err: any, data?: UpdateUserCommandOutput) => void + ): void; + public updateUser( + args: UpdateUserCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateUserCommandOutput) => void + ): void; + public updateUser( + args: UpdateUserCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateUserCommandOutput) => void), + cb?: (err: any, data?: UpdateUserCommandOutput) => void + ): Promise | void { + const command = new UpdateUserCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes read and write permissions on a template.

+ * + */ + public describeTemplatePermissions( + args: DescribeTemplatePermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeTemplatePermissions( + args: DescribeTemplatePermissionsCommandInput, + cb: (err: any, data?: DescribeTemplatePermissionsCommandOutput) => void + ): void; + public describeTemplatePermissions( + args: DescribeTemplatePermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeTemplatePermissionsCommandOutput) => void + ): void; + public describeTemplatePermissions( + args: DescribeTemplatePermissionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeTemplatePermissionsCommandOutput) => void), + cb?: (err: any, data?: DescribeTemplatePermissionsCommandOutput) => void + ): Promise | void { + const command = new DescribeTemplatePermissionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Creates an Amazon QuickSight user, whose identity is associated with the AWS Identity + * and Access Management (IAM) identity or role specified in the request.

+ * + */ + public registerUser( + args: RegisterUserCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public registerUser( + args: RegisterUserCommandInput, + cb: (err: any, data?: RegisterUserCommandOutput) => void + ): void; + public registerUser( + args: RegisterUserCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: RegisterUserCommandOutput) => void + ): void; + public registerUser( + args: RegisterUserCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: RegisterUserCommandOutput) => void), + cb?: (err: any, data?: RegisterUserCommandOutput) => void + ): Promise | void { + const command = new RegisterUserCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Removes a tag or tags from a resource.

+ * + */ + public untagResource( + args: UntagResourceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public untagResource( + args: UntagResourceCommandInput, + cb: (err: any, data?: UntagResourceCommandOutput) => void + ): void; + public untagResource( + args: UntagResourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UntagResourceCommandOutput) => void + ): void; + public untagResource( + args: UntagResourceCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UntagResourceCommandOutput) => void), + cb?: (err: any, data?: UntagResourceCommandOutput) => void + ): Promise | void { + const command = new UntagResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Deletes a user identified by its principal ID.

+ * + */ + public deleteUserByPrincipalId( + args: DeleteUserByPrincipalIdCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteUserByPrincipalId( + args: DeleteUserByPrincipalIdCommandInput, + cb: (err: any, data?: DeleteUserByPrincipalIdCommandOutput) => void + ): void; + public deleteUserByPrincipalId( + args: DeleteUserByPrincipalIdCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteUserByPrincipalIdCommandOutput) => void + ): void; + public deleteUserByPrincipalId( + args: DeleteUserByPrincipalIdCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteUserByPrincipalIdCommandOutput) => void), + cb?: (err: any, data?: DeleteUserByPrincipalIdCommandOutput) => void + ): Promise | void { + const command = new DeleteUserByPrincipalIdCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Assigns one or more tags (key-value pairs) to the specified QuickSight resource.

+ *

Tags can help you organize and categorize your resources. You can also use them to + * scope user permissions, by granting a user permission to access or change only resources + * with certain tag values. You can use the TagResource operation with a + * resource that already has tags. If you specify a new tag key for the resource, this tag + * is appended to the list of tags associated with the resource. If you specify a tag key + * 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. QuickSight supports tagging on data + * set, data source, dashboard, and template.

+ *

Tagging for QuickSight works in a similar way to tagging for other AWS services, except for + * the following:

+ *
    + *
  • + *

    You can't use tags to track AWS costs for QuickSight. This restriction is because QuickSight + * costs are based on users and SPICE capacity, which aren't taggable + * resources.

    + *
  • + *
  • + *

    QuickSight doesn't currently support the Tag Editor for AWS Resource Groups.

    + *
  • + *
+ * + */ + public tagResource( + args: TagResourceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public tagResource( + args: TagResourceCommandInput, + cb: (err: any, data?: TagResourceCommandOutput) => void + ): void; + public tagResource( + args: TagResourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: TagResourceCommandOutput) => void + ): void; + public tagResource( + args: TagResourceCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: TagResourceCommandOutput) => void), + cb?: (err: any, data?: TagResourceCommandOutput) => void + ): Promise | void { + const command = new TagResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Changes a group description.

+ * + */ + public updateGroup( + args: UpdateGroupCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateGroup( + args: UpdateGroupCommandInput, + cb: (err: any, data?: UpdateGroupCommandOutput) => void + ): void; + public updateGroup( + args: UpdateGroupCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateGroupCommandOutput) => void + ): void; + public updateGroup( + args: UpdateGroupCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateGroupCommandOutput) => void), + cb?: (err: any, data?: UpdateGroupCommandOutput) => void + ): Promise | void { + const command = new UpdateGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes the resource permissions for a data source.

+ * + * + */ + public describeDataSourcePermissions( + args: DescribeDataSourcePermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeDataSourcePermissions( + args: DescribeDataSourcePermissionsCommandInput, + cb: (err: any, data?: DescribeDataSourcePermissionsCommandOutput) => void + ): void; + public describeDataSourcePermissions( + args: DescribeDataSourcePermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeDataSourcePermissionsCommandOutput) => void + ): void; + public describeDataSourcePermissions( + args: DescribeDataSourcePermissionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeDataSourcePermissionsCommandOutput) => void), + cb?: (err: any, data?: DescribeDataSourcePermissionsCommandOutput) => void + ): Promise | void { + const command = new DescribeDataSourcePermissionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Creates a data source.

+ * + * + */ + public createDataSource( + args: CreateDataSourceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createDataSource( + args: CreateDataSourceCommandInput, + cb: (err: any, data?: CreateDataSourceCommandOutput) => void + ): void; + public createDataSource( + args: CreateDataSourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateDataSourceCommandOutput) => void + ): void; + public createDataSource( + args: CreateDataSourceCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CreateDataSourceCommandOutput) => void), + cb?: (err: any, data?: CreateDataSourceCommandOutput) => void + ): Promise | void { + const command = new CreateDataSourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Creates a dataset.

+ * + * + */ + public createDataSet( + args: CreateDataSetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createDataSet( + args: CreateDataSetCommandInput, + cb: (err: any, data?: CreateDataSetCommandOutput) => void + ): void; + public createDataSet( + args: CreateDataSetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateDataSetCommandOutput) => void + ): void; + public createDataSet( + args: CreateDataSetCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CreateDataSetCommandOutput) => void), + cb?: (err: any, data?: CreateDataSetCommandOutput) => void + ): Promise | void { + const command = new CreateDataSetCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists the history of SPICE ingestions for a dataset.

+ * + * + */ + public listIngestions( + args: ListIngestionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listIngestions( + args: ListIngestionsCommandInput, + cb: (err: any, data?: ListIngestionsCommandOutput) => void + ): void; + public listIngestions( + args: ListIngestionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListIngestionsCommandOutput) => void + ): void; + public listIngestions( + args: ListIngestionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListIngestionsCommandOutput) => void), + cb?: (err: any, data?: ListIngestionsCommandOutput) => void + ): Promise | void { + const command = new ListIngestionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates the permissions on a dataset.

+ *

The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/data-set-id.

+ * + * + */ + public updateDataSetPermissions( + args: UpdateDataSetPermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateDataSetPermissions( + args: UpdateDataSetPermissionsCommandInput, + cb: (err: any, data?: UpdateDataSetPermissionsCommandOutput) => void + ): void; + public updateDataSetPermissions( + args: UpdateDataSetPermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDataSetPermissionsCommandOutput) => void + ): void; + public updateDataSetPermissions( + args: UpdateDataSetPermissionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateDataSetPermissionsCommandOutput) => void), + cb?: (err: any, data?: UpdateDataSetPermissionsCommandOutput) => void + ): Promise | void { + const command = new UpdateDataSetPermissionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes read and write permissions on a dashboard.

+ * + */ + public describeDashboardPermissions( + args: DescribeDashboardPermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeDashboardPermissions( + args: DescribeDashboardPermissionsCommandInput, + cb: (err: any, data?: DescribeDashboardPermissionsCommandOutput) => void + ): void; + public describeDashboardPermissions( + args: DescribeDashboardPermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeDashboardPermissionsCommandOutput) => void + ): void; + public describeDashboardPermissions( + args: DescribeDashboardPermissionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeDashboardPermissionsCommandOutput) => void), + cb?: (err: any, data?: DescribeDashboardPermissionsCommandOutput) => void + ): Promise | void { + const command = new DescribeDashboardPermissionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Cancels an ongoing ingestion of data into SPICE.

+ * + * + */ + public cancelIngestion( + args: CancelIngestionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public cancelIngestion( + args: CancelIngestionCommandInput, + cb: (err: any, data?: CancelIngestionCommandOutput) => void + ): void; + public cancelIngestion( + args: CancelIngestionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CancelIngestionCommandOutput) => void + ): void; + public cancelIngestion( + args: CancelIngestionCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CancelIngestionCommandOutput) => void), + cb?: (err: any, data?: CancelIngestionCommandOutput) => void + ): Promise | void { + const command = new CancelIngestionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates an existing assignment. This operation updates only the optional parameter or parameters that are specified in the request.

+ * + */ + public updateIAMPolicyAssignment( + args: UpdateIAMPolicyAssignmentCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateIAMPolicyAssignment( + args: UpdateIAMPolicyAssignmentCommandInput, + cb: (err: any, data?: UpdateIAMPolicyAssignmentCommandOutput) => void + ): void; + public updateIAMPolicyAssignment( + args: UpdateIAMPolicyAssignmentCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateIAMPolicyAssignmentCommandOutput) => void + ): void; + public updateIAMPolicyAssignment( + args: UpdateIAMPolicyAssignmentCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateIAMPolicyAssignmentCommandOutput) => void), + cb?: (err: any, data?: UpdateIAMPolicyAssignmentCommandOutput) => void + ): Promise | void { + const command = new UpdateIAMPolicyAssignmentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Creates an assignment with one specified IAM policy Amazon Resource Name (ARN) and will assigned to specified groups or users of QuickSight. + * Users and groups need to be in the same namespace. + *

+ * + */ + public createIAMPolicyAssignment( + args: CreateIAMPolicyAssignmentCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createIAMPolicyAssignment( + args: CreateIAMPolicyAssignmentCommandInput, + cb: (err: any, data?: CreateIAMPolicyAssignmentCommandOutput) => void + ): void; + public createIAMPolicyAssignment( + args: CreateIAMPolicyAssignmentCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateIAMPolicyAssignmentCommandOutput) => void + ): void; + public createIAMPolicyAssignment( + args: CreateIAMPolicyAssignmentCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CreateIAMPolicyAssignmentCommandOutput) => void), + cb?: (err: any, data?: CreateIAMPolicyAssignmentCommandOutput) => void + ): Promise | void { + const command = new CreateIAMPolicyAssignmentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates a dashboard in the AWS account.

+ * + */ + public updateDashboard( + args: UpdateDashboardCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateDashboard( + args: UpdateDashboardCommandInput, + cb: (err: any, data?: UpdateDashboardCommandOutput) => void + ): void; + public updateDashboard( + args: UpdateDashboardCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDashboardCommandOutput) => void + ): void; + public updateDashboard( + args: UpdateDashboardCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateDashboardCommandOutput) => void), + cb?: (err: any, data?: UpdateDashboardCommandOutput) => void + ): Promise | void { + const command = new UpdateDashboardCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Creates an Amazon QuickSight group.

+ *

The permissions resource is + * arn:aws:quicksight:us-east-1::group/default/ + * .

+ *

The response is a group object.

+ * + */ + public createGroup( + args: CreateGroupCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createGroup( + args: CreateGroupCommandInput, + cb: (err: any, data?: CreateGroupCommandOutput) => void + ): void; + public createGroup( + args: CreateGroupCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateGroupCommandOutput) => void + ): void; + public createGroup( + args: CreateGroupCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CreateGroupCommandOutput) => void), + cb?: (err: any, data?: CreateGroupCommandOutput) => void + ): Promise | void { + const command = new CreateGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates a data source.

+ * + * + */ + public updateDataSource( + args: UpdateDataSourceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateDataSource( + args: UpdateDataSourceCommandInput, + cb: (err: any, data?: UpdateDataSourceCommandOutput) => void + ): void; + public updateDataSource( + args: UpdateDataSourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDataSourceCommandOutput) => void + ): void; + public updateDataSource( + args: UpdateDataSourceCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateDataSourceCommandOutput) => void), + cb?: (err: any, data?: UpdateDataSourceCommandOutput) => void + ): Promise | void { + const command = new UpdateDataSourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

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

+ * + */ + public listIAMPolicyAssignmentsForUser( + args: ListIAMPolicyAssignmentsForUserCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listIAMPolicyAssignmentsForUser( + args: ListIAMPolicyAssignmentsForUserCommandInput, + cb: (err: any, data?: ListIAMPolicyAssignmentsForUserCommandOutput) => void + ): void; + public listIAMPolicyAssignmentsForUser( + args: ListIAMPolicyAssignmentsForUserCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListIAMPolicyAssignmentsForUserCommandOutput) => void + ): void; + public listIAMPolicyAssignmentsForUser( + args: ListIAMPolicyAssignmentsForUserCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | (( + err: any, + data?: ListIAMPolicyAssignmentsForUserCommandOutput + ) => void), + cb?: (err: any, data?: ListIAMPolicyAssignmentsForUserCommandOutput) => void + ): Promise | void { + const command = new ListIAMPolicyAssignmentsForUserCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists dashboards in the AWS account.

+ * + */ + public listDashboards( + args: ListDashboardsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listDashboards( + args: ListDashboardsCommandInput, + cb: (err: any, data?: ListDashboardsCommandOutput) => void + ): void; + public listDashboards( + args: ListDashboardsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListDashboardsCommandOutput) => void + ): void; + public listDashboards( + args: ListDashboardsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListDashboardsCommandOutput) => void), + cb?: (err: any, data?: ListDashboardsCommandOutput) => void + ): Promise | void { + const command = new ListDashboardsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes an existing IAMPolicy Assignment by specified assignment name.

+ * + */ + public describeIAMPolicyAssignment( + args: DescribeIAMPolicyAssignmentCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeIAMPolicyAssignment( + args: DescribeIAMPolicyAssignmentCommandInput, + cb: (err: any, data?: DescribeIAMPolicyAssignmentCommandOutput) => void + ): void; + public describeIAMPolicyAssignment( + args: DescribeIAMPolicyAssignmentCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeIAMPolicyAssignmentCommandOutput) => void + ): void; + public describeIAMPolicyAssignment( + args: DescribeIAMPolicyAssignmentCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeIAMPolicyAssignmentCommandOutput) => void), + cb?: (err: any, data?: DescribeIAMPolicyAssignmentCommandOutput) => void + ): Promise | void { + const command = new DescribeIAMPolicyAssignmentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Provides a summary for a dashboard.

+ * + */ + public describeDashboard( + args: DescribeDashboardCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeDashboard( + args: DescribeDashboardCommandInput, + cb: (err: any, data?: DescribeDashboardCommandOutput) => void + ): void; + public describeDashboard( + args: DescribeDashboardCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeDashboardCommandOutput) => void + ): void; + public describeDashboard( + args: DescribeDashboardCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeDashboardCommandOutput) => void), + cb?: (err: any, data?: DescribeDashboardCommandOutput) => void + ): Promise | void { + const command = new DescribeDashboardCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists all the aliases of a template.

+ * + * + */ + public listTemplateAliases( + args: ListTemplateAliasesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listTemplateAliases( + args: ListTemplateAliasesCommandInput, + cb: (err: any, data?: ListTemplateAliasesCommandOutput) => void + ): void; + public listTemplateAliases( + args: ListTemplateAliasesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListTemplateAliasesCommandOutput) => void + ): void; + public listTemplateAliases( + args: ListTemplateAliasesCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListTemplateAliasesCommandOutput) => void), + cb?: (err: any, data?: ListTemplateAliasesCommandOutput) => void + ): Promise | void { + const command = new ListTemplateAliasesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists data sources in current AWS Region that belong to this AWS account.

+ * + * + */ + public listDataSources( + args: ListDataSourcesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listDataSources( + args: ListDataSourcesCommandInput, + cb: (err: any, data?: ListDataSourcesCommandOutput) => void + ): void; + public listDataSources( + args: ListDataSourcesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListDataSourcesCommandOutput) => void + ): void; + public listDataSources( + args: ListDataSourcesCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListDataSourcesCommandOutput) => void), + cb?: (err: any, data?: ListDataSourcesCommandOutput) => void + ): Promise | void { + const command = new ListDataSourcesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates a dataset.

+ * + * + */ + public updateDataSet( + args: UpdateDataSetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateDataSet( + args: UpdateDataSetCommandInput, + cb: (err: any, data?: UpdateDataSetCommandOutput) => void + ): void; + public updateDataSet( + args: UpdateDataSetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateDataSetCommandOutput) => void + ): void; + public updateDataSet( + args: UpdateDataSetCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateDataSetCommandOutput) => void), + cb?: (err: any, data?: UpdateDataSetCommandOutput) => void + ): Promise | void { + const command = new UpdateDataSetCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists the tags assigned to a resource.

+ * + */ + public listTagsForResource( + args: ListTagsForResourceCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listTagsForResource( + args: ListTagsForResourceCommandInput, + cb: (err: any, data?: ListTagsForResourceCommandOutput) => void + ): void; + public listTagsForResource( + args: ListTagsForResourceCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListTagsForResourceCommandOutput) => void + ): void; + public listTagsForResource( + args: ListTagsForResourceCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListTagsForResourceCommandOutput) => void), + cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void + ): Promise | void { + const command = new ListTagsForResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Deletes a dataset.

+ * + * + */ + public deleteDataSet( + args: DeleteDataSetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteDataSet( + args: DeleteDataSetCommandInput, + cb: (err: any, data?: DeleteDataSetCommandOutput) => void + ): void; + public deleteDataSet( + args: DeleteDataSetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteDataSetCommandOutput) => void + ): void; + public deleteDataSet( + args: DeleteDataSetCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteDataSetCommandOutput) => void), + cb?: (err: any, data?: DeleteDataSetCommandOutput) => void + ): Promise | void { + const command = new DeleteDataSetCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Deletes an existing assignment.

+ * + */ + public deleteIAMPolicyAssignment( + args: DeleteIAMPolicyAssignmentCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public deleteIAMPolicyAssignment( + args: DeleteIAMPolicyAssignmentCommandInput, + cb: (err: any, data?: DeleteIAMPolicyAssignmentCommandOutput) => void + ): void; + public deleteIAMPolicyAssignment( + args: DeleteIAMPolicyAssignmentCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteIAMPolicyAssignmentCommandOutput) => void + ): void; + public deleteIAMPolicyAssignment( + args: DeleteIAMPolicyAssignmentCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DeleteIAMPolicyAssignmentCommandOutput) => void), + cb?: (err: any, data?: DeleteIAMPolicyAssignmentCommandOutput) => void + ): Promise | void { + const command = new DeleteIAMPolicyAssignmentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Lists assignments in current QuickSight account.

+ * + */ + public listIAMPolicyAssignments( + args: ListIAMPolicyAssignmentsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public listIAMPolicyAssignments( + args: ListIAMPolicyAssignmentsCommandInput, + cb: (err: any, data?: ListIAMPolicyAssignmentsCommandOutput) => void + ): void; + public listIAMPolicyAssignments( + args: ListIAMPolicyAssignmentsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListIAMPolicyAssignmentsCommandOutput) => void + ): void; + public listIAMPolicyAssignments( + args: ListIAMPolicyAssignmentsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: ListIAMPolicyAssignmentsCommandOutput) => void), + cb?: (err: any, data?: ListIAMPolicyAssignmentsCommandOutput) => void + ): Promise | void { + const command = new ListIAMPolicyAssignmentsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Creates a template alias for a template.

+ * + */ + public createTemplateAlias( + args: CreateTemplateAliasCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public createTemplateAlias( + args: CreateTemplateAliasCommandInput, + cb: (err: any, data?: CreateTemplateAliasCommandOutput) => void + ): void; + public createTemplateAlias( + args: CreateTemplateAliasCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateTemplateAliasCommandOutput) => void + ): void; + public createTemplateAlias( + args: CreateTemplateAliasCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: CreateTemplateAliasCommandOutput) => void), + cb?: (err: any, data?: CreateTemplateAliasCommandOutput) => void + ): Promise | void { + const command = new CreateTemplateAliasCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Updates the template alias of a template.

+ * + */ + public updateTemplateAlias( + args: UpdateTemplateAliasCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public updateTemplateAlias( + args: UpdateTemplateAliasCommandInput, + cb: (err: any, data?: UpdateTemplateAliasCommandOutput) => void + ): void; + public updateTemplateAlias( + args: UpdateTemplateAliasCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateTemplateAliasCommandOutput) => void + ): void; + public updateTemplateAlias( + args: UpdateTemplateAliasCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: UpdateTemplateAliasCommandOutput) => void), + cb?: (err: any, data?: UpdateTemplateAliasCommandOutput) => void + ): Promise | void { + const command = new UpdateTemplateAliasCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + + /** + * + *

Describes the permissions on a dataset.

+ *

The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/data-set-id.

+ * + * + */ + public describeDataSetPermissions( + args: DescribeDataSetPermissionsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + public describeDataSetPermissions( + args: DescribeDataSetPermissionsCommandInput, + cb: (err: any, data?: DescribeDataSetPermissionsCommandOutput) => void + ): void; + public describeDataSetPermissions( + args: DescribeDataSetPermissionsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DescribeDataSetPermissionsCommandOutput) => void + ): void; + public describeDataSetPermissions( + args: DescribeDataSetPermissionsCommandInput, + optionsOrCb?: + | __HttpHandlerOptions + | ((err: any, data?: DescribeDataSetPermissionsCommandOutput) => void), + cb?: (err: any, data?: DescribeDataSetPermissionsCommandOutput) => void + ): Promise | void { + const command = new DescribeDataSetPermissionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } +} diff --git a/clients/client-quicksight/QuickSightClient.ts b/clients/client-quicksight/QuickSightClient.ts new file mode 100644 index 000000000000..9ae8ee143227 --- /dev/null +++ b/clients/client-quicksight/QuickSightClient.ts @@ -0,0 +1,458 @@ +import { + CancelIngestionRequest, + CancelIngestionResponse, + CreateDashboardRequest, + CreateDashboardResponse, + CreateDataSetRequest, + CreateDataSetResponse, + CreateDataSourceRequest, + CreateDataSourceResponse, + CreateGroupMembershipRequest, + CreateGroupMembershipResponse, + CreateGroupRequest, + CreateGroupResponse, + CreateIAMPolicyAssignmentRequest, + CreateIAMPolicyAssignmentResponse, + CreateIngestionRequest, + CreateIngestionResponse, + CreateTemplateAliasRequest, + CreateTemplateAliasResponse, + CreateTemplateRequest, + CreateTemplateResponse, + DeleteDashboardRequest, + DeleteDashboardResponse, + DeleteDataSetRequest, + DeleteDataSetResponse, + DeleteDataSourceRequest, + DeleteDataSourceResponse, + DeleteGroupMembershipRequest, + DeleteGroupMembershipResponse, + DeleteGroupRequest, + DeleteGroupResponse, + DeleteIAMPolicyAssignmentRequest, + DeleteIAMPolicyAssignmentResponse, + DeleteTemplateAliasRequest, + DeleteTemplateAliasResponse, + DeleteTemplateRequest, + DeleteTemplateResponse, + DeleteUserByPrincipalIdRequest, + DeleteUserByPrincipalIdResponse, + DeleteUserRequest, + DeleteUserResponse, + DescribeDashboardPermissionsRequest, + DescribeDashboardPermissionsResponse, + DescribeDashboardRequest, + DescribeDashboardResponse, + DescribeDataSetPermissionsRequest, + DescribeDataSetPermissionsResponse, + DescribeDataSetRequest, + DescribeDataSetResponse, + DescribeDataSourcePermissionsRequest, + DescribeDataSourcePermissionsResponse, + DescribeDataSourceRequest, + DescribeDataSourceResponse, + DescribeGroupRequest, + DescribeGroupResponse, + DescribeIAMPolicyAssignmentRequest, + DescribeIAMPolicyAssignmentResponse, + DescribeIngestionRequest, + DescribeIngestionResponse, + DescribeTemplateAliasRequest, + DescribeTemplateAliasResponse, + DescribeTemplatePermissionsRequest, + DescribeTemplatePermissionsResponse, + DescribeTemplateRequest, + DescribeTemplateResponse, + DescribeUserRequest, + DescribeUserResponse, + GetDashboardEmbedUrlRequest, + GetDashboardEmbedUrlResponse, + ListDashboardVersionsRequest, + ListDashboardVersionsResponse, + ListDashboardsRequest, + ListDashboardsResponse, + ListDataSetsRequest, + ListDataSetsResponse, + ListDataSourcesRequest, + ListDataSourcesResponse, + ListGroupMembershipsRequest, + ListGroupMembershipsResponse, + ListGroupsRequest, + ListGroupsResponse, + ListIAMPolicyAssignmentsForUserRequest, + ListIAMPolicyAssignmentsForUserResponse, + ListIAMPolicyAssignmentsRequest, + ListIAMPolicyAssignmentsResponse, + ListIngestionsRequest, + ListIngestionsResponse, + ListTagsForResourceRequest, + ListTagsForResourceResponse, + ListTemplateAliasesRequest, + ListTemplateAliasesResponse, + ListTemplateVersionsRequest, + ListTemplateVersionsResponse, + ListTemplatesRequest, + ListTemplatesResponse, + ListUserGroupsRequest, + ListUserGroupsResponse, + ListUsersRequest, + ListUsersResponse, + RegisterUserRequest, + RegisterUserResponse, + TagResourceRequest, + TagResourceResponse, + UntagResourceRequest, + UntagResourceResponse, + UpdateDashboardPermissionsRequest, + UpdateDashboardPermissionsResponse, + UpdateDashboardPublishedVersionRequest, + UpdateDashboardPublishedVersionResponse, + UpdateDashboardRequest, + UpdateDashboardResponse, + UpdateDataSetPermissionsRequest, + UpdateDataSetPermissionsResponse, + UpdateDataSetRequest, + UpdateDataSetResponse, + UpdateDataSourcePermissionsRequest, + UpdateDataSourcePermissionsResponse, + UpdateDataSourceRequest, + UpdateDataSourceResponse, + UpdateGroupRequest, + UpdateGroupResponse, + UpdateIAMPolicyAssignmentRequest, + UpdateIAMPolicyAssignmentResponse, + UpdateTemplateAliasRequest, + UpdateTemplateAliasResponse, + UpdateTemplatePermissionsRequest, + UpdateTemplatePermissionsResponse, + UpdateTemplateRequest, + UpdateTemplateResponse, + UpdateUserRequest, + UpdateUserResponse +} from "./models/index"; +import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig"; +import { + EndpointsInputConfig, + EndpointsResolvedConfig, + RegionInputConfig, + RegionResolvedConfig, + resolveEndpointsConfig, + resolveRegionConfig +} from "@aws-sdk/config-resolver"; +import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length"; +import { + HostHeaderInputConfig, + HostHeaderResolvedConfig, + getHostHeaderPlugin, + resolveHostHeaderConfig +} from "@aws-sdk/middleware-host-header"; +import { + RetryInputConfig, + RetryResolvedConfig, + getRetryPlugin, + resolveRetryConfig +} from "@aws-sdk/middleware-retry"; +import { + AwsAuthInputConfig, + AwsAuthResolvedConfig, + getAwsAuthPlugin, + resolveAwsAuthConfig +} from "@aws-sdk/middleware-signing"; +import { + UserAgentInputConfig, + UserAgentResolvedConfig, + getUserAgentPlugin, + resolveUserAgentConfig +} from "@aws-sdk/middleware-user-agent"; +import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http"; +import { + Client as __Client, + SmithyConfiguration as __SmithyConfiguration, + SmithyResolvedConfiguration as __SmithyResolvedConfiguration +} from "@aws-sdk/smithy-client"; +import { + RegionInfoProvider, + Credentials as __Credentials, + Decoder as __Decoder, + Encoder as __Encoder, + HashConstructor as __HashConstructor, + HttpHandlerOptions as __HttpHandlerOptions, + Provider as __Provider, + StreamCollector as __StreamCollector, + UrlParser as __UrlParser +} from "@aws-sdk/types"; + +export type ServiceInputTypes = + | CancelIngestionRequest + | CreateDashboardRequest + | CreateDataSetRequest + | CreateDataSourceRequest + | CreateGroupMembershipRequest + | CreateGroupRequest + | CreateIAMPolicyAssignmentRequest + | CreateIngestionRequest + | CreateTemplateAliasRequest + | CreateTemplateRequest + | DeleteDashboardRequest + | DeleteDataSetRequest + | DeleteDataSourceRequest + | DeleteGroupMembershipRequest + | DeleteGroupRequest + | DeleteIAMPolicyAssignmentRequest + | DeleteTemplateAliasRequest + | DeleteTemplateRequest + | DeleteUserByPrincipalIdRequest + | DeleteUserRequest + | DescribeDashboardPermissionsRequest + | DescribeDashboardRequest + | DescribeDataSetPermissionsRequest + | DescribeDataSetRequest + | DescribeDataSourcePermissionsRequest + | DescribeDataSourceRequest + | DescribeGroupRequest + | DescribeIAMPolicyAssignmentRequest + | DescribeIngestionRequest + | DescribeTemplateAliasRequest + | DescribeTemplatePermissionsRequest + | DescribeTemplateRequest + | DescribeUserRequest + | GetDashboardEmbedUrlRequest + | ListDashboardVersionsRequest + | ListDashboardsRequest + | ListDataSetsRequest + | ListDataSourcesRequest + | ListGroupMembershipsRequest + | ListGroupsRequest + | ListIAMPolicyAssignmentsForUserRequest + | ListIAMPolicyAssignmentsRequest + | ListIngestionsRequest + | ListTagsForResourceRequest + | ListTemplateAliasesRequest + | ListTemplateVersionsRequest + | ListTemplatesRequest + | ListUserGroupsRequest + | ListUsersRequest + | RegisterUserRequest + | TagResourceRequest + | UntagResourceRequest + | UpdateDashboardPermissionsRequest + | UpdateDashboardPublishedVersionRequest + | UpdateDashboardRequest + | UpdateDataSetPermissionsRequest + | UpdateDataSetRequest + | UpdateDataSourcePermissionsRequest + | UpdateDataSourceRequest + | UpdateGroupRequest + | UpdateIAMPolicyAssignmentRequest + | UpdateTemplateAliasRequest + | UpdateTemplatePermissionsRequest + | UpdateTemplateRequest + | UpdateUserRequest; + +export type ServiceOutputTypes = + | CancelIngestionResponse + | CreateDashboardResponse + | CreateDataSetResponse + | CreateDataSourceResponse + | CreateGroupMembershipResponse + | CreateGroupResponse + | CreateIAMPolicyAssignmentResponse + | CreateIngestionResponse + | CreateTemplateAliasResponse + | CreateTemplateResponse + | DeleteDashboardResponse + | DeleteDataSetResponse + | DeleteDataSourceResponse + | DeleteGroupMembershipResponse + | DeleteGroupResponse + | DeleteIAMPolicyAssignmentResponse + | DeleteTemplateAliasResponse + | DeleteTemplateResponse + | DeleteUserByPrincipalIdResponse + | DeleteUserResponse + | DescribeDashboardPermissionsResponse + | DescribeDashboardResponse + | DescribeDataSetPermissionsResponse + | DescribeDataSetResponse + | DescribeDataSourcePermissionsResponse + | DescribeDataSourceResponse + | DescribeGroupResponse + | DescribeIAMPolicyAssignmentResponse + | DescribeIngestionResponse + | DescribeTemplateAliasResponse + | DescribeTemplatePermissionsResponse + | DescribeTemplateResponse + | DescribeUserResponse + | GetDashboardEmbedUrlResponse + | ListDashboardVersionsResponse + | ListDashboardsResponse + | ListDataSetsResponse + | ListDataSourcesResponse + | ListGroupMembershipsResponse + | ListGroupsResponse + | ListIAMPolicyAssignmentsForUserResponse + | ListIAMPolicyAssignmentsResponse + | ListIngestionsResponse + | ListTagsForResourceResponse + | ListTemplateAliasesResponse + | ListTemplateVersionsResponse + | ListTemplatesResponse + | ListUserGroupsResponse + | ListUsersResponse + | RegisterUserResponse + | TagResourceResponse + | UntagResourceResponse + | UpdateDashboardPermissionsResponse + | UpdateDashboardPublishedVersionResponse + | UpdateDashboardResponse + | UpdateDataSetPermissionsResponse + | UpdateDataSetResponse + | UpdateDataSourcePermissionsResponse + | UpdateDataSourceResponse + | UpdateGroupResponse + | UpdateIAMPolicyAssignmentResponse + | UpdateTemplateAliasResponse + | UpdateTemplatePermissionsResponse + | UpdateTemplateResponse + | UpdateUserResponse; + +export interface ClientDefaults + extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { + /** + * The HTTP handler to use. Fetch in browser and Https in Nodejs. + */ + requestHandler?: __HttpHandler; + + /** + * A constructor for a class implementing the @aws-sdk/types.Hash interface + * that computes the SHA-256 HMAC or checksum of a string or binary buffer. + */ + sha256?: __HashConstructor; + + /** + * The function that will be used to convert strings into HTTP endpoints. + */ + urlParser?: __UrlParser; + + /** + * A function that can calculate the length of a request body. + */ + bodyLengthChecker?: (body: any) => number | undefined; + + /** + * A function that converts a stream into an array of bytes. + */ + streamCollector?: __StreamCollector; + + /** + * The function that will be used to convert a base64-encoded string to a byte array + */ + base64Decoder?: __Decoder; + + /** + * The function that will be used to convert binary data to a base64-encoded string + */ + base64Encoder?: __Encoder; + + /** + * The function that will be used to convert a UTF8-encoded string to a byte array + */ + utf8Decoder?: __Decoder; + + /** + * The function that will be used to convert binary data to a UTF-8 encoded string + */ + utf8Encoder?: __Encoder; + + /** + * The string that will be used to populate default value in 'User-Agent' header + */ + defaultUserAgent?: string; + + /** + * The runtime environment + */ + runtime?: string; + + /** + * The service name with which to sign requests. + */ + signingName?: string; + + /** + * Default credentials provider; Not available in browser runtime + */ + credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; + + /** + * Provider function that return promise of a region string + */ + regionDefaultProvider?: (input: any) => __Provider; + + /** + * Fetch related hostname, signing name or signing region with given region. + */ + regionInfoProvider?: RegionInfoProvider; +} + +export type QuickSightClientConfig = Partial< + __SmithyConfiguration<__HttpHandlerOptions> +> & + ClientDefaults & + RegionInputConfig & + EndpointsInputConfig & + AwsAuthInputConfig & + RetryInputConfig & + UserAgentInputConfig & + HostHeaderInputConfig; + +export type QuickSightClientResolvedConfig = __SmithyResolvedConfiguration< + __HttpHandlerOptions +> & + Required & + RegionResolvedConfig & + EndpointsResolvedConfig & + AwsAuthResolvedConfig & + RetryResolvedConfig & + UserAgentResolvedConfig & + HostHeaderResolvedConfig; + +/** + * + * Amazon QuickSight API Reference + *

Amazon QuickSight is a fully managed, serverless business intelligence service for the AWS + * Cloud that makes it easy to extend data and insights to every user in your organization. + * This API reference contains documentation for a programming interface that you can use + * to manage Amazon QuickSight.

+ * + */ +export class QuickSightClient extends __Client< + __HttpHandlerOptions, + ServiceInputTypes, + ServiceOutputTypes, + QuickSightClientResolvedConfig +> { + readonly config: QuickSightClientResolvedConfig; + + constructor(configuration: QuickSightClientConfig) { + let _config_0 = { + ...__ClientDefaultValues, + ...configuration + }; + let _config_1 = resolveRegionConfig(_config_0); + let _config_2 = resolveEndpointsConfig(_config_1); + let _config_3 = resolveAwsAuthConfig(_config_2); + let _config_4 = resolveRetryConfig(_config_3); + let _config_5 = resolveUserAgentConfig(_config_4); + let _config_6 = resolveHostHeaderConfig(_config_5); + super(_config_6); + this.config = _config_6; + this.middlewareStack.use(getAwsAuthPlugin(this.config)); + this.middlewareStack.use(getRetryPlugin(this.config)); + this.middlewareStack.use(getUserAgentPlugin(this.config)); + this.middlewareStack.use(getContentLengthPlugin(this.config)); + this.middlewareStack.use(getHostHeaderPlugin(this.config)); + } + + destroy(): void {} +} diff --git a/clients/client-quicksight/README.md b/clients/client-quicksight/README.md new file mode 100644 index 000000000000..704192763aca --- /dev/null +++ b/clients/client-quicksight/README.md @@ -0,0 +1,6 @@ +@aws-sdk/client-quicksight + +[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-quicksight/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-quicksight) +[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-quicksight.svg)](https://www.npmjs.com/package/@aws-sdk/client-quicksight) + +For SDK usage, please step to [SDK reademe](https://github.com/aws/aws-sdk-js-v3). diff --git a/clients/client-quicksight/commands/CancelIngestionCommand.ts b/clients/client-quicksight/commands/CancelIngestionCommand.ts new file mode 100644 index 000000000000..4d4ef5051d84 --- /dev/null +++ b/clients/client-quicksight/commands/CancelIngestionCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + CancelIngestionRequest, + CancelIngestionResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1CancelIngestionCommand, + serializeAws_restJson1_1CancelIngestionCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CancelIngestionCommandInput = CancelIngestionRequest; +export type CancelIngestionCommandOutput = CancelIngestionResponse; + +export class CancelIngestionCommand extends $Command< + CancelIngestionCommandInput, + CancelIngestionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CancelIngestionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CancelIngestionCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CancelIngestionCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CancelIngestionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/CreateDashboardCommand.ts b/clients/client-quicksight/commands/CreateDashboardCommand.ts new file mode 100644 index 000000000000..5ff2129e4319 --- /dev/null +++ b/clients/client-quicksight/commands/CreateDashboardCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + CreateDashboardRequest, + CreateDashboardResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1CreateDashboardCommand, + serializeAws_restJson1_1CreateDashboardCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CreateDashboardCommandInput = CreateDashboardRequest; +export type CreateDashboardCommandOutput = CreateDashboardResponse; + +export class CreateDashboardCommand extends $Command< + CreateDashboardCommandInput, + CreateDashboardCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateDashboardCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CreateDashboardCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CreateDashboardCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CreateDashboardCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/CreateDataSetCommand.ts b/clients/client-quicksight/commands/CreateDataSetCommand.ts new file mode 100644 index 000000000000..40dd3122c8ad --- /dev/null +++ b/clients/client-quicksight/commands/CreateDataSetCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { CreateDataSetRequest, CreateDataSetResponse } from "../models/index"; +import { + deserializeAws_restJson1_1CreateDataSetCommand, + serializeAws_restJson1_1CreateDataSetCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CreateDataSetCommandInput = CreateDataSetRequest; +export type CreateDataSetCommandOutput = CreateDataSetResponse; + +export class CreateDataSetCommand extends $Command< + CreateDataSetCommandInput, + CreateDataSetCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateDataSetCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CreateDataSetCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CreateDataSetCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CreateDataSetCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/CreateDataSourceCommand.ts b/clients/client-quicksight/commands/CreateDataSourceCommand.ts new file mode 100644 index 000000000000..0972dd9a87ba --- /dev/null +++ b/clients/client-quicksight/commands/CreateDataSourceCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + CreateDataSourceRequest, + CreateDataSourceResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1CreateDataSourceCommand, + serializeAws_restJson1_1CreateDataSourceCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CreateDataSourceCommandInput = CreateDataSourceRequest; +export type CreateDataSourceCommandOutput = CreateDataSourceResponse; + +export class CreateDataSourceCommand extends $Command< + CreateDataSourceCommandInput, + CreateDataSourceCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateDataSourceCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CreateDataSourceCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CreateDataSourceCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CreateDataSourceCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/CreateGroupCommand.ts b/clients/client-quicksight/commands/CreateGroupCommand.ts new file mode 100644 index 000000000000..bf2b8da64e76 --- /dev/null +++ b/clients/client-quicksight/commands/CreateGroupCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { CreateGroupRequest, CreateGroupResponse } from "../models/index"; +import { + deserializeAws_restJson1_1CreateGroupCommand, + serializeAws_restJson1_1CreateGroupCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CreateGroupCommandInput = CreateGroupRequest; +export type CreateGroupCommandOutput = CreateGroupResponse; + +export class CreateGroupCommand extends $Command< + CreateGroupCommandInput, + CreateGroupCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateGroupCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CreateGroupCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CreateGroupCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CreateGroupCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/CreateGroupMembershipCommand.ts b/clients/client-quicksight/commands/CreateGroupMembershipCommand.ts new file mode 100644 index 000000000000..0b1d1dbe7d2a --- /dev/null +++ b/clients/client-quicksight/commands/CreateGroupMembershipCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + CreateGroupMembershipRequest, + CreateGroupMembershipResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1CreateGroupMembershipCommand, + serializeAws_restJson1_1CreateGroupMembershipCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CreateGroupMembershipCommandInput = CreateGroupMembershipRequest; +export type CreateGroupMembershipCommandOutput = CreateGroupMembershipResponse; + +export class CreateGroupMembershipCommand extends $Command< + CreateGroupMembershipCommandInput, + CreateGroupMembershipCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateGroupMembershipCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + CreateGroupMembershipCommandInput, + CreateGroupMembershipCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CreateGroupMembershipCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CreateGroupMembershipCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CreateGroupMembershipCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/CreateIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/commands/CreateIAMPolicyAssignmentCommand.ts new file mode 100644 index 000000000000..adeafb83c303 --- /dev/null +++ b/clients/client-quicksight/commands/CreateIAMPolicyAssignmentCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + CreateIAMPolicyAssignmentRequest, + CreateIAMPolicyAssignmentResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1CreateIAMPolicyAssignmentCommand, + serializeAws_restJson1_1CreateIAMPolicyAssignmentCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CreateIAMPolicyAssignmentCommandInput = CreateIAMPolicyAssignmentRequest; +export type CreateIAMPolicyAssignmentCommandOutput = CreateIAMPolicyAssignmentResponse; + +export class CreateIAMPolicyAssignmentCommand extends $Command< + CreateIAMPolicyAssignmentCommandInput, + CreateIAMPolicyAssignmentCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateIAMPolicyAssignmentCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + CreateIAMPolicyAssignmentCommandInput, + CreateIAMPolicyAssignmentCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CreateIAMPolicyAssignmentCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CreateIAMPolicyAssignmentCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CreateIAMPolicyAssignmentCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/CreateIngestionCommand.ts b/clients/client-quicksight/commands/CreateIngestionCommand.ts new file mode 100644 index 000000000000..788369f93a43 --- /dev/null +++ b/clients/client-quicksight/commands/CreateIngestionCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + CreateIngestionRequest, + CreateIngestionResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1CreateIngestionCommand, + serializeAws_restJson1_1CreateIngestionCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CreateIngestionCommandInput = CreateIngestionRequest; +export type CreateIngestionCommandOutput = CreateIngestionResponse; + +export class CreateIngestionCommand extends $Command< + CreateIngestionCommandInput, + CreateIngestionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateIngestionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CreateIngestionCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CreateIngestionCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CreateIngestionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/CreateTemplateAliasCommand.ts b/clients/client-quicksight/commands/CreateTemplateAliasCommand.ts new file mode 100644 index 000000000000..34613775342b --- /dev/null +++ b/clients/client-quicksight/commands/CreateTemplateAliasCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + CreateTemplateAliasRequest, + CreateTemplateAliasResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1CreateTemplateAliasCommand, + serializeAws_restJson1_1CreateTemplateAliasCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CreateTemplateAliasCommandInput = CreateTemplateAliasRequest; +export type CreateTemplateAliasCommandOutput = CreateTemplateAliasResponse; + +export class CreateTemplateAliasCommand extends $Command< + CreateTemplateAliasCommandInput, + CreateTemplateAliasCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateTemplateAliasCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + CreateTemplateAliasCommandInput, + CreateTemplateAliasCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CreateTemplateAliasCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CreateTemplateAliasCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CreateTemplateAliasCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/CreateTemplateCommand.ts b/clients/client-quicksight/commands/CreateTemplateCommand.ts new file mode 100644 index 000000000000..e9e1ee802a52 --- /dev/null +++ b/clients/client-quicksight/commands/CreateTemplateCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { CreateTemplateRequest, CreateTemplateResponse } from "../models/index"; +import { + deserializeAws_restJson1_1CreateTemplateCommand, + serializeAws_restJson1_1CreateTemplateCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type CreateTemplateCommandInput = CreateTemplateRequest; +export type CreateTemplateCommandOutput = CreateTemplateResponse; + +export class CreateTemplateCommand extends $Command< + CreateTemplateCommandInput, + CreateTemplateCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: CreateTemplateCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: CreateTemplateCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1CreateTemplateCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1CreateTemplateCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteDashboardCommand.ts b/clients/client-quicksight/commands/DeleteDashboardCommand.ts new file mode 100644 index 000000000000..45de9d631f05 --- /dev/null +++ b/clients/client-quicksight/commands/DeleteDashboardCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DeleteDashboardRequest, + DeleteDashboardResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DeleteDashboardCommand, + serializeAws_restJson1_1DeleteDashboardCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteDashboardCommandInput = DeleteDashboardRequest; +export type DeleteDashboardCommandOutput = DeleteDashboardResponse; + +export class DeleteDashboardCommand extends $Command< + DeleteDashboardCommandInput, + DeleteDashboardCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteDashboardCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteDashboardCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteDashboardCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteDashboardCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteDataSetCommand.ts b/clients/client-quicksight/commands/DeleteDataSetCommand.ts new file mode 100644 index 000000000000..1e4c2512aead --- /dev/null +++ b/clients/client-quicksight/commands/DeleteDataSetCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { DeleteDataSetRequest, DeleteDataSetResponse } from "../models/index"; +import { + deserializeAws_restJson1_1DeleteDataSetCommand, + serializeAws_restJson1_1DeleteDataSetCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteDataSetCommandInput = DeleteDataSetRequest; +export type DeleteDataSetCommandOutput = DeleteDataSetResponse; + +export class DeleteDataSetCommand extends $Command< + DeleteDataSetCommandInput, + DeleteDataSetCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteDataSetCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteDataSetCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteDataSetCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteDataSetCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteDataSourceCommand.ts b/clients/client-quicksight/commands/DeleteDataSourceCommand.ts new file mode 100644 index 000000000000..b8d73b20819d --- /dev/null +++ b/clients/client-quicksight/commands/DeleteDataSourceCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DeleteDataSourceRequest, + DeleteDataSourceResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DeleteDataSourceCommand, + serializeAws_restJson1_1DeleteDataSourceCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteDataSourceCommandInput = DeleteDataSourceRequest; +export type DeleteDataSourceCommandOutput = DeleteDataSourceResponse; + +export class DeleteDataSourceCommand extends $Command< + DeleteDataSourceCommandInput, + DeleteDataSourceCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteDataSourceCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteDataSourceCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteDataSourceCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteDataSourceCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteGroupCommand.ts b/clients/client-quicksight/commands/DeleteGroupCommand.ts new file mode 100644 index 000000000000..e4b1b3c5bd65 --- /dev/null +++ b/clients/client-quicksight/commands/DeleteGroupCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { DeleteGroupRequest, DeleteGroupResponse } from "../models/index"; +import { + deserializeAws_restJson1_1DeleteGroupCommand, + serializeAws_restJson1_1DeleteGroupCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteGroupCommandInput = DeleteGroupRequest; +export type DeleteGroupCommandOutput = DeleteGroupResponse; + +export class DeleteGroupCommand extends $Command< + DeleteGroupCommandInput, + DeleteGroupCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteGroupCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteGroupCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteGroupCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteGroupCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteGroupMembershipCommand.ts b/clients/client-quicksight/commands/DeleteGroupMembershipCommand.ts new file mode 100644 index 000000000000..188ea1df433d --- /dev/null +++ b/clients/client-quicksight/commands/DeleteGroupMembershipCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DeleteGroupMembershipRequest, + DeleteGroupMembershipResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DeleteGroupMembershipCommand, + serializeAws_restJson1_1DeleteGroupMembershipCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteGroupMembershipCommandInput = DeleteGroupMembershipRequest; +export type DeleteGroupMembershipCommandOutput = DeleteGroupMembershipResponse; + +export class DeleteGroupMembershipCommand extends $Command< + DeleteGroupMembershipCommandInput, + DeleteGroupMembershipCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteGroupMembershipCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DeleteGroupMembershipCommandInput, + DeleteGroupMembershipCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteGroupMembershipCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteGroupMembershipCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteGroupMembershipCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/commands/DeleteIAMPolicyAssignmentCommand.ts new file mode 100644 index 000000000000..825b53271f05 --- /dev/null +++ b/clients/client-quicksight/commands/DeleteIAMPolicyAssignmentCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DeleteIAMPolicyAssignmentRequest, + DeleteIAMPolicyAssignmentResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DeleteIAMPolicyAssignmentCommand, + serializeAws_restJson1_1DeleteIAMPolicyAssignmentCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteIAMPolicyAssignmentCommandInput = DeleteIAMPolicyAssignmentRequest; +export type DeleteIAMPolicyAssignmentCommandOutput = DeleteIAMPolicyAssignmentResponse; + +export class DeleteIAMPolicyAssignmentCommand extends $Command< + DeleteIAMPolicyAssignmentCommandInput, + DeleteIAMPolicyAssignmentCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteIAMPolicyAssignmentCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DeleteIAMPolicyAssignmentCommandInput, + DeleteIAMPolicyAssignmentCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteIAMPolicyAssignmentCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteIAMPolicyAssignmentCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteIAMPolicyAssignmentCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteTemplateAliasCommand.ts b/clients/client-quicksight/commands/DeleteTemplateAliasCommand.ts new file mode 100644 index 000000000000..4bd83b99f9fb --- /dev/null +++ b/clients/client-quicksight/commands/DeleteTemplateAliasCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DeleteTemplateAliasRequest, + DeleteTemplateAliasResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DeleteTemplateAliasCommand, + serializeAws_restJson1_1DeleteTemplateAliasCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteTemplateAliasCommandInput = DeleteTemplateAliasRequest; +export type DeleteTemplateAliasCommandOutput = DeleteTemplateAliasResponse; + +export class DeleteTemplateAliasCommand extends $Command< + DeleteTemplateAliasCommandInput, + DeleteTemplateAliasCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteTemplateAliasCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DeleteTemplateAliasCommandInput, + DeleteTemplateAliasCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteTemplateAliasCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteTemplateAliasCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteTemplateAliasCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteTemplateCommand.ts b/clients/client-quicksight/commands/DeleteTemplateCommand.ts new file mode 100644 index 000000000000..8d2941da4f2a --- /dev/null +++ b/clients/client-quicksight/commands/DeleteTemplateCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { DeleteTemplateRequest, DeleteTemplateResponse } from "../models/index"; +import { + deserializeAws_restJson1_1DeleteTemplateCommand, + serializeAws_restJson1_1DeleteTemplateCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteTemplateCommandInput = DeleteTemplateRequest; +export type DeleteTemplateCommandOutput = DeleteTemplateResponse; + +export class DeleteTemplateCommand extends $Command< + DeleteTemplateCommandInput, + DeleteTemplateCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteTemplateCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteTemplateCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteTemplateCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteTemplateCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteUserByPrincipalIdCommand.ts b/clients/client-quicksight/commands/DeleteUserByPrincipalIdCommand.ts new file mode 100644 index 000000000000..d32515301398 --- /dev/null +++ b/clients/client-quicksight/commands/DeleteUserByPrincipalIdCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DeleteUserByPrincipalIdRequest, + DeleteUserByPrincipalIdResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DeleteUserByPrincipalIdCommand, + serializeAws_restJson1_1DeleteUserByPrincipalIdCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteUserByPrincipalIdCommandInput = DeleteUserByPrincipalIdRequest; +export type DeleteUserByPrincipalIdCommandOutput = DeleteUserByPrincipalIdResponse; + +export class DeleteUserByPrincipalIdCommand extends $Command< + DeleteUserByPrincipalIdCommandInput, + DeleteUserByPrincipalIdCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteUserByPrincipalIdCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DeleteUserByPrincipalIdCommandInput, + DeleteUserByPrincipalIdCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteUserByPrincipalIdCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteUserByPrincipalIdCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteUserByPrincipalIdCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DeleteUserCommand.ts b/clients/client-quicksight/commands/DeleteUserCommand.ts new file mode 100644 index 000000000000..c17469956ffa --- /dev/null +++ b/clients/client-quicksight/commands/DeleteUserCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { DeleteUserRequest, DeleteUserResponse } from "../models/index"; +import { + deserializeAws_restJson1_1DeleteUserCommand, + serializeAws_restJson1_1DeleteUserCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DeleteUserCommandInput = DeleteUserRequest; +export type DeleteUserCommandOutput = DeleteUserResponse; + +export class DeleteUserCommand extends $Command< + DeleteUserCommandInput, + DeleteUserCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DeleteUserCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DeleteUserCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DeleteUserCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DeleteUserCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeDashboardCommand.ts b/clients/client-quicksight/commands/DescribeDashboardCommand.ts new file mode 100644 index 000000000000..3701ef2b797b --- /dev/null +++ b/clients/client-quicksight/commands/DescribeDashboardCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeDashboardRequest, + DescribeDashboardResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeDashboardCommand, + serializeAws_restJson1_1DescribeDashboardCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeDashboardCommandInput = DescribeDashboardRequest; +export type DescribeDashboardCommandOutput = DescribeDashboardResponse; + +export class DescribeDashboardCommand extends $Command< + DescribeDashboardCommandInput, + DescribeDashboardCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeDashboardCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeDashboardCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeDashboardCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeDashboardCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeDashboardPermissionsCommand.ts b/clients/client-quicksight/commands/DescribeDashboardPermissionsCommand.ts new file mode 100644 index 000000000000..03e79f3b5ce1 --- /dev/null +++ b/clients/client-quicksight/commands/DescribeDashboardPermissionsCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeDashboardPermissionsRequest, + DescribeDashboardPermissionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeDashboardPermissionsCommand, + serializeAws_restJson1_1DescribeDashboardPermissionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeDashboardPermissionsCommandInput = DescribeDashboardPermissionsRequest; +export type DescribeDashboardPermissionsCommandOutput = DescribeDashboardPermissionsResponse; + +export class DescribeDashboardPermissionsCommand extends $Command< + DescribeDashboardPermissionsCommandInput, + DescribeDashboardPermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeDashboardPermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DescribeDashboardPermissionsCommandInput, + DescribeDashboardPermissionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeDashboardPermissionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeDashboardPermissionsCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeDashboardPermissionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeDataSetCommand.ts b/clients/client-quicksight/commands/DescribeDataSetCommand.ts new file mode 100644 index 000000000000..f01abf55a2f6 --- /dev/null +++ b/clients/client-quicksight/commands/DescribeDataSetCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeDataSetRequest, + DescribeDataSetResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeDataSetCommand, + serializeAws_restJson1_1DescribeDataSetCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeDataSetCommandInput = DescribeDataSetRequest; +export type DescribeDataSetCommandOutput = DescribeDataSetResponse; + +export class DescribeDataSetCommand extends $Command< + DescribeDataSetCommandInput, + DescribeDataSetCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeDataSetCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeDataSetCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeDataSetCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeDataSetCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeDataSetPermissionsCommand.ts b/clients/client-quicksight/commands/DescribeDataSetPermissionsCommand.ts new file mode 100644 index 000000000000..1d0760d7e060 --- /dev/null +++ b/clients/client-quicksight/commands/DescribeDataSetPermissionsCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeDataSetPermissionsRequest, + DescribeDataSetPermissionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeDataSetPermissionsCommand, + serializeAws_restJson1_1DescribeDataSetPermissionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeDataSetPermissionsCommandInput = DescribeDataSetPermissionsRequest; +export type DescribeDataSetPermissionsCommandOutput = DescribeDataSetPermissionsResponse; + +export class DescribeDataSetPermissionsCommand extends $Command< + DescribeDataSetPermissionsCommandInput, + DescribeDataSetPermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeDataSetPermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DescribeDataSetPermissionsCommandInput, + DescribeDataSetPermissionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeDataSetPermissionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeDataSetPermissionsCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeDataSetPermissionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeDataSourceCommand.ts b/clients/client-quicksight/commands/DescribeDataSourceCommand.ts new file mode 100644 index 000000000000..649e76b435f5 --- /dev/null +++ b/clients/client-quicksight/commands/DescribeDataSourceCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeDataSourceRequest, + DescribeDataSourceResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeDataSourceCommand, + serializeAws_restJson1_1DescribeDataSourceCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeDataSourceCommandInput = DescribeDataSourceRequest; +export type DescribeDataSourceCommandOutput = DescribeDataSourceResponse; + +export class DescribeDataSourceCommand extends $Command< + DescribeDataSourceCommandInput, + DescribeDataSourceCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeDataSourceCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeDataSourceCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeDataSourceCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeDataSourceCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeDataSourcePermissionsCommand.ts b/clients/client-quicksight/commands/DescribeDataSourcePermissionsCommand.ts new file mode 100644 index 000000000000..6b55c28a599b --- /dev/null +++ b/clients/client-quicksight/commands/DescribeDataSourcePermissionsCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeDataSourcePermissionsRequest, + DescribeDataSourcePermissionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeDataSourcePermissionsCommand, + serializeAws_restJson1_1DescribeDataSourcePermissionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeDataSourcePermissionsCommandInput = DescribeDataSourcePermissionsRequest; +export type DescribeDataSourcePermissionsCommandOutput = DescribeDataSourcePermissionsResponse; + +export class DescribeDataSourcePermissionsCommand extends $Command< + DescribeDataSourcePermissionsCommandInput, + DescribeDataSourcePermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeDataSourcePermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DescribeDataSourcePermissionsCommandInput, + DescribeDataSourcePermissionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeDataSourcePermissionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeDataSourcePermissionsCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeDataSourcePermissionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeGroupCommand.ts b/clients/client-quicksight/commands/DescribeGroupCommand.ts new file mode 100644 index 000000000000..c164d8db00e2 --- /dev/null +++ b/clients/client-quicksight/commands/DescribeGroupCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { DescribeGroupRequest, DescribeGroupResponse } from "../models/index"; +import { + deserializeAws_restJson1_1DescribeGroupCommand, + serializeAws_restJson1_1DescribeGroupCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeGroupCommandInput = DescribeGroupRequest; +export type DescribeGroupCommandOutput = DescribeGroupResponse; + +export class DescribeGroupCommand extends $Command< + DescribeGroupCommandInput, + DescribeGroupCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeGroupCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeGroupCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeGroupCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeGroupCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/commands/DescribeIAMPolicyAssignmentCommand.ts new file mode 100644 index 000000000000..e9137d2f8cbd --- /dev/null +++ b/clients/client-quicksight/commands/DescribeIAMPolicyAssignmentCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeIAMPolicyAssignmentRequest, + DescribeIAMPolicyAssignmentResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeIAMPolicyAssignmentCommand, + serializeAws_restJson1_1DescribeIAMPolicyAssignmentCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeIAMPolicyAssignmentCommandInput = DescribeIAMPolicyAssignmentRequest; +export type DescribeIAMPolicyAssignmentCommandOutput = DescribeIAMPolicyAssignmentResponse; + +export class DescribeIAMPolicyAssignmentCommand extends $Command< + DescribeIAMPolicyAssignmentCommandInput, + DescribeIAMPolicyAssignmentCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeIAMPolicyAssignmentCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DescribeIAMPolicyAssignmentCommandInput, + DescribeIAMPolicyAssignmentCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeIAMPolicyAssignmentCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeIAMPolicyAssignmentCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeIAMPolicyAssignmentCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeIngestionCommand.ts b/clients/client-quicksight/commands/DescribeIngestionCommand.ts new file mode 100644 index 000000000000..0799ea695f86 --- /dev/null +++ b/clients/client-quicksight/commands/DescribeIngestionCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeIngestionRequest, + DescribeIngestionResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeIngestionCommand, + serializeAws_restJson1_1DescribeIngestionCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeIngestionCommandInput = DescribeIngestionRequest; +export type DescribeIngestionCommandOutput = DescribeIngestionResponse; + +export class DescribeIngestionCommand extends $Command< + DescribeIngestionCommandInput, + DescribeIngestionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeIngestionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeIngestionCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeIngestionCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeIngestionCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeTemplateAliasCommand.ts b/clients/client-quicksight/commands/DescribeTemplateAliasCommand.ts new file mode 100644 index 000000000000..6956f3ac01a1 --- /dev/null +++ b/clients/client-quicksight/commands/DescribeTemplateAliasCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeTemplateAliasRequest, + DescribeTemplateAliasResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeTemplateAliasCommand, + serializeAws_restJson1_1DescribeTemplateAliasCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeTemplateAliasCommandInput = DescribeTemplateAliasRequest; +export type DescribeTemplateAliasCommandOutput = DescribeTemplateAliasResponse; + +export class DescribeTemplateAliasCommand extends $Command< + DescribeTemplateAliasCommandInput, + DescribeTemplateAliasCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeTemplateAliasCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DescribeTemplateAliasCommandInput, + DescribeTemplateAliasCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeTemplateAliasCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeTemplateAliasCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeTemplateAliasCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeTemplateCommand.ts b/clients/client-quicksight/commands/DescribeTemplateCommand.ts new file mode 100644 index 000000000000..38f8295fd161 --- /dev/null +++ b/clients/client-quicksight/commands/DescribeTemplateCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeTemplateRequest, + DescribeTemplateResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeTemplateCommand, + serializeAws_restJson1_1DescribeTemplateCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeTemplateCommandInput = DescribeTemplateRequest; +export type DescribeTemplateCommandOutput = DescribeTemplateResponse; + +export class DescribeTemplateCommand extends $Command< + DescribeTemplateCommandInput, + DescribeTemplateCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeTemplateCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeTemplateCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeTemplateCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeTemplateCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeTemplatePermissionsCommand.ts b/clients/client-quicksight/commands/DescribeTemplatePermissionsCommand.ts new file mode 100644 index 000000000000..5b8ee97e770c --- /dev/null +++ b/clients/client-quicksight/commands/DescribeTemplatePermissionsCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + DescribeTemplatePermissionsRequest, + DescribeTemplatePermissionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1DescribeTemplatePermissionsCommand, + serializeAws_restJson1_1DescribeTemplatePermissionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeTemplatePermissionsCommandInput = DescribeTemplatePermissionsRequest; +export type DescribeTemplatePermissionsCommandOutput = DescribeTemplatePermissionsResponse; + +export class DescribeTemplatePermissionsCommand extends $Command< + DescribeTemplatePermissionsCommandInput, + DescribeTemplatePermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeTemplatePermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + DescribeTemplatePermissionsCommandInput, + DescribeTemplatePermissionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeTemplatePermissionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeTemplatePermissionsCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeTemplatePermissionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/DescribeUserCommand.ts b/clients/client-quicksight/commands/DescribeUserCommand.ts new file mode 100644 index 000000000000..47a5ce142f13 --- /dev/null +++ b/clients/client-quicksight/commands/DescribeUserCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { DescribeUserRequest, DescribeUserResponse } from "../models/index"; +import { + deserializeAws_restJson1_1DescribeUserCommand, + serializeAws_restJson1_1DescribeUserCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type DescribeUserCommandInput = DescribeUserRequest; +export type DescribeUserCommandOutput = DescribeUserResponse; + +export class DescribeUserCommand extends $Command< + DescribeUserCommandInput, + DescribeUserCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: DescribeUserCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: DescribeUserCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1DescribeUserCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1DescribeUserCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/GetDashboardEmbedUrlCommand.ts b/clients/client-quicksight/commands/GetDashboardEmbedUrlCommand.ts new file mode 100644 index 000000000000..6b042c39e6b1 --- /dev/null +++ b/clients/client-quicksight/commands/GetDashboardEmbedUrlCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + GetDashboardEmbedUrlRequest, + GetDashboardEmbedUrlResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1GetDashboardEmbedUrlCommand, + serializeAws_restJson1_1GetDashboardEmbedUrlCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type GetDashboardEmbedUrlCommandInput = GetDashboardEmbedUrlRequest; +export type GetDashboardEmbedUrlCommandOutput = GetDashboardEmbedUrlResponse; + +export class GetDashboardEmbedUrlCommand extends $Command< + GetDashboardEmbedUrlCommandInput, + GetDashboardEmbedUrlCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: GetDashboardEmbedUrlCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + GetDashboardEmbedUrlCommandInput, + GetDashboardEmbedUrlCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: GetDashboardEmbedUrlCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1GetDashboardEmbedUrlCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1GetDashboardEmbedUrlCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListDashboardVersionsCommand.ts b/clients/client-quicksight/commands/ListDashboardVersionsCommand.ts new file mode 100644 index 000000000000..9d574e74599e --- /dev/null +++ b/clients/client-quicksight/commands/ListDashboardVersionsCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + ListDashboardVersionsRequest, + ListDashboardVersionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1ListDashboardVersionsCommand, + serializeAws_restJson1_1ListDashboardVersionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListDashboardVersionsCommandInput = ListDashboardVersionsRequest; +export type ListDashboardVersionsCommandOutput = ListDashboardVersionsResponse; + +export class ListDashboardVersionsCommand extends $Command< + ListDashboardVersionsCommandInput, + ListDashboardVersionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListDashboardVersionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + ListDashboardVersionsCommandInput, + ListDashboardVersionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListDashboardVersionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListDashboardVersionsCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListDashboardVersionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListDashboardsCommand.ts b/clients/client-quicksight/commands/ListDashboardsCommand.ts new file mode 100644 index 000000000000..cfeb0ab6509c --- /dev/null +++ b/clients/client-quicksight/commands/ListDashboardsCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { ListDashboardsRequest, ListDashboardsResponse } from "../models/index"; +import { + deserializeAws_restJson1_1ListDashboardsCommand, + serializeAws_restJson1_1ListDashboardsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListDashboardsCommandInput = ListDashboardsRequest; +export type ListDashboardsCommandOutput = ListDashboardsResponse; + +export class ListDashboardsCommand extends $Command< + ListDashboardsCommandInput, + ListDashboardsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListDashboardsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListDashboardsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListDashboardsCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListDashboardsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListDataSetsCommand.ts b/clients/client-quicksight/commands/ListDataSetsCommand.ts new file mode 100644 index 000000000000..e174aef22efc --- /dev/null +++ b/clients/client-quicksight/commands/ListDataSetsCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { ListDataSetsRequest, ListDataSetsResponse } from "../models/index"; +import { + deserializeAws_restJson1_1ListDataSetsCommand, + serializeAws_restJson1_1ListDataSetsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListDataSetsCommandInput = ListDataSetsRequest; +export type ListDataSetsCommandOutput = ListDataSetsResponse; + +export class ListDataSetsCommand extends $Command< + ListDataSetsCommandInput, + ListDataSetsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListDataSetsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListDataSetsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListDataSetsCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListDataSetsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListDataSourcesCommand.ts b/clients/client-quicksight/commands/ListDataSourcesCommand.ts new file mode 100644 index 000000000000..e58dfbfafee6 --- /dev/null +++ b/clients/client-quicksight/commands/ListDataSourcesCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + ListDataSourcesRequest, + ListDataSourcesResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1ListDataSourcesCommand, + serializeAws_restJson1_1ListDataSourcesCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListDataSourcesCommandInput = ListDataSourcesRequest; +export type ListDataSourcesCommandOutput = ListDataSourcesResponse; + +export class ListDataSourcesCommand extends $Command< + ListDataSourcesCommandInput, + ListDataSourcesCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListDataSourcesCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListDataSourcesCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListDataSourcesCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListDataSourcesCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListGroupMembershipsCommand.ts b/clients/client-quicksight/commands/ListGroupMembershipsCommand.ts new file mode 100644 index 000000000000..c5269a01f474 --- /dev/null +++ b/clients/client-quicksight/commands/ListGroupMembershipsCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + ListGroupMembershipsRequest, + ListGroupMembershipsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1ListGroupMembershipsCommand, + serializeAws_restJson1_1ListGroupMembershipsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListGroupMembershipsCommandInput = ListGroupMembershipsRequest; +export type ListGroupMembershipsCommandOutput = ListGroupMembershipsResponse; + +export class ListGroupMembershipsCommand extends $Command< + ListGroupMembershipsCommandInput, + ListGroupMembershipsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListGroupMembershipsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + ListGroupMembershipsCommandInput, + ListGroupMembershipsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListGroupMembershipsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListGroupMembershipsCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListGroupMembershipsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListGroupsCommand.ts b/clients/client-quicksight/commands/ListGroupsCommand.ts new file mode 100644 index 000000000000..187e7893ccd9 --- /dev/null +++ b/clients/client-quicksight/commands/ListGroupsCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { ListGroupsRequest, ListGroupsResponse } from "../models/index"; +import { + deserializeAws_restJson1_1ListGroupsCommand, + serializeAws_restJson1_1ListGroupsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListGroupsCommandInput = ListGroupsRequest; +export type ListGroupsCommandOutput = ListGroupsResponse; + +export class ListGroupsCommand extends $Command< + ListGroupsCommandInput, + ListGroupsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListGroupsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListGroupsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListGroupsCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListGroupsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListIAMPolicyAssignmentsCommand.ts b/clients/client-quicksight/commands/ListIAMPolicyAssignmentsCommand.ts new file mode 100644 index 000000000000..f69adb231f93 --- /dev/null +++ b/clients/client-quicksight/commands/ListIAMPolicyAssignmentsCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + ListIAMPolicyAssignmentsRequest, + ListIAMPolicyAssignmentsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1ListIAMPolicyAssignmentsCommand, + serializeAws_restJson1_1ListIAMPolicyAssignmentsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListIAMPolicyAssignmentsCommandInput = ListIAMPolicyAssignmentsRequest; +export type ListIAMPolicyAssignmentsCommandOutput = ListIAMPolicyAssignmentsResponse; + +export class ListIAMPolicyAssignmentsCommand extends $Command< + ListIAMPolicyAssignmentsCommandInput, + ListIAMPolicyAssignmentsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListIAMPolicyAssignmentsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + ListIAMPolicyAssignmentsCommandInput, + ListIAMPolicyAssignmentsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListIAMPolicyAssignmentsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListIAMPolicyAssignmentsCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListIAMPolicyAssignmentsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListIAMPolicyAssignmentsForUserCommand.ts b/clients/client-quicksight/commands/ListIAMPolicyAssignmentsForUserCommand.ts new file mode 100644 index 000000000000..b025492a5d50 --- /dev/null +++ b/clients/client-quicksight/commands/ListIAMPolicyAssignmentsForUserCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + ListIAMPolicyAssignmentsForUserRequest, + ListIAMPolicyAssignmentsForUserResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCommand, + serializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListIAMPolicyAssignmentsForUserCommandInput = ListIAMPolicyAssignmentsForUserRequest; +export type ListIAMPolicyAssignmentsForUserCommandOutput = ListIAMPolicyAssignmentsForUserResponse; + +export class ListIAMPolicyAssignmentsForUserCommand extends $Command< + ListIAMPolicyAssignmentsForUserCommandInput, + ListIAMPolicyAssignmentsForUserCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListIAMPolicyAssignmentsForUserCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + ListIAMPolicyAssignmentsForUserCommandInput, + ListIAMPolicyAssignmentsForUserCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListIAMPolicyAssignmentsForUserCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListIngestionsCommand.ts b/clients/client-quicksight/commands/ListIngestionsCommand.ts new file mode 100644 index 000000000000..ba86d90a66f2 --- /dev/null +++ b/clients/client-quicksight/commands/ListIngestionsCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { ListIngestionsRequest, ListIngestionsResponse } from "../models/index"; +import { + deserializeAws_restJson1_1ListIngestionsCommand, + serializeAws_restJson1_1ListIngestionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListIngestionsCommandInput = ListIngestionsRequest; +export type ListIngestionsCommandOutput = ListIngestionsResponse; + +export class ListIngestionsCommand extends $Command< + ListIngestionsCommandInput, + ListIngestionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListIngestionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListIngestionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListIngestionsCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListIngestionsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListTagsForResourceCommand.ts b/clients/client-quicksight/commands/ListTagsForResourceCommand.ts new file mode 100644 index 000000000000..473de17817fd --- /dev/null +++ b/clients/client-quicksight/commands/ListTagsForResourceCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + ListTagsForResourceRequest, + ListTagsForResourceResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1ListTagsForResourceCommand, + serializeAws_restJson1_1ListTagsForResourceCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListTagsForResourceCommandInput = ListTagsForResourceRequest; +export type ListTagsForResourceCommandOutput = ListTagsForResourceResponse; + +export class ListTagsForResourceCommand extends $Command< + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListTagsForResourceCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListTagsForResourceCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListTagsForResourceCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListTagsForResourceCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListTemplateAliasesCommand.ts b/clients/client-quicksight/commands/ListTemplateAliasesCommand.ts new file mode 100644 index 000000000000..c17bfcc3fbeb --- /dev/null +++ b/clients/client-quicksight/commands/ListTemplateAliasesCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + ListTemplateAliasesRequest, + ListTemplateAliasesResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1ListTemplateAliasesCommand, + serializeAws_restJson1_1ListTemplateAliasesCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListTemplateAliasesCommandInput = ListTemplateAliasesRequest; +export type ListTemplateAliasesCommandOutput = ListTemplateAliasesResponse; + +export class ListTemplateAliasesCommand extends $Command< + ListTemplateAliasesCommandInput, + ListTemplateAliasesCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListTemplateAliasesCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + ListTemplateAliasesCommandInput, + ListTemplateAliasesCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListTemplateAliasesCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListTemplateAliasesCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListTemplateAliasesCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListTemplateVersionsCommand.ts b/clients/client-quicksight/commands/ListTemplateVersionsCommand.ts new file mode 100644 index 000000000000..419ee1eec028 --- /dev/null +++ b/clients/client-quicksight/commands/ListTemplateVersionsCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + ListTemplateVersionsRequest, + ListTemplateVersionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1ListTemplateVersionsCommand, + serializeAws_restJson1_1ListTemplateVersionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListTemplateVersionsCommandInput = ListTemplateVersionsRequest; +export type ListTemplateVersionsCommandOutput = ListTemplateVersionsResponse; + +export class ListTemplateVersionsCommand extends $Command< + ListTemplateVersionsCommandInput, + ListTemplateVersionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListTemplateVersionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + ListTemplateVersionsCommandInput, + ListTemplateVersionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListTemplateVersionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListTemplateVersionsCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListTemplateVersionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListTemplatesCommand.ts b/clients/client-quicksight/commands/ListTemplatesCommand.ts new file mode 100644 index 000000000000..22f2df8c38dd --- /dev/null +++ b/clients/client-quicksight/commands/ListTemplatesCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { ListTemplatesRequest, ListTemplatesResponse } from "../models/index"; +import { + deserializeAws_restJson1_1ListTemplatesCommand, + serializeAws_restJson1_1ListTemplatesCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListTemplatesCommandInput = ListTemplatesRequest; +export type ListTemplatesCommandOutput = ListTemplatesResponse; + +export class ListTemplatesCommand extends $Command< + ListTemplatesCommandInput, + ListTemplatesCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListTemplatesCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListTemplatesCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListTemplatesCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListTemplatesCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListUserGroupsCommand.ts b/clients/client-quicksight/commands/ListUserGroupsCommand.ts new file mode 100644 index 000000000000..9f7e2d2a177c --- /dev/null +++ b/clients/client-quicksight/commands/ListUserGroupsCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { ListUserGroupsRequest, ListUserGroupsResponse } from "../models/index"; +import { + deserializeAws_restJson1_1ListUserGroupsCommand, + serializeAws_restJson1_1ListUserGroupsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListUserGroupsCommandInput = ListUserGroupsRequest; +export type ListUserGroupsCommandOutput = ListUserGroupsResponse; + +export class ListUserGroupsCommand extends $Command< + ListUserGroupsCommandInput, + ListUserGroupsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListUserGroupsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListUserGroupsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListUserGroupsCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListUserGroupsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/ListUsersCommand.ts b/clients/client-quicksight/commands/ListUsersCommand.ts new file mode 100644 index 000000000000..306306df6f5a --- /dev/null +++ b/clients/client-quicksight/commands/ListUsersCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { ListUsersRequest, ListUsersResponse } from "../models/index"; +import { + deserializeAws_restJson1_1ListUsersCommand, + serializeAws_restJson1_1ListUsersCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type ListUsersCommandInput = ListUsersRequest; +export type ListUsersCommandOutput = ListUsersResponse; + +export class ListUsersCommand extends $Command< + ListUsersCommandInput, + ListUsersCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: ListUsersCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: ListUsersCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1ListUsersCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1ListUsersCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/RegisterUserCommand.ts b/clients/client-quicksight/commands/RegisterUserCommand.ts new file mode 100644 index 000000000000..9c34f015ff8a --- /dev/null +++ b/clients/client-quicksight/commands/RegisterUserCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { RegisterUserRequest, RegisterUserResponse } from "../models/index"; +import { + deserializeAws_restJson1_1RegisterUserCommand, + serializeAws_restJson1_1RegisterUserCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type RegisterUserCommandInput = RegisterUserRequest; +export type RegisterUserCommandOutput = RegisterUserResponse; + +export class RegisterUserCommand extends $Command< + RegisterUserCommandInput, + RegisterUserCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: RegisterUserCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: RegisterUserCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1RegisterUserCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1RegisterUserCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/TagResourceCommand.ts b/clients/client-quicksight/commands/TagResourceCommand.ts new file mode 100644 index 000000000000..0cb64675e9ac --- /dev/null +++ b/clients/client-quicksight/commands/TagResourceCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { TagResourceRequest, TagResourceResponse } from "../models/index"; +import { + deserializeAws_restJson1_1TagResourceCommand, + serializeAws_restJson1_1TagResourceCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type TagResourceCommandInput = TagResourceRequest; +export type TagResourceCommandOutput = TagResourceResponse; + +export class TagResourceCommand extends $Command< + TagResourceCommandInput, + TagResourceCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: TagResourceCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: TagResourceCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1TagResourceCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1TagResourceCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UntagResourceCommand.ts b/clients/client-quicksight/commands/UntagResourceCommand.ts new file mode 100644 index 000000000000..5da18cf93986 --- /dev/null +++ b/clients/client-quicksight/commands/UntagResourceCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { UntagResourceRequest, UntagResourceResponse } from "../models/index"; +import { + deserializeAws_restJson1_1UntagResourceCommand, + serializeAws_restJson1_1UntagResourceCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UntagResourceCommandInput = UntagResourceRequest; +export type UntagResourceCommandOutput = UntagResourceResponse; + +export class UntagResourceCommand extends $Command< + UntagResourceCommandInput, + UntagResourceCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UntagResourceCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UntagResourceCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UntagResourceCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UntagResourceCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateDashboardCommand.ts b/clients/client-quicksight/commands/UpdateDashboardCommand.ts new file mode 100644 index 000000000000..298673a7e459 --- /dev/null +++ b/clients/client-quicksight/commands/UpdateDashboardCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + UpdateDashboardRequest, + UpdateDashboardResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1UpdateDashboardCommand, + serializeAws_restJson1_1UpdateDashboardCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateDashboardCommandInput = UpdateDashboardRequest; +export type UpdateDashboardCommandOutput = UpdateDashboardResponse; + +export class UpdateDashboardCommand extends $Command< + UpdateDashboardCommandInput, + UpdateDashboardCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateDashboardCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateDashboardCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateDashboardCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateDashboardCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateDashboardPermissionsCommand.ts b/clients/client-quicksight/commands/UpdateDashboardPermissionsCommand.ts new file mode 100644 index 000000000000..2130ac38697c --- /dev/null +++ b/clients/client-quicksight/commands/UpdateDashboardPermissionsCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + UpdateDashboardPermissionsRequest, + UpdateDashboardPermissionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1UpdateDashboardPermissionsCommand, + serializeAws_restJson1_1UpdateDashboardPermissionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateDashboardPermissionsCommandInput = UpdateDashboardPermissionsRequest; +export type UpdateDashboardPermissionsCommandOutput = UpdateDashboardPermissionsResponse; + +export class UpdateDashboardPermissionsCommand extends $Command< + UpdateDashboardPermissionsCommandInput, + UpdateDashboardPermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateDashboardPermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + UpdateDashboardPermissionsCommandInput, + UpdateDashboardPermissionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateDashboardPermissionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateDashboardPermissionsCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateDashboardPermissionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateDashboardPublishedVersionCommand.ts b/clients/client-quicksight/commands/UpdateDashboardPublishedVersionCommand.ts new file mode 100644 index 000000000000..bc7bc6de1ead --- /dev/null +++ b/clients/client-quicksight/commands/UpdateDashboardPublishedVersionCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + UpdateDashboardPublishedVersionRequest, + UpdateDashboardPublishedVersionResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1UpdateDashboardPublishedVersionCommand, + serializeAws_restJson1_1UpdateDashboardPublishedVersionCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateDashboardPublishedVersionCommandInput = UpdateDashboardPublishedVersionRequest; +export type UpdateDashboardPublishedVersionCommandOutput = UpdateDashboardPublishedVersionResponse; + +export class UpdateDashboardPublishedVersionCommand extends $Command< + UpdateDashboardPublishedVersionCommandInput, + UpdateDashboardPublishedVersionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateDashboardPublishedVersionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + UpdateDashboardPublishedVersionCommandInput, + UpdateDashboardPublishedVersionCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateDashboardPublishedVersionCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateDashboardPublishedVersionCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateDashboardPublishedVersionCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateDataSetCommand.ts b/clients/client-quicksight/commands/UpdateDataSetCommand.ts new file mode 100644 index 000000000000..e3d259827b85 --- /dev/null +++ b/clients/client-quicksight/commands/UpdateDataSetCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { UpdateDataSetRequest, UpdateDataSetResponse } from "../models/index"; +import { + deserializeAws_restJson1_1UpdateDataSetCommand, + serializeAws_restJson1_1UpdateDataSetCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateDataSetCommandInput = UpdateDataSetRequest; +export type UpdateDataSetCommandOutput = UpdateDataSetResponse; + +export class UpdateDataSetCommand extends $Command< + UpdateDataSetCommandInput, + UpdateDataSetCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateDataSetCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateDataSetCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateDataSetCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateDataSetCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateDataSetPermissionsCommand.ts b/clients/client-quicksight/commands/UpdateDataSetPermissionsCommand.ts new file mode 100644 index 000000000000..2ebb9c13d93a --- /dev/null +++ b/clients/client-quicksight/commands/UpdateDataSetPermissionsCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + UpdateDataSetPermissionsRequest, + UpdateDataSetPermissionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1UpdateDataSetPermissionsCommand, + serializeAws_restJson1_1UpdateDataSetPermissionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateDataSetPermissionsCommandInput = UpdateDataSetPermissionsRequest; +export type UpdateDataSetPermissionsCommandOutput = UpdateDataSetPermissionsResponse; + +export class UpdateDataSetPermissionsCommand extends $Command< + UpdateDataSetPermissionsCommandInput, + UpdateDataSetPermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateDataSetPermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + UpdateDataSetPermissionsCommandInput, + UpdateDataSetPermissionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateDataSetPermissionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateDataSetPermissionsCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateDataSetPermissionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateDataSourceCommand.ts b/clients/client-quicksight/commands/UpdateDataSourceCommand.ts new file mode 100644 index 000000000000..8d26e1fb243e --- /dev/null +++ b/clients/client-quicksight/commands/UpdateDataSourceCommand.ts @@ -0,0 +1,84 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + UpdateDataSourceRequest, + UpdateDataSourceResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1UpdateDataSourceCommand, + serializeAws_restJson1_1UpdateDataSourceCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateDataSourceCommandInput = UpdateDataSourceRequest; +export type UpdateDataSourceCommandOutput = UpdateDataSourceResponse; + +export class UpdateDataSourceCommand extends $Command< + UpdateDataSourceCommandInput, + UpdateDataSourceCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateDataSourceCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateDataSourceCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateDataSourceCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateDataSourceCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateDataSourcePermissionsCommand.ts b/clients/client-quicksight/commands/UpdateDataSourcePermissionsCommand.ts new file mode 100644 index 000000000000..43027696df23 --- /dev/null +++ b/clients/client-quicksight/commands/UpdateDataSourcePermissionsCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + UpdateDataSourcePermissionsRequest, + UpdateDataSourcePermissionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1UpdateDataSourcePermissionsCommand, + serializeAws_restJson1_1UpdateDataSourcePermissionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateDataSourcePermissionsCommandInput = UpdateDataSourcePermissionsRequest; +export type UpdateDataSourcePermissionsCommandOutput = UpdateDataSourcePermissionsResponse; + +export class UpdateDataSourcePermissionsCommand extends $Command< + UpdateDataSourcePermissionsCommandInput, + UpdateDataSourcePermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateDataSourcePermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + UpdateDataSourcePermissionsCommandInput, + UpdateDataSourcePermissionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateDataSourcePermissionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateDataSourcePermissionsCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateDataSourcePermissionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateGroupCommand.ts b/clients/client-quicksight/commands/UpdateGroupCommand.ts new file mode 100644 index 000000000000..f0d2b75c1c6c --- /dev/null +++ b/clients/client-quicksight/commands/UpdateGroupCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { UpdateGroupRequest, UpdateGroupResponse } from "../models/index"; +import { + deserializeAws_restJson1_1UpdateGroupCommand, + serializeAws_restJson1_1UpdateGroupCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateGroupCommandInput = UpdateGroupRequest; +export type UpdateGroupCommandOutput = UpdateGroupResponse; + +export class UpdateGroupCommand extends $Command< + UpdateGroupCommandInput, + UpdateGroupCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateGroupCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateGroupCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateGroupCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateGroupCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateIAMPolicyAssignmentCommand.ts b/clients/client-quicksight/commands/UpdateIAMPolicyAssignmentCommand.ts new file mode 100644 index 000000000000..508375b59789 --- /dev/null +++ b/clients/client-quicksight/commands/UpdateIAMPolicyAssignmentCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + UpdateIAMPolicyAssignmentRequest, + UpdateIAMPolicyAssignmentResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1UpdateIAMPolicyAssignmentCommand, + serializeAws_restJson1_1UpdateIAMPolicyAssignmentCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateIAMPolicyAssignmentCommandInput = UpdateIAMPolicyAssignmentRequest; +export type UpdateIAMPolicyAssignmentCommandOutput = UpdateIAMPolicyAssignmentResponse; + +export class UpdateIAMPolicyAssignmentCommand extends $Command< + UpdateIAMPolicyAssignmentCommandInput, + UpdateIAMPolicyAssignmentCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateIAMPolicyAssignmentCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + UpdateIAMPolicyAssignmentCommandInput, + UpdateIAMPolicyAssignmentCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateIAMPolicyAssignmentCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateIAMPolicyAssignmentCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateIAMPolicyAssignmentCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateTemplateAliasCommand.ts b/clients/client-quicksight/commands/UpdateTemplateAliasCommand.ts new file mode 100644 index 000000000000..d6489ffd0087 --- /dev/null +++ b/clients/client-quicksight/commands/UpdateTemplateAliasCommand.ts @@ -0,0 +1,90 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + UpdateTemplateAliasRequest, + UpdateTemplateAliasResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1UpdateTemplateAliasCommand, + serializeAws_restJson1_1UpdateTemplateAliasCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateTemplateAliasCommandInput = UpdateTemplateAliasRequest; +export type UpdateTemplateAliasCommandOutput = UpdateTemplateAliasResponse; + +export class UpdateTemplateAliasCommand extends $Command< + UpdateTemplateAliasCommandInput, + UpdateTemplateAliasCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateTemplateAliasCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + UpdateTemplateAliasCommandInput, + UpdateTemplateAliasCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateTemplateAliasCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateTemplateAliasCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateTemplateAliasCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateTemplateCommand.ts b/clients/client-quicksight/commands/UpdateTemplateCommand.ts new file mode 100644 index 000000000000..49f29ee7c3a0 --- /dev/null +++ b/clients/client-quicksight/commands/UpdateTemplateCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { UpdateTemplateRequest, UpdateTemplateResponse } from "../models/index"; +import { + deserializeAws_restJson1_1UpdateTemplateCommand, + serializeAws_restJson1_1UpdateTemplateCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateTemplateCommandInput = UpdateTemplateRequest; +export type UpdateTemplateCommandOutput = UpdateTemplateResponse; + +export class UpdateTemplateCommand extends $Command< + UpdateTemplateCommandInput, + UpdateTemplateCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateTemplateCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateTemplateCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateTemplateCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateTemplateCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateTemplatePermissionsCommand.ts b/clients/client-quicksight/commands/UpdateTemplatePermissionsCommand.ts new file mode 100644 index 000000000000..93ffdde0145f --- /dev/null +++ b/clients/client-quicksight/commands/UpdateTemplatePermissionsCommand.ts @@ -0,0 +1,93 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { + UpdateTemplatePermissionsRequest, + UpdateTemplatePermissionsResponse +} from "../models/index"; +import { + deserializeAws_restJson1_1UpdateTemplatePermissionsCommand, + serializeAws_restJson1_1UpdateTemplatePermissionsCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateTemplatePermissionsCommandInput = UpdateTemplatePermissionsRequest; +export type UpdateTemplatePermissionsCommandOutput = UpdateTemplatePermissionsResponse; + +export class UpdateTemplatePermissionsCommand extends $Command< + UpdateTemplatePermissionsCommandInput, + UpdateTemplatePermissionsCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateTemplatePermissionsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler< + UpdateTemplatePermissionsCommandInput, + UpdateTemplatePermissionsCommandOutput + > { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateTemplatePermissionsCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateTemplatePermissionsCommand( + input, + context + ); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateTemplatePermissionsCommand( + output, + context + ); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/commands/UpdateUserCommand.ts b/clients/client-quicksight/commands/UpdateUserCommand.ts new file mode 100644 index 000000000000..20603b03e63d --- /dev/null +++ b/clients/client-quicksight/commands/UpdateUserCommand.ts @@ -0,0 +1,81 @@ +import { + QuickSightClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes +} from "../QuickSightClient"; +import { UpdateUserRequest, UpdateUserResponse } from "../models/index"; +import { + deserializeAws_restJson1_1UpdateUserCommand, + serializeAws_restJson1_1UpdateUserCommand +} from "../protocols/Aws_restJson1_1"; +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, + MiddlewareStack, + SerdeContext, + HttpHandlerOptions as __HttpHandlerOptions +} from "@aws-sdk/types"; + +export type UpdateUserCommandInput = UpdateUserRequest; +export type UpdateUserCommandOutput = UpdateUserResponse; + +export class UpdateUserCommand extends $Command< + UpdateUserCommandInput, + UpdateUserCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + constructor(readonly input: UpdateUserCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: QuickSightClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use( + getSerdePlugin(configuration, this.serialize, this.deserialize) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const handlerExecutionContext: HandlerExecutionContext = { + logger: {} as any + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + private serialize( + input: UpdateUserCommandInput, + context: SerdeContext + ): Promise<__HttpRequest> { + return serializeAws_restJson1_1UpdateUserCommand(input, context); + } + + private deserialize( + output: __HttpResponse, + context: SerdeContext + ): Promise { + return deserializeAws_restJson1_1UpdateUserCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-quicksight/endpoints.ts b/clients/client-quicksight/endpoints.ts new file mode 100644 index 000000000000..d1fb969fce68 --- /dev/null +++ b/clients/client-quicksight/endpoints.ts @@ -0,0 +1,78 @@ +import { RegionInfo, RegionInfoProvider } from "@aws-sdk/types"; + +// Partition default templates +const AWS_TEMPLATE = "quicksight.{region}.amazonaws.com"; +const AWS_CN_TEMPLATE = "quicksight.{region}.amazonaws.com.cn"; +const AWS_ISO_TEMPLATE = "quicksight.{region}.c2s.ic.gov"; +const AWS_ISO_B_TEMPLATE = "quicksight.{region}.sc2s.sgov.gov"; +const AWS_US_GOV_TEMPLATE = "quicksight.{region}.amazonaws.com"; + +// Partition regions +const AWS_REGIONS = new Set([ + "ap-south-1", + "eu-north-1", + "eu-west-3", + "eu-west-2", + "eu-west-1", + "ap-northeast-2", + "ap-northeast-1", + "me-south-1", + "ca-central-1", + "sa-east-1", + "ap-east-1", + "ap-southeast-1", + "ap-southeast-2", + "eu-central-1", + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2" +]); +const AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]); +const AWS_ISO_REGIONS = new Set(["us-iso-east-1"]); +const AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]); +const AWS_US_GOV_REGIONS = new Set(["us-gov-west-1", "us-gov-east-1"]); + +export const defaultRegionInfoProvider: RegionInfoProvider = ( + region: string, + options?: any +) => { + let regionInfo: RegionInfo | undefined = undefined; + switch (region) { + // First, try to match exact region names. + // Next, try to match partition endpoints. + default: + if (AWS_REGIONS.has(region)) { + regionInfo = { + hostname: AWS_TEMPLATE.replace("{region}", region) + }; + } + if (AWS_CN_REGIONS.has(region)) { + regionInfo = { + hostname: AWS_CN_TEMPLATE.replace("{region}", region) + }; + } + if (AWS_ISO_REGIONS.has(region)) { + regionInfo = { + hostname: AWS_ISO_TEMPLATE.replace("{region}", region) + }; + } + if (AWS_ISO_B_REGIONS.has(region)) { + regionInfo = { + hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region) + }; + } + if (AWS_US_GOV_REGIONS.has(region)) { + regionInfo = { + hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region) + }; + } + // Finally, assume it's an AWS partition endpoint. + if (regionInfo === undefined) { + regionInfo = { + hostname: AWS_TEMPLATE.replace("{region}", region) + }; + } + } + return Promise.resolve(regionInfo); +}; diff --git a/clients/client-quicksight/index.ts b/clients/client-quicksight/index.ts new file mode 100644 index 000000000000..ab360f02bf7a --- /dev/null +++ b/clients/client-quicksight/index.ts @@ -0,0 +1,67 @@ +export * from "./QuickSightClient"; +export * from "./QuickSight"; +export * from "./commands/DeleteDataSourceCommand"; +export * from "./commands/ListTemplateVersionsCommand"; +export * from "./commands/DescribeGroupCommand"; +export * from "./commands/DeleteGroupMembershipCommand"; +export * from "./commands/ListUserGroupsCommand"; +export * from "./commands/ListDashboardVersionsCommand"; +export * from "./commands/GetDashboardEmbedUrlCommand"; +export * from "./commands/DescribeTemplateAliasCommand"; +export * from "./commands/DescribeDataSetCommand"; +export * from "./commands/DescribeUserCommand"; +export * from "./commands/CreateGroupMembershipCommand"; +export * from "./commands/UpdateTemplatePermissionsCommand"; +export * from "./commands/ListUsersCommand"; +export * from "./commands/DescribeTemplateCommand"; +export * from "./commands/CreateIngestionCommand"; +export * from "./commands/ListGroupsCommand"; +export * from "./commands/UpdateTemplateCommand"; +export * from "./commands/DescribeDataSourceCommand"; +export * from "./commands/DeleteTemplateAliasCommand"; +export * from "./commands/DeleteUserCommand"; +export * from "./commands/DeleteTemplateCommand"; +export * from "./commands/DeleteGroupCommand"; +export * from "./commands/UpdateDashboardPublishedVersionCommand"; +export * from "./commands/ListGroupMembershipsCommand"; +export * from "./commands/ListDataSetsCommand"; +export * from "./commands/CreateTemplateCommand"; +export * from "./commands/CreateDashboardCommand"; +export * from "./commands/UpdateDataSourcePermissionsCommand"; +export * from "./commands/ListTemplatesCommand"; +export * from "./commands/UpdateDashboardPermissionsCommand"; +export * from "./commands/DeleteDashboardCommand"; +export * from "./commands/DescribeIngestionCommand"; +export * from "./commands/UpdateUserCommand"; +export * from "./commands/DescribeTemplatePermissionsCommand"; +export * from "./commands/RegisterUserCommand"; +export * from "./commands/UntagResourceCommand"; +export * from "./commands/DeleteUserByPrincipalIdCommand"; +export * from "./commands/TagResourceCommand"; +export * from "./commands/UpdateGroupCommand"; +export * from "./commands/DescribeDataSourcePermissionsCommand"; +export * from "./commands/CreateDataSourceCommand"; +export * from "./commands/CreateDataSetCommand"; +export * from "./commands/ListIngestionsCommand"; +export * from "./commands/UpdateDataSetPermissionsCommand"; +export * from "./commands/DescribeDashboardPermissionsCommand"; +export * from "./commands/CancelIngestionCommand"; +export * from "./commands/UpdateIAMPolicyAssignmentCommand"; +export * from "./commands/CreateIAMPolicyAssignmentCommand"; +export * from "./commands/UpdateDashboardCommand"; +export * from "./commands/CreateGroupCommand"; +export * from "./commands/UpdateDataSourceCommand"; +export * from "./commands/ListIAMPolicyAssignmentsForUserCommand"; +export * from "./commands/ListDashboardsCommand"; +export * from "./commands/DescribeIAMPolicyAssignmentCommand"; +export * from "./commands/DescribeDashboardCommand"; +export * from "./commands/ListTemplateAliasesCommand"; +export * from "./commands/ListDataSourcesCommand"; +export * from "./commands/UpdateDataSetCommand"; +export * from "./commands/ListTagsForResourceCommand"; +export * from "./commands/DeleteDataSetCommand"; +export * from "./commands/DeleteIAMPolicyAssignmentCommand"; +export * from "./commands/ListIAMPolicyAssignmentsCommand"; +export * from "./commands/CreateTemplateAliasCommand"; +export * from "./commands/UpdateTemplateAliasCommand"; +export * from "./commands/DescribeDataSetPermissionsCommand"; diff --git a/clients/client-quicksight/models/index.ts b/clients/client-quicksight/models/index.ts new file mode 100644 index 000000000000..5f216d286802 --- /dev/null +++ b/clients/client-quicksight/models/index.ts @@ -0,0 +1,8818 @@ +import * as _smithy from "@aws-sdk/smithy-client"; +import { MetadataBearer as $MetadataBearer } from "@aws-sdk/types"; + +/** + * + *

The active AWS Identity and Access Management (IAM) policy assignment.

+ * + */ +export interface ActiveIAMPolicyAssignment { + __type?: "ActiveIAMPolicyAssignment"; + /** + * + *

A name for the IAM policy assignment.

+ * + */ + AssignmentName?: string; + + /** + * + *

The Amazon Resource Name (ARN) of the resource.

+ * + */ + PolicyArn?: string; +} + +export namespace ActiveIAMPolicyAssignment { + export function isa(o: any): o is ActiveIAMPolicyAssignment { + return _smithy.isa(o, "ActiveIAMPolicyAssignment"); + } +} + +/** + * + *

Ad hoc (one-time) filtering option.

+ * + */ +export interface AdHocFilteringOption { + __type?: "AdHocFilteringOption"; + /** + * + *

Availability status.

+ * + */ + AvailabilityStatus?: DashboardBehavior | string; +} + +export namespace AdHocFilteringOption { + export function isa(o: any): o is AdHocFilteringOption { + return _smithy.isa(o, "AdHocFilteringOption"); + } +} + +/** + * + *

Amazon Elasticsearch Service parameters.

+ * + */ +export interface AmazonElasticsearchParameters { + __type?: "AmazonElasticsearchParameters"; + /** + * + *

The Amazon Elasticsearch Service domain.

+ * + */ + Domain: string | undefined; +} + +export namespace AmazonElasticsearchParameters { + export function isa(o: any): o is AmazonElasticsearchParameters { + return _smithy.isa(o, "AmazonElasticsearchParameters"); + } +} + +export enum AssignmentStatus { + DISABLED = "DISABLED", + DRAFT = "DRAFT", + ENABLED = "ENABLED" +} + +/** + * + *

Amazon Athena parameters.

+ * + */ +export interface AthenaParameters { + __type?: "AthenaParameters"; + /** + * + *

The workgroup that Amazon Athena uses.

+ * + */ + WorkGroup?: string; +} + +export namespace AthenaParameters { + export function isa(o: any): o is AthenaParameters { + return _smithy.isa(o, "AthenaParameters"); + } +} + +/** + * + *

Amazon Aurora parameters.

+ * + */ +export interface AuroraParameters { + __type?: "AuroraParameters"; + /** + * + *

Database.

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

Host.

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

Port.

+ * + */ + Port: number | undefined; +} + +export namespace AuroraParameters { + export function isa(o: any): o is AuroraParameters { + return _smithy.isa(o, "AuroraParameters"); + } +} + +/** + * + *

Amazon Aurora with PostgreSQL compatibility parameters.

+ * + */ +export interface AuroraPostgreSqlParameters { + __type?: "AuroraPostgreSqlParameters"; + /** + * + *

Database.

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

Host.

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

Port.

+ * + */ + Port: number | undefined; +} + +export namespace AuroraPostgreSqlParameters { + export function isa(o: any): o is AuroraPostgreSqlParameters { + return _smithy.isa(o, "AuroraPostgreSqlParameters"); + } +} + +/** + * + *

AWS IoT Analytics parameters.

+ * + */ +export interface AwsIotAnalyticsParameters { + __type?: "AwsIotAnalyticsParameters"; + /** + * + *

Dataset name.

+ * + */ + DataSetName: string | undefined; +} + +export namespace AwsIotAnalyticsParameters { + export function isa(o: any): o is AwsIotAnalyticsParameters { + return _smithy.isa(o, "AwsIotAnalyticsParameters"); + } +} + +/** + * + *

A calculated column for a dataset.

+ * + */ +export interface CalculatedColumn { + __type?: "CalculatedColumn"; + /** + * + *

A unique ID to identify a calculated column. During dataset update, if the column ID of + * a calculated column matches that of an existing calculated column, QuickSight preserves the + * existing calculated column.

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

Column name.

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

An expression that defines the calculated column.

+ * + */ + Expression: string | undefined; +} + +export namespace CalculatedColumn { + export function isa(o: any): o is CalculatedColumn { + return _smithy.isa(o, "CalculatedColumn"); + } +} + +export interface CancelIngestionRequest { + __type?: "CancelIngestionRequest"; + /** + * + *

The AWS 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; +} + +export namespace CancelIngestionRequest { + export function isa(o: any): o is CancelIngestionRequest { + return _smithy.isa(o, "CancelIngestionRequest"); + } +} + +export interface CancelIngestionResponse extends $MetadataBearer { + __type?: "CancelIngestionResponse"; + /** + * + *

The Amazon Resource Name (ARN) for the data ingestion.

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

An ID for the ingestion.

+ * + */ + IngestionId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace CancelIngestionResponse { + export function isa(o: any): o is CancelIngestionResponse { + return _smithy.isa(o, "CancelIngestionResponse"); + } +} + +/** + * + *

A transform operation that casts a column to a different type.

+ * + */ +export interface CastColumnTypeOperation { + __type?: "CastColumnTypeOperation"; + /** + * + *

Column name.

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

When casting a column from string to datetime type, you can supply a QuickSight + * supported format string to denote the source data format.

+ * + */ + Format?: string; + + /** + * + *

New column data type.

+ * + */ + NewColumnType: ColumnDataType | string | undefined; +} + +export namespace CastColumnTypeOperation { + export function isa(o: any): o is CastColumnTypeOperation { + return _smithy.isa(o, "CastColumnTypeOperation"); + } +} + +/** + * + *

Groupings of columns that work together in certain QuickSight features. This is a + * variant type structure. No more than one of the attributes should be non-null for this + * structure to be valid.

+ * + */ +export interface ColumnGroup { + __type?: "ColumnGroup"; + /** + * + *

Geospatial column group that denotes a hierarchy.

+ * + */ + GeoSpatialColumnGroup?: GeoSpatialColumnGroup; +} + +export namespace ColumnGroup { + export function isa(o: any): o is ColumnGroup { + return _smithy.isa(o, "ColumnGroup"); + } +} + +/** + * + *

A structure describing the name, datatype, and geographic role of the columns.

+ * + */ +export interface ColumnGroupColumnSchema { + __type?: "ColumnGroupColumnSchema"; + /** + * + *

The name of the column group's column schema.

+ * + */ + Name?: string; +} + +export namespace ColumnGroupColumnSchema { + export function isa(o: any): o is ColumnGroupColumnSchema { + return _smithy.isa(o, "ColumnGroupColumnSchema"); + } +} + +/** + * + *

The column group schema.

+ * + */ +export interface ColumnGroupSchema { + __type?: "ColumnGroupSchema"; + /** + * + *

A structure containing the list of column group column schemas.

+ * + */ + ColumnGroupColumnSchemaList?: Array; + + /** + * + *

The name of the column group schema.

+ * + */ + Name?: string; +} + +export namespace ColumnGroupSchema { + export function isa(o: any): o is ColumnGroupSchema { + return _smithy.isa(o, "ColumnGroupSchema"); + } +} + +/** + * + *

The column schema.

+ * + */ +export interface ColumnSchema { + __type?: "ColumnSchema"; + /** + * + *

The data type of the column schema.

+ * + */ + DataType?: string; + + /** + * + *

The geographic role of the column schema.

+ * + */ + GeographicRole?: string; + + /** + * + *

The name of the column schema.

+ * + */ + Name?: string; +} + +export namespace ColumnSchema { + export function isa(o: any): o is ColumnSchema { + return _smithy.isa(o, "ColumnSchema"); + } +} + +/** + * + *

A tag for a column in a TagColumnOperation. This is a variant type structure. No more + * than one of the attributes should be non-null for this structure to be valid.

+ * + */ +export interface ColumnTag { + __type?: "ColumnTag"; + /** + * + *

A geospatial role for a column.

+ * + */ + ColumnGeographicRole?: GeoSpatialDataRole | string; +} + +export namespace ColumnTag { + export function isa(o: any): o is ColumnTag { + return _smithy.isa(o, "ColumnTag"); + } +} + +/** + * + *

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

+ * + */ +export interface ConcurrentUpdatingException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "ConcurrentUpdatingException"; + $fault: "server"; + Message?: string; + RequestId?: string; +} + +export namespace ConcurrentUpdatingException { + export function isa(o: any): o is ConcurrentUpdatingException { + return _smithy.isa(o, "ConcurrentUpdatingException"); + } +} + +/** + * + *

A transform operation that creates calculated columns. Columns created in one such + * operation form a lexical closure.

+ * + */ +export interface CreateColumnsOperation { + __type?: "CreateColumnsOperation"; + /** + * + *

Calculated columns to create.

+ * + */ + Columns: Array | undefined; +} + +export namespace CreateColumnsOperation { + export function isa(o: any): o is CreateColumnsOperation { + return _smithy.isa(o, "CreateColumnsOperation"); + } +} + +export interface CreateDashboardRequest { + __type?: "CreateDashboardRequest"; + /** + * + *

AWS account ID where you want to create the dashboard.

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

The ID for the dashboard, also added to IAM policy.

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

Publishing options when creating dashboard.

+ *
    + *
  • + *

    AvailabilityStatus for AdHocFilteringOption - This can be either ENABLED or + * DISABLED. When This is set to set to DISABLED, QuickSight + * disables the left filter pane on the published dashboard, which can be used for AdHoc + * filtering. Enabled by default.

    + *
  • + *
  • + *

    AvailabilityStatus for ExportToCSVOption - This can be either ENABLED or + * DISABLED. The visual option to export data to CSV is disabled when this + * is set to DISABLED. Enabled by default.

    + *
  • + *
  • + *

    VisibilityState for SheetControlsOption - This can be either COLLAPSED or + * EXPANDED. The sheet controls pane is collapsed by default when set to + * true. Collapsed by default.

    + *
  • + *
+ * + */ + DashboardPublishOptions?: DashboardPublishOptions; + + /** + * + *

The display name of the dashboard.

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

A structure that contains the parameters of the dashboard. + * These are parameter overrides for a dashboard. + * A dashboard can have any type of parameters and some parameters might + * accept multiple values. You could use the following structure to override + * two string parameters that accept multiple values:

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

A structure that contains the permissions of the dashboard. + * You can use this for granting permissions with principal and + * action information.

+ * + */ + Permissions?: Array; + + /** + * + *

Source entity from which the dashboard is created. The souce entity accepts the Amazon Resource Name (ARN) of the + * source template or analysis and also references the replacement datasets for the + * placeholders set when creating the template. The replacement datasets need to follow the + * same schema as the datasets for which placeholders were created when creating the template.

+ *

If you are creating a dashboard from a source entity in a different AWS account, use the + * ARN of the source template.

+ * + */ + SourceEntity: DashboardSourceEntity | undefined; + + /** + * + *

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

+ * + */ + Tags?: Array; + + /** + * + *

A description for the first version of the dashboard being created.

+ * + */ + VersionDescription?: string; +} + +export namespace CreateDashboardRequest { + export function isa(o: any): o is CreateDashboardRequest { + return _smithy.isa(o, "CreateDashboardRequest"); + } +} + +export interface CreateDashboardResponse extends $MetadataBearer { + __type?: "CreateDashboardResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the dashboard.

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

The creation status of the dashboard create request.

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

The ID for the dashboard.

+ * + */ + DashboardId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The ARN of the dashboard, including the version number + * of the first version that is created.

+ * + */ + VersionArn?: string; +} + +export namespace CreateDashboardResponse { + export function isa(o: any): o is CreateDashboardResponse { + return _smithy.isa(o, "CreateDashboardResponse"); + } +} + +export interface CreateDataSetRequest { + __type?: "CreateDataSetRequest"; + /** + * + *

The AWS Account ID.

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

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

+ * + */ + ColumnGroups?: Array; + + /** + * + *

An ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

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

Indicates whether or not you want to import the data into SPICE.

+ * + */ + ImportMode: DataSetImportMode | string | undefined; + + /** + * + *

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

+ * + */ + LogicalTableMap?: { [key: string]: LogicalTable }; + + /** + * + *

The display name for the dataset.

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

A list of resource permissions on the dataset.

+ * + */ + Permissions?: Array; + + /** + * + *

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

+ * + */ + PhysicalTableMap: { [key: string]: PhysicalTable } | undefined; + + /** + * + *

Row-level security configuration on the data you want to create.

+ * + */ + RowLevelPermissionDataSet?: RowLevelPermissionDataSet; + + /** + * + *

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

+ * + */ + Tags?: Array; +} + +export namespace CreateDataSetRequest { + export function isa(o: any): o is CreateDataSetRequest { + return _smithy.isa(o, "CreateDataSetRequest"); + } +} + +export interface CreateDataSetResponse extends $MetadataBearer { + __type?: "CreateDataSetResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the dataset.

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

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSetId?: string; + + /** + * + *

The ARN for the ingestion, which is triggered as a result of dataset creation if the import mode is SPICE

+ * + */ + IngestionArn?: string; + + /** + * + *

The ID of the ingestion, which is triggered as a result of dataset creation if the import mode is SPICE

+ * + */ + IngestionId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace CreateDataSetResponse { + export function isa(o: any): o is CreateDataSetResponse { + return _smithy.isa(o, "CreateDataSetResponse"); + } +} + +export interface CreateDataSourceRequest { + __type?: "CreateDataSourceRequest"; + /** + * + *

The AWS account ID.

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

The credentials QuickSight that uses to connect to your underlying source. Currently, only + * credentials based on user name and password are supported.

+ * + */ + Credentials?: DataSourceCredentials; + + /** + * + *

An ID for the data source. This ID is unique per AWS Region for each AWS account.

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

The parameters that QuickSight uses to connect to your underlying source.

+ * + */ + DataSourceParameters?: DataSourceParameters; + + /** + * + *

A display name for the data source.

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

A list of resource permissions on the data source.

+ * + */ + Permissions?: Array; + + /** + * + *

Secure Socket Layer (SSL) properties that apply when QuickSight connects to your underlying source.

+ * + */ + SslProperties?: SslProperties; + + /** + * + *

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

+ * + */ + Tags?: Array; + + /** + * + *

The type of the data source. Currently, the supported types for this operation are: + * ATHENA, AURORA, AURORA_POSTGRESQL, MARIADB, MYSQL, POSTGRESQL, PRESTO, REDSHIFT, S3, + * SNOWFLAKE, SPARK, SQLSERVER, TERADATA. + * Use ListDataSources to return a + * list of all data sources.

+ * + */ + Type: DataSourceType | string | undefined; + + /** + * + *

Use this parameter only when you want QuickSight to use a VPC connection when connecting to + * your underlying source.

+ * + */ + VpcConnectionProperties?: VpcConnectionProperties; +} + +export namespace CreateDataSourceRequest { + export function isa(o: any): o is CreateDataSourceRequest { + return _smithy.isa(o, "CreateDataSourceRequest"); + } +} + +export interface CreateDataSourceResponse extends $MetadataBearer { + __type?: "CreateDataSourceResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the data source.

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

The status of creating the data source.

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

The ID of the data source. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSourceId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace CreateDataSourceResponse { + export function isa(o: any): o is CreateDataSourceResponse { + return _smithy.isa(o, "CreateDataSourceResponse"); + } +} + +export interface CreateGroupMembershipRequest { + __type?: "CreateGroupMembershipRequest"; + /** + * + *

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The name of the group that you want to add the user to.

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

The name of the user that you want to add to the group membership.

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

The namespace. Currently, you should set this to default.

+ * + */ + Namespace: string | undefined; +} + +export namespace CreateGroupMembershipRequest { + export function isa(o: any): o is CreateGroupMembershipRequest { + return _smithy.isa(o, "CreateGroupMembershipRequest"); + } +} + +export interface CreateGroupMembershipResponse extends $MetadataBearer { + __type?: "CreateGroupMembershipResponse"; + /** + * + *

The group member.

+ * + */ + GroupMember?: GroupMember; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace CreateGroupMembershipResponse { + export function isa(o: any): o is CreateGroupMembershipResponse { + return _smithy.isa(o, "CreateGroupMembershipResponse"); + } +} + +/** + * + *

The request object for this operation.

+ * + */ +export interface CreateGroupRequest { + __type?: "CreateGroupRequest"; + /** + * + *

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

A description for the group that you want to create.

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

A name for the group that you want to create.

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

The namespace. Currently, you should set this to default.

+ * + */ + Namespace: string | undefined; +} + +export namespace CreateGroupRequest { + export function isa(o: any): o is CreateGroupRequest { + return _smithy.isa(o, "CreateGroupRequest"); + } +} + +/** + * + *

The response object for this operation.

+ * + */ +export interface CreateGroupResponse extends $MetadataBearer { + __type?: "CreateGroupResponse"; + /** + * + *

The name of the group.

+ * + */ + Group?: Group; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace CreateGroupResponse { + export function isa(o: any): o is CreateGroupResponse { + return _smithy.isa(o, "CreateGroupResponse"); + } +} + +export interface CreateIAMPolicyAssignmentRequest { + __type?: "CreateIAMPolicyAssignmentRequest"; + /** + * + *

The name of the assignment. It must be unique within an AWS account.

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

The status of an assignment:

+ *
    + *
  • + *

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

    + *
  • + *
  • + *

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

    + *
  • + *
  • + *

    DRAFT - Assignment is an unfinished draft and isn't used while creating the data + * source.

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

The AWS Account ID where you want to assign QuickSight users or groups to an IAM policy.

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

QuickSight users and/or groups that you want to assign the policy to.

+ * + */ + Identities?: { [key: string]: Array }; + + /** + * + *

The namespace that contains the assignment.

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

An IAM policy Amazon Resource Name (ARN) that you want to apply to the QuickSight users and groups specified in this assignment.

+ * + */ + PolicyArn?: string; +} + +export namespace CreateIAMPolicyAssignmentRequest { + export function isa(o: any): o is CreateIAMPolicyAssignmentRequest { + return _smithy.isa(o, "CreateIAMPolicyAssignmentRequest"); + } +} + +export interface CreateIAMPolicyAssignmentResponse extends $MetadataBearer { + __type?: "CreateIAMPolicyAssignmentResponse"; + /** + * + *

An ID for the assignment.

+ * + */ + AssignmentId?: string; + + /** + * + *

The name of the assignment. Must be unique within an AWS account.

+ * + */ + AssignmentName?: string; + + /** + * + *

The status of an assignment:

+ *
    + *
  • + *

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

    + *
  • + *
  • + *

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

    + *
  • + *
  • + *

    DRAFT - Assignment is an unfinished draft and isn't used while creating the data + * source.

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

QuickSight users and/or groups that are assigned to the IAM policy.

+ * + */ + Identities?: { [key: string]: Array }; + + /** + * + *

An IAM policy Amazon Resource Name (ARN) that is applied to the QuickSight users and groups specified in this assignment.

+ * + */ + PolicyArn?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace CreateIAMPolicyAssignmentResponse { + export function isa(o: any): o is CreateIAMPolicyAssignmentResponse { + return _smithy.isa(o, "CreateIAMPolicyAssignmentResponse"); + } +} + +export interface CreateIngestionRequest { + __type?: "CreateIngestionRequest"; + /** + * + *

The AWS 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; +} + +export namespace CreateIngestionRequest { + export function isa(o: any): o is CreateIngestionRequest { + return _smithy.isa(o, "CreateIngestionRequest"); + } +} + +export interface CreateIngestionResponse extends $MetadataBearer { + __type?: "CreateIngestionResponse"; + /** + * + *

The Amazon Resource Name (ARN) for the data ingestion.

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

An ID for the ingestion.

+ * + */ + IngestionId?: string; + + /** + * + *

The ingestion status.

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

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace CreateIngestionResponse { + export function isa(o: any): o is CreateIngestionResponse { + return _smithy.isa(o, "CreateIngestionResponse"); + } +} + +export interface CreateTemplateAliasRequest { + __type?: "CreateTemplateAliasRequest"; + /** + * + *

The name that you want to give to the template alias that you're creating. + * Aliases that start with $ are reserved by QuickSight.

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

AWS account ID that contains the template you are aliasing.

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

An ID for the template.

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

The version number of the template.

+ * + */ + TemplateVersionNumber: number | undefined; +} + +export namespace CreateTemplateAliasRequest { + export function isa(o: any): o is CreateTemplateAliasRequest { + return _smithy.isa(o, "CreateTemplateAliasRequest"); + } +} + +export interface CreateTemplateAliasResponse extends $MetadataBearer { + __type?: "CreateTemplateAliasResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

Information on the template alias.

+ * + */ + TemplateAlias?: TemplateAlias; +} + +export namespace CreateTemplateAliasResponse { + export function isa(o: any): o is CreateTemplateAliasResponse { + return _smithy.isa(o, "CreateTemplateAliasResponse"); + } +} + +export interface CreateTemplateRequest { + __type?: "CreateTemplateRequest"; + /** + * + *

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

A display name for the template.

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

A list of resource permissions to be set on the template.

+ * + */ + Permissions?: Array; + + /** + * + *

The Amazon Resource Name (ARN) of the source entity from which this template is being created. Templates can be + * currently created from an analysis or another template. If the ARN is for an analysis, you + * must include its dataset references.

+ * + */ + SourceEntity: TemplateSourceEntity | undefined; + + /** + * + *

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

+ * + */ + Tags?: Array; + + /** + * + *

An ID for the template you want to create. This is unique per AWS region per AWS + * account.

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

A description of the current template version being created. This API created the first + * version of the template. Every time UpdateTemplate is called a new version is created. Each + * version of the template maintains a description of the version in the VersionDescription + * field.

+ * + */ + VersionDescription?: string; +} + +export namespace CreateTemplateRequest { + export function isa(o: any): o is CreateTemplateRequest { + return _smithy.isa(o, "CreateTemplateRequest"); + } +} + +export interface CreateTemplateResponse extends $MetadataBearer { + __type?: "CreateTemplateResponse"; + /** + * + *

The Amazon Resource Name (ARN) for the template.

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

The template creation status.

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

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The ID of the template.

+ * + */ + TemplateId?: string; + + /** + * + *

The ARN for the template, including the version information of + * the first version.

+ * + */ + VersionArn?: string; +} + +export namespace CreateTemplateResponse { + export function isa(o: any): o is CreateTemplateResponse { + return _smithy.isa(o, "CreateTemplateResponse"); + } +} + +/** + * + *

The combination of username and password that are used as credentials.

+ * + */ +export interface CredentialPair { + __type?: "CredentialPair"; + /** + * + *

Password.

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

Username.

+ * + */ + Username: string | undefined; +} + +export namespace CredentialPair { + export function isa(o: any): o is CredentialPair { + return _smithy.isa(o, "CredentialPair"); + } +} + +/** + * + *

A physical table type built from the results of the custom SQL query.

+ * + */ +export interface CustomSql { + __type?: "CustomSql"; + /** + * + *

The column schema from the SQL query result set.

+ * + */ + Columns?: Array; + + /** + * + *

The Amazon Resource Name (ARN) of the data source.

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

A display name for the SQL query result.

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

The SQL query.

+ * + */ + SqlQuery: string | undefined; +} + +export namespace CustomSql { + export function isa(o: any): o is CustomSql { + return _smithy.isa(o, "CustomSql"); + } +} + +/** + * + *

Dashboard.

+ * + */ +export interface Dashboard { + __type?: "Dashboard"; + /** + * + *

The Amazon Resource name (ARN) of the resource.

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

The time this was created.

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

Dashboard ID.

+ * + */ + DashboardId?: string; + + /** + * + *

The last time this was published.

+ * + */ + LastPublishedTime?: Date; + + /** + * + *

The last time this was updated.

+ * + */ + LastUpdatedTime?: Date; + + /** + * + *

A display name for the dataset.

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

Version.

+ * + */ + Version?: DashboardVersion; +} + +export namespace Dashboard { + export function isa(o: any): o is Dashboard { + return _smithy.isa(o, "Dashboard"); + } +} + +export enum DashboardBehavior { + DISABLED = "DISABLED", + ENABLED = "ENABLED" +} + +/** + * + *

Dashboard error.

+ * + */ +export interface DashboardError { + __type?: "DashboardError"; + /** + * + *

Message.

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

Type.

+ * + */ + Type?: DashboardErrorType | string; +} + +export namespace DashboardError { + export function isa(o: any): o is DashboardError { + return _smithy.isa(o, "DashboardError"); + } +} + +export enum DashboardErrorType { + 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" +} + +/** + * + *

Dashboard publish options.

+ * + */ +export interface DashboardPublishOptions { + __type?: "DashboardPublishOptions"; + /** + * + *

Ad hoc filtering option.

+ * + */ + AdHocFilteringOption?: AdHocFilteringOption; + + /** + * + *

Export to CSV option.

+ * + */ + ExportToCSVOption?: ExportToCSVOption; + + /** + * + *

Sheet controls option.

+ * + */ + SheetControlsOption?: SheetControlsOption; +} + +export namespace DashboardPublishOptions { + export function isa(o: any): o is DashboardPublishOptions { + return _smithy.isa(o, "DashboardPublishOptions"); + } +} + +/** + * + *

Dashboard source entity.

+ * + */ +export interface DashboardSourceEntity { + __type?: "DashboardSourceEntity"; + /** + * + *

Source template.

+ * + */ + SourceTemplate?: DashboardSourceTemplate; +} + +export namespace DashboardSourceEntity { + export function isa(o: any): o is DashboardSourceEntity { + return _smithy.isa(o, "DashboardSourceEntity"); + } +} + +/** + * + *

Dashboard source template.

+ * + */ +export interface DashboardSourceTemplate { + __type?: "DashboardSourceTemplate"; + /** + * + *

The Amazon Resource name (ARN) of the resource.

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

Dataset references.

+ * + */ + DataSetReferences: Array | undefined; +} + +export namespace DashboardSourceTemplate { + export function isa(o: any): o is DashboardSourceTemplate { + return _smithy.isa(o, "DashboardSourceTemplate"); + } +} + +/** + * + *

Dashboard summary.

+ * + */ +export interface DashboardSummary { + __type?: "DashboardSummary"; + /** + * + *

The Amazon Resource name (ARN) of the resource.

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

The time this was created.

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

Dashboard ID.

+ * + */ + DashboardId?: string; + + /** + * + *

The last time this was published.

+ * + */ + LastPublishedTime?: Date; + + /** + * + *

The last time this was updated.

+ * + */ + LastUpdatedTime?: Date; + + /** + * + *

A display name for the dataset.

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

Published version number.

+ * + */ + PublishedVersionNumber?: number; +} + +export namespace DashboardSummary { + export function isa(o: any): o is DashboardSummary { + return _smithy.isa(o, "DashboardSummary"); + } +} + +export enum DashboardUIState { + COLLAPSED = "COLLAPSED", + EXPANDED = "EXPANDED" +} + +/** + * + *

Dashboard version.

+ * + */ +export interface DashboardVersion { + __type?: "DashboardVersion"; + /** + * + *

The Amazon Resource name (ARN) of the resource.

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

The time this was created.

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

Description.

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

Errors.

+ * + */ + Errors?: Array; + + /** + * + *

Source entity ARN.

+ * + */ + SourceEntityArn?: string; + + /** + * + *

The HTTP status of the request.

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

Version number.

+ * + */ + VersionNumber?: number; +} + +export namespace DashboardVersion { + export function isa(o: any): o is DashboardVersion { + return _smithy.isa(o, "DashboardVersion"); + } +} + +/** + * + *

Dashboard version summary.

+ * + */ +export interface DashboardVersionSummary { + __type?: "DashboardVersionSummary"; + /** + * + *

The Amazon Resource name (ARN) of the resource.

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

The time this was created.

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

Description.

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

Source entity ARN.

+ * + */ + SourceEntityArn?: string; + + /** + * + *

The HTTP status of the request.

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

Version number.

+ * + */ + VersionNumber?: number; +} + +export namespace DashboardVersionSummary { + export function isa(o: any): o is DashboardVersionSummary { + return _smithy.isa(o, "DashboardVersionSummary"); + } +} + +/** + * + *

Dataset.

+ * + */ +export interface DataSet { + __type?: "DataSet"; + /** + * + *

The Amazon Resource name (ARN) of the resource.

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

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

+ * + */ + ColumnGroups?: Array; + + /** + * + *

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

+ * + */ + ConsumedSpiceCapacityInBytes?: number; + + /** + * + *

The time this was created.

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

The ID of the dataset.

+ * + */ + DataSetId?: string; + + /** + * + *

Indicates whether or not you want to import the data into SPICE.

+ * + */ + ImportMode?: DataSetImportMode | string; + + /** + * + *

The last time this was updated.

+ * + */ + LastUpdatedTime?: Date; + + /** + * + *

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

+ * + */ + LogicalTableMap?: { [key: string]: LogicalTable }; + + /** + * + *

A display name for the dataset.

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

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

+ * + */ + OutputColumns?: Array; + + /** + * + *

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

+ * + */ + PhysicalTableMap?: { [key: string]: PhysicalTable }; + + /** + * + *

Row-level security configuration on the dataset.

+ * + */ + RowLevelPermissionDataSet?: RowLevelPermissionDataSet; +} + +export namespace DataSet { + export function isa(o: any): o is DataSet { + return _smithy.isa(o, "DataSet"); + } +} + +/** + * + *

Dataset configuration.

+ * + */ +export interface DataSetConfiguration { + __type?: "DataSetConfiguration"; + /** + * + *

A structure containing the list of column group schemas.

+ * + */ + ColumnGroupSchemaList?: Array; + + /** + * + *

Dataset schema.

+ * + */ + DataSetSchema?: DataSetSchema; + + /** + * + *

Placeholder.

+ * + */ + Placeholder?: string; +} + +export namespace DataSetConfiguration { + export function isa(o: any): o is DataSetConfiguration { + return _smithy.isa(o, "DataSetConfiguration"); + } +} + +export enum DataSetImportMode { + DIRECT_QUERY = "DIRECT_QUERY", + SPICE = "SPICE" +} + +/** + * + *

Dataset reference.

+ * + */ +export interface DataSetReference { + __type?: "DataSetReference"; + /** + * + *

Dataset ARN.

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

Dataset placeholder.

+ * + */ + DataSetPlaceholder: string | undefined; +} + +export namespace DataSetReference { + export function isa(o: any): o is DataSetReference { + return _smithy.isa(o, "DataSetReference"); + } +} + +/** + * + *

Dataset schema.

+ * + */ +export interface DataSetSchema { + __type?: "DataSetSchema"; + /** + * + *

A structure containing the list of column schemas.

+ * + */ + ColumnSchemaList?: Array; +} + +export namespace DataSetSchema { + export function isa(o: any): o is DataSetSchema { + return _smithy.isa(o, "DataSetSchema"); + } +} + +/** + * + *

Dataset summary.

+ * + */ +export interface DataSetSummary { + __type?: "DataSetSummary"; + /** + * + *

The Amazon Resource name (ARN) of the dataset.

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

The time this was created.

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

The ID of the dataset.

+ * + */ + DataSetId?: string; + + /** + * + *

Indicates whether or not you want to import the data into SPICE.

+ * + */ + ImportMode?: DataSetImportMode | string; + + /** + * + *

The last time this was updated.

+ * + */ + LastUpdatedTime?: Date; + + /** + * + *

A display name for the dataset.

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

Row-level security configuration on the dataset.

+ * + */ + RowLevelPermissionDataSet?: RowLevelPermissionDataSet; +} + +export namespace DataSetSummary { + export function isa(o: any): o is DataSetSummary { + return _smithy.isa(o, "DataSetSummary"); + } +} + +/** + * + *

The structure of a data source.

+ * + */ +export interface DataSource { + __type?: "DataSource"; + /** + * + *

The Amazon Resource name (ARN) of the data source.

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

The time this was created.

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

The ID of the data source. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSourceId?: string; + + /** + * + *

The parameters that QuickSight uses to connect to your underlying source. This is a + * variant type structure. At most one of the attributes should be non-null for this structure + * to be valid.

+ * + */ + DataSourceParameters?: DataSourceParameters; + + /** + * + *

Error information from the last update or the creation of the data source.

+ * + */ + ErrorInfo?: DataSourceErrorInfo; + + /** + * + *

The last time this was updated.

+ * + */ + LastUpdatedTime?: Date; + + /** + * + *

A display name for the data source.

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

Secure Socket Layer (SSL) properties that apply when QuickSight connects to your + * underlying source.

+ * + */ + SslProperties?: SslProperties; + + /** + * + *

The HTTP status of the request.

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

The type of the data source. This indicates which database engine the data source + * connects to.

+ * + */ + Type?: DataSourceType | string; + + /** + * + *

The VPC connection information. You need to use this parameter only when you want + * QuickSight to use a VPC connection when connecting to your underlying source.

+ * + */ + VpcConnectionProperties?: VpcConnectionProperties; +} + +export namespace DataSource { + export function isa(o: any): o is DataSource { + return _smithy.isa(o, "DataSource"); + } +} + +/** + * + *

Data source credentials.

+ * + */ +export interface DataSourceCredentials { + __type?: "DataSourceCredentials"; + /** + * + *

Credential pair.

+ * + */ + CredentialPair?: CredentialPair; +} + +export namespace DataSourceCredentials { + export function isa(o: any): o is DataSourceCredentials { + return _smithy.isa(o, "DataSourceCredentials"); + } +} + +/** + * + *

Error information on data source creation or update.

+ * + */ +export interface DataSourceErrorInfo { + __type?: "DataSourceErrorInfo"; + /** + * + *

Error message.

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

Error type.

+ * + */ + Type?: DataSourceErrorInfoType | string; +} + +export namespace DataSourceErrorInfo { + export function isa(o: any): o is DataSourceErrorInfo { + return _smithy.isa(o, "DataSourceErrorInfo"); + } +} + +export enum DataSourceErrorInfoType { + CONFLICT = "CONFLICT", + ENGINE_VERSION_NOT_SUPPORTED = "ENGINE_VERSION_NOT_SUPPORTED", + GENERIC_SQL_FAILURE = "GENERIC_SQL_FAILURE", + TIMEOUT = "TIMEOUT", + UNKNOWN = "UNKNOWN", + UNKNOWN_HOST = "UNKNOWN_HOST" +} + +/** + * + *

The parameters that QuickSight uses to connect to your underlying source. This is a + * variant type structure. At most one of the attributes should be non-null for this structure + * to be valid.

+ * + */ +export interface DataSourceParameters { + __type?: "DataSourceParameters"; + /** + * + *

Amazon Elasticsearch parameters.

+ * + */ + AmazonElasticsearchParameters?: AmazonElasticsearchParameters; + + /** + * + *

Athena parameters.

+ * + */ + AthenaParameters?: AthenaParameters; + + /** + * + *

Aurora MySQL parameters.

+ * + */ + AuroraParameters?: AuroraParameters; + + /** + * + *

Aurora PostgreSQL parameters.

+ * + */ + AuroraPostgreSqlParameters?: AuroraPostgreSqlParameters; + + /** + * + *

AWS IoT Analytics parameters.

+ * + */ + AwsIotAnalyticsParameters?: AwsIotAnalyticsParameters; + + /** + * + *

Jira parameters.

+ * + */ + JiraParameters?: JiraParameters; + + /** + * + *

MariaDB parameters.

+ * + */ + MariaDbParameters?: MariaDbParameters; + + /** + * + *

MySQL parameters.

+ * + */ + MySqlParameters?: MySqlParameters; + + /** + * + *

PostgreSQL parameters.

+ * + */ + PostgreSqlParameters?: PostgreSqlParameters; + + /** + * + *

Presto parameters.

+ * + */ + PrestoParameters?: PrestoParameters; + + /** + * + *

RDS parameters.

+ * + */ + RdsParameters?: RdsParameters; + + /** + * + *

Redshift parameters.

+ * + */ + RedshiftParameters?: RedshiftParameters; + + /** + * + *

S3 parameters.

+ * + */ + S3Parameters?: S3Parameters; + + /** + * + *

ServiceNow parameters.

+ * + */ + ServiceNowParameters?: ServiceNowParameters; + + /** + * + *

Snowflake parameters.

+ * + */ + SnowflakeParameters?: SnowflakeParameters; + + /** + * + *

Spark parameters.

+ * + */ + SparkParameters?: SparkParameters; + + /** + * + *

SQL Server parameters.

+ * + */ + SqlServerParameters?: SqlServerParameters; + + /** + * + *

Teradata parameters.

+ * + */ + TeradataParameters?: TeradataParameters; + + /** + * + *

Twitter parameters.

+ * + */ + TwitterParameters?: TwitterParameters; +} + +export namespace DataSourceParameters { + export function isa(o: any): o is DataSourceParameters { + return _smithy.isa(o, "DataSourceParameters"); + } +} + +export enum DataSourceType { + ADOBE_ANALYTICS = "ADOBE_ANALYTICS", + AMAZON_ELASTICSEARCH = "AMAZON_ELASTICSEARCH", + ATHENA = "ATHENA", + AURORA = "AURORA", + AURORA_POSTGRESQL = "AURORA_POSTGRESQL", + AWS_IOT_ANALYTICS = "AWS_IOT_ANALYTICS", + GITHUB = "GITHUB", + JIRA = "JIRA", + MARIADB = "MARIADB", + MYSQL = "MYSQL", + POSTGRESQL = "POSTGRESQL", + PRESTO = "PRESTO", + REDSHIFT = "REDSHIFT", + S3 = "S3", + SALESFORCE = "SALESFORCE", + SERVICENOW = "SERVICENOW", + SNOWFLAKE = "SNOWFLAKE", + SPARK = "SPARK", + SQLSERVER = "SQLSERVER", + TERADATA = "TERADATA", + TWITTER = "TWITTER" +} + +/** + * + *

Date time parameter.

+ * + */ +export interface DateTimeParameter { + __type?: "DateTimeParameter"; + /** + * + *

A display name for the dataset.

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

Values.

+ * + */ + Values: Array | undefined; +} + +export namespace DateTimeParameter { + export function isa(o: any): o is DateTimeParameter { + return _smithy.isa(o, "DateTimeParameter"); + } +} + +/** + * + *

Decimal parameter.

+ * + */ +export interface DecimalParameter { + __type?: "DecimalParameter"; + /** + * + *

A display name for the dataset.

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

Values.

+ * + */ + Values: Array | undefined; +} + +export namespace DecimalParameter { + export function isa(o: any): o is DecimalParameter { + return _smithy.isa(o, "DecimalParameter"); + } +} + +export interface DeleteDashboardRequest { + __type?: "DeleteDashboardRequest"; + /** + * + *

AWS account ID that contains the dashboard you are deleting.

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

The ID for the dashboard.

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

The version number of the dashboard. If version number property is provided, only the + * specified version of the dashboard is deleted.

+ * + */ + VersionNumber?: number; +} + +export namespace DeleteDashboardRequest { + export function isa(o: any): o is DeleteDashboardRequest { + return _smithy.isa(o, "DeleteDashboardRequest"); + } +} + +export interface DeleteDashboardResponse extends $MetadataBearer { + __type?: "DeleteDashboardResponse"; + /** + * + *

The Secure Socket Layer (SSL) properties that apply. of the resource.

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

The ID of the dashboard.

+ * + */ + DashboardId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DeleteDashboardResponse { + export function isa(o: any): o is DeleteDashboardResponse { + return _smithy.isa(o, "DeleteDashboardResponse"); + } +} + +export interface DeleteDataSetRequest { + __type?: "DeleteDataSetRequest"; + /** + * + *

The AWS account ID.

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

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSetId: string | undefined; +} + +export namespace DeleteDataSetRequest { + export function isa(o: any): o is DeleteDataSetRequest { + return _smithy.isa(o, "DeleteDataSetRequest"); + } +} + +export interface DeleteDataSetResponse extends $MetadataBearer { + __type?: "DeleteDataSetResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the dataset.

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

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSetId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DeleteDataSetResponse { + export function isa(o: any): o is DeleteDataSetResponse { + return _smithy.isa(o, "DeleteDataSetResponse"); + } +} + +export interface DeleteDataSourceRequest { + __type?: "DeleteDataSourceRequest"; + /** + * + *

The AWS account ID.

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

The ID of the data source. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSourceId: string | undefined; +} + +export namespace DeleteDataSourceRequest { + export function isa(o: any): o is DeleteDataSourceRequest { + return _smithy.isa(o, "DeleteDataSourceRequest"); + } +} + +export interface DeleteDataSourceResponse extends $MetadataBearer { + __type?: "DeleteDataSourceResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the data source that you deleted.

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

The ID of the data source. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSourceId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DeleteDataSourceResponse { + export function isa(o: any): o is DeleteDataSourceResponse { + return _smithy.isa(o, "DeleteDataSourceResponse"); + } +} + +export interface DeleteGroupMembershipRequest { + __type?: "DeleteGroupMembershipRequest"; + /** + * + *

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The name of the group that you want to delete the user from.

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

The name of the user that you want to delete from the group membership.

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

The namespace. Currently, you should set this to default.

+ * + */ + Namespace: string | undefined; +} + +export namespace DeleteGroupMembershipRequest { + export function isa(o: any): o is DeleteGroupMembershipRequest { + return _smithy.isa(o, "DeleteGroupMembershipRequest"); + } +} + +export interface DeleteGroupMembershipResponse extends $MetadataBearer { + __type?: "DeleteGroupMembershipResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DeleteGroupMembershipResponse { + export function isa(o: any): o is DeleteGroupMembershipResponse { + return _smithy.isa(o, "DeleteGroupMembershipResponse"); + } +} + +export interface DeleteGroupRequest { + __type?: "DeleteGroupRequest"; + /** + * + *

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The name of the group that you want to delete.

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

The namespace. Currently, you should set this to default.

+ * + */ + Namespace: string | undefined; +} + +export namespace DeleteGroupRequest { + export function isa(o: any): o is DeleteGroupRequest { + return _smithy.isa(o, "DeleteGroupRequest"); + } +} + +export interface DeleteGroupResponse extends $MetadataBearer { + __type?: "DeleteGroupResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DeleteGroupResponse { + export function isa(o: any): o is DeleteGroupResponse { + return _smithy.isa(o, "DeleteGroupResponse"); + } +} + +export interface DeleteIAMPolicyAssignmentRequest { + __type?: "DeleteIAMPolicyAssignmentRequest"; + /** + * + *

The name of the assignment.

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

The AWS account ID where you want to delete an IAM policy assignment.

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

The namespace that contains the assignment.

+ * + */ + Namespace: string | undefined; +} + +export namespace DeleteIAMPolicyAssignmentRequest { + export function isa(o: any): o is DeleteIAMPolicyAssignmentRequest { + return _smithy.isa(o, "DeleteIAMPolicyAssignmentRequest"); + } +} + +export interface DeleteIAMPolicyAssignmentResponse extends $MetadataBearer { + __type?: "DeleteIAMPolicyAssignmentResponse"; + /** + * + *

The name of the assignment.

+ * + */ + AssignmentName?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DeleteIAMPolicyAssignmentResponse { + export function isa(o: any): o is DeleteIAMPolicyAssignmentResponse { + return _smithy.isa(o, "DeleteIAMPolicyAssignmentResponse"); + } +} + +export interface DeleteTemplateAliasRequest { + __type?: "DeleteTemplateAliasRequest"; + /** + * + *

The alias of the template that you want to delete. If you provide a specific alias, + * you delete 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.

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

AWS account ID that contains the template alias you are deleting.

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

An ID for the template.

+ * + */ + TemplateId: string | undefined; +} + +export namespace DeleteTemplateAliasRequest { + export function isa(o: any): o is DeleteTemplateAliasRequest { + return _smithy.isa(o, "DeleteTemplateAliasRequest"); + } +} + +export interface DeleteTemplateAliasResponse extends $MetadataBearer { + __type?: "DeleteTemplateAliasResponse"; + /** + * + *

The name of the alias.

+ * + */ + AliasName?: string; + + /** + * + *

The Amazon Resource Name (ARN) of the resource.

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

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

An ID for the template.

+ * + */ + TemplateId?: string; +} + +export namespace DeleteTemplateAliasResponse { + export function isa(o: any): o is DeleteTemplateAliasResponse { + return _smithy.isa(o, "DeleteTemplateAliasResponse"); + } +} + +export interface DeleteTemplateRequest { + __type?: "DeleteTemplateRequest"; + /** + * + *

AWS account ID that contains the template you are deleting.

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

An ID for the template you want to delete.

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

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. + *

+ * + */ + VersionNumber?: number; +} + +export namespace DeleteTemplateRequest { + export function isa(o: any): o is DeleteTemplateRequest { + return _smithy.isa(o, "DeleteTemplateRequest"); + } +} + +export interface DeleteTemplateResponse extends $MetadataBearer { + __type?: "DeleteTemplateResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the resource.

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

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

An ID for the template.

+ * + */ + TemplateId?: string; +} + +export namespace DeleteTemplateResponse { + export function isa(o: any): o is DeleteTemplateResponse { + return _smithy.isa(o, "DeleteTemplateResponse"); + } +} + +/** + * + *

+ * + */ +export interface DeleteUserByPrincipalIdRequest { + __type?: "DeleteUserByPrincipalIdRequest"; + /** + * + *

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The namespace. Currently, you should set this to default.

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

The principal ID of the user.

+ * + */ + PrincipalId: string | undefined; +} + +export namespace DeleteUserByPrincipalIdRequest { + export function isa(o: any): o is DeleteUserByPrincipalIdRequest { + return _smithy.isa(o, "DeleteUserByPrincipalIdRequest"); + } +} + +export interface DeleteUserByPrincipalIdResponse extends $MetadataBearer { + __type?: "DeleteUserByPrincipalIdResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DeleteUserByPrincipalIdResponse { + export function isa(o: any): o is DeleteUserByPrincipalIdResponse { + return _smithy.isa(o, "DeleteUserByPrincipalIdResponse"); + } +} + +export interface DeleteUserRequest { + __type?: "DeleteUserRequest"; + /** + * + *

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The namespace. Currently, you should set this to default.

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

The name of the user that you want to delete.

+ * + */ + UserName: string | undefined; +} + +export namespace DeleteUserRequest { + export function isa(o: any): o is DeleteUserRequest { + return _smithy.isa(o, "DeleteUserRequest"); + } +} + +export interface DeleteUserResponse extends $MetadataBearer { + __type?: "DeleteUserResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DeleteUserResponse { + export function isa(o: any): o is DeleteUserResponse { + return _smithy.isa(o, "DeleteUserResponse"); + } +} + +export interface DescribeDashboardPermissionsRequest { + __type?: "DescribeDashboardPermissionsRequest"; + /** + * + *

AWS account ID that contains the dashboard you are describing permissions of.

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

The ID for the dashboard, also added to IAM policy.

+ * + */ + DashboardId: string | undefined; +} + +export namespace DescribeDashboardPermissionsRequest { + export function isa(o: any): o is DescribeDashboardPermissionsRequest { + return _smithy.isa(o, "DescribeDashboardPermissionsRequest"); + } +} + +export interface DescribeDashboardPermissionsResponse extends $MetadataBearer { + __type?: "DescribeDashboardPermissionsResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the dashboard.

+ * + */ + DashboardArn?: string; + + /** + * + *

The ID for the dashboard.

+ * + */ + DashboardId?: string; + + /** + * + *

A structure that contains the permissions of the dashboard.

+ * + */ + Permissions?: Array; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DescribeDashboardPermissionsResponse { + export function isa(o: any): o is DescribeDashboardPermissionsResponse { + return _smithy.isa(o, "DescribeDashboardPermissionsResponse"); + } +} + +export interface DescribeDashboardRequest { + __type?: "DescribeDashboardRequest"; + /** + * + *

The alias name.

+ * + */ + AliasName?: string; + + /** + * + *

AWS account ID that contains the dashboard you are describing.

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

The ID for the dashboard.

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

The version number for the dashboard. If version number isn’t passed the latest + * published dashboard version is described.

+ * + */ + VersionNumber?: number; +} + +export namespace DescribeDashboardRequest { + export function isa(o: any): o is DescribeDashboardRequest { + return _smithy.isa(o, "DescribeDashboardRequest"); + } +} + +export interface DescribeDashboardResponse extends $MetadataBearer { + __type?: "DescribeDashboardResponse"; + /** + * + *

Information about the dashboard.

+ * + */ + Dashboard?: Dashboard; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DescribeDashboardResponse { + export function isa(o: any): o is DescribeDashboardResponse { + return _smithy.isa(o, "DescribeDashboardResponse"); + } +} + +export interface DescribeDataSetPermissionsRequest { + __type?: "DescribeDataSetPermissionsRequest"; + /** + * + *

The AWS Account ID.

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

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSetId: string | undefined; +} + +export namespace DescribeDataSetPermissionsRequest { + export function isa(o: any): o is DescribeDataSetPermissionsRequest { + return _smithy.isa(o, "DescribeDataSetPermissionsRequest"); + } +} + +export interface DescribeDataSetPermissionsResponse extends $MetadataBearer { + __type?: "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 AWS Region for each AWS account.

+ * + */ + DataSetId?: string; + + /** + * + *

A list of resource permissions on the dataset.

+ * + */ + Permissions?: Array; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DescribeDataSetPermissionsResponse { + export function isa(o: any): o is DescribeDataSetPermissionsResponse { + return _smithy.isa(o, "DescribeDataSetPermissionsResponse"); + } +} + +export interface DescribeDataSetRequest { + __type?: "DescribeDataSetRequest"; + /** + * + *

The AWS Account ID.

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

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSetId: string | undefined; +} + +export namespace DescribeDataSetRequest { + export function isa(o: any): o is DescribeDataSetRequest { + return _smithy.isa(o, "DescribeDataSetRequest"); + } +} + +export interface DescribeDataSetResponse extends $MetadataBearer { + __type?: "DescribeDataSetResponse"; + /** + * + *

Information on the dataset.

+ * + */ + DataSet?: DataSet; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DescribeDataSetResponse { + export function isa(o: any): o is DescribeDataSetResponse { + return _smithy.isa(o, "DescribeDataSetResponse"); + } +} + +export interface DescribeDataSourcePermissionsRequest { + __type?: "DescribeDataSourcePermissionsRequest"; + /** + * + *

The AWS account ID.

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

The ID of the data source. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSourceId: string | undefined; +} + +export namespace DescribeDataSourcePermissionsRequest { + export function isa(o: any): o is DescribeDataSourcePermissionsRequest { + return _smithy.isa(o, "DescribeDataSourcePermissionsRequest"); + } +} + +export interface DescribeDataSourcePermissionsResponse extends $MetadataBearer { + __type?: "DescribeDataSourcePermissionsResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the data source.

+ * + */ + DataSourceArn?: string; + + /** + * + *

The ID of the data source. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSourceId?: string; + + /** + * + *

A list of resource permissions on the data source.

+ * + */ + Permissions?: Array; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DescribeDataSourcePermissionsResponse { + export function isa(o: any): o is DescribeDataSourcePermissionsResponse { + return _smithy.isa(o, "DescribeDataSourcePermissionsResponse"); + } +} + +export interface DescribeDataSourceRequest { + __type?: "DescribeDataSourceRequest"; + /** + * + *

The AWS account ID.

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

The ID of the data source. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSourceId: string | undefined; +} + +export namespace DescribeDataSourceRequest { + export function isa(o: any): o is DescribeDataSourceRequest { + return _smithy.isa(o, "DescribeDataSourceRequest"); + } +} + +export interface DescribeDataSourceResponse extends $MetadataBearer { + __type?: "DescribeDataSourceResponse"; + /** + * + *

The information on the data source.

+ * + */ + DataSource?: DataSource; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DescribeDataSourceResponse { + export function isa(o: any): o is DescribeDataSourceResponse { + return _smithy.isa(o, "DescribeDataSourceResponse"); + } +} + +export interface DescribeGroupRequest { + __type?: "DescribeGroupRequest"; + /** + * + *

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The name of the group that you want to describe.

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

The namespace. Currently, you should set this to default.

+ * + */ + Namespace: string | undefined; +} + +export namespace DescribeGroupRequest { + export function isa(o: any): o is DescribeGroupRequest { + return _smithy.isa(o, "DescribeGroupRequest"); + } +} + +export interface DescribeGroupResponse extends $MetadataBearer { + __type?: "DescribeGroupResponse"; + /** + * + *

The name of the group.

+ * + */ + Group?: Group; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DescribeGroupResponse { + export function isa(o: any): o is DescribeGroupResponse { + return _smithy.isa(o, "DescribeGroupResponse"); + } +} + +export interface DescribeIAMPolicyAssignmentRequest { + __type?: "DescribeIAMPolicyAssignmentRequest"; + /** + * + *

The name of the assignment.

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

The AWS account ID that contains the assignment you want to describe.

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

The namespace that contains the assignment.

+ * + */ + Namespace: string | undefined; +} + +export namespace DescribeIAMPolicyAssignmentRequest { + export function isa(o: any): o is DescribeIAMPolicyAssignmentRequest { + return _smithy.isa(o, "DescribeIAMPolicyAssignmentRequest"); + } +} + +export interface DescribeIAMPolicyAssignmentResponse extends $MetadataBearer { + __type?: "DescribeIAMPolicyAssignmentResponse"; + /** + * + *

Information describing the IAM policy assignment.

+ * + */ + IAMPolicyAssignment?: IAMPolicyAssignment; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DescribeIAMPolicyAssignmentResponse { + export function isa(o: any): o is DescribeIAMPolicyAssignmentResponse { + return _smithy.isa(o, "DescribeIAMPolicyAssignmentResponse"); + } +} + +export interface DescribeIngestionRequest { + __type?: "DescribeIngestionRequest"; + /** + * + *

The AWS 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; +} + +export namespace DescribeIngestionRequest { + export function isa(o: any): o is DescribeIngestionRequest { + return _smithy.isa(o, "DescribeIngestionRequest"); + } +} + +export interface DescribeIngestionResponse extends $MetadataBearer { + __type?: "DescribeIngestionResponse"; + /** + * + *

Information about the ingestion.

+ * + */ + Ingestion?: Ingestion; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace DescribeIngestionResponse { + export function isa(o: any): o is DescribeIngestionResponse { + return _smithy.isa(o, "DescribeIngestionResponse"); + } +} + +export interface DescribeTemplateAliasRequest { + __type?: "DescribeTemplateAliasRequest"; + /** + * + *

The alias of the template that you want to describe. If you provide 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; + + /** + * + *

AWS account ID that contains the template alias you are describing.

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

An ID for the template.

+ * + */ + TemplateId: string | undefined; +} + +export namespace DescribeTemplateAliasRequest { + export function isa(o: any): o is DescribeTemplateAliasRequest { + return _smithy.isa(o, "DescribeTemplateAliasRequest"); + } +} + +export interface DescribeTemplateAliasResponse extends $MetadataBearer { + __type?: "DescribeTemplateAliasResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

Information about the template alias.

+ * + */ + TemplateAlias?: TemplateAlias; +} + +export namespace DescribeTemplateAliasResponse { + export function isa(o: any): o is DescribeTemplateAliasResponse { + return _smithy.isa(o, "DescribeTemplateAliasResponse"); + } +} + +export interface DescribeTemplatePermissionsRequest { + __type?: "DescribeTemplatePermissionsRequest"; + /** + * + *

AWS account ID that contains the template you are describing.

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

The ID for the template.

+ * + */ + TemplateId: string | undefined; +} + +export namespace DescribeTemplatePermissionsRequest { + export function isa(o: any): o is DescribeTemplatePermissionsRequest { + return _smithy.isa(o, "DescribeTemplatePermissionsRequest"); + } +} + +export interface DescribeTemplatePermissionsResponse extends $MetadataBearer { + __type?: "DescribeTemplatePermissionsResponse"; + /** + * + *

A list of resource permissions to be set on the template.

+ * + */ + Permissions?: Array; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The Amazon Resource Name (ARN) of the template.

+ * + */ + TemplateArn?: string; + + /** + * + *

The ID for the template.

+ * + */ + TemplateId?: string; +} + +export namespace DescribeTemplatePermissionsResponse { + export function isa(o: any): o is DescribeTemplatePermissionsResponse { + return _smithy.isa(o, "DescribeTemplatePermissionsResponse"); + } +} + +export interface DescribeTemplateRequest { + __type?: "DescribeTemplateRequest"; + /** + * + *

The alias of the template that you want to describe. If you provide 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; + + /** + * + *

AWS account ID that contains the template you are describing.

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

An ID for the template.

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

This is an optional field, when a version number is provided the corresponding version + * is describe, if it's not provided the latest version of the template is described.

+ * + */ + VersionNumber?: number; +} + +export namespace DescribeTemplateRequest { + export function isa(o: any): o is DescribeTemplateRequest { + return _smithy.isa(o, "DescribeTemplateRequest"); + } +} + +export interface DescribeTemplateResponse extends $MetadataBearer { + __type?: "DescribeTemplateResponse"; + /** + * + *

The template structure of the object you want to describe.

+ * + */ + Template?: Template; +} + +export namespace DescribeTemplateResponse { + export function isa(o: any): o is DescribeTemplateResponse { + return _smithy.isa(o, "DescribeTemplateResponse"); + } +} + +export interface DescribeUserRequest { + __type?: "DescribeUserRequest"; + /** + * + *

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The namespace. Currently, you should set this to default.

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

The name of the user that you want to describe.

+ * + */ + UserName: string | undefined; +} + +export namespace DescribeUserRequest { + export function isa(o: any): o is DescribeUserRequest { + return _smithy.isa(o, "DescribeUserRequest"); + } +} + +export interface DescribeUserResponse extends $MetadataBearer { + __type?: "DescribeUserResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The user name.

+ * + */ + User?: User; +} + +export namespace DescribeUserResponse { + export function isa(o: any): o is DescribeUserResponse { + return _smithy.isa(o, "DescribeUserResponse"); + } +} + +/** + * + *

The domain specified is not on the allowlist. All domains for embedded dashboards must + * be added to the approved list by an Amazon QuickSight admin.

+ * + */ +export interface DomainNotWhitelistedException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "DomainNotWhitelistedException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace DomainNotWhitelistedException { + export function isa(o: any): o is DomainNotWhitelistedException { + return _smithy.isa(o, "DomainNotWhitelistedException"); + } +} + +/** + * + *

Error information on a data set SPICE ingestion.

+ * + */ +export interface ErrorInfo { + __type?: "ErrorInfo"; + /** + * + *

Error essage.

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

Error type.

+ * + */ + Type?: IngestionErrorType | string; +} + +export namespace ErrorInfo { + export function isa(o: any): o is ErrorInfo { + return _smithy.isa(o, "ErrorInfo"); + } +} + +/** + * + *

Export to CSV option.

+ * + */ +export interface ExportToCSVOption { + __type?: "ExportToCSVOption"; + /** + * + *

Availability status.

+ * + */ + AvailabilityStatus?: DashboardBehavior | string; +} + +export namespace ExportToCSVOption { + export function isa(o: any): o is ExportToCSVOption { + return _smithy.isa(o, "ExportToCSVOption"); + } +} + +export enum FileFormat { + CLF = "CLF", + CSV = "CSV", + ELF = "ELF", + JSON = "JSON", + TSV = "TSV", + XLSX = "XLSX" +} + +/** + * + *

A transform operation that filters rows based on some condition.

+ * + */ +export interface FilterOperation { + __type?: "FilterOperation"; + /** + * + *

An expression that must evaluate to a boolean value. Rows for which the expression is + * evaluated to true are kept in the dataset.

+ * + */ + ConditionExpression: string | undefined; +} + +export namespace FilterOperation { + export function isa(o: any): o is FilterOperation { + return _smithy.isa(o, "FilterOperation"); + } +} + +/** + * + *

Geospatial column group that denotes a hierarchy.

+ * + */ +export interface GeoSpatialColumnGroup { + __type?: "GeoSpatialColumnGroup"; + /** + * + *

Columns in this hierarchy.

+ * + */ + Columns: Array | undefined; + + /** + * + *

Country code.

+ * + */ + CountryCode: GeoSpatialCountryCode | string | undefined; + + /** + * + *

A display name for the hierarchy.

+ * + */ + Name: string | undefined; +} + +export namespace GeoSpatialColumnGroup { + export function isa(o: any): o is GeoSpatialColumnGroup { + return _smithy.isa(o, "GeoSpatialColumnGroup"); + } +} + +export enum GeoSpatialCountryCode { + US = "US" +} + +export enum GeoSpatialDataRole { + CITY = "CITY", + COUNTRY = "COUNTRY", + COUNTY = "COUNTY", + LATITUDE = "LATITUDE", + LONGITUDE = "LONGITUDE", + POSTCODE = "POSTCODE", + STATE = "STATE" +} + +export interface GetDashboardEmbedUrlRequest { + __type?: "GetDashboardEmbedUrlRequest"; + /** + * + *

AWS account ID that contains the dashboard you are embedding.

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

The ID for the dashboard, also added to IAM policy

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

The authentication method the user uses to sign in.

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

Remove the reset button on embedded dashboard. The default is FALSE, which allows the + * reset button.

+ * + */ + ResetDisabled?: boolean; + + /** + * + *

How many minutes the session is valid. The session lifetime must be between 15 and 600 + * minutes.

+ * + */ + SessionLifetimeInMinutes?: number; + + /** + * + *

Remove the undo/redo button on embedded dashboard. The default is FALSE, which enables + * the undo/redo button.

+ * + */ + UndoRedoDisabled?: boolean; + + /** + * + *

The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type. + * You can use this for any Amazon QuickSight users in your account (readers, authors, or + * admins) authenticated as one of the following:

+ *
    + *
  • + *

    Active Directory (AD) users or group members

    + *
  • + *
  • + *

    Invited non-federated users

    + *
  • + *
  • + *

    IAM users and IAM role-based sessions authenticated through Federated Single + * Sign-On using SAML, OpenID Connect, or IAM Federation

    + *
  • + *
+ * + */ + UserArn?: string; +} + +export namespace GetDashboardEmbedUrlRequest { + export function isa(o: any): o is GetDashboardEmbedUrlRequest { + return _smithy.isa(o, "GetDashboardEmbedUrlRequest"); + } +} + +export interface GetDashboardEmbedUrlResponse extends $MetadataBearer { + __type?: "GetDashboardEmbedUrlResponse"; + /** + * + *

URL that you can put into your server-side webpage to embed your dashboard. This URL is + * valid for 5 minutes, and the resulting session is valid for 10 hours. The API provides the + * URL with an auth_code that enables a single-signon session.

+ * + */ + EmbedUrl?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace GetDashboardEmbedUrlResponse { + export function isa(o: any): o is GetDashboardEmbedUrlResponse { + return _smithy.isa(o, "GetDashboardEmbedUrlResponse"); + } +} + +/** + * + *

A group in Amazon QuickSight consists of a set of users. You can + * use groups to make it easier to manage access and security. Currently, an Amazon QuickSight + * subscription can't contain more than 500 Amazon QuickSight groups.

+ * + */ +export interface Group { + __type?: "Group"; + /** + * + *

The Amazon Resource name (ARN) for the group.

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

The group description.

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

The name of the group.

+ * + */ + GroupName?: string; + + /** + * + *

The principal ID of the group.

+ * + */ + PrincipalId?: string; +} + +export namespace Group { + export function isa(o: any): o is Group { + return _smithy.isa(o, "Group"); + } +} + +/** + * + *

A member of an Amazon QuickSight group. Currently, group members must be users. Groups + * can't be members of another group. .

+ * + */ +export interface GroupMember { + __type?: "GroupMember"; + /** + * + *

The Amazon Resource name (ARN) for the group member (user).

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

The name of the group member (user).

+ * + */ + MemberName?: string; +} + +export namespace GroupMember { + export function isa(o: any): o is GroupMember { + return _smithy.isa(o, "GroupMember"); + } +} + +/** + * + *

IAM policy assignment.

+ * + */ +export interface IAMPolicyAssignment { + __type?: "IAMPolicyAssignment"; + /** + * + *

Assignment ID.

+ * + */ + AssignmentId?: string; + + /** + * + *

Assignment name.

+ * + */ + AssignmentName?: string; + + /** + * + *

Assignment status.

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

AWS account ID.

+ * + */ + AwsAccountId?: string; + + /** + * + *

Identities.

+ * + */ + Identities?: { [key: string]: Array }; + + /** + * + *

Policy Amazon Resource Name (ARN).

+ * + */ + PolicyArn?: string; +} + +export namespace IAMPolicyAssignment { + export function isa(o: any): o is IAMPolicyAssignment { + return _smithy.isa(o, "IAMPolicyAssignment"); + } +} + +/** + * + *

IAM policy assignment Summary.

+ * + */ +export interface IAMPolicyAssignmentSummary { + __type?: "IAMPolicyAssignmentSummary"; + /** + * + *

Assignment name.

+ * + */ + AssignmentName?: string; + + /** + * + *

Assignment status.

+ * + */ + AssignmentStatus?: AssignmentStatus | string; +} + +export namespace IAMPolicyAssignmentSummary { + export function isa(o: any): o is IAMPolicyAssignmentSummary { + return _smithy.isa(o, "IAMPolicyAssignmentSummary"); + } +} + +/** + * + *

The identity type specified is not supported. Supported identity types include IAM and + * QUICKSIGHT.

+ * + */ +export interface IdentityTypeNotSupportedException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "IdentityTypeNotSupportedException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace IdentityTypeNotSupportedException { + export function isa(o: any): o is IdentityTypeNotSupportedException { + return _smithy.isa(o, "IdentityTypeNotSupportedException"); + } +} + +/** + * + *

Information on the SPICE ingestion for a dataset.

+ * + */ +export interface Ingestion { + __type?: "Ingestion"; + /** + * + *

The Amazon Resource name (ARN) of the resource.

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

The time this ingestion started.

+ * + */ + CreatedTime: Date | undefined; + + /** + * + *

Error information for this ingestion.

+ * + */ + ErrorInfo?: ErrorInfo; + + /** + * + *

Ingestion ID.

+ * + */ + IngestionId?: string; + + /** + * + *

Size of the data ingested in bytes.

+ * + */ + IngestionSizeInBytes?: number; + + /** + * + *

Ingestion status.

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

The time this ingestion took, measured in seconds.

+ * + */ + IngestionTimeInSeconds?: number; + + /** + * + *

Information on queued dataset SPICE ingestion.

+ * + */ + QueueInfo?: QueueInfo; + + /** + * + *

Event source for this ingestion.

+ * + */ + RequestSource?: IngestionRequestSource | string; + + /** + * + *

Type of this ingestion.

+ * + */ + RequestType?: IngestionRequestType | string; + + /** + * + *

Information on rows during a data set SPICE ingestion.

+ * + */ + RowInfo?: RowInfo; +} + +export namespace Ingestion { + export function isa(o: any): o is Ingestion { + return _smithy.isa(o, "Ingestion"); + } +} + +export enum IngestionErrorType { + ACCOUNT_CAPACITY_LIMIT_EXCEEDED = "ACCOUNT_CAPACITY_LIMIT_EXCEEDED", + CONNECTION_FAILURE = "CONNECTION_FAILURE", + 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", + 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", + QUERY_TIMEOUT = "QUERY_TIMEOUT", + 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" +} + +export enum IngestionRequestSource { + MANUAL = "MANUAL", + SCHEDULED = "SCHEDULED" +} + +export enum IngestionRequestType { + EDIT = "EDIT", + FULL_REFRESH = "FULL_REFRESH", + INCREMENTAL_REFRESH = "INCREMENTAL_REFRESH", + INITIAL_INGESTION = "INITIAL_INGESTION" +} + +export enum IngestionStatus { + CANCELLED = "CANCELLED", + COMPLETED = "COMPLETED", + FAILED = "FAILED", + INITIALIZED = "INITIALIZED", + QUEUED = "QUEUED", + RUNNING = "RUNNING" +} + +/** + * + *

Metadata on a column that is used as the input of a transform operation.

+ * + */ +export interface InputColumn { + __type?: "InputColumn"; + /** + * + *

The name of this column in the underlying data source.

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

The data type of the column.

+ * + */ + Type: InputColumnDataType | string | undefined; +} + +export namespace InputColumn { + export function isa(o: any): o is InputColumn { + return _smithy.isa(o, "InputColumn"); + } +} + +export enum InputColumnDataType { + BIT = "BIT", + BOOLEAN = "BOOLEAN", + DATETIME = "DATETIME", + DECIMAL = "DECIMAL", + INTEGER = "INTEGER", + JSON = "JSON", + STRING = "STRING" +} + +/** + * + *

Integer parameter.

+ * + */ +export interface IntegerParameter { + __type?: "IntegerParameter"; + /** + * + *

A display name for the dataset.

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

Values.

+ * + */ + Values: Array | undefined; +} + +export namespace IntegerParameter { + export function isa(o: any): o is IntegerParameter { + return _smithy.isa(o, "IntegerParameter"); + } +} + +/** + * + *

Jira parameters.

+ * + */ +export interface JiraParameters { + __type?: "JiraParameters"; + /** + * + *

The base URL of the Jira site.

+ * + */ + SiteBaseUrl: string | undefined; +} + +export namespace JiraParameters { + export function isa(o: any): o is JiraParameters { + return _smithy.isa(o, "JiraParameters"); + } +} + +/** + * + *

Join instruction.

+ * + */ +export interface JoinInstruction { + __type?: "JoinInstruction"; + /** + * + *

Left operand.

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

On Clause.

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

Right operand.

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

Type.

+ * + */ + Type: JoinType | string | undefined; +} + +export namespace JoinInstruction { + export function isa(o: any): o is JoinInstruction { + return _smithy.isa(o, "JoinInstruction"); + } +} + +export enum JoinType { + INNER = "INNER", + LEFT = "LEFT", + OUTER = "OUTER", + RIGHT = "RIGHT" +} + +export interface ListDashboardVersionsRequest { + __type?: "ListDashboardVersionsRequest"; + /** + * + *

AWS account ID that contains the dashboard you are listing.

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

The ID for the dashboard.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; +} + +export namespace ListDashboardVersionsRequest { + export function isa(o: any): o is ListDashboardVersionsRequest { + return _smithy.isa(o, "ListDashboardVersionsRequest"); + } +} + +export interface ListDashboardVersionsResponse extends $MetadataBearer { + __type?: "ListDashboardVersionsResponse"; + /** + * + *

A structure that contains information about each version of the dashboard.

+ * + */ + DashboardVersionSummaryList?: Array; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListDashboardVersionsResponse { + export function isa(o: any): o is ListDashboardVersionsResponse { + return _smithy.isa(o, "ListDashboardVersionsResponse"); + } +} + +export interface ListDashboardsRequest { + __type?: "ListDashboardsRequest"; + /** + * + *

AWS account ID that contains the dashboards you are listing.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; +} + +export namespace ListDashboardsRequest { + export function isa(o: any): o is ListDashboardsRequest { + return _smithy.isa(o, "ListDashboardsRequest"); + } +} + +export interface ListDashboardsResponse extends $MetadataBearer { + __type?: "ListDashboardsResponse"; + /** + * + *

A structure that contains all of the dashboards shared with the user. Provides basic information about the dashboards.

+ * + */ + DashboardSummaryList?: Array; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListDashboardsResponse { + export function isa(o: any): o is ListDashboardsResponse { + return _smithy.isa(o, "ListDashboardsResponse"); + } +} + +export interface ListDataSetsRequest { + __type?: "ListDataSetsRequest"; + /** + * + *

The AWS Account ID.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; +} + +export namespace ListDataSetsRequest { + export function isa(o: any): o is ListDataSetsRequest { + return _smithy.isa(o, "ListDataSetsRequest"); + } +} + +export interface ListDataSetsResponse extends $MetadataBearer { + __type?: "ListDataSetsResponse"; + /** + * + *

The list of dataset summaries.

+ * + */ + DataSetSummaries?: Array; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListDataSetsResponse { + export function isa(o: any): o is ListDataSetsResponse { + return _smithy.isa(o, "ListDataSetsResponse"); + } +} + +export interface ListDataSourcesRequest { + __type?: "ListDataSourcesRequest"; + /** + * + *

The AWS account ID.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; +} + +export namespace ListDataSourcesRequest { + export function isa(o: any): o is ListDataSourcesRequest { + return _smithy.isa(o, "ListDataSourcesRequest"); + } +} + +export interface ListDataSourcesResponse extends $MetadataBearer { + __type?: "ListDataSourcesResponse"; + /** + * + *

A list of data sources.

+ * + */ + DataSources?: Array; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListDataSourcesResponse { + export function isa(o: any): o is ListDataSourcesResponse { + return _smithy.isa(o, "ListDataSourcesResponse"); + } +} + +export interface ListGroupMembershipsRequest { + __type?: "ListGroupMembershipsRequest"; + /** + * + *

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The name of the group that you want to see a membership list of.

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

The maximum number of results to return from this request.

+ * + */ + MaxResults?: number; + + /** + * + *

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; +} + +export namespace ListGroupMembershipsRequest { + export function isa(o: any): o is ListGroupMembershipsRequest { + return _smithy.isa(o, "ListGroupMembershipsRequest"); + } +} + +export interface ListGroupMembershipsResponse extends $MetadataBearer { + __type?: "ListGroupMembershipsResponse"; + /** + * + *

The list of the members of the group.

+ * + */ + GroupMemberList?: Array; + + /** + * + *

A pagination token that can be used in a subsequent request.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListGroupMembershipsResponse { + export function isa(o: any): o is ListGroupMembershipsResponse { + return _smithy.isa(o, "ListGroupMembershipsResponse"); + } +} + +export interface ListGroupsRequest { + __type?: "ListGroupsRequest"; + /** + * + *

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The maximum number of results to return.

+ * + */ + MaxResults?: number; + + /** + * + *

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; +} + +export namespace ListGroupsRequest { + export function isa(o: any): o is ListGroupsRequest { + return _smithy.isa(o, "ListGroupsRequest"); + } +} + +export interface ListGroupsResponse extends $MetadataBearer { + __type?: "ListGroupsResponse"; + /** + * + *

The list of the groups.

+ * + */ + GroupList?: Array; + + /** + * + *

A pagination token that can be used in a subsequent request.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListGroupsResponse { + export function isa(o: any): o is ListGroupsResponse { + return _smithy.isa(o, "ListGroupsResponse"); + } +} + +export interface ListIAMPolicyAssignmentsForUserRequest { + __type?: "ListIAMPolicyAssignmentsForUserRequest"; + /** + * + *

The AWS account ID that contains the assignment.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The namespace of the assignment.

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

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The name of the user.

+ * + */ + UserName: string | undefined; +} + +export namespace ListIAMPolicyAssignmentsForUserRequest { + export function isa(o: any): o is ListIAMPolicyAssignmentsForUserRequest { + return _smithy.isa(o, "ListIAMPolicyAssignmentsForUserRequest"); + } +} + +export interface ListIAMPolicyAssignmentsForUserResponse + extends $MetadataBearer { + __type?: "ListIAMPolicyAssignmentsForUserResponse"; + /** + * + *

Active assignments for this user.

+ * + */ + ActiveAssignments?: Array; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListIAMPolicyAssignmentsForUserResponse { + export function isa(o: any): o is ListIAMPolicyAssignmentsForUserResponse { + return _smithy.isa(o, "ListIAMPolicyAssignmentsForUserResponse"); + } +} + +export interface ListIAMPolicyAssignmentsRequest { + __type?: "ListIAMPolicyAssignmentsRequest"; + /** + * + *

The status of the assignment.

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

The AWS account ID that contains this IAM policy assignment.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The namespace for this assignment.

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

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; +} + +export namespace ListIAMPolicyAssignmentsRequest { + export function isa(o: any): o is ListIAMPolicyAssignmentsRequest { + return _smithy.isa(o, "ListIAMPolicyAssignmentsRequest"); + } +} + +export interface ListIAMPolicyAssignmentsResponse extends $MetadataBearer { + __type?: "ListIAMPolicyAssignmentsResponse"; + /** + * + *

Information describing the IAM policy assignments.

+ * + */ + IAMPolicyAssignments?: Array; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListIAMPolicyAssignmentsResponse { + export function isa(o: any): o is ListIAMPolicyAssignmentsResponse { + return _smithy.isa(o, "ListIAMPolicyAssignmentsResponse"); + } +} + +export interface ListIngestionsRequest { + __type?: "ListIngestionsRequest"; + /** + * + *

The AWS account ID.

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

The ID of the dataset used in the ingestion.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; +} + +export namespace ListIngestionsRequest { + export function isa(o: any): o is ListIngestionsRequest { + return _smithy.isa(o, "ListIngestionsRequest"); + } +} + +export interface ListIngestionsResponse extends $MetadataBearer { + __type?: "ListIngestionsResponse"; + /** + * + *

A list of the ingestions.

+ * + */ + Ingestions?: Array; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListIngestionsResponse { + export function isa(o: any): o is ListIngestionsResponse { + return _smithy.isa(o, "ListIngestionsResponse"); + } +} + +export interface ListTagsForResourceRequest { + __type?: "ListTagsForResourceRequest"; + /** + * + *

The Amazon Resource Name (ARN) of the resource that you want a list of tags for.

+ * + */ + ResourceArn: string | undefined; +} + +export namespace ListTagsForResourceRequest { + export function isa(o: any): o is ListTagsForResourceRequest { + return _smithy.isa(o, "ListTagsForResourceRequest"); + } +} + +export interface ListTagsForResourceResponse extends $MetadataBearer { + __type?: "ListTagsForResourceResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

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

+ * + */ + Tags?: Array; +} + +export namespace ListTagsForResourceResponse { + export function isa(o: any): o is ListTagsForResourceResponse { + return _smithy.isa(o, "ListTagsForResourceResponse"); + } +} + +export interface ListTemplateAliasesRequest { + __type?: "ListTemplateAliasesRequest"; + /** + * + *

AWS account ID that contains the template aliases you are listing.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The ID for the template.

+ * + */ + TemplateId: string | undefined; +} + +export namespace ListTemplateAliasesRequest { + export function isa(o: any): o is ListTemplateAliasesRequest { + return _smithy.isa(o, "ListTemplateAliasesRequest"); + } +} + +export interface ListTemplateAliasesResponse extends $MetadataBearer { + __type?: "ListTemplateAliasesResponse"; + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

A structure containing the list of the template's aliases.

+ * + */ + TemplateAliasList?: Array; +} + +export namespace ListTemplateAliasesResponse { + export function isa(o: any): o is ListTemplateAliasesResponse { + return _smithy.isa(o, "ListTemplateAliasesResponse"); + } +} + +export interface ListTemplateVersionsRequest { + __type?: "ListTemplateVersionsRequest"; + /** + * + *

AWS account ID that contains the templates you are listing.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The ID for the template.

+ * + */ + TemplateId: string | undefined; +} + +export namespace ListTemplateVersionsRequest { + export function isa(o: any): o is ListTemplateVersionsRequest { + return _smithy.isa(o, "ListTemplateVersionsRequest"); + } +} + +export interface ListTemplateVersionsResponse extends $MetadataBearer { + __type?: "ListTemplateVersionsResponse"; + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

A structure containing a list of all the versions of the specified template.

+ * + */ + TemplateVersionSummaryList?: Array; +} + +export namespace ListTemplateVersionsResponse { + export function isa(o: any): o is ListTemplateVersionsResponse { + return _smithy.isa(o, "ListTemplateVersionsResponse"); + } +} + +export interface ListTemplatesRequest { + __type?: "ListTemplatesRequest"; + /** + * + *

AWS account ID that contains the templates you are listing.

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

The maximum number of results to be returned per request.

+ * + */ + MaxResults?: number; + + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; +} + +export namespace ListTemplatesRequest { + export function isa(o: any): o is ListTemplatesRequest { + return _smithy.isa(o, "ListTemplatesRequest"); + } +} + +export interface ListTemplatesResponse extends $MetadataBearer { + __type?: "ListTemplatesResponse"; + /** + * + *

The token for the next set of results, or null if there are no more results.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

A structure containing information about the templates in the list.

+ * + */ + TemplateSummaryList?: Array; +} + +export namespace ListTemplatesResponse { + export function isa(o: any): o is ListTemplatesResponse { + return _smithy.isa(o, "ListTemplatesResponse"); + } +} + +export interface ListUserGroupsRequest { + __type?: "ListUserGroupsRequest"; + /** + * + *

The AWS Account ID that the user is in. Currently, you use the ID for the AWS account + * that contains your Amazon QuickSight account.

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

The maximum number of results to return from this request.

+ * + */ + MaxResults?: number; + + /** + * + *

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 Amazon QuickSight user name that you want to list group memberships for.

+ * + */ + UserName: string | undefined; +} + +export namespace ListUserGroupsRequest { + export function isa(o: any): o is ListUserGroupsRequest { + return _smithy.isa(o, "ListUserGroupsRequest"); + } +} + +export interface ListUserGroupsResponse extends $MetadataBearer { + __type?: "ListUserGroupsResponse"; + /** + * + *

The list of groups the user is a member of.

+ * + */ + GroupList?: Array; + + /** + * + *

A pagination token that can be used in a subsequent request.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace ListUserGroupsResponse { + export function isa(o: any): o is ListUserGroupsResponse { + return _smithy.isa(o, "ListUserGroupsResponse"); + } +} + +export interface ListUsersRequest { + __type?: "ListUsersRequest"; + /** + * + *

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The maximum number of results to return from this request.

+ * + */ + MaxResults?: number; + + /** + * + *

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; +} + +export namespace ListUsersRequest { + export function isa(o: any): o is ListUsersRequest { + return _smithy.isa(o, "ListUsersRequest"); + } +} + +export interface ListUsersResponse extends $MetadataBearer { + __type?: "ListUsersResponse"; + /** + * + *

A pagination token that can be used in a subsequent request.

+ * + */ + NextToken?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The list of users.

+ * + */ + UserList?: Array; +} + +export namespace ListUsersResponse { + export function isa(o: any): o is ListUsersResponse { + return _smithy.isa(o, "ListUsersResponse"); + } +} + +/** + * + *

A unit that joins and data transformations operate on. A logical table has a source, + * which can be either a physical table or result of a join. When it points to a physical + * table, a logical table acts as a mutable copy of that table through transform + * operations.

+ * + */ +export interface LogicalTable { + __type?: "LogicalTable"; + /** + * + *

A display name for the logical table.

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

Transform operations that act on this logical table.

+ * + */ + DataTransforms?: Array; + + /** + * + *

Source of this logical table.

+ * + */ + Source: LogicalTableSource | undefined; +} + +export namespace LogicalTable { + export function isa(o: any): o is LogicalTable { + return _smithy.isa(o, "LogicalTable"); + } +} + +/** + * + *

Information on the source of a logical table. This is a variant type structure. No more + * than one of the attributes should be non-null for this structure to be valid.

+ * + */ +export interface LogicalTableSource { + __type?: "LogicalTableSource"; + /** + * + *

Specifies the result of a join of two logical tables.

+ * + */ + JoinInstruction?: JoinInstruction; + + /** + * + *

Physical table ID.

+ * + */ + PhysicalTableId?: string; +} + +export namespace LogicalTableSource { + export function isa(o: any): o is LogicalTableSource { + return _smithy.isa(o, "LogicalTableSource"); + } +} + +/** + * + *

Amazon S3 manifest file location.

+ * + */ +export interface ManifestFileLocation { + __type?: "ManifestFileLocation"; + /** + * + *

Amazon S3 bucket.

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

Amazon S3 key that identifies an object.

+ * + */ + Key: string | undefined; +} + +export namespace ManifestFileLocation { + export function isa(o: any): o is ManifestFileLocation { + return _smithy.isa(o, "ManifestFileLocation"); + } +} + +/** + * + *

MariaDB parameters.

+ * + */ +export interface MariaDbParameters { + __type?: "MariaDbParameters"; + /** + * + *

Database.

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

Host.

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

Port.

+ * + */ + Port: number | undefined; +} + +export namespace MariaDbParameters { + export function isa(o: any): o is MariaDbParameters { + return _smithy.isa(o, "MariaDbParameters"); + } +} + +/** + * + *

MySQL parameters.

+ * + */ +export interface MySqlParameters { + __type?: "MySqlParameters"; + /** + * + *

Database.

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

Host.

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

Port.

+ * + */ + Port: number | undefined; +} + +export namespace MySqlParameters { + export function isa(o: any): o is MySqlParameters { + return _smithy.isa(o, "MySqlParameters"); + } +} + +/** + * + *

Output column.

+ * + */ +export interface OutputColumn { + __type?: "OutputColumn"; + /** + * + *

A display name for the dataset.

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

Type.

+ * + */ + Type?: ColumnDataType | string; +} + +export namespace OutputColumn { + export function isa(o: any): o is OutputColumn { + return _smithy.isa(o, "OutputColumn"); + } +} + +/** + * + *

Parameters.

+ * + */ +export interface _Parameters { + __type?: "Parameters"; + /** + * + *

DateTime parameters.

+ * + */ + DateTimeParameters?: Array; + + /** + * + *

Decimal parameters.

+ * + */ + DecimalParameters?: Array; + + /** + * + *

Integer parameters.

+ * + */ + IntegerParameters?: Array; + + /** + * + *

String parameters.

+ * + */ + StringParameters?: Array; +} + +export namespace _Parameters { + export function isa(o: any): o is _Parameters { + return _smithy.isa(o, "Parameters"); + } +} + +/** + * + *

A view of a data source. Contains information on the shape of the data in the underlying + * source. This is a variant type structure. No more than one of the attributes can be + * non-null for this structure to be valid.

+ * + */ +export interface PhysicalTable { + __type?: "PhysicalTable"; + /** + * + *

A physical table type built from the results of the custom SQL query.

+ * + */ + CustomSql?: CustomSql; + + /** + * + *

A physical table type for relational data sources.

+ * + */ + RelationalTable?: RelationalTable; + + /** + * + *

A physical table type for as S3 data source.

+ * + */ + S3Source?: S3Source; +} + +export namespace PhysicalTable { + export function isa(o: any): o is PhysicalTable { + return _smithy.isa(o, "PhysicalTable"); + } +} + +/** + * + *

PostgreSQL parameters.

+ * + */ +export interface PostgreSqlParameters { + __type?: "PostgreSqlParameters"; + /** + * + *

Database.

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

Host.

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

Port.

+ * + */ + Port: number | undefined; +} + +export namespace PostgreSqlParameters { + export function isa(o: any): o is PostgreSqlParameters { + return _smithy.isa(o, "PostgreSqlParameters"); + } +} + +/** + * + *

Presto parameters.

+ * + */ +export interface PrestoParameters { + __type?: "PrestoParameters"; + /** + * + *

Catalog.

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

Host.

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

Port.

+ * + */ + Port: number | undefined; +} + +export namespace PrestoParameters { + export function isa(o: any): o is PrestoParameters { + return _smithy.isa(o, "PrestoParameters"); + } +} + +/** + * + *

A transform operation that projects columns. Operations that come after a projection can + * only refer to projected columns.

+ * + */ +export interface ProjectOperation { + __type?: "ProjectOperation"; + /** + * + *

Projected columns.

+ * + */ + ProjectedColumns: Array | undefined; +} + +export namespace ProjectOperation { + export function isa(o: any): o is ProjectOperation { + return _smithy.isa(o, "ProjectOperation"); + } +} + +/** + * + *

Information on queued dataset SPICE ingestion.

+ * + */ +export interface QueueInfo { + __type?: "QueueInfo"; + /** + * + *

The ID of the ongoing ingestion. The queued ingestion is waiting for the ongoing + * ingestion to complete.

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

The ID of the queued ingestion.

+ * + */ + WaitingOnIngestion: string | undefined; +} + +export namespace QueueInfo { + export function isa(o: any): o is QueueInfo { + return _smithy.isa(o, "QueueInfo"); + } +} + +/** + * + *

The user is not found. This error can happen in any operation that requires finding a + * user based on a provided user name, such as DeleteUser, + * DescribeUser, and so on.

+ * + */ +export interface QuickSightUserNotFoundException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "QuickSightUserNotFoundException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace QuickSightUserNotFoundException { + export function isa(o: any): o is QuickSightUserNotFoundException { + return _smithy.isa(o, "QuickSightUserNotFoundException"); + } +} + +/** + * + *

RDS parameters.

+ * + */ +export interface RdsParameters { + __type?: "RdsParameters"; + /** + * + *

Database.

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

Instance ID.

+ * + */ + InstanceId: string | undefined; +} + +export namespace RdsParameters { + export function isa(o: any): o is RdsParameters { + return _smithy.isa(o, "RdsParameters"); + } +} + +/** + * + *

Redshift parameters. The ClusterId field can be blank if Host + * and Port are both set, and the other way around.

+ * + */ +export interface RedshiftParameters { + __type?: "RedshiftParameters"; + /** + * + *

Cluster ID. This can be blank if the Host and Port are + * provided.

+ * + */ + ClusterId?: string; + + /** + * + *

Database.

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

Host. This can be blank if the ClusterId is provided.

+ * + */ + Host?: string; + + /** + * + *

Port. This can be blank if the ClusterId is provided.

+ * + */ + Port?: number; +} + +export namespace RedshiftParameters { + export function isa(o: any): o is RedshiftParameters { + return _smithy.isa(o, "RedshiftParameters"); + } +} + +export interface RegisterUserRequest { + __type?: "RegisterUserRequest"; + /** + * + *

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The email address of the user that you want to register.

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

The ARN of the IAM user or role that you are registering with Amazon QuickSight.

+ * + */ + IamArn?: string; + + /** + * + *

Amazon QuickSight supports several ways of managing the identity of users. This + * parameter accepts two values:

+ *
    + *
  • + *

    + * IAM: A user whose identity maps to an existing IAM user or role. + *

    + *
  • + *
  • + *

    + * QUICKSIGHT: A user whose identity is owned and managed internally by + * Amazon QuickSight.

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

The namespace. Currently, you should set this to default.

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

You need to use this parameter only when you register one or more users using an assumed + * IAM role. You don't need to provide the session name for other scenarios, for example when + * you are registering an IAM user or an Amazon QuickSight user. You can register multiple + * users using the same IAM role if each user has a different session name. For more + * information on assuming IAM roles, see + * assume-role + * in the AWS CLI Reference. + *

+ * + */ + SessionName?: string; + + /** + * + *

The Amazon QuickSight user name that you want to create for the user you are + * registering.

+ * + */ + UserName?: 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 QuickSight + * settings.

    + *
  • + *
  • + *

    + * RESTRICTED_READER: This role isn't currently available for + * use.

    + *
  • + *
  • + *

    + * RESTRICTED_AUTHOR: This role isn't currently available for + * use.

    + *
  • + *
+ * + */ + UserRole: UserRole | string | undefined; +} + +export namespace RegisterUserRequest { + export function isa(o: any): o is RegisterUserRequest { + return _smithy.isa(o, "RegisterUserRequest"); + } +} + +export interface RegisterUserResponse extends $MetadataBearer { + __type?: "RegisterUserResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The user name.

+ * + */ + User?: User; + + /** + * + *

The URL the user visits to complete registration and provide a password. This is + * returned only for users with an identity type of QUICKSIGHT.

+ * + */ + UserInvitationUrl?: string; +} + +export namespace RegisterUserResponse { + export function isa(o: any): o is RegisterUserResponse { + return _smithy.isa(o, "RegisterUserResponse"); + } +} + +/** + * + *

A physical table type for relational data sources.

+ * + */ +export interface RelationalTable { + __type?: "RelationalTable"; + /** + * + *

The Amazon Resource Name (ARN) for the data source.

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

The column schema of the table.

+ * + */ + InputColumns: Array | undefined; + + /** + * + *

Name of the relational table.

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

The schema name. Applies to certain relational database engines.

+ * + */ + Schema?: string; +} + +export namespace RelationalTable { + export function isa(o: any): o is RelationalTable { + return _smithy.isa(o, "RelationalTable"); + } +} + +/** + * + *

A transform operation that renames a column.

+ * + */ +export interface RenameColumnOperation { + __type?: "RenameColumnOperation"; + /** + * + *

Name of the column to be renamed.

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

New name for the column.

+ * + */ + NewColumnName: string | undefined; +} + +export namespace RenameColumnOperation { + export function isa(o: any): o is RenameColumnOperation { + return _smithy.isa(o, "RenameColumnOperation"); + } +} + +/** + * + *

Information on rows during a data set SPICE ingestion.

+ * + */ +export interface RowInfo { + __type?: "RowInfo"; + /** + * + *

The number of rows that were not ingested.

+ * + */ + RowsDropped?: number; + + /** + * + *

The number of rows that were ingested.

+ * + */ + RowsIngested?: number; +} + +export namespace RowInfo { + export function isa(o: any): o is RowInfo { + return _smithy.isa(o, "RowInfo"); + } +} + +/** + * + *

Row-level security configuration on the dataset.

+ * + */ +export interface RowLevelPermissionDataSet { + __type?: "RowLevelPermissionDataSet"; + /** + * + *

The Amazon Resource name (ARN) of the permission dataset.

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

Permission policy.

+ * + */ + PermissionPolicy: RowLevelPermissionPolicy | string | undefined; +} + +export namespace RowLevelPermissionDataSet { + export function isa(o: any): o is RowLevelPermissionDataSet { + return _smithy.isa(o, "RowLevelPermissionDataSet"); + } +} + +export enum RowLevelPermissionPolicy { + DENY_ACCESS = "DENY_ACCESS", + GRANT_ACCESS = "GRANT_ACCESS" +} + +/** + * + *

S3 parameters.

+ * + */ +export interface S3Parameters { + __type?: "S3Parameters"; + /** + * + *

Location of the Amazon S3 manifest file. This is NULL if the manifest file was uploaded + * in the console.

+ * + */ + ManifestFileLocation: ManifestFileLocation | undefined; +} + +export namespace S3Parameters { + export function isa(o: any): o is S3Parameters { + return _smithy.isa(o, "S3Parameters"); + } +} + +/** + * + *

A physical table type for as S3 data source.

+ * + */ +export interface S3Source { + __type?: "S3Source"; + /** + * + *

Data source ARN.

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

A physical table type for as S3 data source.

+ * + */ + InputColumns: Array | undefined; + + /** + * + *

Information on the S3 source file(s) format.

+ * + */ + UploadSettings?: UploadSettings; +} + +export namespace S3Source { + export function isa(o: any): o is S3Source { + return _smithy.isa(o, "S3Source"); + } +} + +/** + * + *

ServiceNow parameters.

+ * + */ +export interface ServiceNowParameters { + __type?: "ServiceNowParameters"; + /** + * + *

URL of the base site.

+ * + */ + SiteBaseUrl: string | undefined; +} + +export namespace ServiceNowParameters { + export function isa(o: any): o is ServiceNowParameters { + return _smithy.isa(o, "ServiceNowParameters"); + } +} + +/** + * + *

The number of minutes specified for the lifetime of a session is not valid. The session + * lifetime must be from 15 to 600 minutes.

+ * + */ +export interface SessionLifetimeInMinutesInvalidException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "SessionLifetimeInMinutesInvalidException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace SessionLifetimeInMinutesInvalidException { + export function isa(o: any): o is SessionLifetimeInMinutesInvalidException { + return _smithy.isa(o, "SessionLifetimeInMinutesInvalidException"); + } +} + +/** + * + *

Sheet controls option.

+ * + */ +export interface SheetControlsOption { + __type?: "SheetControlsOption"; + /** + * + *

Visibility state.

+ * + */ + VisibilityState?: DashboardUIState | string; +} + +export namespace SheetControlsOption { + export function isa(o: any): o is SheetControlsOption { + return _smithy.isa(o, "SheetControlsOption"); + } +} + +/** + * + *

Snowflake parameters.

+ * + */ +export interface SnowflakeParameters { + __type?: "SnowflakeParameters"; + /** + * + *

Database.

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

Host.

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

Warehouse.

+ * + */ + Warehouse: string | undefined; +} + +export namespace SnowflakeParameters { + export function isa(o: any): o is SnowflakeParameters { + return _smithy.isa(o, "SnowflakeParameters"); + } +} + +/** + * + *

Spark parameters.

+ * + */ +export interface SparkParameters { + __type?: "SparkParameters"; + /** + * + *

Host.

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

Port.

+ * + */ + Port: number | undefined; +} + +export namespace SparkParameters { + export function isa(o: any): o is SparkParameters { + return _smithy.isa(o, "SparkParameters"); + } +} + +/** + * + *

SQL Server parameters.

+ * + */ +export interface SqlServerParameters { + __type?: "SqlServerParameters"; + /** + * + *

Database.

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

Host.

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

Port.

+ * + */ + Port: number | undefined; +} + +export namespace SqlServerParameters { + export function isa(o: any): o is SqlServerParameters { + return _smithy.isa(o, "SqlServerParameters"); + } +} + +/** + * + *

Secure Socket Layer (SSL) properties that apply when QuickSight connects to your + * underlying data source.

+ * + */ +export interface SslProperties { + __type?: "SslProperties"; + /** + * + *

A boolean flag to control whether SSL should be disabled.

+ * + */ + DisableSsl?: boolean; +} + +export namespace SslProperties { + export function isa(o: any): o is SslProperties { + return _smithy.isa(o, "SslProperties"); + } +} + +/** + * + *

String parameter.

+ * + */ +export interface StringParameter { + __type?: "StringParameter"; + /** + * + *

A display name for the dataset.

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

Values.

+ * + */ + Values: Array | undefined; +} + +export namespace StringParameter { + export function isa(o: any): o is StringParameter { + return _smithy.isa(o, "StringParameter"); + } +} + +/** + * + *

A transform operation that tags a column with additional information.

+ * + */ +export interface TagColumnOperation { + __type?: "TagColumnOperation"; + /** + * + *

The column that this operation acts on.

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

The dataset column tag, currently only used for geospatial type tagging. .

+ * + *

This is not tags for the AWS tagging feature. .

+ *
+ * + */ + Tags: Array | undefined; +} + +export namespace TagColumnOperation { + export function isa(o: any): o is TagColumnOperation { + return _smithy.isa(o, "TagColumnOperation"); + } +} + +export interface TagResourceRequest { + __type?: "TagResourceRequest"; + /** + * + *

The Amazon Resource Name (ARN) of the resource that you want to tag.

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

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

+ * + */ + Tags: Array | undefined; +} + +export namespace TagResourceRequest { + export function isa(o: any): o is TagResourceRequest { + return _smithy.isa(o, "TagResourceRequest"); + } +} + +export interface TagResourceResponse extends $MetadataBearer { + __type?: "TagResourceResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace TagResourceResponse { + export function isa(o: any): o is TagResourceResponse { + return _smithy.isa(o, "TagResourceResponse"); + } +} + +/** + * + *

A template object. A template is an entity in QuickSight which encapsulates the metadata + * required to create an analysis that can be used to create dashboard. It adds a layer of + * abstraction by replacing the dataset associated with the analysis with placeholders. + * Templates can be used to create dashboards by replacing dataset placeholders with datasets + * which follow the same schema that was used to create the source analysis and + * template.

+ *

You can share templates across AWS accounts by allowing users in other AWS accounts to + * create a template or a dashboard from an existing template.

+ * + */ +export interface Template { + __type?: "Template"; + /** + * + *

The Amazon Resource Name (ARN) of the template.

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

Time when this was created.

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

Time when this was last updated.

+ * + */ + LastUpdatedTime?: Date; + + /** + * + *

The display name of the template.

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

The ID for the template. This is unique per AWS Region for each AWS account.

+ * + */ + TemplateId?: string; + + /** + * + *

A structure describing the versions of the template.

+ * + */ + Version?: TemplateVersion; +} + +export namespace Template { + export function isa(o: any): o is Template { + return _smithy.isa(o, "Template"); + } +} + +/** + * + *

The template alias.

+ * + */ +export interface TemplateAlias { + __type?: "TemplateAlias"; + /** + * + *

The display name of the template alias.

+ * + */ + AliasName?: string; + + /** + * + *

The ARN of the template alias.

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

The version number of the template alias.

+ * + */ + TemplateVersionNumber?: number; +} + +export namespace TemplateAlias { + export function isa(o: any): o is TemplateAlias { + return _smithy.isa(o, "TemplateAlias"); + } +} + +/** + * + *

List of errors that occurred when the template version creation failed.

+ * + */ +export interface TemplateError { + __type?: "TemplateError"; + /** + * + *

Description of the error type.

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

Type of error.

+ * + */ + Type?: TemplateErrorType | string; +} + +export namespace TemplateError { + export function isa(o: any): o is TemplateError { + return _smithy.isa(o, "TemplateError"); + } +} + +export enum TemplateErrorType { + DATA_SET_NOT_FOUND = "DATA_SET_NOT_FOUND", + INTERNAL_FAILURE = "INTERNAL_FAILURE" +} + +/** + * + *

The source analysis of the template.

+ * + */ +export interface TemplateSourceAnalysis { + __type?: "TemplateSourceAnalysis"; + /** + * + *

The Amazon Resource name (ARN) of the resource.

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

A structure containing information about the dataset references used as placeholders in + * the template.

+ * + */ + DataSetReferences: Array | undefined; +} + +export namespace TemplateSourceAnalysis { + export function isa(o: any): o is TemplateSourceAnalysis { + return _smithy.isa(o, "TemplateSourceAnalysis"); + } +} + +/** + * + *

The source entity of the template.

+ * + */ +export interface TemplateSourceEntity { + __type?: "TemplateSourceEntity"; + /** + * + *

The source analysis, if it is based on an analysis.

+ * + */ + SourceAnalysis?: TemplateSourceAnalysis; + + /** + * + *

The source template, if it is based on an template.

+ * + */ + SourceTemplate?: TemplateSourceTemplate; +} + +export namespace TemplateSourceEntity { + export function isa(o: any): o is TemplateSourceEntity { + return _smithy.isa(o, "TemplateSourceEntity"); + } +} + +/** + * + *

The source template of the template.

+ * + */ +export interface TemplateSourceTemplate { + __type?: "TemplateSourceTemplate"; + /** + * + *

The Amazon Resource name (ARN) of the resource.

+ * + */ + Arn: string | undefined; +} + +export namespace TemplateSourceTemplate { + export function isa(o: any): o is TemplateSourceTemplate { + return _smithy.isa(o, "TemplateSourceTemplate"); + } +} + +/** + * + *

The template summary.

+ * + */ +export interface TemplateSummary { + __type?: "TemplateSummary"; + /** + * + *

A summary of a template.

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

The last time this was created.

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

The last time this was updated.

+ * + */ + LastUpdatedTime?: Date; + + /** + * + *

A structure containing a list of version numbers for the template summary.

+ * + */ + LatestVersionNumber?: number; + + /** + * + *

A display name for the template.

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

The ID of the template. This is unique per AWS Region for each AWS account.

+ * + */ + TemplateId?: string; +} + +export namespace TemplateSummary { + export function isa(o: any): o is TemplateSummary { + return _smithy.isa(o, "TemplateSummary"); + } +} + +/** + * + *

A version of a template.

+ * + */ +export interface TemplateVersion { + __type?: "TemplateVersion"; + /** + * + *

The time this was created.

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

Schema of the dataset identified by the placeholder. The idea is that any dashboard + * created from the template should be bound to new datasets matching the same schema + * described through this API. .

+ * + */ + DataSetConfigurations?: Array; + + /** + * + *

The description of the template.

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

Errors associated with the template.

+ * + */ + Errors?: Array; + + /** + * + *

The Amazon Resource Name (ARN) of the analysis or template which was used to create this + * template.

+ * + */ + SourceEntityArn?: string; + + /** + * + *

The HTTP status of the request.

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

The version number of the template.

+ * + */ + VersionNumber?: number; +} + +export namespace TemplateVersion { + export function isa(o: any): o is TemplateVersion { + return _smithy.isa(o, "TemplateVersion"); + } +} + +/** + * + *

The template version.

+ * + */ +export interface TemplateVersionSummary { + __type?: "TemplateVersionSummary"; + /** + * + *

The ARN of the template version.

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

The time this was created.

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

The desription of the template version.

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

The status of the template version.

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

The version number of the template version.

+ * + */ + VersionNumber?: number; +} + +export namespace TemplateVersionSummary { + export function isa(o: any): o is TemplateVersionSummary { + return _smithy.isa(o, "TemplateVersionSummary"); + } +} + +/** + * + *

Teradata parameters.

+ * + */ +export interface TeradataParameters { + __type?: "TeradataParameters"; + /** + * + *

Database.

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

Host.

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

Port.

+ * + */ + Port: number | undefined; +} + +export namespace TeradataParameters { + export function isa(o: any): o is TeradataParameters { + return _smithy.isa(o, "TeradataParameters"); + } +} + +export enum TextQualifier { + DOUBLE_QUOTE = "DOUBLE_QUOTE", + SINGLE_QUOTE = "SINGLE_QUOTE" +} + +/** + * + *

A data transformation on a logical table. This is a variant type structure. No more than + * one of the attributes should be non-null for this structure to be valid.

+ * + */ +export interface TransformOperation { + __type?: "TransformOperation"; + /** + * + *

A transform operation that casts a column to a different type.

+ * + */ + CastColumnTypeOperation?: CastColumnTypeOperation; + + /** + * + *

An operation that creates calculated columns. Columns created in one such operation form + * a lexical closure.

+ * + */ + CreateColumnsOperation?: CreateColumnsOperation; + + /** + * + *

An operation that filters rows based on some condition.

+ * + */ + FilterOperation?: FilterOperation; + + /** + * + *

An operation that projects columns. Operations that come after a projection can only + * refer to projected columns.

+ * + */ + ProjectOperation?: ProjectOperation; + + /** + * + *

An operation that renames a column.

+ * + */ + RenameColumnOperation?: RenameColumnOperation; + + /** + * + *

An operation that tags a column with additional information.

+ * + */ + TagColumnOperation?: TagColumnOperation; +} + +export namespace TransformOperation { + export function isa(o: any): o is TransformOperation { + return _smithy.isa(o, "TransformOperation"); + } +} + +/** + * + *

Twitter parameters.

+ * + */ +export interface TwitterParameters { + __type?: "TwitterParameters"; + /** + * + *

Maximum number of rows to query Twitter.

+ * + */ + MaxRows: number | undefined; + + /** + * + *

Twitter query string.

+ * + */ + Query: string | undefined; +} + +export namespace TwitterParameters { + export function isa(o: any): o is TwitterParameters { + return _smithy.isa(o, "TwitterParameters"); + } +} + +export interface UntagResourceRequest { + __type?: "UntagResourceRequest"; + /** + * + *

The Amazon Resource Name (ARN) of the resource that you want to untag.

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

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

+ * + */ + TagKeys: Array | undefined; +} + +export namespace UntagResourceRequest { + export function isa(o: any): o is UntagResourceRequest { + return _smithy.isa(o, "UntagResourceRequest"); + } +} + +export interface UntagResourceResponse extends $MetadataBearer { + __type?: "UntagResourceResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace UntagResourceResponse { + export function isa(o: any): o is UntagResourceResponse { + return _smithy.isa(o, "UntagResourceResponse"); + } +} + +export interface UpdateDashboardPermissionsRequest { + __type?: "UpdateDashboardPermissionsRequest"; + /** + * + *

AWS account ID that contains the dashboard you are updating.

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

The ID for the dashboard.

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

The permissions that you want to grant on this resource.

+ * + */ + GrantPermissions?: Array; + + /** + * + *

The permissions that you want to revoke from this resource.

+ * + */ + RevokePermissions?: Array; +} + +export namespace UpdateDashboardPermissionsRequest { + export function isa(o: any): o is UpdateDashboardPermissionsRequest { + return _smithy.isa(o, "UpdateDashboardPermissionsRequest"); + } +} + +export interface UpdateDashboardPermissionsResponse extends $MetadataBearer { + __type?: "UpdateDashboardPermissionsResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the dashboard.

+ * + */ + DashboardArn?: string; + + /** + * + *

The ID for the dashboard.

+ * + */ + DashboardId?: string; + + /** + * + *

Information about the permissions on the dashboard.

+ * + */ + Permissions?: Array; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace UpdateDashboardPermissionsResponse { + export function isa(o: any): o is UpdateDashboardPermissionsResponse { + return _smithy.isa(o, "UpdateDashboardPermissionsResponse"); + } +} + +export interface UpdateDashboardPublishedVersionRequest { + __type?: "UpdateDashboardPublishedVersionRequest"; + /** + * + *

AWS account ID that contains the dashboard you are updating.

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

The ID for the dashboard.

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

The version number of the dashboard.

+ * + */ + VersionNumber: number | undefined; +} + +export namespace UpdateDashboardPublishedVersionRequest { + export function isa(o: any): o is UpdateDashboardPublishedVersionRequest { + return _smithy.isa(o, "UpdateDashboardPublishedVersionRequest"); + } +} + +export interface UpdateDashboardPublishedVersionResponse + extends $MetadataBearer { + __type?: "UpdateDashboardPublishedVersionResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the dashboard.

+ * + */ + DashboardArn?: string; + + /** + * + *

The ID for the dashboard.

+ * + */ + DashboardId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace UpdateDashboardPublishedVersionResponse { + export function isa(o: any): o is UpdateDashboardPublishedVersionResponse { + return _smithy.isa(o, "UpdateDashboardPublishedVersionResponse"); + } +} + +export interface UpdateDashboardRequest { + __type?: "UpdateDashboardRequest"; + /** + * + *

AWS account ID that contains the dashboard you are updating.

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

The ID for the dashboard.

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

Publishing options when creating a dashboard.

+ *
    + *
  • + *

    AvailabilityStatus for AdHocFilteringOption - This can be either + * ENABLED or DISABLED. When This is set to set to + * DISABLED, QuickSight disables the left filter pane on the published + * dashboard, which can be used for AdHoc filtering. Enabled by default.

    + *
  • + *
  • + *

    AvailabilityStatus for ExportToCSVOption - This can be either ENABLED + * or DISABLED. The visual option to export data to CSV is disabled when + * this is set to DISABLED. Enabled by default.

    + *
  • + *
  • + *

    VisibilityState for SheetControlsOption - This can be either + * COLLAPSED or EXPANDED. The sheet controls pane is collapsed + * by default when set to true. Collapsed by default.

    + *
  • + *
+ * + */ + DashboardPublishOptions?: DashboardPublishOptions; + + /** + * + *

The display name of the dashboard.

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

A structure that contains the parameters of the dashboard.

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

The template or analysis from which the dashboard is + * created. The SouceTemplate entity accepts the Arn of the template + * and also references to replacement datasets for the placeholders + * set when creating the template. The replacement datasets need to follow + * the same schema as the datasets for which placeholders were created + * when creating the template.

+ * + */ + SourceEntity: DashboardSourceEntity | undefined; + + /** + * + *

A description for the first version of the dashboard being created.

+ * + */ + VersionDescription?: string; +} + +export namespace UpdateDashboardRequest { + export function isa(o: any): o is UpdateDashboardRequest { + return _smithy.isa(o, "UpdateDashboardRequest"); + } +} + +export interface UpdateDashboardResponse extends $MetadataBearer { + __type?: "UpdateDashboardResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the resource.

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

The creation status of the request.

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

The ID for the dashboard.

+ * + */ + DashboardId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The HTTP status of the request.

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

The ARN of the dashboard, including the version number.

+ * + */ + VersionArn?: string; +} + +export namespace UpdateDashboardResponse { + export function isa(o: any): o is UpdateDashboardResponse { + return _smithy.isa(o, "UpdateDashboardResponse"); + } +} + +export interface UpdateDataSetPermissionsRequest { + __type?: "UpdateDataSetPermissionsRequest"; + /** + * + *

The AWS Account ID.

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

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

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

The resource permissions that you want to grant to the dataset.

+ * + */ + GrantPermissions?: Array; + + /** + * + *

The resource permissions that you want to revoke from the dataset.

+ * + */ + RevokePermissions?: Array; +} + +export namespace UpdateDataSetPermissionsRequest { + export function isa(o: any): o is UpdateDataSetPermissionsRequest { + return _smithy.isa(o, "UpdateDataSetPermissionsRequest"); + } +} + +export interface UpdateDataSetPermissionsResponse extends $MetadataBearer { + __type?: "UpdateDataSetPermissionsResponse"; + /** + * + *

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 AWS Region for each AWS account.

+ * + */ + DataSetId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace UpdateDataSetPermissionsResponse { + export function isa(o: any): o is UpdateDataSetPermissionsResponse { + return _smithy.isa(o, "UpdateDataSetPermissionsResponse"); + } +} + +export interface UpdateDataSetRequest { + __type?: "UpdateDataSetRequest"; + /** + * + *

The AWS Account ID.

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

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

+ * + */ + ColumnGroups?: Array; + + /** + * + *

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

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

Indicates whether or not you want to import the data into SPICE.

+ * + */ + ImportMode: DataSetImportMode | string | undefined; + + /** + * + *

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

+ * + */ + LogicalTableMap?: { [key: string]: LogicalTable }; + + /** + * + *

The display name for the dataset.

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

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

+ * + */ + PhysicalTableMap: { [key: string]: PhysicalTable } | undefined; + + /** + * + *

Row-level security configuration on the data you want to create.

+ * + */ + RowLevelPermissionDataSet?: RowLevelPermissionDataSet; +} + +export namespace UpdateDataSetRequest { + export function isa(o: any): o is UpdateDataSetRequest { + return _smithy.isa(o, "UpdateDataSetRequest"); + } +} + +export interface UpdateDataSetResponse extends $MetadataBearer { + __type?: "UpdateDataSetResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the dataset.

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

The ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSetId?: string; + + /** + * + *

The ARN for the ingestion, which is triggered as a result of dataset creation if the import mode is SPICE

+ * + */ + IngestionArn?: string; + + /** + * + *

The ID of the ingestion, which is triggered as a result of dataset creation if the import mode is SPICE

+ * + */ + IngestionId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace UpdateDataSetResponse { + export function isa(o: any): o is UpdateDataSetResponse { + return _smithy.isa(o, "UpdateDataSetResponse"); + } +} + +export interface UpdateDataSourcePermissionsRequest { + __type?: "UpdateDataSourcePermissionsRequest"; + /** + * + *

The AWS account ID.

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

The ID of the data source. This ID is unique per AWS Region for each AWS account.

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

A list of resource permissions that you want to grant on the data source.

+ * + */ + GrantPermissions?: Array; + + /** + * + *

A list of resource permissions that you want to revoke on the data source.

+ * + */ + RevokePermissions?: Array; +} + +export namespace UpdateDataSourcePermissionsRequest { + export function isa(o: any): o is UpdateDataSourcePermissionsRequest { + return _smithy.isa(o, "UpdateDataSourcePermissionsRequest"); + } +} + +export interface UpdateDataSourcePermissionsResponse extends $MetadataBearer { + __type?: "UpdateDataSourcePermissionsResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the data source.

+ * + */ + DataSourceArn?: string; + + /** + * + *

The ID of the data source. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSourceId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace UpdateDataSourcePermissionsResponse { + export function isa(o: any): o is UpdateDataSourcePermissionsResponse { + return _smithy.isa(o, "UpdateDataSourcePermissionsResponse"); + } +} + +export interface UpdateDataSourceRequest { + __type?: "UpdateDataSourceRequest"; + /** + * + *

The AWS account ID.

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

The credentials that QuickSight that uses to connect to your underlying source. Currently, + * only credentials based on user name and password are supported.

+ * + */ + Credentials?: DataSourceCredentials; + + /** + * + *

The ID of the data source. This ID is unique per AWS Region for each AWS account.

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

The parameters that QuickSight uses to connect to your underlying source.

+ * + */ + DataSourceParameters?: DataSourceParameters; + + /** + * + *

A display name for the data source.

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

Secure Socket Layer (SSL) properties that apply when QuickSight connects to your underlying + * source.

+ * + */ + SslProperties?: SslProperties; + + /** + * + *

Use this parameter only when you want QuickSight to use a VPC connection when connecting to + * your underlying source.

+ * + */ + VpcConnectionProperties?: VpcConnectionProperties; +} + +export namespace UpdateDataSourceRequest { + export function isa(o: any): o is UpdateDataSourceRequest { + return _smithy.isa(o, "UpdateDataSourceRequest"); + } +} + +export interface UpdateDataSourceResponse extends $MetadataBearer { + __type?: "UpdateDataSourceResponse"; + /** + * + *

The Amazon Resource Name (ARN) of the data source.

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

The ID of the data source. This ID is unique per AWS Region for each AWS account.

+ * + */ + DataSourceId?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The update status of the data source's last update.

+ * + */ + UpdateStatus?: ResourceStatus | string; +} + +export namespace UpdateDataSourceResponse { + export function isa(o: any): o is UpdateDataSourceResponse { + return _smithy.isa(o, "UpdateDataSourceResponse"); + } +} + +export interface UpdateGroupRequest { + __type?: "UpdateGroupRequest"; + /** + * + *

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The description for the group that you want to update.

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

The name of the group that you want to update.

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

The namespace. Currently, you should set this to default.

+ * + */ + Namespace: string | undefined; +} + +export namespace UpdateGroupRequest { + export function isa(o: any): o is UpdateGroupRequest { + return _smithy.isa(o, "UpdateGroupRequest"); + } +} + +export interface UpdateGroupResponse extends $MetadataBearer { + __type?: "UpdateGroupResponse"; + /** + * + *

The name of the group.

+ * + */ + Group?: Group; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace UpdateGroupResponse { + export function isa(o: any): o is UpdateGroupResponse { + return _smithy.isa(o, "UpdateGroupResponse"); + } +} + +export interface UpdateIAMPolicyAssignmentRequest { + __type?: "UpdateIAMPolicyAssignmentRequest"; + /** + * + *

The name of the assignment. It must be unique within an AWS account.

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

The status of an assignment:

+ *
    + *
  • + *

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

    + *
  • + *
  • + *

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

    + *
  • + *
  • + *

    DRAFT - Assignment is an unfinished draft and isn't used while creating the data + * source.

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

The AWS account ID that contains the IAM policy assignment.

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

QuickSight users and/or groups that you want to assign to the specified IAM policy.

+ * + */ + Identities?: { [key: string]: Array }; + + /** + * + *

The namespace of the assignment.

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

An IAM policy Amazon Resource Name (ARN) that will be applied to specified QuickSight users and groups in this assignment.

+ * + */ + PolicyArn?: string; +} + +export namespace UpdateIAMPolicyAssignmentRequest { + export function isa(o: any): o is UpdateIAMPolicyAssignmentRequest { + return _smithy.isa(o, "UpdateIAMPolicyAssignmentRequest"); + } +} + +export interface UpdateIAMPolicyAssignmentResponse extends $MetadataBearer { + __type?: "UpdateIAMPolicyAssignmentResponse"; + /** + * + *

The ID of the assignment.

+ * + */ + AssignmentId?: string; + + /** + * + *

The name of the assignment.

+ * + */ + AssignmentName?: string; + + /** + * + *

The status of the assignment:

+ *
    + *
  • + *

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

    + *
  • + *
  • + *

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

    + *
  • + *
  • + *

    DRAFT - Assignment is an unfinished draft and isn't used while creating the data + * source.

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

QuickSight users and/or groups that are assigned to this IAM policy.

+ * + */ + Identities?: { [key: string]: Array }; + + /** + * + *

The IAM policy ARN assigned to the QuickSight users and groups specified in this request.

+ * + */ + PolicyArn?: string; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; +} + +export namespace UpdateIAMPolicyAssignmentResponse { + export function isa(o: any): o is UpdateIAMPolicyAssignmentResponse { + return _smithy.isa(o, "UpdateIAMPolicyAssignmentResponse"); + } +} + +export interface UpdateTemplateAliasRequest { + __type?: "UpdateTemplateAliasRequest"; + /** + * + *

The alias of the template that you want to update. If you provide a specific alias, + * you update 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; + + /** + * + *

AWS account ID that contains the template aliases you are updating.

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

The ID for the template.

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

The version number of the template.

+ * + */ + TemplateVersionNumber: number | undefined; +} + +export namespace UpdateTemplateAliasRequest { + export function isa(o: any): o is UpdateTemplateAliasRequest { + return _smithy.isa(o, "UpdateTemplateAliasRequest"); + } +} + +export interface UpdateTemplateAliasResponse extends $MetadataBearer { + __type?: "UpdateTemplateAliasResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The template alias.

+ * + */ + TemplateAlias?: TemplateAlias; +} + +export namespace UpdateTemplateAliasResponse { + export function isa(o: any): o is UpdateTemplateAliasResponse { + return _smithy.isa(o, "UpdateTemplateAliasResponse"); + } +} + +export interface UpdateTemplatePermissionsRequest { + __type?: "UpdateTemplatePermissionsRequest"; + /** + * + *

AWS account ID that contains the template.

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

A list of resource permissions to be granted on the template.

+ * + */ + GrantPermissions?: Array; + + /** + * + *

A list of resource permissions to be revoked from the template.

+ * + */ + RevokePermissions?: Array; + + /** + * + *

The ID for the template.

+ * + */ + TemplateId: string | undefined; +} + +export namespace UpdateTemplatePermissionsRequest { + export function isa(o: any): o is UpdateTemplatePermissionsRequest { + return _smithy.isa(o, "UpdateTemplatePermissionsRequest"); + } +} + +export interface UpdateTemplatePermissionsResponse extends $MetadataBearer { + __type?: "UpdateTemplatePermissionsResponse"; + /** + * + *

A list of resource permissions to be set on the template.

+ * + */ + Permissions?: Array; + + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The Amazon Resource Name (ARN) of the template.

+ * + */ + TemplateArn?: string; + + /** + * + *

The ID for the template.

+ * + */ + TemplateId?: string; +} + +export namespace UpdateTemplatePermissionsResponse { + export function isa(o: any): o is UpdateTemplatePermissionsResponse { + return _smithy.isa(o, "UpdateTemplatePermissionsResponse"); + } +} + +export interface UpdateTemplateRequest { + __type?: "UpdateTemplateRequest"; + /** + * + *

AWS account ID that contains the template you are updating.

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

The name for the template.

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

The source QuickSight entity from which this template is being created. Templates can be + * currently created from an Analysis or another template.

+ * + */ + SourceEntity: TemplateSourceEntity | undefined; + + /** + * + *

The ID for the template.

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

A description of the current template version being updated. + * Every time you cal UpdateTemplate you create a new version. Each + * version of the template maintains a description of the version in the VersionDescription + * field.

+ * + */ + VersionDescription?: string; +} + +export namespace UpdateTemplateRequest { + export function isa(o: any): o is UpdateTemplateRequest { + return _smithy.isa(o, "UpdateTemplateRequest"); + } +} + +export interface UpdateTemplateResponse extends $MetadataBearer { + __type?: "UpdateTemplateResponse"; + /** + * + *

The Amazon Resource Name (ARN) for the template.

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

The creation status of the template.

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

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The ID for the template.

+ * + */ + TemplateId?: string; + + /** + * + *

The Amazon Resource Name (ARN) for the template, including the version information of + * the first version.

+ * + */ + VersionArn?: string; +} + +export namespace UpdateTemplateResponse { + export function isa(o: any): o is UpdateTemplateResponse { + return _smithy.isa(o, "UpdateTemplateResponse"); + } +} + +export interface UpdateUserRequest { + __type?: "UpdateUserRequest"; + /** + * + *

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS + * account that contains your Amazon QuickSight account.

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

The email address of the user that you want to update.

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

The namespace. Currently, you should set this to default.

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

The Amazon QuickSight role of 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 QuickSight + * settings.

    + *
  • + *
+ * + */ + Role: UserRole | string | undefined; + + /** + * + *

The Amazon QuickSight user name that you want to update.

+ * + */ + UserName: string | undefined; +} + +export namespace UpdateUserRequest { + export function isa(o: any): o is UpdateUserRequest { + return _smithy.isa(o, "UpdateUserRequest"); + } +} + +export interface UpdateUserResponse extends $MetadataBearer { + __type?: "UpdateUserResponse"; + /** + * + *

The AWS request ID for this operation.

+ * + */ + RequestId?: string; + + /** + * + *

The Amazon QuickSight user.

+ * + */ + User?: User; +} + +export namespace UpdateUserResponse { + export function isa(o: any): o is UpdateUserResponse { + return _smithy.isa(o, "UpdateUserResponse"); + } +} + +/** + * + *

Information on source file(s) format.

+ * + */ +export interface UploadSettings { + __type?: "UploadSettings"; + /** + * + *

Whether or not the file(s) has a header row.

+ * + */ + ContainsHeader?: boolean; + + /** + * + *

The delimiter between values in the file.

+ * + */ + Delimiter?: string; + + /** + * + *

File format.

+ * + */ + Format?: FileFormat | string; + + /** + * + *

A row number to start reading data from.

+ * + */ + StartFromRow?: number; + + /** + * + *

Text qualifier.

+ * + */ + TextQualifier?: TextQualifier | string; +} + +export namespace UploadSettings { + export function isa(o: any): o is UploadSettings { + return _smithy.isa(o, "UploadSettings"); + } +} + +/** + * + *

A registered user of Amazon QuickSight. Currently, an Amazon QuickSight subscription + * can't contain more than 20 million users.

+ * + */ +export interface User { + __type?: "User"; + /** + * + *

Active status of user. When you create an Amazon QuickSight user that’s not an IAM user + * or an AD user, that user is inactive until they sign in and provide a password.

+ * + */ + Active?: boolean; + + /** + * + *

The Amazon Resource name (ARN) for the user.

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

The user's email address.

+ * + */ + Email?: string; + + /** + * + *

The type of identity authentication used by the user.

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

The principal ID of the user.

+ * + */ + PrincipalId?: 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 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 user's user name.

+ * + */ + UserName?: string; +} + +export namespace User { + export function isa(o: any): o is User { + return _smithy.isa(o, "User"); + } +} + +export enum UserRole { + ADMIN = "ADMIN", + AUTHOR = "AUTHOR", + READER = "READER", + RESTRICTED_AUTHOR = "RESTRICTED_AUTHOR", + RESTRICTED_READER = "RESTRICTED_READER" +} + +/** + * + *

VPC connection properties.

+ * + */ +export interface VpcConnectionProperties { + __type?: "VpcConnectionProperties"; + /** + * + *

The Amazon Resource Name (ARN) for the VPC connection.

+ * + */ + VpcConnectionArn: string | undefined; +} + +export namespace VpcConnectionProperties { + export function isa(o: any): o is VpcConnectionProperties { + return _smithy.isa(o, "VpcConnectionProperties"); + } +} + +/** + * + *

You don't have access to this. The provided credentials couldn't be validated. + * You might not be authorized to carry out the request. Ensure 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 access keys.

+ * + */ +export interface AccessDeniedException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "AccessDeniedException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request id for this request.

+ * + */ + RequestId?: string; +} + +export namespace AccessDeniedException { + export function isa(o: any): o is AccessDeniedException { + return _smithy.isa(o, "AccessDeniedException"); + } +} + +export enum ColumnDataType { + DATETIME = "DATETIME", + DECIMAL = "DECIMAL", + INTEGER = "INTEGER", + STRING = "STRING" +} + +/** + * + *

Updating or deleting a resource can cause an inconsistent state.

+ * + */ +export interface ConflictException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "ConflictException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request id for this request.

+ * + */ + RequestId?: string; +} + +export namespace ConflictException { + export function isa(o: any): o is ConflictException { + return _smithy.isa(o, "ConflictException"); + } +} + +export enum ExceptionResourceType { + ACCOUNT_SETTINGS = "ACCOUNT_SETTINGS", + DATA_SET = "DATA_SET", + DATA_SOURCE = "DATA_SOURCE", + GROUP = "GROUP", + IAMPOLICY_ASSIGNMENT = "IAMPOLICY_ASSIGNMENT", + INGESTION = "INGESTION", + NAMESPACE = "NAMESPACE", + USER = "USER", + VPC_CONNECTION = "VPC_CONNECTION" +} + +export enum IdentityType { + IAM = "IAM", + QUICKSIGHT = "QUICKSIGHT" +} + +/** + * + *

An internal failure occurred.

+ * + */ +export interface InternalFailureException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "InternalFailureException"; + $fault: "server"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace InternalFailureException { + export function isa(o: any): o is InternalFailureException { + return _smithy.isa(o, "InternalFailureException"); + } +} + +/** + * + *

The NextToken value isn't valid.

+ * + */ +export interface InvalidNextTokenException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "InvalidNextTokenException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace InvalidNextTokenException { + export function isa(o: any): o is InvalidNextTokenException { + return _smithy.isa(o, "InvalidNextTokenException"); + } +} + +/** + * + *

One or more parameters don't have a valid value.

+ * + */ +export interface InvalidParameterValueException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "InvalidParameterValueException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace InvalidParameterValueException { + export function isa(o: any): o is InvalidParameterValueException { + return _smithy.isa(o, "InvalidParameterValueException"); + } +} + +/** + * + *

A limit is exceeded.

+ * + */ +export interface LimitExceededException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "LimitExceededException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; + + /** + * + *

Limit exceeded.

+ * + */ + ResourceType?: ExceptionResourceType | string; +} + +export namespace LimitExceededException { + export function isa(o: any): o is LimitExceededException { + return _smithy.isa(o, "LimitExceededException"); + } +} + +/** + * + *

One or more preconditions aren't met.

+ * + */ +export interface PreconditionNotMetException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "PreconditionNotMetException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace PreconditionNotMetException { + export function isa(o: any): o is PreconditionNotMetException { + return _smithy.isa(o, "PreconditionNotMetException"); + } +} + +/** + * + *

The resource specified already exists.

+ * + */ +export interface ResourceExistsException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "ResourceExistsException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; + + /** + * + *

The AWS request ID for this request.

+ * + */ + ResourceType?: ExceptionResourceType | string; +} + +export namespace ResourceExistsException { + export function isa(o: any): o is ResourceExistsException { + return _smithy.isa(o, "ResourceExistsException"); + } +} + +/** + * + *

One or more resources can't be found.

+ * + */ +export interface ResourceNotFoundException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "ResourceNotFoundException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; + + /** + * + *

The AWS request ID for this request.

+ * + */ + ResourceType?: ExceptionResourceType | string; +} + +export namespace ResourceNotFoundException { + export function isa(o: any): o is ResourceNotFoundException { + return _smithy.isa(o, "ResourceNotFoundException"); + } +} + +/** + * + *

Permission for the resource.

+ * + */ +export interface ResourcePermission { + __type?: "ResourcePermission"; + /** + * + *

The action to grant or revoke permissions on. For example, + * "quicksight:DescribeDashboard".

+ * + */ + Actions: Array | undefined; + + /** + * + *

The Amazon Resource Name (ARN) of a QuickSight user or group, or an IAM ARN. If you are + * using cross-account resource sharing, this is the IAM ARN of an account root. Otherwise, it + * is the ARN of a QuickSight user or group. .

+ * + */ + Principal: string | undefined; +} + +export namespace ResourcePermission { + export function isa(o: any): o is ResourcePermission { + return _smithy.isa(o, "ResourcePermission"); + } +} + +export enum ResourceStatus { + CREATION_FAILED = "CREATION_FAILED", + CREATION_IN_PROGRESS = "CREATION_IN_PROGRESS", + CREATION_SUCCESSFUL = "CREATION_SUCCESSFUL", + UPDATE_FAILED = "UPDATE_FAILED", + UPDATE_IN_PROGRESS = "UPDATE_IN_PROGRESS", + UPDATE_SUCCESSFUL = "UPDATE_SUCCESSFUL" +} + +/** + * + *

This resource is currently unavailable.

+ * + */ +export interface ResourceUnavailableException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "ResourceUnavailableException"; + $fault: "server"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; + + /** + * + *

The resource type for this request.

+ * + */ + ResourceType?: ExceptionResourceType | string; +} + +export namespace ResourceUnavailableException { + export function isa(o: any): o is ResourceUnavailableException { + return _smithy.isa(o, "ResourceUnavailableException"); + } +} + +/** + * + *

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

+ * + */ +export interface Tag { + __type?: "Tag"; + /** + * + *

Tag key.

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

Tag value.

+ * + */ + Value: string | undefined; +} + +export namespace Tag { + export function isa(o: any): o is Tag { + return _smithy.isa(o, "Tag"); + } +} + +/** + * + *

Access is throttled.

+ * + */ +export interface ThrottlingException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "ThrottlingException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace ThrottlingException { + export function isa(o: any): o is ThrottlingException { + return _smithy.isa(o, "ThrottlingException"); + } +} + +/** + * + *

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 + * QuickSight currently has Standard Edition and Enterprise Edition. Not every operation and + * capability is available in every edition.

+ * + */ +export interface UnsupportedUserEditionException + extends _smithy.SmithyException, + $MetadataBearer { + __type: "UnsupportedUserEditionException"; + $fault: "client"; + Message?: string; + /** + * + *

The AWS request ID for this request.

+ * + */ + RequestId?: string; +} + +export namespace UnsupportedUserEditionException { + export function isa(o: any): o is UnsupportedUserEditionException { + return _smithy.isa(o, "UnsupportedUserEditionException"); + } +} diff --git a/clients/client-quicksight/package.json b/clients/client-quicksight/package.json new file mode 100644 index 000000000000..aa0118a08e45 --- /dev/null +++ b/clients/client-quicksight/package.json @@ -0,0 +1,75 @@ +{ + "name": "@aws-sdk/client-quicksight", + "description": "@aws-sdk/client-quicksight client", + "version": "0.1.0-preview.1", + "scripts": { + "clean": "npm run remove-definitions && npm run remove-dist && npm run remove-js && npm run remove-maps", + "build-documentation": "npm run clean && typedoc ./", + "prepublishOnly": "yarn build", + "pretest": "tsc", + "remove-definitions": "rimraf ./types", + "remove-dist": "rimraf ./dist", + "remove-documentation": "rimraf ./docs", + "remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./models/*.js && rimraf ./protocols/*.js", + "remove-maps": "rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./models/*.js.map && rimraf ./protocols/*.js.map", + "test": "exit 0", + "smoke-test": "npm run pretest && node ./test/smoke/index.spec.js", + "build:es": "tsc -p tsconfig.es.json", + "build": "yarn pretest && yarn build:es" + }, + "main": "./dist/cjs/index.js", + "types": "./types/index.d.ts", + "module": "./dist/es/index.js", + "browser": { + "./runtimeConfig": "./runtimeConfig.browser" + }, + "sideEffects": false, + "dependencies": { + "tslib": "^1.8.0", + "@aws-crypto/sha256-browser": "^0.1.0-preview.1", + "@aws-sdk/config-resolver": "^0.1.0-preview.5", + "@aws-sdk/credential-provider-node": "^0.1.0-preview.7", + "@aws-sdk/fetch-http-handler": "^0.1.0-preview.5", + "@aws-sdk/hash-node": "^0.1.0-preview.5", + "@aws-sdk/invalid-dependency": "^0.1.0-preview.1", + "@aws-sdk/middleware-content-length": "^0.1.0-preview.5", + "@aws-sdk/middleware-host-header": "^0.1.0-preview.1", + "@aws-sdk/middleware-retry": "^0.1.0-preview.5", + "@aws-sdk/middleware-serde": "^0.1.0-preview.1", + "@aws-sdk/middleware-signing": "^0.1.0-preview.7", + "@aws-sdk/middleware-stack": "^0.1.0-preview.6", + "@aws-sdk/middleware-user-agent": "^0.1.0-preview.1", + "@aws-sdk/node-http-handler": "^0.1.0-preview.6", + "@aws-sdk/protocol-http": "^0.1.0-preview.1", + "@aws-sdk/region-provider": "^0.1.0-preview.5", + "@aws-sdk/smithy-client": "^0.1.0-preview.1", + "@aws-sdk/stream-collector-browser": "^0.1.0-preview.5", + "@aws-sdk/stream-collector-node": "^0.1.0-preview.6", + "@aws-sdk/types": "^0.1.0-preview.5", + "@aws-sdk/url-parser-browser": "^0.1.0-preview.5", + "@aws-sdk/url-parser-node": "^0.1.0-preview.5", + "@aws-sdk/util-base64-browser": "^0.1.0-preview.3", + "@aws-sdk/util-base64-node": "^0.1.0-preview.3", + "@aws-sdk/util-body-length-browser": "^0.1.0-preview.3", + "@aws-sdk/util-body-length-node": "^0.1.0-preview.4", + "@aws-sdk/util-user-agent-browser": "^0.1.0-preview.6", + "@aws-sdk/util-user-agent-node": "^0.1.0-preview.6", + "@aws-sdk/util-utf8-browser": "^0.1.0-preview.3", + "@aws-sdk/util-utf8-node": "^0.1.0-preview.3" + }, + "devDependencies": { + "rimraf": "^3.0.0", + "typedoc": "^0.15.0", + "typescript": "^3.6.3", + "@types/node": "^12.7.5", + "tslib": "^1.8.0" + }, + "engines": { + "node": ">=8.0.0" + }, + "author": { + "name": "AWS SDK for JavaScript Team", + "url": "https://aws.amazon.com/javascript/" + }, + "license": "Apache-2.0" +} diff --git a/clients/client-quicksight/protocols/Aws_restJson1_1.ts b/clients/client-quicksight/protocols/Aws_restJson1_1.ts new file mode 100644 index 000000000000..c5670761a317 --- /dev/null +++ b/clients/client-quicksight/protocols/Aws_restJson1_1.ts @@ -0,0 +1,14261 @@ +import { + CancelIngestionCommandInput, + CancelIngestionCommandOutput +} from "../commands/CancelIngestionCommand"; +import { + CreateDashboardCommandInput, + CreateDashboardCommandOutput +} from "../commands/CreateDashboardCommand"; +import { + CreateDataSetCommandInput, + CreateDataSetCommandOutput +} from "../commands/CreateDataSetCommand"; +import { + CreateDataSourceCommandInput, + CreateDataSourceCommandOutput +} from "../commands/CreateDataSourceCommand"; +import { + CreateGroupCommandInput, + CreateGroupCommandOutput +} from "../commands/CreateGroupCommand"; +import { + CreateGroupMembershipCommandInput, + CreateGroupMembershipCommandOutput +} from "../commands/CreateGroupMembershipCommand"; +import { + CreateIAMPolicyAssignmentCommandInput, + CreateIAMPolicyAssignmentCommandOutput +} from "../commands/CreateIAMPolicyAssignmentCommand"; +import { + CreateIngestionCommandInput, + CreateIngestionCommandOutput +} from "../commands/CreateIngestionCommand"; +import { + CreateTemplateAliasCommandInput, + CreateTemplateAliasCommandOutput +} from "../commands/CreateTemplateAliasCommand"; +import { + CreateTemplateCommandInput, + CreateTemplateCommandOutput +} from "../commands/CreateTemplateCommand"; +import { + DeleteDashboardCommandInput, + DeleteDashboardCommandOutput +} from "../commands/DeleteDashboardCommand"; +import { + DeleteDataSetCommandInput, + DeleteDataSetCommandOutput +} from "../commands/DeleteDataSetCommand"; +import { + DeleteDataSourceCommandInput, + DeleteDataSourceCommandOutput +} from "../commands/DeleteDataSourceCommand"; +import { + DeleteGroupCommandInput, + DeleteGroupCommandOutput +} from "../commands/DeleteGroupCommand"; +import { + DeleteGroupMembershipCommandInput, + DeleteGroupMembershipCommandOutput +} from "../commands/DeleteGroupMembershipCommand"; +import { + DeleteIAMPolicyAssignmentCommandInput, + DeleteIAMPolicyAssignmentCommandOutput +} from "../commands/DeleteIAMPolicyAssignmentCommand"; +import { + DeleteTemplateAliasCommandInput, + DeleteTemplateAliasCommandOutput +} from "../commands/DeleteTemplateAliasCommand"; +import { + DeleteTemplateCommandInput, + DeleteTemplateCommandOutput +} from "../commands/DeleteTemplateCommand"; +import { + DeleteUserByPrincipalIdCommandInput, + DeleteUserByPrincipalIdCommandOutput +} from "../commands/DeleteUserByPrincipalIdCommand"; +import { + DeleteUserCommandInput, + DeleteUserCommandOutput +} from "../commands/DeleteUserCommand"; +import { + DescribeDashboardCommandInput, + DescribeDashboardCommandOutput +} from "../commands/DescribeDashboardCommand"; +import { + DescribeDashboardPermissionsCommandInput, + DescribeDashboardPermissionsCommandOutput +} from "../commands/DescribeDashboardPermissionsCommand"; +import { + DescribeDataSetCommandInput, + DescribeDataSetCommandOutput +} from "../commands/DescribeDataSetCommand"; +import { + DescribeDataSetPermissionsCommandInput, + DescribeDataSetPermissionsCommandOutput +} from "../commands/DescribeDataSetPermissionsCommand"; +import { + DescribeDataSourceCommandInput, + DescribeDataSourceCommandOutput +} from "../commands/DescribeDataSourceCommand"; +import { + DescribeDataSourcePermissionsCommandInput, + DescribeDataSourcePermissionsCommandOutput +} from "../commands/DescribeDataSourcePermissionsCommand"; +import { + DescribeGroupCommandInput, + DescribeGroupCommandOutput +} from "../commands/DescribeGroupCommand"; +import { + DescribeIAMPolicyAssignmentCommandInput, + DescribeIAMPolicyAssignmentCommandOutput +} from "../commands/DescribeIAMPolicyAssignmentCommand"; +import { + DescribeIngestionCommandInput, + DescribeIngestionCommandOutput +} from "../commands/DescribeIngestionCommand"; +import { + DescribeTemplateAliasCommandInput, + DescribeTemplateAliasCommandOutput +} from "../commands/DescribeTemplateAliasCommand"; +import { + DescribeTemplateCommandInput, + DescribeTemplateCommandOutput +} from "../commands/DescribeTemplateCommand"; +import { + DescribeTemplatePermissionsCommandInput, + DescribeTemplatePermissionsCommandOutput +} from "../commands/DescribeTemplatePermissionsCommand"; +import { + DescribeUserCommandInput, + DescribeUserCommandOutput +} from "../commands/DescribeUserCommand"; +import { + GetDashboardEmbedUrlCommandInput, + GetDashboardEmbedUrlCommandOutput +} from "../commands/GetDashboardEmbedUrlCommand"; +import { + ListDashboardVersionsCommandInput, + ListDashboardVersionsCommandOutput +} from "../commands/ListDashboardVersionsCommand"; +import { + ListDashboardsCommandInput, + ListDashboardsCommandOutput +} from "../commands/ListDashboardsCommand"; +import { + ListDataSetsCommandInput, + ListDataSetsCommandOutput +} from "../commands/ListDataSetsCommand"; +import { + ListDataSourcesCommandInput, + ListDataSourcesCommandOutput +} from "../commands/ListDataSourcesCommand"; +import { + ListGroupMembershipsCommandInput, + ListGroupMembershipsCommandOutput +} from "../commands/ListGroupMembershipsCommand"; +import { + ListGroupsCommandInput, + ListGroupsCommandOutput +} from "../commands/ListGroupsCommand"; +import { + ListIAMPolicyAssignmentsCommandInput, + ListIAMPolicyAssignmentsCommandOutput +} from "../commands/ListIAMPolicyAssignmentsCommand"; +import { + ListIAMPolicyAssignmentsForUserCommandInput, + ListIAMPolicyAssignmentsForUserCommandOutput +} from "../commands/ListIAMPolicyAssignmentsForUserCommand"; +import { + ListIngestionsCommandInput, + ListIngestionsCommandOutput +} from "../commands/ListIngestionsCommand"; +import { + ListTagsForResourceCommandInput, + ListTagsForResourceCommandOutput +} from "../commands/ListTagsForResourceCommand"; +import { + ListTemplateAliasesCommandInput, + ListTemplateAliasesCommandOutput +} from "../commands/ListTemplateAliasesCommand"; +import { + ListTemplateVersionsCommandInput, + ListTemplateVersionsCommandOutput +} from "../commands/ListTemplateVersionsCommand"; +import { + ListTemplatesCommandInput, + ListTemplatesCommandOutput +} from "../commands/ListTemplatesCommand"; +import { + ListUserGroupsCommandInput, + ListUserGroupsCommandOutput +} from "../commands/ListUserGroupsCommand"; +import { + ListUsersCommandInput, + ListUsersCommandOutput +} from "../commands/ListUsersCommand"; +import { + RegisterUserCommandInput, + RegisterUserCommandOutput +} from "../commands/RegisterUserCommand"; +import { + TagResourceCommandInput, + TagResourceCommandOutput +} from "../commands/TagResourceCommand"; +import { + UntagResourceCommandInput, + UntagResourceCommandOutput +} from "../commands/UntagResourceCommand"; +import { + UpdateDashboardCommandInput, + UpdateDashboardCommandOutput +} from "../commands/UpdateDashboardCommand"; +import { + UpdateDashboardPermissionsCommandInput, + UpdateDashboardPermissionsCommandOutput +} from "../commands/UpdateDashboardPermissionsCommand"; +import { + UpdateDashboardPublishedVersionCommandInput, + UpdateDashboardPublishedVersionCommandOutput +} from "../commands/UpdateDashboardPublishedVersionCommand"; +import { + UpdateDataSetCommandInput, + UpdateDataSetCommandOutput +} from "../commands/UpdateDataSetCommand"; +import { + UpdateDataSetPermissionsCommandInput, + UpdateDataSetPermissionsCommandOutput +} from "../commands/UpdateDataSetPermissionsCommand"; +import { + UpdateDataSourceCommandInput, + UpdateDataSourceCommandOutput +} from "../commands/UpdateDataSourceCommand"; +import { + UpdateDataSourcePermissionsCommandInput, + UpdateDataSourcePermissionsCommandOutput +} from "../commands/UpdateDataSourcePermissionsCommand"; +import { + UpdateGroupCommandInput, + UpdateGroupCommandOutput +} from "../commands/UpdateGroupCommand"; +import { + UpdateIAMPolicyAssignmentCommandInput, + UpdateIAMPolicyAssignmentCommandOutput +} from "../commands/UpdateIAMPolicyAssignmentCommand"; +import { + UpdateTemplateAliasCommandInput, + UpdateTemplateAliasCommandOutput +} from "../commands/UpdateTemplateAliasCommand"; +import { + UpdateTemplateCommandInput, + UpdateTemplateCommandOutput +} from "../commands/UpdateTemplateCommand"; +import { + UpdateTemplatePermissionsCommandInput, + UpdateTemplatePermissionsCommandOutput +} from "../commands/UpdateTemplatePermissionsCommand"; +import { + UpdateUserCommandInput, + UpdateUserCommandOutput +} from "../commands/UpdateUserCommand"; +import { + AccessDeniedException, + ActiveIAMPolicyAssignment, + AdHocFilteringOption, + AmazonElasticsearchParameters, + AthenaParameters, + AuroraParameters, + AuroraPostgreSqlParameters, + AwsIotAnalyticsParameters, + CalculatedColumn, + CastColumnTypeOperation, + ColumnGroup, + ColumnGroupColumnSchema, + ColumnGroupSchema, + ColumnSchema, + ColumnTag, + ConcurrentUpdatingException, + ConflictException, + CreateColumnsOperation, + CredentialPair, + CustomSql, + Dashboard, + DashboardError, + DashboardPublishOptions, + DashboardSourceEntity, + DashboardSourceTemplate, + DashboardSummary, + DashboardVersion, + DashboardVersionSummary, + DataSet, + DataSetConfiguration, + DataSetReference, + DataSetSchema, + DataSetSummary, + DataSource, + DataSourceCredentials, + DataSourceErrorInfo, + DataSourceParameters, + DateTimeParameter, + DecimalParameter, + DomainNotWhitelistedException, + ErrorInfo, + ExportToCSVOption, + FilterOperation, + GeoSpatialColumnGroup, + Group, + GroupMember, + IAMPolicyAssignment, + IAMPolicyAssignmentSummary, + IdentityTypeNotSupportedException, + Ingestion, + InputColumn, + IntegerParameter, + InternalFailureException, + InvalidNextTokenException, + InvalidParameterValueException, + JiraParameters, + JoinInstruction, + LimitExceededException, + LogicalTable, + LogicalTableSource, + ManifestFileLocation, + MariaDbParameters, + MySqlParameters, + OutputColumn, + PhysicalTable, + PostgreSqlParameters, + PreconditionNotMetException, + PrestoParameters, + ProjectOperation, + QueueInfo, + QuickSightUserNotFoundException, + RdsParameters, + RedshiftParameters, + RelationalTable, + RenameColumnOperation, + ResourceExistsException, + ResourceNotFoundException, + ResourcePermission, + ResourceUnavailableException, + RowInfo, + RowLevelPermissionDataSet, + S3Parameters, + S3Source, + ServiceNowParameters, + SessionLifetimeInMinutesInvalidException, + SheetControlsOption, + SnowflakeParameters, + SparkParameters, + SqlServerParameters, + SslProperties, + StringParameter, + Tag, + TagColumnOperation, + Template, + TemplateAlias, + TemplateError, + TemplateSourceAnalysis, + TemplateSourceEntity, + TemplateSourceTemplate, + TemplateSummary, + TemplateVersion, + TemplateVersionSummary, + TeradataParameters, + ThrottlingException, + TransformOperation, + TwitterParameters, + UnsupportedUserEditionException, + UploadSettings, + User, + VpcConnectionProperties, + _Parameters +} from "../models/index"; +import { + HttpRequest as __HttpRequest, + HttpResponse as __HttpResponse +} from "@aws-sdk/protocol-http"; +import { SmithyException as __SmithyException } from "@aws-sdk/smithy-client"; +import { + Endpoint as __Endpoint, + MetadataBearer as __MetadataBearer, + ResponseMetadata as __ResponseMetadata, + SerdeContext as __SerdeContext +} from "@aws-sdk/types"; + +export async function serializeAws_restJson1_1CancelIngestionCommand( + input: CancelIngestionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSetId !== undefined) { + const labelValue: any = input.DataSetId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: DataSetId."); + } + resolvedPath = resolvedPath.replace("{DataSetId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSetId."); + } + if (input.IngestionId !== undefined) { + const labelValue: any = input.IngestionId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: IngestionId." + ); + } + resolvedPath = resolvedPath.replace("{IngestionId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: IngestionId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1CreateDashboardCommand( + input: CreateDashboardCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/dashboards/{DashboardId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DashboardId !== undefined) { + const labelValue: any = input.DashboardId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DashboardId." + ); + } + resolvedPath = resolvedPath.replace("{DashboardId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DashboardId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.DashboardPublishOptions !== undefined) { + bodyParams[ + "DashboardPublishOptions" + ] = serializeAws_restJson1_1DashboardPublishOptions( + input.DashboardPublishOptions, + context + ); + } + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Parameters !== undefined) { + bodyParams["Parameters"] = serializeAws_restJson1_1_Parameters( + input.Parameters, + context + ); + } + if (input.Permissions !== undefined) { + bodyParams["Permissions"] = serializeAws_restJson1_1ResourcePermissionList( + input.Permissions, + context + ); + } + if (input.SourceEntity !== undefined) { + bodyParams["SourceEntity"] = serializeAws_restJson1_1DashboardSourceEntity( + input.SourceEntity, + context + ); + } + if (input.Tags !== undefined) { + bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context); + } + if (input.VersionDescription !== undefined) { + bodyParams["VersionDescription"] = input.VersionDescription; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1CreateDataSetCommand( + input: CreateDataSetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/data-sets"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.ColumnGroups !== undefined) { + bodyParams["ColumnGroups"] = serializeAws_restJson1_1ColumnGroupList( + input.ColumnGroups, + context + ); + } + if (input.DataSetId !== undefined) { + bodyParams["DataSetId"] = input.DataSetId; + } + if (input.ImportMode !== undefined) { + bodyParams["ImportMode"] = input.ImportMode; + } + if (input.LogicalTableMap !== undefined) { + bodyParams["LogicalTableMap"] = serializeAws_restJson1_1LogicalTableMap( + input.LogicalTableMap, + context + ); + } + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Permissions !== undefined) { + bodyParams["Permissions"] = serializeAws_restJson1_1ResourcePermissionList( + input.Permissions, + context + ); + } + if (input.PhysicalTableMap !== undefined) { + bodyParams["PhysicalTableMap"] = serializeAws_restJson1_1PhysicalTableMap( + input.PhysicalTableMap, + context + ); + } + if (input.RowLevelPermissionDataSet !== undefined) { + bodyParams[ + "RowLevelPermissionDataSet" + ] = serializeAws_restJson1_1RowLevelPermissionDataSet( + input.RowLevelPermissionDataSet, + context + ); + } + if (input.Tags !== undefined) { + bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context); + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1CreateDataSourceCommand( + input: CreateDataSourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/data-sources"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.Credentials !== undefined) { + bodyParams["Credentials"] = serializeAws_restJson1_1DataSourceCredentials( + input.Credentials, + context + ); + } + if (input.DataSourceId !== undefined) { + bodyParams["DataSourceId"] = input.DataSourceId; + } + if (input.DataSourceParameters !== undefined) { + bodyParams[ + "DataSourceParameters" + ] = serializeAws_restJson1_1DataSourceParameters( + input.DataSourceParameters, + context + ); + } + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Permissions !== undefined) { + bodyParams["Permissions"] = serializeAws_restJson1_1ResourcePermissionList( + input.Permissions, + context + ); + } + if (input.SslProperties !== undefined) { + bodyParams["SslProperties"] = serializeAws_restJson1_1SslProperties( + input.SslProperties, + context + ); + } + if (input.Tags !== undefined) { + bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context); + } + if (input.Type !== undefined) { + bodyParams["Type"] = input.Type; + } + if (input.VpcConnectionProperties !== undefined) { + bodyParams[ + "VpcConnectionProperties" + ] = serializeAws_restJson1_1VpcConnectionProperties( + input.VpcConnectionProperties, + context + ); + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1CreateGroupCommand( + input: CreateGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.Description !== undefined) { + bodyParams["Description"] = input.Description; + } + if (input.GroupName !== undefined) { + bodyParams["GroupName"] = input.GroupName; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1CreateGroupMembershipCommand( + input: CreateGroupMembershipCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.GroupName !== undefined) { + const labelValue: any = input.GroupName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: GroupName."); + } + resolvedPath = resolvedPath.replace("{GroupName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: GroupName."); + } + if (input.MemberName !== undefined) { + const labelValue: any = input.MemberName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: MemberName."); + } + resolvedPath = resolvedPath.replace("{MemberName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: MemberName."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1CreateIAMPolicyAssignmentCommand( + input: CreateIAMPolicyAssignmentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.AssignmentName !== undefined) { + bodyParams["AssignmentName"] = input.AssignmentName; + } + if (input.AssignmentStatus !== undefined) { + bodyParams["AssignmentStatus"] = input.AssignmentStatus; + } + if (input.Identities !== undefined) { + bodyParams["Identities"] = serializeAws_restJson1_1IdentityMap( + input.Identities, + context + ); + } + if (input.PolicyArn !== undefined) { + bodyParams["PolicyArn"] = input.PolicyArn; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1CreateIngestionCommand( + input: CreateIngestionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSetId !== undefined) { + const labelValue: any = input.DataSetId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: DataSetId."); + } + resolvedPath = resolvedPath.replace("{DataSetId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSetId."); + } + if (input.IngestionId !== undefined) { + const labelValue: any = input.IngestionId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: IngestionId." + ); + } + resolvedPath = resolvedPath.replace("{IngestionId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: IngestionId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1CreateTemplateCommand( + input: CreateTemplateCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/templates/{TemplateId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Permissions !== undefined) { + bodyParams["Permissions"] = serializeAws_restJson1_1ResourcePermissionList( + input.Permissions, + context + ); + } + if (input.SourceEntity !== undefined) { + bodyParams["SourceEntity"] = serializeAws_restJson1_1TemplateSourceEntity( + input.SourceEntity, + context + ); + } + if (input.Tags !== undefined) { + bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context); + } + if (input.VersionDescription !== undefined) { + bodyParams["VersionDescription"] = input.VersionDescription; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1CreateTemplateAliasCommand( + input: CreateTemplateAliasCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"; + if (input.AliasName !== undefined) { + const labelValue: any = input.AliasName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: AliasName."); + } + resolvedPath = resolvedPath.replace("{AliasName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AliasName."); + } + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.TemplateVersionNumber !== undefined) { + bodyParams["TemplateVersionNumber"] = input.TemplateVersionNumber; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1DeleteDashboardCommand( + input: DeleteDashboardCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/dashboards/{DashboardId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DashboardId !== undefined) { + const labelValue: any = input.DashboardId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DashboardId." + ); + } + resolvedPath = resolvedPath.replace("{DashboardId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DashboardId."); + } + const query: any = {}; + if (input.VersionNumber !== undefined) { + query["version-number"] = input.VersionNumber.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1DeleteDataSetCommand( + input: DeleteDataSetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/data-sets/{DataSetId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSetId !== undefined) { + const labelValue: any = input.DataSetId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: DataSetId."); + } + resolvedPath = resolvedPath.replace("{DataSetId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSetId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DeleteDataSourceCommand( + input: DeleteDataSourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/data-sources/{DataSourceId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSourceId !== undefined) { + const labelValue: any = input.DataSourceId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DataSourceId." + ); + } + resolvedPath = resolvedPath.replace("{DataSourceId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSourceId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DeleteGroupCommand( + input: DeleteGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.GroupName !== undefined) { + const labelValue: any = input.GroupName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: GroupName."); + } + resolvedPath = resolvedPath.replace("{GroupName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: GroupName."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DeleteGroupMembershipCommand( + input: DeleteGroupMembershipCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.GroupName !== undefined) { + const labelValue: any = input.GroupName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: GroupName."); + } + resolvedPath = resolvedPath.replace("{GroupName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: GroupName."); + } + if (input.MemberName !== undefined) { + const labelValue: any = input.MemberName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: MemberName."); + } + resolvedPath = resolvedPath.replace("{MemberName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: MemberName."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DeleteIAMPolicyAssignmentCommand( + input: DeleteIAMPolicyAssignmentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespace/{Namespace}/iam-policy-assignments/{AssignmentName}"; + if (input.AssignmentName !== undefined) { + const labelValue: any = input.AssignmentName.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AssignmentName." + ); + } + resolvedPath = resolvedPath.replace("{AssignmentName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AssignmentName."); + } + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DeleteTemplateCommand( + input: DeleteTemplateCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/templates/{TemplateId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + const query: any = {}; + if (input.VersionNumber !== undefined) { + query["version-number"] = input.VersionNumber.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1DeleteTemplateAliasCommand( + input: DeleteTemplateAliasCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"; + if (input.AliasName !== undefined) { + const labelValue: any = input.AliasName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: AliasName."); + } + resolvedPath = resolvedPath.replace("{AliasName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AliasName."); + } + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DeleteUserCommand( + input: DeleteUserCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + if (input.UserName !== undefined) { + const labelValue: any = input.UserName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: UserName."); + } + resolvedPath = resolvedPath.replace("{UserName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: UserName."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DeleteUserByPrincipalIdCommand( + input: DeleteUserByPrincipalIdCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/user-principals/{PrincipalId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + if (input.PrincipalId !== undefined) { + const labelValue: any = input.PrincipalId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: PrincipalId." + ); + } + resolvedPath = resolvedPath.replace("{PrincipalId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: PrincipalId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeDashboardCommand( + input: DescribeDashboardCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/dashboards/{DashboardId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DashboardId !== undefined) { + const labelValue: any = input.DashboardId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DashboardId." + ); + } + resolvedPath = resolvedPath.replace("{DashboardId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DashboardId."); + } + const query: any = {}; + if (input.AliasName !== undefined) { + query["alias-name"] = input.AliasName.toString(); + } + if (input.VersionNumber !== undefined) { + query["version-number"] = input.VersionNumber.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1DescribeDashboardPermissionsCommand( + input: DescribeDashboardPermissionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DashboardId !== undefined) { + const labelValue: any = input.DashboardId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DashboardId." + ); + } + resolvedPath = resolvedPath.replace("{DashboardId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DashboardId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeDataSetCommand( + input: DescribeDataSetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/data-sets/{DataSetId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSetId !== undefined) { + const labelValue: any = input.DataSetId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: DataSetId."); + } + resolvedPath = resolvedPath.replace("{DataSetId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSetId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeDataSetPermissionsCommand( + input: DescribeDataSetPermissionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSetId !== undefined) { + const labelValue: any = input.DataSetId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: DataSetId."); + } + resolvedPath = resolvedPath.replace("{DataSetId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSetId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeDataSourceCommand( + input: DescribeDataSourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/data-sources/{DataSourceId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSourceId !== undefined) { + const labelValue: any = input.DataSourceId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DataSourceId." + ); + } + resolvedPath = resolvedPath.replace("{DataSourceId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSourceId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeDataSourcePermissionsCommand( + input: DescribeDataSourcePermissionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSourceId !== undefined) { + const labelValue: any = input.DataSourceId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DataSourceId." + ); + } + resolvedPath = resolvedPath.replace("{DataSourceId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSourceId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeGroupCommand( + input: DescribeGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.GroupName !== undefined) { + const labelValue: any = input.GroupName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: GroupName."); + } + resolvedPath = resolvedPath.replace("{GroupName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: GroupName."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeIAMPolicyAssignmentCommand( + input: DescribeIAMPolicyAssignmentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"; + if (input.AssignmentName !== undefined) { + const labelValue: any = input.AssignmentName.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AssignmentName." + ); + } + resolvedPath = resolvedPath.replace("{AssignmentName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AssignmentName."); + } + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeIngestionCommand( + input: DescribeIngestionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSetId !== undefined) { + const labelValue: any = input.DataSetId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: DataSetId."); + } + resolvedPath = resolvedPath.replace("{DataSetId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSetId."); + } + if (input.IngestionId !== undefined) { + const labelValue: any = input.IngestionId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: IngestionId." + ); + } + resolvedPath = resolvedPath.replace("{IngestionId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: IngestionId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeTemplateCommand( + input: DescribeTemplateCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/templates/{TemplateId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + const query: any = {}; + if (input.AliasName !== undefined) { + query["alias-name"] = input.AliasName.toString(); + } + if (input.VersionNumber !== undefined) { + query["version-number"] = input.VersionNumber.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1DescribeTemplateAliasCommand( + input: DescribeTemplateAliasCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"; + if (input.AliasName !== undefined) { + const labelValue: any = input.AliasName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: AliasName."); + } + resolvedPath = resolvedPath.replace("{AliasName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AliasName."); + } + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeTemplatePermissionsCommand( + input: DescribeTemplatePermissionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1DescribeUserCommand( + input: DescribeUserCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + if (input.UserName !== undefined) { + const labelValue: any = input.UserName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: UserName."); + } + resolvedPath = resolvedPath.replace("{UserName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: UserName."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1GetDashboardEmbedUrlCommand( + input: GetDashboardEmbedUrlCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DashboardId !== undefined) { + const labelValue: any = input.DashboardId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DashboardId." + ); + } + resolvedPath = resolvedPath.replace("{DashboardId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DashboardId."); + } + const query: any = {}; + if (input.IdentityType !== undefined) { + query["creds-type"] = input.IdentityType.toString(); + } + if (input.ResetDisabled !== undefined) { + query["reset-disabled"] = input.ResetDisabled.toString(); + } + if (input.SessionLifetimeInMinutes !== undefined) { + query["session-lifetime"] = input.SessionLifetimeInMinutes.toString(); + } + if (input.UndoRedoDisabled !== undefined) { + query["undo-redo-disabled"] = input.UndoRedoDisabled.toString(); + } + if (input.UserArn !== undefined) { + query["user-arn"] = input.UserArn.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListDashboardVersionsCommand( + input: ListDashboardVersionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DashboardId !== undefined) { + const labelValue: any = input.DashboardId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DashboardId." + ); + } + resolvedPath = resolvedPath.replace("{DashboardId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DashboardId."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListDashboardsCommand( + input: ListDashboardsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/dashboards"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListDataSetsCommand( + input: ListDataSetsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/data-sets"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListDataSourcesCommand( + input: ListDataSourcesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/data-sources"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListGroupMembershipsCommand( + input: ListGroupMembershipsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.GroupName !== undefined) { + const labelValue: any = input.GroupName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: GroupName."); + } + resolvedPath = resolvedPath.replace("{GroupName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: GroupName."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListGroupsCommand( + input: ListGroupsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListIAMPolicyAssignmentsCommand( + input: ListIAMPolicyAssignmentsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.AssignmentStatus !== undefined) { + bodyParams["AssignmentStatus"] = input.AssignmentStatus; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query, + body: body + }); +} + +export async function serializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCommand( + input: ListIAMPolicyAssignmentsForUserCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/iam-policy-assignments"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + if (input.UserName !== undefined) { + const labelValue: any = input.UserName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: UserName."); + } + resolvedPath = resolvedPath.replace("{UserName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: UserName."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListIngestionsCommand( + input: ListIngestionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSetId !== undefined) { + const labelValue: any = input.DataSetId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: DataSetId."); + } + resolvedPath = resolvedPath.replace("{DataSetId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSetId."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListTagsForResourceCommand( + input: ListTagsForResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/resources/{ResourceArn}/tags"; + if (input.ResourceArn !== undefined) { + const labelValue: any = input.ResourceArn.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: ResourceArn." + ); + } + resolvedPath = resolvedPath.replace("{ResourceArn}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: ResourceArn."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1ListTemplateAliasesCommand( + input: ListTemplateAliasesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-result"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListTemplateVersionsCommand( + input: ListTemplateVersionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/templates/{TemplateId}/versions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListTemplatesCommand( + input: ListTemplatesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/templates"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-result"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListUserGroupsCommand( + input: ListUserGroupsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + if (input.UserName !== undefined) { + const labelValue: any = input.UserName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: UserName."); + } + resolvedPath = resolvedPath.replace("{UserName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: UserName."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1ListUsersCommand( + input: ListUsersCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/accounts/{AwsAccountId}/namespaces/{Namespace}/users"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + const query: any = {}; + if (input.MaxResults !== undefined) { + query["max-results"] = input.MaxResults.toString(); + } + if (input.NextToken !== undefined) { + query["next-token"] = input.NextToken.toString(); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "GET", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1RegisterUserCommand( + input: RegisterUserCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/namespaces/{Namespace}/users"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.Email !== undefined) { + bodyParams["Email"] = input.Email; + } + if (input.IamArn !== undefined) { + bodyParams["IamArn"] = input.IamArn; + } + if (input.IdentityType !== undefined) { + bodyParams["IdentityType"] = input.IdentityType; + } + if (input.SessionName !== undefined) { + bodyParams["SessionName"] = input.SessionName; + } + if (input.UserName !== undefined) { + bodyParams["UserName"] = input.UserName; + } + if (input.UserRole !== undefined) { + bodyParams["UserRole"] = input.UserRole; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1TagResourceCommand( + input: TagResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/resources/{ResourceArn}/tags"; + if (input.ResourceArn !== undefined) { + const labelValue: any = input.ResourceArn.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: ResourceArn." + ); + } + resolvedPath = resolvedPath.replace("{ResourceArn}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: ResourceArn."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.Tags !== undefined) { + bodyParams["Tags"] = serializeAws_restJson1_1TagList(input.Tags, context); + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UntagResourceCommand( + input: UntagResourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = "/resources/{ResourceArn}/tags"; + if (input.ResourceArn !== undefined) { + const labelValue: any = input.ResourceArn.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: ResourceArn." + ); + } + resolvedPath = resolvedPath.replace("{ResourceArn}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: ResourceArn."); + } + const query: any = {}; + if (input.TagKeys !== undefined) { + query["keys"] = input.TagKeys; + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "DELETE", + headers: headers, + path: resolvedPath, + query: query + }); +} + +export async function serializeAws_restJson1_1UpdateDashboardCommand( + input: UpdateDashboardCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/dashboards/{DashboardId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DashboardId !== undefined) { + const labelValue: any = input.DashboardId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DashboardId." + ); + } + resolvedPath = resolvedPath.replace("{DashboardId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DashboardId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.DashboardPublishOptions !== undefined) { + bodyParams[ + "DashboardPublishOptions" + ] = serializeAws_restJson1_1DashboardPublishOptions( + input.DashboardPublishOptions, + context + ); + } + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Parameters !== undefined) { + bodyParams["Parameters"] = serializeAws_restJson1_1_Parameters( + input.Parameters, + context + ); + } + if (input.SourceEntity !== undefined) { + bodyParams["SourceEntity"] = serializeAws_restJson1_1DashboardSourceEntity( + input.SourceEntity, + context + ); + } + if (input.VersionDescription !== undefined) { + bodyParams["VersionDescription"] = input.VersionDescription; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateDashboardPermissionsCommand( + input: UpdateDashboardPermissionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DashboardId !== undefined) { + const labelValue: any = input.DashboardId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DashboardId." + ); + } + resolvedPath = resolvedPath.replace("{DashboardId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DashboardId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.GrantPermissions !== undefined) { + bodyParams[ + "GrantPermissions" + ] = serializeAws_restJson1_1UpdateResourcePermissionList( + input.GrantPermissions, + context + ); + } + if (input.RevokePermissions !== undefined) { + bodyParams[ + "RevokePermissions" + ] = serializeAws_restJson1_1UpdateResourcePermissionList( + input.RevokePermissions, + context + ); + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateDashboardPublishedVersionCommand( + input: UpdateDashboardPublishedVersionCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = ""; + let resolvedPath = + "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions/{VersionNumber}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DashboardId !== undefined) { + const labelValue: any = input.DashboardId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DashboardId." + ); + } + resolvedPath = resolvedPath.replace("{DashboardId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DashboardId."); + } + if (input.VersionNumber !== undefined) { + const labelValue: any = input.VersionNumber.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: VersionNumber." + ); + } + resolvedPath = resolvedPath.replace("{VersionNumber}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: VersionNumber."); + } + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath + }); +} + +export async function serializeAws_restJson1_1UpdateDataSetCommand( + input: UpdateDataSetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/data-sets/{DataSetId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSetId !== undefined) { + const labelValue: any = input.DataSetId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: DataSetId."); + } + resolvedPath = resolvedPath.replace("{DataSetId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSetId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.ColumnGroups !== undefined) { + bodyParams["ColumnGroups"] = serializeAws_restJson1_1ColumnGroupList( + input.ColumnGroups, + context + ); + } + if (input.ImportMode !== undefined) { + bodyParams["ImportMode"] = input.ImportMode; + } + if (input.LogicalTableMap !== undefined) { + bodyParams["LogicalTableMap"] = serializeAws_restJson1_1LogicalTableMap( + input.LogicalTableMap, + context + ); + } + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.PhysicalTableMap !== undefined) { + bodyParams["PhysicalTableMap"] = serializeAws_restJson1_1PhysicalTableMap( + input.PhysicalTableMap, + context + ); + } + if (input.RowLevelPermissionDataSet !== undefined) { + bodyParams[ + "RowLevelPermissionDataSet" + ] = serializeAws_restJson1_1RowLevelPermissionDataSet( + input.RowLevelPermissionDataSet, + context + ); + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateDataSetPermissionsCommand( + input: UpdateDataSetPermissionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSetId !== undefined) { + const labelValue: any = input.DataSetId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: DataSetId."); + } + resolvedPath = resolvedPath.replace("{DataSetId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSetId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.GrantPermissions !== undefined) { + bodyParams[ + "GrantPermissions" + ] = serializeAws_restJson1_1ResourcePermissionList( + input.GrantPermissions, + context + ); + } + if (input.RevokePermissions !== undefined) { + bodyParams[ + "RevokePermissions" + ] = serializeAws_restJson1_1ResourcePermissionList( + input.RevokePermissions, + context + ); + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateDataSourceCommand( + input: UpdateDataSourceCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/data-sources/{DataSourceId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSourceId !== undefined) { + const labelValue: any = input.DataSourceId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DataSourceId." + ); + } + resolvedPath = resolvedPath.replace("{DataSourceId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSourceId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.Credentials !== undefined) { + bodyParams["Credentials"] = serializeAws_restJson1_1DataSourceCredentials( + input.Credentials, + context + ); + } + if (input.DataSourceParameters !== undefined) { + bodyParams[ + "DataSourceParameters" + ] = serializeAws_restJson1_1DataSourceParameters( + input.DataSourceParameters, + context + ); + } + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.SslProperties !== undefined) { + bodyParams["SslProperties"] = serializeAws_restJson1_1SslProperties( + input.SslProperties, + context + ); + } + if (input.VpcConnectionProperties !== undefined) { + bodyParams[ + "VpcConnectionProperties" + ] = serializeAws_restJson1_1VpcConnectionProperties( + input.VpcConnectionProperties, + context + ); + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateDataSourcePermissionsCommand( + input: UpdateDataSourcePermissionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.DataSourceId !== undefined) { + const labelValue: any = input.DataSourceId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: DataSourceId." + ); + } + resolvedPath = resolvedPath.replace("{DataSourceId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: DataSourceId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.GrantPermissions !== undefined) { + bodyParams[ + "GrantPermissions" + ] = serializeAws_restJson1_1ResourcePermissionList( + input.GrantPermissions, + context + ); + } + if (input.RevokePermissions !== undefined) { + bodyParams[ + "RevokePermissions" + ] = serializeAws_restJson1_1ResourcePermissionList( + input.RevokePermissions, + context + ); + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "POST", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateGroupCommand( + input: UpdateGroupCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.GroupName !== undefined) { + const labelValue: any = input.GroupName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: GroupName."); + } + resolvedPath = resolvedPath.replace("{GroupName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: GroupName."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.Description !== undefined) { + bodyParams["Description"] = input.Description; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateIAMPolicyAssignmentCommand( + input: UpdateIAMPolicyAssignmentCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"; + if (input.AssignmentName !== undefined) { + const labelValue: any = input.AssignmentName.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AssignmentName." + ); + } + resolvedPath = resolvedPath.replace("{AssignmentName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AssignmentName."); + } + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.AssignmentStatus !== undefined) { + bodyParams["AssignmentStatus"] = input.AssignmentStatus; + } + if (input.Identities !== undefined) { + bodyParams["Identities"] = serializeAws_restJson1_1IdentityMap( + input.Identities, + context + ); + } + if (input.PolicyArn !== undefined) { + bodyParams["PolicyArn"] = input.PolicyArn; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateTemplateCommand( + input: UpdateTemplateCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = "/accounts/{AwsAccountId}/templates/{TemplateId}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.SourceEntity !== undefined) { + bodyParams["SourceEntity"] = serializeAws_restJson1_1TemplateSourceEntity( + input.SourceEntity, + context + ); + } + if (input.VersionDescription !== undefined) { + bodyParams["VersionDescription"] = input.VersionDescription; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateTemplateAliasCommand( + input: UpdateTemplateAliasCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"; + if (input.AliasName !== undefined) { + const labelValue: any = input.AliasName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: AliasName."); + } + resolvedPath = resolvedPath.replace("{AliasName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AliasName."); + } + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.TemplateVersionNumber !== undefined) { + bodyParams["TemplateVersionNumber"] = input.TemplateVersionNumber; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateTemplatePermissionsCommand( + input: UpdateTemplatePermissionsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.TemplateId !== undefined) { + const labelValue: any = input.TemplateId.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: TemplateId."); + } + resolvedPath = resolvedPath.replace("{TemplateId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: TemplateId."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.GrantPermissions !== undefined) { + bodyParams[ + "GrantPermissions" + ] = serializeAws_restJson1_1UpdateResourcePermissionList( + input.GrantPermissions, + context + ); + } + if (input.RevokePermissions !== undefined) { + bodyParams[ + "RevokePermissions" + ] = serializeAws_restJson1_1UpdateResourcePermissionList( + input.RevokePermissions, + context + ); + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function serializeAws_restJson1_1UpdateUserCommand( + input: UpdateUserCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> { + const headers: any = {}; + headers["Content-Type"] = "application/json"; + let resolvedPath = + "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"; + if (input.AwsAccountId !== undefined) { + const labelValue: any = input.AwsAccountId.toString(); + if (labelValue.length <= 0) { + throw new Error( + "Empty value provided for input HTTP label: AwsAccountId." + ); + } + resolvedPath = resolvedPath.replace("{AwsAccountId}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: AwsAccountId."); + } + if (input.Namespace !== undefined) { + const labelValue: any = input.Namespace.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: Namespace."); + } + resolvedPath = resolvedPath.replace("{Namespace}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: Namespace."); + } + if (input.UserName !== undefined) { + const labelValue: any = input.UserName.toString(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: UserName."); + } + resolvedPath = resolvedPath.replace("{UserName}", labelValue); + } else { + throw new Error("No value provided for input HTTP label: UserName."); + } + let body: any = {}; + const bodyParams: any = {}; + if (input.Email !== undefined) { + bodyParams["Email"] = input.Email; + } + if (input.Role !== undefined) { + bodyParams["Role"] = input.Role; + } + body = JSON.stringify(bodyParams); + return new __HttpRequest({ + ...context.endpoint, + protocol: "https", + method: "PUT", + headers: headers, + path: resolvedPath, + body: body + }); +} + +export async function deserializeAws_restJson1_1CancelIngestionCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CancelIngestionCommandError( + output, + context + ); + } + const contents: CancelIngestionCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CancelIngestionResponse", + Arn: undefined, + IngestionId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.IngestionId !== undefined) { + contents.IngestionId = data.IngestionId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CancelIngestionCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1CreateDashboardCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CreateDashboardCommandError( + output, + context + ); + } + const contents: CreateDashboardCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CreateDashboardResponse", + Arn: undefined, + CreationStatus: undefined, + DashboardId: undefined, + RequestId: undefined, + VersionArn: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.CreationStatus !== undefined) { + contents.CreationStatus = data.CreationStatus; + } + if (data.DashboardId !== undefined) { + contents.DashboardId = data.DashboardId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.VersionArn !== undefined) { + contents.VersionArn = data.VersionArn; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CreateDashboardCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1CreateDataSetCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CreateDataSetCommandError(output, context); + } + const contents: CreateDataSetCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CreateDataSetResponse", + Arn: undefined, + DataSetId: undefined, + IngestionArn: undefined, + IngestionId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.DataSetId !== undefined) { + contents.DataSetId = data.DataSetId; + } + if (data.IngestionArn !== undefined) { + contents.IngestionArn = data.IngestionArn; + } + if (data.IngestionId !== undefined) { + contents.IngestionId = data.IngestionId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CreateDataSetCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1CreateDataSourceCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CreateDataSourceCommandError( + output, + context + ); + } + const contents: CreateDataSourceCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CreateDataSourceResponse", + Arn: undefined, + CreationStatus: undefined, + DataSourceId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.CreationStatus !== undefined) { + contents.CreationStatus = data.CreationStatus; + } + if (data.DataSourceId !== undefined) { + contents.DataSourceId = data.DataSourceId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CreateDataSourceCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1CreateGroupCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CreateGroupCommandError(output, context); + } + const contents: CreateGroupCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CreateGroupResponse", + Group: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Group !== undefined) { + contents.Group = deserializeAws_restJson1_1Group(data.Group, context); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CreateGroupCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "PreconditionNotMetException": + case "com.amazonaws.services.quicksight.common#PreconditionNotMetException": + response = await deserializeAws_restJson1_1PreconditionNotMetExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1CreateGroupMembershipCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CreateGroupMembershipCommandError( + output, + context + ); + } + const contents: CreateGroupMembershipCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CreateGroupMembershipResponse", + GroupMember: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.GroupMember !== undefined) { + contents.GroupMember = deserializeAws_restJson1_1GroupMember( + data.GroupMember, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CreateGroupMembershipCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "PreconditionNotMetException": + case "com.amazonaws.services.quicksight.common#PreconditionNotMetException": + response = await deserializeAws_restJson1_1PreconditionNotMetExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1CreateIAMPolicyAssignmentCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CreateIAMPolicyAssignmentCommandError( + output, + context + ); + } + const contents: CreateIAMPolicyAssignmentCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CreateIAMPolicyAssignmentResponse", + AssignmentId: undefined, + AssignmentName: undefined, + AssignmentStatus: undefined, + Identities: undefined, + PolicyArn: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.AssignmentId !== undefined) { + contents.AssignmentId = data.AssignmentId; + } + if (data.AssignmentName !== undefined) { + contents.AssignmentName = data.AssignmentName; + } + if (data.AssignmentStatus !== undefined) { + contents.AssignmentStatus = data.AssignmentStatus; + } + if (data.Identities !== undefined) { + contents.Identities = deserializeAws_restJson1_1IdentityMap( + data.Identities, + context + ); + } + if (data.PolicyArn !== undefined) { + contents.PolicyArn = data.PolicyArn; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CreateIAMPolicyAssignmentCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConcurrentUpdatingException": + case "com.amazonaws.services.quicksight#ConcurrentUpdatingException": + response = await deserializeAws_restJson1_1ConcurrentUpdatingExceptionResponse( + parsedOutput, + context + ); + break; + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1CreateIngestionCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CreateIngestionCommandError( + output, + context + ); + } + const contents: CreateIngestionCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CreateIngestionResponse", + Arn: undefined, + IngestionId: undefined, + IngestionStatus: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.IngestionId !== undefined) { + contents.IngestionId = data.IngestionId; + } + if (data.IngestionStatus !== undefined) { + contents.IngestionStatus = data.IngestionStatus; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CreateIngestionCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1CreateTemplateCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CreateTemplateCommandError( + output, + context + ); + } + const contents: CreateTemplateCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CreateTemplateResponse", + Arn: undefined, + CreationStatus: undefined, + RequestId: undefined, + TemplateId: undefined, + VersionArn: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.CreationStatus !== undefined) { + contents.CreationStatus = data.CreationStatus; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateId !== undefined) { + contents.TemplateId = data.TemplateId; + } + if (data.VersionArn !== undefined) { + contents.VersionArn = data.VersionArn; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CreateTemplateCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1CreateTemplateAliasCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1CreateTemplateAliasCommandError( + output, + context + ); + } + const contents: CreateTemplateAliasCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "CreateTemplateAliasResponse", + RequestId: undefined, + TemplateAlias: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateAlias !== undefined) { + contents.TemplateAlias = deserializeAws_restJson1_1TemplateAlias( + data.TemplateAlias, + context + ); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1CreateTemplateAliasCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteDashboardCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteDashboardCommandError( + output, + context + ); + } + const contents: DeleteDashboardCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteDashboardResponse", + Arn: undefined, + DashboardId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.DashboardId !== undefined) { + contents.DashboardId = data.DashboardId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteDashboardCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteDataSetCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteDataSetCommandError(output, context); + } + const contents: DeleteDataSetCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteDataSetResponse", + Arn: undefined, + DataSetId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.DataSetId !== undefined) { + contents.DataSetId = data.DataSetId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteDataSetCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteDataSourceCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteDataSourceCommandError( + output, + context + ); + } + const contents: DeleteDataSourceCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteDataSourceResponse", + Arn: undefined, + DataSourceId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.DataSourceId !== undefined) { + contents.DataSourceId = data.DataSourceId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteDataSourceCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteGroupCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteGroupCommandError(output, context); + } + const contents: DeleteGroupCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteGroupResponse", + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteGroupCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "PreconditionNotMetException": + case "com.amazonaws.services.quicksight.common#PreconditionNotMetException": + response = await deserializeAws_restJson1_1PreconditionNotMetExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteGroupMembershipCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteGroupMembershipCommandError( + output, + context + ); + } + const contents: DeleteGroupMembershipCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteGroupMembershipResponse", + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteGroupMembershipCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "PreconditionNotMetException": + case "com.amazonaws.services.quicksight.common#PreconditionNotMetException": + response = await deserializeAws_restJson1_1PreconditionNotMetExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteIAMPolicyAssignmentCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteIAMPolicyAssignmentCommandError( + output, + context + ); + } + const contents: DeleteIAMPolicyAssignmentCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteIAMPolicyAssignmentResponse", + AssignmentName: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.AssignmentName !== undefined) { + contents.AssignmentName = data.AssignmentName; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteIAMPolicyAssignmentCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConcurrentUpdatingException": + case "com.amazonaws.services.quicksight#ConcurrentUpdatingException": + response = await deserializeAws_restJson1_1ConcurrentUpdatingExceptionResponse( + parsedOutput, + context + ); + break; + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteTemplateCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteTemplateCommandError( + output, + context + ); + } + const contents: DeleteTemplateCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteTemplateResponse", + Arn: undefined, + RequestId: undefined, + TemplateId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateId !== undefined) { + contents.TemplateId = data.TemplateId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteTemplateCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteTemplateAliasCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteTemplateAliasCommandError( + output, + context + ); + } + const contents: DeleteTemplateAliasCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteTemplateAliasResponse", + AliasName: undefined, + Arn: undefined, + RequestId: undefined, + TemplateId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.AliasName !== undefined) { + contents.AliasName = data.AliasName; + } + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateId !== undefined) { + contents.TemplateId = data.TemplateId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteTemplateAliasCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteUserCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteUserCommandError(output, context); + } + const contents: DeleteUserCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteUserResponse", + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteUserCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DeleteUserByPrincipalIdCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DeleteUserByPrincipalIdCommandError( + output, + context + ); + } + const contents: DeleteUserByPrincipalIdCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DeleteUserByPrincipalIdResponse", + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DeleteUserByPrincipalIdCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeDashboardCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeDashboardCommandError( + output, + context + ); + } + const contents: DescribeDashboardCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeDashboardResponse", + Dashboard: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Dashboard !== undefined) { + contents.Dashboard = deserializeAws_restJson1_1Dashboard( + data.Dashboard, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeDashboardCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeDashboardPermissionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeDashboardPermissionsCommandError( + output, + context + ); + } + const contents: DescribeDashboardPermissionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeDashboardPermissionsResponse", + DashboardArn: undefined, + DashboardId: undefined, + Permissions: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DashboardArn !== undefined) { + contents.DashboardArn = data.DashboardArn; + } + if (data.DashboardId !== undefined) { + contents.DashboardId = data.DashboardId; + } + if (data.Permissions !== undefined) { + contents.Permissions = deserializeAws_restJson1_1ResourcePermissionList( + data.Permissions, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeDashboardPermissionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeDataSetCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeDataSetCommandError( + output, + context + ); + } + const contents: DescribeDataSetCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeDataSetResponse", + DataSet: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DataSet !== undefined) { + contents.DataSet = deserializeAws_restJson1_1DataSet(data.DataSet, context); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeDataSetCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeDataSetPermissionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeDataSetPermissionsCommandError( + output, + context + ); + } + const contents: DescribeDataSetPermissionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeDataSetPermissionsResponse", + DataSetArn: undefined, + DataSetId: undefined, + Permissions: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DataSetArn !== undefined) { + contents.DataSetArn = data.DataSetArn; + } + if (data.DataSetId !== undefined) { + contents.DataSetId = data.DataSetId; + } + if (data.Permissions !== undefined) { + contents.Permissions = deserializeAws_restJson1_1ResourcePermissionList( + data.Permissions, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeDataSetPermissionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeDataSourceCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeDataSourceCommandError( + output, + context + ); + } + const contents: DescribeDataSourceCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeDataSourceResponse", + DataSource: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DataSource !== undefined) { + contents.DataSource = deserializeAws_restJson1_1DataSource( + data.DataSource, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeDataSourceCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeDataSourcePermissionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeDataSourcePermissionsCommandError( + output, + context + ); + } + const contents: DescribeDataSourcePermissionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeDataSourcePermissionsResponse", + DataSourceArn: undefined, + DataSourceId: undefined, + Permissions: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DataSourceArn !== undefined) { + contents.DataSourceArn = data.DataSourceArn; + } + if (data.DataSourceId !== undefined) { + contents.DataSourceId = data.DataSourceId; + } + if (data.Permissions !== undefined) { + contents.Permissions = deserializeAws_restJson1_1ResourcePermissionList( + data.Permissions, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeDataSourcePermissionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeGroupCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeGroupCommandError(output, context); + } + const contents: DescribeGroupCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeGroupResponse", + Group: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Group !== undefined) { + contents.Group = deserializeAws_restJson1_1Group(data.Group, context); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeGroupCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "PreconditionNotMetException": + case "com.amazonaws.services.quicksight.common#PreconditionNotMetException": + response = await deserializeAws_restJson1_1PreconditionNotMetExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeIAMPolicyAssignmentCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeIAMPolicyAssignmentCommandError( + output, + context + ); + } + const contents: DescribeIAMPolicyAssignmentCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeIAMPolicyAssignmentResponse", + IAMPolicyAssignment: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.IAMPolicyAssignment !== undefined) { + contents.IAMPolicyAssignment = deserializeAws_restJson1_1IAMPolicyAssignment( + data.IAMPolicyAssignment, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeIAMPolicyAssignmentCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeIngestionCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeIngestionCommandError( + output, + context + ); + } + const contents: DescribeIngestionCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeIngestionResponse", + Ingestion: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Ingestion !== undefined) { + contents.Ingestion = deserializeAws_restJson1_1Ingestion( + data.Ingestion, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeIngestionCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeTemplateCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeTemplateCommandError( + output, + context + ); + } + const contents: DescribeTemplateCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeTemplateResponse", + Template: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Template !== undefined) { + contents.Template = deserializeAws_restJson1_1Template( + data.Template, + context + ); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeTemplateCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeTemplateAliasCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeTemplateAliasCommandError( + output, + context + ); + } + const contents: DescribeTemplateAliasCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeTemplateAliasResponse", + RequestId: undefined, + TemplateAlias: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateAlias !== undefined) { + contents.TemplateAlias = deserializeAws_restJson1_1TemplateAlias( + data.TemplateAlias, + context + ); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeTemplateAliasCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeTemplatePermissionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeTemplatePermissionsCommandError( + output, + context + ); + } + const contents: DescribeTemplatePermissionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeTemplatePermissionsResponse", + Permissions: undefined, + RequestId: undefined, + TemplateArn: undefined, + TemplateId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Permissions !== undefined) { + contents.Permissions = deserializeAws_restJson1_1ResourcePermissionList( + data.Permissions, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateArn !== undefined) { + contents.TemplateArn = data.TemplateArn; + } + if (data.TemplateId !== undefined) { + contents.TemplateId = data.TemplateId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeTemplatePermissionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1DescribeUserCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1DescribeUserCommandError(output, context); + } + const contents: DescribeUserCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "DescribeUserResponse", + RequestId: undefined, + User: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.User !== undefined) { + contents.User = deserializeAws_restJson1_1User(data.User, context); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1DescribeUserCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1GetDashboardEmbedUrlCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1GetDashboardEmbedUrlCommandError( + output, + context + ); + } + const contents: GetDashboardEmbedUrlCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "GetDashboardEmbedUrlResponse", + EmbedUrl: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.EmbedUrl !== undefined) { + contents.EmbedUrl = data.EmbedUrl; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1GetDashboardEmbedUrlCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "DomainNotWhitelistedException": + case "com.amazonaws.services.quicksight#DomainNotWhitelistedException": + response = await deserializeAws_restJson1_1DomainNotWhitelistedExceptionResponse( + parsedOutput, + context + ); + break; + case "IdentityTypeNotSupportedException": + case "com.amazonaws.services.quicksight#IdentityTypeNotSupportedException": + response = await deserializeAws_restJson1_1IdentityTypeNotSupportedExceptionResponse( + parsedOutput, + context + ); + break; + case "QuickSightUserNotFoundException": + case "com.amazonaws.services.quicksight#QuickSightUserNotFoundException": + response = await deserializeAws_restJson1_1QuickSightUserNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "SessionLifetimeInMinutesInvalidException": + case "com.amazonaws.services.quicksight#SessionLifetimeInMinutesInvalidException": + response = await deserializeAws_restJson1_1SessionLifetimeInMinutesInvalidExceptionResponse( + parsedOutput, + context + ); + break; + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListDashboardVersionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListDashboardVersionsCommandError( + output, + context + ); + } + const contents: ListDashboardVersionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListDashboardVersionsResponse", + DashboardVersionSummaryList: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DashboardVersionSummaryList !== undefined) { + contents.DashboardVersionSummaryList = deserializeAws_restJson1_1DashboardVersionSummaryList( + data.DashboardVersionSummaryList, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListDashboardVersionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListDashboardsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListDashboardsCommandError( + output, + context + ); + } + const contents: ListDashboardsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListDashboardsResponse", + DashboardSummaryList: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DashboardSummaryList !== undefined) { + contents.DashboardSummaryList = deserializeAws_restJson1_1DashboardSummaryList( + data.DashboardSummaryList, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListDashboardsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListDataSetsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListDataSetsCommandError(output, context); + } + const contents: ListDataSetsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListDataSetsResponse", + DataSetSummaries: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DataSetSummaries !== undefined) { + contents.DataSetSummaries = deserializeAws_restJson1_1DataSetSummaryList( + data.DataSetSummaries, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListDataSetsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListDataSourcesCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListDataSourcesCommandError( + output, + context + ); + } + const contents: ListDataSourcesCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListDataSourcesResponse", + DataSources: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DataSources !== undefined) { + contents.DataSources = deserializeAws_restJson1_1DataSourceList( + data.DataSources, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListDataSourcesCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListGroupMembershipsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListGroupMembershipsCommandError( + output, + context + ); + } + const contents: ListGroupMembershipsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListGroupMembershipsResponse", + GroupMemberList: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.GroupMemberList !== undefined) { + contents.GroupMemberList = deserializeAws_restJson1_1GroupMemberList( + data.GroupMemberList, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListGroupMembershipsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "PreconditionNotMetException": + case "com.amazonaws.services.quicksight.common#PreconditionNotMetException": + response = await deserializeAws_restJson1_1PreconditionNotMetExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListGroupsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListGroupsCommandError(output, context); + } + const contents: ListGroupsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListGroupsResponse", + GroupList: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.GroupList !== undefined) { + contents.GroupList = deserializeAws_restJson1_1GroupList( + data.GroupList, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListGroupsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "PreconditionNotMetException": + case "com.amazonaws.services.quicksight.common#PreconditionNotMetException": + response = await deserializeAws_restJson1_1PreconditionNotMetExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListIAMPolicyAssignmentsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListIAMPolicyAssignmentsCommandError( + output, + context + ); + } + const contents: ListIAMPolicyAssignmentsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListIAMPolicyAssignmentsResponse", + IAMPolicyAssignments: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.IAMPolicyAssignments !== undefined) { + contents.IAMPolicyAssignments = deserializeAws_restJson1_1IAMPolicyAssignmentSummaryList( + data.IAMPolicyAssignments, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListIAMPolicyAssignmentsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCommandError( + output, + context + ); + } + const contents: ListIAMPolicyAssignmentsForUserCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListIAMPolicyAssignmentsForUserResponse", + ActiveAssignments: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.ActiveAssignments !== undefined) { + contents.ActiveAssignments = deserializeAws_restJson1_1ActiveIAMPolicyAssignmentList( + data.ActiveAssignments, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListIAMPolicyAssignmentsForUserCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConcurrentUpdatingException": + case "com.amazonaws.services.quicksight#ConcurrentUpdatingException": + response = await deserializeAws_restJson1_1ConcurrentUpdatingExceptionResponse( + parsedOutput, + context + ); + break; + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListIngestionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListIngestionsCommandError( + output, + context + ); + } + const contents: ListIngestionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListIngestionsResponse", + Ingestions: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Ingestions !== undefined) { + contents.Ingestions = deserializeAws_restJson1_1Ingestions( + data.Ingestions, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListIngestionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListTagsForResourceCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListTagsForResourceCommandError( + output, + context + ); + } + const contents: ListTagsForResourceCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListTagsForResourceResponse", + RequestId: undefined, + Tags: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.Tags !== undefined) { + contents.Tags = deserializeAws_restJson1_1TagList(data.Tags, context); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListTagsForResourceCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListTemplateAliasesCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListTemplateAliasesCommandError( + output, + context + ); + } + const contents: ListTemplateAliasesCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListTemplateAliasesResponse", + NextToken: undefined, + RequestId: undefined, + TemplateAliasList: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateAliasList !== undefined) { + contents.TemplateAliasList = deserializeAws_restJson1_1TemplateAliasList( + data.TemplateAliasList, + context + ); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListTemplateAliasesCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListTemplateVersionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListTemplateVersionsCommandError( + output, + context + ); + } + const contents: ListTemplateVersionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListTemplateVersionsResponse", + NextToken: undefined, + RequestId: undefined, + TemplateVersionSummaryList: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateVersionSummaryList !== undefined) { + contents.TemplateVersionSummaryList = deserializeAws_restJson1_1TemplateVersionSummaryList( + data.TemplateVersionSummaryList, + context + ); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListTemplateVersionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListTemplatesCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListTemplatesCommandError(output, context); + } + const contents: ListTemplatesCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListTemplatesResponse", + NextToken: undefined, + RequestId: undefined, + TemplateSummaryList: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateSummaryList !== undefined) { + contents.TemplateSummaryList = deserializeAws_restJson1_1TemplateSummaryList( + data.TemplateSummaryList, + context + ); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListTemplatesCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListUserGroupsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListUserGroupsCommandError( + output, + context + ); + } + const contents: ListUserGroupsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListUserGroupsResponse", + GroupList: undefined, + NextToken: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.GroupList !== undefined) { + contents.GroupList = deserializeAws_restJson1_1GroupList( + data.GroupList, + context + ); + } + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListUserGroupsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1ListUsersCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1ListUsersCommandError(output, context); + } + const contents: ListUsersCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "ListUsersResponse", + NextToken: undefined, + RequestId: undefined, + UserList: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.NextToken !== undefined) { + contents.NextToken = data.NextToken; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.UserList !== undefined) { + contents.UserList = deserializeAws_restJson1_1UserList( + data.UserList, + context + ); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1ListUsersCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidNextTokenException": + case "com.amazonaws.services.quicksight.common#InvalidNextTokenException": + response = await deserializeAws_restJson1_1InvalidNextTokenExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1RegisterUserCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1RegisterUserCommandError(output, context); + } + const contents: RegisterUserCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "RegisterUserResponse", + RequestId: undefined, + User: undefined, + UserInvitationUrl: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.User !== undefined) { + contents.User = deserializeAws_restJson1_1User(data.User, context); + } + if (data.UserInvitationUrl !== undefined) { + contents.UserInvitationUrl = data.UserInvitationUrl; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1RegisterUserCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "PreconditionNotMetException": + case "com.amazonaws.services.quicksight.common#PreconditionNotMetException": + response = await deserializeAws_restJson1_1PreconditionNotMetExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1TagResourceCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1TagResourceCommandError(output, context); + } + const contents: TagResourceCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "TagResourceResponse", + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1TagResourceCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UntagResourceCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UntagResourceCommandError(output, context); + } + const contents: UntagResourceCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UntagResourceResponse", + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UntagResourceCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateDashboardCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateDashboardCommandError( + output, + context + ); + } + const contents: UpdateDashboardCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateDashboardResponse", + Arn: undefined, + CreationStatus: undefined, + DashboardId: undefined, + RequestId: undefined, + Status: undefined, + VersionArn: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.CreationStatus !== undefined) { + contents.CreationStatus = data.CreationStatus; + } + if (data.DashboardId !== undefined) { + contents.DashboardId = data.DashboardId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.Status !== undefined) { + contents.Status = data.Status; + } + if (data.VersionArn !== undefined) { + contents.VersionArn = data.VersionArn; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateDashboardCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateDashboardPermissionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateDashboardPermissionsCommandError( + output, + context + ); + } + const contents: UpdateDashboardPermissionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateDashboardPermissionsResponse", + DashboardArn: undefined, + DashboardId: undefined, + Permissions: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DashboardArn !== undefined) { + contents.DashboardArn = data.DashboardArn; + } + if (data.DashboardId !== undefined) { + contents.DashboardId = data.DashboardId; + } + if (data.Permissions !== undefined) { + contents.Permissions = deserializeAws_restJson1_1ResourcePermissionList( + data.Permissions, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateDashboardPermissionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateDashboardPublishedVersionCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateDashboardPublishedVersionCommandError( + output, + context + ); + } + const contents: UpdateDashboardPublishedVersionCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateDashboardPublishedVersionResponse", + DashboardArn: undefined, + DashboardId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DashboardArn !== undefined) { + contents.DashboardArn = data.DashboardArn; + } + if (data.DashboardId !== undefined) { + contents.DashboardId = data.DashboardId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateDashboardPublishedVersionCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateDataSetCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateDataSetCommandError(output, context); + } + const contents: UpdateDataSetCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateDataSetResponse", + Arn: undefined, + DataSetId: undefined, + IngestionArn: undefined, + IngestionId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.DataSetId !== undefined) { + contents.DataSetId = data.DataSetId; + } + if (data.IngestionArn !== undefined) { + contents.IngestionArn = data.IngestionArn; + } + if (data.IngestionId !== undefined) { + contents.IngestionId = data.IngestionId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateDataSetCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateDataSetPermissionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateDataSetPermissionsCommandError( + output, + context + ); + } + const contents: UpdateDataSetPermissionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateDataSetPermissionsResponse", + DataSetArn: undefined, + DataSetId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DataSetArn !== undefined) { + contents.DataSetArn = data.DataSetArn; + } + if (data.DataSetId !== undefined) { + contents.DataSetId = data.DataSetId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateDataSetPermissionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateDataSourceCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateDataSourceCommandError( + output, + context + ); + } + const contents: UpdateDataSourceCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateDataSourceResponse", + Arn: undefined, + DataSourceId: undefined, + RequestId: undefined, + UpdateStatus: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.DataSourceId !== undefined) { + contents.DataSourceId = data.DataSourceId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.UpdateStatus !== undefined) { + contents.UpdateStatus = data.UpdateStatus; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateDataSourceCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateDataSourcePermissionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateDataSourcePermissionsCommandError( + output, + context + ); + } + const contents: UpdateDataSourcePermissionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateDataSourcePermissionsResponse", + DataSourceArn: undefined, + DataSourceId: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.DataSourceArn !== undefined) { + contents.DataSourceArn = data.DataSourceArn; + } + if (data.DataSourceId !== undefined) { + contents.DataSourceId = data.DataSourceId; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateDataSourcePermissionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateGroupCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateGroupCommandError(output, context); + } + const contents: UpdateGroupCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateGroupResponse", + Group: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Group !== undefined) { + contents.Group = deserializeAws_restJson1_1Group(data.Group, context); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateGroupCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "PreconditionNotMetException": + case "com.amazonaws.services.quicksight.common#PreconditionNotMetException": + response = await deserializeAws_restJson1_1PreconditionNotMetExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateIAMPolicyAssignmentCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateIAMPolicyAssignmentCommandError( + output, + context + ); + } + const contents: UpdateIAMPolicyAssignmentCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateIAMPolicyAssignmentResponse", + AssignmentId: undefined, + AssignmentName: undefined, + AssignmentStatus: undefined, + Identities: undefined, + PolicyArn: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.AssignmentId !== undefined) { + contents.AssignmentId = data.AssignmentId; + } + if (data.AssignmentName !== undefined) { + contents.AssignmentName = data.AssignmentName; + } + if (data.AssignmentStatus !== undefined) { + contents.AssignmentStatus = data.AssignmentStatus; + } + if (data.Identities !== undefined) { + contents.Identities = deserializeAws_restJson1_1IdentityMap( + data.Identities, + context + ); + } + if (data.PolicyArn !== undefined) { + contents.PolicyArn = data.PolicyArn; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateIAMPolicyAssignmentCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConcurrentUpdatingException": + case "com.amazonaws.services.quicksight#ConcurrentUpdatingException": + response = await deserializeAws_restJson1_1ConcurrentUpdatingExceptionResponse( + parsedOutput, + context + ); + break; + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateTemplateCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateTemplateCommandError( + output, + context + ); + } + const contents: UpdateTemplateCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateTemplateResponse", + Arn: undefined, + CreationStatus: undefined, + RequestId: undefined, + TemplateId: undefined, + VersionArn: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Arn !== undefined) { + contents.Arn = data.Arn; + } + if (data.CreationStatus !== undefined) { + contents.CreationStatus = data.CreationStatus; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateId !== undefined) { + contents.TemplateId = data.TemplateId; + } + if (data.VersionArn !== undefined) { + contents.VersionArn = data.VersionArn; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateTemplateCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "LimitExceededException": + case "com.amazonaws.services.quicksight.common#LimitExceededException": + response = await deserializeAws_restJson1_1LimitExceededExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceExistsException": + case "com.amazonaws.services.quicksight.common#ResourceExistsException": + response = await deserializeAws_restJson1_1ResourceExistsExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateTemplateAliasCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateTemplateAliasCommandError( + output, + context + ); + } + const contents: UpdateTemplateAliasCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateTemplateAliasResponse", + RequestId: undefined, + TemplateAlias: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateAlias !== undefined) { + contents.TemplateAlias = deserializeAws_restJson1_1TemplateAlias( + data.TemplateAlias, + context + ); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateTemplateAliasCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateTemplatePermissionsCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateTemplatePermissionsCommandError( + output, + context + ); + } + const contents: UpdateTemplatePermissionsCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateTemplatePermissionsResponse", + Permissions: undefined, + RequestId: undefined, + TemplateArn: undefined, + TemplateId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Permissions !== undefined) { + contents.Permissions = deserializeAws_restJson1_1ResourcePermissionList( + data.Permissions, + context + ); + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.TemplateArn !== undefined) { + contents.TemplateArn = data.TemplateArn; + } + if (data.TemplateId !== undefined) { + contents.TemplateId = data.TemplateId; + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateTemplatePermissionsCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "ConflictException": + case "com.amazonaws.services.quicksight.common#ConflictException": + response = await deserializeAws_restJson1_1ConflictExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + case "UnsupportedUserEditionException": + case "com.amazonaws.services.quicksight.common#UnsupportedUserEditionException": + response = await deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +export async function deserializeAws_restJson1_1UpdateUserCommand( + output: __HttpResponse, + context: __SerdeContext +): Promise { + if (output.statusCode !== 200) { + return deserializeAws_restJson1_1UpdateUserCommandError(output, context); + } + const contents: UpdateUserCommandOutput = { + $metadata: deserializeMetadata(output), + __type: "UpdateUserResponse", + RequestId: undefined, + User: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.User !== undefined) { + contents.User = deserializeAws_restJson1_1User(data.User, context); + } + return Promise.resolve(contents); +} + +async function deserializeAws_restJson1_1UpdateUserCommandError( + output: __HttpResponse, + context: __SerdeContext +): Promise { + const data: any = await parseBody(output.body, context); + const parsedOutput: any = { + ...output, + body: data + }; + let response: __SmithyException & __MetadataBearer; + let errorCode: String; + errorCode = output.headers["x-amzn-errortype"].split(":")[0]; + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.services.quicksight.common#AccessDeniedException": + response = await deserializeAws_restJson1_1AccessDeniedExceptionResponse( + parsedOutput, + context + ); + break; + case "InternalFailureException": + case "com.amazonaws.services.quicksight.common#InternalFailureException": + response = await deserializeAws_restJson1_1InternalFailureExceptionResponse( + parsedOutput, + context + ); + break; + case "InvalidParameterValueException": + case "com.amazonaws.services.quicksight.common#InvalidParameterValueException": + response = await deserializeAws_restJson1_1InvalidParameterValueExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceNotFoundException": + case "com.amazonaws.services.quicksight.common#ResourceNotFoundException": + response = await deserializeAws_restJson1_1ResourceNotFoundExceptionResponse( + parsedOutput, + context + ); + break; + case "ResourceUnavailableException": + case "com.amazonaws.services.quicksight.common#ResourceUnavailableException": + response = await deserializeAws_restJson1_1ResourceUnavailableExceptionResponse( + parsedOutput, + context + ); + break; + case "ThrottlingException": + case "com.amazonaws.services.quicksight.common#ThrottlingException": + response = await deserializeAws_restJson1_1ThrottlingExceptionResponse( + parsedOutput, + context + ); + break; + default: + errorCode = errorCode || "UnknownError"; + response = { + __type: `com.amazonaws.services.quicksight#${errorCode}`, + $fault: "client", + $metadata: deserializeMetadata(output) + }; + } + return Promise.reject(Object.assign(new Error(response.__type), response)); +} + +const deserializeAws_restJson1_1ConcurrentUpdatingExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: ConcurrentUpdatingException = { + __type: "ConcurrentUpdatingException", + $fault: "server", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1DomainNotWhitelistedExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: DomainNotWhitelistedException = { + __type: "DomainNotWhitelistedException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1IdentityTypeNotSupportedExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: IdentityTypeNotSupportedException = { + __type: "IdentityTypeNotSupportedException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1QuickSightUserNotFoundExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: QuickSightUserNotFoundException = { + __type: "QuickSightUserNotFoundException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1SessionLifetimeInMinutesInvalidExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: SessionLifetimeInMinutesInvalidException = { + __type: "SessionLifetimeInMinutesInvalidException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1AccessDeniedExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: AccessDeniedException = { + __type: "AccessDeniedException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1ConflictExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: ConflictException = { + __type: "ConflictException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1InternalFailureExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: InternalFailureException = { + __type: "InternalFailureException", + $fault: "server", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1InvalidNextTokenExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: InvalidNextTokenException = { + __type: "InvalidNextTokenException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1InvalidParameterValueExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: InvalidParameterValueException = { + __type: "InvalidParameterValueException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1LimitExceededExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: LimitExceededException = { + __type: "LimitExceededException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined, + ResourceType: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.ResourceType !== undefined) { + contents.ResourceType = data.ResourceType; + } + return contents; +}; + +const deserializeAws_restJson1_1PreconditionNotMetExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: PreconditionNotMetException = { + __type: "PreconditionNotMetException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1ResourceExistsExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: ResourceExistsException = { + __type: "ResourceExistsException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined, + ResourceType: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.ResourceType !== undefined) { + contents.ResourceType = data.ResourceType; + } + return contents; +}; + +const deserializeAws_restJson1_1ResourceNotFoundExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: ResourceNotFoundException = { + __type: "ResourceNotFoundException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined, + ResourceType: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.ResourceType !== undefined) { + contents.ResourceType = data.ResourceType; + } + return contents; +}; + +const deserializeAws_restJson1_1ResourceUnavailableExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: ResourceUnavailableException = { + __type: "ResourceUnavailableException", + $fault: "server", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined, + ResourceType: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + if (data.ResourceType !== undefined) { + contents.ResourceType = data.ResourceType; + } + return contents; +}; + +const deserializeAws_restJson1_1ThrottlingExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: ThrottlingException = { + __type: "ThrottlingException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const deserializeAws_restJson1_1UnsupportedUserEditionExceptionResponse = async ( + output: any, + context: __SerdeContext +): Promise => { + const contents: UnsupportedUserEditionException = { + __type: "UnsupportedUserEditionException", + $fault: "client", + $metadata: deserializeMetadata(output), + Message: undefined, + RequestId: undefined + }; + const data: any = await parseBody(output.body, context); + if (data.Message !== undefined) { + contents.Message = data.Message; + } + if (data.RequestId !== undefined) { + contents.RequestId = data.RequestId; + } + return contents; +}; + +const serializeAws_restJson1_1AdHocFilteringOption = ( + input: AdHocFilteringOption, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.AvailabilityStatus !== undefined) { + bodyParams["AvailabilityStatus"] = input.AvailabilityStatus; + } + return bodyParams; +}; + +const serializeAws_restJson1_1AmazonElasticsearchParameters = ( + input: AmazonElasticsearchParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Domain !== undefined) { + bodyParams["Domain"] = input.Domain; + } + return bodyParams; +}; + +const serializeAws_restJson1_1AthenaParameters = ( + input: AthenaParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.WorkGroup !== undefined) { + bodyParams["WorkGroup"] = input.WorkGroup; + } + return bodyParams; +}; + +const serializeAws_restJson1_1AuroraParameters = ( + input: AuroraParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1AuroraPostgreSqlParameters = ( + input: AuroraPostgreSqlParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1AwsIotAnalyticsParameters = ( + input: AwsIotAnalyticsParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.DataSetName !== undefined) { + bodyParams["DataSetName"] = input.DataSetName; + } + return bodyParams; +}; + +const serializeAws_restJson1_1CalculatedColumn = ( + input: CalculatedColumn, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ColumnId !== undefined) { + bodyParams["ColumnId"] = input.ColumnId; + } + if (input.ColumnName !== undefined) { + bodyParams["ColumnName"] = input.ColumnName; + } + if (input.Expression !== undefined) { + bodyParams["Expression"] = input.Expression; + } + return bodyParams; +}; + +const serializeAws_restJson1_1CalculatedColumnList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1CalculatedColumn(entry, context) + ); +}; + +const serializeAws_restJson1_1CastColumnTypeOperation = ( + input: CastColumnTypeOperation, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ColumnName !== undefined) { + bodyParams["ColumnName"] = input.ColumnName; + } + if (input.Format !== undefined) { + bodyParams["Format"] = input.Format; + } + if (input.NewColumnType !== undefined) { + bodyParams["NewColumnType"] = input.NewColumnType; + } + return bodyParams; +}; + +const serializeAws_restJson1_1ColumnGroup = ( + input: ColumnGroup, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.GeoSpatialColumnGroup !== undefined) { + bodyParams[ + "GeoSpatialColumnGroup" + ] = serializeAws_restJson1_1GeoSpatialColumnGroup( + input.GeoSpatialColumnGroup, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1ColumnGroupList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1ColumnGroup(entry, context) + ); +}; + +const serializeAws_restJson1_1ColumnList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => entry); +}; + +const serializeAws_restJson1_1ColumnTag = ( + input: ColumnTag, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ColumnGeographicRole !== undefined) { + bodyParams["ColumnGeographicRole"] = input.ColumnGeographicRole; + } + return bodyParams; +}; + +const serializeAws_restJson1_1ColumnTagList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1ColumnTag(entry, context) + ); +}; + +const serializeAws_restJson1_1CreateColumnsOperation = ( + input: CreateColumnsOperation, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Columns !== undefined) { + bodyParams["Columns"] = serializeAws_restJson1_1CalculatedColumnList( + input.Columns, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1CredentialPair = ( + input: CredentialPair, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Password !== undefined) { + bodyParams["Password"] = input.Password; + } + if (input.Username !== undefined) { + bodyParams["Username"] = input.Username; + } + return bodyParams; +}; + +const serializeAws_restJson1_1CustomSql = ( + input: CustomSql, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Columns !== undefined) { + bodyParams["Columns"] = serializeAws_restJson1_1InputColumnList( + input.Columns, + context + ); + } + if (input.DataSourceArn !== undefined) { + bodyParams["DataSourceArn"] = input.DataSourceArn; + } + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.SqlQuery !== undefined) { + bodyParams["SqlQuery"] = input.SqlQuery; + } + return bodyParams; +}; + +const serializeAws_restJson1_1DashboardPublishOptions = ( + input: DashboardPublishOptions, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.AdHocFilteringOption !== undefined) { + bodyParams[ + "AdHocFilteringOption" + ] = serializeAws_restJson1_1AdHocFilteringOption( + input.AdHocFilteringOption, + context + ); + } + if (input.ExportToCSVOption !== undefined) { + bodyParams["ExportToCSVOption"] = serializeAws_restJson1_1ExportToCSVOption( + input.ExportToCSVOption, + context + ); + } + if (input.SheetControlsOption !== undefined) { + bodyParams[ + "SheetControlsOption" + ] = serializeAws_restJson1_1SheetControlsOption( + input.SheetControlsOption, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1DashboardSourceEntity = ( + input: DashboardSourceEntity, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.SourceTemplate !== undefined) { + bodyParams[ + "SourceTemplate" + ] = serializeAws_restJson1_1DashboardSourceTemplate( + input.SourceTemplate, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1DashboardSourceTemplate = ( + input: DashboardSourceTemplate, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Arn !== undefined) { + bodyParams["Arn"] = input.Arn; + } + if (input.DataSetReferences !== undefined) { + bodyParams[ + "DataSetReferences" + ] = serializeAws_restJson1_1DataSetReferenceList( + input.DataSetReferences, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1DataSetReference = ( + input: DataSetReference, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.DataSetArn !== undefined) { + bodyParams["DataSetArn"] = input.DataSetArn; + } + if (input.DataSetPlaceholder !== undefined) { + bodyParams["DataSetPlaceholder"] = input.DataSetPlaceholder; + } + return bodyParams; +}; + +const serializeAws_restJson1_1DataSetReferenceList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1DataSetReference(entry, context) + ); +}; + +const serializeAws_restJson1_1DataSourceCredentials = ( + input: DataSourceCredentials, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.CredentialPair !== undefined) { + bodyParams["CredentialPair"] = serializeAws_restJson1_1CredentialPair( + input.CredentialPair, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1DataSourceParameters = ( + input: DataSourceParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.AmazonElasticsearchParameters !== undefined) { + bodyParams[ + "AmazonElasticsearchParameters" + ] = serializeAws_restJson1_1AmazonElasticsearchParameters( + input.AmazonElasticsearchParameters, + context + ); + } + if (input.AthenaParameters !== undefined) { + bodyParams["AthenaParameters"] = serializeAws_restJson1_1AthenaParameters( + input.AthenaParameters, + context + ); + } + if (input.AuroraParameters !== undefined) { + bodyParams["AuroraParameters"] = serializeAws_restJson1_1AuroraParameters( + input.AuroraParameters, + context + ); + } + if (input.AuroraPostgreSqlParameters !== undefined) { + bodyParams[ + "AuroraPostgreSqlParameters" + ] = serializeAws_restJson1_1AuroraPostgreSqlParameters( + input.AuroraPostgreSqlParameters, + context + ); + } + if (input.AwsIotAnalyticsParameters !== undefined) { + bodyParams[ + "AwsIotAnalyticsParameters" + ] = serializeAws_restJson1_1AwsIotAnalyticsParameters( + input.AwsIotAnalyticsParameters, + context + ); + } + if (input.JiraParameters !== undefined) { + bodyParams["JiraParameters"] = serializeAws_restJson1_1JiraParameters( + input.JiraParameters, + context + ); + } + if (input.MariaDbParameters !== undefined) { + bodyParams["MariaDbParameters"] = serializeAws_restJson1_1MariaDbParameters( + input.MariaDbParameters, + context + ); + } + if (input.MySqlParameters !== undefined) { + bodyParams["MySqlParameters"] = serializeAws_restJson1_1MySqlParameters( + input.MySqlParameters, + context + ); + } + if (input.PostgreSqlParameters !== undefined) { + bodyParams[ + "PostgreSqlParameters" + ] = serializeAws_restJson1_1PostgreSqlParameters( + input.PostgreSqlParameters, + context + ); + } + if (input.PrestoParameters !== undefined) { + bodyParams["PrestoParameters"] = serializeAws_restJson1_1PrestoParameters( + input.PrestoParameters, + context + ); + } + if (input.RdsParameters !== undefined) { + bodyParams["RdsParameters"] = serializeAws_restJson1_1RdsParameters( + input.RdsParameters, + context + ); + } + if (input.RedshiftParameters !== undefined) { + bodyParams[ + "RedshiftParameters" + ] = serializeAws_restJson1_1RedshiftParameters( + input.RedshiftParameters, + context + ); + } + if (input.S3Parameters !== undefined) { + bodyParams["S3Parameters"] = serializeAws_restJson1_1S3Parameters( + input.S3Parameters, + context + ); + } + if (input.ServiceNowParameters !== undefined) { + bodyParams[ + "ServiceNowParameters" + ] = serializeAws_restJson1_1ServiceNowParameters( + input.ServiceNowParameters, + context + ); + } + if (input.SnowflakeParameters !== undefined) { + bodyParams[ + "SnowflakeParameters" + ] = serializeAws_restJson1_1SnowflakeParameters( + input.SnowflakeParameters, + context + ); + } + if (input.SparkParameters !== undefined) { + bodyParams["SparkParameters"] = serializeAws_restJson1_1SparkParameters( + input.SparkParameters, + context + ); + } + if (input.SqlServerParameters !== undefined) { + bodyParams[ + "SqlServerParameters" + ] = serializeAws_restJson1_1SqlServerParameters( + input.SqlServerParameters, + context + ); + } + if (input.TeradataParameters !== undefined) { + bodyParams[ + "TeradataParameters" + ] = serializeAws_restJson1_1TeradataParameters( + input.TeradataParameters, + context + ); + } + if (input.TwitterParameters !== undefined) { + bodyParams["TwitterParameters"] = serializeAws_restJson1_1TwitterParameters( + input.TwitterParameters, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1DateTimeParameter = ( + input: DateTimeParameter, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Values !== undefined) { + bodyParams["Values"] = serializeAws_restJson1_1TimestampList( + input.Values, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1DateTimeParameterList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1DateTimeParameter(entry, context) + ); +}; + +const serializeAws_restJson1_1DecimalParameter = ( + input: DecimalParameter, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Values !== undefined) { + bodyParams["Values"] = serializeAws_restJson1_1DoubleList( + input.Values, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1DecimalParameterList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1DecimalParameter(entry, context) + ); +}; + +const serializeAws_restJson1_1ExportToCSVOption = ( + input: ExportToCSVOption, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.AvailabilityStatus !== undefined) { + bodyParams["AvailabilityStatus"] = input.AvailabilityStatus; + } + return bodyParams; +}; + +const serializeAws_restJson1_1FilterOperation = ( + input: FilterOperation, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ConditionExpression !== undefined) { + bodyParams["ConditionExpression"] = input.ConditionExpression; + } + return bodyParams; +}; + +const serializeAws_restJson1_1GeoSpatialColumnGroup = ( + input: GeoSpatialColumnGroup, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Columns !== undefined) { + bodyParams["Columns"] = serializeAws_restJson1_1ColumnList( + input.Columns, + context + ); + } + if (input.CountryCode !== undefined) { + bodyParams["CountryCode"] = input.CountryCode; + } + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + return bodyParams; +}; + +const serializeAws_restJson1_1IdentityMap = ( + input: { [key: string]: Array }, + context: __SerdeContext +): any => { + let mapParams: any = {}; + Object.keys(input).forEach(key => { + mapParams[key] = serializeAws_restJson1_1IdentityNameList( + input[key], + context + ); + }); + return mapParams; +}; + +const serializeAws_restJson1_1IdentityNameList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => entry); +}; + +const serializeAws_restJson1_1InputColumn = ( + input: InputColumn, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Type !== undefined) { + bodyParams["Type"] = input.Type; + } + return bodyParams; +}; + +const serializeAws_restJson1_1InputColumnList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1InputColumn(entry, context) + ); +}; + +const serializeAws_restJson1_1IntegerParameter = ( + input: IntegerParameter, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Values !== undefined) { + bodyParams["Values"] = serializeAws_restJson1_1LongList( + input.Values, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1IntegerParameterList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1IntegerParameter(entry, context) + ); +}; + +const serializeAws_restJson1_1JiraParameters = ( + input: JiraParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.SiteBaseUrl !== undefined) { + bodyParams["SiteBaseUrl"] = input.SiteBaseUrl; + } + return bodyParams; +}; + +const serializeAws_restJson1_1JoinInstruction = ( + input: JoinInstruction, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.LeftOperand !== undefined) { + bodyParams["LeftOperand"] = input.LeftOperand; + } + if (input.OnClause !== undefined) { + bodyParams["OnClause"] = input.OnClause; + } + if (input.RightOperand !== undefined) { + bodyParams["RightOperand"] = input.RightOperand; + } + if (input.Type !== undefined) { + bodyParams["Type"] = input.Type; + } + return bodyParams; +}; + +const serializeAws_restJson1_1LogicalTable = ( + input: LogicalTable, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Alias !== undefined) { + bodyParams["Alias"] = input.Alias; + } + if (input.DataTransforms !== undefined) { + bodyParams[ + "DataTransforms" + ] = serializeAws_restJson1_1TransformOperationList( + input.DataTransforms, + context + ); + } + if (input.Source !== undefined) { + bodyParams["Source"] = serializeAws_restJson1_1LogicalTableSource( + input.Source, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1LogicalTableMap = ( + input: { [key: string]: LogicalTable }, + context: __SerdeContext +): any => { + let mapParams: any = {}; + Object.keys(input).forEach(key => { + mapParams[key] = serializeAws_restJson1_1LogicalTable(input[key], context); + }); + return mapParams; +}; + +const serializeAws_restJson1_1LogicalTableSource = ( + input: LogicalTableSource, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.JoinInstruction !== undefined) { + bodyParams["JoinInstruction"] = serializeAws_restJson1_1JoinInstruction( + input.JoinInstruction, + context + ); + } + if (input.PhysicalTableId !== undefined) { + bodyParams["PhysicalTableId"] = input.PhysicalTableId; + } + return bodyParams; +}; + +const serializeAws_restJson1_1ManifestFileLocation = ( + input: ManifestFileLocation, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Bucket !== undefined) { + bodyParams["Bucket"] = input.Bucket; + } + if (input.Key !== undefined) { + bodyParams["Key"] = input.Key; + } + return bodyParams; +}; + +const serializeAws_restJson1_1MariaDbParameters = ( + input: MariaDbParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1MySqlParameters = ( + input: MySqlParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1_Parameters = ( + input: _Parameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.DateTimeParameters !== undefined) { + bodyParams[ + "DateTimeParameters" + ] = serializeAws_restJson1_1DateTimeParameterList( + input.DateTimeParameters, + context + ); + } + if (input.DecimalParameters !== undefined) { + bodyParams[ + "DecimalParameters" + ] = serializeAws_restJson1_1DecimalParameterList( + input.DecimalParameters, + context + ); + } + if (input.IntegerParameters !== undefined) { + bodyParams[ + "IntegerParameters" + ] = serializeAws_restJson1_1IntegerParameterList( + input.IntegerParameters, + context + ); + } + if (input.StringParameters !== undefined) { + bodyParams[ + "StringParameters" + ] = serializeAws_restJson1_1StringParameterList( + input.StringParameters, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1PhysicalTable = ( + input: PhysicalTable, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.CustomSql !== undefined) { + bodyParams["CustomSql"] = serializeAws_restJson1_1CustomSql( + input.CustomSql, + context + ); + } + if (input.RelationalTable !== undefined) { + bodyParams["RelationalTable"] = serializeAws_restJson1_1RelationalTable( + input.RelationalTable, + context + ); + } + if (input.S3Source !== undefined) { + bodyParams["S3Source"] = serializeAws_restJson1_1S3Source( + input.S3Source, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1PhysicalTableMap = ( + input: { [key: string]: PhysicalTable }, + context: __SerdeContext +): any => { + let mapParams: any = {}; + Object.keys(input).forEach(key => { + mapParams[key] = serializeAws_restJson1_1PhysicalTable(input[key], context); + }); + return mapParams; +}; + +const serializeAws_restJson1_1PostgreSqlParameters = ( + input: PostgreSqlParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1PrestoParameters = ( + input: PrestoParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Catalog !== undefined) { + bodyParams["Catalog"] = input.Catalog; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1ProjectOperation = ( + input: ProjectOperation, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ProjectedColumns !== undefined) { + bodyParams[ + "ProjectedColumns" + ] = serializeAws_restJson1_1ProjectedColumnList( + input.ProjectedColumns, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1ProjectedColumnList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => entry); +}; + +const serializeAws_restJson1_1RdsParameters = ( + input: RdsParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.InstanceId !== undefined) { + bodyParams["InstanceId"] = input.InstanceId; + } + return bodyParams; +}; + +const serializeAws_restJson1_1RedshiftParameters = ( + input: RedshiftParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ClusterId !== undefined) { + bodyParams["ClusterId"] = input.ClusterId; + } + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1RelationalTable = ( + input: RelationalTable, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.DataSourceArn !== undefined) { + bodyParams["DataSourceArn"] = input.DataSourceArn; + } + if (input.InputColumns !== undefined) { + bodyParams["InputColumns"] = serializeAws_restJson1_1InputColumnList( + input.InputColumns, + context + ); + } + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Schema !== undefined) { + bodyParams["Schema"] = input.Schema; + } + return bodyParams; +}; + +const serializeAws_restJson1_1RenameColumnOperation = ( + input: RenameColumnOperation, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ColumnName !== undefined) { + bodyParams["ColumnName"] = input.ColumnName; + } + if (input.NewColumnName !== undefined) { + bodyParams["NewColumnName"] = input.NewColumnName; + } + return bodyParams; +}; + +const serializeAws_restJson1_1RowLevelPermissionDataSet = ( + input: RowLevelPermissionDataSet, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Arn !== undefined) { + bodyParams["Arn"] = input.Arn; + } + if (input.PermissionPolicy !== undefined) { + bodyParams["PermissionPolicy"] = input.PermissionPolicy; + } + return bodyParams; +}; + +const serializeAws_restJson1_1S3Parameters = ( + input: S3Parameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ManifestFileLocation !== undefined) { + bodyParams[ + "ManifestFileLocation" + ] = serializeAws_restJson1_1ManifestFileLocation( + input.ManifestFileLocation, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1S3Source = ( + input: S3Source, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.DataSourceArn !== undefined) { + bodyParams["DataSourceArn"] = input.DataSourceArn; + } + if (input.InputColumns !== undefined) { + bodyParams["InputColumns"] = serializeAws_restJson1_1InputColumnList( + input.InputColumns, + context + ); + } + if (input.UploadSettings !== undefined) { + bodyParams["UploadSettings"] = serializeAws_restJson1_1UploadSettings( + input.UploadSettings, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1ServiceNowParameters = ( + input: ServiceNowParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.SiteBaseUrl !== undefined) { + bodyParams["SiteBaseUrl"] = input.SiteBaseUrl; + } + return bodyParams; +}; + +const serializeAws_restJson1_1SheetControlsOption = ( + input: SheetControlsOption, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.VisibilityState !== undefined) { + bodyParams["VisibilityState"] = input.VisibilityState; + } + return bodyParams; +}; + +const serializeAws_restJson1_1SnowflakeParameters = ( + input: SnowflakeParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Warehouse !== undefined) { + bodyParams["Warehouse"] = input.Warehouse; + } + return bodyParams; +}; + +const serializeAws_restJson1_1SparkParameters = ( + input: SparkParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1SqlServerParameters = ( + input: SqlServerParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1SslProperties = ( + input: SslProperties, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.DisableSsl !== undefined) { + bodyParams["DisableSsl"] = input.DisableSsl; + } + return bodyParams; +}; + +const serializeAws_restJson1_1StringParameter = ( + input: StringParameter, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Name !== undefined) { + bodyParams["Name"] = input.Name; + } + if (input.Values !== undefined) { + bodyParams["Values"] = serializeAws_restJson1_1StringList( + input.Values, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1StringParameterList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1StringParameter(entry, context) + ); +}; + +const serializeAws_restJson1_1TagColumnOperation = ( + input: TagColumnOperation, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ColumnName !== undefined) { + bodyParams["ColumnName"] = input.ColumnName; + } + if (input.Tags !== undefined) { + bodyParams["Tags"] = serializeAws_restJson1_1ColumnTagList( + input.Tags, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1TemplateSourceAnalysis = ( + input: TemplateSourceAnalysis, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Arn !== undefined) { + bodyParams["Arn"] = input.Arn; + } + if (input.DataSetReferences !== undefined) { + bodyParams[ + "DataSetReferences" + ] = serializeAws_restJson1_1DataSetReferenceList( + input.DataSetReferences, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1TemplateSourceEntity = ( + input: TemplateSourceEntity, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.SourceAnalysis !== undefined) { + bodyParams[ + "SourceAnalysis" + ] = serializeAws_restJson1_1TemplateSourceAnalysis( + input.SourceAnalysis, + context + ); + } + if (input.SourceTemplate !== undefined) { + bodyParams[ + "SourceTemplate" + ] = serializeAws_restJson1_1TemplateSourceTemplate( + input.SourceTemplate, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1TemplateSourceTemplate = ( + input: TemplateSourceTemplate, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Arn !== undefined) { + bodyParams["Arn"] = input.Arn; + } + return bodyParams; +}; + +const serializeAws_restJson1_1TeradataParameters = ( + input: TeradataParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Database !== undefined) { + bodyParams["Database"] = input.Database; + } + if (input.Host !== undefined) { + bodyParams["Host"] = input.Host; + } + if (input.Port !== undefined) { + bodyParams["Port"] = input.Port; + } + return bodyParams; +}; + +const serializeAws_restJson1_1TransformOperation = ( + input: TransformOperation, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.CastColumnTypeOperation !== undefined) { + bodyParams[ + "CastColumnTypeOperation" + ] = serializeAws_restJson1_1CastColumnTypeOperation( + input.CastColumnTypeOperation, + context + ); + } + if (input.CreateColumnsOperation !== undefined) { + bodyParams[ + "CreateColumnsOperation" + ] = serializeAws_restJson1_1CreateColumnsOperation( + input.CreateColumnsOperation, + context + ); + } + if (input.FilterOperation !== undefined) { + bodyParams["FilterOperation"] = serializeAws_restJson1_1FilterOperation( + input.FilterOperation, + context + ); + } + if (input.ProjectOperation !== undefined) { + bodyParams["ProjectOperation"] = serializeAws_restJson1_1ProjectOperation( + input.ProjectOperation, + context + ); + } + if (input.RenameColumnOperation !== undefined) { + bodyParams[ + "RenameColumnOperation" + ] = serializeAws_restJson1_1RenameColumnOperation( + input.RenameColumnOperation, + context + ); + } + if (input.TagColumnOperation !== undefined) { + bodyParams[ + "TagColumnOperation" + ] = serializeAws_restJson1_1TagColumnOperation( + input.TagColumnOperation, + context + ); + } + return bodyParams; +}; + +const serializeAws_restJson1_1TransformOperationList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1TransformOperation(entry, context) + ); +}; + +const serializeAws_restJson1_1TwitterParameters = ( + input: TwitterParameters, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.MaxRows !== undefined) { + bodyParams["MaxRows"] = input.MaxRows; + } + if (input.Query !== undefined) { + bodyParams["Query"] = input.Query; + } + return bodyParams; +}; + +const serializeAws_restJson1_1UpdateResourcePermissionList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1ResourcePermission(entry, context) + ); +}; + +const serializeAws_restJson1_1UploadSettings = ( + input: UploadSettings, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.ContainsHeader !== undefined) { + bodyParams["ContainsHeader"] = input.ContainsHeader; + } + if (input.Delimiter !== undefined) { + bodyParams["Delimiter"] = input.Delimiter; + } + if (input.Format !== undefined) { + bodyParams["Format"] = input.Format; + } + if (input.StartFromRow !== undefined) { + bodyParams["StartFromRow"] = input.StartFromRow; + } + if (input.TextQualifier !== undefined) { + bodyParams["TextQualifier"] = input.TextQualifier; + } + return bodyParams; +}; + +const serializeAws_restJson1_1VpcConnectionProperties = ( + input: VpcConnectionProperties, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.VpcConnectionArn !== undefined) { + bodyParams["VpcConnectionArn"] = input.VpcConnectionArn; + } + return bodyParams; +}; + +const serializeAws_restJson1_1ActionList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => entry); +}; + +const serializeAws_restJson1_1DoubleList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => entry); +}; + +const serializeAws_restJson1_1LongList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => entry); +}; + +const serializeAws_restJson1_1ResourcePermission = ( + input: ResourcePermission, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Actions !== undefined) { + bodyParams["Actions"] = serializeAws_restJson1_1ActionList( + input.Actions, + context + ); + } + if (input.Principal !== undefined) { + bodyParams["Principal"] = input.Principal; + } + return bodyParams; +}; + +const serializeAws_restJson1_1ResourcePermissionList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1ResourcePermission(entry, context) + ); +}; + +const serializeAws_restJson1_1StringList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => entry); +}; + +const serializeAws_restJson1_1Tag = ( + input: Tag, + context: __SerdeContext +): any => { + let bodyParams: any = {}; + if (input.Key !== undefined) { + bodyParams["Key"] = input.Key; + } + if (input.Value !== undefined) { + bodyParams["Value"] = input.Value; + } + return bodyParams; +}; + +const serializeAws_restJson1_1TagList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => + serializeAws_restJson1_1Tag(entry, context) + ); +}; + +const serializeAws_restJson1_1TimestampList = ( + input: Array, + context: __SerdeContext +): any => { + return (input || []).map(entry => Math.round(entry.getTime() / 1000)); +}; + +const deserializeAws_restJson1_1ActiveIAMPolicyAssignment = ( + output: any, + context: __SerdeContext +): ActiveIAMPolicyAssignment => { + let contents: any = { + __type: "ActiveIAMPolicyAssignment", + AssignmentName: undefined, + PolicyArn: undefined + }; + if (output.AssignmentName !== undefined) { + contents.AssignmentName = output.AssignmentName; + } + if (output.PolicyArn !== undefined) { + contents.PolicyArn = output.PolicyArn; + } + return contents; +}; + +const deserializeAws_restJson1_1ActiveIAMPolicyAssignmentList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1ActiveIAMPolicyAssignment(entry, context) + ); +}; + +const deserializeAws_restJson1_1AmazonElasticsearchParameters = ( + output: any, + context: __SerdeContext +): AmazonElasticsearchParameters => { + let contents: any = { + __type: "AmazonElasticsearchParameters", + Domain: undefined + }; + if (output.Domain !== undefined) { + contents.Domain = output.Domain; + } + return contents; +}; + +const deserializeAws_restJson1_1AthenaParameters = ( + output: any, + context: __SerdeContext +): AthenaParameters => { + let contents: any = { + __type: "AthenaParameters", + WorkGroup: undefined + }; + if (output.WorkGroup !== undefined) { + contents.WorkGroup = output.WorkGroup; + } + return contents; +}; + +const deserializeAws_restJson1_1AuroraParameters = ( + output: any, + context: __SerdeContext +): AuroraParameters => { + let contents: any = { + __type: "AuroraParameters", + Database: undefined, + Host: undefined, + Port: undefined + }; + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1AuroraPostgreSqlParameters = ( + output: any, + context: __SerdeContext +): AuroraPostgreSqlParameters => { + let contents: any = { + __type: "AuroraPostgreSqlParameters", + Database: undefined, + Host: undefined, + Port: undefined + }; + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1AwsIotAnalyticsParameters = ( + output: any, + context: __SerdeContext +): AwsIotAnalyticsParameters => { + let contents: any = { + __type: "AwsIotAnalyticsParameters", + DataSetName: undefined + }; + if (output.DataSetName !== undefined) { + contents.DataSetName = output.DataSetName; + } + return contents; +}; + +const deserializeAws_restJson1_1CalculatedColumn = ( + output: any, + context: __SerdeContext +): CalculatedColumn => { + let contents: any = { + __type: "CalculatedColumn", + ColumnId: undefined, + ColumnName: undefined, + Expression: undefined + }; + if (output.ColumnId !== undefined) { + contents.ColumnId = output.ColumnId; + } + if (output.ColumnName !== undefined) { + contents.ColumnName = output.ColumnName; + } + if (output.Expression !== undefined) { + contents.Expression = output.Expression; + } + return contents; +}; + +const deserializeAws_restJson1_1CalculatedColumnList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1CalculatedColumn(entry, context) + ); +}; + +const deserializeAws_restJson1_1CastColumnTypeOperation = ( + output: any, + context: __SerdeContext +): CastColumnTypeOperation => { + let contents: any = { + __type: "CastColumnTypeOperation", + ColumnName: undefined, + Format: undefined, + NewColumnType: undefined + }; + if (output.ColumnName !== undefined) { + contents.ColumnName = output.ColumnName; + } + if (output.Format !== undefined) { + contents.Format = output.Format; + } + if (output.NewColumnType !== undefined) { + contents.NewColumnType = output.NewColumnType; + } + return contents; +}; + +const deserializeAws_restJson1_1ColumnGroup = ( + output: any, + context: __SerdeContext +): ColumnGroup => { + let contents: any = { + __type: "ColumnGroup", + GeoSpatialColumnGroup: undefined + }; + if (output.GeoSpatialColumnGroup !== undefined) { + contents.GeoSpatialColumnGroup = deserializeAws_restJson1_1GeoSpatialColumnGroup( + output.GeoSpatialColumnGroup, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1ColumnGroupColumnSchema = ( + output: any, + context: __SerdeContext +): ColumnGroupColumnSchema => { + let contents: any = { + __type: "ColumnGroupColumnSchema", + Name: undefined + }; + if (output.Name !== undefined) { + contents.Name = output.Name; + } + return contents; +}; + +const deserializeAws_restJson1_1ColumnGroupColumnSchemaList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1ColumnGroupColumnSchema(entry, context) + ); +}; + +const deserializeAws_restJson1_1ColumnGroupList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1ColumnGroup(entry, context) + ); +}; + +const deserializeAws_restJson1_1ColumnGroupSchema = ( + output: any, + context: __SerdeContext +): ColumnGroupSchema => { + let contents: any = { + __type: "ColumnGroupSchema", + ColumnGroupColumnSchemaList: undefined, + Name: undefined + }; + if (output.ColumnGroupColumnSchemaList !== undefined) { + contents.ColumnGroupColumnSchemaList = deserializeAws_restJson1_1ColumnGroupColumnSchemaList( + output.ColumnGroupColumnSchemaList, + context + ); + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + return contents; +}; + +const deserializeAws_restJson1_1ColumnGroupSchemaList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1ColumnGroupSchema(entry, context) + ); +}; + +const deserializeAws_restJson1_1ColumnList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => entry); +}; + +const deserializeAws_restJson1_1ColumnSchema = ( + output: any, + context: __SerdeContext +): ColumnSchema => { + let contents: any = { + __type: "ColumnSchema", + DataType: undefined, + GeographicRole: undefined, + Name: undefined + }; + if (output.DataType !== undefined) { + contents.DataType = output.DataType; + } + if (output.GeographicRole !== undefined) { + contents.GeographicRole = output.GeographicRole; + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + return contents; +}; + +const deserializeAws_restJson1_1ColumnSchemaList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1ColumnSchema(entry, context) + ); +}; + +const deserializeAws_restJson1_1ColumnTag = ( + output: any, + context: __SerdeContext +): ColumnTag => { + let contents: any = { + __type: "ColumnTag", + ColumnGeographicRole: undefined + }; + if (output.ColumnGeographicRole !== undefined) { + contents.ColumnGeographicRole = output.ColumnGeographicRole; + } + return contents; +}; + +const deserializeAws_restJson1_1ColumnTagList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1ColumnTag(entry, context) + ); +}; + +const deserializeAws_restJson1_1CreateColumnsOperation = ( + output: any, + context: __SerdeContext +): CreateColumnsOperation => { + let contents: any = { + __type: "CreateColumnsOperation", + Columns: undefined + }; + if (output.Columns !== undefined) { + contents.Columns = deserializeAws_restJson1_1CalculatedColumnList( + output.Columns, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1CustomSql = ( + output: any, + context: __SerdeContext +): CustomSql => { + let contents: any = { + __type: "CustomSql", + Columns: undefined, + DataSourceArn: undefined, + Name: undefined, + SqlQuery: undefined + }; + if (output.Columns !== undefined) { + contents.Columns = deserializeAws_restJson1_1InputColumnList( + output.Columns, + context + ); + } + if (output.DataSourceArn !== undefined) { + contents.DataSourceArn = output.DataSourceArn; + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.SqlQuery !== undefined) { + contents.SqlQuery = output.SqlQuery; + } + return contents; +}; + +const deserializeAws_restJson1_1Dashboard = ( + output: any, + context: __SerdeContext +): Dashboard => { + let contents: any = { + __type: "Dashboard", + Arn: undefined, + CreatedTime: undefined, + DashboardId: undefined, + LastPublishedTime: undefined, + LastUpdatedTime: undefined, + Name: undefined, + Version: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.DashboardId !== undefined) { + contents.DashboardId = output.DashboardId; + } + if (output.LastPublishedTime !== undefined) { + contents.LastPublishedTime = new Date( + output.LastPublishedTime % 1 != 0 + ? Math.round(output.LastPublishedTime * 1000) + : output.LastPublishedTime + ); + } + if (output.LastUpdatedTime !== undefined) { + contents.LastUpdatedTime = new Date( + output.LastUpdatedTime % 1 != 0 + ? Math.round(output.LastUpdatedTime * 1000) + : output.LastUpdatedTime + ); + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.Version !== undefined) { + contents.Version = deserializeAws_restJson1_1DashboardVersion( + output.Version, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1DashboardError = ( + output: any, + context: __SerdeContext +): DashboardError => { + let contents: any = { + __type: "DashboardError", + Message: undefined, + Type: undefined + }; + if (output.Message !== undefined) { + contents.Message = output.Message; + } + if (output.Type !== undefined) { + contents.Type = output.Type; + } + return contents; +}; + +const deserializeAws_restJson1_1DashboardErrorList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1DashboardError(entry, context) + ); +}; + +const deserializeAws_restJson1_1DashboardSummary = ( + output: any, + context: __SerdeContext +): DashboardSummary => { + let contents: any = { + __type: "DashboardSummary", + Arn: undefined, + CreatedTime: undefined, + DashboardId: undefined, + LastPublishedTime: undefined, + LastUpdatedTime: undefined, + Name: undefined, + PublishedVersionNumber: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.DashboardId !== undefined) { + contents.DashboardId = output.DashboardId; + } + if (output.LastPublishedTime !== undefined) { + contents.LastPublishedTime = new Date( + output.LastPublishedTime % 1 != 0 + ? Math.round(output.LastPublishedTime * 1000) + : output.LastPublishedTime + ); + } + if (output.LastUpdatedTime !== undefined) { + contents.LastUpdatedTime = new Date( + output.LastUpdatedTime % 1 != 0 + ? Math.round(output.LastUpdatedTime * 1000) + : output.LastUpdatedTime + ); + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.PublishedVersionNumber !== undefined) { + contents.PublishedVersionNumber = output.PublishedVersionNumber; + } + return contents; +}; + +const deserializeAws_restJson1_1DashboardSummaryList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1DashboardSummary(entry, context) + ); +}; + +const deserializeAws_restJson1_1DashboardVersion = ( + output: any, + context: __SerdeContext +): DashboardVersion => { + let contents: any = { + __type: "DashboardVersion", + Arn: undefined, + CreatedTime: undefined, + Description: undefined, + Errors: undefined, + SourceEntityArn: undefined, + Status: undefined, + VersionNumber: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.Description !== undefined) { + contents.Description = output.Description; + } + if (output.Errors !== undefined) { + contents.Errors = deserializeAws_restJson1_1DashboardErrorList( + output.Errors, + context + ); + } + if (output.SourceEntityArn !== undefined) { + contents.SourceEntityArn = output.SourceEntityArn; + } + if (output.Status !== undefined) { + contents.Status = output.Status; + } + if (output.VersionNumber !== undefined) { + contents.VersionNumber = output.VersionNumber; + } + return contents; +}; + +const deserializeAws_restJson1_1DashboardVersionSummary = ( + output: any, + context: __SerdeContext +): DashboardVersionSummary => { + let contents: any = { + __type: "DashboardVersionSummary", + Arn: undefined, + CreatedTime: undefined, + Description: undefined, + SourceEntityArn: undefined, + Status: undefined, + VersionNumber: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.Description !== undefined) { + contents.Description = output.Description; + } + if (output.SourceEntityArn !== undefined) { + contents.SourceEntityArn = output.SourceEntityArn; + } + if (output.Status !== undefined) { + contents.Status = output.Status; + } + if (output.VersionNumber !== undefined) { + contents.VersionNumber = output.VersionNumber; + } + return contents; +}; + +const deserializeAws_restJson1_1DashboardVersionSummaryList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1DashboardVersionSummary(entry, context) + ); +}; + +const deserializeAws_restJson1_1DataSet = ( + output: any, + context: __SerdeContext +): DataSet => { + let contents: any = { + __type: "DataSet", + Arn: undefined, + ColumnGroups: undefined, + ConsumedSpiceCapacityInBytes: undefined, + CreatedTime: undefined, + DataSetId: undefined, + ImportMode: undefined, + LastUpdatedTime: undefined, + LogicalTableMap: undefined, + Name: undefined, + OutputColumns: undefined, + PhysicalTableMap: undefined, + RowLevelPermissionDataSet: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.ColumnGroups !== undefined) { + contents.ColumnGroups = deserializeAws_restJson1_1ColumnGroupList( + output.ColumnGroups, + context + ); + } + if (output.ConsumedSpiceCapacityInBytes !== undefined) { + contents.ConsumedSpiceCapacityInBytes = output.ConsumedSpiceCapacityInBytes; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.DataSetId !== undefined) { + contents.DataSetId = output.DataSetId; + } + if (output.ImportMode !== undefined) { + contents.ImportMode = output.ImportMode; + } + if (output.LastUpdatedTime !== undefined) { + contents.LastUpdatedTime = new Date( + output.LastUpdatedTime % 1 != 0 + ? Math.round(output.LastUpdatedTime * 1000) + : output.LastUpdatedTime + ); + } + if (output.LogicalTableMap !== undefined) { + contents.LogicalTableMap = deserializeAws_restJson1_1LogicalTableMap( + output.LogicalTableMap, + context + ); + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.OutputColumns !== undefined) { + contents.OutputColumns = deserializeAws_restJson1_1OutputColumnList( + output.OutputColumns, + context + ); + } + if (output.PhysicalTableMap !== undefined) { + contents.PhysicalTableMap = deserializeAws_restJson1_1PhysicalTableMap( + output.PhysicalTableMap, + context + ); + } + if (output.RowLevelPermissionDataSet !== undefined) { + contents.RowLevelPermissionDataSet = deserializeAws_restJson1_1RowLevelPermissionDataSet( + output.RowLevelPermissionDataSet, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1DataSetConfiguration = ( + output: any, + context: __SerdeContext +): DataSetConfiguration => { + let contents: any = { + __type: "DataSetConfiguration", + ColumnGroupSchemaList: undefined, + DataSetSchema: undefined, + Placeholder: undefined + }; + if (output.ColumnGroupSchemaList !== undefined) { + contents.ColumnGroupSchemaList = deserializeAws_restJson1_1ColumnGroupSchemaList( + output.ColumnGroupSchemaList, + context + ); + } + if (output.DataSetSchema !== undefined) { + contents.DataSetSchema = deserializeAws_restJson1_1DataSetSchema( + output.DataSetSchema, + context + ); + } + if (output.Placeholder !== undefined) { + contents.Placeholder = output.Placeholder; + } + return contents; +}; + +const deserializeAws_restJson1_1DataSetConfigurationList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1DataSetConfiguration(entry, context) + ); +}; + +const deserializeAws_restJson1_1DataSetSchema = ( + output: any, + context: __SerdeContext +): DataSetSchema => { + let contents: any = { + __type: "DataSetSchema", + ColumnSchemaList: undefined + }; + if (output.ColumnSchemaList !== undefined) { + contents.ColumnSchemaList = deserializeAws_restJson1_1ColumnSchemaList( + output.ColumnSchemaList, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1DataSetSummary = ( + output: any, + context: __SerdeContext +): DataSetSummary => { + let contents: any = { + __type: "DataSetSummary", + Arn: undefined, + CreatedTime: undefined, + DataSetId: undefined, + ImportMode: undefined, + LastUpdatedTime: undefined, + Name: undefined, + RowLevelPermissionDataSet: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.DataSetId !== undefined) { + contents.DataSetId = output.DataSetId; + } + if (output.ImportMode !== undefined) { + contents.ImportMode = output.ImportMode; + } + if (output.LastUpdatedTime !== undefined) { + contents.LastUpdatedTime = new Date( + output.LastUpdatedTime % 1 != 0 + ? Math.round(output.LastUpdatedTime * 1000) + : output.LastUpdatedTime + ); + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.RowLevelPermissionDataSet !== undefined) { + contents.RowLevelPermissionDataSet = deserializeAws_restJson1_1RowLevelPermissionDataSet( + output.RowLevelPermissionDataSet, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1DataSetSummaryList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1DataSetSummary(entry, context) + ); +}; + +const deserializeAws_restJson1_1DataSource = ( + output: any, + context: __SerdeContext +): DataSource => { + let contents: any = { + __type: "DataSource", + Arn: undefined, + CreatedTime: undefined, + DataSourceId: undefined, + DataSourceParameters: undefined, + ErrorInfo: undefined, + LastUpdatedTime: undefined, + Name: undefined, + SslProperties: undefined, + Status: undefined, + Type: undefined, + VpcConnectionProperties: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.DataSourceId !== undefined) { + contents.DataSourceId = output.DataSourceId; + } + if (output.DataSourceParameters !== undefined) { + contents.DataSourceParameters = deserializeAws_restJson1_1DataSourceParameters( + output.DataSourceParameters, + context + ); + } + if (output.ErrorInfo !== undefined) { + contents.ErrorInfo = deserializeAws_restJson1_1DataSourceErrorInfo( + output.ErrorInfo, + context + ); + } + if (output.LastUpdatedTime !== undefined) { + contents.LastUpdatedTime = new Date( + output.LastUpdatedTime % 1 != 0 + ? Math.round(output.LastUpdatedTime * 1000) + : output.LastUpdatedTime + ); + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.SslProperties !== undefined) { + contents.SslProperties = deserializeAws_restJson1_1SslProperties( + output.SslProperties, + context + ); + } + if (output.Status !== undefined) { + contents.Status = output.Status; + } + if (output.Type !== undefined) { + contents.Type = output.Type; + } + if (output.VpcConnectionProperties !== undefined) { + contents.VpcConnectionProperties = deserializeAws_restJson1_1VpcConnectionProperties( + output.VpcConnectionProperties, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1DataSourceErrorInfo = ( + output: any, + context: __SerdeContext +): DataSourceErrorInfo => { + let contents: any = { + __type: "DataSourceErrorInfo", + Message: undefined, + Type: undefined + }; + if (output.Message !== undefined) { + contents.Message = output.Message; + } + if (output.Type !== undefined) { + contents.Type = output.Type; + } + return contents; +}; + +const deserializeAws_restJson1_1DataSourceList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1DataSource(entry, context) + ); +}; + +const deserializeAws_restJson1_1DataSourceParameters = ( + output: any, + context: __SerdeContext +): DataSourceParameters => { + let contents: any = { + __type: "DataSourceParameters", + AmazonElasticsearchParameters: undefined, + AthenaParameters: undefined, + AuroraParameters: undefined, + AuroraPostgreSqlParameters: undefined, + AwsIotAnalyticsParameters: undefined, + JiraParameters: undefined, + MariaDbParameters: undefined, + MySqlParameters: undefined, + PostgreSqlParameters: undefined, + PrestoParameters: undefined, + RdsParameters: undefined, + RedshiftParameters: undefined, + S3Parameters: undefined, + ServiceNowParameters: undefined, + SnowflakeParameters: undefined, + SparkParameters: undefined, + SqlServerParameters: undefined, + TeradataParameters: undefined, + TwitterParameters: undefined + }; + if (output.AmazonElasticsearchParameters !== undefined) { + contents.AmazonElasticsearchParameters = deserializeAws_restJson1_1AmazonElasticsearchParameters( + output.AmazonElasticsearchParameters, + context + ); + } + if (output.AthenaParameters !== undefined) { + contents.AthenaParameters = deserializeAws_restJson1_1AthenaParameters( + output.AthenaParameters, + context + ); + } + if (output.AuroraParameters !== undefined) { + contents.AuroraParameters = deserializeAws_restJson1_1AuroraParameters( + output.AuroraParameters, + context + ); + } + if (output.AuroraPostgreSqlParameters !== undefined) { + contents.AuroraPostgreSqlParameters = deserializeAws_restJson1_1AuroraPostgreSqlParameters( + output.AuroraPostgreSqlParameters, + context + ); + } + if (output.AwsIotAnalyticsParameters !== undefined) { + contents.AwsIotAnalyticsParameters = deserializeAws_restJson1_1AwsIotAnalyticsParameters( + output.AwsIotAnalyticsParameters, + context + ); + } + if (output.JiraParameters !== undefined) { + contents.JiraParameters = deserializeAws_restJson1_1JiraParameters( + output.JiraParameters, + context + ); + } + if (output.MariaDbParameters !== undefined) { + contents.MariaDbParameters = deserializeAws_restJson1_1MariaDbParameters( + output.MariaDbParameters, + context + ); + } + if (output.MySqlParameters !== undefined) { + contents.MySqlParameters = deserializeAws_restJson1_1MySqlParameters( + output.MySqlParameters, + context + ); + } + if (output.PostgreSqlParameters !== undefined) { + contents.PostgreSqlParameters = deserializeAws_restJson1_1PostgreSqlParameters( + output.PostgreSqlParameters, + context + ); + } + if (output.PrestoParameters !== undefined) { + contents.PrestoParameters = deserializeAws_restJson1_1PrestoParameters( + output.PrestoParameters, + context + ); + } + if (output.RdsParameters !== undefined) { + contents.RdsParameters = deserializeAws_restJson1_1RdsParameters( + output.RdsParameters, + context + ); + } + if (output.RedshiftParameters !== undefined) { + contents.RedshiftParameters = deserializeAws_restJson1_1RedshiftParameters( + output.RedshiftParameters, + context + ); + } + if (output.S3Parameters !== undefined) { + contents.S3Parameters = deserializeAws_restJson1_1S3Parameters( + output.S3Parameters, + context + ); + } + if (output.ServiceNowParameters !== undefined) { + contents.ServiceNowParameters = deserializeAws_restJson1_1ServiceNowParameters( + output.ServiceNowParameters, + context + ); + } + if (output.SnowflakeParameters !== undefined) { + contents.SnowflakeParameters = deserializeAws_restJson1_1SnowflakeParameters( + output.SnowflakeParameters, + context + ); + } + if (output.SparkParameters !== undefined) { + contents.SparkParameters = deserializeAws_restJson1_1SparkParameters( + output.SparkParameters, + context + ); + } + if (output.SqlServerParameters !== undefined) { + contents.SqlServerParameters = deserializeAws_restJson1_1SqlServerParameters( + output.SqlServerParameters, + context + ); + } + if (output.TeradataParameters !== undefined) { + contents.TeradataParameters = deserializeAws_restJson1_1TeradataParameters( + output.TeradataParameters, + context + ); + } + if (output.TwitterParameters !== undefined) { + contents.TwitterParameters = deserializeAws_restJson1_1TwitterParameters( + output.TwitterParameters, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1ErrorInfo = ( + output: any, + context: __SerdeContext +): ErrorInfo => { + let contents: any = { + __type: "ErrorInfo", + Message: undefined, + Type: undefined + }; + if (output.Message !== undefined) { + contents.Message = output.Message; + } + if (output.Type !== undefined) { + contents.Type = output.Type; + } + return contents; +}; + +const deserializeAws_restJson1_1FilterOperation = ( + output: any, + context: __SerdeContext +): FilterOperation => { + let contents: any = { + __type: "FilterOperation", + ConditionExpression: undefined + }; + if (output.ConditionExpression !== undefined) { + contents.ConditionExpression = output.ConditionExpression; + } + return contents; +}; + +const deserializeAws_restJson1_1GeoSpatialColumnGroup = ( + output: any, + context: __SerdeContext +): GeoSpatialColumnGroup => { + let contents: any = { + __type: "GeoSpatialColumnGroup", + Columns: undefined, + CountryCode: undefined, + Name: undefined + }; + if (output.Columns !== undefined) { + contents.Columns = deserializeAws_restJson1_1ColumnList( + output.Columns, + context + ); + } + if (output.CountryCode !== undefined) { + contents.CountryCode = output.CountryCode; + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + return contents; +}; + +const deserializeAws_restJson1_1Group = ( + output: any, + context: __SerdeContext +): Group => { + let contents: any = { + __type: "Group", + Arn: undefined, + Description: undefined, + GroupName: undefined, + PrincipalId: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.Description !== undefined) { + contents.Description = output.Description; + } + if (output.GroupName !== undefined) { + contents.GroupName = output.GroupName; + } + if (output.PrincipalId !== undefined) { + contents.PrincipalId = output.PrincipalId; + } + return contents; +}; + +const deserializeAws_restJson1_1GroupList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1Group(entry, context) + ); +}; + +const deserializeAws_restJson1_1GroupMember = ( + output: any, + context: __SerdeContext +): GroupMember => { + let contents: any = { + __type: "GroupMember", + Arn: undefined, + MemberName: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.MemberName !== undefined) { + contents.MemberName = output.MemberName; + } + return contents; +}; + +const deserializeAws_restJson1_1GroupMemberList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1GroupMember(entry, context) + ); +}; + +const deserializeAws_restJson1_1IAMPolicyAssignment = ( + output: any, + context: __SerdeContext +): IAMPolicyAssignment => { + let contents: any = { + __type: "IAMPolicyAssignment", + AssignmentId: undefined, + AssignmentName: undefined, + AssignmentStatus: undefined, + AwsAccountId: undefined, + Identities: undefined, + PolicyArn: undefined + }; + if (output.AssignmentId !== undefined) { + contents.AssignmentId = output.AssignmentId; + } + if (output.AssignmentName !== undefined) { + contents.AssignmentName = output.AssignmentName; + } + if (output.AssignmentStatus !== undefined) { + contents.AssignmentStatus = output.AssignmentStatus; + } + if (output.AwsAccountId !== undefined) { + contents.AwsAccountId = output.AwsAccountId; + } + if (output.Identities !== undefined) { + contents.Identities = deserializeAws_restJson1_1IdentityMap( + output.Identities, + context + ); + } + if (output.PolicyArn !== undefined) { + contents.PolicyArn = output.PolicyArn; + } + return contents; +}; + +const deserializeAws_restJson1_1IAMPolicyAssignmentSummary = ( + output: any, + context: __SerdeContext +): IAMPolicyAssignmentSummary => { + let contents: any = { + __type: "IAMPolicyAssignmentSummary", + AssignmentName: undefined, + AssignmentStatus: undefined + }; + if (output.AssignmentName !== undefined) { + contents.AssignmentName = output.AssignmentName; + } + if (output.AssignmentStatus !== undefined) { + contents.AssignmentStatus = output.AssignmentStatus; + } + return contents; +}; + +const deserializeAws_restJson1_1IAMPolicyAssignmentSummaryList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1IAMPolicyAssignmentSummary(entry, context) + ); +}; + +const deserializeAws_restJson1_1IdentityMap = ( + output: any, + context: __SerdeContext +): { [key: string]: Array } => { + let mapParams: any = {}; + Object.keys(output).forEach(key => { + mapParams[key] = deserializeAws_restJson1_1IdentityNameList( + output[key], + context + ); + }); + return mapParams; +}; + +const deserializeAws_restJson1_1IdentityNameList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => entry); +}; + +const deserializeAws_restJson1_1Ingestion = ( + output: any, + context: __SerdeContext +): Ingestion => { + let contents: any = { + __type: "Ingestion", + Arn: undefined, + CreatedTime: undefined, + ErrorInfo: undefined, + IngestionId: undefined, + IngestionSizeInBytes: undefined, + IngestionStatus: undefined, + IngestionTimeInSeconds: undefined, + QueueInfo: undefined, + RequestSource: undefined, + RequestType: undefined, + RowInfo: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.ErrorInfo !== undefined) { + contents.ErrorInfo = deserializeAws_restJson1_1ErrorInfo( + output.ErrorInfo, + context + ); + } + if (output.IngestionId !== undefined) { + contents.IngestionId = output.IngestionId; + } + if (output.IngestionSizeInBytes !== undefined) { + contents.IngestionSizeInBytes = output.IngestionSizeInBytes; + } + if (output.IngestionStatus !== undefined) { + contents.IngestionStatus = output.IngestionStatus; + } + if (output.IngestionTimeInSeconds !== undefined) { + contents.IngestionTimeInSeconds = output.IngestionTimeInSeconds; + } + if (output.QueueInfo !== undefined) { + contents.QueueInfo = deserializeAws_restJson1_1QueueInfo( + output.QueueInfo, + context + ); + } + if (output.RequestSource !== undefined) { + contents.RequestSource = output.RequestSource; + } + if (output.RequestType !== undefined) { + contents.RequestType = output.RequestType; + } + if (output.RowInfo !== undefined) { + contents.RowInfo = deserializeAws_restJson1_1RowInfo( + output.RowInfo, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1Ingestions = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1Ingestion(entry, context) + ); +}; + +const deserializeAws_restJson1_1InputColumn = ( + output: any, + context: __SerdeContext +): InputColumn => { + let contents: any = { + __type: "InputColumn", + Name: undefined, + Type: undefined + }; + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.Type !== undefined) { + contents.Type = output.Type; + } + return contents; +}; + +const deserializeAws_restJson1_1InputColumnList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1InputColumn(entry, context) + ); +}; + +const deserializeAws_restJson1_1JiraParameters = ( + output: any, + context: __SerdeContext +): JiraParameters => { + let contents: any = { + __type: "JiraParameters", + SiteBaseUrl: undefined + }; + if (output.SiteBaseUrl !== undefined) { + contents.SiteBaseUrl = output.SiteBaseUrl; + } + return contents; +}; + +const deserializeAws_restJson1_1JoinInstruction = ( + output: any, + context: __SerdeContext +): JoinInstruction => { + let contents: any = { + __type: "JoinInstruction", + LeftOperand: undefined, + OnClause: undefined, + RightOperand: undefined, + Type: undefined + }; + if (output.LeftOperand !== undefined) { + contents.LeftOperand = output.LeftOperand; + } + if (output.OnClause !== undefined) { + contents.OnClause = output.OnClause; + } + if (output.RightOperand !== undefined) { + contents.RightOperand = output.RightOperand; + } + if (output.Type !== undefined) { + contents.Type = output.Type; + } + return contents; +}; + +const deserializeAws_restJson1_1LogicalTable = ( + output: any, + context: __SerdeContext +): LogicalTable => { + let contents: any = { + __type: "LogicalTable", + Alias: undefined, + DataTransforms: undefined, + Source: undefined + }; + if (output.Alias !== undefined) { + contents.Alias = output.Alias; + } + if (output.DataTransforms !== undefined) { + contents.DataTransforms = deserializeAws_restJson1_1TransformOperationList( + output.DataTransforms, + context + ); + } + if (output.Source !== undefined) { + contents.Source = deserializeAws_restJson1_1LogicalTableSource( + output.Source, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1LogicalTableMap = ( + output: any, + context: __SerdeContext +): { [key: string]: LogicalTable } => { + let mapParams: any = {}; + Object.keys(output).forEach(key => { + mapParams[key] = deserializeAws_restJson1_1LogicalTable( + output[key], + context + ); + }); + return mapParams; +}; + +const deserializeAws_restJson1_1LogicalTableSource = ( + output: any, + context: __SerdeContext +): LogicalTableSource => { + let contents: any = { + __type: "LogicalTableSource", + JoinInstruction: undefined, + PhysicalTableId: undefined + }; + if (output.JoinInstruction !== undefined) { + contents.JoinInstruction = deserializeAws_restJson1_1JoinInstruction( + output.JoinInstruction, + context + ); + } + if (output.PhysicalTableId !== undefined) { + contents.PhysicalTableId = output.PhysicalTableId; + } + return contents; +}; + +const deserializeAws_restJson1_1ManifestFileLocation = ( + output: any, + context: __SerdeContext +): ManifestFileLocation => { + let contents: any = { + __type: "ManifestFileLocation", + Bucket: undefined, + Key: undefined + }; + if (output.Bucket !== undefined) { + contents.Bucket = output.Bucket; + } + if (output.Key !== undefined) { + contents.Key = output.Key; + } + return contents; +}; + +const deserializeAws_restJson1_1MariaDbParameters = ( + output: any, + context: __SerdeContext +): MariaDbParameters => { + let contents: any = { + __type: "MariaDbParameters", + Database: undefined, + Host: undefined, + Port: undefined + }; + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1MySqlParameters = ( + output: any, + context: __SerdeContext +): MySqlParameters => { + let contents: any = { + __type: "MySqlParameters", + Database: undefined, + Host: undefined, + Port: undefined + }; + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1OutputColumn = ( + output: any, + context: __SerdeContext +): OutputColumn => { + let contents: any = { + __type: "OutputColumn", + Name: undefined, + Type: undefined + }; + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.Type !== undefined) { + contents.Type = output.Type; + } + return contents; +}; + +const deserializeAws_restJson1_1OutputColumnList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1OutputColumn(entry, context) + ); +}; + +const deserializeAws_restJson1_1PhysicalTable = ( + output: any, + context: __SerdeContext +): PhysicalTable => { + let contents: any = { + __type: "PhysicalTable", + CustomSql: undefined, + RelationalTable: undefined, + S3Source: undefined + }; + if (output.CustomSql !== undefined) { + contents.CustomSql = deserializeAws_restJson1_1CustomSql( + output.CustomSql, + context + ); + } + if (output.RelationalTable !== undefined) { + contents.RelationalTable = deserializeAws_restJson1_1RelationalTable( + output.RelationalTable, + context + ); + } + if (output.S3Source !== undefined) { + contents.S3Source = deserializeAws_restJson1_1S3Source( + output.S3Source, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1PhysicalTableMap = ( + output: any, + context: __SerdeContext +): { [key: string]: PhysicalTable } => { + let mapParams: any = {}; + Object.keys(output).forEach(key => { + mapParams[key] = deserializeAws_restJson1_1PhysicalTable( + output[key], + context + ); + }); + return mapParams; +}; + +const deserializeAws_restJson1_1PostgreSqlParameters = ( + output: any, + context: __SerdeContext +): PostgreSqlParameters => { + let contents: any = { + __type: "PostgreSqlParameters", + Database: undefined, + Host: undefined, + Port: undefined + }; + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1PrestoParameters = ( + output: any, + context: __SerdeContext +): PrestoParameters => { + let contents: any = { + __type: "PrestoParameters", + Catalog: undefined, + Host: undefined, + Port: undefined + }; + if (output.Catalog !== undefined) { + contents.Catalog = output.Catalog; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1ProjectOperation = ( + output: any, + context: __SerdeContext +): ProjectOperation => { + let contents: any = { + __type: "ProjectOperation", + ProjectedColumns: undefined + }; + if (output.ProjectedColumns !== undefined) { + contents.ProjectedColumns = deserializeAws_restJson1_1ProjectedColumnList( + output.ProjectedColumns, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1ProjectedColumnList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => entry); +}; + +const deserializeAws_restJson1_1QueueInfo = ( + output: any, + context: __SerdeContext +): QueueInfo => { + let contents: any = { + __type: "QueueInfo", + QueuedIngestion: undefined, + WaitingOnIngestion: undefined + }; + if (output.QueuedIngestion !== undefined) { + contents.QueuedIngestion = output.QueuedIngestion; + } + if (output.WaitingOnIngestion !== undefined) { + contents.WaitingOnIngestion = output.WaitingOnIngestion; + } + return contents; +}; + +const deserializeAws_restJson1_1RdsParameters = ( + output: any, + context: __SerdeContext +): RdsParameters => { + let contents: any = { + __type: "RdsParameters", + Database: undefined, + InstanceId: undefined + }; + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.InstanceId !== undefined) { + contents.InstanceId = output.InstanceId; + } + return contents; +}; + +const deserializeAws_restJson1_1RedshiftParameters = ( + output: any, + context: __SerdeContext +): RedshiftParameters => { + let contents: any = { + __type: "RedshiftParameters", + ClusterId: undefined, + Database: undefined, + Host: undefined, + Port: undefined + }; + if (output.ClusterId !== undefined) { + contents.ClusterId = output.ClusterId; + } + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1RelationalTable = ( + output: any, + context: __SerdeContext +): RelationalTable => { + let contents: any = { + __type: "RelationalTable", + DataSourceArn: undefined, + InputColumns: undefined, + Name: undefined, + Schema: undefined + }; + if (output.DataSourceArn !== undefined) { + contents.DataSourceArn = output.DataSourceArn; + } + if (output.InputColumns !== undefined) { + contents.InputColumns = deserializeAws_restJson1_1InputColumnList( + output.InputColumns, + context + ); + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.Schema !== undefined) { + contents.Schema = output.Schema; + } + return contents; +}; + +const deserializeAws_restJson1_1RenameColumnOperation = ( + output: any, + context: __SerdeContext +): RenameColumnOperation => { + let contents: any = { + __type: "RenameColumnOperation", + ColumnName: undefined, + NewColumnName: undefined + }; + if (output.ColumnName !== undefined) { + contents.ColumnName = output.ColumnName; + } + if (output.NewColumnName !== undefined) { + contents.NewColumnName = output.NewColumnName; + } + return contents; +}; + +const deserializeAws_restJson1_1RowInfo = ( + output: any, + context: __SerdeContext +): RowInfo => { + let contents: any = { + __type: "RowInfo", + RowsDropped: undefined, + RowsIngested: undefined + }; + if (output.RowsDropped !== undefined) { + contents.RowsDropped = output.RowsDropped; + } + if (output.RowsIngested !== undefined) { + contents.RowsIngested = output.RowsIngested; + } + return contents; +}; + +const deserializeAws_restJson1_1RowLevelPermissionDataSet = ( + output: any, + context: __SerdeContext +): RowLevelPermissionDataSet => { + let contents: any = { + __type: "RowLevelPermissionDataSet", + Arn: undefined, + PermissionPolicy: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.PermissionPolicy !== undefined) { + contents.PermissionPolicy = output.PermissionPolicy; + } + return contents; +}; + +const deserializeAws_restJson1_1S3Parameters = ( + output: any, + context: __SerdeContext +): S3Parameters => { + let contents: any = { + __type: "S3Parameters", + ManifestFileLocation: undefined + }; + if (output.ManifestFileLocation !== undefined) { + contents.ManifestFileLocation = deserializeAws_restJson1_1ManifestFileLocation( + output.ManifestFileLocation, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1S3Source = ( + output: any, + context: __SerdeContext +): S3Source => { + let contents: any = { + __type: "S3Source", + DataSourceArn: undefined, + InputColumns: undefined, + UploadSettings: undefined + }; + if (output.DataSourceArn !== undefined) { + contents.DataSourceArn = output.DataSourceArn; + } + if (output.InputColumns !== undefined) { + contents.InputColumns = deserializeAws_restJson1_1InputColumnList( + output.InputColumns, + context + ); + } + if (output.UploadSettings !== undefined) { + contents.UploadSettings = deserializeAws_restJson1_1UploadSettings( + output.UploadSettings, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1ServiceNowParameters = ( + output: any, + context: __SerdeContext +): ServiceNowParameters => { + let contents: any = { + __type: "ServiceNowParameters", + SiteBaseUrl: undefined + }; + if (output.SiteBaseUrl !== undefined) { + contents.SiteBaseUrl = output.SiteBaseUrl; + } + return contents; +}; + +const deserializeAws_restJson1_1SnowflakeParameters = ( + output: any, + context: __SerdeContext +): SnowflakeParameters => { + let contents: any = { + __type: "SnowflakeParameters", + Database: undefined, + Host: undefined, + Warehouse: undefined + }; + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Warehouse !== undefined) { + contents.Warehouse = output.Warehouse; + } + return contents; +}; + +const deserializeAws_restJson1_1SparkParameters = ( + output: any, + context: __SerdeContext +): SparkParameters => { + let contents: any = { + __type: "SparkParameters", + Host: undefined, + Port: undefined + }; + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1SqlServerParameters = ( + output: any, + context: __SerdeContext +): SqlServerParameters => { + let contents: any = { + __type: "SqlServerParameters", + Database: undefined, + Host: undefined, + Port: undefined + }; + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1SslProperties = ( + output: any, + context: __SerdeContext +): SslProperties => { + let contents: any = { + __type: "SslProperties", + DisableSsl: undefined + }; + if (output.DisableSsl !== undefined) { + contents.DisableSsl = output.DisableSsl; + } + return contents; +}; + +const deserializeAws_restJson1_1TagColumnOperation = ( + output: any, + context: __SerdeContext +): TagColumnOperation => { + let contents: any = { + __type: "TagColumnOperation", + ColumnName: undefined, + Tags: undefined + }; + if (output.ColumnName !== undefined) { + contents.ColumnName = output.ColumnName; + } + if (output.Tags !== undefined) { + contents.Tags = deserializeAws_restJson1_1ColumnTagList( + output.Tags, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1Template = ( + output: any, + context: __SerdeContext +): Template => { + let contents: any = { + __type: "Template", + Arn: undefined, + CreatedTime: undefined, + LastUpdatedTime: undefined, + Name: undefined, + TemplateId: undefined, + Version: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.LastUpdatedTime !== undefined) { + contents.LastUpdatedTime = new Date( + output.LastUpdatedTime % 1 != 0 + ? Math.round(output.LastUpdatedTime * 1000) + : output.LastUpdatedTime + ); + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.TemplateId !== undefined) { + contents.TemplateId = output.TemplateId; + } + if (output.Version !== undefined) { + contents.Version = deserializeAws_restJson1_1TemplateVersion( + output.Version, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1TemplateAlias = ( + output: any, + context: __SerdeContext +): TemplateAlias => { + let contents: any = { + __type: "TemplateAlias", + AliasName: undefined, + Arn: undefined, + TemplateVersionNumber: undefined + }; + if (output.AliasName !== undefined) { + contents.AliasName = output.AliasName; + } + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.TemplateVersionNumber !== undefined) { + contents.TemplateVersionNumber = output.TemplateVersionNumber; + } + return contents; +}; + +const deserializeAws_restJson1_1TemplateAliasList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1TemplateAlias(entry, context) + ); +}; + +const deserializeAws_restJson1_1TemplateError = ( + output: any, + context: __SerdeContext +): TemplateError => { + let contents: any = { + __type: "TemplateError", + Message: undefined, + Type: undefined + }; + if (output.Message !== undefined) { + contents.Message = output.Message; + } + if (output.Type !== undefined) { + contents.Type = output.Type; + } + return contents; +}; + +const deserializeAws_restJson1_1TemplateErrorList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1TemplateError(entry, context) + ); +}; + +const deserializeAws_restJson1_1TemplateSummary = ( + output: any, + context: __SerdeContext +): TemplateSummary => { + let contents: any = { + __type: "TemplateSummary", + Arn: undefined, + CreatedTime: undefined, + LastUpdatedTime: undefined, + LatestVersionNumber: undefined, + Name: undefined, + TemplateId: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.LastUpdatedTime !== undefined) { + contents.LastUpdatedTime = new Date( + output.LastUpdatedTime % 1 != 0 + ? Math.round(output.LastUpdatedTime * 1000) + : output.LastUpdatedTime + ); + } + if (output.LatestVersionNumber !== undefined) { + contents.LatestVersionNumber = output.LatestVersionNumber; + } + if (output.Name !== undefined) { + contents.Name = output.Name; + } + if (output.TemplateId !== undefined) { + contents.TemplateId = output.TemplateId; + } + return contents; +}; + +const deserializeAws_restJson1_1TemplateSummaryList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1TemplateSummary(entry, context) + ); +}; + +const deserializeAws_restJson1_1TemplateVersion = ( + output: any, + context: __SerdeContext +): TemplateVersion => { + let contents: any = { + __type: "TemplateVersion", + CreatedTime: undefined, + DataSetConfigurations: undefined, + Description: undefined, + Errors: undefined, + SourceEntityArn: undefined, + Status: undefined, + VersionNumber: undefined + }; + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.DataSetConfigurations !== undefined) { + contents.DataSetConfigurations = deserializeAws_restJson1_1DataSetConfigurationList( + output.DataSetConfigurations, + context + ); + } + if (output.Description !== undefined) { + contents.Description = output.Description; + } + if (output.Errors !== undefined) { + contents.Errors = deserializeAws_restJson1_1TemplateErrorList( + output.Errors, + context + ); + } + if (output.SourceEntityArn !== undefined) { + contents.SourceEntityArn = output.SourceEntityArn; + } + if (output.Status !== undefined) { + contents.Status = output.Status; + } + if (output.VersionNumber !== undefined) { + contents.VersionNumber = output.VersionNumber; + } + return contents; +}; + +const deserializeAws_restJson1_1TemplateVersionSummary = ( + output: any, + context: __SerdeContext +): TemplateVersionSummary => { + let contents: any = { + __type: "TemplateVersionSummary", + Arn: undefined, + CreatedTime: undefined, + Description: undefined, + Status: undefined, + VersionNumber: undefined + }; + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.CreatedTime !== undefined) { + contents.CreatedTime = new Date( + output.CreatedTime % 1 != 0 + ? Math.round(output.CreatedTime * 1000) + : output.CreatedTime + ); + } + if (output.Description !== undefined) { + contents.Description = output.Description; + } + if (output.Status !== undefined) { + contents.Status = output.Status; + } + if (output.VersionNumber !== undefined) { + contents.VersionNumber = output.VersionNumber; + } + return contents; +}; + +const deserializeAws_restJson1_1TemplateVersionSummaryList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1TemplateVersionSummary(entry, context) + ); +}; + +const deserializeAws_restJson1_1TeradataParameters = ( + output: any, + context: __SerdeContext +): TeradataParameters => { + let contents: any = { + __type: "TeradataParameters", + Database: undefined, + Host: undefined, + Port: undefined + }; + if (output.Database !== undefined) { + contents.Database = output.Database; + } + if (output.Host !== undefined) { + contents.Host = output.Host; + } + if (output.Port !== undefined) { + contents.Port = output.Port; + } + return contents; +}; + +const deserializeAws_restJson1_1TransformOperation = ( + output: any, + context: __SerdeContext +): TransformOperation => { + let contents: any = { + __type: "TransformOperation", + CastColumnTypeOperation: undefined, + CreateColumnsOperation: undefined, + FilterOperation: undefined, + ProjectOperation: undefined, + RenameColumnOperation: undefined, + TagColumnOperation: undefined + }; + if (output.CastColumnTypeOperation !== undefined) { + contents.CastColumnTypeOperation = deserializeAws_restJson1_1CastColumnTypeOperation( + output.CastColumnTypeOperation, + context + ); + } + if (output.CreateColumnsOperation !== undefined) { + contents.CreateColumnsOperation = deserializeAws_restJson1_1CreateColumnsOperation( + output.CreateColumnsOperation, + context + ); + } + if (output.FilterOperation !== undefined) { + contents.FilterOperation = deserializeAws_restJson1_1FilterOperation( + output.FilterOperation, + context + ); + } + if (output.ProjectOperation !== undefined) { + contents.ProjectOperation = deserializeAws_restJson1_1ProjectOperation( + output.ProjectOperation, + context + ); + } + if (output.RenameColumnOperation !== undefined) { + contents.RenameColumnOperation = deserializeAws_restJson1_1RenameColumnOperation( + output.RenameColumnOperation, + context + ); + } + if (output.TagColumnOperation !== undefined) { + contents.TagColumnOperation = deserializeAws_restJson1_1TagColumnOperation( + output.TagColumnOperation, + context + ); + } + return contents; +}; + +const deserializeAws_restJson1_1TransformOperationList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1TransformOperation(entry, context) + ); +}; + +const deserializeAws_restJson1_1TwitterParameters = ( + output: any, + context: __SerdeContext +): TwitterParameters => { + let contents: any = { + __type: "TwitterParameters", + MaxRows: undefined, + Query: undefined + }; + if (output.MaxRows !== undefined) { + contents.MaxRows = output.MaxRows; + } + if (output.Query !== undefined) { + contents.Query = output.Query; + } + return contents; +}; + +const deserializeAws_restJson1_1UploadSettings = ( + output: any, + context: __SerdeContext +): UploadSettings => { + let contents: any = { + __type: "UploadSettings", + ContainsHeader: undefined, + Delimiter: undefined, + Format: undefined, + StartFromRow: undefined, + TextQualifier: undefined + }; + if (output.ContainsHeader !== undefined) { + contents.ContainsHeader = output.ContainsHeader; + } + if (output.Delimiter !== undefined) { + contents.Delimiter = output.Delimiter; + } + if (output.Format !== undefined) { + contents.Format = output.Format; + } + if (output.StartFromRow !== undefined) { + contents.StartFromRow = output.StartFromRow; + } + if (output.TextQualifier !== undefined) { + contents.TextQualifier = output.TextQualifier; + } + return contents; +}; + +const deserializeAws_restJson1_1User = ( + output: any, + context: __SerdeContext +): User => { + let contents: any = { + __type: "User", + Active: undefined, + Arn: undefined, + Email: undefined, + IdentityType: undefined, + PrincipalId: undefined, + Role: undefined, + UserName: undefined + }; + if (output.Active !== undefined) { + contents.Active = output.Active; + } + if (output.Arn !== undefined) { + contents.Arn = output.Arn; + } + if (output.Email !== undefined) { + contents.Email = output.Email; + } + if (output.IdentityType !== undefined) { + contents.IdentityType = output.IdentityType; + } + if (output.PrincipalId !== undefined) { + contents.PrincipalId = output.PrincipalId; + } + if (output.Role !== undefined) { + contents.Role = output.Role; + } + if (output.UserName !== undefined) { + contents.UserName = output.UserName; + } + return contents; +}; + +const deserializeAws_restJson1_1UserList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1User(entry, context) + ); +}; + +const deserializeAws_restJson1_1VpcConnectionProperties = ( + output: any, + context: __SerdeContext +): VpcConnectionProperties => { + let contents: any = { + __type: "VpcConnectionProperties", + VpcConnectionArn: undefined + }; + if (output.VpcConnectionArn !== undefined) { + contents.VpcConnectionArn = output.VpcConnectionArn; + } + return contents; +}; + +const deserializeAws_restJson1_1ActionList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => entry); +}; + +const deserializeAws_restJson1_1ResourcePermission = ( + output: any, + context: __SerdeContext +): ResourcePermission => { + let contents: any = { + __type: "ResourcePermission", + Actions: undefined, + Principal: undefined + }; + if (output.Actions !== undefined) { + contents.Actions = deserializeAws_restJson1_1ActionList( + output.Actions, + context + ); + } + if (output.Principal !== undefined) { + contents.Principal = output.Principal; + } + return contents; +}; + +const deserializeAws_restJson1_1ResourcePermissionList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1ResourcePermission(entry, context) + ); +}; + +const deserializeAws_restJson1_1Tag = ( + output: any, + context: __SerdeContext +): Tag => { + let contents: any = { + __type: "Tag", + Key: undefined, + Value: undefined + }; + if (output.Key !== undefined) { + contents.Key = output.Key; + } + if (output.Value !== undefined) { + contents.Value = output.Value; + } + return contents; +}; + +const deserializeAws_restJson1_1TagList = ( + output: any, + context: __SerdeContext +): Array => { + return (output || []).map((entry: any) => + deserializeAws_restJson1_1Tag(entry, context) + ); +}; + +const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ + httpStatusCode: output.statusCode, + httpHeaders: output.headers, + requestId: output.headers["x-amzn-requestid"] +}); + +const parseBody = (streamBody: any, context: __SerdeContext): any => { + return context.streamCollector(streamBody).then((body: any) => { + const encoded = context.utf8Encoder(body); + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); +}; diff --git a/clients/client-quicksight/runtimeConfig.browser.ts b/clients/client-quicksight/runtimeConfig.browser.ts new file mode 100644 index 000000000000..813a510ca929 --- /dev/null +++ b/clients/client-quicksight/runtimeConfig.browser.ts @@ -0,0 +1,30 @@ +import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { Sha256 } from "@aws-crypto/sha256-browser"; +import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler"; +import { parseUrl } from "@aws-sdk/url-parser-browser"; +import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; +import { streamCollector } from "@aws-sdk/stream-collector-browser"; +import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; +import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; +import { name, version } from "./package.json"; +import { ClientDefaults } from "./QuickSightClient"; +import { ClientSharedValues } from "./runtimeConfig.shared"; + +export const ClientDefaultValues: Required = { + ...ClientSharedValues, + requestHandler: new FetchHttpHandler(), + sha256: Sha256, + urlParser: parseUrl, + bodyLengthChecker: calculateBodyLength, + streamCollector, + base64Decoder: fromBase64, + base64Encoder: toBase64, + utf8Decoder: fromUtf8, + utf8Encoder: toUtf8, + defaultUserAgent: defaultUserAgent(name, version), + runtime: "browser", + signingName: "quicksight", + credentialDefaultProvider: invalidFunction("Credential is missing") as any, + regionDefaultProvider: invalidFunction("Region is missing") as any +}; diff --git a/clients/client-quicksight/runtimeConfig.shared.ts b/clients/client-quicksight/runtimeConfig.shared.ts new file mode 100644 index 000000000000..237e357a049c --- /dev/null +++ b/clients/client-quicksight/runtimeConfig.shared.ts @@ -0,0 +1,7 @@ +import { defaultRegionInfoProvider } from "./endpoints"; + +export const ClientSharedValues = { + apiVersion: "2018-04-01", + signingName: "quicksight", + regionInfoProvider: defaultRegionInfoProvider +}; diff --git a/clients/client-quicksight/runtimeConfig.ts b/clients/client-quicksight/runtimeConfig.ts new file mode 100644 index 000000000000..a524ca247efe --- /dev/null +++ b/clients/client-quicksight/runtimeConfig.ts @@ -0,0 +1,31 @@ +import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; +import { defaultProvider as regionDefaultProvider } from "@aws-sdk/region-provider"; +import { Hash } from "@aws-sdk/hash-node"; +import { NodeHttpHandler } from "@aws-sdk/node-http-handler"; +import { parseUrl } from "@aws-sdk/url-parser-node"; +import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; +import { streamCollector } from "@aws-sdk/stream-collector-node"; +import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; +import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; +import { name, version } from "./package.json"; +import { ClientDefaults } from "./QuickSightClient"; +import { ClientSharedValues } from "./runtimeConfig.shared"; + +export const ClientDefaultValues: Required = { + ...ClientSharedValues, + requestHandler: new NodeHttpHandler(), + sha256: Hash.bind(null, "sha256"), + urlParser: parseUrl, + bodyLengthChecker: calculateBodyLength, + streamCollector, + base64Decoder: fromBase64, + base64Encoder: toBase64, + utf8Decoder: fromUtf8, + utf8Encoder: toUtf8, + defaultUserAgent: defaultUserAgent(name, version), + runtime: "node", + signingName: "quicksight", + credentialDefaultProvider, + regionDefaultProvider +}; diff --git a/clients/client-quicksight/tsconfig.es.json b/clients/client-quicksight/tsconfig.es.json new file mode 100644 index 000000000000..9add6a7c2445 --- /dev/null +++ b/clients/client-quicksight/tsconfig.es.json @@ -0,0 +1,19 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "target": "es5", + "module": "esnext", + "moduleResolution": "node", + "declaration": false, + "declarationDir": null, + "lib": [ + "dom", + "es5", + "es2015.promise", + "es2015.collection", + "es2015.iterable", + "es2015.symbol.wellknown" + ], + "outDir": "dist/es" + } +} diff --git a/clients/client-quicksight/tsconfig.json b/clients/client-quicksight/tsconfig.json new file mode 100644 index 000000000000..ca2fadc08187 --- /dev/null +++ b/clients/client-quicksight/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "alwaysStrict": true, + "target": "es2017", + "module": "commonjs", + "declaration": true, + "strict": true, + "sourceMap": true, + "downlevelIteration": true, + "importHelpers": true, + "noEmitHelpers": true, + "incremental": true, + "resolveJsonModule": true, + "declarationDir": "./types", + "outDir": "dist/cjs" + }, + "typedocOptions": { + "exclude": "**/node_modules/**", + "excludedNotExported": true, + "excludePrivate": true, + "hideGenerator": true, + "ignoreCompilerErrors": true, + "mode": "file", + "out": "./docs", + "plugin": "@aws-sdk/client-documentation-generator" + } +}