Class: AWSCDK::AppFlow::CfnFlow::RedshiftDestinationPropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppFlow::CfnFlow::RedshiftDestinationPropertiesProperty
- Defined in:
- app_flow/cfn_flow.rb
Overview
The properties that are applied when Amazon Redshift is being used as a destination.
Instance Attribute Summary collapse
-
#bucket_prefix ⇒ String?
readonly
The object key for the bucket in which Amazon AppFlow places the destination files.
-
#error_handling_config ⇒ AWSCDK::IResolvable, ...
readonly
The settings that determine how Amazon AppFlow handles an error when placing data in the Amazon Redshift destination.
-
#intermediate_bucket_name ⇒ String
readonly
The intermediate bucket that Amazon AppFlow uses when moving data into Amazon Redshift.
-
#object ⇒ String
readonly
The object specified in the Amazon Redshift flow destination.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(intermediate_bucket_name:, object:, bucket_prefix: nil, error_handling_config: nil) ⇒ RedshiftDestinationPropertiesProperty
constructor
A new instance of RedshiftDestinationPropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(intermediate_bucket_name:, object:, bucket_prefix: nil, error_handling_config: nil) ⇒ RedshiftDestinationPropertiesProperty
Returns a new instance of RedshiftDestinationPropertiesProperty.
1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 |
# File 'app_flow/cfn_flow.rb', line 1866 def initialize(intermediate_bucket_name:, object:, bucket_prefix: nil, error_handling_config: nil) @intermediate_bucket_name = intermediate_bucket_name Jsii::Type.check_type(@intermediate_bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "intermediateBucketName") @object = object Jsii::Type.check_type(@object, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "object") @bucket_prefix = bucket_prefix Jsii::Type.check_type(@bucket_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketPrefix") unless @bucket_prefix.nil? @error_handling_config = error_handling_config.is_a?(Hash) ? ::AWSCDK::AppFlow::CfnFlow::ErrorHandlingConfigProperty.new(**error_handling_config.transform_keys(&:to_sym)) : error_handling_config Jsii::Type.check_type(@error_handling_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBmbG93LkNmbkZsb3cuRXJyb3JIYW5kbGluZ0NvbmZpZ1Byb3BlcnR5In1dfX0=")), "errorHandlingConfig") unless @error_handling_config.nil? end |
Instance Attribute Details
#bucket_prefix ⇒ String? (readonly)
The object key for the bucket in which Amazon AppFlow places the destination files.
1891 1892 1893 |
# File 'app_flow/cfn_flow.rb', line 1891 def bucket_prefix @bucket_prefix end |
#error_handling_config ⇒ AWSCDK::IResolvable, ... (readonly)
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.
1898 1899 1900 |
# File 'app_flow/cfn_flow.rb', line 1898 def error_handling_config @error_handling_config end |
#intermediate_bucket_name ⇒ String (readonly)
The intermediate bucket that Amazon AppFlow uses when moving data into Amazon Redshift.
1881 1882 1883 |
# File 'app_flow/cfn_flow.rb', line 1881 def intermediate_bucket_name @intermediate_bucket_name end |
#object ⇒ String (readonly)
The object specified in the Amazon Redshift flow destination.
1886 1887 1888 |
# File 'app_flow/cfn_flow.rb', line 1886 def object @object end |
Class Method Details
.jsii_properties ⇒ Object
1900 1901 1902 1903 1904 1905 1906 1907 |
# File 'app_flow/cfn_flow.rb', line 1900 def self.jsii_properties { :intermediate_bucket_name => "intermediateBucketName", :object => "object", :bucket_prefix => "bucketPrefix", :error_handling_config => "errorHandlingConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 |
# File 'app_flow/cfn_flow.rb', line 1909 def to_jsii result = {} result.merge!({ "intermediateBucketName" => @intermediate_bucket_name, "object" => @object, "bucketPrefix" => @bucket_prefix, "errorHandlingConfig" => @error_handling_config, }) result.compact end |