Modifies the options for instance hostnames for the specified instance.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
modify-private-dns-name-options
[--dry-run | --no-dry-run]
[--instance-id <value>]
[--private-dns-hostname-type <value>]
[--enable-resource-name-dns-a-record | --no-enable-resource-name-dns-a-record]
[--enable-resource-name-dns-aaaa-record | --no-enable-resource-name-dns-aaaa-record]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
--dry-run
| --no-dry-run
(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 isUnauthorizedOperation
.
--instance-id
(string)
The ID of the instance.
--private-dns-hostname-type
(string)
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.
Possible values:
ip-name
resource-name
--enable-resource-name-dns-a-record
| --no-enable-resource-name-dns-a-record
(boolean)
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
--enable-resource-name-dns-aaaa-record
| --no-enable-resource-name-dns-aaaa-record
(boolean)
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
See ‘aws help’ for descriptions of global parameters.