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 |
Connects an array of account IDs in a consolidated billing family to a predefined billing group. The account IDs must be a part of the consolidated billing family during the current month, and not already associated with another billing group. The maximum number of accounts that can be associated in one call is 30.
Synopsis
- data AssociateAccounts = AssociateAccounts' {
- arn :: Text
- accountIds :: NonEmpty Text
- newAssociateAccounts :: Text -> NonEmpty Text -> AssociateAccounts
- associateAccounts_arn :: Lens' AssociateAccounts Text
- associateAccounts_accountIds :: Lens' AssociateAccounts (NonEmpty Text)
- data AssociateAccountsResponse = AssociateAccountsResponse' {
- arn :: Maybe Text
- httpStatus :: Int
- newAssociateAccountsResponse :: Int -> AssociateAccountsResponse
- associateAccountsResponse_arn :: Lens' AssociateAccountsResponse (Maybe Text)
- associateAccountsResponse_httpStatus :: Lens' AssociateAccountsResponse Int
Creating a Request
data AssociateAccounts Source #
See: newAssociateAccounts
smart constructor.
AssociateAccounts' | |
|
Instances
Create a value of AssociateAccounts
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:
AssociateAccounts
, associateAccounts_arn
- The Amazon Resource Name (ARN) of the billing group that associates the
array of account IDs.
$sel:accountIds:AssociateAccounts'
, associateAccounts_accountIds
- The associating array of account IDs.
Request Lenses
associateAccounts_arn :: Lens' AssociateAccounts Text Source #
The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.
associateAccounts_accountIds :: Lens' AssociateAccounts (NonEmpty Text) Source #
The associating array of account IDs.
Destructuring the Response
data AssociateAccountsResponse Source #
See: newAssociateAccountsResponse
smart constructor.
AssociateAccountsResponse' | |
|
Instances
newAssociateAccountsResponse Source #
Create a value of AssociateAccountsResponse
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:
AssociateAccounts
, associateAccountsResponse_arn
- The Amazon Resource Name (ARN) of the billing group that associates the
array of account IDs.
$sel:httpStatus:AssociateAccountsResponse'
, associateAccountsResponse_httpStatus
- The response's http status code.
Response Lenses
associateAccountsResponse_arn :: Lens' AssociateAccountsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the billing group that associates the array of account IDs.
associateAccountsResponse_httpStatus :: Lens' AssociateAccountsResponse Int Source #
The response's http status code.