Class: AWSCDK::EMR::CfnCluster::ApplicationProperty

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

Overview

Application is a property of AWS::EMR::Cluster .

The Application property type defines the open-source big data applications for EMR to install and configure when a cluster is created.

With Amazon EMR release version 4.0 and later, the only accepted parameter is the application Name . To pass arguments to these applications, you use configuration classifications specified using JSON objects in a Configuration property. For more information, see Configuring Applications .

With earlier Amazon EMR releases, the application is any AWS or third-party software that you can add to the cluster. You can specify the version of the application and arguments to pass to it. Amazon EMR accepts and forwards the argument list to the corresponding installation script as a bootstrap action argument.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(additional_info: nil, args: nil, name: nil, version: nil) ⇒ ApplicationProperty

Returns a new instance of ApplicationProperty.

Parameters:

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

    This option is for advanced users only.

  • args (Array<String>, nil) (defaults to: nil)

    Arguments for Amazon EMR to pass to the application.

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

    The name of the application.

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

    The version of the application.



891
892
893
894
895
896
897
898
899
900
# File 'emr/cfn_cluster.rb', line 891

def initialize(additional_info: nil, args: nil, name: nil, version: nil)
  @additional_info = additional_info
  Jsii::Type.check_type(@additional_info, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "additionalInfo") unless @additional_info.nil?
  @args = args
  Jsii::Type.check_type(@args, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "args") unless @args.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

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

This option is for advanced users only.

This is meta information about clusters and applications that are used for testing and troubleshooting.



908
909
910
# File 'emr/cfn_cluster.rb', line 908

def additional_info
  @additional_info
end

#argsArray<String>? (readonly)

Arguments for Amazon EMR to pass to the application.



913
914
915
# File 'emr/cfn_cluster.rb', line 913

def args
  @args
end

#nameString? (readonly)

The name of the application.



918
919
920
# File 'emr/cfn_cluster.rb', line 918

def name
  @name
end

#versionString? (readonly)

The version of the application.



923
924
925
# File 'emr/cfn_cluster.rb', line 923

def version
  @version
end

Class Method Details

.jsii_propertiesObject



925
926
927
928
929
930
931
932
# File 'emr/cfn_cluster.rb', line 925

def self.jsii_properties
  {
    :additional_info => "additionalInfo",
    :args => "args",
    :name => "name",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



934
935
936
937
938
939
940
941
942
943
# File 'emr/cfn_cluster.rb', line 934

def to_jsii
  result = {}
  result.merge!({
    "additionalInfo" => @additional_info,
    "args" => @args,
    "name" => @name,
    "version" => @version,
  })
  result.compact
end