class AwsCftTools::DeletionChange

Represents a change in a changeset.

Attributes

resource[R]

Public Class Methods

new(resource) click to toggle source

@param resource

# File lib/aws_cft_tools/deletion_change.rb, line 12
def initialize(resource)
  @resource = resource
end

Public Instance Methods

action() click to toggle source

Return the action taken. For deletion, this is always DELETE.

@return [String] +'DELETE'+ to indicate a deletion

# File lib/aws_cft_tools/deletion_change.rb, line 21
def action
  'DELETE'
end
replacement() click to toggle source

Return the status of this change as a replacement. For deletion, this is always nil.

@return [nil]

# File lib/aws_cft_tools/deletion_change.rb, line 30
def replacement
  nil
end
scopes() click to toggle source

Return the scopes of the change. For deletions, this is always Resource.

@return [String] +'Resource'+

# File lib/aws_cft_tools/deletion_change.rb, line 39
def scopes
  'Resource'
end