paws.compute (version 0.1.0)

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)

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
# 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.
# }
# NOT RUN {
svc$describe_vpc_attribute(
  Attribute = "enableDnsSupport",
  VpcId = "vpc-a01106c2"
)
# }
# NOT RUN {
# 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.
# }
# NOT RUN {
svc$describe_vpc_attribute(
  Attribute = "enableDnsHostnames",
  VpcId = "vpc-a01106c2"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace