Deletes a LicenseServerEndpoint resource.
Parameters:
-
license_server_endpoint_arn
(Arn)
–
The Amazon Resource Name (ARN) that identifies the LicenseServerEndpoint resource to delete.
-
server_type
(ServerType)
–
The type of License Server that the delete request refers to.
Raises:
Source code in docs_src/capo_license_manager_user_subscriptions/_services/async_license_manager_user_subscriptions.py
| async def delete_license_server_endpoint(
self,
license_server_endpoint_arn: "capo_license_manager_user_subscriptions.types.arn.Arn",
server_type: "capo_license_manager_user_subscriptions.types.server_type.ServerType",
*,
config_overrides: Optional[
AsyncLicenseManagerUserSubscriptionsClientConfig
] = None,
) -> "capo_license_manager_user_subscriptions.types.delete_license_server_endpoint_response.DeleteLicenseServerEndpointResponse":
"""<p>Deletes a <code>LicenseServerEndpoint</code> resource.</p>
Args:
license_server_endpoint_arn: <p>The Amazon Resource Name (ARN) that identifies the <code>LicenseServerEndpoint</code> resource to delete.</p>
server_type: <p>The type of License Server that the delete request refers to.</p>
Raises:
capo_license_manager_user_subscriptions.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action.</p>
capo_license_manager_user_subscriptions.errors.conflict_exception.ConflictException: <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
capo_license_manager_user_subscriptions.errors.internal_server_exception.InternalServerException: <p>An exception occurred with the service.</p>
capo_license_manager_user_subscriptions.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource couldn't be found.</p>
capo_license_manager_user_subscriptions.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request failed because a service quota is exceeded.</p>
capo_license_manager_user_subscriptions.errors.throttling_exception.ThrottlingException: <p>The request was denied because of request throttling. Retry the request.</p>
capo_license_manager_user_subscriptions.errors.validation_exception.ValidationException: <p>A parameter is not valid.</p>
capo_license_manager_user_subscriptions.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_license_manager_user_subscriptions.types.delete_license_server_endpoint_request.DeleteLicenseServerEndpointRequest]",
) -> AsyncOperationResponse[
"capo_license_manager_user_subscriptions.types.delete_license_server_endpoint_response.DeleteLicenseServerEndpointResponse"
]:
import capo_license_manager_user_subscriptions._operations.license_manager_user_subscriptions.delete_license_server_endpoint
(
output,
http_response,
) = await capo_license_manager_user_subscriptions._operations.license_manager_user_subscriptions.delete_license_server_endpoint.async_delete_license_server_endpoint(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteLicenseServerEndpoint")
)
input_: capo_license_manager_user_subscriptions.types.delete_license_server_endpoint_request.DeleteLicenseServerEndpointRequest = {
"license_server_endpoint_arn": license_server_endpoint_arn,
"server_type": server_type,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|