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