RedshiftSettingsProperty Struct
Provides information that defines an Amazon Redshift endpoint.
This information includes the output format of records applied to the endpoint and details of transaction and control table data information. For more information about other available settings, see Extra connection attributes when using Amazon Redshift as a target for AWS DMS in the AWS Database Migration Service User Guide .
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dms as dms } from 'aws-cdk-lib';
const redshiftSettingsProperty: dms.CfnEndpoint.RedshiftSettingsProperty = {
acceptAnyDate: false,
afterConnectScript: 'afterConnectScript',
bucketFolder: 'bucketFolder',
bucketName: 'bucketName',
caseSensitiveNames: false,
compUpdate: false,
connectionTimeout: 123,
dateFormat: 'dateFormat',
emptyAsNull: false,
encryptionMode: 'encryptionMode',
explicitIds: false,
fileTransferUploadStreams: 123,
loadTimeout: 123,
mapBooleanAsBoolean: false,
maxFileSize: 123,
removeQuotes: false,
replaceChars: 'replaceChars',
replaceInvalidChars: 'replaceInvalidChars',
secretsManagerAccessRoleArn: 'secretsManagerAccessRoleArn',
secretsManagerSecretId: 'secretsManagerSecretId',
serverSideEncryptionKmsKeyId: 'serverSideEncryptionKmsKeyId',
serviceAccessRoleArn: 'serviceAccessRoleArn',
timeFormat: 'timeFormat',
trimBlanks: false,
truncateColumns: false,
writeBufferSize: 123,
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dms as dms
redshift_settings_property = dms.CfnEndpoint.RedshiftSettingsProperty(
accept_any_date=False,
after_connect_script="afterConnectScript",
bucket_folder="bucketFolder",
bucket_name="bucketName",
case_sensitive_names=False,
comp_update=False,
connection_timeout=123,
date_format="dateFormat",
empty_as_null=False,
encryption_mode="encryptionMode",
explicit_ids=False,
file_transfer_upload_streams=123,
load_timeout=123,
map_boolean_as_boolean=False,
max_file_size=123,
remove_quotes=False,
replace_chars="replaceChars",
replace_invalid_chars="replaceInvalidChars",
secrets_manager_access_role_arn="secretsManagerAccessRoleArn",
secrets_manager_secret_id="secretsManagerSecretId",
server_side_encryption_kms_key_id="serverSideEncryptionKmsKeyId",
service_access_role_arn="serviceAccessRoleArn",
time_format="timeFormat",
trim_blanks=False,
truncate_columns=False,
write_buffer_size=123
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dms.*;
RedshiftSettingsProperty redshiftSettingsProperty = RedshiftSettingsProperty.builder()
.acceptAnyDate(false)
.afterConnectScript("afterConnectScript")
.bucketFolder("bucketFolder")
.bucketName("bucketName")
.caseSensitiveNames(false)
.compUpdate(false)
.connectionTimeout(123)
.dateFormat("dateFormat")
.emptyAsNull(false)
.encryptionMode("encryptionMode")
.explicitIds(false)
.fileTransferUploadStreams(123)
.loadTimeout(123)
.mapBooleanAsBoolean(false)
.maxFileSize(123)
.removeQuotes(false)
.replaceChars("replaceChars")
.replaceInvalidChars("replaceInvalidChars")
.secretsManagerAccessRoleArn("secretsManagerAccessRoleArn")
.secretsManagerSecretId("secretsManagerSecretId")
.serverSideEncryptionKmsKeyId("serverSideEncryptionKmsKeyId")
.serviceAccessRoleArn("serviceAccessRoleArn")
.timeFormat("timeFormat")
.trimBlanks(false)
.truncateColumns(false)
.writeBufferSize(123)
.build();
// 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.DMS;
var redshiftSettingsProperty = new RedshiftSettingsProperty {
AcceptAnyDate = false,
AfterConnectScript = "afterConnectScript",
BucketFolder = "bucketFolder",
BucketName = "bucketName",
CaseSensitiveNames = false,
CompUpdate = false,
ConnectionTimeout = 123,
DateFormat = "dateFormat",
EmptyAsNull = false,
EncryptionMode = "encryptionMode",
ExplicitIds = false,
FileTransferUploadStreams = 123,
LoadTimeout = 123,
MapBooleanAsBoolean = false,
MaxFileSize = 123,
RemoveQuotes = false,
ReplaceChars = "replaceChars",
ReplaceInvalidChars = "replaceInvalidChars",
SecretsManagerAccessRoleArn = "secretsManagerAccessRoleArn",
SecretsManagerSecretId = "secretsManagerSecretId",
ServerSideEncryptionKmsKeyId = "serverSideEncryptionKmsKeyId",
ServiceAccessRoleArn = "serviceAccessRoleArn",
TimeFormat = "timeFormat",
TrimBlanks = false,
TruncateColumns = false,
WriteBufferSize = 123
};
// 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"
redshiftSettingsProperty := &RedshiftSettingsProperty{
AcceptAnyDate: jsii.Boolean(false),
AfterConnectScript: jsii.String("afterConnectScript"),
BucketFolder: jsii.String("bucketFolder"),
BucketName: jsii.String("bucketName"),
CaseSensitiveNames: jsii.Boolean(false),
CompUpdate: jsii.Boolean(false),
ConnectionTimeout: jsii.Number(123),
DateFormat: jsii.String("dateFormat"),
EmptyAsNull: jsii.Boolean(false),
EncryptionMode: jsii.String("encryptionMode"),
ExplicitIds: jsii.Boolean(false),
FileTransferUploadStreams: jsii.Number(123),
LoadTimeout: jsii.Number(123),
MapBooleanAsBoolean: jsii.Boolean(false),
MaxFileSize: jsii.Number(123),
RemoveQuotes: jsii.Boolean(false),
ReplaceChars: jsii.String("replaceChars"),
ReplaceInvalidChars: jsii.String("replaceInvalidChars"),
SecretsManagerAccessRoleArn: jsii.String("secretsManagerAccessRoleArn"),
SecretsManagerSecretId: jsii.String("secretsManagerSecretId"),
ServerSideEncryptionKmsKeyId: jsii.String("serverSideEncryptionKmsKeyId"),
ServiceAccessRoleArn: jsii.String("serviceAccessRoleArn"),
TimeFormat: jsii.String("timeFormat"),
TrimBlanks: jsii.Boolean(false),
TruncateColumns: jsii.Boolean(false),
WriteBufferSize: jsii.Number(123),
}
Properties
acceptAnyDateoptionalboolean | IResolvableaccept_any_dateoptionaltyping.Union[bool, IResolvable]acceptAnyDateoptionalBooleanAcceptAnyDateoptionalboolAcceptAnyDateoptionalinterface{} #notes
You can choose true or false (the default).
This parameter applies only to TIMESTAMP and DATE columns. Always use ACCEPTANYDATE with the DATEFORMAT parameter. If the date format for the data doesn't match the DATEFORMAT specification, Amazon Redshift inserts a NULL value into that field.
afterConnectScriptoptionalstringafter_connect_scriptoptionalstrafterConnectScriptoptionalStringAfterConnectScriptoptionalstringAfterConnectScriptoptional*string #This parameter should contain the code itself, not the name of a file containing the code.
bucketFolderoptionalstringbucket_folderoptionalstrbucketFolderoptionalStringBucketFolderoptionalstringBucketFolderoptional*string #notes
For full load mode, AWS DMS converts source records into .csv files and loads them to the BucketFolder/TableID path. AWS DMS uses the Redshift COPY command to upload the .csv files to the target table. The files are deleted once the COPY operation has finished. For more information, see COPY in the Amazon Redshift Database Developer Guide .
For change-data-capture (CDC) mode, AWS DMS creates a NetChanges table, and loads the .csv files to this BucketFolder/NetChangesTableID path.
bucketNameoptionalstringbucket_nameoptionalstrbucketNameoptionalStringBucketNameoptionalstringBucketNameoptional*string #caseSensitiveNamesoptionalboolean | IResolvablecase_sensitive_namesoptionaltyping.Union[bool, IResolvable]caseSensitiveNamesoptionalBooleanCaseSensitiveNamesoptionalboolCaseSensitiveNamesoptionalinterface{} #The default is false .
compUpdateoptionalboolean | IResolvablecomp_updateoptionaltyping.Union[bool, IResolvable]compUpdateoptionalBooleanCompUpdateoptionalboolCompUpdateoptionalinterface{} #This applies even if the table columns already have encodings other than RAW . If you set CompUpdate to false , automatic compression is disabled and existing column encodings aren't changed. The default is true .
connectionTimeoutoptionalnumberconnection_timeoutoptionalint | floatconnectionTimeoutoptionalNumberConnectionTimeoutoptionaldoubleConnectionTimeoutoptional*float64 #dateFormatoptionalstringdate_formatoptionalstrdateFormatoptionalStringDateFormatoptionalstringDateFormatoptional*string #notes
Valid values are auto (case-sensitive), your date format string enclosed in quotes, or NULL. If this parameter is left unset (NULL), it defaults to a format of 'YYYY-MM-DD'. Using auto recognizes most strings, even some that aren't supported when you use a date format string.
If your date and time values use formats different from each other, set this to auto .
emptyAsNulloptionalboolean | IResolvableempty_as_nulloptionaltyping.Union[bool, IResolvable]emptyAsNulloptionalBooleanEmptyAsNulloptionalboolEmptyAsNulloptionalinterface{} #A value of true sets empty CHAR and VARCHAR fields to null. The default is false .
encryptionModeoptionalstringencryption_modeoptionalstrencryptionModeoptionalStringEncryptionModeoptionalstringEncryptionModeoptional*string #notes
This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either SSE_S3 (the default) or SSE_KMS .
For the
ModifyEndpointoperation, you can change the existing value of theEncryptionModeparameter fromSSE_KMStoSSE_S3. But you can’t change the existing value fromSSE_S3toSSE_KMS.
To use SSE_S3 , create an AWS Identity and Access Management (IAM) role with a policy that allows "arn:aws:s3:::*" to use the following actions: "s3:PutObject", "s3:ListBucket"
explicitIdsoptionalboolean | IResolvableexplicit_idsoptionaltyping.Union[bool, IResolvable]explicitIdsoptionalBooleanExplicitIdsoptionalboolExplicitIdsoptionalinterface{} #Set ExplicitIds to true to have tables with IDENTITY columns override their auto-generated values with explicit values loaded from the source data files used to populate the tables. The default is false .
fileTransferUploadStreamsoptionalnumberfile_transfer_upload_streamsoptionalint | floatfileTransferUploadStreamsoptionalNumberFileTransferUploadStreamsoptionaldoubleFileTransferUploadStreamsoptional*float64 #notes
This parameter accepts a value from 1 through 64. It defaults to 10.
The number of parallel streams used to upload a single .csv file to an S3 bucket using S3 Multipart Upload. For more information, see Multipart upload overview .
FileTransferUploadStreams accepts a value from 1 through 64. It defaults to 10.
loadTimeoutoptionalnumberload_timeoutoptionalint | floatloadTimeoutoptionalNumberLoadTimeoutoptionaldoubleLoadTimeoutoptional*float64 #mapBooleanAsBooleanoptionalboolean | IResolvablemap_boolean_as_booleanoptionaltyping.Union[bool, IResolvable]mapBooleanAsBooleanoptionalBooleanMapBooleanAsBooleanoptionalboolMapBooleanAsBooleanoptionalinterface{} #By default, Redshift migrates booleans as varchar(1) . You must set this setting on both the source and target endpoints for it to take effect.
maxFileSizeoptionalnumbermax_file_sizeoptionalint | floatmaxFileSizeoptionalNumberMaxFileSizeoptionaldoubleMaxFileSizeoptional*float64 #removeQuotesoptionalboolean | IResolvableremove_quotesoptionaltyping.Union[bool, IResolvable]removeQuotesoptionalBooleanRemoveQuotesoptionalboolRemoveQuotesoptionalinterface{} #All characters within the quotation marks, including delimiters, are retained. Choose true to remove quotation marks. The default is false .
replaceCharsoptionalstringreplace_charsoptionalstrreplaceCharsoptionalStringReplaceCharsoptionalstringReplaceCharsoptional*string #The default is "?" .
replaceInvalidCharsoptionalstringreplace_invalid_charsoptionalstrreplaceInvalidCharsoptionalStringReplaceInvalidCharsoptionalstringReplaceInvalidCharsoptional*string #Use with ReplaceChars .
secretsManagerAccessRoleArnoptionalstringsecrets_manager_access_role_arnoptionalstrsecretsManagerAccessRoleArnoptionalStringSecretsManagerAccessRoleArnoptionalstringSecretsManagerAccessRoleArnoptional*string #notes
The role must allow the iam:PassRole action. SecretsManagerSecret has the value of the AWS Secrets Manager secret that allows access to the Amazon Redshift endpoint.
You can specify one of two sets of values for these permissions. You can specify the values for this setting and
SecretsManagerSecretId. Or you can specify clear-text values forUserName,Password,ServerName, andPort. You can't specify both.For more information on creating this
SecretsManagerSecret, the correspondingSecretsManagerAccessRoleArn, and theSecretsManagerSecretIdthat is required to access it, see Using secrets to access AWS Database Migration Service resources in the AWS Database Migration Service User Guide .
secretsManagerSecretIdoptionalstringsecrets_manager_secret_idoptionalstrsecretsManagerSecretIdoptionalStringSecretsManagerSecretIdoptionalstringSecretsManagerSecretIdoptional*string #serverSideEncryptionKmsKeyIdoptionalstringserver_side_encryption_kms_key_idoptionalstrserverSideEncryptionKmsKeyIdoptionalStringServerSideEncryptionKmsKeyIdoptionalstringServerSideEncryptionKmsKeyIdoptional*string #If you are using SSE_KMS for the EncryptionMode , provide this key ID. The key that you use needs an attached policy that enables IAM user permissions and allows use of the key.
serviceAccessRoleArnoptionalstringservice_access_role_arnoptionalstrserviceAccessRoleArnoptionalStringServiceAccessRoleArnoptionalstringServiceAccessRoleArnoptional*string #The role must allow the iam:PassRole action.
timeFormatoptionalstringtime_formatoptionalstrtimeFormatoptionalStringTimeFormatoptionalstringTimeFormatoptional*string #notes
Valid values are auto (case-sensitive), 'timeformat_string' , 'epochsecs' , or 'epochmillisecs' . It defaults to 10. Using auto recognizes most strings, even some that aren't supported when you use a time format string.
If your date and time values use formats different from each other, set this parameter to auto .
trimBlanksoptionalboolean | IResolvabletrim_blanksoptionaltyping.Union[bool, IResolvable]trimBlanksoptionalBooleanTrimBlanksoptionalboolTrimBlanksoptionalinterface{} #This parameter applies only to columns with a VARCHAR data type. Choose true to remove unneeded white space. The default is false .
truncateColumnsoptionalboolean | IResolvabletruncate_columnsoptionaltyping.Union[bool, IResolvable]truncateColumnsoptionalBooleanTruncateColumnsoptionalboolTruncateColumnsoptionalinterface{} #This parameter applies only to columns with a VARCHAR or CHAR data type, and rows with a size of 4 MB or less. Choose true to truncate data. The default is false .
writeBufferSizeoptionalnumberwrite_buffer_sizeoptionalint | floatwriteBufferSizeoptionalNumberWriteBufferSizeoptionaldoubleWriteBufferSizeoptional*float64 #