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.

Container for the parameters to the GetEnabledStandards operation. Returns a list of the standards that are currently enabled.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.SecurityHub.AmazonSecurityHubRequest
      Amazon.SecurityHub.Model.GetEnabledStandardsRequest

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

Syntax

C#
public class GetEnabledStandardsRequest : AmazonSecurityHubRequest
         IAmazonWebServiceRequest

The GetEnabledStandardsRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of results to return in the response.

Public Property NextToken System.String

Gets and sets the property NextToken.

The token that is required for pagination. On your first call to the GetEnabledStandards operation, set the value of this parameter to NULL.

For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

Public Property StandardsSubscriptionArns System.Collections.Generic.List<System.String>

Gets and sets the property StandardsSubscriptionArns.

The list of the standards subscription ARNs for the standards to retrieve.

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:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

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