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
Name | vpcdhcp_options_association |
Type | Resource |
Description | Associates a set of DHCP options with a VPC, or associates no DHCP options with the VPC. |
Id | aws.ec2.vpcdhcp_options_association |
Fields
Name | Datatype | Description |
---|---|---|
dhcp_options_id | string | The ID of the DHCP options set, or default to associate no DHCP options with the VPC. |
vpc_id | string | The ID of the VPC. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__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