amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeVpcAttribute

Description

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

Synopsis

Creating a Request

data DescribeVpcAttribute Source #

See: newDescribeVpcAttribute smart constructor.

Constructors

DescribeVpcAttribute' 

Fields

  • dryRun :: Maybe Bool

    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.

  • attribute :: VpcAttributeName

    The VPC attribute.

  • vpcId :: Text

    The ID of the VPC.

Instances

Instances details
ToHeaders DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

ToPath DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

ToQuery DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

AWSRequest DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

Associated Types

type AWSResponse DescribeVpcAttribute #

Generic DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

Associated Types

type Rep DescribeVpcAttribute :: Type -> Type #

Read DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

Show DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

NFData DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

Methods

rnf :: DescribeVpcAttribute -> () #

Eq DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

Hashable DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

type AWSResponse DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

type Rep DescribeVpcAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

type Rep DescribeVpcAttribute = D1 ('MetaData "DescribeVpcAttribute" "Amazonka.EC2.DescribeVpcAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeVpcAttribute'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "attribute") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VpcAttributeName) :*: S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDescribeVpcAttribute Source #

Create a value of DescribeVpcAttribute with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:DescribeVpcAttribute', describeVpcAttribute_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.

$sel:attribute:DescribeVpcAttribute', describeVpcAttribute_attribute - The VPC attribute.

DescribeVpcAttribute, describeVpcAttribute_vpcId - The ID of the VPC.

Request Lenses

describeVpcAttribute_dryRun :: Lens' DescribeVpcAttribute (Maybe Bool) Source #

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.

Destructuring the Response

data DescribeVpcAttributeResponse Source #

See: newDescribeVpcAttributeResponse smart constructor.

Constructors

DescribeVpcAttributeResponse' 

Fields

Instances

Instances details
Generic DescribeVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

Associated Types

type Rep DescribeVpcAttributeResponse :: Type -> Type #

Read DescribeVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

Show DescribeVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

NFData DescribeVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

Eq DescribeVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

type Rep DescribeVpcAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVpcAttribute

type Rep DescribeVpcAttributeResponse = D1 ('MetaData "DescribeVpcAttributeResponse" "Amazonka.EC2.DescribeVpcAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeVpcAttributeResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "enableDnsHostnames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: S1 ('MetaSel ('Just "enableDnsSupport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeBooleanValue))) :*: (S1 ('MetaSel ('Just "enableNetworkAddressUsageMetrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: (S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newDescribeVpcAttributeResponse Source #

Create a value of DescribeVpcAttributeResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:enableDnsHostnames:DescribeVpcAttributeResponse', describeVpcAttributeResponse_enableDnsHostnames - 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.

$sel:enableDnsSupport:DescribeVpcAttributeResponse', describeVpcAttributeResponse_enableDnsSupport - 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.

$sel:enableNetworkAddressUsageMetrics:DescribeVpcAttributeResponse', describeVpcAttributeResponse_enableNetworkAddressUsageMetrics - Indicates whether Network Address Usage metrics are enabled for your VPC.

DescribeVpcAttribute, describeVpcAttributeResponse_vpcId - The ID of the VPC.

$sel:httpStatus:DescribeVpcAttributeResponse', describeVpcAttributeResponse_httpStatus - The response's http status code.

Response Lenses

describeVpcAttributeResponse_enableDnsHostnames :: Lens' DescribeVpcAttributeResponse (Maybe AttributeBooleanValue) Source #

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.

describeVpcAttributeResponse_enableDnsSupport :: Lens' DescribeVpcAttributeResponse (Maybe AttributeBooleanValue) Source #

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.