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.
Parameters:
Raises:
Source code in docs_src/capo_ec2/_services/ec2.py
| def disable_vpc_classic_link_dns_support(
self,
*,
config_overrides: Optional[EC2ClientConfig] = None,
vpc_id: Optional["capo_ec2.types.vpc_id.VpcId"] = None,
) -> "capo_ec2.types.disable_vpc_classic_link_dns_support_result.DisableVpcClassicLinkDnsSupportResult":
"""<note> <p>This action is deprecated.</p> </note> <p>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.</p> <p>You must specify a VPC ID in the request.</p>
Args:
vpc_id: <p>The ID of the VPC.</p>
Raises:
capo_ec2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ec2.types.disable_vpc_classic_link_dns_support_request.DisableVpcClassicLinkDnsSupportRequest]",
) -> OperationResponse[
"capo_ec2.types.disable_vpc_classic_link_dns_support_result.DisableVpcClassicLinkDnsSupportResult"
]:
import capo_ec2._operations.amazon_ec2.disable_vpc_classic_link_dns_support
output, http_response = (
capo_ec2._operations.amazon_ec2.disable_vpc_classic_link_dns_support.disable_vpc_classic_link_dns_support(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisableVpcClassicLinkDnsSupport")
)
input_: capo_ec2.types.disable_vpc_classic_link_dns_support_request.DisableVpcClassicLinkDnsSupportRequest = {}
if vpc_id is not None:
input_["vpc_id"] = vpc_id
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|