Skip to content

Commit

Permalink
feat(client-quicksight): Add Client Credentials based OAuth support f…
Browse files Browse the repository at this point in the history
…or Snowflake and Starburst
  • Loading branch information
awstools committed Nov 7, 2024
1 parent 188d601 commit 3d8d0bb
Show file tree
Hide file tree
Showing 13 changed files with 552 additions and 149 deletions.
44 changes: 41 additions & 3 deletions clients/client-quicksight/src/commands/CreateDataSourceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
* Host: "STRING_VALUE", // required
* Database: "STRING_VALUE", // required
* Warehouse: "STRING_VALUE", // required
* AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* DatabaseAccessControlRole: "STRING_VALUE",
* OAuthParameters: { // OAuthParameters
* TokenProviderUrl: "STRING_VALUE", // required
* OAuthScope: "STRING_VALUE",
* IdentityProviderVpcConnectionProperties: { // VpcConnectionProperties
* VpcConnectionArn: "STRING_VALUE", // required
* },
* IdentityProviderResourceUri: "STRING_VALUE",
* },
* },
* SparkParameters: { // SparkParameters
* Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -164,6 +174,16 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
* Port: Number("int"), // required
* Catalog: "STRING_VALUE", // required
* ProductType: "GALAXY" || "ENTERPRISE",
* DatabaseAccessControlRole: "STRING_VALUE",
* AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* OAuthParameters: {
* TokenProviderUrl: "STRING_VALUE", // required
* OAuthScope: "STRING_VALUE",
* IdentityProviderVpcConnectionProperties: {
* VpcConnectionArn: "STRING_VALUE", // required
* },
* IdentityProviderResourceUri: "STRING_VALUE",
* },
* },
* TrinoParameters: { // TrinoParameters
* Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -264,6 +284,16 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
* Host: "STRING_VALUE", // required
* Database: "STRING_VALUE", // required
* Warehouse: "STRING_VALUE", // required
* AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* DatabaseAccessControlRole: "STRING_VALUE",
* OAuthParameters: {
* TokenProviderUrl: "STRING_VALUE", // required
* OAuthScope: "STRING_VALUE",
* IdentityProviderVpcConnectionProperties: {
* VpcConnectionArn: "STRING_VALUE", // required
* },
* IdentityProviderResourceUri: "STRING_VALUE",
* },
* },
* SparkParameters: {
* Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -300,6 +330,16 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
* Port: Number("int"), // required
* Catalog: "STRING_VALUE", // required
* ProductType: "GALAXY" || "ENTERPRISE",
* DatabaseAccessControlRole: "STRING_VALUE",
* AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* OAuthParameters: {
* TokenProviderUrl: "STRING_VALUE", // required
* OAuthScope: "STRING_VALUE",
* IdentityProviderVpcConnectionProperties: {
* VpcConnectionArn: "STRING_VALUE", // required
* },
* IdentityProviderResourceUri: "STRING_VALUE",
* },
* },
* TrinoParameters: {
* Host: "STRING_VALUE", // required
Expand All @@ -324,9 +364,7 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
* ],
* },
* ],
* VpcConnectionProperties: { // VpcConnectionProperties
* VpcConnectionArn: "STRING_VALUE", // required
* },
* VpcConnectionProperties: "<VpcConnectionProperties>",
* SslProperties: { // SslProperties
* DisableSsl: true || false,
* },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ export interface DescribeAssetBundleImportJobCommandOutput
* // Host: "STRING_VALUE", // required
* // Database: "STRING_VALUE", // required
* // Warehouse: "STRING_VALUE", // required
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // OAuthParameters: { // OAuthParameters
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: { // VpcConnectionProperties
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // SparkParameters: { // SparkParameters
* // Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -226,6 +236,16 @@ export interface DescribeAssetBundleImportJobCommandOutput
* // Port: Number("int"), // required
* // Catalog: "STRING_VALUE", // required
* // ProductType: "GALAXY" || "ENTERPRISE",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // OAuthParameters: {
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: {
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // TrinoParameters: { // TrinoParameters
* // Host: "STRING_VALUE", // required
Expand All @@ -237,7 +257,7 @@ export interface DescribeAssetBundleImportJobCommandOutput
* // DataSetRegion: "STRING_VALUE",
* // },
* // },
* // VpcConnectionProperties: { // VpcConnectionProperties
* // VpcConnectionProperties: {
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // SslProperties: { // SslProperties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ export interface DescribeDataSourceCommandOutput extends DescribeDataSourceRespo
* // Host: "STRING_VALUE", // required
* // Database: "STRING_VALUE", // required
* // Warehouse: "STRING_VALUE", // required
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // OAuthParameters: { // OAuthParameters
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: { // VpcConnectionProperties
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // SparkParameters: { // SparkParameters
* // Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -170,6 +180,16 @@ export interface DescribeDataSourceCommandOutput extends DescribeDataSourceRespo
* // Port: Number("int"), // required
* // Catalog: "STRING_VALUE", // required
* // ProductType: "GALAXY" || "ENTERPRISE",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // OAuthParameters: {
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: {
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // TrinoParameters: { // TrinoParameters
* // Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -266,6 +286,16 @@ export interface DescribeDataSourceCommandOutput extends DescribeDataSourceRespo
* // Host: "STRING_VALUE", // required
* // Database: "STRING_VALUE", // required
* // Warehouse: "STRING_VALUE", // required
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // OAuthParameters: {
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: {
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // SparkParameters: {
* // Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -302,6 +332,16 @@ export interface DescribeDataSourceCommandOutput extends DescribeDataSourceRespo
* // Port: Number("int"), // required
* // Catalog: "STRING_VALUE", // required
* // ProductType: "GALAXY" || "ENTERPRISE",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // OAuthParameters: {
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: {
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // TrinoParameters: {
* // Host: "STRING_VALUE", // required
Expand All @@ -314,9 +354,7 @@ export interface DescribeDataSourceCommandOutput extends DescribeDataSourceRespo
* // },
* // },
* // ],
* // VpcConnectionProperties: { // VpcConnectionProperties
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // VpcConnectionProperties: "<VpcConnectionProperties>",
* // SslProperties: { // SslProperties
* // DisableSsl: true || false,
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeTopicPermissionsRequest, DescribeTopicPermissionsResponse } from "../models/models_3";
import { DescribeTopicPermissionsRequest } from "../models/models_3";
import { DescribeTopicPermissionsResponse } from "../models/models_4";
import { de_DescribeTopicPermissionsCommand, se_DescribeTopicPermissionsCommand } from "../protocols/Aws_restJson1";
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { DescribeTopicRefreshRequest } from "../models/models_3";
import { DescribeTopicRefreshResponse } from "../models/models_4";
import { DescribeTopicRefreshRequest, DescribeTopicRefreshResponse } from "../models/models_4";
import { de_DescribeTopicRefreshCommand, se_DescribeTopicRefreshCommand } from "../protocols/Aws_restJson1";
import { QuickSightClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QuickSightClient";

Expand Down
44 changes: 41 additions & 3 deletions clients/client-quicksight/src/commands/ListDataSourcesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ export interface ListDataSourcesCommandOutput extends ListDataSourcesResponse, _
* // Host: "STRING_VALUE", // required
* // Database: "STRING_VALUE", // required
* // Warehouse: "STRING_VALUE", // required
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // OAuthParameters: { // OAuthParameters
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: { // VpcConnectionProperties
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // SparkParameters: { // SparkParameters
* // Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -172,6 +182,16 @@ export interface ListDataSourcesCommandOutput extends ListDataSourcesResponse, _
* // Port: Number("int"), // required
* // Catalog: "STRING_VALUE", // required
* // ProductType: "GALAXY" || "ENTERPRISE",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // OAuthParameters: {
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: {
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // TrinoParameters: { // TrinoParameters
* // Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -268,6 +288,16 @@ export interface ListDataSourcesCommandOutput extends ListDataSourcesResponse, _
* // Host: "STRING_VALUE", // required
* // Database: "STRING_VALUE", // required
* // Warehouse: "STRING_VALUE", // required
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // OAuthParameters: {
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: {
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // SparkParameters: {
* // Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -304,6 +334,16 @@ export interface ListDataSourcesCommandOutput extends ListDataSourcesResponse, _
* // Port: Number("int"), // required
* // Catalog: "STRING_VALUE", // required
* // ProductType: "GALAXY" || "ENTERPRISE",
* // DatabaseAccessControlRole: "STRING_VALUE",
* // AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* // OAuthParameters: {
* // TokenProviderUrl: "STRING_VALUE", // required
* // OAuthScope: "STRING_VALUE",
* // IdentityProviderVpcConnectionProperties: {
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // IdentityProviderResourceUri: "STRING_VALUE",
* // },
* // },
* // TrinoParameters: {
* // Host: "STRING_VALUE", // required
Expand All @@ -316,9 +356,7 @@ export interface ListDataSourcesCommandOutput extends ListDataSourcesResponse, _
* // },
* // },
* // ],
* // VpcConnectionProperties: { // VpcConnectionProperties
* // VpcConnectionArn: "STRING_VALUE", // required
* // },
* // VpcConnectionProperties: "<VpcConnectionProperties>",
* // SslProperties: { // SslProperties
* // DisableSsl: true || false,
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@ export interface StartAssetBundleImportJobCommandOutput extends StartAssetBundle
* Host: "STRING_VALUE", // required
* Database: "STRING_VALUE", // required
* Warehouse: "STRING_VALUE", // required
* AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* DatabaseAccessControlRole: "STRING_VALUE",
* OAuthParameters: { // OAuthParameters
* TokenProviderUrl: "STRING_VALUE", // required
* OAuthScope: "STRING_VALUE",
* IdentityProviderVpcConnectionProperties: { // VpcConnectionProperties
* VpcConnectionArn: "STRING_VALUE", // required
* },
* IdentityProviderResourceUri: "STRING_VALUE",
* },
* },
* SparkParameters: { // SparkParameters
* Host: "STRING_VALUE", // required
Expand Down Expand Up @@ -199,6 +209,16 @@ export interface StartAssetBundleImportJobCommandOutput extends StartAssetBundle
* Port: Number("int"), // required
* Catalog: "STRING_VALUE", // required
* ProductType: "GALAXY" || "ENTERPRISE",
* DatabaseAccessControlRole: "STRING_VALUE",
* AuthenticationType: "PASSWORD" || "TOKEN" || "X509",
* OAuthParameters: {
* TokenProviderUrl: "STRING_VALUE", // required
* OAuthScope: "STRING_VALUE",
* IdentityProviderVpcConnectionProperties: {
* VpcConnectionArn: "STRING_VALUE", // required
* },
* IdentityProviderResourceUri: "STRING_VALUE",
* },
* },
* TrinoParameters: { // TrinoParameters
* Host: "STRING_VALUE", // required
Expand All @@ -210,7 +230,7 @@ export interface StartAssetBundleImportJobCommandOutput extends StartAssetBundle
* DataSetRegion: "STRING_VALUE",
* },
* },
* VpcConnectionProperties: { // VpcConnectionProperties
* VpcConnectionProperties: {
* VpcConnectionArn: "STRING_VALUE", // required
* },
* SslProperties: { // SslProperties
Expand Down
Loading

0 comments on commit 3d8d0bb

Please sign in to comment.