Skip to content

Describe Vpc Attribute

ec2_describe_vpc_attribute R Documentation

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)

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.

Value

A list with the following syntax:

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

Request syntax

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

Examples

## Not run: 
# 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"
)

## End(Not run)