async def delete_billing_group(
self,
arn: "capo_billingconductor.types.billing_group_arn.BillingGroupArn",
*,
config_overrides: Optional[AsyncbillingconductorClientConfig] = None,
) -> "capo_billingconductor.types.delete_billing_group_output.DeleteBillingGroupOutput":
"""<p> Deletes a billing group. </p>
Args:
arn: <p>The Amazon Resource Name (ARN) of the billing group that you're deleting.</p>
Raises:
capo_billingconductor.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action. </p>
capo_billingconductor.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred while processing a request. </p>
capo_billingconductor.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. </p>
capo_billingconductor.errors.validation_exception.ValidationException: <p>The input doesn't match with the constraints specified by Amazon Web Services services.</p>
capo_billingconductor.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_billingconductor.types.delete_billing_group_input.DeleteBillingGroupInput]",
) -> AsyncOperationResponse[
"capo_billingconductor.types.delete_billing_group_output.DeleteBillingGroupOutput"
]:
import capo_billingconductor._operations.aws_billing_conductor.delete_billing_group
(
output,
http_response,
) = await capo_billingconductor._operations.aws_billing_conductor.delete_billing_group.async_delete_billing_group(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteBillingGroup")
)
input_: capo_billingconductor.types.delete_billing_group_input.DeleteBillingGroupInput = {
"arn": arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output