Module: AWSCDK::EC2::IPeer
Overview
Interface for classes that provide the peer-specification parts of a security group rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#can_inline_rule ⇒ Boolean
Whether the rule can be inlined into a SecurityGroup or not.
-
#connections ⇒ AWSCDK::EC2::Connections
The network connections associated with this resource.
-
#to_egress_rule_config ⇒ AWSCDK::EC2::EgressRuleConfig
Produce the egress rule JSON for the given connection.
-
#to_ingress_rule_config ⇒ AWSCDK::EC2::IngressRuleConfig
Produce the ingress rule JSON for the given connection.
-
#unique_id ⇒ String
A unique identifier for this connection peer.
Class Method Details
.jsii_overridable_methods ⇒ Object
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_rule ⇒ Boolean
Whether the rule can be inlined into a SecurityGroup or not.
18 19 20 |
# File 'ec2/i_peer.rb', line 18 def can_inline_rule() jsii_get_property("canInlineRule") end |
#connections ⇒ AWSCDK::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_config ⇒ AWSCDK::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_config ⇒ AWSCDK::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_id ⇒ String
A unique identifier for this connection peer.
25 26 27 |
# File 'ec2/i_peer.rb', line 25 def unique_id() jsii_get_property("uniqueId") end |