Sha256: fe08dda255253d2685f830175de83bf320fa9ac59288666a312521ca25769992

Contents?: true

Size: 1.19 KB

Versions: 30

Compression:

Stored size: 1.19 KB

Contents

module Fog
  module AWS
    class AutoScaling

      class Real

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

        # Deletes the specified auto scaling group if the group has no
        # instances and no scaling activities in progress.
        #
        # ==== Parameters
        # * auto_scaling_group_name<~String> - The name of the Auto Scaling
        #   group.
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'ResponseMetadata'<~Hash>:
        #       * 'RequestId'<~String> - Id of request
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DeleteAutoScalingGroup.html
        #
        def delete_auto_scaling_group(auto_scaling_group_name)
          request({
            'Action'               => 'DeleteAutoScalingGroup',
            'AutoScalingGroupName' => auto_scaling_group_name,
            :parser                => Fog::Parsers::AWS::AutoScaling::Basic.new
          })
        end

      end

      class Mock

        def delete_auto_scaling_group(auto_scaling_group_name)
          Fog::Mock.not_implemented
        end

      end

    end
  end
end

Version data entries

30 entries across 30 versions & 7 rubygems

Version Path
fog-1.4.0 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
michiels-fog-1.3.1 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
fog-1.3.1 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
fog-1.3.0 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
fog-1.2.0 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
ktheory-fog-1.1.2 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
fog-1.1.2 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
fog_tractical-1.1.4 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
fog_tractical-1.1.3 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb
fog-1.1.1 lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb