File: delete_scheduled_action.rb

package info (click to toggle)
ruby-fog-aws 3.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,816 kB
  • sloc: ruby: 68,587; makefile: 6
file content (42 lines) | stat: -rw-r--r-- 1,392 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
module Fog
  module AWS
    class AutoScaling
      class Real
        require '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