Skip to content
v2.278.0

CfnHubV2Props Struct ​

Properties for defining a CfnHubV2.

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',
  },
};
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

cfn_hub_v2_props = securityhub.CfnHubV2Props(
    network_scanning=securityhub.CfnHubV2.NetworkScanningProperty(
        status="status"
    ),
    tags={
        "tags_key": "tags"
    }
)
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.*;

CfnHubV2Props cfnHubV2Props = CfnHubV2Props.builder()
        .networkScanning(NetworkScanningProperty.builder()
                .status("status")
                .build())
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
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 cfnHubV2Props = new CfnHubV2Props {
    NetworkScanning = new NetworkScanningProperty {
        Status = "status"
    },
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
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"

cfnHubV2Props := &CfnHubV2Props{
	NetworkScanning: &NetworkScanningProperty{
		Status: jsii.String("status"),
	},
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

networkScanningoptionalIResolvable | CfnHubV2.NetworkScanningPropertynetwork_scanningoptionaltyping.Union[IResolvable, NetworkScanningProperty]networkScanningoptionalIResolvableNetworkScanningoptionalIResolvableNetworkScanningoptionalinterface{} #
Configuration for the Network Scanning opt-in feature of Security Hub V2.
notes

Network Scanning is available in the AWS commercial and AWS GovCloud (US) partitions only; specifying this property in another partition, such as 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.

tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
The tags to add to the hub V2 resource when you enable Security Hub CSPM.