modify_private_dns_name_options
¶
modify_private_dns_name_options(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
instance_id: Optional[InstanceId] = None,
private_dns_hostname_type: Optional[HostnameType] = None,
enable_resource_name_dns_a_record: Optional[Boolean] = None,
enable_resource_name_dns_aaaa_record: Optional[Boolean] = None,
) -> ModifyPrivateDnsNameOptionsResult
Modifies the options for instance hostnames for the specified instance.
Parameters:
-
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation. -
instance_id(Optional[InstanceId], default:None) –The ID of the instance.
-
private_dns_hostname_type(Optional[HostnameType], default:None) –The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
-
enable_resource_name_dns_a_record(Optional[Boolean], default:None) –Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
-
enable_resource_name_dns_aaaa_record(Optional[Boolean], default:None) –Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
52060 52061 52062 52063 52064 52065 52066 52067 52068 52069 52070 52071 52072 52073 52074 52075 52076 52077 52078 52079 52080 52081 52082 52083 52084 52085 52086 52087 52088 52089 52090 52091 52092 52093 52094 52095 52096 52097 52098 52099 52100 52101 52102 52103 52104 52105 52106 52107 52108 52109 52110 52111 52112 52113 52114 52115 52116 52117 52118 52119 52120 52121 52122 52123 52124 52125 52126 52127 52128 | |