aws/ec2/sg/ipPermissions~SgIpPermissions

new SgIpPermissions(protocol, fromPort, toPort, ipRangesOrSgs)

Parameters:
Name Type Description
protocol string
fromPort number
toPort number
ipRangesOrSgs Array.<SgIpRange> | Array.<SgUserIdGroupPair>
Source:

Methods

(static) detectIpRangeOrSg(ipRangeOrSg) → {string}

Parameters:
Name Type Description
ipRangeOrSg SgIpRange | SgUserIdGroupPair
Source:
Throws:
TypeError
Returns:
Type
string

(static) reduceIpRangeOrSgs(prev, current) → {string}

Parameters:
Name Type Description
prev string
current SgIpRange | SgUserIdGroupPair
Source:
Throws:
TypeError
Returns:
Type
string

(static) validateIpRangeOrSgs(ipRangesOrSgs) → {string}

Parameters:
Name Type Description
ipRangesOrSgs Array.<SgIpRange> | Array.<SgUserIdGroupPair>
Source:
Throws:
TypeError
Returns:
Type
string

(static) validatePort(port) → {number}

Parameters:
Name Type Description
port number
Source:
Throws:
TypeError
Returns:
Type
number

(static) validateProtocol(protocol) → {boolean}

Parameters:
Name Type Description
protocol string | number
Source:
Throws:
TypeError
Returns:
Type
boolean