# SAPODataDestinationPropertiesProperty

Struct · External

The properties that are applied when using SAPOData as a flow 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 sAPODataDestinationPropertiesProperty: appflow.CfnFlow.SAPODataDestinationPropertiesProperty = {
  objectPath: 'objectPath',

  // the properties below are optional
  errorHandlingConfig: {
    bucketName: 'bucketName',
    bucketPrefix: 'bucketPrefix',
    failOnFirstError: false,
  },
  idFieldNames: ['idFieldNames'],
  successResponseHandlingConfig: {
    bucketName: 'bucketName',
    bucketPrefix: 'bucketPrefix',
  },
  writeOperationType: 'writeOperationType',
};
```

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

s_apo_data_destination_properties_property = appflow.CfnFlow.SAPODataDestinationPropertiesProperty(
    object_path="objectPath",

    # the properties below are optional
    error_handling_config=appflow.CfnFlow.ErrorHandlingConfigProperty(
        bucket_name="bucketName",
        bucket_prefix="bucketPrefix",
        fail_on_first_error=False
    ),
    id_field_names=["idFieldNames"],
    success_response_handling_config=appflow.CfnFlow.SuccessResponseHandlingConfigProperty(
        bucket_name="bucketName",
        bucket_prefix="bucketPrefix"
    ),
    write_operation_type="writeOperationType"
)
```

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

SAPODataDestinationPropertiesProperty sAPODataDestinationPropertiesProperty = SAPODataDestinationPropertiesProperty.builder()
        .objectPath("objectPath")

        // the properties below are optional
        .errorHandlingConfig(ErrorHandlingConfigProperty.builder()
                .bucketName("bucketName")
                .bucketPrefix("bucketPrefix")
                .failOnFirstError(false)
                .build())
        .idFieldNames(List.of("idFieldNames"))
        .successResponseHandlingConfig(SuccessResponseHandlingConfigProperty.builder()
                .bucketName("bucketName")
                .bucketPrefix("bucketPrefix")
                .build())
        .writeOperationType("writeOperationType")
        .build();
```

C#:

```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 sAPODataDestinationPropertiesProperty = new SAPODataDestinationPropertiesProperty {
    ObjectPath = "objectPath",

    // the properties below are optional
    ErrorHandlingConfig = new ErrorHandlingConfigProperty {
        BucketName = "bucketName",
        BucketPrefix = "bucketPrefix",
        FailOnFirstError = false
    },
    IdFieldNames = new [] { "idFieldNames" },
    SuccessResponseHandlingConfig = new SuccessResponseHandlingConfigProperty {
        BucketName = "bucketName",
        BucketPrefix = "bucketPrefix"
    },
    WriteOperationType = "writeOperationType"
};
```

Go:

```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"

sAPODataDestinationPropertiesProperty := &SAPODataDestinationPropertiesProperty{
	ObjectPath: jsii.String("objectPath"),

	// the properties below are optional
	ErrorHandlingConfig: &ErrorHandlingConfigProperty{
		BucketName: jsii.String("bucketName"),
		BucketPrefix: jsii.String("bucketPrefix"),
		FailOnFirstError: jsii.Boolean(false),
	},
	IdFieldNames: []*string{
		jsii.String("idFieldNames"),
	},
	SuccessResponseHandlingConfig: &SuccessResponseHandlingConfigProperty{
		BucketName: jsii.String("bucketName"),
		BucketPrefix: jsii.String("bucketPrefix"),
	},
	WriteOperationType: jsii.String("writeOperationType"),
}
```

## 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 settings that determine how Amazon AppFlow handles an error when placing data in the 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.

- `idFieldNames`: string[] — A list of field names that can be used as an ID field when performing a write operation.

- `objectPath`: string (required) — The object path specified in the SAPOData flow destination.

- `successResponseHandlingConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.SuccessResponseHandlingConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnFlow.SuccessResponseHandlingConfigProperty.html) — Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data.

  For example, this setting would determine where to write the response from a destination connector upon a successful insert operation.

- `writeOperationType`: string — The possible write operations in the destination connector.

  When this value is not provided, this defaults to the `INSERT` operation.
