Copyright | (c) 2013-2021 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 |
Returns the enrollment (opt in) status of an account to the Compute Optimizer service.
If the account is the management account of an organization, this action also confirms the enrollment status of member accounts of the organization. Use the GetEnrollmentStatusesForOrganization action to get detailed information about the enrollment status of member accounts of an organization.
Synopsis
- data GetEnrollmentStatus = GetEnrollmentStatus' {
- newGetEnrollmentStatus :: GetEnrollmentStatus
- data GetEnrollmentStatusResponse = GetEnrollmentStatusResponse' {}
- newGetEnrollmentStatusResponse :: Int -> GetEnrollmentStatusResponse
- getEnrollmentStatusResponse_status :: Lens' GetEnrollmentStatusResponse (Maybe Status)
- getEnrollmentStatusResponse_numberOfMemberAccountsOptedIn :: Lens' GetEnrollmentStatusResponse (Maybe Int)
- getEnrollmentStatusResponse_memberAccountsEnrolled :: Lens' GetEnrollmentStatusResponse (Maybe Bool)
- getEnrollmentStatusResponse_statusReason :: Lens' GetEnrollmentStatusResponse (Maybe Text)
- getEnrollmentStatusResponse_lastUpdatedTimestamp :: Lens' GetEnrollmentStatusResponse (Maybe UTCTime)
- getEnrollmentStatusResponse_httpStatus :: Lens' GetEnrollmentStatusResponse Int
Creating a Request
data GetEnrollmentStatus Source #
See: newGetEnrollmentStatus
smart constructor.
Instances
newGetEnrollmentStatus :: GetEnrollmentStatus Source #
Create a value of GetEnrollmentStatus
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetEnrollmentStatusResponse Source #
See: newGetEnrollmentStatusResponse
smart constructor.
GetEnrollmentStatusResponse' | |
|
Instances
newGetEnrollmentStatusResponse Source #
Create a value of GetEnrollmentStatusResponse
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:
$sel:status:GetEnrollmentStatusResponse'
, getEnrollmentStatusResponse_status
- The enrollment status of the account.
$sel:numberOfMemberAccountsOptedIn:GetEnrollmentStatusResponse'
, getEnrollmentStatusResponse_numberOfMemberAccountsOptedIn
- The count of organization member accounts that are opted in to the
service, if your account is an organization management account.
$sel:memberAccountsEnrolled:GetEnrollmentStatusResponse'
, getEnrollmentStatusResponse_memberAccountsEnrolled
- Confirms the enrollment status of member accounts of the organization,
if the account is a management account of an organization.
$sel:statusReason:GetEnrollmentStatusResponse'
, getEnrollmentStatusResponse_statusReason
- The reason for the enrollment status of the account.
For example, an account might show a status of Pending
because member
accounts of an organization require more time to be enrolled in the
service.
$sel:lastUpdatedTimestamp:GetEnrollmentStatusResponse'
, getEnrollmentStatusResponse_lastUpdatedTimestamp
- The Unix epoch timestamp, in seconds, of when the account enrollment
status was last updated.
$sel:httpStatus:GetEnrollmentStatusResponse'
, getEnrollmentStatusResponse_httpStatus
- The response's http status code.
Response Lenses
getEnrollmentStatusResponse_status :: Lens' GetEnrollmentStatusResponse (Maybe Status) Source #
The enrollment status of the account.
getEnrollmentStatusResponse_numberOfMemberAccountsOptedIn :: Lens' GetEnrollmentStatusResponse (Maybe Int) Source #
The count of organization member accounts that are opted in to the service, if your account is an organization management account.
getEnrollmentStatusResponse_memberAccountsEnrolled :: Lens' GetEnrollmentStatusResponse (Maybe Bool) Source #
Confirms the enrollment status of member accounts of the organization, if the account is a management account of an organization.
getEnrollmentStatusResponse_statusReason :: Lens' GetEnrollmentStatusResponse (Maybe Text) Source #
The reason for the enrollment status of the account.
For example, an account might show a status of Pending
because member
accounts of an organization require more time to be enrolled in the
service.
getEnrollmentStatusResponse_lastUpdatedTimestamp :: Lens' GetEnrollmentStatusResponse (Maybe UTCTime) Source #
The Unix epoch timestamp, in seconds, of when the account enrollment status was last updated.
getEnrollmentStatusResponse_httpStatus :: Lens' GetEnrollmentStatusResponse Int Source #
The response's http status code.