Class: CfnGuardian::Models::BaseCheck
- Inherits:
-
Object
- Object
- CfnGuardian::Models::BaseCheck
- Defined in:
- lib/cfnguardian/models/check.rb
Direct Known Subclasses
AzureFileCheck, ContainerInstanceCheck, DomainExpiryCheck, HttpCheck, MaintenanceGroupCheck, NrpeCheck, PortCheck, SFTPCheck, SqlCheck, SslCheck, TLSCheck, WebSocketCheck
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#group ⇒ Object
Returns the value of attribute group.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#memory ⇒ Object
Returns the value of attribute memory.
-
#name ⇒ Object
Returns the value of attribute name.
-
#package ⇒ Object
Returns the value of attribute package.
-
#runtime ⇒ Object
Returns the value of attribute runtime.
-
#subnets ⇒ Object
Returns the value of attribute subnets.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#version ⇒ Object
Returns the value of attribute version.
-
#vpc ⇒ Object
Returns the value of attribute vpc.
Instance Method Summary collapse
-
#initialize(resource) ⇒ BaseCheck
constructor
A new instance of BaseCheck.
Constructor Details
#initialize(resource) ⇒ BaseCheck
Returns a new instance of BaseCheck.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cfnguardian/models/check.rb', line 21 def initialize(resource) @type = 'Check' @group = nil @name = nil @package = nil @handler = nil @version = nil @runtime = nil @environment = '' @subnets = nil @vpc = nil @memory = 128 @timeout = 120 @branch = "master" end |
Instance Attribute Details
#branch ⇒ Object
Returns the value of attribute branch.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def branch @branch end |
#environment ⇒ Object
Returns the value of attribute environment.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def environment @environment end |
#group ⇒ Object
Returns the value of attribute group.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def group @group end |
#handler ⇒ Object
Returns the value of attribute handler.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def handler @handler end |
#memory ⇒ Object
Returns the value of attribute memory.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def memory @memory end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def name @name end |
#package ⇒ Object
Returns the value of attribute package.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def package @package end |
#runtime ⇒ Object
Returns the value of attribute runtime.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def runtime @runtime end |
#subnets ⇒ Object
Returns the value of attribute subnets.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def subnets @subnets end |
#timeout ⇒ Object
Returns the value of attribute timeout.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def timeout @timeout end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/cfnguardian/models/check.rb', line 7 def type @type end |
#version ⇒ Object
Returns the value of attribute version.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def version @version end |
#vpc ⇒ Object
Returns the value of attribute vpc.
8 9 10 |
# File 'lib/cfnguardian/models/check.rb', line 8 def vpc @vpc end |