Skip to content
v2.278.0

RedshiftDestinationConfigurationProperty Struct ​

The RedshiftDestinationConfiguration property type specifies an Amazon Redshift cluster to which Amazon Kinesis Data Firehose (Kinesis Data Firehose) delivers data.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisfirehose as kinesisfirehose } from 'aws-cdk-lib';
const redshiftDestinationConfigurationProperty: kinesisfirehose.CfnDeliveryStream.RedshiftDestinationConfigurationProperty = {
  clusterJdbcurl: 'clusterJdbcurl',
  copyCommand: {
    dataTableName: 'dataTableName',

    // the properties below are optional
    copyOptions: 'copyOptions',
    dataTableColumns: 'dataTableColumns',
  },
  roleArn: 'roleArn',
  s3Configuration: {
    bucketArn: 'bucketArn',
    roleArn: 'roleArn',

    // the properties below are optional
    bufferingHints: {
      intervalInSeconds: 123,
      sizeInMBs: 123,
    },
    cloudWatchLoggingOptions: {
      enabled: false,
      logGroupName: 'logGroupName',
      logStreamName: 'logStreamName',
    },
    compressionFormat: 'compressionFormat',
    encryptionConfiguration: {
      kmsEncryptionConfig: {
        awskmsKeyArn: 'awskmsKeyArn',
      },
      noEncryptionConfig: 'noEncryptionConfig',
    },
    errorOutputPrefix: 'errorOutputPrefix',
    prefix: 'prefix',
  },

  // the properties below are optional
  cloudWatchLoggingOptions: {
    enabled: false,
    logGroupName: 'logGroupName',
    logStreamName: 'logStreamName',
  },
  password: 'password',
  processingConfiguration: {
    enabled: false,
    processors: [{
      type: 'type',

      // the properties below are optional
      parameters: [{
        parameterName: 'parameterName',
        parameterValue: 'parameterValue',
      }],
    }],
  },
  retryOptions: {
    durationInSeconds: 123,
  },
  s3BackupConfiguration: {
    bucketArn: 'bucketArn',
    roleArn: 'roleArn',

    // the properties below are optional
    bufferingHints: {
      intervalInSeconds: 123,
      sizeInMBs: 123,
    },
    cloudWatchLoggingOptions: {
      enabled: false,
      logGroupName: 'logGroupName',
      logStreamName: 'logStreamName',
    },
    compressionFormat: 'compressionFormat',
    encryptionConfiguration: {
      kmsEncryptionConfig: {
        awskmsKeyArn: 'awskmsKeyArn',
      },
      noEncryptionConfig: 'noEncryptionConfig',
    },
    errorOutputPrefix: 'errorOutputPrefix',
    prefix: 'prefix',
  },
  s3BackupMode: 's3BackupMode',
  secretsManagerConfiguration: {
    enabled: false,

    // the properties below are optional
    roleArn: 'roleArn',
    secretArn: 'secretArn',
  },
  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_kinesisfirehose as kinesisfirehose

redshift_destination_configuration_property = kinesisfirehose.CfnDeliveryStream.RedshiftDestinationConfigurationProperty(
    cluster_jdbcurl="clusterJdbcurl",
    copy_command=kinesisfirehose.CfnDeliveryStream.CopyCommandProperty(
        data_table_name="dataTableName",

        # the properties below are optional
        copy_options="copyOptions",
        data_table_columns="dataTableColumns"
    ),
    role_arn="roleArn",
    s3_configuration=kinesisfirehose.CfnDeliveryStream.S3DestinationConfigurationProperty(
        bucket_arn="bucketArn",
        role_arn="roleArn",

        # the properties below are optional
        buffering_hints=kinesisfirehose.CfnDeliveryStream.BufferingHintsProperty(
            interval_in_seconds=123,
            size_in_m_bs=123
        ),
        cloud_watch_logging_options=kinesisfirehose.CfnDeliveryStream.CloudWatchLoggingOptionsProperty(
            enabled=False,
            log_group_name="logGroupName",
            log_stream_name="logStreamName"
        ),
        compression_format="compressionFormat",
        encryption_configuration=kinesisfirehose.CfnDeliveryStream.EncryptionConfigurationProperty(
            kms_encryption_config=kinesisfirehose.CfnDeliveryStream.KMSEncryptionConfigProperty(
                awskms_key_arn="awskmsKeyArn"
            ),
            no_encryption_config="noEncryptionConfig"
        ),
        error_output_prefix="errorOutputPrefix",
        prefix="prefix"
    ),

    # the properties below are optional
    cloud_watch_logging_options=kinesisfirehose.CfnDeliveryStream.CloudWatchLoggingOptionsProperty(
        enabled=False,
        log_group_name="logGroupName",
        log_stream_name="logStreamName"
    ),
    password="password",
    processing_configuration=kinesisfirehose.CfnDeliveryStream.ProcessingConfigurationProperty(
        enabled=False,
        processors=[kinesisfirehose.CfnDeliveryStream.ProcessorProperty(
            type="type",

            # the properties below are optional
            parameters=[kinesisfirehose.CfnDeliveryStream.ProcessorParameterProperty(
                parameter_name="parameterName",
                parameter_value="parameterValue"
            )]
        )]
    ),
    retry_options=kinesisfirehose.CfnDeliveryStream.RedshiftRetryOptionsProperty(
        duration_in_seconds=123
    ),
    s3_backup_configuration=kinesisfirehose.CfnDeliveryStream.S3DestinationConfigurationProperty(
        bucket_arn="bucketArn",
        role_arn="roleArn",

        # the properties below are optional
        buffering_hints=kinesisfirehose.CfnDeliveryStream.BufferingHintsProperty(
            interval_in_seconds=123,
            size_in_m_bs=123
        ),
        cloud_watch_logging_options=kinesisfirehose.CfnDeliveryStream.CloudWatchLoggingOptionsProperty(
            enabled=False,
            log_group_name="logGroupName",
            log_stream_name="logStreamName"
        ),
        compression_format="compressionFormat",
        encryption_configuration=kinesisfirehose.CfnDeliveryStream.EncryptionConfigurationProperty(
            kms_encryption_config=kinesisfirehose.CfnDeliveryStream.KMSEncryptionConfigProperty(
                awskms_key_arn="awskmsKeyArn"
            ),
            no_encryption_config="noEncryptionConfig"
        ),
        error_output_prefix="errorOutputPrefix",
        prefix="prefix"
    ),
    s3_backup_mode="s3BackupMode",
    secrets_manager_configuration=kinesisfirehose.CfnDeliveryStream.SecretsManagerConfigurationProperty(
        enabled=False,

        # the properties below are optional
        role_arn="roleArn",
        secret_arn="secretArn"
    ),
    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.kinesisfirehose.*;

RedshiftDestinationConfigurationProperty redshiftDestinationConfigurationProperty = RedshiftDestinationConfigurationProperty.builder()
        .clusterJdbcurl("clusterJdbcurl")
        .copyCommand(CopyCommandProperty.builder()
                .dataTableName("dataTableName")

                // the properties below are optional
                .copyOptions("copyOptions")
                .dataTableColumns("dataTableColumns")
                .build())
        .roleArn("roleArn")
        .s3Configuration(S3DestinationConfigurationProperty.builder()
                .bucketArn("bucketArn")
                .roleArn("roleArn")

                // the properties below are optional
                .bufferingHints(BufferingHintsProperty.builder()
                        .intervalInSeconds(123)
                        .sizeInMBs(123)
                        .build())
                .cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty.builder()
                        .enabled(false)
                        .logGroupName("logGroupName")
                        .logStreamName("logStreamName")
                        .build())
                .compressionFormat("compressionFormat")
                .encryptionConfiguration(EncryptionConfigurationProperty.builder()
                        .kmsEncryptionConfig(KMSEncryptionConfigProperty.builder()
                                .awskmsKeyArn("awskmsKeyArn")
                                .build())
                        .noEncryptionConfig("noEncryptionConfig")
                        .build())
                .errorOutputPrefix("errorOutputPrefix")
                .prefix("prefix")
                .build())

        // the properties below are optional
        .cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty.builder()
                .enabled(false)
                .logGroupName("logGroupName")
                .logStreamName("logStreamName")
                .build())
        .password("password")
        .processingConfiguration(ProcessingConfigurationProperty.builder()
                .enabled(false)
                .processors(List.of(ProcessorProperty.builder()
                        .type("type")

                        // the properties below are optional
                        .parameters(List.of(ProcessorParameterProperty.builder()
                                .parameterName("parameterName")
                                .parameterValue("parameterValue")
                                .build()))
                        .build()))
                .build())
        .retryOptions(RedshiftRetryOptionsProperty.builder()
                .durationInSeconds(123)
                .build())
        .s3BackupConfiguration(S3DestinationConfigurationProperty.builder()
                .bucketArn("bucketArn")
                .roleArn("roleArn")

                // the properties below are optional
                .bufferingHints(BufferingHintsProperty.builder()
                        .intervalInSeconds(123)
                        .sizeInMBs(123)
                        .build())
                .cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty.builder()
                        .enabled(false)
                        .logGroupName("logGroupName")
                        .logStreamName("logStreamName")
                        .build())
                .compressionFormat("compressionFormat")
                .encryptionConfiguration(EncryptionConfigurationProperty.builder()
                        .kmsEncryptionConfig(KMSEncryptionConfigProperty.builder()
                                .awskmsKeyArn("awskmsKeyArn")
                                .build())
                        .noEncryptionConfig("noEncryptionConfig")
                        .build())
                .errorOutputPrefix("errorOutputPrefix")
                .prefix("prefix")
                .build())
        .s3BackupMode("s3BackupMode")
        .secretsManagerConfiguration(SecretsManagerConfigurationProperty.builder()
                .enabled(false)

                // the properties below are optional
                .roleArn("roleArn")
                .secretArn("secretArn")
                .build())
        .username("username")
        .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.KinesisFirehose;

