Class: CfnGuardian::Models::BaseEventSubscription
- Inherits:
-
Object
- Object
- CfnGuardian::Models::BaseEventSubscription
- Defined in:
- lib/cfnguardian/models/event_subscription.rb
Direct Known Subclasses
AcmEventSubscription, AmazonMQBrokerEventSubscription, ApiGatewayEventSubscription, ApplicationTargetGroupEventSubscription, AutoScalingGroupEventSubscription, BatchEventSubscription, CloudFrontDistributionEventSubscription, DynamoDBTableEventSubscription, ECSClusterEventSubscription, ECSServiceEventSubscription, Ec2InstanceEventSubscription, ElastiCacheReplicationGroupEventSubscription, ElasticFileSystemEventSubscription, ElasticLoadBalancerEventSubscription, GlueEventSubscription, LambdaEventSubscription, NetworkTargetGroupEventSubscription, RDSEventSubscription, RedshiftClusterEventSubscription, StepFunctionsSubscription, VPNConnectionEventSubscription, VPNTunnelEventSubscription
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#detail_type ⇒ Object
Returns the value of attribute detail_type.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#hash ⇒ Object
Returns the value of attribute hash.
-
#name ⇒ Object
Returns the value of attribute name.
-
#resource_arn ⇒ Object
Returns the value of attribute resource_arn.
-
#resource_id ⇒ Object
Returns the value of attribute resource_id.
-
#source ⇒ Object
Returns the value of attribute source.
-
#topic ⇒ Object
Returns the value of attribute topic.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(resource) ⇒ BaseEventSubscription
constructor
A new instance of BaseEventSubscription.
Constructor Details
#initialize(resource) ⇒ BaseEventSubscription
Returns a new instance of BaseEventSubscription.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 17 def initialize(resource) @type = 'EventSubscription' @group = self.class.name.split('::').last @name = '' @hash = Digest::MD5.hexdigest resource['Id'] @enabled = true @events = [] @topic = 'Events' @resource_id = resource['Id'] @resource_arn = '' @source = '' @detail_type = '' @detail = {} end |
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail.
7 8 9 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 7 def detail @detail end |
#detail_type ⇒ Object
Returns the value of attribute detail_type.
7 8 9 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 7 def detail_type @detail_type end |
#enabled ⇒ Object
Returns the value of attribute enabled.
7 8 9 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 7 def enabled @enabled end |
#group ⇒ Object (readonly)
Returns the value of attribute group.
5 6 7 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 5 def group @group end |
#hash ⇒ Object
Returns the value of attribute hash.
7 8 9 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 7 def hash @hash end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 7 def name @name end |
#resource_arn ⇒ Object
Returns the value of attribute resource_arn.
7 8 9 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 7 def resource_arn @resource_arn end |
#resource_id ⇒ Object
Returns the value of attribute resource_id.
7 8 9 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 7 def resource_id @resource_id end |
#source ⇒ Object
Returns the value of attribute source.
7 8 9 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 7 def source @source end |
#topic ⇒ Object
Returns the value of attribute topic.
7 8 9 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 7 def topic @topic end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/cfnguardian/models/event_subscription.rb', line 5 def type @type end |