deleteActivation method
Deletes an activation. You are not required to delete an activation. If you delete an activation, you can no longer use it to register additional managed instances. Deleting an activation does not de-register managed instances. You must manually de-register managed instances.
May throw InvalidActivationId. May throw InvalidActivation. May throw InternalServerError. May throw TooManyUpdates.
Parameter activationId
:
The ID of the activation that you want to delete.
Implementation
Future<void> deleteActivation({
required String activationId,
}) async {
ArgumentError.checkNotNull(activationId, 'activationId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonSSM.DeleteActivation'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ActivationId': activationId,
},
);
}