Class: AWSCDK::EC2::ClientRouteEnforcementOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::ClientRouteEnforcementOptions
- Defined in:
- ec2/client_route_enforcement_options.rb
Overview
Options for Client Route Enforcement.
Instance Attribute Summary collapse
-
#enforced ⇒ Boolean
readonly
Enable or disable Client Route Enforcement.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enforced:) ⇒ ClientRouteEnforcementOptions
constructor
A new instance of ClientRouteEnforcementOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enforced:) ⇒ ClientRouteEnforcementOptions
Returns a new instance of ClientRouteEnforcementOptions.
8 9 10 11 |
# File 'ec2/client_route_enforcement_options.rb', line 8 def initialize(enforced:) @enforced = enforced Jsii::Type.check_type(@enforced, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enforced") end |
Instance Attribute Details
#enforced ⇒ Boolean (readonly)
Enable or disable Client Route Enforcement.
The state can either be true (enabled) or false (disabled).
18 19 20 |
# File 'ec2/client_route_enforcement_options.rb', line 18 def enforced @enforced end |
Class Method Details
.jsii_properties ⇒ Object
20 21 22 23 24 |
# File 'ec2/client_route_enforcement_options.rb', line 20 def self.jsii_properties { :enforced => "enforced", } end |
Instance Method Details
#to_jsii ⇒ Object
26 27 28 29 30 31 32 |
# File 'ec2/client_route_enforcement_options.rb', line 26 def to_jsii result = {} result.merge!({ "enforced" => @enforced, }) result.compact end |