Class: AWS::EC2::SecurityGroupIngress

Inherits:
ModelElement show all
Defined in:
lib/cfn-model/model/security_group_ingress.rb

Overview

this could have been inline or freestanding in latter case there would be a logical resource id but i think we don’t ever care?

Instance Attribute Summary collapse

Attributes inherited from ModelElement

#logical_resource_id, #resource_type

Instance Method Summary collapse

Methods inherited from ModelElement

#==, #to_s

Constructor Details

#initializeSecurityGroupIngress

Returns a new instance of SecurityGroupIngress.



28
29
30
# File 'lib/cfn-model/model/security_group_ingress.rb', line 28

def initialize
  @resource_type = 'AWS::EC2::SecurityGroupIngress'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ModelElement

Instance Attribute Details

#cidrIpObject

You must specify a source security group (SourceSecurityGroupName or SourceSecurityGroupId) or a CIDR range (CidrIp or CidrIpv6).



8
9
10
# File 'lib/cfn-model/model/security_group_ingress.rb', line 8

def cidrIp
  @cidrIp
end

#cidrIpv6Object

You must specify a source security group (SourceSecurityGroupName or SourceSecurityGroupId) or a CIDR range (CidrIp or CidrIpv6).



8
9
10
# File 'lib/cfn-model/model/security_group_ingress.rb', line 8

def cidrIpv6
  @cidrIpv6
end

#fromPortObject

required



20
21
22
# File 'lib/cfn-model/model/security_group_ingress.rb', line 20

def fromPort
  @fromPort
end

#groupIdObject

Required: Conditional. You must specify the GroupName property or the GroupId property. For security groups that are in a VPC, you must use the GroupId property. For example, EC2-VPC accounts must use the GroupId property. this will be nil for inline ingress rules



16
17
18
# File 'lib/cfn-model/model/security_group_ingress.rb', line 16

def groupId
  @groupId
end

#groupNameObject

Required: Conditional. You must specify the GroupName property or the GroupId property. For security groups that are in a VPC, you must use the GroupId property. For example, EC2-VPC accounts must use the GroupId property. this will be nil for inline ingress rules



16
17
18
# File 'lib/cfn-model/model/security_group_ingress.rb', line 16

def groupName
  @groupName
end

#ipProtocolObject

required



20
21
22
# File 'lib/cfn-model/model/security_group_ingress.rb', line 20

def ipProtocol
  @ipProtocol
end

#sourceSecurityGroupIdObject

You must specify a source security group (SourceSecurityGroupName or SourceSecurityGroupId) or a CIDR range (CidrIp or CidrIpv6).



8
9
10
# File 'lib/cfn-model/model/security_group_ingress.rb', line 8

def sourceSecurityGroupId
  @sourceSecurityGroupId
end

#sourceSecurityGroupNameObject

You must specify a source security group (SourceSecurityGroupName or SourceSecurityGroupId) or a CIDR range (CidrIp or CidrIpv6).



8
9
10
# File 'lib/cfn-model/model/security_group_ingress.rb', line 8

def sourceSecurityGroupName
  @sourceSecurityGroupName
end

#sourceSecurityGroupOwnerIdObject

Required: Conditional. If you specify SourceSecurityGroupName and that security group is owned by a different account than the account creating the stack, you must specify the SourceSecurityGroupOwnerId; otherwise, this property is optional.



26
27
28
# File 'lib/cfn-model/model/security_group_ingress.rb', line 26

def sourceSecurityGroupOwnerId
  @sourceSecurityGroupOwnerId
end

#toPortObject

required



20
21
22
# File 'lib/cfn-model/model/security_group_ingress.rb', line 20

def toPort
  @toPort
end