Class: AWSCDK::DynamoDB::CfnTable::InputFormatOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DynamoDB::CfnTable::InputFormatOptionsProperty
- Defined in:
- dynamo_db/cfn_table.rb
Overview
The format options for the data that was imported into the target table.
There is one value, CsvOption.
Instance Attribute Summary collapse
-
#csv ⇒ AWSCDK::IResolvable, ...
readonly
The options for imported source files in CSV format.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(csv: nil) ⇒ InputFormatOptionsProperty
constructor
A new instance of InputFormatOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(csv: nil) ⇒ InputFormatOptionsProperty
Returns a new instance of InputFormatOptionsProperty.
1134 1135 1136 1137 |
# File 'dynamo_db/cfn_table.rb', line 1134 def initialize(csv: nil) @csv = csv.is_a?(Hash) ? ::AWSCDK::DynamoDB::CfnTable::CsvProperty.new(**csv.transform_keys(&:to_sym)) : csv Jsii::Type.check_type(@csv, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19keW5hbW9kYi5DZm5UYWJsZS5Dc3ZQcm9wZXJ0eSJ9XX19")), "csv") unless @csv.nil? end |
Instance Attribute Details
#csv ⇒ AWSCDK::IResolvable, ... (readonly)
The options for imported source files in CSV format.
The values are Delimiter and HeaderList.
1145 1146 1147 |
# File 'dynamo_db/cfn_table.rb', line 1145 def csv @csv end |
Class Method Details
.jsii_properties ⇒ Object
1147 1148 1149 1150 1151 |
# File 'dynamo_db/cfn_table.rb', line 1147 def self.jsii_properties { :csv => "csv", } end |
Instance Method Details
#to_jsii ⇒ Object
1153 1154 1155 1156 1157 1158 1159 |
# File 'dynamo_db/cfn_table.rb', line 1153 def to_jsii result = {} result.merge!({ "csv" => @csv, }) result.compact end |