Deletes an activation. You aren't required to delete an activation. If you delete an activation, you can no longer use it to register additional managed nodes. Deleting an activation doesn't de-register managed nodes. You must manually de-register managed nodes.
Parameters:
-
activation_id
(ActivationId)
–
The ID of the activation that you want to delete.
Raises:
-
InternalServerError
–
An error occurred on the server side.
-
InvalidActivation
–
The activation isn't valid. The activation might have been deleted, or the ActivationId and the ActivationCode don't match.
-
InvalidActivationId
–
The activation ID isn't valid. Verify that you entered the correct ActivationId or ActivationCode and try again.
-
TooManyUpdates
–
There are concurrent updates for a resource that supports one update at a time.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
| def delete_activation(
self,
activation_id: "capo_ssm.types.activation_id.ActivationId",
*,
config_overrides: Optional[SSMClientConfig] = None,
) -> "capo_ssm.types.delete_activation_result.DeleteActivationResult":
"""<p>Deletes an activation. You aren't required to delete an activation. If you delete an activation, you can no longer use it to register additional managed nodes. Deleting an activation doesn't de-register managed nodes. You must manually de-register managed nodes.</p>
Args:
activation_id: <p>The ID of the activation that you want to delete.</p>
Raises:
capo_ssm.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
capo_ssm.errors.invalid_activation.InvalidActivation: <p>The activation isn't valid. The activation might have been deleted, or the ActivationId and the ActivationCode don't match.</p>
capo_ssm.errors.invalid_activation_id.InvalidActivationId: <p>The activation ID isn't valid. Verify that you entered the correct ActivationId or ActivationCode and try again.</p>
capo_ssm.errors.too_many_updates.TooManyUpdates: <p>There are concurrent updates for a resource that supports one update at a time.</p>
capo_ssm.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ssm.types.delete_activation_request.DeleteActivationRequest]",
) -> OperationResponse[
"capo_ssm.types.delete_activation_result.DeleteActivationResult"
]:
import capo_ssm._operations.amazon_ssm.delete_activation
output, http_response = (
capo_ssm._operations.amazon_ssm.delete_activation.delete_activation(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteActivation")
)
input_: capo_ssm.types.delete_activation_request.DeleteActivationRequest = {
"activation_id": activation_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|