list_security_control_definitions
async
¶
list_security_control_definitions(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
standards_arn: Optional[NonEmptyString] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
providers: Optional[SecurityControlsProviders] = None,
) -> ListSecurityControlDefinitionsResponse
Lists all of the security controls that apply to a specified standard.
Parameters:
-
standards_arn(Optional[NonEmptyString], default:None) –The Amazon Resource Name (ARN) of the standard that you want to view controls for.
-
next_token(Optional[NextToken], default:None) –Optional pagination parameter.
-
max_results(Optional[MaxResults], default:None) –An optional parameter that limits the total results of the API response to the specified number. If this parameter isn't provided in the request, the results include the first 25 security controls that apply to the specified standard. The results also include a
NextTokenparameter that you can use in a subsequent API call to get the next 25 controls. This repeats until all controls for the standard are returned. -
providers(Optional[SecurityControlsProviders], default:None) –A list of cloud providers to filter the security control definitions by. For example, specify
Azureto return only controls that evaluate Azure resources.
Raises:
-
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list Azure security control definitions The following example lists security control definitions for a specified provider.
>>> await client.list_security_control_definitions(providers=['Azure'], max_results=3)
To list security controls that apply to a standard
The following example lists security controls that apply to a specified Security Hub standard.
>>> await client.list_security_control_definitions(standards_arn='arn:aws:securityhub:::standards/aws-foundational-security-best-practices/v/1.0.0', next_token='NULL', max_results=3)
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 | |