get_enabled_standards
¶
get_enabled_standards(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
standards_subscription_arns: Optional[StandardsSubscriptionArns] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
providers: Optional[StandardsProviders] = None,
) -> GetEnabledStandardsResponse
Returns a list of the standards that are currently enabled.
Parameters:
-
standards_subscription_arns(Optional[StandardsSubscriptionArns], default:None) –The list of the standards subscription ARNs for the standards to retrieve.
-
next_token(Optional[NextToken], default:None) –The token that is required for pagination. On your first call to the
GetEnabledStandardsoperation, 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 results to return in the response.
-
providers(Optional[StandardsProviders], default:None) –A list of cloud providers to filter the enabled standards by. For example, specify
Azureto return only enabled 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.
-
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 return a list of enabled standards The following example returns a list of Security Hub standards that are currently enabled in your account.
>>> client.get_enabled_standards(standards_subscription_arns=['arn:aws:securityhub:us-west-1:123456789012:subscription/pci-dss/v/3.2.1'])
Source code in docs_src/capo_securityhub/_services/security_hub.py
4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 | |