Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists all license usage records for a license configuration, displaying license consumption details by resource at a selected point in time. Use this action to audit the current license consumption for any license inventory and configuration.
This operation returns paginated results.
Synopsis
- data ListUsageForLicenseConfiguration = ListUsageForLicenseConfiguration' {}
- newListUsageForLicenseConfiguration :: Text -> ListUsageForLicenseConfiguration
- listUsageForLicenseConfiguration_filters :: Lens' ListUsageForLicenseConfiguration (Maybe [Filter])
- listUsageForLicenseConfiguration_nextToken :: Lens' ListUsageForLicenseConfiguration (Maybe Text)
- listUsageForLicenseConfiguration_maxResults :: Lens' ListUsageForLicenseConfiguration (Maybe Int)
- listUsageForLicenseConfiguration_licenseConfigurationArn :: Lens' ListUsageForLicenseConfiguration Text
- data ListUsageForLicenseConfigurationResponse = ListUsageForLicenseConfigurationResponse' {}
- newListUsageForLicenseConfigurationResponse :: Int -> ListUsageForLicenseConfigurationResponse
- listUsageForLicenseConfigurationResponse_nextToken :: Lens' ListUsageForLicenseConfigurationResponse (Maybe Text)
- listUsageForLicenseConfigurationResponse_licenseConfigurationUsageList :: Lens' ListUsageForLicenseConfigurationResponse (Maybe [LicenseConfigurationUsage])
- listUsageForLicenseConfigurationResponse_httpStatus :: Lens' ListUsageForLicenseConfigurationResponse Int
Creating a Request
data ListUsageForLicenseConfiguration Source #
See: newListUsageForLicenseConfiguration
smart constructor.
ListUsageForLicenseConfiguration' | |
|
Instances
newListUsageForLicenseConfiguration Source #
:: Text |
|
-> ListUsageForLicenseConfiguration |
Create a value of ListUsageForLicenseConfiguration
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:filters:ListUsageForLicenseConfiguration'
, listUsageForLicenseConfiguration_filters
- Filters to scope the results. The following filters and logical
operators are supported:
resourceArn
- The ARN of the license configuration resource. Logical operators areEQUALS
|NOT_EQUALS
.resourceType
- The resource type (EC2_INSTANCE
|EC2_HOST
|EC2_AMI
|SYSTEMS_MANAGER_MANAGED_INSTANCE
). Logical operators areEQUALS
|NOT_EQUALS
.resourceAccount
- The ID of the account that owns the resource. Logical operators areEQUALS
|NOT_EQUALS
.
$sel:nextToken:ListUsageForLicenseConfiguration'
, listUsageForLicenseConfiguration_nextToken
- Token for the next set of results.
$sel:maxResults:ListUsageForLicenseConfiguration'
, listUsageForLicenseConfiguration_maxResults
- Maximum number of results to return in a single call.
$sel:licenseConfigurationArn:ListUsageForLicenseConfiguration'
, listUsageForLicenseConfiguration_licenseConfigurationArn
- Amazon Resource Name (ARN) of the license configuration.
Request Lenses
listUsageForLicenseConfiguration_filters :: Lens' ListUsageForLicenseConfiguration (Maybe [Filter]) Source #
Filters to scope the results. The following filters and logical operators are supported:
resourceArn
- The ARN of the license configuration resource. Logical operators areEQUALS
|NOT_EQUALS
.resourceType
- The resource type (EC2_INSTANCE
|EC2_HOST
|EC2_AMI
|SYSTEMS_MANAGER_MANAGED_INSTANCE
). Logical operators areEQUALS
|NOT_EQUALS
.resourceAccount
- The ID of the account that owns the resource. Logical operators areEQUALS
|NOT_EQUALS
.
listUsageForLicenseConfiguration_nextToken :: Lens' ListUsageForLicenseConfiguration (Maybe Text) Source #
Token for the next set of results.
listUsageForLicenseConfiguration_maxResults :: Lens' ListUsageForLicenseConfiguration (Maybe Int) Source #
Maximum number of results to return in a single call.
listUsageForLicenseConfiguration_licenseConfigurationArn :: Lens' ListUsageForLicenseConfiguration Text Source #
Amazon Resource Name (ARN) of the license configuration.
Destructuring the Response
data ListUsageForLicenseConfigurationResponse Source #
See: newListUsageForLicenseConfigurationResponse
smart constructor.
ListUsageForLicenseConfigurationResponse' | |
|
Instances
newListUsageForLicenseConfigurationResponse Source #
Create a value of ListUsageForLicenseConfigurationResponse
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:nextToken:ListUsageForLicenseConfiguration'
, listUsageForLicenseConfigurationResponse_nextToken
- Token for the next set of results.
$sel:licenseConfigurationUsageList:ListUsageForLicenseConfigurationResponse'
, listUsageForLicenseConfigurationResponse_licenseConfigurationUsageList
- Information about the license configurations.
$sel:httpStatus:ListUsageForLicenseConfigurationResponse'
, listUsageForLicenseConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
listUsageForLicenseConfigurationResponse_nextToken :: Lens' ListUsageForLicenseConfigurationResponse (Maybe Text) Source #
Token for the next set of results.
listUsageForLicenseConfigurationResponse_licenseConfigurationUsageList :: Lens' ListUsageForLicenseConfigurationResponse (Maybe [LicenseConfigurationUsage]) Source #
Information about the license configurations.
listUsageForLicenseConfigurationResponse_httpStatus :: Lens' ListUsageForLicenseConfigurationResponse Int Source #
The response's http status code.