describe_standards
async
¶
describe_standards(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
providers: Optional[StandardsProviders] = None,
) -> DescribeStandardsResponse
Returns a list of the available standards in Security Hub CSPM.
For each standard, the results include the standard ARN, the name, and a description.
Parameters:
-
next_token(Optional[NextToken], default:None) –The token that is required for pagination. On your first call to the
DescribeStandardsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
-
max_results(Optional[MaxResults], default:None) –The maximum number of standards to return.
-
providers(Optional[StandardsProviders], default:None) –A list of cloud providers to filter the standards by. For example, specify
Azureto return only standards 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.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To get available Azure security standards The following example returns a list of available security standards from a specified provider.
>>> await client.describe_standards(providers=['Azure'])
To get available Security Hub standards
The following example returns a list of available security standards in Security Hub.
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 | |