vpc_classic_links
Creates, updates, deletes, gets or lists a vpc_classic_links resource.
Overview
| Name | vpc_classic_links |
| Type | Resource |
| Id | aws.ec2.vpc_classic_links |
Fields
The following fields are returned by SELECT queries:
- describe_vpc_classic_link
| Name | Datatype | Description |
|---|---|---|
classic_link_enabled | boolean | Indicates whether the VPC is enabled for ClassicLink. |
tags | string | Any tags assigned to the VPC. |
vpc_id | string | The ID of the VPC. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_vpc_classic_link | select | region | DryRun, VpcId, Filter | This action is deprecated. Describes the ClassicLink status of the specified VPCs. |
disable_vpc_classic_link_dns_support | exec | region | VpcId | 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. |
enable_vpc_classic_link_dns_support | exec | region | VpcId | This 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
DryRun | boolean | Checks 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. |
Filter | array | The 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. |
VpcId | string | The ID of the VPC. |
SELECT examples
- describe_vpc_classic_link
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
- disable_vpc_classic_link_dns_support
- enable_vpc_classic_link_dns_support
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 }}'
;
This 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.
EXEC aws.ec2.vpc_classic_links.enable_vpc_classic_link_dns_support
@region='{{ region }}' --required,
@VpcId='{{ VpcId }}'
;