AWS::SecGroup type
Direct parent types
- AWS::ResDef
AWS Resource definition Direct subtypes: 14
Methods
- create(rd:AWS::SecGroup, **props:Hash)internal Source: autoload/AWS.ngs:573
Declarative primitive for creating AWS Security Group resources
- find(rd:AWS::SecGroup) Source: autoload/AWS.ngs:525
Declarative primitive for finding AWS Security Group resources
- init(rd:AWS::SecGroup, anchor:Arr)deprecated Source: autoload/AWS.ngs:496
Initialize SecGroup from Arr of [name, vpc_id].
- init(rd:AWS::SecGroup, Name:Str, VpcId:Any) Source: autoload/AWS.ngs:503
Initialize SecGroup from security group name and vpc. Example
AWS::SecGroup("https-server", AWS::Vpc(...))
- users_ids(r:AWS::SecGroup) Source: autoload/AWS.ngs:516
Declarative primitive to convert AWS Security Group to array of hashes with GroupId and UserId keys. Looks like it's badly named. Candidate for renaming. Additional plan is to eliminate the need for this method. Returns
Arr of Hash. Each Hash has: GroupId, UserIdExample
sg = AwsSecGroup(...) # servers behing ELB # Allow traffic from ELB to the servers sg.converge(..., IpPermissions = [{UserIdGroupPairs = elb_sg.users_ids(), ...}]) # In future, should be: sg.converge(..., IpPermissions = [{UserIdGroupPairs = elb_sg, ...}])