Skip to content

Modify Private Dns Name Options

ec2_modify_private_dns_name_options R Documentation

Modifies the options for instance hostnames for the specified instance

Description

Modifies the options for instance hostnames for the specified instance.

Usage

ec2_modify_private_dns_name_options(DryRun, InstanceId,
  PrivateDnsHostnameType, EnableResourceNameDnsARecord,
  EnableResourceNameDnsAAAARecord)

Arguments

DryRun

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.

InstanceId

[required] The ID of the instance.

PrivateDnsHostnameType

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.

EnableResourceNameDnsARecord

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

EnableResourceNameDnsAAAARecord

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

Value

A list with the following syntax:

list(
  Return = TRUE|FALSE
)

Request syntax

svc$modify_private_dns_name_options(
  DryRun = TRUE|FALSE,
  InstanceId = "string",
  PrivateDnsHostnameType = "ip-name"|"resource-name",
  EnableResourceNameDnsARecord = TRUE|FALSE,
  EnableResourceNameDnsAAAARecord = TRUE|FALSE
)