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 |
Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.
This operation returns paginated results.
Synopsis
- data ListLinuxSubscriptionInstances = ListLinuxSubscriptionInstances' {}
- newListLinuxSubscriptionInstances :: ListLinuxSubscriptionInstances
- listLinuxSubscriptionInstances_filters :: Lens' ListLinuxSubscriptionInstances (Maybe [Filter])
- listLinuxSubscriptionInstances_maxResults :: Lens' ListLinuxSubscriptionInstances (Maybe Int)
- listLinuxSubscriptionInstances_nextToken :: Lens' ListLinuxSubscriptionInstances (Maybe Text)
- data ListLinuxSubscriptionInstancesResponse = ListLinuxSubscriptionInstancesResponse' {}
- newListLinuxSubscriptionInstancesResponse :: Int -> ListLinuxSubscriptionInstancesResponse
- listLinuxSubscriptionInstancesResponse_instances :: Lens' ListLinuxSubscriptionInstancesResponse (Maybe [Instance])
- listLinuxSubscriptionInstancesResponse_nextToken :: Lens' ListLinuxSubscriptionInstancesResponse (Maybe Text)
- listLinuxSubscriptionInstancesResponse_httpStatus :: Lens' ListLinuxSubscriptionInstancesResponse Int
Creating a Request
data ListLinuxSubscriptionInstances Source #
NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.
See: newListLinuxSubscriptionInstances
smart constructor.
ListLinuxSubscriptionInstances' | |
|
Instances
newListLinuxSubscriptionInstances :: ListLinuxSubscriptionInstances Source #
Create a value of ListLinuxSubscriptionInstances
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:ListLinuxSubscriptionInstances'
, listLinuxSubscriptionInstances_filters
- An array of structures that you can use to filter the results to those
that match one or more sets of key-value pairs that you specify. For
example, you can filter by the name of AmiID
with an optional operator
to see subscriptions that match, partially match, or don't match a
certain Amazon Machine Image (AMI) ID.
The valid names for this filter are:
AmiID
InstanceID
AccountID
Status
Region
UsageOperation
ProductCode
InstanceType
The valid Operators for this filter are:
contains
equals
Notequal
$sel:maxResults:ListLinuxSubscriptionInstances'
, listLinuxSubscriptionInstances_maxResults
- Maximum number of results to return in a single call.
ListLinuxSubscriptionInstances
, listLinuxSubscriptionInstances_nextToken
- Token for the next set of results.
Request Lenses
listLinuxSubscriptionInstances_filters :: Lens' ListLinuxSubscriptionInstances (Maybe [Filter]) Source #
An array of structures that you can use to filter the results to those
that match one or more sets of key-value pairs that you specify. For
example, you can filter by the name of AmiID
with an optional operator
to see subscriptions that match, partially match, or don't match a
certain Amazon Machine Image (AMI) ID.
The valid names for this filter are:
AmiID
InstanceID
AccountID
Status
Region
UsageOperation
ProductCode
InstanceType
The valid Operators for this filter are:
contains
equals
Notequal
listLinuxSubscriptionInstances_maxResults :: Lens' ListLinuxSubscriptionInstances (Maybe Int) Source #
Maximum number of results to return in a single call.
listLinuxSubscriptionInstances_nextToken :: Lens' ListLinuxSubscriptionInstances (Maybe Text) Source #
Token for the next set of results.
Destructuring the Response
data ListLinuxSubscriptionInstancesResponse Source #
See: newListLinuxSubscriptionInstancesResponse
smart constructor.
Instances
newListLinuxSubscriptionInstancesResponse Source #
Create a value of ListLinuxSubscriptionInstancesResponse
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:instances:ListLinuxSubscriptionInstancesResponse'
, listLinuxSubscriptionInstancesResponse_instances
- An array that contains instance objects.
ListLinuxSubscriptionInstances
, listLinuxSubscriptionInstancesResponse_nextToken
- Token for the next set of results.
$sel:httpStatus:ListLinuxSubscriptionInstancesResponse'
, listLinuxSubscriptionInstancesResponse_httpStatus
- The response's http status code.
Response Lenses
listLinuxSubscriptionInstancesResponse_instances :: Lens' ListLinuxSubscriptionInstancesResponse (Maybe [Instance]) Source #
An array that contains instance objects.
listLinuxSubscriptionInstancesResponse_nextToken :: Lens' ListLinuxSubscriptionInstancesResponse (Maybe Text) Source #
Token for the next set of results.
listLinuxSubscriptionInstancesResponse_httpStatus :: Lens' ListLinuxSubscriptionInstancesResponse Int Source #
The response's http status code.