Class: AWSCDK::CloudFront::CfnConnectionGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnConnectionGroupProps
- Defined in:
- cloud_front/cfn_connection_group_props.rb
Overview
Properties for defining a CfnConnectionGroup.
Instance Attribute Summary collapse
-
#anycast_ip_list_id ⇒ String?
readonly
The ID of the Anycast static IP list.
-
#enabled ⇒ Boolean, ...
readonly
Whether the connection group is enabled.
-
#ipv6_enabled ⇒ Boolean, ...
readonly
IPv6 is enabled for the connection group.
-
#name ⇒ String
readonly
The name of the connection group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A complex type that contains zero or more
Tagelements.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, anycast_ip_list_id: nil, enabled: nil, ipv6_enabled: nil, tags: nil) ⇒ CfnConnectionGroupProps
constructor
A new instance of CfnConnectionGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, anycast_ip_list_id: nil, enabled: nil, ipv6_enabled: nil, tags: nil) ⇒ CfnConnectionGroupProps
Returns a new instance of CfnConnectionGroupProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'cloud_front/cfn_connection_group_props.rb', line 14 def initialize(name:, anycast_ip_list_id: nil, enabled: nil, ipv6_enabled: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @anycast_ip_list_id = anycast_ip_list_id Jsii::Type.check_type(@anycast_ip_list_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "anycastIpListId") unless @anycast_ip_list_id.nil? @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? @ipv6_enabled = ipv6_enabled Jsii::Type.check_type(@ipv6_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "ipv6Enabled") unless @ipv6_enabled.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#anycast_ip_list_id ⇒ String? (readonly)
The ID of the Anycast static IP list.
36 37 38 |
# File 'cloud_front/cfn_connection_group_props.rb', line 36 def anycast_ip_list_id @anycast_ip_list_id end |
#enabled ⇒ Boolean, ... (readonly)
Whether the connection group is enabled.
41 42 43 |
# File 'cloud_front/cfn_connection_group_props.rb', line 41 def enabled @enabled end |
#ipv6_enabled ⇒ Boolean, ... (readonly)
IPv6 is enabled for the connection group.
46 47 48 |
# File 'cloud_front/cfn_connection_group_props.rb', line 46 def ipv6_enabled @ipv6_enabled end |
#name ⇒ String (readonly)
The name of the connection group.
31 32 33 |
# File 'cloud_front/cfn_connection_group_props.rb', line 31 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A complex type that contains zero or more Tag elements.
51 52 53 |
# File 'cloud_front/cfn_connection_group_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'cloud_front/cfn_connection_group_props.rb', line 53 def self.jsii_properties { :name => "name", :anycast_ip_list_id => "anycastIpListId", :enabled => "enabled", :ipv6_enabled => "ipv6Enabled", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'cloud_front/cfn_connection_group_props.rb', line 63 def to_jsii result = {} result.merge!({ "name" => @name, "anycastIpListId" => @anycast_ip_list_id, "enabled" => @enabled, "ipv6Enabled" => @ipv6_enabled, "tags" => @tags, }) result.compact end |