Class: AWSCDK::Route53::CfnHostedZone::VPCProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::CfnHostedZone::VPCProperty
- 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, andVPCRegion.
Instance Attribute Summary collapse
-
#vpc_id ⇒ String
readonly
Private hosted zones only: The ID of an Amazon VPC.
-
#vpc_region ⇒ String
readonly
Private hosted zones only: The region that an Amazon VPC was created in.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(vpc_id:, vpc_region:) ⇒ VPCProperty
constructor
A new instance of VPCProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(vpc_id:, vpc_region:) ⇒ VPCProperty
Returns a new instance of VPCProperty.
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_id ⇒ String (readonly)
Private hosted zones only: The ID of an Amazon VPC.
For public hosted zones, omit
VPCs,VPCId, andVPCRegion.
788 789 790 |
# File 'route53/cfn_hosted_zone.rb', line 788 def vpc_id @vpc_id end |
#vpc_region ⇒ String (readonly)
Private hosted zones only: The region that an Amazon VPC was created in.
For public hosted zones, omit
VPCs,VPCId, andVPCRegion.
795 796 797 |
# File 'route53/cfn_hosted_zone.rb', line 795 def vpc_region @vpc_region end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |