Class: AWS::EC2::SecurityGroupIngress
- Inherits:
-
ModelElement
- Object
- ModelElement
- AWS::EC2::SecurityGroupIngress
- 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
-
#cidrIp ⇒ Object
You must specify a source security group (SourceSecurityGroupName or SourceSecurityGroupId) or a CIDR range (CidrIp or CidrIpv6).
-
#cidrIpv6 ⇒ Object
You must specify a source security group (SourceSecurityGroupName or SourceSecurityGroupId) or a CIDR range (CidrIp or CidrIpv6).
-
#fromPort ⇒ Object
required.
-
#groupId ⇒ Object
Required: Conditional.
-
#groupName ⇒ Object
Required: Conditional.
-
#ipProtocol ⇒ Object
required.
-
#sourceSecurityGroupId ⇒ Object
You must specify a source security group (SourceSecurityGroupName or SourceSecurityGroupId) or a CIDR range (CidrIp or CidrIpv6).
-
#sourceSecurityGroupName ⇒ Object
You must specify a source security group (SourceSecurityGroupName or SourceSecurityGroupId) or a CIDR range (CidrIp or CidrIpv6).
-
#sourceSecurityGroupOwnerId ⇒ Object
Required: Conditional.
-
#toPort ⇒ Object
required.
Attributes inherited from ModelElement
#logical_resource_id, #resource_type
Instance Method Summary collapse
-
#initialize ⇒ SecurityGroupIngress
constructor
A new instance of SecurityGroupIngress.
Methods inherited from ModelElement
Constructor Details
#initialize ⇒ SecurityGroupIngress
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
#cidrIp ⇒ Object
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 |
#cidrIpv6 ⇒ Object
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 |
#fromPort ⇒ Object
required
20 21 22 |
# File 'lib/cfn-model/model/security_group_ingress.rb', line 20 def fromPort @fromPort end |
#groupId ⇒ Object
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 |
#groupName ⇒ Object
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 |
#ipProtocol ⇒ Object
required
20 21 22 |
# File 'lib/cfn-model/model/security_group_ingress.rb', line 20 def ipProtocol @ipProtocol end |
#sourceSecurityGroupId ⇒ Object
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 |
#sourceSecurityGroupName ⇒ Object
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 |
#sourceSecurityGroupOwnerId ⇒ Object
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 |
#toPort ⇒ Object
required
20 21 22 |
# File 'lib/cfn-model/model/security_group_ingress.rb', line 20 def toPort @toPort end |