Class: AWSCDK::AppFlow::CfnFlow::S3DestinationPropertiesProperty

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

Overview

The properties that are applied when Amazon S3 is used as a destination.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_name:, bucket_prefix: nil, s3_output_format_config: nil) ⇒ S3DestinationPropertiesProperty

Returns a new instance of S3DestinationPropertiesProperty.

Parameters:

  • bucket_name (String)

    The Amazon S3 bucket name in which Amazon AppFlow places the transferred data.

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

    The object key for the destination bucket in which Amazon AppFlow places the files.

  • s3_output_format_config (AWSCDK::IResolvable, AWSCDK::AppFlow::CfnFlow::S3OutputFormatConfigProperty, nil) (defaults to: nil)

    The configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination.



1930
1931
1932
1933
1934
1935
1936
1937
# File 'app_flow/cfn_flow.rb', line 1930

def initialize(bucket_name:, bucket_prefix: nil, s3_output_format_config: nil)
  @bucket_name = bucket_name
  Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName")
  @bucket_prefix = bucket_prefix
  Jsii::Type.check_type(@bucket_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketPrefix") unless @bucket_prefix.nil?
  @s3_output_format_config = s3_output_format_config.is_a?(Hash) ? ::AWSCDK::AppFlow::CfnFlow::S3OutputFormatConfigProperty.new(**s3_output_format_config.transform_keys(&:to_sym)) : s3_output_format_config
  Jsii::Type.check_type(@s3_output_format_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBmbG93LkNmbkZsb3cuUzNPdXRwdXRGb3JtYXRDb25maWdQcm9wZXJ0eSJ9XX19")), "s3OutputFormatConfig") unless @s3_output_format_config.nil?
end

Instance Attribute Details

#bucket_nameString (readonly)

The Amazon S3 bucket name in which Amazon AppFlow places the transferred data.



1943
1944
1945
# File 'app_flow/cfn_flow.rb', line 1943

def bucket_name
  @bucket_name
end

#bucket_prefixString? (readonly)

The object key for the destination bucket in which Amazon AppFlow places the files.



1948
1949
1950
# File 'app_flow/cfn_flow.rb', line 1948

def bucket_prefix
  @bucket_prefix
end

#s3_output_format_configAWSCDK::IResolvable, ... (readonly)

The configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination.



1953
1954
1955
# File 'app_flow/cfn_flow.rb', line 1953

def s3_output_format_config
  @s3_output_format_config
end

Class Method Details

.jsii_propertiesObject



1955
1956
1957
1958
1959
1960
1961
# File 'app_flow/cfn_flow.rb', line 1955

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

Instance Method Details

#to_jsiiObject



1963
1964
1965
1966
1967
1968
1969
1970
1971
# File 'app_flow/cfn_flow.rb', line 1963

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