aws_sdk_computeoptimizer/client/get_enrollment_status.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetEnrollmentStatus`](crate::operation::get_enrollment_status::builders::GetEnrollmentStatusFluentBuilder) operation.
4 ///
5 /// - The fluent builder takes no input, just [`send`](crate::operation::get_enrollment_status::builders::GetEnrollmentStatusFluentBuilder::send) it.
6 /// - On success, responds with [`GetEnrollmentStatusOutput`](crate::operation::get_enrollment_status::GetEnrollmentStatusOutput) with field(s):
7 /// - [`status(Option<Status>)`](crate::operation::get_enrollment_status::GetEnrollmentStatusOutput::status): <p>The enrollment status of the account.</p>
8 /// - [`status_reason(Option<String>)`](crate::operation::get_enrollment_status::GetEnrollmentStatusOutput::status_reason): <p>The reason for the enrollment status of the account.</p> <p>For example, an account might show a status of <code>Pending</code> because member accounts of an organization require more time to be enrolled in the service.</p>
9 /// - [`member_accounts_enrolled(bool)`](crate::operation::get_enrollment_status::GetEnrollmentStatusOutput::member_accounts_enrolled): <p>Confirms the enrollment status of member accounts of the organization, if the account is a management account of an organization.</p>
10 /// - [`last_updated_timestamp(Option<DateTime>)`](crate::operation::get_enrollment_status::GetEnrollmentStatusOutput::last_updated_timestamp): <p>The Unix epoch timestamp, in seconds, of when the account enrollment status was last updated.</p>
11 /// - [`number_of_member_accounts_opted_in(Option<i32>)`](crate::operation::get_enrollment_status::GetEnrollmentStatusOutput::number_of_member_accounts_opted_in): <p>The count of organization member accounts that are opted in to the service, if your account is an organization management account.</p>
12 /// - On failure, responds with [`SdkError<GetEnrollmentStatusError>`](crate::operation::get_enrollment_status::GetEnrollmentStatusError)
13 pub fn get_enrollment_status(&self) -> crate::operation::get_enrollment_status::builders::GetEnrollmentStatusFluentBuilder {
14 crate::operation::get_enrollment_status::builders::GetEnrollmentStatusFluentBuilder::new(self.handle.clone())
15 }
16}