delete_entitlement
async
¶
delete_entitlement(
environment_id: EnvironmentId,
connector_id: ConnectorId,
entitlement_type: EntitlementType,
vm_ids: VmIdList,
*,
config_overrides: Optional[AsyncevsClientConfig] = 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.
Source code in docs_src/capo_evs/_services/async_evs.py
1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 | |