cancel_benefit_application
¶
cancel_benefit_application(
catalog: CatalogName,
client_token: str,
identifier: BenefitApplicationIdentifier,
*,
config_overrides: Optional[PartnerCentralBenefitsClientConfig] = None,
reason: Optional[str] = None,
) -> CancelBenefitApplicationOutput
Cancels a benefit application that is currently in progress, preventing further processing.
Parameters:
-
catalog(CatalogName) –The catalog identifier that specifies which benefit catalog the application belongs to.
-
client_token(str) –A unique, case-sensitive identifier to ensure idempotent processing of the cancellation request.
-
identifier(BenefitApplicationIdentifier) –The unique identifier of the benefit application to cancel.
-
reason(Optional[str], default:None) –A descriptive reason explaining why the benefit application is being cancelled.
Raises:
-
AccessDeniedException–Thrown when the caller does not have sufficient permissions to perform the requested operation.
-
ConflictException–Thrown when the request conflicts with the current state of the resource, such as attempting to modify a resource that has been changed by another process.
-
InternalServerException–Thrown when an unexpected error occurs on the server side during request processing.
-
ResourceNotFoundException–Thrown when the requested resource cannot be found or does not exist.
-
ThrottlingException–Thrown when the request rate exceeds the allowed limits and the request is being throttled.
-
ValidationException–Thrown when the request contains invalid parameters or fails input validation requirements.
-
UnknownServiceError–The service returned an error code this client does not model.