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.
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
public virtual GetEnabledStandardsResponse GetEnabledStandards( GetEnabledStandardsRequest request )
Container for the necessary parameters to execute the GetEnabledStandards service method.
Exception | Condition |
---|---|
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. |
The following example returns a list of Security Hub standards that are currently enabled in your account.
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;
.NET Framework:
Supported in: 4.5 and newer, 3.5