Class: CfnGuardian::Models::RDSEventSubscription
- Inherits:
-
BaseEventSubscription
- Object
- BaseEventSubscription
- CfnGuardian::Models::RDSEventSubscription
- Defined in:
- lib/cfnguardian/models/event_subscription.rb
Direct Known Subclasses
RDSClusterEventSubscription, RDSClusterInstanceEventSubscription, RDSInstanceEventSubscription
Instance Attribute Summary collapse
-
#event_id ⇒ Object
Returns the value of attribute event_id.
Attributes inherited from BaseEventSubscription
#detail_type, #enabled, #group, #hash, #name, #resource_arn, #resource_id, #source, #topic, #type
Instance Method Summary collapse
- #detail ⇒ Object
-
#initialize(resource) ⇒ RDSEventSubscription
constructor
A new instance of RDSEventSubscription.
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_id ⇒ Object
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
#detail ⇒ Object
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 |