Module: AWSCDK::EC2::IPeer

Includes:
IConnectable
Included in:
IPrefixList, ISecurityGroup
Defined in:
ec2/i_peer.rb

Overview

Interface for classes that provide the peer-specification parts of a security group rule.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



43
44
45
46
47
48
49
50
51
# File 'ec2/i_peer.rb', line 43

def self.jsii_overridable_methods
  {
    :connections => { kind: :property, name: "connections", is_optional: false },
    :can_inline_rule => { kind: :property, name: "canInlineRule", is_optional: false },
    :unique_id => { kind: :property, name: "uniqueId", is_optional: false },
    :to_egress_rule_config => { kind: :method, name: "toEgressRuleConfig", is_optional: false },
    :to_ingress_rule_config => { kind: :method, name: "toIngressRuleConfig", is_optional: false },
  }
end

Instance Method Details

#can_inline_ruleBoolean

Whether the rule can be inlined into a SecurityGroup or not.

Returns:

  • (Boolean)


18
19
20
# File 'ec2/i_peer.rb', line 18

def can_inline_rule()
  jsii_get_property("canInlineRule")
end

#connectionsAWSCDK::EC2::Connections

The network connections associated with this resource.



11
12
13
# File 'ec2/i_peer.rb', line 11

def connections()
  jsii_get_property("connections")
end

#to_egress_rule_configAWSCDK::EC2::EgressRuleConfig

Produce the egress rule JSON for the given connection.



32
33
34
# File 'ec2/i_peer.rb', line 32

def to_egress_rule_config()
  jsii_call_method("toEgressRuleConfig", [])
end

#to_ingress_rule_configAWSCDK::EC2::IngressRuleConfig

Produce the ingress rule JSON for the given connection.



39
40
41
# File 'ec2/i_peer.rb', line 39

def to_ingress_rule_config()
  jsii_call_method("toIngressRuleConfig", [])
end

#unique_idString

A unique identifier for this connection peer.

Returns:

  • (String)


25
26
27
# File 'ec2/i_peer.rb', line 25

def unique_id()
  jsii_get_property("uniqueId")
end