Class: AWSCDK::Route53::CfnHostedZone::VPCProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53/cfn_hosted_zone.rb

Overview

Private hosted zones only: A complex type that contains information about an Amazon VPC.

Route 53 Resolver uses the records in the private hosted zone to route traffic in that VPC.

For public hosted zones, omit VPCs , VPCId , and VPCRegion .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpc_id:, vpc_region:) ⇒ VPCProperty

Returns a new instance of VPCProperty.

Parameters:

  • vpc_id (String)

    Private hosted zones only: The ID of an Amazon VPC.

  • vpc_region (String)

    Private hosted zones only: The region that an Amazon VPC was created in.



775
776
777
778
779
780
# File 'route53/cfn_hosted_zone.rb', line 775

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

Instance Attribute Details

#vpc_idString (readonly)

Private hosted zones only: The ID of an Amazon VPC.

For public hosted zones, omit VPCs , VPCId , and VPCRegion .



788
789
790
# File 'route53/cfn_hosted_zone.rb', line 788

def vpc_id
  @vpc_id
end

#vpc_regionString (readonly)

Private hosted zones only: The region that an Amazon VPC was created in.

For public hosted zones, omit VPCs , VPCId , and VPCRegion .



795
796
797
# File 'route53/cfn_hosted_zone.rb', line 795

def vpc_region
  @vpc_region
end

Class Method Details

.jsii_propertiesObject



797
798
799
800
801
802
# File 'route53/cfn_hosted_zone.rb', line 797

def self.jsii_properties
  {
    :vpc_id => "vpcId",
    :vpc_region => "vpcRegion",
  }
end

Instance Method Details

#to_jsiiObject



804
805
806
807
808
809
810
811
# File 'route53/cfn_hosted_zone.rb', line 804

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