# EventBridgeDestinationPropertiesProperty

The properties that are applied when Amazon EventBridge 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 eventBridgeDestinationPropertiesProperty: appflow.CfnFlow.EventBridgeDestinationPropertiesProperty = {
  object: 'object',

  // the properties below are optional
  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

event_bridge_destination_properties_property = appflow.CfnFlow.EventBridgeDestinationPropertiesProperty(
    object="object",

    # the properties below are optional
    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.*;

EventBridgeDestinationPropertiesProperty eventBridgeDestinationPropertiesProperty = EventBridgeDestinationPropertiesProperty.builder()
        .object("object")

        // the properties below are optional
        .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 eventBridgeDestinationPropertiesProperty = new EventBridgeDestinationPropertiesProperty {
    Object = "object",

    // the properties below are optional
    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"

eventBridgeDestinationPropertiesProperty := &EventBridgeDestinationPropertiesProperty{
	Object: jsii.String("object"),

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

## Properties

- `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 object specified in the Amplitude flow source.

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