RedshiftPropertiesInputProperty Struct
The Amazon Redshift properties.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datazone as datazone } from 'aws-cdk-lib';
const redshiftPropertiesInputProperty: datazone.CfnConnection.RedshiftPropertiesInputProperty = {
credentials: {
secretArn: 'secretArn',
usernamePassword: {
password: 'password',
username: 'username',
},
},
databaseName: 'databaseName',
host: 'host',
lineageSync: {
enabled: false,
schedule: {
schedule: 'schedule',
},
},
port: 123,
storage: {
clusterName: 'clusterName',
workgroupName: 'workgroupName',
},
};
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_datazone as datazone
redshift_properties_input_property = datazone.CfnConnection.RedshiftPropertiesInputProperty(
credentials=datazone.CfnConnection.RedshiftCredentialsProperty(
secret_arn="secretArn",
username_password=datazone.CfnConnection.UsernamePasswordProperty(
password="password",
username="username"
)
),
database_name="databaseName",
host="host",
lineage_sync=datazone.CfnConnection.RedshiftLineageSyncConfigurationInputProperty(
enabled=False,
schedule=datazone.CfnConnection.LineageSyncScheduleProperty(
schedule="schedule"
)
),
port=123,
storage=datazone.CfnConnection.RedshiftStoragePropertiesProperty(
cluster_name="clusterName",
workgroup_name="workgroupName"
)
)
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.datazone.*;
RedshiftPropertiesInputProperty redshiftPropertiesInputProperty = RedshiftPropertiesInputProperty.builder()
.credentials(RedshiftCredentialsProperty.builder()
.secretArn("secretArn")
.usernamePassword(UsernamePasswordProperty.builder()
.password("password")
.username("username")
.build())
.build())
.databaseName("databaseName")
.host("host")
.lineageSync(RedshiftLineageSyncConfigurationInputProperty.builder()
.enabled(false)
.schedule(LineageSyncScheduleProperty.builder()
.schedule("schedule")
.build())
.build())
.port(123)
.storage(RedshiftStoragePropertiesProperty.builder()
.clusterName("clusterName")
.workgroupName("workgroupName")
.build())
.build();
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.DataZone;
var redshiftPropertiesInputProperty = new RedshiftPropertiesInputProperty {
Credentials = new RedshiftCredentialsProperty {
SecretArn = "secretArn",
UsernamePassword = new UsernamePasswordProperty {
Password = "password",
Username = "username"
}
},
DatabaseName = "databaseName",
Host = "host",
LineageSync = new RedshiftLineageSyncConfigurationInputProperty {
Enabled = false,
Schedule = new LineageSyncScheduleProperty {
Schedule = "schedule"
}
},
Port = 123,
Storage = new RedshiftStoragePropertiesProperty {
ClusterName = "clusterName",
WorkgroupName = "workgroupName"
}
};
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"
redshiftPropertiesInputProperty := &RedshiftPropertiesInputProperty{
Credentials: &RedshiftCredentialsProperty{
SecretArn: jsii.String("secretArn"),
UsernamePassword: &UsernamePasswordProperty{
Password: jsii.String("password"),
Username: jsii.String("username"),
},
},
DatabaseName: jsii.String("databaseName"),
Host: jsii.String("host"),
LineageSync: &RedshiftLineageSyncConfigurationInputProperty{
Enabled: jsii.Boolean(false),
Schedule: &LineageSyncScheduleProperty{
Schedule: jsii.String("schedule"),
},
},
Port: jsii.Number(123),
Storage: &RedshiftStoragePropertiesProperty{
ClusterName: jsii.String("clusterName"),
WorkgroupName: jsii.String("workgroupName"),
},
}
Properties
credentialsoptionalIResolvable | CfnConnection.credentialsoptionaltyping.Union[IResolvable, RedshiftCredentialsProperty]credentialsoptionalIResolvableCredentialsoptionalIResolvableCredentialsoptionalinterface{} #The Amaon Redshift credentials.
databaseNameoptionalstringdatabase_nameoptionalstrdatabaseNameoptionalStringDatabaseNameoptionalstringDatabaseNameoptional*string #The Amazon Redshift database name.
The Amazon Redshift host.
lineageSyncoptionalIResolvable | CfnConnection.lineage_syncoptionaltyping.Union[IResolvable, RedshiftLineageSyncConfigurationInputProperty]lineageSyncoptionalIResolvableLineageSyncoptionalIResolvableLineageSyncoptionalinterface{} #The lineage sync of the Amazon Redshift.
The Amaon Redshift port.
storageoptionalIResolvable | CfnConnection.storageoptionaltyping.Union[IResolvable, RedshiftStoragePropertiesProperty]storageoptionalIResolvableStorageoptionalIResolvableStorageoptionalinterface{} #The Amazon Redshift storage.