Class: Foobara::AWS::Unit

Inherits:
Data
  • Object
show all
Defined in:
lib/foobara/aws/plan.rb

Overview

One deployment unit: a Lambda, and the route that reaches it.

name is a stable identifier ("posts"), route the API Gateway route key path, and public_commands the ones callable without authentication — derived from the manifest, never handed in. sizing is whatever the unit's commands declared with Lambda, reduced to one value per key — empty when none of them said anything.

Instance Attribute Summary collapse

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands

Returns:

  • (Object)

    the current value of commands



15
16
17
# File 'lib/foobara/aws/plan.rb', line 15

def commands
  @commands
end

#groupObject (readonly)

Returns the value of attribute group

Returns:

  • (Object)

    the current value of group



15
16
17
# File 'lib/foobara/aws/plan.rb', line 15

def group
  @group
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



15
16
17
# File 'lib/foobara/aws/plan.rb', line 15

def name
  @name
end

#public_commandsObject (readonly)

Returns the value of attribute public_commands

Returns:

  • (Object)

    the current value of public_commands



15
16
17
# File 'lib/foobara/aws/plan.rb', line 15

def public_commands
  @public_commands
end

#routeObject (readonly)

Returns the value of attribute route

Returns:

  • (Object)

    the current value of route



15
16
17
# File 'lib/foobara/aws/plan.rb', line 15

def route
  @route
end

#sizingObject (readonly)

Returns the value of attribute sizing

Returns:

  • (Object)

    the current value of sizing



15
16
17
# File 'lib/foobara/aws/plan.rb', line 15

def sizing
  @sizing
end