Class: AWSCDK::NetworkManager::CfnDevice::AWSLocationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_manager/cfn_device.rb

Overview

Specifies a location in AWS .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subnet_arn: nil, zone: nil) ⇒ AWSLocationProperty

Returns a new instance of AWSLocationProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the subnet that the device is located in.

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

    The Zone that the device is located in.



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_arnString? (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

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



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_jsiiObject



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