Skip to content

reject_support_permit_request

reject_support_permit_request(
    request_arn: RequestArn,
    *,
    config_overrides: Optional[SupportAuthZClientConfig] = None,
) -> RejectSupportPermitRequestOutput

Rejects a permit request from an AWS support operator. The operator cannot proceed with the requested action.

Parameters:

  • request_arn (RequestArn) –

    The ARN of the permit request to reject.

Raises:

Source code in docs_src/capo_supportauthz/_services/support_auth_z.py
def reject_support_permit_request(
    self,
    request_arn: "capo_supportauthz.types.request_arn.RequestArn",
    *,
    config_overrides: Optional[SupportAuthZClientConfig] = None,
) -> "capo_supportauthz.types.reject_support_permit_request_output.RejectSupportPermitRequestOutput":
    """<p>Rejects a permit request from an AWS support operator. The operator cannot proceed with the requested action.</p>

    Args:
        request_arn: <p>The ARN of the permit request to reject.</p>

    Raises:
        capo_supportauthz.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permissions to perform this operation.</p>
        capo_supportauthz.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</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.reject_support_permit_request_input.RejectSupportPermitRequestInput]",
    ) -> OperationResponse[
        "capo_supportauthz.types.reject_support_permit_request_output.RejectSupportPermitRequestOutput"
    ]:
        import capo_supportauthz._operations.support_auth_z.reject_support_permit_request

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("RejectSupportPermitRequest")
    )
    input_: capo_supportauthz.types.reject_support_permit_request_input.RejectSupportPermitRequestInput = {
        "request_arn": request_arn
    }

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