Skip to main content

vpc_classic_links

Creates, updates, deletes, gets or lists a vpc_classic_links resource.

Overview

Namevpc_classic_links
TypeResource
Idaws.ec2.vpc_classic_links

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
classic_link_enabledbooleanIndicates whether the VPC is enabled for ClassicLink.
tagsstringAny tags assigned to the VPC.
vpc_idstringThe ID of the VPC.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_vpc_classic_linkselectregionDryRun, VpcId, FilterThis action is deprecated. Describes the ClassicLink status of the specified VPCs.
disable_vpc_classic_link_dns_supportexecregionVpcIdThis action is deprecated. Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. You must specify a VPC ID in the request.
enable_vpc_classic_link_dns_supportexecregionVpcIdThis action is deprecated. Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. You must specify a VPC ID in the request.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayThe filters. is-classic-link-enabled - Whether the VPC is enabled for ClassicLink (true | false). tag - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value. tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
VpcIdstringThe ID of the VPC.

SELECT examples

This action is deprecated. Describes the ClassicLink status of the specified VPCs.

SELECT
classic_link_enabled,
tags,
vpc_id
FROM aws.ec2.vpc_classic_links
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND VpcId = '{{ VpcId }}'
AND Filter = '{{ Filter }}'
;

Lifecycle Methods

This action is deprecated. Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. You must specify a VPC ID in the request.

EXEC aws.ec2.vpc_classic_links.disable_vpc_classic_link_dns_support
@region='{{ region }}' --required,
@VpcId='{{ VpcId }}'
;