async def get_benefit_application(
self,
catalog: "capo_partnercentral_benefits.types.catalog_name.CatalogName",
identifier: "capo_partnercentral_benefits.types.benefit_application_identifier.BenefitApplicationIdentifier",
*,
config_overrides: Optional[AsyncPartnerCentralBenefitsClientConfig] = None,
) -> "capo_partnercentral_benefits.types.get_benefit_application_output.GetBenefitApplicationOutput":
"""<p>Retrieves detailed information about a specific benefit application.</p>
Args:
catalog: <p>The catalog identifier that specifies which benefit catalog to query.</p>
identifier: <p>The unique identifier of the benefit application to retrieve.</p>
Raises:
capo_partnercentral_benefits.errors.access_denied_exception.AccessDeniedException: <p>Thrown when the caller does not have sufficient permissions to perform the requested operation.</p>
capo_partnercentral_benefits.errors.conflict_exception.ConflictException: <p>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.</p>
capo_partnercentral_benefits.errors.internal_server_exception.InternalServerException: <p>Thrown when an unexpected error occurs on the server side during request processing.</p>
capo_partnercentral_benefits.errors.resource_not_found_exception.ResourceNotFoundException: <p>Thrown when the requested resource cannot be found or does not exist.</p>
capo_partnercentral_benefits.errors.throttling_exception.ThrottlingException: <p>Thrown when the request rate exceeds the allowed limits and the request is being throttled.</p>
capo_partnercentral_benefits.errors.validation_exception.ValidationException: <p>Thrown when the request contains invalid parameters or fails input validation requirements.</p>
capo_partnercentral_benefits.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_partnercentral_benefits.types.get_benefit_application_input.GetBenefitApplicationInput]",
) -> AsyncOperationResponse[
"capo_partnercentral_benefits.types.get_benefit_application_output.GetBenefitApplicationOutput"
]:
import capo_partnercentral_benefits._operations.partner_central_benefits_service.get_benefit_application
(
output,
http_response,
) = await capo_partnercentral_benefits._operations.partner_central_benefits_service.get_benefit_application.async_get_benefit_application(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_partnercentral_benefits.types.get_benefit_application_output.GetBenefitApplicationOutput",
) -> dict[str, Any]:
import capo_partnercentral_benefits.types.get_benefit_application_output
return capo_partnercentral_benefits.types.get_benefit_application_output.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("GetBenefitApplication", redact_output=_redact_output),
)
input_: capo_partnercentral_benefits.types.get_benefit_application_input.GetBenefitApplicationInput = {
"catalog": catalog,
"identifier": identifier,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output