Class: AWSCDK::CloudFront::CfnAnycastIPListProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_anycast_ip_list_props.rb

Overview

Properties for defining a CfnAnycastIpList.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip_count:, name:, ip_address_type: nil, ipam_cidr_configs: nil, tags: nil) ⇒ CfnAnycastIPListProps

Returns a new instance of CfnAnycastIPListProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'cloud_front/cfn_anycast_ip_list_props.rb', line 14

def initialize(ip_count:, name:, ip_address_type: nil, ipam_cidr_configs: nil, tags: nil)
  @ip_count = ip_count
  Jsii::Type.check_type(@ip_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "ipCount")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @ip_address_type = ip_address_type
  Jsii::Type.check_type(@ip_address_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipAddressType") unless @ip_address_type.nil?
  @ipam_cidr_configs = ipam_cidr_configs
  Jsii::Type.check_type(@ipam_cidr_configs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWRmcm9udC5DZm5BbnljYXN0SXBMaXN0LklwYW1DaWRyQ29uZmlnUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "ipamCidrConfigs") unless @ipam_cidr_configs.nil?
  @tags = tags.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnAnycastIPList::TagsProperty.new(**tags.transform_keys(&:to_sym)) : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWRmcm9udC5DZm5BbnljYXN0SXBMaXN0LlRhZ3NQcm9wZXJ0eSJ9")), "tags") unless @tags.nil?
end

Instance Attribute Details

#ip_address_typeString? (readonly)

The IP address type for the Anycast static IP list.



41
42
43
# File 'cloud_front/cfn_anycast_ip_list_props.rb', line 41

def ip_address_type
  @ip_address_type
end

#ip_countNumeric (readonly)

The number of IP addresses in the Anycast static IP list.



31
32
33
# File 'cloud_front/cfn_anycast_ip_list_props.rb', line 31

def ip_count
  @ip_count
end

#ipam_cidr_configsAWSCDK::IResolvable, ... (readonly)

A list of IPAM CIDR configurations that define the IP address ranges, IPAM pools, and associated Anycast IP addresses.



46
47
48
# File 'cloud_front/cfn_anycast_ip_list_props.rb', line 46

def ipam_cidr_configs
  @ipam_cidr_configs
end

#nameString (readonly)

The name of the Anycast static IP list.



36
37
38
# File 'cloud_front/cfn_anycast_ip_list_props.rb', line 36

def name
  @name
end

#tagsAWSCDK::CloudFront::CfnAnycastIPList::TagsProperty? (readonly)

A complex type that contains zero or more Tag elements.



51
52
53
# File 'cloud_front/cfn_anycast_ip_list_props.rb', line 51

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'cloud_front/cfn_anycast_ip_list_props.rb', line 53

def self.jsii_properties
  {
    :ip_count => "ipCount",
    :name => "name",
    :ip_address_type => "ipAddressType",
    :ipam_cidr_configs => "ipamCidrConfigs",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'cloud_front/cfn_anycast_ip_list_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "ipCount" => @ip_count,
    "name" => @name,
    "ipAddressType" => @ip_address_type,
    "ipamCidrConfigs" => @ipam_cidr_configs,
    "tags" => @tags,
  })
  result.compact
end