Sha256: d3e50160797fd89dc88c475bdfd5b9c2bd78155b1d42844a763e2919df10089a

Contents?: true

Size: 1.18 KB

Versions: 55

Compression:

Stored size: 1.18 KB

Contents

module Fog
  module AWS
    class IAM
      class Real
        require 'fog/aws/parsers/iam/basic'

        # Deletes a manged policy
        #
        # ==== Parameters
        # * policy_arn<~String>: arn of the policy
        # * version_id<~String>: version of policy to delete
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'RequestId'<~String> - Id of the request
        #
        # ==== See Also
        # http://docs.aws.amazon.com/IAM/latest/APIReference/API_DeletePolicyVersion.html
        #
        def delete_policy_version(policy_arn, version_id)
          request(
            'Action'          => 'DeletePolicyVersion',
            'PolicyArn'       => policy_arn,
            'VersionId'       => version_id,
            :parser           => Fog::Parsers::AWS::IAM::Basic.new
          )
        end
        
        class Mock
          def delete_policy_version(policy_arn, version_id)
            Excon::Response.new.tap do |response|
              response.body = { 'RequestId' => Fog::AWS::Mock.request_id }
              response.status = 200
            end
          end
        end
      end
    end
  end
end

Version data entries

55 entries across 53 versions & 2 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.29.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.28.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.27.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.26.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.25.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.24.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.23.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.22.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.21.1 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.21.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.20.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.19.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.18.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.17.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.16.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.15.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.14.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.13.0 lib/fog/aws/requests/iam/delete_policy_version.rb
fog-aws-3.12.0 lib/fog/aws/requests/iam/delete_policy_version.rb