Smaws_Client_ComputeOptimizerAutomation.AssociateAccountsAssociates one or more member accounts with your organization's management account, enabling centralized implementation of optimization actions across those accounts. Once associated, the management account (or a delegated administrator) can apply recommended actions to the member account. When you associate a member account, its organization rule mode is automatically set to "Any allowed," which permits the management account to create Automation rules that automatically apply actions to that account. If the member account has not previously enabled the Automation feature, the association process automatically enables it.
Only the management account or a delegated administrator can perform this action.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ForbiddenException of Types.forbidden_exception
| `IdempotencyTokenInUseException of Types.idempotency_token_in_use_exception
| `IdempotentParameterMismatchException of
Types.idempotent_parameter_mismatch_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidParameterValueException of Types.invalid_parameter_value_exception
| `NotManagementAccountException of Types.not_management_account_exception
| `OptInRequiredException of Types.opt_in_required_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.associate_accounts_request ->
(Types.associate_accounts_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ForbiddenException of Types.forbidden_exception
| `IdempotencyTokenInUseException of
Types.idempotency_token_in_use_exception
| `IdempotentParameterMismatchException of
Types.idempotent_parameter_mismatch_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `NotManagementAccountException of Types.not_management_account_exception
| `OptInRequiredException of Types.opt_in_required_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.associate_accounts_request ->
(Types.associate_accounts_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ForbiddenException of Types.forbidden_exception
| `IdempotencyTokenInUseException of
Types.idempotency_token_in_use_exception
| `IdempotentParameterMismatchException of
Types.idempotent_parameter_mismatch_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `NotManagementAccountException of Types.not_management_account_exception
| `OptInRequiredException of Types.opt_in_required_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result