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.
Lists all of the security controls that apply to a specified standard.
For .NET Core this operation is only available in asynchronous form. Please refer to ListSecurityControlDefinitionsAsync.
Namespace: Amazon.SecurityHub
Assembly: AWSSDK.SecurityHub.dll
Version: 3.x.y.z
public virtual ListSecurityControlDefinitionsResponse ListSecurityControlDefinitions( ListSecurityControlDefinitionsRequest request )
Container for the necessary parameters to execute the ListSecurityControlDefinitions 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 lists security controls that apply to a specified Security Hub standard.
var client = new AmazonSecurityHubClient();
var response = client.ListSecurityControlDefinitions(new ListSecurityControlDefinitionsRequest
{
MaxResults = 3,
NextToken = "NULL",
StandardsArn = "arn:aws:securityhub:::standards/aws-foundational-security-best-practices/v/1.0.0"
});
string nextToken = response.NextToken;
List<SecurityControlDefinition> securityControlDefinitions = response.SecurityControlDefinitions;
.NET Framework:
Supported in: 4.7.2 and newer