Gets the events and the corresponding Lambda functions associated with an identity pool.
This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
Parameters:
-
identity_pool_id
(IdentityPoolId)
–
The Cognito Identity Pool ID for the request
Raises:
Source code in docs_src/capo_cognito_sync/_services/async_cognito_sync.py
| async def get_cognito_events(
self,
identity_pool_id: "capo_cognito_sync.types.identity_pool_id.IdentityPoolId",
*,
config_overrides: Optional[AsyncCognitoSyncClientConfig] = None,
) -> "capo_cognito_sync.types.get_cognito_events_response.GetCognitoEventsResponse":
"""<p>Gets the events and the corresponding Lambda functions associated with an identity pool.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
Args:
identity_pool_id: <p>The Cognito Identity Pool ID for the request</p>
Raises:
capo_cognito_sync.errors.internal_error_exception.InternalErrorException: Indicates an internal service error.
capo_cognito_sync.errors.invalid_parameter_exception.InvalidParameterException: Thrown when a request parameter does not comply with the associated constraints.
capo_cognito_sync.errors.not_authorized_exception.NotAuthorizedException: Thrown when a user is not authorized to access the requested resource.
capo_cognito_sync.errors.resource_not_found_exception.ResourceNotFoundException: Thrown if the resource doesn't exist.
capo_cognito_sync.errors.too_many_requests_exception.TooManyRequestsException: Thrown if the request is throttled.
capo_cognito_sync.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cognito_sync.types.get_cognito_events_request.GetCognitoEventsRequest]",
) -> AsyncOperationResponse[
"capo_cognito_sync.types.get_cognito_events_response.GetCognitoEventsResponse"
]:
import capo_cognito_sync._operations.aws_cognito_sync_service.get_cognito_events
(
output,
http_response,
) = await capo_cognito_sync._operations.aws_cognito_sync_service.get_cognito_events.async_get_cognito_events(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetCognitoEvents")
)
input_: capo_cognito_sync.types.get_cognito_events_request.GetCognitoEventsRequest = {
"identity_pool_id": identity_pool_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|