updateSubscriptionDefinition method
Updates a subscription definition.
May throw BadRequestException.
Parameter subscriptionDefinitionId
:
The ID of the subscription definition.
Parameter name
:
The name of the definition.
Implementation
Future<void> updateSubscriptionDefinition({
required String subscriptionDefinitionId,
String? name,
}) async {
ArgumentError.checkNotNull(
subscriptionDefinitionId, 'subscriptionDefinitionId');
final $payload = <String, dynamic>{
if (name != null) 'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/greengrass/definition/subscriptions/${Uri.encodeComponent(subscriptionDefinitionId)}',
exceptionFnMap: _exceptionFns,
);
}