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 |
Gets information about the current Account resource.
Synopsis
- data GetAccount = GetAccount' {
- newGetAccount :: GetAccount
- data Account = Account' {}
- newAccount :: Account
- account_apiKeyVersion :: Lens' Account (Maybe Text)
- account_cloudwatchRoleArn :: Lens' Account (Maybe Text)
- account_features :: Lens' Account (Maybe [Text])
- account_throttleSettings :: Lens' Account (Maybe ThrottleSettings)
Creating a Request
data GetAccount Source #
Requests API Gateway to get information about the current Account resource.
See: newGetAccount
smart constructor.
Instances
newGetAccount :: GetAccount Source #
Create a value of GetAccount
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
Represents an AWS account that is associated with API Gateway.
See: newAccount
smart constructor.
Account' | |
|
Instances
FromJSON Account Source # | |
Generic Account Source # | |
Read Account Source # | |
Show Account Source # | |
NFData Account Source # | |
Defined in Amazonka.APIGateway.Types.Account | |
Eq Account Source # | |
Hashable Account Source # | |
Defined in Amazonka.APIGateway.Types.Account | |
type Rep Account Source # | |
Defined in Amazonka.APIGateway.Types.Account type Rep Account = D1 ('MetaData "Account" "Amazonka.APIGateway.Types.Account" "amazonka-apigateway-2.0-zw0Lbt4rUGxZBjJ4Rpfi" 'False) (C1 ('MetaCons "Account'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "apiKeyVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "cloudwatchRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "features") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "throttleSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ThrottleSettings))))) |
newAccount :: Account Source #
Create a value of Account
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:apiKeyVersion:Account'
, account_apiKeyVersion
- The version of the API keys used for the account.
$sel:cloudwatchRoleArn:Account'
, account_cloudwatchRoleArn
- The ARN of an Amazon CloudWatch role for the current Account.
$sel:features:Account'
, account_features
- A list of features supported for the account. When usage plans are
enabled, the features list will include an entry of "UsagePlans"
.
$sel:throttleSettings:Account'
, account_throttleSettings
- Specifies the API request limits configured for the current Account.
Response Lenses
account_apiKeyVersion :: Lens' Account (Maybe Text) Source #
The version of the API keys used for the account.
account_cloudwatchRoleArn :: Lens' Account (Maybe Text) Source #
The ARN of an Amazon CloudWatch role for the current Account.
account_features :: Lens' Account (Maybe [Text]) Source #
A list of features supported for the account. When usage plans are
enabled, the features list will include an entry of "UsagePlans"
.
account_throttleSettings :: Lens' Account (Maybe ThrottleSettings) Source #
Specifies the API request limits configured for the current Account.