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 attributes of your Amazon Web Services account. The following are the supported account attributes:
supported-platforms
: Indicates whether your account can launch instances into EC2-Classic and EC2-VPC, or only into EC2-VPC.default-vpc
: The ID of the default VPC for your account, ornone
.max-instances
: This attribute is no longer supported. The returned value does not reflect your actual vCPU limit for running On-Demand Instances. For more information, see On-Demand Instance Limits in the Amazon Elastic Compute Cloud User Guide.vpc-max-security-groups-per-interface
: The maximum number of security groups that you can assign to a network interface.max-elastic-ips
: The maximum number of Elastic IP addresses that you can allocate for use with EC2-Classic.vpc-max-elastic-ips
: The maximum number of Elastic IP addresses that you can allocate for use with EC2-VPC.
We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide.
Synopsis
- data DescribeAccountAttributes = DescribeAccountAttributes' {}
- newDescribeAccountAttributes :: DescribeAccountAttributes
- describeAccountAttributes_attributeNames :: Lens' DescribeAccountAttributes (Maybe [AccountAttributeName])
- describeAccountAttributes_dryRun :: Lens' DescribeAccountAttributes (Maybe Bool)
- data DescribeAccountAttributesResponse = DescribeAccountAttributesResponse' {}
- newDescribeAccountAttributesResponse :: Int -> DescribeAccountAttributesResponse
- describeAccountAttributesResponse_accountAttributes :: Lens' DescribeAccountAttributesResponse (Maybe [AccountAttribute])
- describeAccountAttributesResponse_httpStatus :: Lens' DescribeAccountAttributesResponse Int
Creating a Request
data DescribeAccountAttributes Source #
See: newDescribeAccountAttributes
smart constructor.
DescribeAccountAttributes' | |
|
Instances
newDescribeAccountAttributes :: DescribeAccountAttributes Source #
Create a value of DescribeAccountAttributes
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:attributeNames:DescribeAccountAttributes'
, describeAccountAttributes_attributeNames
- The account attribute names.
$sel:dryRun:DescribeAccountAttributes'
, describeAccountAttributes_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 Lenses
describeAccountAttributes_attributeNames :: Lens' DescribeAccountAttributes (Maybe [AccountAttributeName]) Source #
The account attribute names.
describeAccountAttributes_dryRun :: Lens' DescribeAccountAttributes (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 DescribeAccountAttributesResponse Source #
See: newDescribeAccountAttributesResponse
smart constructor.
DescribeAccountAttributesResponse' | |
|
Instances
Generic DescribeAccountAttributesResponse Source # | |
Read DescribeAccountAttributesResponse Source # | |
Show DescribeAccountAttributesResponse Source # | |
Defined in Amazonka.EC2.DescribeAccountAttributes | |
NFData DescribeAccountAttributesResponse Source # | |
Defined in Amazonka.EC2.DescribeAccountAttributes rnf :: DescribeAccountAttributesResponse -> () # | |
Eq DescribeAccountAttributesResponse Source # | |
type Rep DescribeAccountAttributesResponse Source # | |
Defined in Amazonka.EC2.DescribeAccountAttributes type Rep DescribeAccountAttributesResponse = D1 ('MetaData "DescribeAccountAttributesResponse" "Amazonka.EC2.DescribeAccountAttributes" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeAccountAttributesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountAttributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AccountAttribute])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDescribeAccountAttributesResponse Source #
Create a value of DescribeAccountAttributesResponse
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:accountAttributes:DescribeAccountAttributesResponse'
, describeAccountAttributesResponse_accountAttributes
- Information about the account attributes.
$sel:httpStatus:DescribeAccountAttributesResponse'
, describeAccountAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
describeAccountAttributesResponse_accountAttributes :: Lens' DescribeAccountAttributesResponse (Maybe [AccountAttribute]) Source #
Information about the account attributes.
describeAccountAttributesResponse_httpStatus :: Lens' DescribeAccountAttributesResponse Int Source #
The response's http status code.