Class: AWSCDK::GlobalAccelerator::AcceleratorAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GlobalAccelerator::AcceleratorAttributes
- Defined in:
- global_accelerator/accelerator_attributes.rb
Overview
Attributes required to import an existing accelerator to the stack.
Instance Attribute Summary collapse
-
#accelerator_arn ⇒ String
readonly
The ARN of the accelerator.
-
#dns_name ⇒ String
readonly
The DNS name of the accelerator.
-
#dual_stack_dns_name ⇒ String?
readonly
The DNS name that points to the dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
-
#ipv4_addresses ⇒ Array<String>?
readonly
The array of IPv4 addresses in the IP address set.
-
#ipv6_addresses ⇒ Array<String>?
readonly
The array of IPv6 addresses in the IP address set.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(accelerator_arn:, dns_name:, dual_stack_dns_name: nil, ipv4_addresses: nil, ipv6_addresses: nil) ⇒ AcceleratorAttributes
constructor
A new instance of AcceleratorAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(accelerator_arn:, dns_name:, dual_stack_dns_name: nil, ipv4_addresses: nil, ipv6_addresses: nil) ⇒ AcceleratorAttributes
Returns a new instance of AcceleratorAttributes.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'global_accelerator/accelerator_attributes.rb', line 12 def initialize(accelerator_arn:, dns_name:, dual_stack_dns_name: nil, ipv4_addresses: nil, ipv6_addresses: nil) @accelerator_arn = accelerator_arn Jsii::Type.check_type(@accelerator_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "acceleratorArn") @dns_name = dns_name Jsii::Type.check_type(@dns_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsName") @dual_stack_dns_name = dual_stack_dns_name Jsii::Type.check_type(@dual_stack_dns_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dualStackDnsName") unless @dual_stack_dns_name.nil? @ipv4_addresses = ipv4_addresses Jsii::Type.check_type(@ipv4_addresses, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "ipv4Addresses") unless @ipv4_addresses.nil? @ipv6_addresses = ipv6_addresses Jsii::Type.check_type(@ipv6_addresses, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "ipv6Addresses") unless @ipv6_addresses.nil? end |
Instance Attribute Details
#accelerator_arn ⇒ String (readonly)
The ARN of the accelerator.
28 29 30 |
# File 'global_accelerator/accelerator_attributes.rb', line 28 def accelerator_arn @accelerator_arn end |
#dns_name ⇒ String (readonly)
The DNS name of the accelerator.
32 33 34 |
# File 'global_accelerator/accelerator_attributes.rb', line 32 def dns_name @dns_name end |
#dual_stack_dns_name ⇒ String? (readonly)
Default: - undefined
The DNS name that points to the dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
37 38 39 |
# File 'global_accelerator/accelerator_attributes.rb', line 37 def dual_stack_dns_name @dual_stack_dns_name end |
#ipv4_addresses ⇒ Array<String>? (readonly)
Default: - undefined
The array of IPv4 addresses in the IP address set.
42 43 44 |
# File 'global_accelerator/accelerator_attributes.rb', line 42 def ipv4_addresses @ipv4_addresses end |
#ipv6_addresses ⇒ Array<String>? (readonly)
Default: - undefined
The array of IPv6 addresses in the IP address set.
47 48 49 |
# File 'global_accelerator/accelerator_attributes.rb', line 47 def ipv6_addresses @ipv6_addresses end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'global_accelerator/accelerator_attributes.rb', line 49 def self.jsii_properties { :accelerator_arn => "acceleratorArn", :dns_name => "dnsName", :dual_stack_dns_name => "dualStackDnsName", :ipv4_addresses => "ipv4Addresses", :ipv6_addresses => "ipv6Addresses", } end |
Instance Method Details
#to_jsii ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 |
# File 'global_accelerator/accelerator_attributes.rb', line 59 def to_jsii result = {} result.merge!({ "acceleratorArn" => @accelerator_arn, "dnsName" => @dns_name, "dualStackDnsName" => @dual_stack_dns_name, "ipv4Addresses" => @ipv4_addresses, "ipv6Addresses" => @ipv6_addresses, }) result.compact end |