aws_sdk_controltower/client/enable_control.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`EnableControl`](crate::operation::enable_control::builders::EnableControlFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`control_identifier(impl Into<String>)`](crate::operation::enable_control::builders::EnableControlFluentBuilder::control_identifier) / [`set_control_identifier(Option<String>)`](crate::operation::enable_control::builders::EnableControlFluentBuilder::set_control_identifier):<br>required: **true**<br><p>The ARN of the control. Only <b>Strongly recommended</b> and <b>Elective</b> controls are permitted, with the exception of the <b>Region deny</b> control. For information on how to find the <code>controlIdentifier</code>, see <a href="https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html">the overview page</a>.</p><br>
/// - [`target_identifier(impl Into<String>)`](crate::operation::enable_control::builders::EnableControlFluentBuilder::target_identifier) / [`set_target_identifier(Option<String>)`](crate::operation::enable_control::builders::EnableControlFluentBuilder::set_target_identifier):<br>required: **true**<br><p>The ARN of the organizational unit. For information on how to find the <code>targetIdentifier</code>, see <a href="https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html">the overview page</a>.</p><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::enable_control::builders::EnableControlFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::enable_control::builders::EnableControlFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to be applied to the <code>EnabledControl</code> resource.</p><br>
/// - [`parameters(EnabledControlParameter)`](crate::operation::enable_control::builders::EnableControlFluentBuilder::parameters) / [`set_parameters(Option<Vec::<EnabledControlParameter>>)`](crate::operation::enable_control::builders::EnableControlFluentBuilder::set_parameters):<br>required: **false**<br><p>A list of input parameter values, which are specified to configure the control when you enable it.</p><br>
/// - On success, responds with [`EnableControlOutput`](crate::operation::enable_control::EnableControlOutput) with field(s):
/// - [`operation_identifier(String)`](crate::operation::enable_control::EnableControlOutput::operation_identifier): <p>The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.</p>
/// - [`arn(Option<String>)`](crate::operation::enable_control::EnableControlOutput::arn): <p>The ARN of the <code>EnabledControl</code> resource.</p>
/// - On failure, responds with [`SdkError<EnableControlError>`](crate::operation::enable_control::EnableControlError)
pub fn enable_control(&self) -> crate::operation::enable_control::builders::EnableControlFluentBuilder {
crate::operation::enable_control::builders::EnableControlFluentBuilder::new(self.handle.clone())
}
}