Class: AWSCDK::Glue::CfnPartition::PartitionInputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnPartition::PartitionInputProperty
- Defined in:
- glue/cfn_partition.rb
Overview
The structure used to create and update a partition.
Instance Attribute Summary collapse
-
#parameters ⇒ Object?
readonly
These key-value pairs define partition parameters.
-
#storage_descriptor ⇒ AWSCDK::IResolvable, ...
readonly
Provides information about the physical location where the partition is stored.
-
#values ⇒ Array<String>
readonly
The values of the partition.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(values:, parameters: nil, storage_descriptor: nil) ⇒ PartitionInputProperty
constructor
A new instance of PartitionInputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(values:, parameters: nil, storage_descriptor: nil) ⇒ PartitionInputProperty
Returns a new instance of PartitionInputProperty.
638 639 640 641 642 643 644 645 |
# File 'glue/cfn_partition.rb', line 638 def initialize(values:, parameters: nil, storage_descriptor: nil) @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") @parameters = parameters Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "parameters") unless @parameters.nil? @storage_descriptor = storage_descriptor.is_a?(Hash) ? ::AWSCDK::Glue::CfnPartition::StorageDescriptorProperty.new(**storage_descriptor.transform_keys(&:to_sym)) : storage_descriptor Jsii::Type.check_type(@storage_descriptor, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmblBhcnRpdGlvbi5TdG9yYWdlRGVzY3JpcHRvclByb3BlcnR5In1dfX0=")), "storageDescriptor") unless @storage_descriptor.nil? end |
Instance Attribute Details
#parameters ⇒ Object? (readonly)
These key-value pairs define partition parameters.
660 661 662 |
# File 'glue/cfn_partition.rb', line 660 def parameters @parameters end |
#storage_descriptor ⇒ AWSCDK::IResolvable, ... (readonly)
Provides information about the physical location where the partition is stored.
665 666 667 |
# File 'glue/cfn_partition.rb', line 665 def storage_descriptor @storage_descriptor end |
#values ⇒ Array<String> (readonly)
The values of the partition.
Although this parameter is not required by the SDK, you must specify this parameter for a valid input.
The values for the keys for the new partition must be passed as an array of String objects that must be ordered in the same order as the partition keys appearing in the Amazon S3 prefix. Otherwise AWS Glue will add the values to the wrong keys.
655 656 657 |
# File 'glue/cfn_partition.rb', line 655 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
667 668 669 670 671 672 673 |
# File 'glue/cfn_partition.rb', line 667 def self.jsii_properties { :values => "values", :parameters => "parameters", :storage_descriptor => "storageDescriptor", } end |
Instance Method Details
#to_jsii ⇒ Object
675 676 677 678 679 680 681 682 683 |
# File 'glue/cfn_partition.rb', line 675 def to_jsii result = {} result.merge!({ "values" => @values, "parameters" => @parameters, "storageDescriptor" => @storage_descriptor, }) result.compact end |