1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. securityhub
  6. getHubV2

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi

    The AWS::SecurityHub::HubV2 resource represents the implementation of the AWS Security Hub V2 service in your account. Only one hubv2 resource can created in each region in which you enable Security Hub V2.

    Using getHubV2

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getHubV2(args: GetHubV2Args, opts?: InvokeOptions): Promise<GetHubV2Result>
    function getHubV2Output(args: GetHubV2OutputArgs, opts?: InvokeOutputOptions): Output<GetHubV2Result>
    def get_hub_v2(hub_v2_arn: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetHubV2Result
    def get_hub_v2_output(hub_v2_arn: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetHubV2Result]
    func LookupHubV2(ctx *Context, args *LookupHubV2Args, opts ...InvokeOption) (*LookupHubV2Result, error)
    func LookupHubV2Output(ctx *Context, args *LookupHubV2OutputArgs, opts ...InvokeOption) LookupHubV2ResultOutput

    > Note: This function is named LookupHubV2 in the Go SDK.

    public static class GetHubV2 
    {
        public static Task<GetHubV2Result> InvokeAsync(GetHubV2Args args, InvokeOptions? opts = null)
        public static Output<GetHubV2Result> Invoke(GetHubV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetHubV2Result> Invoke(GetHubV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetHubV2Result> getHubV2(GetHubV2Args args, InvokeOptions options)
    public static Output<GetHubV2Result> getHubV2(GetHubV2Args args, InvokeOptions options)
    public static Output<GetHubV2Result> getHubV2(GetHubV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:securityhub:getHubV2
      arguments:
        # arguments dictionary
    data "aws-native_securityhub_get_hub_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    HubV2Arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    HubV2Arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    hub_v2_arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    hubV2Arn String
    The Amazon Resource Name of the Security Hub V2 resource.
    hubV2Arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    hub_v2_arn str
    The Amazon Resource Name of the Security Hub V2 resource.
    hubV2Arn String
    The Amazon Resource Name of the Security Hub V2 resource.

    getHubV2 Result

    The following output properties are available:

    HubV2Arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    NetworkScanning Pulumi.AwsNative.SecurityHub.Outputs.HubV2NetworkScanning
    SubscribedAt string
    The date and time when the service was enabled in the account.
    Tags Dictionary<string, string>
    The tags to add to the hub V2 resource when you enable Security Hub CSPM.
    HubV2Arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    NetworkScanning HubV2NetworkScanning
    SubscribedAt string
    The date and time when the service was enabled in the account.
    Tags map[string]string
    The tags to add to the hub V2 resource when you enable Security Hub CSPM.
    hub_v2_arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    network_scanning object
    subscribed_at string
    The date and time when the service was enabled in the account.
    tags map(string)
    The tags to add to the hub V2 resource when you enable Security Hub CSPM.
    hubV2Arn String
    The Amazon Resource Name of the Security Hub V2 resource.
    networkScanning HubV2NetworkScanning
    subscribedAt String
    The date and time when the service was enabled in the account.
    tags Map<String,String>
    The tags to add to the hub V2 resource when you enable Security Hub CSPM.
    hubV2Arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    networkScanning HubV2NetworkScanning
    subscribedAt string
    The date and time when the service was enabled in the account.
    tags {[key: string]: string}
    The tags to add to the hub V2 resource when you enable Security Hub CSPM.
    hub_v2_arn str
    The Amazon Resource Name of the Security Hub V2 resource.
    network_scanning HubV2NetworkScanning
    subscribed_at str
    The date and time when the service was enabled in the account.
    tags Mapping[str, str]
    The tags to add to the hub V2 resource when you enable Security Hub CSPM.
    hubV2Arn String
    The Amazon Resource Name of the Security Hub V2 resource.
    networkScanning Property Map
    subscribedAt String
    The date and time when the service was enabled in the account.
    tags Map<String>
    The tags to add to the hub V2 resource when you enable Security Hub CSPM.

    Supporting Types

    HubV2NetworkScanning

    Status Pulumi.AwsNative.SecurityHub.HubV2NetworkScanningStatus
    Whether the Network Scanning feature is enabled for this account and Region.
    Status HubV2NetworkScanningStatus
    Whether the Network Scanning feature is enabled for this account and Region.
    status "ENABLED" | "DISABLED"
    Whether the Network Scanning feature is enabled for this account and Region.
    status HubV2NetworkScanningStatus
    Whether the Network Scanning feature is enabled for this account and Region.
    status HubV2NetworkScanningStatus
    Whether the Network Scanning feature is enabled for this account and Region.
    status HubV2NetworkScanningStatus
    Whether the Network Scanning feature is enabled for this account and Region.
    status "ENABLED" | "DISABLED"
    Whether the Network Scanning feature is enabled for this account and Region.

    HubV2NetworkScanningStatus

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial