Skip to content

Files

Latest commit

author
awstools
Mar 28, 2025
cf1dd33 · Mar 28, 2025

History

History

client-quicksight

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 28, 2025
Sep 29, 2021
Mar 28, 2025
Aug 5, 2020
Dec 3, 2024
Mar 23, 2023
Mar 28, 2025
Nov 1, 2022
Jan 6, 2025
Jan 6, 2025
Oct 12, 2021

@aws-sdk/client-quicksight

Description

AWS SDK for JavaScript QuickSight Client for Node.js, Browser and React Native.

Amazon QuickSight API Reference

Amazon QuickSight is a fully managed, serverless business intelligence service for the Amazon Web Services 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.

Installing

To install this package, simply type add or install @aws-sdk/client-quicksight using your favorite package manager:

  • npm install @aws-sdk/client-quicksight
  • yarn add @aws-sdk/client-quicksight
  • pnpm add @aws-sdk/client-quicksight

Getting Started

Import

The AWS SDK is modulized by clients and commands. To send a request, you only need to import the QuickSightClient and the commands you need, for example ListBrandsCommand:

// ES5 example
const { QuickSightClient, ListBrandsCommand } = require("@aws-sdk/client-quicksight");
// ES6+ example
import { QuickSightClient, ListBrandsCommand } from "@aws-sdk/client-quicksight";

Usage

To send a request, you:

  • Initiate client with configuration (e.g. credentials, region).
  • Initiate command with input parameters.
  • Call send operation on client with command object as input.
  • If you are using a custom http handler, you may call destroy() to close open connections.
// a client can be shared by different commands.
const client = new QuickSightClient({ region: "REGION" });

const params = {
  /** input parameters */
};
const command = new ListBrandsCommand(params);

Async/await

We recommend using await operator to wait for the promise returned by send operation as follows:

// async/await.
try {
  const data = await client.send(command);
  // process data.
} catch (error) {
  // error handling.
} finally {
  // finally.
}

Async-await is clean, concise, intuitive, easy to debug and has better error handling as compared to using Promise chains or callbacks.

Promises

You can also use Promise chaining to execute send operation.

client.send(command).then(
  (data) => {
    // process data.
  },
  (error) => {
    // error handling.
  }
);

Promises can also be called using .catch() and .finally() as follows:

client
  .send(command)
  .then((data) => {
    // process data.
  })
  .catch((error) => {
    // error handling.
  })
  .finally(() => {
    // finally.
  });

Callbacks

We do not recommend using callbacks because of callback hell, but they are supported by the send operation.

// callbacks.
client.send(command, (err, data) => {
  // process err and data.
});

v2 compatible style

The client can also send requests using v2 compatible style. However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post on modular packages in AWS SDK for JavaScript

import * as AWS from "@aws-sdk/client-quicksight";
const client = new AWS.QuickSight({ region: "REGION" });

// async/await.
try {
  const data = await client.listBrands(params);
  // process data.
} catch (error) {
  // error handling.
}

// Promises.
client
  .listBrands(params)
  .then((data) => {
    // process data.
  })
  .catch((error) => {
    // error handling.
  });

// callbacks.
client.listBrands(params, (err, data) => {
  // process err and data.
});

Troubleshooting

When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).

try {
  const data = await client.send(command);
  // process data.
} catch (error) {
  const { requestId, cfId, extendedRequestId } = error.$metadata;
  console.log({ requestId, cfId, extendedRequestId });
  /**
   * The keys within exceptions are also parsed.
   * You can access them by specifying exception names:
   * if (error.name === 'SomeServiceException') {
   *     const value = error.specialKeyInException;
   * }
   */
}

Getting Help

Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.

To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.

Contributing

This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-quicksight package is updated. To contribute to client you can check our generate clients scripts.

License

This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.

Client Commands (Operations List)

BatchCreateTopicReviewedAnswer

Command API Reference / Input / Output

BatchDeleteTopicReviewedAnswer

Command API Reference / Input / Output

CancelIngestion

Command API Reference / Input / Output

CreateAccountCustomization

Command API Reference / Input / Output

CreateAccountSubscription

Command API Reference / Input / Output

CreateAnalysis

