describeActionTargets method
Returns a list of the custom action targets in Security Hub in your account.
May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException. May throw ResourceNotFoundException.
Parameter actionTargetArns :
A list of custom action target ARNs for the custom action targets to
retrieve.
Parameter maxResults :
The maximum number of results to return.
Parameter nextToken :
The token that is required for pagination. On your first call to the
DescribeActionTargets operation, set the value of this
parameter to NULL.
For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
Implementation
Future<DescribeActionTargetsResponse> describeActionTargets({
List<String>? actionTargetArns,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $payload = <String, dynamic>{
if (actionTargetArns != null) 'ActionTargetArns': actionTargetArns,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/actionTargets/get',
exceptionFnMap: _exceptionFns,
);
return DescribeActionTargetsResponse.fromJson(response);
}