create_entitlement
¶
create_entitlement(
environment_id: EnvironmentId,
connector_id: ConnectorId,
entitlement_type: EntitlementType,
vm_ids: VmIdList,
*,
config_overrides: Optional[evsClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> CreateEntitlementResponse
Creates a Windows Server License entitlement for virtual machines in an Amazon EVS environment using the provided vCenter Server connector. This is an asynchronous operation. Amazon EVS validates the specified virtual machines before starting usage tracking.
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 creation 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 to create the entitlement in.
-
connector_id(ConnectorId) –A unique ID for the connector associated with the entitlement.
-
entitlement_type(EntitlementType) –The type of entitlement to create.
-
vm_ids(VmIdList) –The list of VMware vSphere virtual machine managed object IDs to create 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.