Skip to content
v2.277.0

CfnVPCDHCPOptionsAssociationProps Struct ​

Properties for defining a CfnVPCDHCPOptionsAssociation.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnVPCDHCPOptionsAssociationProps: ec2.CfnVPCDHCPOptionsAssociationProps = {
  dhcpOptionsId: 'dhcpOptionsId',
  vpcId: 'vpcId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_vpcdhcp_options_association_props = ec2.CfnVPCDHCPOptionsAssociationProps(
    dhcp_options_id="dhcpOptionsId",
    vpc_id="vpcId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

CfnVPCDHCPOptionsAssociationProps cfnVPCDHCPOptionsAssociationProps = CfnVPCDHCPOptionsAssociationProps.builder()
        .dhcpOptionsId("dhcpOptionsId")
        .vpcId("vpcId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var cfnVPCDHCPOptionsAssociationProps = new CfnVPCDHCPOptionsAssociationProps {
    DhcpOptionsId = "dhcpOptionsId",
    VpcId = "vpcId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnVPCDHCPOptionsAssociationProps := &CfnVPCDHCPOptionsAssociationProps{
	DhcpOptionsId: jsii.String("dhcpOptionsId"),
	VpcId: jsii.String("vpcId"),
}

Properties ​

dhcpOptionsIdstring | IDHCPOptionsRefdhcp_options_idtyping.Union[str, IDHCPOptionsRef]dhcpOptionsIdStringDhcpOptionsIdstringDhcpOptionsIdinterface{}required#
The ID of the DHCP options set, or `default` to associate no DHCP options with the VPC.
vpcIdstring | IVPCRefvpc_idtyping.Union[str, IVPCRef]vpcIdStringVpcIdstringVpcIdinterface{}required#
The ID of the VPC.