1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeHub`](crate::operation::describe_hub::builders::DescribeHubFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`hub_arn(impl ::std::convert::Into<String>)`](crate::operation::describe_hub::builders::DescribeHubFluentBuilder::hub_arn) / [`set_hub_arn(Option<String>)`](crate::operation::describe_hub::builders::DescribeHubFluentBuilder::set_hub_arn): <p>The ARN of the Hub resource to retrieve.</p>
    /// - On success, responds with [`DescribeHubOutput`](crate::operation::describe_hub::DescribeHubOutput) with field(s):
    ///   - [`hub_arn(Option<String>)`](crate::operation::describe_hub::DescribeHubOutput::hub_arn): <p>The ARN of the Hub resource that was retrieved.</p>
    ///   - [`subscribed_at(Option<String>)`](crate::operation::describe_hub::DescribeHubOutput::subscribed_at): <p>The date and time when Security Hub was enabled in the account.</p>
    ///   - [`auto_enable_controls(bool)`](crate::operation::describe_hub::DescribeHubOutput::auto_enable_controls): <p>Whether to automatically enable new controls when they are added to standards that are enabled.</p>  <p>If set to <code>true</code>, then new controls for enabled standards are enabled automatically. If set to <code>false</code>, then new controls are not enabled.</p>
    ///   - [`control_finding_generator(Option<ControlFindingGenerator>)`](crate::operation::describe_hub::DescribeHubOutput::control_finding_generator): <p>Specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to <code>SECURITY_CONTROL</code>, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.</p>  <p>If the value for this field is set to <code>STANDARD_CONTROL</code>, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.</p>  <p>The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is <code>SECURITY_CONTROL</code> if you enabled Security Hub on or after February 23, 2023.</p>
    /// - On failure, responds with [`SdkError<DescribeHubError>`](crate::operation::describe_hub::DescribeHubError)
    pub fn describe_hub(&self) -> crate::operation::describe_hub::builders::DescribeHubFluentBuilder {
        crate::operation::describe_hub::builders::DescribeHubFluentBuilder::new(self.handle.clone())
    }
}