getSubscriptionDefinition method
Future<GetSubscriptionDefinitionResponse>
getSubscriptionDefinition({
- required String subscriptionDefinitionId,
Retrieves information about a subscription definition.
May throw BadRequestException.
Parameter subscriptionDefinitionId
:
The ID of the subscription definition.
Implementation
Future<GetSubscriptionDefinitionResponse> getSubscriptionDefinition({
required String subscriptionDefinitionId,
}) async {
ArgumentError.checkNotNull(
subscriptionDefinitionId, 'subscriptionDefinitionId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/definition/subscriptions/${Uri.encodeComponent(subscriptionDefinitionId)}',
exceptionFnMap: _exceptionFns,
);
return GetSubscriptionDefinitionResponse.fromJson(response);
}