| 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 |
Amazonka.ServiceQuotas.GetServiceQuota
Description
Retrieves the applied quota value for the specified quota. For some quotas, only the default values are available. If the applied quota value is not available for a quota, the quota is not retrieved.
Synopsis
- data GetServiceQuota = GetServiceQuota' {
- serviceCode :: Text
- quotaCode :: Text
- newGetServiceQuota :: Text -> Text -> GetServiceQuota
- getServiceQuota_serviceCode :: Lens' GetServiceQuota Text
- getServiceQuota_quotaCode :: Lens' GetServiceQuota Text
- data GetServiceQuotaResponse = GetServiceQuotaResponse' {
- quota :: Maybe ServiceQuota
- httpStatus :: Int
- newGetServiceQuotaResponse :: Int -> GetServiceQuotaResponse
- getServiceQuotaResponse_quota :: Lens' GetServiceQuotaResponse (Maybe ServiceQuota)
- getServiceQuotaResponse_httpStatus :: Lens' GetServiceQuotaResponse Int
Creating a Request
data GetServiceQuota Source #
See: newGetServiceQuota smart constructor.
Constructors
| GetServiceQuota' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetServiceQuota |
Create a value of GetServiceQuota 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:
GetServiceQuota, getServiceQuota_serviceCode - The service identifier.
GetServiceQuota, getServiceQuota_quotaCode - The quota identifier.
Request Lenses
getServiceQuota_serviceCode :: Lens' GetServiceQuota Text Source #
The service identifier.
getServiceQuota_quotaCode :: Lens' GetServiceQuota Text Source #
The quota identifier.
Destructuring the Response
data GetServiceQuotaResponse Source #
See: newGetServiceQuotaResponse smart constructor.
Constructors
| GetServiceQuotaResponse' | |
Fields
| |
Instances
newGetServiceQuotaResponse Source #
Create a value of GetServiceQuotaResponse 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:quota:GetServiceQuotaResponse', getServiceQuotaResponse_quota - Information about the quota.
$sel:httpStatus:GetServiceQuotaResponse', getServiceQuotaResponse_httpStatus - The response's http status code.
Response Lenses
getServiceQuotaResponse_quota :: Lens' GetServiceQuotaResponse (Maybe ServiceQuota) Source #
Information about the quota.
getServiceQuotaResponse_httpStatus :: Lens' GetServiceQuotaResponse Int Source #
The response's http status code.