get_remediations_v2
async
¶
get_remediations_v2(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
target_uid: Optional[RemediationStringUid] = None,
metadata_uid: Optional[RemediationStringUid] = None,
filters: Optional[RemediationFilters] = None,
show_guidance: Optional[Boolean] = None,
guidance_format: Optional[GuidanceFormat] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> GetRemediationsV2Response
Retrieves remediation targets for the account, or for all member accounts if the caller is the delegated administrator. Results are sorted by priority, highest first, and are paginated. Use TargetUid or MetadataUid to scope the request to a single target or finding.
Parameters:
-
target_uid(Optional[RemediationStringUid], default:None) –The unique identifier (ID) of an existing remediation target to return. Returns the single matching target. You can't use
TargetUidtogether withMetadataUidorFilters. -
metadata_uid(Optional[RemediationStringUid], default:None) –The unique identifier (ID) of the Security Hub exposure finding, found under the
metadata.uidfield of the finding. Returns the remediation targets associated with that finding. You can't useMetadataUidtogether withTargetUidorFilters. -
filters(Optional[RemediationFilters], default:None) –Filters remediation targets based on a set of criteria. You can't use
Filterstogether withTargetUidorMetadataUid. -
show_guidance(Optional[Boolean], default:None) –Specifies whether to show remediation target guidance.
-
guidance_format(Optional[GuidanceFormat], default:None) –The format of the remediation guidance examples to return. Valid values are
All,AwsCli,Cli,Python,Terraform,Cdk,CloudFormation,IaC, andTemplate. If you don't specify a value, all formats are returned. Applies only whenShowGuidanceistrue. -
max_results(Optional[MaxResults], default:None) –The maximum number of results to return. Valid range is 1-100. If you don't specify a value, the operation returns up to 25 results.
-
next_token(Optional[NextToken], default:None) –The token used to paginate the remediations target list returned. On your first call to
GetRemediationsV2, omit this parameter or set it toNULL. For subsequent calls, use theNextTokenvalue returned in the previous response to retrieve the next page of results.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 | |