aws_sdk_controltower/client/enable_control.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 [`EnableControl`](crate::operation::enable_control::builders::EnableControlFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - [`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>
10 /// - On success, responds with [`EnableControlOutput`](crate::operation::enable_control::EnableControlOutput) with field(s):
11 /// - [`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>
12 /// - [`arn(Option<String>)`](crate::operation::enable_control::EnableControlOutput::arn): <p>The ARN of the <code>EnabledControl</code> resource.</p>
13 /// - On failure, responds with [`SdkError<EnableControlError>`](crate::operation::enable_control::EnableControlError)
14 pub fn enable_control(&self) -> crate::operation::enable_control::builders::EnableControlFluentBuilder {
15 crate::operation::enable_control::builders::EnableControlFluentBuilder::new(self.handle.clone())
16 }
17}