Updates the AWS resources required to access the Amplify Admin UI.
Parameters:
Raises:
Source code in docs_src/capo_amplifybackend/_services/amplify_backend.py
| def update_backend_config(
self,
app_id: "capo_amplifybackend.types.__string.__string",
*,
config_overrides: Optional[AmplifyBackendClientConfig] = None,
login_auth_config: Optional[
"capo_amplifybackend.types.login_auth_config_req_obj.LoginAuthConfigReqObj"
] = None,
) -> "capo_amplifybackend.types.update_backend_config_response.UpdateBackendConfigResponse":
"""<p>Updates the AWS resources required to access the Amplify Admin UI.</p>
Args:
app_id: <p>The app ID.</p>
login_auth_config: <p>Describes the Amazon Cognito configuration for Admin UI access.</p>
Raises:
capo_amplifybackend.errors.bad_request_exception.BadRequestException: <p>An error returned if a request is not formed properly.</p>
capo_amplifybackend.errors.gateway_timeout_exception.GatewayTimeoutException: <p>An error returned if there's a temporary issue with the service.</p>
capo_amplifybackend.errors.not_found_exception.NotFoundException: <p>An error returned when a specific resource type is not found.</p>
capo_amplifybackend.errors.too_many_requests_exception.TooManyRequestsException: <p>An error that is returned when a limit of a specific type has been exceeded.</p>
capo_amplifybackend.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_amplifybackend.types.update_backend_config_request.UpdateBackendConfigRequest]",
) -> OperationResponse[
"capo_amplifybackend.types.update_backend_config_response.UpdateBackendConfigResponse"
]:
import capo_amplifybackend._operations.amplify_backend.update_backend_config
output, http_response = (
capo_amplifybackend._operations.amplify_backend.update_backend_config.update_backend_config(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateBackendConfig")
)
input_: capo_amplifybackend.types.update_backend_config_request.UpdateBackendConfigRequest = {
"app_id": app_id
}
if login_auth_config is not None:
input_["login_auth_config"] = login_auth_config
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|