Class: AWSCDK::NetworkManager::CfnDevice::AWSLocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkManager::CfnDevice::AWSLocationProperty
- Defined in:
- network_manager/cfn_device.rb
Overview
Specifies a location in AWS .
Instance Attribute Summary collapse
-
#subnet_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the subnet that the device is located in.
-
#zone ⇒ String?
readonly
The Zone that the device is located in.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(subnet_arn: nil, zone: nil) ⇒ AWSLocationProperty
constructor
A new instance of AWSLocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(subnet_arn: nil, zone: nil) ⇒ AWSLocationProperty
Returns a new instance of AWSLocationProperty.
665 666 667 668 669 670 |
# File 'network_manager/cfn_device.rb', line 665 def initialize(subnet_arn: nil, zone: nil) @subnet_arn = subnet_arn Jsii::Type.check_type(@subnet_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetArn") unless @subnet_arn.nil? @zone = zone Jsii::Type.check_type(@zone, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "zone") unless @zone.nil? end |
Instance Attribute Details
#subnet_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the subnet that the device is located in.
676 677 678 |
# File 'network_manager/cfn_device.rb', line 676 def subnet_arn @subnet_arn end |
#zone ⇒ String? (readonly)
The Zone that the device is located in.
Specify the ID of an Availability Zone, Local Zone, Wavelength Zone, or an Outpost.
683 684 685 |
# File 'network_manager/cfn_device.rb', line 683 def zone @zone end |
Class Method Details
.jsii_properties ⇒ Object
685 686 687 688 689 690 |
# File 'network_manager/cfn_device.rb', line 685 def self.jsii_properties { :subnet_arn => "subnetArn", :zone => "zone", } end |
Instance Method Details
#to_jsii ⇒ Object
692 693 694 695 696 697 698 699 |
# File 'network_manager/cfn_device.rb', line 692 def to_jsii result = {} result.merge!({ "subnetArn" => @subnet_arn, "zone" => @zone, }) result.compact end |