Skip to content
v2.278.0

RedshiftCredentialsProperty Struct ​

Amazon Redshift credentials of a connection.

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 redshiftCredentialsProperty: datazone.CfnConnection.RedshiftCredentialsProperty = {
  secretArn: 'secretArn',
  usernamePassword: {
    password: 'password',
    username: 'username',
  },
};
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_credentials_property = datazone.CfnConnection.RedshiftCredentialsProperty(
    secret_arn="secretArn",
    username_password=datazone.CfnConnection.UsernamePasswordProperty(
        password="password",
        username="username"
    )
)
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.*;

RedshiftCredentialsProperty redshiftCredentialsProperty = RedshiftCredentialsProperty.builder()
        .secretArn("secretArn")
        .usernamePassword(UsernamePasswordProperty.builder()
                .password("password")
                .username("username")
                .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 redshiftCredentialsProperty = new RedshiftCredentialsProperty {
    SecretArn = "secretArn",
    UsernamePassword = new UsernamePasswordProperty {
        Password = "password",
        Username = "username"
    }
};
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"

redshiftCredentialsProperty := &RedshiftCredentialsProperty{
	SecretArn: jsii.String("secretArn"),
	UsernamePassword: &UsernamePasswordProperty{
		Password: jsii.String("password"),
		Username: jsii.String("username"),
	},
}

Properties ​

secretArnoptionalstringsecret_arnoptionalstrsecretArnoptionalStringSecretArnoptionalstringSecretArnoptional*string #
The secret ARN of the Amazon Redshift credentials of a connection.
usernamePasswordoptionalIResolvable | CfnConnection.UsernamePasswordPropertyusername_passwordoptionaltyping.Union[IResolvable, UsernamePasswordProperty]usernamePasswordoptionalIResolvableUsernamePasswordoptionalIResolvableUsernamePasswordoptionalinterface{} #
The username and password of the Amazon Redshift credentials of a connection.