Class: CfnGuardian::Models::RDSEventSubscription

Inherits:
BaseEventSubscription show all
Defined in:
lib/cfnguardian/models/event_subscription.rb

Instance Attribute Summary collapse

Attributes inherited from BaseEventSubscription

#detail_type, #enabled, #group, #hash, #name, #resource_arn, #resource_id, #source, #topic, #type

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ RDSEventSubscription

Returns a new instance of RDSEventSubscription.



40
41
42
43
44
# File 'lib/cfnguardian/models/event_subscription.rb', line 40

def initialize(resource)
  super(resource)
  @source = 'aws.rds'
  @event_id = nil
end

Instance Attribute Details

#event_idObject

Returns the value of attribute event_id.



38
39
40
# File 'lib/cfnguardian/models/event_subscription.rb', line 38

def event_id
  @event_id
end

Instance Method Details

#detailObject



46
47
48
49
50
51
52
# File 'lib/cfnguardian/models/event_subscription.rb', line 46

def detail
  if @event_id.nil?
    raise "#{self.class} missing `EventID` property"
  end

  return { EventID: [@event_id] }
end