@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.526Z") @Stability(value=Stable) public class CfnDataSource extends CfnResource implements IInspectable
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.*;
CfnDataSource cfnDataSource = CfnDataSource.Builder.create(this, "MyCfnDataSource")
.alternateDataSourceParameters(List.of(DataSourceParametersProperty.builder()
.amazonElasticsearchParameters(AmazonElasticsearchParametersProperty.builder()
.domain("domain")
.build())
.amazonOpenSearchParameters(AmazonOpenSearchParametersProperty.builder()
.domain("domain")
.build())
.athenaParameters(AthenaParametersProperty.builder()
.workGroup("workGroup")
.build())
.auroraParameters(AuroraParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.build())
.auroraPostgreSqlParameters(AuroraPostgreSqlParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.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)
.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")
.port(123)
.build())
.s3Parameters(S3ParametersProperty.builder()
.manifestFileLocation(ManifestFileLocationProperty.builder()
.bucket("bucket")
.key("key")
.build())
.build())
.snowflakeParameters(SnowflakeParametersProperty.builder()
.database("database")
.host("host")
.warehouse("warehouse")
.build())
.sparkParameters(SparkParametersProperty.builder()
.host("host")
.port(123)
.build())
.sqlServerParameters(SqlServerParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.build())
.teradataParameters(TeradataParametersProperty.builder()
.database("database")
.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()
.workGroup("workGroup")
.build())
.auroraParameters(AuroraParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.build())
.auroraPostgreSqlParameters(AuroraPostgreSqlParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.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)
.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")
.port(123)
.build())
.s3Parameters(S3ParametersProperty.builder()
.manifestFileLocation(ManifestFileLocationProperty.builder()
.bucket("bucket")
.key("key")
.build())
.build())
.snowflakeParameters(SnowflakeParametersProperty.builder()
.database("database")
.host("host")
.warehouse("warehouse")
.build())
.sparkParameters(SparkParametersProperty.builder()
.host("host")
.port(123)
.build())
.sqlServerParameters(SqlServerParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.build())
.teradataParameters(TeradataParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.build())
.build()))
.build())
.build())
.dataSourceId("dataSourceId")
.dataSourceParameters(DataSourceParametersProperty.builder()
.amazonElasticsearchParameters(AmazonElasticsearchParametersProperty.builder()
.domain("domain")
.build())
.amazonOpenSearchParameters(AmazonOpenSearchParametersProperty.builder()
.domain("domain")
.build())
.athenaParameters(AthenaParametersProperty.builder()
.workGroup("workGroup")
.build())
.auroraParameters(AuroraParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.build())
.auroraPostgreSqlParameters(AuroraPostgreSqlParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.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)
.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")
.port(123)
.build())
.s3Parameters(S3ParametersProperty.builder()
.manifestFileLocation(ManifestFileLocationProperty.builder()
.bucket("bucket")
.key("key")
.build())
.build())
.snowflakeParameters(SnowflakeParametersProperty.builder()
.database("database")
.host("host")
.warehouse("warehouse")
.build())
.sparkParameters(SparkParametersProperty.builder()
.host("host")
.port(123)
.build())
.sqlServerParameters(SqlServerParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.build())
.teradataParameters(TeradataParametersProperty.builder()
.database("database")
.host("host")
.port(123)
.build())
.build())
.errorInfo(DataSourceErrorInfoProperty.builder()
.message("message")
.type("type")
.build())
.name("name")
.permissions(List.of(ResourcePermissionProperty.builder()
.actions(List.of("actions"))
.principal("principal")
.build()))
.sslProperties(SslPropertiesProperty.builder()
.disableSsl(false)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.vpcConnectionProperties(VpcConnectionPropertiesProperty.builder()
.vpcConnectionArn("vpcConnectionArn")
.build())
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDataSource(software.constructs.Construct scope,
String id)
Create a new `AWS::QuickSight::DataSource`.
|
|
CfnDataSource(software.constructs.Construct scope,
String id,
CfnDataSourceProps props)
Create a new `AWS::QuickSight::DataSource`.
|
protected |
CfnDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDataSource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAlternateDataSourceParameters()
`AWS::QuickSight::DataSource.AlternateDataSourceParameters`.
|
String |
getAttrArn() |
String |
getAttrCreatedTime() |
String |
getAttrLastUpdatedTime() |
String |
getAttrStatus() |
String |
getAwsAccountId()
`AWS::QuickSight::DataSource.AwsAccountId`.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getCredentials()
`AWS::QuickSight::DataSource.Credentials`.
|
String |
getDataSourceId()
`AWS::QuickSight::DataSource.DataSourceId`.
|
Object |
getDataSourceParameters()
`AWS::QuickSight::DataSource.DataSourceParameters`.
|
Object |
getErrorInfo()
`AWS::QuickSight::DataSource.ErrorInfo`.
|
String |
getName()
`AWS::QuickSight::DataSource.Name`.
|
Object |
getPermissions()
`AWS::QuickSight::DataSource.Permissions`.
|
Object |
getSslProperties()
`AWS::QuickSight::DataSource.SslProperties`.
|
TagManager |
getTags()
`AWS::QuickSight::DataSource.Tags`.
|
String |
getType()
`AWS::QuickSight::DataSource.Type`.
|
Object |
getVpcConnectionProperties()
`AWS::QuickSight::DataSource.VpcConnectionProperties`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAlternateDataSourceParameters(IResolvable value)
`AWS::QuickSight::DataSource.AlternateDataSourceParameters`.
|
void |
setAlternateDataSourceParameters(List<Object> value)
`AWS::QuickSight::DataSource.AlternateDataSourceParameters`.
|
void |
setAwsAccountId(String value)
`AWS::QuickSight::DataSource.AwsAccountId`.
|
void |
setCredentials(CfnDataSource.DataSourceCredentialsProperty value)
`AWS::QuickSight::DataSource.Credentials`.
|
void |
setCredentials(IResolvable value)
`AWS::QuickSight::DataSource.Credentials`.
|
void |
setDataSourceId(String value)
`AWS::QuickSight::DataSource.DataSourceId`.
|
void |
setDataSourceParameters(CfnDataSource.DataSourceParametersProperty value)
`AWS::QuickSight::DataSource.DataSourceParameters`.
|
void |
setDataSourceParameters(IResolvable value)
`AWS::QuickSight::DataSource.DataSourceParameters`.
|
void |
setErrorInfo(CfnDataSource.DataSourceErrorInfoProperty value)
`AWS::QuickSight::DataSource.ErrorInfo`.
|
void |
setErrorInfo(IResolvable value)
`AWS::QuickSight::DataSource.ErrorInfo`.
|
void |
setName(String value)
`AWS::QuickSight::DataSource.Name`.
|
void |
setPermissions(IResolvable value)
`AWS::QuickSight::DataSource.Permissions`.
|
void |
setPermissions(List<Object> value)
`AWS::QuickSight::DataSource.Permissions`.
|
void |
setSslProperties(CfnDataSource.SslPropertiesProperty value)
`AWS::QuickSight::DataSource.SslProperties`.
|
void |
setSslProperties(IResolvable value)
`AWS::QuickSight::DataSource.SslProperties`.
|
void |
setType(String value)
`AWS::QuickSight::DataSource.Type`.
|
void |
setVpcConnectionProperties(CfnDataSource.VpcConnectionPropertiesProperty value)
`AWS::QuickSight::DataSource.VpcConnectionProperties`.
|
void |
setVpcConnectionProperties(IResolvable value)
`AWS::QuickSight::DataSource.VpcConnectionProperties`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDataSource(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDataSource(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnDataSourceProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnDataSource(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @Nullable public Object getAlternateDataSourceParameters()
@Stability(value=Stable)
public void setAlternateDataSourceParameters(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setAlternateDataSourceParameters(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrCreatedTime()
@Stability(value=Stable) @NotNull public String getAttrLastUpdatedTime()
@Stability(value=Stable) @NotNull public String getAttrStatus()
@Stability(value=Stable) @Nullable public String getAwsAccountId()
@Stability(value=Stable)
public void setAwsAccountId(@Nullable
String value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getCredentials()
@Stability(value=Stable)
public void setCredentials(@Nullable
CfnDataSource.DataSourceCredentialsProperty value)
@Stability(value=Stable)
public void setCredentials(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getDataSourceId()
@Stability(value=Stable)
public void setDataSourceId(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getDataSourceParameters()
@Stability(value=Stable)
public void setDataSourceParameters(@Nullable
CfnDataSource.DataSourceParametersProperty value)
@Stability(value=Stable)
public void setDataSourceParameters(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getErrorInfo()
@Stability(value=Stable)
public void setErrorInfo(@Nullable
CfnDataSource.DataSourceErrorInfoProperty value)
@Stability(value=Stable)
public void setErrorInfo(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getPermissions()
@Stability(value=Stable)
public void setPermissions(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setPermissions(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getSslProperties()
@Stability(value=Stable)
public void setSslProperties(@Nullable
CfnDataSource.SslPropertiesProperty value)
@Stability(value=Stable)
public void setSslProperties(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getType()
@Stability(value=Stable)
public void setType(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getVpcConnectionProperties()
@Stability(value=Stable)
public void setVpcConnectionProperties(@Nullable
CfnDataSource.VpcConnectionPropertiesProperty value)
@Stability(value=Stable)
public void setVpcConnectionProperties(@Nullable
IResolvable value)
Copyright © 2021. All rights reserved.