Class: CDK8sPlus25::PodConnectionsAllowFromOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- CDK8sPlus25::PodConnectionsAllowFromOptions
- Defined in:
- pod_connections_allow_from_options.rb
Overview
Options for PodConnections.allowFrom.
Instance Attribute Summary collapse
-
#isolation ⇒ CDK8sPlus25::PodConnectionsIsolation?
readonly
Which isolation should be applied to establish the connection.
-
#ports ⇒ Array<CDK8sPlus25::NetworkPolicyPort>?
readonly
Ports to allow incoming traffic to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(isolation: nil, ports: nil) ⇒ PodConnectionsAllowFromOptions
constructor
A new instance of PodConnectionsAllowFromOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(isolation: nil, ports: nil) ⇒ PodConnectionsAllowFromOptions
Returns a new instance of PodConnectionsAllowFromOptions.
9 10 11 12 13 14 |
# File 'pod_connections_allow_from_options.rb', line 9 def initialize(isolation: nil, ports: nil) @isolation = isolation Jsii::Type.check_type(@isolation, "eyJmcW4iOiJjZGs4cy1wbHVzLTI1LlBvZENvbm5lY3Rpb25zSXNvbGF0aW9uIn0=", "isolation") unless @isolation.nil? @ports = ports Jsii::Type.check_type(@ports, "eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImNkazhzLXBsdXMtMjUuTmV0d29ya1BvbGljeVBvcnQifSwia2luZCI6ImFycmF5In19", "ports") unless @ports.nil? end |
Instance Attribute Details
#isolation ⇒ CDK8sPlus25::PodConnectionsIsolation? (readonly)
Note:
Default: - unset, isolates both the pod and the peer.
Which isolation should be applied to establish the connection.
20 21 22 |
# File 'pod_connections_allow_from_options.rb', line 20 def isolation @isolation end |
#ports ⇒ Array<CDK8sPlus25::NetworkPolicyPort>? (readonly)
Note:
Default: - The pod ports.
Ports to allow incoming traffic to.
25 26 27 |
# File 'pod_connections_allow_from_options.rb', line 25 def ports @ports end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'pod_connections_allow_from_options.rb', line 27 def self.jsii_properties { :isolation => "isolation", :ports => "ports", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'pod_connections_allow_from_options.rb', line 34 def to_jsii result = {} result.merge!({ "isolation" => @isolation, "ports" => @ports, }) result.compact end |