# DataSourceCredentialsProperty

Data source credentials.

This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

TypeScript:

```ts
// 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 dataSourceCredentialsProperty: quicksight.CfnDataSource.DataSourceCredentialsProperty = {
  copySourceArn: 'copySourceArn',
  credentialPair: {
    password: 'password',
    username: 'username',

    // the properties below are optional
    alternateDataSourceParameters: [{
      amazonElasticsearchParameters: {
        domain: 'domain',
      },
      amazonOpenSearchParameters: {
        domain: 'domain',
      },
      athenaParameters: {
        consumerAccountRoleArn: 'consumerAccountRoleArn',
        identityCenterConfiguration: {
          enableIdentityPropagation: false,
        },
        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',

        // the properties below are optional
        authenticationType: 'authenticationType',
        oAuthParameters: {
          tokenProviderUrl: 'tokenProviderUrl',

          // the properties below are optional
          identityProviderResourceUri: 'identityProviderResourceUri',
          identityProviderVpcConnectionProperties: {
            vpcConnectionArn: 'vpcConnectionArn',
          },
          oAuthScope: 'oAuthScope',
        },
      },
      mariaDbParameters: {
        database: 'database',
        host: 'host',
        port: 123,
      },
      mySqlParameters: {
        database: 'database',
        host: 'host',
        port: 123,
      },
      oracleParameters: {
        database: 'database',
        host: 'host',
        port: 123,

        // the properties below are optional
        useServiceName: false,
      },
      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',
        iamParameters: {
          roleArn: 'roleArn',

          // the properties below are optional
          autoCreateDatabaseUser: false,
          databaseGroups: ['databaseGroups'],
          databaseUser: 'databaseUser',
        },
        identityCenterConfiguration: {
          enableIdentityPropagation: false,
        },
        port: 123,
      },
      s3Parameters: {
        manifestFileLocation: {
          bucket: 'bucket',
          key: 'key',
        },

        // the properties below are optional
        roleArn: 'roleArn',
      },
      s3TablesParameters: {
        tableBucketArn: 'tableBucketArn',
      },
      snowflakeParameters: {
        database: 'database',
        host: 'host',
        warehouse: 'warehouse',

        // the properties below are optional
        authenticationType: 'authenticationType',
        databaseAccessControlRole: 'databaseAccessControlRole',
        oAuthParameters: {
          tokenProviderUrl: 'tokenProviderUrl',

          // the properties below are optional
          identityProviderResourceUri: 'identityProviderResourceUri',
          identityProviderVpcConnectionProperties: {
            vpcConnectionArn: 'vpcConnectionArn',
          },
          oAuthScope: 'oAuthScope',
        },
      },
      sparkParameters: {
        host: 'host',
        port: 123,
      },
      sqlServerParameters: {
        database: 'database',
        host: 'host',
        port: 123,
      },
      starburstParameters: {
        catalog: 'catalog',
        host: 'host',
        port: 123,

        // the properties below are optional
        authenticationType: 'authenticationType',
        databaseAccessControlRole: 'databaseAccessControlRole',
        oAuthParameters: {
          tokenProviderUrl: 'tokenProviderUrl',

          // the properties below are optional
          identityProviderResourceUri: 'identityProviderResourceUri',
          identityProviderVpcConnectionProperties: {
            vpcConnectionArn: 'vpcConnectionArn',
          },
          oAuthScope: 'oAuthScope',
        },
        productType: 'productType',
      },
      teradataParameters: {
        database: 'database',
        host: 'host',
        port: 123,
      },
      trinoParameters: {
        catalog: 'catalog',
        host: 'host',
        port: 123,
      },
    }],
  },
  keyPairCredentials: {
    keyPairUsername: 'keyPairUsername',
    privateKey: 'privateKey',

    // the properties below are optional
    privateKeyPassphrase: 'privateKeyPassphrase',
  },
  oAuthClientCredentials: {
    clientId: 'clientId',
    clientSecret: 'clientSecret',
    username: 'username',
  },
  secretArn: 'secretArn',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

data_source_credentials_property = quicksight.CfnDataSource.DataSourceCredentialsProperty(
    copy_source_arn="copySourceArn",
    credential_pair=quicksight.CfnDataSource.CredentialPairProperty(
        password="password",
        username="username",

        # the properties below are optional
        alternate_data_source_parameters=[quicksight.CfnDataSource.DataSourceParametersProperty(
            amazon_elasticsearch_parameters=quicksight.CfnDataSource.AmazonElasticsearchParametersProperty(
                domain="domain"
            ),
            amazon_open_search_parameters=quicksight.CfnDataSource.AmazonOpenSearchParametersProperty(
                domain="domain"
            ),
            athena_parameters=quicksight.CfnDataSource.AthenaParametersProperty(
                consumer_account_role_arn="consumerAccountRoleArn",
                identity_center_configuration=quicksight.CfnDataSource.IdentityCenterConfigurationProperty(
                    enable_identity_propagation=False
                ),
                role_arn="roleArn",
                work_group="workGroup"
            ),
            aurora_parameters=quicksight.CfnDataSource.AuroraParametersProperty(
                database="database",
                host="host",
                port=123
            ),
            aurora_postgre_sql_parameters=quicksight.CfnDataSource.AuroraPostgreSqlParametersProperty(
                database="database",
                host="host",
                port=123
            ),
            databricks_parameters=quicksight.CfnDataSource.DatabricksParametersProperty(
                host="host",
                port=123,
                sql_endpoint_path="sqlEndpointPath",

                # the properties below are optional
                authentication_type="authenticationType",
                o_auth_parameters=quicksight.CfnDataSource.OAuthParametersProperty(
                    token_provider_url="tokenProviderUrl",

                    # the properties below are optional
                    identity_provider_resource_uri="identityProviderResourceUri",
                    identity_provider_vpc_connection_properties=quicksight.CfnDataSource.VpcConnectionPropertiesProperty(
                        vpc_connection_arn="vpcConnectionArn"
                    ),
                    o_auth_scope="oAuthScope"
                )
            ),
            maria_db_parameters=quicksight.CfnDataSource.MariaDbParametersProperty(
                database="database",
                host="host",
                port=123
            ),
            my_sql_parameters=quicksight.CfnDataSource.MySqlParametersProperty(
                database="database",
                host="host",
                port=123
            ),
            oracle_parameters=quicksight.CfnDataSource.OracleParametersProperty(
                database="database",
                host="host",
                port=123,

                # the properties below are optional
                use_service_name=False
            ),
            postgre_sql_parameters=quicksight.CfnDataSource.PostgreSqlParametersProperty(
                database="database",
                host="host",
                port=123
            ),
            presto_parameters=quicksight.CfnDataSource.PrestoParametersProperty(
                catalog="catalog",
                host="host",
                port=123
            ),
            rds_parameters=quicksight.CfnDataSource.RdsParametersProperty(
                database="database",
                instance_id="instanceId"
            ),
            redshift_parameters=quicksight.CfnDataSource.RedshiftParametersProperty(
                database="database",

                # the properties below are optional
                cluster_id="clusterId",
                host="host",
                iam_parameters=quicksight.CfnDataSource.RedshiftIAMParametersProperty(
                    role_arn="roleArn",

                    # the properties below are optional
                    auto_create_database_user=False,
                    database_groups=["databaseGroups"],
                    database_user="databaseUser"
                ),
                identity_center_configuration=quicksight.CfnDataSource.IdentityCenterConfigurationProperty(
                    enable_identity_propagation=False
                ),
                port=123
            ),
            s3_parameters=quicksight.CfnDataSource.S3ParametersProperty(
                manifest_file_location=quicksight.CfnDataSource.ManifestFileLocationProperty(
                    bucket="bucket",
                    key="key"
                ),

                # the properties below are optional
                role_arn="roleArn"
            ),
            s3_tables_parameters=quicksight.CfnDataSource.S3TablesParametersProperty(
                table_bucket_arn="tableBucketArn"
            ),
            snowflake_parameters=quicksight.CfnDataSource.SnowflakeParametersProperty(
                database="database",
                host="host",
                warehouse="warehouse",

                # the properties below are optional
                authentication_type="authenticationType",
                database_access_control_role="databaseAccessControlRole",
                o_auth_parameters=quicksight.CfnDataSource.OAuthParametersProperty(
                    token_provider_url="tokenProviderUrl",

                    # the properties below are optional
                    identity_provider_resource_uri="identityProviderResourceUri",
                    identity_provider_vpc_connection_properties=quicksight.CfnDataSource.VpcConnectionPropertiesProperty(
                        vpc_connection_arn="vpcConnectionArn"
                    ),
                    o_auth_scope="oAuthScope"
                )
            ),
            spark_parameters=quicksight.CfnDataSource.SparkParametersProperty(
                host="host",
                port=123
            ),
            sql_server_parameters=quicksight.CfnDataSource.SqlServerParametersProperty(
                database="database",
                host="host",
                port=123
            ),
            starburst_parameters=quicksight.CfnDataSource.StarburstParametersProperty(
                catalog="catalog",
                host="host",
                port=123,

                # the properties below are optional
                authentication_type="authenticationType",
                database_access_control_role="databaseAccessControlRole",
                o_auth_parameters=quicksight.CfnDataSource.OAuthParametersProperty(
                    token_provider_url="tokenProviderUrl",

                    # the properties below are optional
                    identity_provider_resource_uri="identityProviderResourceUri",
                    identity_provider_vpc_connection_properties=quicksight.CfnDataSource.VpcConnectionPropertiesProperty(
                        vpc_connection_arn="vpcConnectionArn"
                    ),
                    o_auth_scope="oAuthScope"
                ),
                product_type="productType"
            ),
            teradata_parameters=quicksight.CfnDataSource.TeradataParametersProperty(
                database="database",
                host="host",
                port=123
            ),
            trino_parameters=quicksight.CfnDataSource.TrinoParametersProperty(
                catalog="catalog",
                host="host",
                port=123
            )
        )]
    ),
    key_pair_credentials=quicksight.CfnDataSource.KeyPairCredentialsProperty(
        key_pair_username="keyPairUsername",
        private_key="privateKey",

        # the properties below are optional
        private_key_passphrase="privateKeyPassphrase"
    ),
    o_auth_client_credentials=quicksight.CfnDataSource.OAuthClientCredentialsProperty(
        client_id="clientId",
        client_secret="clientSecret",
        username="username"
    ),
    secret_arn="secretArn"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

DataSourceCredentialsProperty dataSourceCredentialsProperty = DataSourceCredentialsProperty.builder()
        .copySourceArn("copySourceArn")
        .credentialPair(CredentialPairProperty.builder()
                .password("password")
                .username("username")

                // the properties below are optional
                .alternateDataSourceParameters(List.of(DataSourceParametersProperty.builder()
                        .amazonElasticsearchParameters(AmazonElasticsearchParametersProperty.builder()
                                .domain("domain")
                                .build())
                        .amazonOpenSearchParameters(AmazonOpenSearchParametersProperty.builder()
                                .domain("domain")
                                .build())
                        .athenaParameters(AthenaParametersProperty.builder()
                                .consumerAccountRoleArn("consumerAccountRoleArn")
                                .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder()
                                        .enableIdentityPropagation(false)
                                        .build())
                                .roleArn("roleArn")
                                .workGroup("workGroup")
                                .build())
                        .auroraParameters(AuroraParametersProperty.builder()
                                .database("database")
                                .host("host")
                                .port(123)
                                .build())
                        .auroraPostgreSqlParameters(AuroraPostgreSqlParametersProperty.builder()
                                .database("database")
                                .host("host")
                                .port(123)
                                .build())
                        .databricksParameters(DatabricksParametersProperty.builder()
                                .host("host")
                                .port(123)
                                .sqlEndpointPath("sqlEndpointPath")

                                // the properties below are optional
                                .authenticationType("authenticationType")
                                .oAuthParameters(OAuthParametersProperty.builder()
                                        .tokenProviderUrl("tokenProviderUrl")

                                        // the properties below are optional
                                        .identityProviderResourceUri("identityProviderResourceUri")
                                        .identityProviderVpcConnectionProperties(VpcConnectionPropertiesProperty.builder()
                                                .vpcConnectionArn("vpcConnectionArn")
                                                .build())
                                        .oAuthScope("oAuthScope")
                                        .build())
                                .build())
                        .mariaDbParameters(MariaDbParametersProperty.builder()
                                .database("database")
                                .host("host")
                                .port(123)
                                .build())
                        .mySqlParameters(MySqlParametersProperty.builder()
                                .database("database")
                                .host("host")
                                .port(123)
                                .build())
                        .oracleParameters(OracleParametersProperty.builder()
                                .database("database")
                                .host("host")
                                .port(123)

                                // the properties below are optional
                                .useServiceName(false)
                                .build())
                        .postgreSqlParameters(PostgreSqlParametersProperty.builder()
                                .database("database")
                                .host("host")
                                .port(123)
                                .build())
                        .prestoParameters(PrestoParametersProperty.builder()
                                .catalog("catalog")
                                .host("host")
                                .port(123)
                                .build())
                        .rdsParameters(RdsParametersProperty.builder()
                                .database("database")
                                .instanceId("instanceId")
                                .build())
                        .redshiftParameters(RedshiftParametersProperty.builder()
                                .database("database")

                                // the properties below are optional
                                .clusterId("clusterId")
                                .host("host")
                                .iamParameters(RedshiftIAMParametersProperty.builder()
                                        .roleArn("roleArn")

                                        // the properties below are optional
                                        .autoCreateDatabaseUser(false)
                                        .databaseGroups(List.of("databaseGroups"))
                                        .databaseUser("databaseUser")
                                        .build())
                                .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder()
                                        .enableIdentityPropagation(false)
                                        .build())
                                .port(123)
                                .build())
                        .s3Parameters(S3ParametersProperty.builder()
                                .manifestFileLocation(ManifestFileLocationProperty.builder()
                                        .bucket("bucket")
                                        .key("key")
                                        .build())

                                // the properties below are optional
                                .roleArn("roleArn")
                                .build())
                        .s3TablesParameters(S3TablesParametersProperty.builder()
                                .tableBucketArn("tableBucketArn")
                                .build())
                        .snowflakeParameters(SnowflakeParametersProperty.builder()
                                .database("database")
                                .host("host")
                                .warehouse("warehouse")

                                // the properties below are optional
                                .authenticationType("authenticationType")
                                .databaseAccessControlRole("databaseAccessControlRole")
                                .oAuthParameters(OAuthParametersProperty.builder()
                                        .tokenProviderUrl("tokenProviderUrl")

                                        // the properties below are optional
                                        .identityProviderResourceUri("identityProviderResourceUri")
                                        .identityProviderVpcConnectionProperties(VpcConnectionPropertiesProperty.builder()
                                                .vpcConnectionArn("vpcConnectionArn")
                                                .build())
                                        .oAuthScope("oAuthScope")
                                        .build())
                                .build())
                        .sparkParameters(SparkParametersProperty.builder()
                                .host("host")
                                .port(123)
                                .build())
                        .sqlServerParameters(SqlServerParametersProperty.builder()
                                .database("database")
                                .host("host")
                                .port(123)
                                .build())
                        .starburstParameters(StarburstParametersProperty.builder()
                                .catalog("catalog")
                                .host("host")
                                .port(123)

                                // the properties below are optional
                                .authenticationType("authenticationType")
                                .databaseAccessControlRole("databaseAccessControlRole")
                                .oAuthParameters(OAuthParametersProperty.builder()
                                        .tokenProviderUrl("tokenProviderUrl")

                                        // the properties below are optional
                                        .identityProviderResourceUri("identityProviderResourceUri")
                                        .identityProviderVpcConnectionProperties(VpcConnectionPropertiesProperty.builder()
                                                .vpcConnectionArn("vpcConnectionArn")
                                                .build())
                                        .oAuthScope("oAuthScope")
                                        .build())
                                .productType("productType")
                                .build())
                        .teradataParameters(TeradataParametersProperty.builder()
                                .database("database")
                                .host("host")
                                .port(123)
                                .build())
                        .trinoParameters(TrinoParametersProperty.builder()
                                .catalog("catalog")
                                .host("host")
                                .port(123)
                                .build())
                        .build()))
                .build())
        .keyPairCredentials(KeyPairCredentialsProperty.builder()
                .keyPairUsername("keyPairUsername")
                .privateKey("privateKey")

                // the properties below are optional
                .privateKeyPassphrase("privateKeyPassphrase")
                .build())
        .oAuthClientCredentials(OAuthClientCredentialsProperty.builder()
                .clientId("clientId")
                .clientSecret("clientSecret")
                .username("username")
                .build())
        .secretArn("secretArn")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var dataSourceCredentialsProperty = new DataSourceCredentialsProperty {
    CopySourceArn = "copySourceArn",
    CredentialPair = new CredentialPairProperty {
        Password = "password",
        Username = "username",

        // the properties below are optional
        AlternateDataSourceParameters = new [] { new DataSourceParametersProperty {
            AmazonElasticsearchParameters = new AmazonElasticsearchParametersProperty {
                Domain = "domain"
            },
            AmazonOpenSearchParameters = new AmazonOpenSearchParametersProperty {
                Domain = "domain"
            },
            AthenaParameters = new AthenaParametersProperty {
                ConsumerAccountRoleArn = "consumerAccountRoleArn",
                IdentityCenterConfiguration = new IdentityCenterConfigurationProperty {
                    EnableIdentityPropagation = false
                },
                RoleArn = "roleArn",
                WorkGroup = "workGroup"
            },
            AuroraParameters = new AuroraParametersProperty {
                Database = "database",
                Host = "host",
                Port = 123
            },
            AuroraPostgreSqlParameters = new AuroraPostgreSqlParametersProperty {
                Database = "database",
                Host = "host",
                Port = 123
            },
            DatabricksParameters = new DatabricksParametersProperty {
                Host = "host",
                Port = 123,
                SqlEndpointPath = "sqlEndpointPath",

                // the properties below are optional
                AuthenticationType = "authenticationType",
                OAuthParameters = new OAuthParametersProperty {
                    TokenProviderUrl = "tokenProviderUrl",

                    // the properties below are optional
                    IdentityProviderResourceUri = "identityProviderResourceUri",
                    IdentityProviderVpcConnectionProperties = new VpcConnectionPropertiesProperty {
                        VpcConnectionArn = "vpcConnectionArn"
                    },
                    OAuthScope = "oAuthScope"
                }
            },
            MariaDbParameters = new MariaDbParametersProperty {
                Database = "database",
                Host = "host",
                Port = 123
            },
            MySqlParameters = new MySqlParametersProperty {
                Database = "database",
                Host = "host",
                Port = 123
            },
            OracleParameters = new OracleParametersProperty {
                Database = "database",
                Host = "host",
                Port = 123,

                // the properties below are optional
                UseServiceName = false
            },
            PostgreSqlParameters = new PostgreSqlParametersProperty {
                Database = "database",
                Host = "host",
                Port = 123
            },
            PrestoParameters = new PrestoParametersProperty {
                Catalog = "catalog",
                Host = "host",
                Port = 123
            },
            RdsParameters = new RdsParametersProperty {
                Database = "database",
                InstanceId = "instanceId"
            },
            RedshiftParameters = new RedshiftParametersProperty {
                Database = "database",

                // the properties below are optional
                ClusterId = "clusterId",
                Host = "host",
                IamParameters = new RedshiftIAMParametersProperty {
                    RoleArn = "roleArn",

                    // the properties below are optional
                    AutoCreateDatabaseUser = false,
                    DatabaseGroups = new [] { "databaseGroups" },
                    DatabaseUser = "databaseUser"
                },
                IdentityCenterConfiguration = new IdentityCenterConfigurationProperty {
                    EnableIdentityPropagation = false
                },
                Port = 123
            },
            S3Parameters = new S3ParametersProperty {
                ManifestFileLocation = new ManifestFileLocationProperty {
                    Bucket = "bucket",
                    Key = "key"
                },

                // the properties below are optional
                RoleArn = "roleArn"
            },
            S3TablesParameters = new S3TablesParametersProperty {
                TableBucketArn = "tableBucketArn"
            },
            SnowflakeParameters = new SnowflakeParametersProperty {
                Database = "database",
                Host = "host",
                Warehouse = "warehouse",

                // the properties below are optional
                AuthenticationType = "authenticationType",
                DatabaseAccessControlRole = "databaseAccessControlRole",
                OAuthParameters = new OAuthParametersProperty {
                    TokenProviderUrl = "tokenProviderUrl",

                    // the properties below are optional
                    IdentityProviderResourceUri = "identityProviderResourceUri",
                    IdentityProviderVpcConnectionProperties = new VpcConnectionPropertiesProperty {
                        VpcConnectionArn = "vpcConnectionArn"
                    },
                    OAuthScope = "oAuthScope"
                }
            },
            SparkParameters = new SparkParametersProperty {
                Host = "host",
                Port = 123
            },
            SqlServerParameters = new SqlServerParametersProperty {
                Database = "database",
                Host = "host",
                Port = 123
            },
            StarburstParameters = new StarburstParametersProperty {
                Catalog = "catalog",
                Host = "host",
                Port = 123,

                // the properties below are optional
                AuthenticationType = "authenticationType",
                DatabaseAccessControlRole = "databaseAccessControlRole",
                OAuthParameters = new OAuthParametersProperty {
                    TokenProviderUrl = "tokenProviderUrl",

                    // the properties below are optional
                    IdentityProviderResourceUri = "identityProviderResourceUri",
                    IdentityProviderVpcConnectionProperties = new VpcConnectionPropertiesProperty {
                        VpcConnectionArn = "vpcConnectionArn"
                    },
                    OAuthScope = "oAuthScope"
                },
                ProductType = "productType"
            },
            TeradataParameters = new TeradataParametersProperty {
                Database = "database",
                Host = "host",
                Port = 123
            },
            TrinoParameters = new TrinoParametersProperty {
                Catalog = "catalog",
                Host = "host",
                Port = 123
            }
        } }
    },
    KeyPairCredentials = new KeyPairCredentialsProperty {
        KeyPairUsername = "keyPairUsername",
        PrivateKey = "privateKey",

        // the properties below are optional
        PrivateKeyPassphrase = "privateKeyPassphrase"
    },
    OAuthClientCredentials = new OAuthClientCredentialsProperty {
        ClientId = "clientId",
        ClientSecret = "clientSecret",
        Username = "username"
    },
    SecretArn = "secretArn"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dataSourceCredentialsProperty := &DataSourceCredentialsProperty{
	CopySourceArn: jsii.String("copySourceArn"),
	CredentialPair: &CredentialPairProperty{
		Password: jsii.String("password"),
		Username: jsii.String("username"),

		// the properties below are optional
		AlternateDataSourceParameters: []interface{}{
			&DataSourceParametersProperty{
				AmazonElasticsearchParameters: &AmazonElasticsearchParametersProperty{
					Domain: jsii.String("domain"),
				},
				AmazonOpenSearchParameters: &AmazonOpenSearchParametersProperty{
					Domain: jsii.String("domain"),
				},
				AthenaParameters: &AthenaParametersProperty{
					ConsumerAccountRoleArn: jsii.String("consumerAccountRoleArn"),
					IdentityCenterConfiguration: &IdentityCenterConfigurationProperty{
						EnableIdentityPropagation: jsii.Boolean(false),
					},
					RoleArn: jsii.String("roleArn"),
					WorkGroup: jsii.String("workGroup"),
				},
				AuroraParameters: &AuroraParametersProperty{
					Database: jsii.String("database"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
				AuroraPostgreSqlParameters: &AuroraPostgreSqlParametersProperty{
					Database: jsii.String("database"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
				DatabricksParameters: &DatabricksParametersProperty{
					Host: jsii.String("host"),
					Port: jsii.Number(123),
					SqlEndpointPath: jsii.String("sqlEndpointPath"),

					// the properties below are optional
					AuthenticationType: jsii.String("authenticationType"),
					OAuthParameters: &OAuthParametersProperty{
						TokenProviderUrl: jsii.String("tokenProviderUrl"),

						// the properties below are optional
						IdentityProviderResourceUri: jsii.String("identityProviderResourceUri"),
						IdentityProviderVpcConnectionProperties: &VpcConnectionPropertiesProperty{
							VpcConnectionArn: jsii.String("vpcConnectionArn"),
						},
						OAuthScope: jsii.String("oAuthScope"),
					},
				},
				MariaDbParameters: &MariaDbParametersProperty{
					Database: jsii.String("database"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
				MySqlParameters: &MySqlParametersProperty{
					Database: jsii.String("database"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
				OracleParameters: &OracleParametersProperty{
					Database: jsii.String("database"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),

					// the properties below are optional
					UseServiceName: jsii.Boolean(false),
				},
				PostgreSqlParameters: &PostgreSqlParametersProperty{
					Database: jsii.String("database"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
				PrestoParameters: &PrestoParametersProperty{
					Catalog: jsii.String("catalog"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
				RdsParameters: &RdsParametersProperty{
					Database: jsii.String("database"),
					InstanceId: jsii.String("instanceId"),
				},
				RedshiftParameters: &RedshiftParametersProperty{
					Database: jsii.String("database"),

					// the properties below are optional
					ClusterId: jsii.String("clusterId"),
					Host: jsii.String("host"),
					IamParameters: &RedshiftIAMParametersProperty{
						RoleArn: jsii.String("roleArn"),

						// the properties below are optional
						AutoCreateDatabaseUser: jsii.Boolean(false),
						DatabaseGroups: []*string{
							jsii.String("databaseGroups"),
						},
						DatabaseUser: jsii.String("databaseUser"),
					},
					IdentityCenterConfiguration: &IdentityCenterConfigurationProperty{
						EnableIdentityPropagation: jsii.Boolean(false),
					},
					Port: jsii.Number(123),
				},
				S3Parameters: &S3ParametersProperty{
					ManifestFileLocation: &ManifestFileLocationProperty{
						Bucket: jsii.String("bucket"),
						Key: jsii.String("key"),
					},

					// the properties below are optional
					RoleArn: jsii.String("roleArn"),
				},
				S3TablesParameters: &S3TablesParametersProperty{
					TableBucketArn: jsii.String("tableBucketArn"),
				},
				SnowflakeParameters: &SnowflakeParametersProperty{
					Database: jsii.String("database"),
					Host: jsii.String("host"),
					Warehouse: jsii.String("warehouse"),

					// the properties below are optional
					AuthenticationType: jsii.String("authenticationType"),
					DatabaseAccessControlRole: jsii.String("databaseAccessControlRole"),
					OAuthParameters: &OAuthParametersProperty{
						TokenProviderUrl: jsii.String("tokenProviderUrl"),

						// the properties below are optional
						IdentityProviderResourceUri: jsii.String("identityProviderResourceUri"),
						IdentityProviderVpcConnectionProperties: &VpcConnectionPropertiesProperty{
							VpcConnectionArn: jsii.String("vpcConnectionArn"),
						},
						OAuthScope: jsii.String("oAuthScope"),
					},
				},
				SparkParameters: &SparkParametersProperty{
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
				SqlServerParameters: &SqlServerParametersProperty{
					Database: jsii.String("database"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
				StarburstParameters: &StarburstParametersProperty{
					Catalog: jsii.String("catalog"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),

					// the properties below are optional
					AuthenticationType: jsii.String("authenticationType"),
					DatabaseAccessControlRole: jsii.String("databaseAccessControlRole"),
					OAuthParameters: &OAuthParametersProperty{
						TokenProviderUrl: jsii.String("tokenProviderUrl"),

						// the properties below are optional
						IdentityProviderResourceUri: jsii.String("identityProviderResourceUri"),
						IdentityProviderVpcConnectionProperties: &VpcConnectionPropertiesProperty{
							VpcConnectionArn: jsii.String("vpcConnectionArn"),
						},
						OAuthScope: jsii.String("oAuthScope"),
					},
					ProductType: jsii.String("productType"),
				},
				TeradataParameters: &TeradataParametersProperty{
					Database: jsii.String("database"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
				TrinoParameters: &TrinoParametersProperty{
					Catalog: jsii.String("catalog"),
					Host: jsii.String("host"),
					Port: jsii.Number(123),
				},
			},
		},
	},
	KeyPairCredentials: &KeyPairCredentialsProperty{
		KeyPairUsername: jsii.String("keyPairUsername"),
		PrivateKey: jsii.String("privateKey"),

		// the properties below are optional
		PrivateKeyPassphrase: jsii.String("privateKeyPassphrase"),
	},
	OAuthClientCredentials: &OAuthClientCredentialsProperty{
		ClientId: jsii.String("clientId"),
		ClientSecret: jsii.String("clientSecret"),
		Username: jsii.String("username"),
	},
	SecretArn: jsii.String("secretArn"),
}
```

## Properties

- `copySourceArn`: string — The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use.

  When `CopySourceArn` is not null, the credential pair from the data source in the ARN is used as the credentials for the `DataSourceCredentials` structure.

- `credentialPair`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.CredentialPairProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.CredentialPairProperty.html) — Credential pair.

  For more information, see `[CredentialPair](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CredentialPair.html)` .

- `keyPairCredentials`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.KeyPairCredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.KeyPairCredentialsProperty.html) — The credentials for connecting using key-pair.

- `oAuthClientCredentials`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.OAuthClientCredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSource.OAuthClientCredentialsProperty.html)

- `secretArn`: string — The Amazon Resource Name (ARN) of the secret associated with the data source in AWS Secrets Manager .
