Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.
Synopsis
- data DescribeVpcAttribute = DescribeVpcAttribute' {}
- newDescribeVpcAttribute :: VpcAttributeName -> Text -> DescribeVpcAttribute
- describeVpcAttribute_dryRun :: Lens' DescribeVpcAttribute (Maybe Bool)
- describeVpcAttribute_attribute :: Lens' DescribeVpcAttribute VpcAttributeName
- describeVpcAttribute_vpcId :: Lens' DescribeVpcAttribute Text
- data DescribeVpcAttributeResponse = DescribeVpcAttributeResponse' {}
- newDescribeVpcAttributeResponse :: Int -> DescribeVpcAttributeResponse
- describeVpcAttributeResponse_enableDnsHostnames :: Lens' DescribeVpcAttributeResponse (Maybe AttributeBooleanValue)
- describeVpcAttributeResponse_enableDnsSupport :: Lens' DescribeVpcAttributeResponse (Maybe AttributeBooleanValue)
- describeVpcAttributeResponse_enableNetworkAddressUsageMetrics :: Lens' DescribeVpcAttributeResponse (Maybe AttributeBooleanValue)
- describeVpcAttributeResponse_vpcId :: Lens' DescribeVpcAttributeResponse (Maybe Text)
- describeVpcAttributeResponse_httpStatus :: Lens' DescribeVpcAttributeResponse Int
Creating a Request
data DescribeVpcAttribute Source #
See: newDescribeVpcAttribute
smart constructor.
DescribeVpcAttribute' | |
|
Instances
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
.
describeVpcAttribute_attribute :: Lens' DescribeVpcAttribute VpcAttributeName Source #
The VPC attribute.
describeVpcAttribute_vpcId :: Lens' DescribeVpcAttribute Text Source #
The ID of the VPC.
Destructuring the Response
data DescribeVpcAttributeResponse Source #
See: newDescribeVpcAttributeResponse
smart constructor.
DescribeVpcAttributeResponse' | |
|
Instances
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.
describeVpcAttributeResponse_enableNetworkAddressUsageMetrics :: Lens' DescribeVpcAttributeResponse (Maybe AttributeBooleanValue) Source #
Indicates whether Network Address Usage metrics are enabled for your VPC.
describeVpcAttributeResponse_vpcId :: Lens' DescribeVpcAttributeResponse (Maybe Text) Source #
The ID of the VPC.
describeVpcAttributeResponse_httpStatus :: Lens' DescribeVpcAttributeResponse Int Source #
The response's http status code.