# RedshiftSourceConfigProperty

Provides information about the Amazon Redshift database configuration.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

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.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" }
    }
};
```

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"

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

- `clusterIdentifier`: string (required) — A string identifying the Redshift cluster.

- `databaseHost`: string (required) — The name of the database host.

- `databaseName`: string (required) — The Redshift database name.

- `databasePort`: number (required) — The port number where the database can be accessed.

- `roleArn`: string (required) — The Amazon Resource Name (ARN) of the role providing access to the database.

- `secretManagerArn`: string (required) — The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

- `tableName`: string (required) — The table name of the Redshift database.

- `vpcConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnomalyDetector.VpcConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lookoutmetrics.CfnAnomalyDetector.VpcConfigurationProperty.html) (required) — Contains information about the Amazon Virtual Private Cloud (VPC) configuration.
