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, orGCPto return only controls that evaluate GCP 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 GCP security control definitions
The following example lists security control definitions for a specified provider.
>>> await client.list_security_control_definitions(providers=['GCP'], 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
7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 | |