describePublishingDestination method
Returns information about the publishing destination specified by the
provided destinationId.
May throw BadRequestException.
May throw InternalServerErrorException.
Parameter destinationId :
The ID of the publishing destination to retrieve.
Parameter detectorId :
The unique ID of the detector associated with the publishing destination
to retrieve.
To find the detectorId in the current Region, see the
Settings page in the GuardDuty console, or run the ListDetectors
API.
Implementation
Future<DescribePublishingDestinationResponse> describePublishingDestination({
required String destinationId,
required String detectorId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/detector/${Uri.encodeComponent(detectorId)}/publishingDestination/${Uri.encodeComponent(destinationId)}',
exceptionFnMap: _exceptionFns,
);
return DescribePublishingDestinationResponse.fromJson(response);
}