Expand description
Provides a VPC DHCP Options Association resource.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let dnsResolver = vpc_dhcp_options_association::create(
"dnsResolver",
VpcDhcpOptionsAssociationArgs::builder()
.dhcp_options_id("${foo.id}")
.vpc_id("${fooAwsVpc.id}")
.build_struct(),
);
}
§Remarks
- You can only associate one DHCP Options Set to a given VPC ID.
- Removing the DHCP Options Association automatically sets AWS’s
default
DHCP Options Set to the VPC.
§Import
Using pulumi import
, import DHCP associations using the VPC ID associated with the options. For example:
$ pulumi import aws:ec2/vpcDhcpOptionsAssociation:VpcDhcpOptionsAssociation imported vpc-0f001273ec18911b1
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments