Class: AWSCDK::DirectoryService::CfnSimpleAD::VPCSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
directory_service/cfn_simple_ad.rb

Overview

Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subnet_ids:, vpc_id:) ⇒ VPCSettingsProperty

Returns a new instance of VPCSettingsProperty.

Parameters:

  • subnet_ids (Array<String>)

    The identifiers of the subnets for the directory servers.

  • vpc_id (String)

    The identifier of the VPC in which to create the directory.



662
663
664
665
666
667
# File 'directory_service/cfn_simple_ad.rb', line 662

def initialize(subnet_ids:, vpc_id:)
  @subnet_ids = subnet_ids
  Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "subnetIds")
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcId")
end

Instance Attribute Details

#subnet_idsArray<String> (readonly)

The identifiers of the subnets for the directory servers.

The two subnets must be in different Availability Zones. Directory Service specifies a directory server and a DNS server in each of these subnets.



675
676
677
# File 'directory_service/cfn_simple_ad.rb', line 675

def subnet_ids
  @subnet_ids
end

#vpc_idString (readonly)

The identifier of the VPC in which to create the directory.



680
681
682
# File 'directory_service/cfn_simple_ad.rb', line 680

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



682
683
684
685
686
687
# File 'directory_service/cfn_simple_ad.rb', line 682

def self.jsii_properties
  {
    :subnet_ids => "subnetIds",
    :vpc_id => "vpcId",
  }
end

Instance Method Details

#to_jsiiObject



689
690
691
692
693
694
695
696
# File 'directory_service/cfn_simple_ad.rb', line 689

def to_jsii
  result = {}
  result.merge!({
    "subnetIds" => @subnet_ids,
    "vpcId" => @vpc_id,
  })
  result.compact
end