GetEnrollmentConfiguration - AWS Compute Optimizer

GetEnrollmentConfiguration

Retrieves the current enrollment configuration for Compute Optimizer Automation.

Response Syntax

{ "lastUpdatedTimestamp": number, "organizationRuleMode": "string", "status": "string", "statusReason": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

lastUpdatedTimestamp

The timestamp of the last update to the enrollment configuration.

Type: Timestamp

organizationRuleMode

Specifies whether the management account can create Automation rules that implement optimization actions for this account.

Type: String

Valid Values: AnyAllowed | NoneAllowed

status

The current enrollment status.

Type: String

Valid Values: Active | Inactive | Pending | Failed

statusReason

The reason for the current enrollment status.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

You do not have sufficient permissions to perform this action.

HTTP Status Code: 400

ForbiddenException

You are not authorized to perform this action.

HTTP Status Code: 400

InternalServerException

An internal error occurred while processing the request.

HTTP Status Code: 500

InvalidParameterValueException

One or more parameter values are not valid.

HTTP Status Code: 400

OptInRequiredException

The account must be opted in to Compute Optimizer Automation before performing this action.

HTTP Status Code: 400

ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 400

ServiceUnavailableException

The service is temporarily unavailable.

HTTP Status Code: 500

ThrottlingException

The request was denied due to request throttling.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: