Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Lists the account creation requests that match the specified status that is currently being tracked for the organization.
This operation can be called only from the organization's master account.
This operation returns paginated results.
- listCreateAccountStatus :: ListCreateAccountStatus
- data ListCreateAccountStatus
- lcasStates :: Lens' ListCreateAccountStatus [CreateAccountState]
- lcasNextToken :: Lens' ListCreateAccountStatus (Maybe Text)
- lcasMaxResults :: Lens' ListCreateAccountStatus (Maybe Natural)
- listCreateAccountStatusResponse :: Int -> ListCreateAccountStatusResponse
- data ListCreateAccountStatusResponse
- lcasrsCreateAccountStatuses :: Lens' ListCreateAccountStatusResponse [CreateAccountStatus]
- lcasrsNextToken :: Lens' ListCreateAccountStatusResponse (Maybe Text)
- lcasrsResponseStatus :: Lens' ListCreateAccountStatusResponse Int
Creating a Request
listCreateAccountStatus :: ListCreateAccountStatus Source #
Creates a value of ListCreateAccountStatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcasStates
- A list of one or more states that you want included in the response. If this parameter is not present, then all requests are included in the response.lcasNextToken
- Use this parameter if you receive aNextToken
response in a previous request that indicates that there is more output available. Set it to the value of the previous call'sNextToken
response to indicate where the output should continue from.lcasMaxResults
- (Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, theNextToken
response element is present and has a value (is not null). Include that value as theNextToken
request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should checkNextToken
after every operation to ensure that you receive all of the results.
data ListCreateAccountStatus Source #
See: listCreateAccountStatus
smart constructor.
Request Lenses
lcasStates :: Lens' ListCreateAccountStatus [CreateAccountState] Source #
A list of one or more states that you want included in the response. If this parameter is not present, then all requests are included in the response.
lcasNextToken :: Lens' ListCreateAccountStatus (Maybe Text) Source #
Use this parameter if you receive a NextToken
response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken
response to indicate where the output should continue from.
lcasMaxResults :: Lens' ListCreateAccountStatus (Maybe Natural) Source #
(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken
response element is present and has a value (is not null). Include that value as the NextToken
request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken
after every operation to ensure that you receive all of the results.
Destructuring the Response
listCreateAccountStatusResponse Source #
Creates a value of ListCreateAccountStatusResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcasrsCreateAccountStatuses
- A list of objects with details about the requests. Certain elements, such as the accountId number, are present in the output only after the account has been successfully created.lcasrsNextToken
- If present, this value indicates that there is more output available than is included in the current response. Use this value in theNextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
.lcasrsResponseStatus
- -- | The response status code.
data ListCreateAccountStatusResponse Source #
See: listCreateAccountStatusResponse
smart constructor.
Response Lenses
lcasrsCreateAccountStatuses :: Lens' ListCreateAccountStatusResponse [CreateAccountStatus] Source #
A list of objects with details about the requests. Certain elements, such as the accountId number, are present in the output only after the account has been successfully created.
lcasrsNextToken :: Lens' ListCreateAccountStatusResponse (Maybe Text) Source #
If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken
response element comes back as null
.
lcasrsResponseStatus :: Lens' ListCreateAccountStatusResponse Int Source #
- - | The response status code.