Skip to content

/AWS1/CL_EC2=>MODIFYPRIVATEDNSNAMEOPTIONS()

About ModifyPrivateDnsNameOptions

Modifies the options for instance hostnames for the specified instance.

Method Signature

IMPORTING

Required arguments:

IV_INSTANCEID TYPE /AWS1/EC2INSTANCEID /AWS1/EC2INSTANCEID

The ID of the instance.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

IV_PRIVATEDNSHOSTNAMETYPE TYPE /AWS1/EC2HOSTNAMETYPE /AWS1/EC2HOSTNAMETYPE

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.

IV_ENABLERESOURCENAMEDNSAREC TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

IV_ENABLERESRCNAMEDNSAAAAREC TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2MODPVTDNSNAMEOPT01 /AWS1/CL_EC2MODPVTDNSNAMEOPT01