AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Returns a list of the standards that are currently enabled.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to GetEnabledStandardsAsync.

Namespace: Amazon.SecurityHub
Assembly: AWSSDK.SecurityHub.dll
Version: 3.x.y.z

Syntax

C#
public virtual GetEnabledStandardsResponse GetEnabledStandards(
         GetEnabledStandardsRequest request
)

Parameters

request
Type: Amazon.SecurityHub.Model.GetEnabledStandardsRequest

Container for the necessary parameters to execute the GetEnabledStandards service method.

Return Value


The response from the GetEnabledStandards service method, as returned by SecurityHub.

Exceptions

ExceptionCondition
InternalException Internal server error.
InvalidAccessException The account doesn't have permission to perform this action.
InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.

Examples

The following example returns a list of Security Hub standards that are currently enabled in your account.

To return a list of enabled standards


var client = new AmazonSecurityHubClient();
var response = client.GetEnabledStandards(new GetEnabledStandardsRequest 
{
    StandardsSubscriptionArns = new List<string> {
        "arn:aws:securityhub:us-west-1:123456789012:subscription/pci-dss/v/3.2.1"
    }
});

List<StandardsSubscription> standardsSubscriptions = response.StandardsSubscriptions;

            

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also