# CfnHubProps

Properties for defining a `CfnHub`.

Used as props by: [CfnHub](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnHub.html)

- Source: Generated at build time
- Type last changed: v2.86.0 · 29 Jun 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityhub as securityhub } from 'aws-cdk-lib';

declare const tags: any;
const cfnHubProps: securityhub.CfnHubProps = {
  autoEnableControls: false,
  controlFindingGenerator: 'controlFindingGenerator',
  enableDefaultStandards: false,
  tags: tags,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_securityhub as securityhub

# tags: Any

cfn_hub_props = securityhub.CfnHubProps(
    auto_enable_controls=False,
    control_finding_generator="controlFindingGenerator",
    enable_default_standards=False,
    tags=tags
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.securityhub.*;

Object tags;

CfnHubProps cfnHubProps = CfnHubProps.builder()
        .autoEnableControls(false)
        .controlFindingGenerator("controlFindingGenerator")
        .enableDefaultStandards(false)
        .tags(tags)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SecurityHub;

var tags;

var cfnHubProps = new CfnHubProps {
    AutoEnableControls = false,
    ControlFindingGenerator = "controlFindingGenerator",
    EnableDefaultStandards = false,
    Tags = tags
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var tags interface{}

cfnHubProps := &CfnHubProps{
	AutoEnableControls: jsii.Boolean(false),
	ControlFindingGenerator: jsii.String("controlFindingGenerator"),
	EnableDefaultStandards: jsii.Boolean(false),
	Tags: tags,
}
```

## Properties

- `autoEnableControls`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to automatically enable new controls when they are added to standards that are enabled.

  By default, this is set to `true` , and new controls are enabled automatically. To not automatically enable new controls, set this to `false` .

  When you automatically enable new controls, you can interact with the controls in the console and programmatically immediately after release. However, automatically enabled controls have a temporary default status of `DISABLED` . It can take up to several days for Security Hub CSPM to process the control release and designate the control as `ENABLED` in your account. During the processing period, you can manually enable or disable a control, and Security Hub CSPM will maintain that designation regardless of whether you have `AutoEnableControls` set to `true` .

- `controlFindingGenerator`: string — Specifies whether an account has consolidated control findings turned on or off.

  If the value for this field is set to `SECURITY_CONTROL` , Security Hub CSPM generates a single finding for a control check even when the check applies to multiple enabled standards.

  If the value for this field is set to `STANDARD_CONTROL` , Security Hub CSPM generates separate findings for a control check when the check applies to multiple enabled standards.

  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 `SECURITY_CONTROL` if you enabled Security Hub CSPM on or after February 23, 2023.

- `enableDefaultStandards`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to enable the security standards that Security Hub CSPM has designated as automatically enabled.

  If you don't provide a value for `EnableDefaultStandards` , it is set to `true` , and the designated standards are automatically enabled in each AWS Region where you enable Security Hub CSPM . If you don't want to enable the designated standards, set `EnableDefaultStandards` to `false` .

  Currently, the automatically enabled standards are the Center for Internet Security (CIS) AWS Foundations Benchmark v1.2.0 and AWS Foundational Security Best Practices (FSBP).

- `tags`: any — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
