Skip to content

EC2  >  Operations  >  enable_vpc_classic_link_dns_support

enable_vpc_classic_link_dns_support

Operation

enable_vpc_classic_link_dns_support(request: EnableVpcClassicLinkDnsSupportInput | EnableVpcClassicLinkDnsSupportInputDict, /, *, plugins: list[Plugin] | None = None) -> EnableVpcClassicLinkDnsSupportOutput
enable_vpc_classic_link_dns_support(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[EnableVpcClassicLinkDnsSupportInputDict]) -> EnableVpcClassicLinkDnsSupportOutput
Note

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:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
EnableVpcClassicLinkDnsSupportOutput

An instance of EnableVpcClassicLinkDnsSupportOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

EnableVpcClassicLinkDnsSupportInput dataclass

Bases: _SerdeShape

Dataclass for EnableVpcClassicLinkDnsSupportInput structure.

Attributes
vpc_id class-attribute instance-attribute
vpc_id: str | None = ...

The ID of the VPC.

Dictionaries

EnableVpcClassicLinkDnsSupportInputDict

Bases: TypedDict

Dictionary form of EnableVpcClassicLinkDnsSupportInput.

Attributes
vpc_id instance-attribute
vpc_id: str | None

The ID of the VPC.

Output

EnableVpcClassicLinkDnsSupportOutput dataclass

Bases: _SerdeShape

Dataclass for EnableVpcClassicLinkDnsSupportOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

return_ class-attribute instance-attribute
return_: bool | None = ...

Returns true if the request succeeds; otherwise, it returns an error.