Class: AWSCDK::AppFlow::CfnFlow::S3DestinationPropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppFlow::CfnFlow::S3DestinationPropertiesProperty
- 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
-
#bucket_name ⇒ String
readonly
The Amazon S3 bucket name in which Amazon AppFlow places the transferred data.
-
#bucket_prefix ⇒ String?
readonly
The object key for the destination bucket in which Amazon AppFlow places the files.
-
#s3_output_format_config ⇒ AWSCDK::IResolvable, ...
readonly
The configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket_name:, bucket_prefix: nil, s3_output_format_config: nil) ⇒ S3DestinationPropertiesProperty
constructor
A new instance of S3DestinationPropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket_name:, bucket_prefix: nil, s3_output_format_config: nil) ⇒ S3DestinationPropertiesProperty
Returns a new instance of S3DestinationPropertiesProperty.
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_name ⇒ String (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_prefix ⇒ String? (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_config ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |