aws_sdk_ec2/client/
enable_capacity_manager.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 [`EnableCapacityManager`](crate::operation::enable_capacity_manager::builders::EnableCapacityManagerFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`organizations_access(bool)`](crate::operation::enable_capacity_manager::builders::EnableCapacityManagerFluentBuilder::organizations_access) / [`set_organizations_access(Option<bool>)`](crate::operation::enable_capacity_manager::builders::EnableCapacityManagerFluentBuilder::set_organizations_access):<br>required: **false**<br><p>Specifies whether to enable cross-account access for Amazon Web Services Organizations. When enabled, Capacity Manager can aggregate data from all accounts in your organization. Default is false.</p><br>
7    ///   - [`dry_run(bool)`](crate::operation::enable_capacity_manager::builders::EnableCapacityManagerFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::enable_capacity_manager::builders::EnableCapacityManagerFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
8    ///   - [`client_token(impl Into<String>)`](crate::operation::enable_capacity_manager::builders::EnableCapacityManagerFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::enable_capacity_manager::builders::EnableCapacityManagerFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p><br>
9    /// - On success, responds with [`EnableCapacityManagerOutput`](crate::operation::enable_capacity_manager::EnableCapacityManagerOutput) with field(s):
10    ///   - [`capacity_manager_status(Option<CapacityManagerStatus>)`](crate::operation::enable_capacity_manager::EnableCapacityManagerOutput::capacity_manager_status): <p>The current status of Capacity Manager after the enable operation.</p>
11    ///   - [`organizations_access(Option<bool>)`](crate::operation::enable_capacity_manager::EnableCapacityManagerOutput::organizations_access): <p>Indicates whether Organizations access is enabled for cross-account data aggregation.</p>
12    /// - On failure, responds with [`SdkError<EnableCapacityManagerError>`](crate::operation::enable_capacity_manager::EnableCapacityManagerError)
13    pub fn enable_capacity_manager(&self) -> crate::operation::enable_capacity_manager::builders::EnableCapacityManagerFluentBuilder {
14        crate::operation::enable_capacity_manager::builders::EnableCapacityManagerFluentBuilder::new(self.handle.clone())
15    }
16}