aws_sdk_computeoptimizerautomation/client/
get_enrollment_configuration.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 [`GetEnrollmentConfiguration`](crate::operation::get_enrollment_configuration::builders::GetEnrollmentConfigurationFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::get_enrollment_configuration::builders::GetEnrollmentConfigurationFluentBuilder::send) it.
6    /// - On success, responds with [`GetEnrollmentConfigurationOutput`](crate::operation::get_enrollment_configuration::GetEnrollmentConfigurationOutput) with field(s):
7    ///   - [`status(EnrollmentStatus)`](crate::operation::get_enrollment_configuration::GetEnrollmentConfigurationOutput::status): <p>The current enrollment status.</p>
8    ///   - [`status_reason(Option<String>)`](crate::operation::get_enrollment_configuration::GetEnrollmentConfigurationOutput::status_reason): <p>The reason for the current enrollment status.</p>
9    ///   - [`organization_rule_mode(Option<OrganizationRuleMode>)`](crate::operation::get_enrollment_configuration::GetEnrollmentConfigurationOutput::organization_rule_mode): <p>Specifies whether the management account can create Automation rules that implement optimization actions for this account.</p>
10    ///   - [`last_updated_timestamp(Option<DateTime>)`](crate::operation::get_enrollment_configuration::GetEnrollmentConfigurationOutput::last_updated_timestamp): <p>The timestamp of the last update to the enrollment configuration.</p>
11    /// - On failure, responds with [`SdkError<GetEnrollmentConfigurationError>`](crate::operation::get_enrollment_configuration::GetEnrollmentConfigurationError)
12    pub fn get_enrollment_configuration(&self) -> crate::operation::get_enrollment_configuration::builders::GetEnrollmentConfigurationFluentBuilder {
13        crate::operation::get_enrollment_configuration::builders::GetEnrollmentConfigurationFluentBuilder::new(self.handle.clone())
14    }
15}