getCognitoEvents method

Future<GetCognitoEventsResponse> getCognitoEvents({
  1. required String identityPoolId,
})

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.

May throw InvalidParameterException. May throw ResourceNotFoundException. May throw NotAuthorizedException. May throw InternalErrorException. May throw TooManyRequestsException.

Parameter identityPoolId : The Cognito Identity Pool ID for the request

Implementation

Future<GetCognitoEventsResponse> getCognitoEvents({
  required String identityPoolId,
}) async {
  ArgumentError.checkNotNull(identityPoolId, 'identityPoolId');
  _s.validateStringLength(
    'identityPoolId',
    identityPoolId,
    1,
    55,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/identitypools/${Uri.encodeComponent(identityPoolId)}/events',
    exceptionFnMap: _exceptionFns,
  );
  return GetCognitoEventsResponse.fromJson(response);
}