Skip to content

delete_license_configuration async

delete_license_configuration(
    license_configuration_arn: String,
    *,
    config_overrides: Optional[AsyncLicenseManagerClientConfig] = None,
) -> DeleteLicenseConfigurationResponse

Deletes the specified license configuration.

You cannot delete a license configuration that is in use.

Parameters:

  • license_configuration_arn (String) –

    ID of the license configuration.

Raises:

Source code in docs_src/capo_license_manager/_services/async_license_manager.py
async def delete_license_configuration(
    self,
    license_configuration_arn: "capo_license_manager.types.string.String",
    *,
    config_overrides: Optional[AsyncLicenseManagerClientConfig] = None,
) -> "capo_license_manager.types.delete_license_configuration_response.DeleteLicenseConfigurationResponse":
    """<p>Deletes the specified license configuration.</p> <p>You cannot delete a license configuration that is in use.</p>

    Args:
        license_configuration_arn: <p>ID of the license configuration.</p>

    Raises:
        capo_license_manager.errors.access_denied_exception.AccessDeniedException: <p>Access to resource denied.</p>
        capo_license_manager.errors.authorization_exception.AuthorizationException: <p>The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account.</p>
        capo_license_manager.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One or more parameter values are not valid.</p>
        capo_license_manager.errors.rate_limit_exceeded_exception.RateLimitExceededException: <p>Too many requests have been submitted. Try again after a brief wait.</p>
        capo_license_manager.errors.server_internal_exception.ServerInternalException: <p>The server experienced an internal error. Try again.</p>
        capo_license_manager.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_license_manager.types.delete_license_configuration_request.DeleteLicenseConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_license_manager.types.delete_license_configuration_response.DeleteLicenseConfigurationResponse"
    ]:
        import capo_license_manager._operations.aws_license_manager.delete_license_configuration

        (
            output,
            http_response,
        ) = await capo_license_manager._operations.aws_license_manager.delete_license_configuration.async_delete_license_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteLicenseConfiguration")
    )
    input_: capo_license_manager.types.delete_license_configuration_request.DeleteLicenseConfigurationRequest = {
        "license_configuration_arn": license_configuration_arn
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output