Command API Reference / Input / Output

CreateBrand

Command API Reference / Input / Output

CreateCustomPermissions

Command API Reference / Input / Output

CreateDashboard

Command API Reference / Input / Output

CreateDataSet

Command API Reference / Input / Output

CreateDataSource

Command API Reference / Input / Output

CreateFolder

Command API Reference / Input / Output

CreateFolderMembership

Command API Reference / Input / Output

CreateGroup

Command API Reference / Input / Output

CreateGroupMembership

Command API Reference / Input / Output

CreateIAMPolicyAssignment

Command API Reference / Input / Output

CreateIngestion

Command API Reference / Input / Output

CreateNamespace

Command API Reference / Input / Output

CreateRefreshSchedule

Command API Reference / Input / Output

CreateRoleMembership

Command API Reference / Input / Output

CreateTemplate

Command API Reference / Input / Output

CreateTemplateAlias

Command API Reference / Input / Output

CreateTheme

Command API Reference / Input / Output

CreateThemeAlias

Command API Reference / Input / Output

CreateTopic

Command API Reference / Input / Output

CreateTopicRefreshSchedule

Command API Reference / Input / Output

CreateVPCConnection

Command API Reference / Input / Output

DeleteAccountCustomization

Command API Reference / Input / Output

DeleteAccountSubscription

Command API Reference / Input / Output

DeleteAnalysis

Command API Reference / Input / Output

DeleteBrand

Command API Reference / Input / Output

DeleteBrandAssignment

Command API Reference / Input / Output

DeleteCustomPermissions

Command API Reference / Input / Output

DeleteDashboard

Command API Reference / Input / Output

DeleteDataSet

Command API Reference / Input / Output

DeleteDataSetRefreshProperties

Command API Reference / Input / Output

DeleteDataSource

Command API Reference / Input / Output

DeleteDefaultQBusinessApplication

Command API Reference / Input / Output

DeleteFolder

Command API Reference / Input / Output

DeleteFolderMembership

Command API Reference / Input / Output

DeleteGroup

Command API Reference / Input / Output

DeleteGroupMembership

Command API Reference / Input / Output

DeleteIAMPolicyAssignment

Command API Reference / Input / Output

DeleteIdentityPropagationConfig

Command API Reference / Input / Output

DeleteNamespace

Command API Reference / Input / Output

DeleteRefreshSchedule

Command API Reference / Input / Output

DeleteRoleCustomPermission

Command API Reference / Input / Output

DeleteRoleMembership

Command API Reference / Input / Output

DeleteTemplate

Command API Reference / Input / Output

DeleteTemplateAlias

Command API Reference / Input / Output

DeleteTheme

Command API Reference / Input / Output

DeleteThemeAlias

Command API Reference / Input / Output

DeleteTopic

Command API Reference / Input / Output

DeleteTopicRefreshSchedule

Command API Reference / Input / Output

DeleteUser

Command API Reference / Input / Output

DeleteUserByPrincipalId

Command API Reference / Input / Output

DeleteUserCustomPermission

Command API Reference / Input / Output

DeleteVPCConnection

Command API Reference / Input / Output

DescribeAccountCustomization

Command API Reference / Input / Output

DescribeAccountSettings

Command API Reference / Input / Output

DescribeAccountSubscription

Command API Reference / Input / Output

DescribeAnalysis

Command API Reference / Input / Output

DescribeAnalysisDefinition

Command API Reference / Input / Output

DescribeAnalysisPermissions

Command API Reference / Input / Output

DescribeAssetBundleExportJob

Command API Reference / Input / Output

DescribeAssetBundleImportJob

Command API Reference / Input / Output

DescribeBrand

Command API Reference / Input / Output

DescribeBrandAssignment

Command API Reference / Input / Output

DescribeBrandPublishedVersion

Command API Reference / Input / Output

DescribeCustomPermissions

Command API Reference / Input / Output

DescribeDashboard

Command API Reference / Input / Output

DescribeDashboardDefinition

Command API Reference / Input / Output

DescribeDashboardPermissions

Command API Reference / Input / Output

DescribeDashboardSnapshotJob

Command API Reference / Input / Output

