list_security_control_definitions
¶
list_security_control_definitions(
*,
config_overrides: Optional[SecurityHubClientConfig] = 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.
>>> 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.
>>> 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/security_hub.py
7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 | |