Class: AWSCDK::WorkspacesWeb::CfnIPAccessSettings::IPRuleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_web/cfn_ip_access_settings.rb

Overview

The IP rules of the IP access settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip_range:, description: nil) ⇒ IPRuleProperty

Returns a new instance of IPRuleProperty.

Parameters:

  • ip_range (String)

    The IP range of the IP rule.

  • description (String, nil) (defaults to: nil)

    The description of the IP rule.



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

#descriptionString? (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_rangeString (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_propertiesObject



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_jsiiObject



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