Interface CfnDataSourceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSourceProps.Jsii$Proxy
CfnDataSource.
Example:
// 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.*;
CfnDataSourceProps cfnDataSourceProps = CfnDataSourceProps.builder()
.name("name")
.type("type")
// 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()
.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")
.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())
.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()))
.awsAccountId("awsAccountId")
.credentials(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()
.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")
.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())
.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())
.secretArn("secretArn")
.build())
.dataSourceId("dataSourceId")
.dataSourceParameters(DataSourceParametersProperty.builder()
.amazonElasticsearchParameters(AmazonElasticsearchParametersProperty.builder()
.domain("domain")
.build())
.amazonOpenSearchParameters(AmazonOpenSearchParametersProperty.builder()
.domain("domain")
.build())
.athenaParameters(AthenaParametersProperty.builder()
.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")
.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())
.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())
.errorInfo(DataSourceErrorInfoProperty.builder()
.message("message")
.type("type")
.build())
.folderArns(List.of("folderArns"))
.permissions(List.of(ResourcePermissionProperty.builder()
.actions(List.of("actions"))
.principal("principal")
// the properties below are optional
.resource("resource")
.build()))
.sslProperties(SslPropertiesProperty.builder()
.disableSsl(false)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcConnectionProperties(VpcConnectionPropertiesProperty.builder()
.vpcConnectionArn("vpcConnectionArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataSourcePropsstatic final classAn implementation forCfnDataSourceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDataSourceProps.Builderbuilder()default ObjectA set of alternate data source parameters that you want to share for the credentials stored with this data source.default StringThe AWS account ID.default ObjectThe credentials Amazon Quick Sight that uses to connect to your underlying source.default StringAn ID for the data source.default ObjectThe parameters that Amazon Quick Sight uses to connect to your underlying source.default ObjectError information from the last update or the creation of the data source.getName()A display name for the data source.default ObjectA list of resource permissions on the data source.default ObjectSecure Socket Layer (SSL) properties that apply when Amazon Quick Sight connects to your underlying source.getTags()Contains a map of the key-value pairs for the resource tag or tags assigned to the data source.getType()The type of the data source.default ObjectUse this parameter only when you want Amazon Quick Sight to use a VPC connection when connecting to your underlying source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
A display name for the data source.- See Also:
-
getType
The type of the data source. To return a list of all data sources, useListDataSources.Use
AMAZON_ELASTICSEARCHfor Amazon OpenSearch Service.- See Also:
-
getAlternateDataSourceParameters
A set of alternate data source parameters that you want to share for the credentials stored with this data source.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
DataSourceParametersstructure that's in the request with the structures in theAlternateDataSourceParametersallow list. If the structures are an exact match, the request is allowed to use the credentials from this existing data source. If theAlternateDataSourceParameterslist is null, theCredentialsoriginally used with thisDataSourceParametersare automatically allowed.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataSource.DataSourceParametersProperty>- See Also:
-
getAwsAccountId
The AWS account ID.- See Also:
-
getCredentials
The credentials Amazon Quick Sight that uses to connect to your underlying source.Currently, only credentials based on user name and password are supported.
Returns union: either
IResolvableorCfnDataSource.DataSourceCredentialsProperty- See Also:
-
getDataSourceId
An ID for the data source.This ID is unique per AWS Region for each AWS account.
- See Also:
-
getDataSourceParameters
The parameters that Amazon Quick Sight uses to connect to your underlying source.Returns union: either
IResolvableorCfnDataSource.DataSourceParametersProperty- See Also:
-
getErrorInfo
Error information from the last update or the creation of the data source.Returns union: either
IResolvableorCfnDataSource.DataSourceErrorInfoProperty- See Also:
-
getFolderArns
- See Also:
-
getPermissions
A list of resource permissions on the data source.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataSource.ResourcePermissionProperty>- See Also:
-
getSslProperties
Secure Socket Layer (SSL) properties that apply when Amazon Quick Sight connects to your underlying source.Returns union: either
IResolvableorCfnDataSource.SslPropertiesProperty- See Also:
-
getTags
Contains a map of the key-value pairs for the resource tag or tags assigned to the data source.- See Also:
-
getVpcConnectionProperties
Use this parameter only when you want Amazon Quick Sight to use a VPC connection when connecting to your underlying source.Returns union: either
IResolvableorCfnDataSource.VpcConnectionPropertiesProperty- See Also:
-
builder
- Returns:
- a
CfnDataSourceProps.BuilderofCfnDataSourceProps
-