Class: AWSCDK::EMR::CfnCluster::AutoTerminationPolicyProperty

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

Overview

An auto-termination policy for an Amazon EMR cluster.

An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see Control cluster termination .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(idle_timeout: nil) ⇒ AutoTerminationPolicyProperty

Returns a new instance of AutoTerminationPolicyProperty.

Parameters:

  • idle_timeout (Numeric, nil) (defaults to: nil)

    Specifies the amount of idle time in seconds after which the cluster automatically terminates.



1002
1003
1004
1005
# File 'emr/cfn_cluster.rb', line 1002

def initialize(idle_timeout: nil)
  @idle_timeout = idle_timeout
  Jsii::Type.check_type(@idle_timeout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "idleTimeout") unless @idle_timeout.nil?
end

Instance Attribute Details

#idle_timeoutNumeric? (readonly)

Specifies the amount of idle time in seconds after which the cluster automatically terminates.

You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days).



1013
1014
1015
# File 'emr/cfn_cluster.rb', line 1013

def idle_timeout
  @idle_timeout
end

Class Method Details

.jsii_propertiesObject



1015
1016
1017
1018
1019
# File 'emr/cfn_cluster.rb', line 1015

def self.jsii_properties
  {
    :idle_timeout => "idleTimeout",
  }
end

Instance Method Details

#to_jsiiObject



1021
1022
1023
1024
1025
1026
1027
# File 'emr/cfn_cluster.rb', line 1021

def to_jsii
  result = {}
  result.merge!({
    "idleTimeout" => @idle_timeout,
  })
  result.compact
end