get_enabled_standards
async
¶
get_enabled_standards(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = 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.
>>> await 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/async_security_hub.py
4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 | |