# RedshiftDestinationPropertiesProperty

The properties that are applied when Amazon Redshift is being used as a destination.

- 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_appflow as appflow } from 'aws-cdk-lib';
const redshiftDestinationPropertiesProperty: appflow.CfnFlow.RedshiftDestinationPropertiesProperty = {
  intermediateBucketName: 'intermediateBucketName',
  object: 'object',

  // the properties below are optional
  bucketPrefix: 'bucketPrefix',
  errorHandlingConfig: {
    bucketName: 'bucketName',
    bucketPrefix: 'bucketPrefix',
    failOnFirstError: false,
  },
};
```

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_appflow as appflow

redshift_destination_properties_property = appflow.CfnFlow.RedshiftDestinationPropertiesProperty(
    intermediate_bucket_name="intermediateBucketName",
    object="object",

    # the properties below are optional
    bucket_prefix="bucketPrefix",
    error_handling_config=appflow.CfnFlow.ErrorHandlingConfigProperty(
        bucket_name="bucketName",
        bucket_prefix="bucketPrefix",
        fail_on_first_error=False
    )
)
```

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.appflow.*;

RedshiftDestinationPropertiesProperty redshiftDestinationPropertiesProperty = RedshiftDestinationPropertiesProperty.builder()
        .intermediateBucketName("intermediateBucketName")
        .object("object")

        // the properties below are optional
        .bucketPrefix("bucketPrefix")
        .errorHandlingConfig(ErrorHandlingConfigProperty.builder()
                .bucketName("bucketName")
                .bucketPrefix("bucketPrefix")
                .failOnFirstError(false)
                .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.AppFlow;

var redshiftDestinationPropertiesProperty = new RedshiftDestinationPropertiesProperty {
    IntermediateBucketName = "intermediateBucketName",
    Object = "object",

    // the properties below are optional
    BucketPrefix = "bucketPrefix",
    ErrorHandlingConfig = new ErrorHandlingConfigProperty {
        BucketName = "bucketName",
        BucketPrefix = "bucketPrefix",
        FailOnFirstError = false
    }
};
```

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"

redshiftDestinationPropertiesProperty := &RedshiftDestinationPropertiesProperty{
	IntermediateBucketName: jsii.String("intermediateBucketName"),
	Object: jsii.String("object"),

	// the properties below are optional
	BucketPrefix: jsii.String("bucketPrefix"),
	ErrorHandlingConfig: &ErrorHandlingConfigProperty{
		BucketName: jsii.String("bucketName"),
		BucketPrefix: jsii.String("bucketPrefix"),
		FailOnFirstError: jsii.Boolean(false),
	},
}
```

## Properties

- `bucketPrefix`: string — The object key for the bucket in which Amazon AppFlow places the destination files.

- `errorHandlingConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.ErrorHandlingConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnFlow.ErrorHandlingConfigProperty.html) — The settings that determine how Amazon AppFlow handles an error when placing data in the Amazon Redshift destination.

  For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure. `ErrorHandlingConfig` is a part of the destination connector details.

- `intermediateBucketName`: string (required) — The intermediate bucket that Amazon AppFlow uses when moving data into Amazon Redshift.

- `object`: string (required) — The object specified in the Amazon Redshift flow destination.
