describe_action_targets
async
¶
describe_action_targets(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
action_target_arns: Optional[ArnList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> DescribeActionTargetsResponse
Returns a list of the custom action targets in Security Hub CSPM in your account.
Parameters:
-
action_target_arns(Optional[ArnList], default:None) –A list of custom action target ARNs for the custom action targets to retrieve.
-
next_token(Optional[NextToken], default:None) –The token that is required for pagination. On your first call to the
DescribeActionTargetsoperation, 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.
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.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To return custom action targets The following example returns a list of custom action targets. You use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.
>>> await client.describe_action_targets(action_target_arns=['arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation'])
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 | |