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
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 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 | |