DescribeDashboardSnapshotJobResult

Command API Reference / Input / Output

DescribeDashboardsQAConfiguration

Command API Reference / Input / Output

DescribeDataSet

Command API Reference / Input / Output

DescribeDataSetPermissions

Command API Reference / Input / Output

DescribeDataSetRefreshProperties

Command API Reference / Input / Output

DescribeDataSource

Command API Reference / Input / Output

DescribeDataSourcePermissions

Command API Reference / Input / Output

DescribeDefaultQBusinessApplication

Command API Reference / Input / Output

DescribeFolder

Command API Reference / Input / Output

DescribeFolderPermissions

Command API Reference / Input / Output

DescribeFolderResolvedPermissions

Command API Reference / Input / Output

DescribeGroup

Command API Reference / Input / Output

DescribeGroupMembership

Command API Reference / Input / Output

DescribeIAMPolicyAssignment

Command API Reference / Input / Output

DescribeIngestion

Command API Reference / Input / Output

DescribeIpRestriction

Command API Reference / Input / Output

DescribeKeyRegistration

Command API Reference / Input / Output

DescribeNamespace

Command API Reference / Input / Output

DescribeQPersonalizationConfiguration

Command API Reference / Input / Output

DescribeQuickSightQSearchConfiguration

Command API Reference / Input / Output

DescribeRefreshSchedule

Command API Reference / Input / Output

DescribeRoleCustomPermission

Command API Reference / Input / Output

DescribeTemplate

Command API Reference / Input / Output

DescribeTemplateAlias

Command API Reference / Input / Output

DescribeTemplateDefinition

Command API Reference / Input / Output

DescribeTemplatePermissions

Command API Reference / Input / Output

DescribeTheme

Command API Reference / Input / Output

DescribeThemeAlias

Command API Reference / Input / Output

DescribeThemePermissions

Command API Reference / Input / Output

DescribeTopic

Command API Reference / Input / Output

DescribeTopicPermissions

Command API Reference / Input / Output

DescribeTopicRefresh

Command API Reference / Input / Output

DescribeTopicRefreshSchedule

Command API Reference / Input / Output

DescribeUser

Command API Reference / Input / Output

DescribeVPCConnection

Command API Reference / Input / Output

GenerateEmbedUrlForAnonymousUser

Command API Reference / Input / Output

GenerateEmbedUrlForRegisteredUser

Command API Reference / Input / Output

GenerateEmbedUrlForRegisteredUserWithIdentity

Command API Reference / Input / Output

GetDashboardEmbedUrl

Command API Reference / Input / Output

GetSessionEmbedUrl

Command API Reference / Input / Output

ListAnalyses

Command API Reference / Input / Output

ListAssetBundleExportJobs

Command API Reference / Input / Output

ListAssetBundleImportJobs

Command API Reference / Input / Output

ListBrands

Command API Reference / Input / Output

ListCustomPermissions

Command API Reference / Input / Output

ListDashboards

Command API Reference / Input / Output

ListDashboardVersions

Command API Reference / Input / Output

ListDataSets

Command API Reference / Input / Output

ListDataSources

Command API Reference / Input / Output

ListFolderMembers

Command API Reference / Input / Output

ListFolders

Command API Reference / Input / Output

ListFoldersForResource

Command API Reference / Input / Output

ListGroupMemberships

Command API Reference / Input / Output

ListGroups

Command API Reference / Input / Output

ListIAMPolicyAssignments

Command API Reference / Input / Output

ListIAMPolicyAssignmentsForUser

Command API Reference / Input / Output

ListIdentityPropagationConfigs

Command API Reference / Input / Output

ListIngestions

Command API Reference / Input / Output

ListNamespaces

Command API Reference / Input / Output

ListRefreshSchedules

Command API Reference / Input / Output

ListRoleMemberships

Command API Reference / Input / Output

ListTagsForResource

Command API Reference / Input / Output

ListTemplateAliases

Command API Reference / Input / Output

ListTemplates

Command API Reference / Input / Output

ListTemplateVersions

Command API Reference / Input / Output

ListThemeAliases

Command API Reference / Input / Output

ListThemes

Command API Reference / Input / Output

ListThemeVersions

