# CfnHubV2Props

Properties for defining a `CfnHubV2`.

Extends: CfnHubV2Props
Used as props by: CfnHubV2

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```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';
const cfnHubV2Props: securityhub.CfnHubV2Props = {
  networkScanning: {
    status: 'status',
  },
  tags: {
    tagsKey: 'tags',
  },
};
```

## Properties

- `networkScanning`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnHubV2.NetworkScanningProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnHubV2.NetworkScanningProperty.html) — Configuration for the Network Scanning opt-in feature of Security Hub V2.

  Network Scanning is available in the AWS commercial partition only; specifying this property in another partition, such as AWS GovCloud (US) or China, fails. This property is desired state: if you remove it from a stack that previously set it, the feature is disabled. If a stack has never set it, the feature is left as-is, so a stack that does not manage Network Scanning will not disable it. Network Scanning requires Security Hub V2 to be enabled in the same account and Region.

- `tags`: { [key: string]: string } — The tags to add to the hub V2 resource when you enable Security Hub CSPM.
