Class: AWSCDK::EC2::CfnVPCDHCPOptionsAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnVPCDHCPOptionsAssociationProps
- Defined in:
- ec2/cfn_vpcdhcp_options_association_props.rb
Overview
Properties for defining a CfnVPCDHCPOptionsAssociation.
Instance Attribute Summary collapse
-
#dhcp_options_id ⇒ String, AWSCDK::Interfaces::AWSEC2::IDHCPOptionsRef
readonly
The ID of the DHCP options set, or
defaultto associate no DHCP options with the VPC. -
#vpc_id ⇒ String, AWSCDK::Interfaces::AWSEC2::IVPCRef
readonly
The ID of the VPC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dhcp_options_id:, vpc_id:) ⇒ CfnVPCDHCPOptionsAssociationProps
constructor
A new instance of CfnVPCDHCPOptionsAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dhcp_options_id:, vpc_id:) ⇒ CfnVPCDHCPOptionsAssociationProps
Returns a new instance of CfnVPCDHCPOptionsAssociationProps.
11 12 13 14 15 16 |
# File 'ec2/cfn_vpcdhcp_options_association_props.rb', line 11 def initialize(dhcp_options_id:, vpc_id:) @dhcp_options_id = Jsii::Type.check_type(@dhcp_options_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSURIQ1BPcHRpb25zUmVmIn1dfX0=")), "dhcpOptionsId") @vpc_id = vpc_id Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVZQQ1JlZiJ9XX19")), "vpcId") end |
Instance Attribute Details
#dhcp_options_id ⇒ String, AWSCDK::Interfaces::AWSEC2::IDHCPOptionsRef (readonly)
The ID of the DHCP options set, or default to associate no DHCP options with the VPC.
22 23 24 |
# File 'ec2/cfn_vpcdhcp_options_association_props.rb', line 22 def @dhcp_options_id end |
#vpc_id ⇒ String, AWSCDK::Interfaces::AWSEC2::IVPCRef (readonly)
The ID of the VPC.
27 28 29 |
# File 'ec2/cfn_vpcdhcp_options_association_props.rb', line 27 def vpc_id @vpc_id end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'ec2/cfn_vpcdhcp_options_association_props.rb', line 29 def self.jsii_properties { :dhcp_options_id => "dhcpOptionsId", :vpc_id => "vpcId", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'ec2/cfn_vpcdhcp_options_association_props.rb', line 36 def to_jsii result = {} result.merge!({ "dhcpOptionsId" => @dhcp_options_id, "vpcId" => @vpc_id, }) result.compact end |