# RedshiftPropertiesInputProperty

The Amazon Redshift properties.

- Source: Generated at build time
- Type last changed: v2.186.0 · 27 Mar 2025

## Example

TypeScript:

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

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

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

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

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"

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

- `credentials`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.RedshiftCredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnConnection.RedshiftCredentialsProperty.html) — The Amaon Redshift credentials.

- `databaseName`: string — The Amazon Redshift database name.

- `host`: string — The Amazon Redshift host.

- `lineageSync`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.RedshiftLineageSyncConfigurationInputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnConnection.RedshiftLineageSyncConfigurationInputProperty.html) — The lineage sync of the Amazon Redshift.

- `port`: number — The Amaon Redshift port.

- `storage`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.RedshiftStoragePropertiesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnConnection.RedshiftStoragePropertiesProperty.html) — The Amazon Redshift storage.
