Class: AWSCDK::WorkspacesWeb::CfnIPAccessSettings::IPRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WorkspacesWeb::CfnIPAccessSettings::IPRuleProperty
- Defined in:
- workspaces_web/cfn_ip_access_settings.rb
Overview
The IP rules of the IP access settings.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the IP rule.
-
#ip_range ⇒ String
readonly
The IP range of the IP rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ip_range:, description: nil) ⇒ IPRuleProperty
constructor
A new instance of IPRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ip_range:, description: nil) ⇒ IPRuleProperty
Returns a new instance of IPRuleProperty.
601 602 603 604 605 606 |
# File 'workspaces_web/cfn_ip_access_settings.rb', line 601 def initialize(ip_range:, description: nil) @ip_range = ip_range Jsii::Type.check_type(@ip_range, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipRange") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the IP rule.
619 620 621 |
# File 'workspaces_web/cfn_ip_access_settings.rb', line 619 def description @description end |
#ip_range ⇒ String (readonly)
The IP range of the IP rule.
This can either be a single IP address or a range using CIDR notation.
614 615 616 |
# File 'workspaces_web/cfn_ip_access_settings.rb', line 614 def ip_range @ip_range end |
Class Method Details
.jsii_properties ⇒ Object
621 622 623 624 625 626 |
# File 'workspaces_web/cfn_ip_access_settings.rb', line 621 def self.jsii_properties { :ip_range => "ipRange", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
628 629 630 631 632 633 634 635 |
# File 'workspaces_web/cfn_ip_access_settings.rb', line 628 def to_jsii result = {} result.merge!({ "ipRange" => @ip_range, "description" => @description, }) result.compact end |