1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. securityhub
  6. getEnabledStandards
Viewing docs for AWS v7.28.0
published on Thursday, Apr 30, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.28.0
published on Thursday, Apr 30, 2026 by Pulumi

    Lists the standards that are currently enabled.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.securityhub.getEnabledStandards({});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.securityhub.get_enabled_standards()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/securityhub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securityhub.GetEnabledStandards(ctx, &securityhub.GetEnabledStandardsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.SecurityHub.GetEnabledStandards.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.securityhub.SecurityhubFunctions;
    import com.pulumi.aws.securityhub.inputs.GetEnabledStandardsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = SecurityhubFunctions.getEnabledStandards(GetEnabledStandardsArgs.builder()
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:securityhub:getEnabledStandards
          arguments: {}
    

    Using getEnabledStandards

    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 getEnabledStandards(args: GetEnabledStandardsArgs, opts?: InvokeOptions): Promise<GetEnabledStandardsResult>
    function getEnabledStandardsOutput(args: GetEnabledStandardsOutputArgs, opts?: InvokeOptions): Output<GetEnabledStandardsResult>
    def get_enabled_standards(region: Optional[str] = None,
                              standards_subscription_arns: Optional[Sequence[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> GetEnabledStandardsResult
    def get_enabled_standards_output(region: Optional[pulumi.Input[str]] = None,
                              standards_subscription_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetEnabledStandardsResult]
    func GetEnabledStandards(ctx *Context, args *GetEnabledStandardsArgs, opts ...InvokeOption) (*GetEnabledStandardsResult, error)
    func GetEnabledStandardsOutput(ctx *Context, args *GetEnabledStandardsOutputArgs, opts ...InvokeOption) GetEnabledStandardsResultOutput

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

    public static class GetEnabledStandards 
    {
        public static Task<GetEnabledStandardsResult> InvokeAsync(GetEnabledStandardsArgs args, InvokeOptions? opts = null)
        public static Output<GetEnabledStandardsResult> Invoke(GetEnabledStandardsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnabledStandardsResult> getEnabledStandards(GetEnabledStandardsArgs args, InvokeOptions options)
    public static Output<GetEnabledStandardsResult> getEnabledStandards(GetEnabledStandardsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:securityhub/getEnabledStandards:getEnabledStandards
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    StandardsSubscriptionArns List<string>
    List of the standards subscription ARNs for the standards to retrieve.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    StandardsSubscriptionArns []string
    List of the standards subscription ARNs for the standards to retrieve.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    standardsSubscriptionArns List<String>
    List of the standards subscription ARNs for the standards to retrieve.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    standardsSubscriptionArns string[]
    List of the standards subscription ARNs for the standards to retrieve.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    standards_subscription_arns Sequence[str]
    List of the standards subscription ARNs for the standards to retrieve.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    standardsSubscriptionArns List<String>
    List of the standards subscription ARNs for the standards to retrieve.

    getEnabledStandards Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    StandardsSubscriptions List<GetEnabledStandardsStandardsSubscription>
    List of controls that apply to the specified standard. See below for details.
    StandardsSubscriptionArns List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    StandardsSubscriptions []GetEnabledStandardsStandardsSubscription
    List of controls that apply to the specified standard. See below for details.
    StandardsSubscriptionArns []string
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    standardsSubscriptions List<GetEnabledStandardsStandardsSubscription>
    List of controls that apply to the specified standard. See below for details.
    standardsSubscriptionArns List<String>
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    standardsSubscriptions GetEnabledStandardsStandardsSubscription[]
    List of controls that apply to the specified standard. See below for details.
    standardsSubscriptionArns string[]
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    standards_subscriptions Sequence[GetEnabledStandardsStandardsSubscription]
    List of controls that apply to the specified standard. See below for details.
    standards_subscription_arns Sequence[str]
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    standardsSubscriptions List<Property Map>
    List of controls that apply to the specified standard. See below for details.
    standardsSubscriptionArns List<String>

    Supporting Types

    GetEnabledStandardsStandardsSubscription

    StandardsArn string
    ARN of the standard.
    StandardsControlsUpdatable string
    Whether you can retrieve information about and configure individual controls that apply to the standard. Valid values: READY_FOR_UPDATES, NOT_READY_FOR_UPDATES.
    StandardsInputs Dictionary<string, string>
    Key-value map of input for the standard.
    StandardsStatus string
    Status of your subscription to the standard. Valid values: PENDING, READY, FAILED, DELETING, INCOMPLETE.
    StandardsStatusReasons List<GetEnabledStandardsStandardsSubscriptionStandardsStatusReason>
    Reason for the current status. See below for details.
    StandardsSubscriptionArn string
    ARN of the resource that represents your subscription to the standard.
    StandardsArn string
    ARN of the standard.
    StandardsControlsUpdatable string
    Whether you can retrieve information about and configure individual controls that apply to the standard. Valid values: READY_FOR_UPDATES, NOT_READY_FOR_UPDATES.
    StandardsInputs map[string]string
    Key-value map of input for the standard.
    StandardsStatus string
    Status of your subscription to the standard. Valid values: PENDING, READY, FAILED, DELETING, INCOMPLETE.
    StandardsStatusReasons []GetEnabledStandardsStandardsSubscriptionStandardsStatusReason
    Reason for the current status. See below for details.
    StandardsSubscriptionArn string
    ARN of the resource that represents your subscription to the standard.
    standardsArn String
    ARN of the standard.
    standardsControlsUpdatable String
    Whether you can retrieve information about and configure individual controls that apply to the standard. Valid values: READY_FOR_UPDATES, NOT_READY_FOR_UPDATES.
    standardsInputs Map<String,String>
    Key-value map of input for the standard.
    standardsStatus String
    Status of your subscription to the standard. Valid values: PENDING, READY, FAILED, DELETING, INCOMPLETE.
    standardsStatusReasons List<GetEnabledStandardsStandardsSubscriptionStandardsStatusReason>
    Reason for the current status. See below for details.
    standardsSubscriptionArn String
    ARN of the resource that represents your subscription to the standard.
    standardsArn string
    ARN of the standard.
    standardsControlsUpdatable string
    Whether you can retrieve information about and configure individual controls that apply to the standard. Valid values: READY_FOR_UPDATES, NOT_READY_FOR_UPDATES.
    standardsInputs {[key: string]: string}
    Key-value map of input for the standard.
    standardsStatus string
    Status of your subscription to the standard. Valid values: PENDING, READY, FAILED, DELETING, INCOMPLETE.
    standardsStatusReasons GetEnabledStandardsStandardsSubscriptionStandardsStatusReason[]
    Reason for the current status. See below for details.
    standardsSubscriptionArn string
    ARN of the resource that represents your subscription to the standard.
    standards_arn str
    ARN of the standard.
    standards_controls_updatable str
    Whether you can retrieve information about and configure individual controls that apply to the standard. Valid values: READY_FOR_UPDATES, NOT_READY_FOR_UPDATES.
    standards_inputs Mapping[str, str]
    Key-value map of input for the standard.
    standards_status str
    Status of your subscription to the standard. Valid values: PENDING, READY, FAILED, DELETING, INCOMPLETE.
    standards_status_reasons Sequence[GetEnabledStandardsStandardsSubscriptionStandardsStatusReason]
    Reason for the current status. See below for details.
    standards_subscription_arn str
    ARN of the resource that represents your subscription to the standard.
    standardsArn String
    ARN of the standard.
    standardsControlsUpdatable String
    Whether you can retrieve information about and configure individual controls that apply to the standard. Valid values: READY_FOR_UPDATES, NOT_READY_FOR_UPDATES.
    standardsInputs Map<String>
    Key-value map of input for the standard.
    standardsStatus String
    Status of your subscription to the standard. Valid values: PENDING, READY, FAILED, DELETING, INCOMPLETE.
    standardsStatusReasons List<Property Map>
    Reason for the current status. See below for details.
    standardsSubscriptionArn String
    ARN of the resource that represents your subscription to the standard.

    GetEnabledStandardsStandardsSubscriptionStandardsStatusReason

    StatusReasonCode string
    Reason code that represents the reason for the current status of a standard subscription. Valid values: NO_AVAILABLE_CONFIGURATION_RECORDER, MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED, INTERNAL_ERROR.
    StatusReasonCode string
    Reason code that represents the reason for the current status of a standard subscription. Valid values: NO_AVAILABLE_CONFIGURATION_RECORDER, MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED, INTERNAL_ERROR.
    statusReasonCode String
    Reason code that represents the reason for the current status of a standard subscription. Valid values: NO_AVAILABLE_CONFIGURATION_RECORDER, MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED, INTERNAL_ERROR.
    statusReasonCode string
    Reason code that represents the reason for the current status of a standard subscription. Valid values: NO_AVAILABLE_CONFIGURATION_RECORDER, MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED, INTERNAL_ERROR.
    status_reason_code str
    Reason code that represents the reason for the current status of a standard subscription. Valid values: NO_AVAILABLE_CONFIGURATION_RECORDER, MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED, INTERNAL_ERROR.
    statusReasonCode String
    Reason code that represents the reason for the current status of a standard subscription. Valid values: NO_AVAILABLE_CONFIGURATION_RECORDER, MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED, INTERNAL_ERROR.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.28.0
    published on Thursday, Apr 30, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.