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 |
This is a paginated call to list linked accounts that are linked to the payer account for the specified time period. If no information is provided, the current billing period is used. The response will optionally include the billing group that's associated with the linked account.
This operation returns paginated results.
Synopsis
- data ListAccountAssociations = ListAccountAssociations' {}
- newListAccountAssociations :: ListAccountAssociations
- listAccountAssociations_billingPeriod :: Lens' ListAccountAssociations (Maybe Text)
- listAccountAssociations_filters :: Lens' ListAccountAssociations (Maybe ListAccountAssociationsFilter)
- listAccountAssociations_nextToken :: Lens' ListAccountAssociations (Maybe Text)
- data ListAccountAssociationsResponse = ListAccountAssociationsResponse' {}
- newListAccountAssociationsResponse :: Int -> ListAccountAssociationsResponse
- listAccountAssociationsResponse_linkedAccounts :: Lens' ListAccountAssociationsResponse (Maybe [AccountAssociationsListElement])
- listAccountAssociationsResponse_nextToken :: Lens' ListAccountAssociationsResponse (Maybe Text)
- listAccountAssociationsResponse_httpStatus :: Lens' ListAccountAssociationsResponse Int
Creating a Request
data ListAccountAssociations Source #
See: newListAccountAssociations
smart constructor.
ListAccountAssociations' | |
|
Instances
newListAccountAssociations :: ListAccountAssociations Source #
Create a value of ListAccountAssociations
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:billingPeriod:ListAccountAssociations'
, listAccountAssociations_billingPeriod
- The preferred billing period to get account associations.
$sel:filters:ListAccountAssociations'
, listAccountAssociations_filters
- The filter on the account ID of the linked account, or any of the
following:
MONITORED
: linked accounts that are associated to billing groups.
UNMONITORED
: linked accounts that aren't associated to billing
groups.
Billing Group Arn
: linked accounts that are associated to the provided
billing group Arn.
ListAccountAssociations
, listAccountAssociations_nextToken
- The pagination token that's used on subsequent calls to retrieve
accounts.
Request Lenses
listAccountAssociations_billingPeriod :: Lens' ListAccountAssociations (Maybe Text) Source #
The preferred billing period to get account associations.
listAccountAssociations_filters :: Lens' ListAccountAssociations (Maybe ListAccountAssociationsFilter) Source #
The filter on the account ID of the linked account, or any of the following:
MONITORED
: linked accounts that are associated to billing groups.
UNMONITORED
: linked accounts that aren't associated to billing
groups.
Billing Group Arn
: linked accounts that are associated to the provided
billing group Arn.
listAccountAssociations_nextToken :: Lens' ListAccountAssociations (Maybe Text) Source #
The pagination token that's used on subsequent calls to retrieve accounts.
Destructuring the Response
data ListAccountAssociationsResponse Source #
See: newListAccountAssociationsResponse
smart constructor.
ListAccountAssociationsResponse' | |
|
Instances
newListAccountAssociationsResponse Source #
Create a value of ListAccountAssociationsResponse
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:linkedAccounts:ListAccountAssociationsResponse'
, listAccountAssociationsResponse_linkedAccounts
- The list of linked accounts in the payer account.
ListAccountAssociations
, listAccountAssociationsResponse_nextToken
- The pagination token that's used on subsequent calls to get accounts.
$sel:httpStatus:ListAccountAssociationsResponse'
, listAccountAssociationsResponse_httpStatus
- The response's http status code.
Response Lenses
listAccountAssociationsResponse_linkedAccounts :: Lens' ListAccountAssociationsResponse (Maybe [AccountAssociationsListElement]) Source #
The list of linked accounts in the payer account.
listAccountAssociationsResponse_nextToken :: Lens' ListAccountAssociationsResponse (Maybe Text) Source #
The pagination token that's used on subsequent calls to get accounts.
listAccountAssociationsResponse_httpStatus :: Lens' ListAccountAssociationsResponse Int Source #
The response's http status code.