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.DescribeAccountAttributes

Description

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, or none.
  • 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

Creating a Request

data DescribeAccountAttributes Source #

See: newDescribeAccountAttributes smart constructor.

Constructors

DescribeAccountAttributes' 

Fields

  • attributeNames :: Maybe [AccountAttributeName]

    The account attribute names.

  • 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.

Instances

Instances details
ToHeaders DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

ToPath DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

ToQuery DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

AWSRequest DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

Generic DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

Associated Types

type Rep DescribeAccountAttributes :: Type -> Type #

Read DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

Show DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

NFData DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

Eq DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

Hashable DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

type AWSResponse DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

type Rep DescribeAccountAttributes Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

type Rep DescribeAccountAttributes = D1 ('MetaData "DescribeAccountAttributes" "Amazonka.EC2.DescribeAccountAttributes" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeAccountAttributes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AccountAttributeName])) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))

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_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.

Constructors

DescribeAccountAttributesResponse' 

Fields

Instances

Instances details
Generic DescribeAccountAttributesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

Associated Types

type Rep DescribeAccountAttributesResponse :: Type -> Type #

Read DescribeAccountAttributesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

Show DescribeAccountAttributesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

NFData DescribeAccountAttributesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

Eq DescribeAccountAttributesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeAccountAttributes

type Rep DescribeAccountAttributesResponse Source # 
Instance details

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