Learn R Programming

paws.compute (version 0.1.12)

ec2_describe_vpc_attribute: Describes the specified attribute of the specified VPC

Description

Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

Usage

ec2_describe_vpc_attribute(Attribute, VpcId, DryRun)

Value

A list with the following syntax:

list(
  VpcId = "string",
  EnableDnsHostnames = list(
    Value = TRUE|FALSE
  ),
  EnableDnsSupport = list(
    Value = TRUE|FALSE
  )
)

Arguments

Attribute

[required] The VPC attribute.

VpcId

[required] The ID of the VPC.

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.

Request syntax

svc$describe_vpc_attribute(
  Attribute = "enableDnsSupport"|"enableDnsHostnames",
  VpcId = "string",
  DryRun = TRUE|FALSE
)

Examples

Run this code
if (FALSE) {
# This example describes the enableDnsSupport attribute. This attribute
# indicates whether DNS resolution is enabled for the VPC. If this
# attribute is true, the Amazon DNS server resolves DNS hostnames for your
# instances to their corresponding IP addresses; otherwise, it does not.
svc$describe_vpc_attribute(
  Attribute = "enableDnsSupport",
  VpcId = "vpc-a01106c2"
)

# This example describes the enableDnsHostnames attribute. This attribute
# indicates whether the instances launched in the VPC get DNS hostnames.
# If this attribute is true, instances in the VPC get DNS hostnames;
# otherwise, they do not.
svc$describe_vpc_attribute(
  Attribute = "enableDnsHostnames",
  VpcId = "vpc-a01106c2"
)
}

Run the code above in your browser using DataLab