Skip to content
v2.278.0

SAPODataDestinationPropertiesProperty Struct ​

The properties that are applied when using SAPOData as a flow destination.

Example ​

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
# 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
// 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();
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
// 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 ​

errorHandlingConfigoptionalIResolvable | CfnFlow.ErrorHandlingConfigPropertyerror_handling_configoptionaltyping.Union[IResolvable, ErrorHandlingConfigProperty]errorHandlingConfigoptionalIResolvableErrorHandlingConfigoptionalIResolvableErrorHandlingConfigoptionalinterface{} #
The settings that determine how Amazon AppFlow handles an error when placing data in the destination.
notes

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.

idFieldNamesoptionalstring[]id_field_namesoptionaltyping.List[str]idFieldNamesoptionalList<String>IdFieldNamesoptionalstring[]IdFieldNamesoptional*[]*string #
A list of field names that can be used as an ID field when performing a write operation.
objectPathstringobject_pathstrobjectPathStringObjectPathstringObjectPath*string required #
The object path specified in the SAPOData flow destination.
successResponseHandlingConfigoptionalIResolvable | CfnFlow.SuccessResponseHandlingConfigPropertysuccess_response_handling_configoptionaltyping.Union[IResolvable, SuccessResponseHandlingConfigProperty]successResponseHandlingConfigoptionalIResolvableSuccessResponseHandlingConfigoptionalIResolvableSuccessResponseHandlingConfigoptionalinterface{} #
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.

writeOperationTypeoptionalstringwrite_operation_typeoptionalstrwriteOperationTypeoptionalStringWriteOperationTypeoptionalstringWriteOperationTypeoptional*string #
The possible write operations in the destination connector.

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