AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Updates the enrollment (opt in and opt out) status of an account to the Compute Optimizer service.

If the account is a management account of an organization, this action can also be used to enroll member accounts of the organization.

You must have the appropriate permissions to opt in to Compute Optimizer, to view its recommendations, and to opt out. For more information, see Controlling access with Amazon Web Services Identity and Access Management in the Compute Optimizer User Guide.

When you opt in, Compute Optimizer automatically creates a service-linked role in your account to access its data. For more information, see Using Service-Linked Roles for Compute Optimizer in the Compute Optimizer User Guide.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to UpdateEnrollmentStatusAsync.

Namespace: Amazon.ComputeOptimizer
Assembly: AWSSDK.ComputeOptimizer.dll
Version: 3.x.y.z

Syntax

C#
public virtual UpdateEnrollmentStatusResponse UpdateEnrollmentStatus(
         UpdateEnrollmentStatusRequest request
)

Parameters

request
Type: Amazon.ComputeOptimizer.Model.UpdateEnrollmentStatusRequest

Container for the necessary parameters to execute the UpdateEnrollmentStatus service method.

Return Value


The response from the UpdateEnrollmentStatus service method, as returned by ComputeOptimizer.

Exceptions

ExceptionCondition
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An internal error has occurred. Try your call again.
InvalidParameterValueException The value supplied for the input parameter is out of range or not valid.
MissingAuthenticationTokenException The request must contain either a valid (registered) Amazon Web Services access key ID or X.509 certificate.
ServiceUnavailableException The request has failed due to a temporary failure of the server.
ThrottlingException The request was denied due to request throttling.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also