Class: AWSComponent

(abstract) AWSComponent(stackName, baseName)

A super class to represent an AWS component. Some functions are to be implemented by sub classes.

Constructor

(abstract) new AWSComponent(stackName, baseName)

Don't call this manually. Use creator function in CloudFormation
Parameters:
Name Type Description
stackName string
baseName string
Source:

Methods

getValue(key)

Get stack value of this component, variables can be: ARN, ID, PROVIDERNAME, etc If this component is deployed and checked, the actual value will be provided. Otherwise, AWS CloudFormation intrinsic specs will be returned, such as {"Ref": }
Parameters:
Name Type Description
key String ARN | ID | PROVIDERNAME
Source:

policyStatementForAccess(accessLevels, item) → {object}

Get the policy statement object for the given access levels
Parameters:
Name Type Description
accessLevels array array with string element which possible values are: ACCESS_LEVEL_READ | ACCESS_LEVEL_WRITE | ACCESS_LEVEL_ADMIN
item string optional
Source:
Returns:
policy statement JSON
Type
object

(abstract) policyStatementForAccessImpl(accessLevels, item)

Get the policy statement object for the given access levels. Should be implemented by sub classes.
Parameters:
Name Type Description
accessLevels array array with string element which possible values are: ACCESS_LEVEL_READ | ACCESS_LEVEL_WRITE | ACCESS_LEVEL_ADMIN
item string optional
Source: