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

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

AWS Cloud Control v1.32.0 published on Wednesday, Aug 13, 2025 by Pulumi

aws-native.securityhub.getHubV2

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.32.0 published on Wednesday, Aug 13, 2025 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?: InvokeOptions): 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: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = 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 CompletableFuture<GetHubV2Result> getHubV2(GetHubV2Args args, InvokeOptions options)
    public static Output<GetHubV2Result> getHubV2(GetHubV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:securityhub:getHubV2
      arguments:
        # arguments dictionary

    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.
    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.
    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.
    HubV2Arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    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.
    hubV2Arn String
    The Amazon Resource Name of the Security Hub V2 resource.
    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.
    hubV2Arn string
    The Amazon Resource Name of the Security Hub V2 resource.
    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.
    hub_v2_arn str
    The Amazon Resource Name of the Security Hub V2 resource.
    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.
    hubV2Arn String
    The Amazon Resource Name of the Security Hub V2 resource.
    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.

    Package Details

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

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

    AWS Cloud Control v1.32.0 published on Wednesday, Aug 13, 2025 by Pulumi