Class: AWSCDK::DirectoryService::CfnMicrosoftAD::VPCSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
directory_service/cfn_microsoft_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.



602
603
604
605
606
607
# File 'directory_service/cfn_microsoft_ad.rb', line 602

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.



615
616
617
# File 'directory_service/cfn_microsoft_ad.rb', line 615

def subnet_ids
  @subnet_ids
end

#vpc_idString (readonly)

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



620
621
622
# File 'directory_service/cfn_microsoft_ad.rb', line 620

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



622
623
624
625
626
627
# File 'directory_service/cfn_microsoft_ad.rb', line 622

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

Instance Method Details

#to_jsiiObject



629
630
631
632
633
634
635
636
# File 'directory_service/cfn_microsoft_ad.rb', line 629

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