RedshiftSourceConfigProperty Struct
Provides information about the Amazon Redshift database configuration.
| 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_lookoutmetrics as lookoutmetrics } from 'aws-cdk-lib';
const redshiftSourceConfigProperty: lookoutmetrics.CfnAnomalyDetector.RedshiftSourceConfigProperty = {
clusterIdentifier: 'clusterIdentifier',
databaseHost: 'databaseHost',
databaseName: 'databaseName',
databasePort: 123,
roleArn: 'roleArn',
secretManagerArn: 'secretManagerArn',
tableName: 'tableName',
vpcConfiguration: {
securityGroupIdList: ['securityGroupIdList'],
subnetIdList: ['subnetIdList'],
},
};
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_lookoutmetrics as lookoutmetrics
redshift_source_config_property = lookoutmetrics.CfnAnomalyDetector.RedshiftSourceConfigProperty(
cluster_identifier="clusterIdentifier",
database_host="databaseHost",
database_name="databaseName",
database_port=123,
role_arn="roleArn",
secret_manager_arn="secretManagerArn",
table_name="tableName",
vpc_configuration=lookoutmetrics.CfnAnomalyDetector.VpcConfigurationProperty(
security_group_id_list=["securityGroupIdList"],
subnet_id_list=["subnetIdList"]
)
)
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.lookoutmetrics.*;
RedshiftSourceConfigProperty redshiftSourceConfigProperty = RedshiftSourceConfigProperty.builder()
.clusterIdentifier("clusterIdentifier")
.databaseHost("databaseHost")
.databaseName("databaseName")
.databasePort(123)
.roleArn("roleArn")
.secretManagerArn("secretManagerArn")
.tableName("tableName")
.vpcConfiguration(VpcConfigurationProperty.builder()
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetIdList(List.of("subnetIdList"))
.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.LookoutMetrics;
var redshiftSourceConfigProperty = new RedshiftSourceConfigProperty {
ClusterIdentifier = "clusterIdentifier",
DatabaseHost = "databaseHost",
DatabaseName = "databaseName",
DatabasePort = 123,
RoleArn = "roleArn",
SecretManagerArn = "secretManagerArn",
TableName = "tableName",
VpcConfiguration = new VpcConfigurationProperty {
SecurityGroupIdList = new [] { "securityGroupIdList" },
SubnetIdList = new [] { "subnetIdList" }
}
};
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"
redshiftSourceConfigProperty := &RedshiftSourceConfigProperty{
ClusterIdentifier: jsii.String("clusterIdentifier"),
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
}
Properties
clusterIdentifierstringcluster_identifierstrclusterIdentifierStringClusterIdentifierstringClusterIdentifier*string required #A string identifying the Redshift cluster.
databaseHoststringdatabase_hoststrdatabaseHostStringDatabaseHoststringDatabaseHost*string required #The name of the database host.
databaseNamestringdatabase_namestrdatabaseNameStringDatabaseNamestringDatabaseName*string required #The Redshift database name.
databasePortnumberdatabase_portint | floatdatabasePortNumberDatabasePortdoubleDatabasePort*float64 required #The port number where the database can be accessed.
The Amazon Resource Name (ARN) of the role providing access to the database.
secretManagerArnstringsecret_manager_arnstrsecretManagerArnStringSecretManagerArnstringSecretManagerArn*string required #The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
The table name of the Redshift database.
vpcConfigurationIResolvable | CfnAnomalyDetector.vpc_configurationtyping.Union[IResolvable, VpcConfigurationProperty]vpcConfigurationIResolvableVpcConfigurationIResolvableVpcConfigurationinterface{} required #Contains information about the Amazon Virtual Private Cloud (VPC) configuration.