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.
Implementation
Future<DescribePublishingDestinationResponse> describePublishingDestination({
required String destinationId,
required String detectorId,
}) async {
ArgumentError.checkNotNull(destinationId, 'destinationId');
ArgumentError.checkNotNull(detectorId, 'detectorId');
_s.validateStringLength(
'detectorId',
detectorId,
1,
300,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/detector/${Uri.encodeComponent(detectorId)}/publishingDestination/${Uri.encodeComponent(destinationId)}',
exceptionFnMap: _exceptionFns,
);
return DescribePublishingDestinationResponse.fromJson(response);
}