delete_entitlement
¶
delete_entitlement(
environment_id: EnvironmentId,
connector_id: ConnectorId,
entitlement_type: EntitlementType,
vm_ids: VmIdList,
*,
config_overrides: Optional[evsClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> DeleteEntitlementResponse
Deletes a Windows Server License entitlement for virtual machines in an Amazon EVS environment. Deleting an entitlement stops usage tracking for the specified virtual machines.
Parameters:
-
client_token(Optional[ClientToken], default:None) –This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.
A unique, case-sensitive identifier that you provide to ensure the idempotency of the entitlement deletion request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.
-
environment_id(EnvironmentId) –A unique ID for the environment that the entitlement belongs to.
-
connector_id(ConnectorId) –A unique ID for the connector associated with the entitlement.
-
entitlement_type(EntitlementType) –The type of entitlement to delete.
-
vm_ids(VmIdList) –The list of VMware vSphere virtual machine managed object IDs to delete entitlements for.
Raises:
-
ResourceNotFoundException–A service resource associated with the request could not be found. The resource might not be specified correctly, or it may have a
stateofDELETED. -
ThrottlingException–The operation could not be performed because the service is throttling requests. This exception is thrown when the service endpoint receives too many concurrent requests.
-
ValidationException–The input fails to satisfy the specified constraints. You will see this exception if invalid inputs are provided for any of the Amazon EVS environment operations, or if a list operation is performed on an environment resource that is still initializing.
-
UnknownServiceError–The service returned an error code this client does not model.