aws_sdk_computeoptimizerautomation/client/update_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 [`UpdateEnrollmentConfiguration`](crate::operation::update_enrollment_configuration::builders::UpdateEnrollmentConfigurationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`status(EnrollmentStatus)`](crate::operation::update_enrollment_configuration::builders::UpdateEnrollmentConfigurationFluentBuilder::status) / [`set_status(Option<EnrollmentStatus>)`](crate::operation::update_enrollment_configuration::builders::UpdateEnrollmentConfigurationFluentBuilder::set_status):<br>required: **true**<br><p>The desired enrollment status.</p> <ul> <li> <p>Active - Enables the Automation feature for your account.</p></li> <li> <p>Inactive - Disables the Automation feature for your account and stops all of your automation rules. If you opt in again later, all rules will be inactive, and you must enable the rules you want to run. You must wait at least 24 hours after opting out to opt in again.</p></li> </ul><note> <p>The <code>Pending</code> and <code>Failed</code> options cannot be used to update the enrollment status of an account. They are returned in the response of a request to update the enrollment status of an account.</p> <p>If you are a member account, your account must be disassociated from your organization’s management account before you can disable Automation. Contact your administrator to make this change.</p> </note><br>
7 /// - [`client_token(impl Into<String>)`](crate::operation::update_enrollment_configuration::builders::UpdateEnrollmentConfigurationFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_enrollment_configuration::builders::UpdateEnrollmentConfigurationFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Must be 1-64 characters long and contain only alphanumeric characters, underscores, and hyphens.</p><br>
8 /// - On success, responds with [`UpdateEnrollmentConfigurationOutput`](crate::operation::update_enrollment_configuration::UpdateEnrollmentConfigurationOutput) with field(s):
9 /// - [`status(EnrollmentStatus)`](crate::operation::update_enrollment_configuration::UpdateEnrollmentConfigurationOutput::status): <p>The updated enrollment status.</p>
10 /// - [`status_reason(Option<String>)`](crate::operation::update_enrollment_configuration::UpdateEnrollmentConfigurationOutput::status_reason): <p>The reason for the updated enrollment status.</p>
11 /// - [`last_updated_timestamp(DateTime)`](crate::operation::update_enrollment_configuration::UpdateEnrollmentConfigurationOutput::last_updated_timestamp): <p>The timestamp when the enrollment configuration was last updated.</p>
12 /// - On failure, responds with [`SdkError<UpdateEnrollmentConfigurationError>`](crate::operation::update_enrollment_configuration::UpdateEnrollmentConfigurationError)
13 pub fn update_enrollment_configuration(
14 &self,
15 ) -> crate::operation::update_enrollment_configuration::builders::UpdateEnrollmentConfigurationFluentBuilder {
16 crate::operation::update_enrollment_configuration::builders::UpdateEnrollmentConfigurationFluentBuilder::new(self.handle.clone())
17 }
18}