Class: CfnGuardian::Models::BaseCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/cfnguardian/models/check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#branchObject

Returns the value of attribute branch.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def branch
  @branch
end

#environmentObject

Returns the value of attribute environment.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def environment
  @environment
end

#groupObject

Returns the value of attribute group.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def group
  @group
end

#handlerObject

Returns the value of attribute handler.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def handler
  @handler
end

#memoryObject

Returns the value of attribute memory.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def memory
  @memory
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def name
  @name
end

#packageObject

Returns the value of attribute package.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def package
  @package
end

#runtimeObject

Returns the value of attribute runtime.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def runtime
  @runtime
end

#subnetsObject

Returns the value of attribute subnets.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def subnets
  @subnets
end

#timeoutObject

Returns the value of attribute timeout.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def timeout
  @timeout
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/cfnguardian/models/check.rb', line 7

def type
  @type
end

#versionObject

Returns the value of attribute version.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def version
  @version
end

#vpcObject

Returns the value of attribute vpc.



8
9
10
# File 'lib/cfnguardian/models/check.rb', line 8

def vpc
  @vpc
end