Skip to content

delete_support_permit

delete_support_permit(
    support_permit_identifier: Arn,
    *,
    config_overrides: Optional[SupportAuthZClientConfig] = None,
) -> DeleteSupportPermitOutput

Deletes a support permit, revoking the authorization previously granted to the AWS support operator.

Parameters:

  • support_permit_identifier (Arn) –

    The Amazon Resource Name (ARN) or name of the support permit to delete.

Raises:

Source code in docs_src/capo_supportauthz/_services/support_auth_z.py
def delete_support_permit(
    self,
    support_permit_identifier: "capo_supportauthz.types.arn.Arn",
    *,
    config_overrides: Optional[SupportAuthZClientConfig] = None,
) -> (
    "capo_supportauthz.types.delete_support_permit_output.DeleteSupportPermitOutput"
):
    """<p>Deletes a support permit, revoking the authorization previously granted to the AWS support operator.</p>

    Args:
        support_permit_identifier: <p>The Amazon Resource Name (ARN) or name of the support permit to delete.</p>

    Raises:
        capo_supportauthz.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permissions to perform this operation.</p>
        capo_supportauthz.errors.internal_server_exception.InternalServerException: <p>An internal service error occurred. Try again later.</p>
        capo_supportauthz.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
        capo_supportauthz.errors.throttling_exception.ThrottlingException: <p>The request rate exceeded the allowed limit. Try again later.</p>
        capo_supportauthz.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
        capo_supportauthz.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_supportauthz.types.delete_support_permit_input.DeleteSupportPermitInput]",
    ) -> OperationResponse[
        "capo_supportauthz.types.delete_support_permit_output.DeleteSupportPermitOutput"
    ]:
        import capo_supportauthz._operations.support_auth_z.delete_support_permit

        output, http_response = (
            capo_supportauthz._operations.support_auth_z.delete_support_permit.delete_support_permit(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteSupportPermit")
    )
    input_: capo_supportauthz.types.delete_support_permit_input.DeleteSupportPermitInput = {
        "support_permit_identifier": support_permit_identifier
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output