aws-cdk-lib.aws_quicksight.CfnDataSource.CredentialPairProperty

interface CredentialPairProperty

LanguageType name
.NETAmazon.CDK.AWS.QuickSight.CfnDataSource.CredentialPairProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsquicksight#CfnDataSource_CredentialPairProperty
Javasoftware.amazon.awscdk.services.quicksight.CfnDataSource.CredentialPairProperty
Pythonaws_cdk.aws_quicksight.CfnDataSource.CredentialPairProperty
TypeScript aws-cdk-lib » aws_quicksight » CfnDataSource » CredentialPairProperty

The combination of user name and password that are used as credentials.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const credentialPairProperty: quicksight.CfnDataSource.CredentialPairProperty = {
  password: 'password',
  username: 'username',

  // the properties below are optional
  alternateDataSourceParameters: [{
    amazonElasticsearchParameters: {
      domain: 'domain',
    },
    amazonOpenSearchParameters: {
      domain: 'domain',
    },
    athenaParameters: {
      roleArn: 'roleArn',
      workGroup: 'workGroup',
    },
    auroraParameters: {
      database: 'database',
      host: 'host',
      port: 123,
    },
    auroraPostgreSqlParameters: {
      database: 'database',
      host: 'host',
      port: 123,
    },
    databricksParameters: {
      host: 'host',
      port: 123,
      sqlEndpointPath: 'sqlEndpointPath',
    },
    mariaDbParameters: {
      database: 'database',
      host: 'host',
      port: 123,
    },
    mySqlParameters: {
      database: 'database',
      host: 'host',
      port: 123,
    },
    oracleParameters: {
      database: 'database',
      host: 'host',
      port: 123,
    },
    postgreSqlParameters: {
      database: 'database',
      host: 'host',
      port: 123,
    },
    prestoParameters: {
      catalog: 'catalog',
      host: 'host',
      port: 123,
    },
    rdsParameters: {
      database: 'database',
      instanceId: 'instanceId',
    },
    redshiftParameters: {
      database: 'database',

      // the properties below are optional
      clusterId: 'clusterId',
      host: 'host',
      port: 123,
    },
    s3Parameters: {
      manifestFileLocation: {
        bucket: 'bucket',
        key: 'key',
      },

      // the properties below are optional
      roleArn: 'roleArn',
    },
    snowflakeParameters: {
      database: 'database',
      host: 'host',
      warehouse: 'warehouse',
    },
    sparkParameters: {
      host: 'host',
      port: 123,
    },
    sqlServerParameters: {
      database: 'database',
      host: 'host',
      port: 123,
    },
    teradataParameters: {
      database: 'database',
      host: 'host',
      port: 123,
    },
  }],
};

Properties

NameTypeDescription
passwordstringPassword.
usernamestringUser name.
alternateDataSourceParameters?IResolvable | IResolvable | DataSourceParametersProperty[]A set of alternate data source parameters that you want to share for these credentials.

password

Type: string

Password.


username

Type: string

User name.


alternateDataSourceParameters?

Type: IResolvable | IResolvable | DataSourceParametersProperty[] (optional)

A set of alternate data source parameters that you want to share for these credentials.

The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the DataSourceParameters structure that's in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials is automatically allowed.