Skip to main content

vpcdhcp_options_association

Gets or updates an individual vpcdhcp_options_association resource, use vpcdhcp_options_associations to retrieve a list of resources or to create or delete a resource.

Overview

Namevpcdhcp_options_association
TypeResource
DescriptionAssociates a set of DHCP options with a VPC, or associates no DHCP options with the VPC.
Idaws.ec2.vpcdhcp_options_association

Fields

NameDatatypeDescription
dhcp_options_idstringThe ID of the DHCP options set, or default to associate no DHCP options with the VPC.
vpc_idstringThe ID of the VPC.
regionstringAWS region.

Methods

NameAccessible byRequired Params
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT Example

SELECT
region,
dhcp_options_id,
vpc_id
FROM aws.ec2.vpcdhcp_options_association
WHERE region = 'us-east-1' AND data__Identifier = '<DhcpOptionsId>|<VpcId>';

Permissions

To operate on the vpcdhcp_options_association resource, the following permissions are required:

Update

ec2:AssociateDhcpOptions

Read

ec2:DescribeVpcs