var redshiftDestinationConfigurationProperty = new RedshiftDestinationConfigurationProperty {
    ClusterJdbcurl = "clusterJdbcurl",
    CopyCommand = new CopyCommandProperty {
        DataTableName = "dataTableName",

        // the properties below are optional
        CopyOptions = "copyOptions",
        DataTableColumns = "dataTableColumns"
    },
    RoleArn = "roleArn",
    S3Configuration = new S3DestinationConfigurationProperty {
        BucketArn = "bucketArn",
        RoleArn = "roleArn",

        // the properties below are optional
        BufferingHints = new BufferingHintsProperty {
            IntervalInSeconds = 123,
            SizeInMBs = 123
        },
        CloudWatchLoggingOptions = new CloudWatchLoggingOptionsProperty {
            Enabled = false,
            LogGroupName = "logGroupName",
            LogStreamName = "logStreamName"
        },
        CompressionFormat = "compressionFormat",
        EncryptionConfiguration = new EncryptionConfigurationProperty {
            KmsEncryptionConfig = new KMSEncryptionConfigProperty {
                AwskmsKeyArn = "awskmsKeyArn"
            },
            NoEncryptionConfig = "noEncryptionConfig"
        },
        ErrorOutputPrefix = "errorOutputPrefix",
        Prefix = "prefix"
    },

    // the properties below are optional
    CloudWatchLoggingOptions = new CloudWatchLoggingOptionsProperty {
        Enabled = false,
        LogGroupName = "logGroupName",
        LogStreamName = "logStreamName"
    },
    Password = "password",
    ProcessingConfiguration = new ProcessingConfigurationProperty {
        Enabled = false,
        Processors = new [] { new ProcessorProperty {
            Type = "type",

            // the properties below are optional
            Parameters = new [] { new ProcessorParameterProperty {
                ParameterName = "parameterName",
                ParameterValue = "parameterValue"
            } }
        } }
    },
    RetryOptions = new RedshiftRetryOptionsProperty {
        DurationInSeconds = 123
    },
    S3BackupConfiguration = new S3DestinationConfigurationProperty {
        BucketArn = "bucketArn",
        RoleArn = "roleArn",

        // the properties below are optional
        BufferingHints = new BufferingHintsProperty {
            IntervalInSeconds = 123,
            SizeInMBs = 123
        },
        CloudWatchLoggingOptions = new CloudWatchLoggingOptionsProperty {
            Enabled = false,
            LogGroupName = "logGroupName",
            LogStreamName = "logStreamName"
        },
        CompressionFormat = "compressionFormat",
        EncryptionConfiguration = new EncryptionConfigurationProperty {
            KmsEncryptionConfig = new KMSEncryptionConfigProperty {
                AwskmsKeyArn = "awskmsKeyArn"
            },
            NoEncryptionConfig = "noEncryptionConfig"
        },
        ErrorOutputPrefix = "errorOutputPrefix",
        Prefix = "prefix"
    },
    S3BackupMode = "s3BackupMode",
    SecretsManagerConfiguration = new SecretsManagerConfigurationProperty {
        Enabled = false,

        // the properties below are optional
        RoleArn = "roleArn",
        SecretArn = "secretArn"
    },
    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"

redshiftDestinationConfigurationProperty := &RedshiftDestinationConfigurationProperty{
	ClusterJdbcurl: jsii.String("clusterJdbcurl"),
	CopyCommand: &CopyCommandProperty{
		DataTableName: jsii.String("dataTableName"),

		// the properties below are optional
		CopyOptions: jsii.String("copyOptions"),
		DataTableColumns: jsii.String("dataTableColumns"),
	},
	RoleArn: jsii.String("roleArn"),
	S3Configuration: &S3DestinationConfigurationProperty{
		BucketArn: jsii.String("bucketArn"),
		RoleArn: jsii.String("roleArn"),

		// the properties below are optional
		BufferingHints: &BufferingHintsProperty{
			IntervalInSeconds: jsii.Number(123),
			SizeInMBs: jsii.Number(123),
		},
		CloudWatchLoggingOptions: &CloudWatchLoggingOptionsProperty{
			Enabled: jsii.Boolean(false),
			LogGroupName: jsii.String("logGroupName"),
			LogStreamName: jsii.String("logStreamName"),
		},
		CompressionFormat: jsii.String("compressionFormat"),
		EncryptionConfiguration: &EncryptionConfigurationProperty{
			KmsEncryptionConfig: &KMSEncryptionConfigProperty{
				AwskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			NoEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		ErrorOutputPrefix: jsii.String("errorOutputPrefix"),
		Prefix: jsii.String("prefix"),
	},

	// the properties below are optional
	CloudWatchLoggingOptions: &CloudWatchLoggingOptionsProperty{
		Enabled: jsii.Boolean(false),
		LogGroupName: jsii.String("logGroupName"),
		LogStreamName: jsii.String("logStreamName"),
	},
	Password: jsii.String("password"),
	ProcessingConfiguration: &ProcessingConfigurationProperty{
		Enabled: jsii.Boolean(false),
		Processors: []interface{}{
			&ProcessorProperty{
				Type: jsii.String("type"),

				// the properties below are optional
				Parameters: []interface{}{
					&ProcessorParameterProperty{
						ParameterName: jsii.String("parameterName"),
						ParameterValue: jsii.String("parameterValue"),
					},
				},
			},
		},
	},
	RetryOptions: &RedshiftRetryOptionsProperty{
		DurationInSeconds: jsii.Number(123),
	},
	S3BackupConfiguration: &S3DestinationConfigurationProperty{
		BucketArn: jsii.String("bucketArn"),
		RoleArn: jsii.String("roleArn"),

		// the properties below are optional
		BufferingHints: &BufferingHintsProperty{
			IntervalInSeconds: jsii.Number(123),
			SizeInMBs: jsii.Number(123),
		},
		CloudWatchLoggingOptions: &CloudWatchLoggingOptionsProperty{
			Enabled: jsii.Boolean(false),
			LogGroupName: jsii.String("logGroupName"),
			LogStreamName: jsii.String("logStreamName"),
		},
		CompressionFormat: jsii.String("compressionFormat"),
		EncryptionConfiguration: &EncryptionConfigurationProperty{
			KmsEncryptionConfig: &KMSEncryptionConfigProperty{
				AwskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			NoEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		ErrorOutputPrefix: jsii.String("errorOutputPrefix"),
		Prefix: jsii.String("prefix"),
	},
	S3BackupMode: jsii.String("s3BackupMode"),
	SecretsManagerConfiguration: &SecretsManagerConfigurationProperty{
		Enabled: jsii.Boolean(false),

		// the properties below are optional
		RoleArn: jsii.String("roleArn"),
		SecretArn: jsii.String("secretArn"),
	},
	Username: jsii.String("username"),
}

Properties ​

cloudWatchLoggingOptionsoptionalIResolvable | CfnDeliveryStream.CloudWatchLoggingOptionsPropertycloud_watch_logging_optionsoptionaltyping.Union[IResolvable, CloudWatchLoggingOptionsProperty]cloudWatchLoggingOptionsoptionalIResolvableCloudWatchLoggingOptionsoptionalIResolvableCloudWatchLoggingOptionsoptionalinterface{} #
The CloudWatch logging options for your Firehose stream.
clusterJdbcurlstringcluster_jdbcurlstrclusterJdbcurlStringClusterJdbcurlstringClusterJdbcurl*string required #
The connection string that Kinesis Data Firehose uses to connect to the Amazon Redshift cluster.
copyCommandIResolvable | CfnDeliveryStream.CopyCommandPropertycopy_commandtyping.Union[IResolvable, CopyCommandProperty]copyCommandIResolvableCopyCommandIResolvableCopyCommandinterface{} required #
Configures the Amazon Redshift `COPY` command that Kinesis Data Firehose uses to load data into the cluster from the Amazon S3 bucket.
passwordoptionalstringpasswordoptionalstrpasswordoptionalStringPasswordoptionalstringPasswordoptional*string #
The password for the Amazon Redshift user that you specified in the `Username` property.
processingConfigurationoptionalIResolvable | CfnDeliveryStream.ProcessingConfigurationPropertyprocessing_configurationoptionaltyping.Union[IResolvable, ProcessingConfigurationProperty]processingConfigurationoptionalIResolvableProcessingConfigurationoptionalIResolvableProcessingConfigurationoptionalinterface{} #
The data processing configuration for the Kinesis Data Firehose delivery stream.
retryOptionsoptionalIResolvable | CfnDeliveryStream.RedshiftRetryOptionsPropertyretry_optionsoptionaltyping.Union[IResolvable, RedshiftRetryOptionsProperty]retryOptionsoptionalIResolvableRetryOptionsoptionalIResolvableRetryOptionsoptionalinterface{} #
The retry behavior in case Firehose is unable to deliver documents to Amazon Redshift.

Default value is 3600 (60 minutes).

roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*string required #
The ARN of the AWS Identity and Access Management (IAM) role that grants Kinesis Data Firehose access to your Amazon S3 bucket and AWS KMS (if you enable data encryption).

For more information, see Grant Kinesis Data Firehose Access to an Amazon Redshift Destination in the Amazon Kinesis Data Firehose Developer Guide .

s3BackupConfigurationoptionalIResolvable | CfnDeliveryStream.S3DestinationConfigurationPropertys3_backup_configurationoptionaltyping.Union[IResolvable, S3DestinationConfigurationProperty]s3BackupConfigurationoptionalIResolvableS3BackupConfigurationoptionalIResolvableS3BackupConfigurationoptionalinterface{} #
The configuration for backup in Amazon S3.
s3BackupModeoptionalstrings3_backup_modeoptionalstrs3BackupModeoptionalStringS3BackupModeoptionalstringS3BackupModeoptional*string #
The Amazon S3 backup mode.

After you create a Firehose stream, you can update it to enable Amazon S3 backup if it is disabled. If backup is enabled, you can't update the Firehose stream to disable it.

s3ConfigurationIResolvable | CfnDeliveryStream.S3DestinationConfigurationPropertys3_configurationtyping.Union[IResolvable, S3DestinationConfigurationProperty]s3ConfigurationIResolvableS3ConfigurationIResolvableS3Configurationinterface{} required #
The S3 bucket where Kinesis Data Firehose first delivers data.
notes

After the data is in the bucket, Kinesis Data Firehose uses the COPY command to load the data into the Amazon Redshift cluster. For the Amazon S3 bucket's compression format, don't specify SNAPPY or ZIP because the Amazon Redshift COPY command doesn't support them.

secretsManagerConfigurationoptionalIResolvable | CfnDeliveryStream.SecretsManagerConfigurationPropertysecrets_manager_configurationoptionaltyping.Union[IResolvable, SecretsManagerConfigurationProperty]secretsManagerConfigurationoptionalIResolvableSecretsManagerConfigurationoptionalIResolvableSecretsManagerConfigurationoptionalinterface{} #
The configuration that defines how you access secrets for Amazon Redshift.
usernameoptionalstringusernameoptionalstrusernameoptionalStringUsernameoptionalstringUsernameoptional*string #
The Amazon Redshift user that has permission to access the Amazon Redshift cluster.

This user must have INSERT privileges for copying data from the Amazon S3 bucket to the cluster.