Sha256: 889dd9825bdb80fb7b72d6791936fee3634c3b89bcca775b235fcf8edcf3b954

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

module Fog
  module AWS
    class AutoScaling

      class Real

        require 'rackspace-fog/aws/parsers/auto_scaling/basic'

        # Deletes a scheduled action previously created using the
        # put_scheduled_update_group_action.
        #
        # ==== Parameters
        # * auto_scaling_group_name<~String> - The name of the Auto Scaling
        #   group.
        # * scheduled_action_name<~String> - The name of the action you want to
        #   delete.
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'ResponseMetadata'<~Hash>:
        #       * 'RequestId'<~String> - Id of request
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DeleteScheduledAction.html
        #
        def delete_scheduled_action(auto_scaling_group_name, scheduled_action_name)
          request({
            'Action'               => 'DeleteScheduledAction',
            'AutoScalingGroupName' => auto_scaling_group_name,
            'ScheduledActionName'  => scheduled_action_name,
            :parser                => Fog::Parsers::AWS::AutoScaling::Basic.new
          })
        end

      end

      class Mock

        def delete_scheduled_action(auto_scaling_group_name, scheduled_action_name)
          Fog::Mock.not_implemented
        end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/auto_scaling/delete_scheduled_action.rb