aws_sdk_computeoptimizer/client/
get_enrollment_status.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetEnrollmentStatus`](crate::operation::get_enrollment_status::builders::GetEnrollmentStatusFluentBuilder) operation.
    ///
    /// - The fluent builder takes no input, just [`send`](crate::operation::get_enrollment_status::builders::GetEnrollmentStatusFluentBuilder::send) it.
    /// - On success, responds with [`GetEnrollmentStatusOutput`](crate::operation::get_enrollment_status::GetEnrollmentStatusOutput) with field(s):
    ///   - [`status(Option<Status>)`](crate::operation::get_enrollment_status::GetEnrollmentStatusOutput::status): <p>The enrollment status of the account.</p>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<GetEnrollmentStatusError>`](crate::operation::get_enrollment_status::GetEnrollmentStatusError)
    pub fn get_enrollment_status(&self) -> crate::operation::get_enrollment_status::builders::GetEnrollmentStatusFluentBuilder {
        crate::operation::get_enrollment_status::builders::GetEnrollmentStatusFluentBuilder::new(self.handle.clone())
    }
}