File: execute_change_set.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 (26 lines) | stat: -rw-r--r-- 844 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
module Fog
  module AWS
    class CloudFormation
      class Real
        require 'fog/aws/parsers/cloud_formation/basic'

        # Execute a change set.
        #
        # @param ChangeSetName [String] The name of the change set to delete.
        # @option options StackName [String] The Stack name or ID (ARN) that is associated with change set.
        #
        # @return [Excon::Response]
        #
        # @see http://docs.amazonwebservices.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html

        def execute_change_set(change_set_name, options = {})
          options['ChangeSetName'] = change_set_name
          request({
            'Action'    => 'ExecuteChangeSet',
            :parser     => Fog::Parsers::AWS::CloudFormation::Basic.new
          }.merge!(options))
        end
      end
    end
  end
end