Class: AWSCDK::EMR::CfnInstanceFleetConfig::ConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
emr/cfn_instance_fleet_config.rb

Overview

Used only with Amazon EMR release 4.0 and later.

Configuration specifies optional configurations for customizing open-source big data applications and environment parameters. A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file. For more information, see Configuring Applications in the Amazon EMR Release Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(classification: nil, configuration_properties: nil, configurations: nil) ⇒ ConfigurationProperty

Returns a new instance of ConfigurationProperty.

Parameters:

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

    The classification within a configuration.

  • configuration_properties (AWSCDK::IResolvable, Hash{String => String}, nil) (defaults to: nil)

    Within a configuration classification, a set of properties that represent the settings that you want to change in the configuration file.

  • configurations (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::EMR::CfnInstanceFleetConfig::ConfigurationProperty>, nil) (defaults to: nil)

    A list of additional configurations to apply within a configuration object.



599
600
601
602
603
604
605
606
# File 'emr/cfn_instance_fleet_config.rb', line 599

def initialize(classification: nil, configuration_properties: nil, configurations: nil)
  @classification = classification
  Jsii::Type.check_type(@classification, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "classification") unless @classification.nil?
  @configuration_properties = configuration_properties
  Jsii::Type.check_type(@configuration_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "configurationProperties") unless @configuration_properties.nil?
  @configurations = configurations
  Jsii::Type.check_type(@configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZW1yLkNmbkluc3RhbmNlRmxlZXRDb25maWcuQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "configurations") unless @configurations.nil?
end

Instance Attribute Details

#classificationString? (readonly)

The classification within a configuration.



612
613
614
# File 'emr/cfn_instance_fleet_config.rb', line 612

def classification
  @classification
end

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

Within a configuration classification, a set of properties that represent the settings that you want to change in the configuration file.

Duplicates not allowed.



619
620
621
# File 'emr/cfn_instance_fleet_config.rb', line 619

def configuration_properties
  @configuration_properties
end

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

A list of additional configurations to apply within a configuration object.



624
625
626
# File 'emr/cfn_instance_fleet_config.rb', line 624

def configurations
  @configurations
end

Class Method Details

.jsii_propertiesObject



626
627
628
629
630
631
632
# File 'emr/cfn_instance_fleet_config.rb', line 626

def self.jsii_properties
  {
    :classification => "classification",
    :configuration_properties => "configurationProperties",
    :configurations => "configurations",
  }
end

Instance Method Details

#to_jsiiObject



634
635
636
637
638
639
640
641
642
# File 'emr/cfn_instance_fleet_config.rb', line 634

def to_jsii
  result = {}
  result.merge!({
    "classification" => @classification,
    "configurationProperties" => @configuration_properties,
    "configurations" => @configurations,
  })
  result.compact
end