Class: AWS::AutoScaling::Activity

Inherits:
Core::Resource
  • Object
show all
Defined in:
lib/aws/auto_scaling/activity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#activity_idString (readonly) Also known as: id

Returns:

  • (String)


45
46
47
# File 'lib/aws/auto_scaling/activity.rb', line 45

def activity_id
  @activity_id
end

#auto_scaling_group_nameString (readonly)

Returns the current value of auto_scaling_group_name.

Returns:

  • (String)

    the current value of auto_scaling_group_name



36
37
38
# File 'lib/aws/auto_scaling/activity.rb', line 36

def auto_scaling_group_name
  @auto_scaling_group_name
end

#causeString (readonly)

Returns the current value of cause.

Returns:

  • (String)

    the current value of cause



36
37
38
# File 'lib/aws/auto_scaling/activity.rb', line 36

def cause
  @cause
end

#descriptionnil, String (readonly)

Returns the current value of description.

Returns:

  • (nil, String)

    the current value of description



36
37
38
# File 'lib/aws/auto_scaling/activity.rb', line 36

def description
  @description
end

#detailsString (readonly)

Returns the current value of details.

Returns:

  • (String)

    the current value of details



36
37
38
# File 'lib/aws/auto_scaling/activity.rb', line 36

def details
  @details
end

#end_timenil, Time (readonly)

Returns the current value of end_time.

Returns:

  • (nil, Time)

    the current value of end_time



36
37
38
# File 'lib/aws/auto_scaling/activity.rb', line 36

def end_time
  @end_time
end

#progressInteger (readonly)

Returns the current value of progress.

Returns:

  • (Integer)

    the current value of progress



36
37
38
# File 'lib/aws/auto_scaling/activity.rb', line 36

def progress
  @progress
end

#start_timeTime (readonly)

Returns the current value of start_time.

Returns:

  • (Time)

    the current value of start_time



36
37
38
# File 'lib/aws/auto_scaling/activity.rb', line 36

def start_time
  @start_time
end

#status_codenil, String (readonly)

Returns the current value of status_code.

Returns:

  • (nil, String)

    the current value of status_code



36
37
38
# File 'lib/aws/auto_scaling/activity.rb', line 36

def status_code
  @status_code
end

#status_messagenil, String (readonly)

Returns the current value of status_message.

Returns:

  • (nil, String)

    the current value of status_message



36
37
38
# File 'lib/aws/auto_scaling/activity.rb', line 36

def status_message
  @status_message
end

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


81
82
83
84
85
86
# File 'lib/aws/auto_scaling/activity.rb', line 81

def exists?
  client_opts = {}
  client_opts[:activity_ids] = [activity_id]
  resp = client.describe_scaling_activities(client_opts)
  !resp.activities.empty?
end

#groupGroup

Returns:



76
77
78
# File 'lib/aws/auto_scaling/activity.rb', line 76

def group
  Group.new(auto_scaling_group_name, :config => config)
end