Class: AWSCDK::AppFlow::CfnFlow::ErrorHandlingConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_flow/cfn_flow.rb

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_name: nil, bucket_prefix: nil, fail_on_first_error: nil) ⇒ ErrorHandlingConfigProperty

Returns a new instance of ErrorHandlingConfigProperty.

Parameters:

  • bucket_name (String, nil) (defaults to: nil)

    Specifies the name of the Amazon S3 bucket.

  • bucket_prefix (String, nil) (defaults to: nil)

    Specifies the Amazon S3 bucket prefix.

  • fail_on_first_error (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination.



1379
1380
1381
1382
1383
1384
1385
1386
# File 'app_flow/cfn_flow.rb', line 1379

def initialize(bucket_name: nil, bucket_prefix: nil, fail_on_first_error: nil)
  @bucket_name = bucket_name
  Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName") unless @bucket_name.nil?
  @bucket_prefix = bucket_prefix
  Jsii::Type.check_type(@bucket_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketPrefix") unless @bucket_prefix.nil?
  @fail_on_first_error = fail_on_first_error
  Jsii::Type.check_type(@fail_on_first_error, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "failOnFirstError") unless @fail_on_first_error.nil?
end

Instance Attribute Details

#bucket_nameString? (readonly)

Specifies the name of the Amazon S3 bucket.



1392
1393
1394
# File 'app_flow/cfn_flow.rb', line 1392

def bucket_name
  @bucket_name
end

#bucket_prefixString? (readonly)

Specifies the Amazon S3 bucket prefix.



1397
1398
1399
# File 'app_flow/cfn_flow.rb', line 1397

def bucket_prefix
  @bucket_prefix
end

#fail_on_first_errorBoolean, ... (readonly)

Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination.



1402
1403
1404
# File 'app_flow/cfn_flow.rb', line 1402

def fail_on_first_error
  @fail_on_first_error
end

Class Method Details

.jsii_propertiesObject



1404
1405
1406
1407
1408
1409
1410
# File 'app_flow/cfn_flow.rb', line 1404

def self.jsii_properties
  {
    :bucket_name => "bucketName",
    :bucket_prefix => "bucketPrefix",
    :fail_on_first_error => "failOnFirstError",
  }
end

Instance Method Details

#to_jsiiObject



1412
1413
1414
1415
1416
1417
1418
1419
1420
# File 'app_flow/cfn_flow.rb', line 1412

def to_jsii
  result = {}
  result.merge!({
    "bucketName" => @bucket_name,
    "bucketPrefix" => @bucket_prefix,
    "failOnFirstError" => @fail_on_first_error,
  })
  result.compact
end