Command API Reference / Input / Output

ListTopicRefreshSchedules

Command API Reference / Input / Output

ListTopicReviewedAnswers

Command API Reference / Input / Output

ListTopics

Command API Reference / Input / Output

ListUserGroups

Command API Reference / Input / Output

ListUsers

Command API Reference / Input / Output

ListVPCConnections

Command API Reference / Input / Output

PredictQAResults

Command API Reference / Input / Output

PutDataSetRefreshProperties

Command API Reference / Input / Output

RegisterUser

Command API Reference / Input / Output

RestoreAnalysis

Command API Reference / Input / Output

SearchAnalyses

Command API Reference / Input / Output

SearchDashboards

Command API Reference / Input / Output

SearchDataSets

Command API Reference / Input / Output

SearchDataSources

Command API Reference / Input / Output

SearchFolders

Command API Reference / Input / Output

SearchGroups

Command API Reference / Input / Output

SearchTopics

Command API Reference / Input / Output

StartAssetBundleExportJob

Command API Reference / Input / Output

StartAssetBundleImportJob

Command API Reference / Input / Output

StartDashboardSnapshotJob

Command API Reference / Input / Output

StartDashboardSnapshotJobSchedule

Command API Reference / Input / Output

TagResource

Command API Reference / Input / Output

UntagResource

Command API Reference / Input / Output

UpdateAccountCustomization

Command API Reference / Input / Output

UpdateAccountSettings

Command API Reference / Input / Output

UpdateAnalysis

Command API Reference / Input / Output

UpdateAnalysisPermissions

Command API Reference / Input / Output

UpdateApplicationWithTokenExchangeGrant

Command API Reference / Input / Output

UpdateBrand

Command API Reference / Input / Output

UpdateBrandAssignment

Command API Reference / Input / Output

UpdateBrandPublishedVersion

Command API Reference / Input / Output

UpdateCustomPermissions

Command API Reference / Input / Output

UpdateDashboard

Command API Reference / Input / Output

UpdateDashboardLinks

Command API Reference / Input / Output

UpdateDashboardPermissions

Command API Reference / Input / Output

UpdateDashboardPublishedVersion

Command API Reference / Input / Output

UpdateDashboardsQAConfiguration

Command API Reference / Input / Output

UpdateDataSet

Command API Reference / Input / Output

UpdateDataSetPermissions

Command API Reference / Input / Output

UpdateDataSource

Command API Reference / Input / Output

UpdateDataSourcePermissions

Command API Reference / Input / Output

UpdateDefaultQBusinessApplication

Command API Reference / Input / Output

UpdateFolder

Command API Reference / Input / Output

UpdateFolderPermissions

Command API Reference / Input / Output

UpdateGroup

Command API Reference / Input / Output

UpdateIAMPolicyAssignment

Command API Reference / Input / Output

UpdateIdentityPropagationConfig

Command API Reference / Input / Output

UpdateIpRestriction

Command API Reference / Input / Output

UpdateKeyRegistration

Command API Reference / Input / Output

UpdatePublicSharingSettings

Command API Reference / Input / Output

UpdateQPersonalizationConfiguration

Command API Reference / Input / Output

UpdateQuickSightQSearchConfiguration

Command API Reference / Input / Output

UpdateRefreshSchedule

Command API Reference / Input / Output

UpdateRoleCustomPermission

Command API Reference / Input / Output

UpdateSPICECapacityConfiguration

Command API Reference / Input / Output

UpdateTemplate

Command API Reference / Input / Output

UpdateTemplateAlias

Command API Reference / Input / Output

UpdateTemplatePermissions

Command API Reference / Input / Output

UpdateTheme

Command API Reference / Input / Output

UpdateThemeAlias

Command API Reference / Input / Output

UpdateThemePermissions

Command API Reference / Input / Output

UpdateTopic

Command API Reference / Input / Output

UpdateTopicPermissions

Command API Reference / Input / Output

UpdateTopicRefreshSchedule

Command API Reference / Input / Output

UpdateUser

Command API Reference / Input / Output

UpdateUserCustomPermission

Command API Reference / Input / Output

UpdateVPCConnection

Command API Reference / Input / Output