Class: AWSCDK::EMR::CfnCluster::AutoTerminationPolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnCluster::AutoTerminationPolicyProperty
- 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
-
#idle_timeout ⇒ Numeric?
readonly
Specifies the amount of idle time in seconds after which the cluster automatically terminates.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(idle_timeout: nil) ⇒ AutoTerminationPolicyProperty
constructor
A new instance of AutoTerminationPolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(idle_timeout: nil) ⇒ AutoTerminationPolicyProperty
Returns a new instance of AutoTerminationPolicyProperty.
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_timeout ⇒ Numeric? (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_properties ⇒ Object
1015 1016 1017 1018 1019 |
# File 'emr/cfn_cluster.rb', line 1015 def self.jsii_properties { :idle_timeout => "idleTimeout", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |