getIdentityPoolConfiguration method

Future<GetIdentityPoolConfigurationResponse> getIdentityPoolConfiguration({
  1. required String identityPoolId,
})

Gets the configuration settings of 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 NotAuthorizedException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw InternalErrorException. May throw TooManyRequestsException.

Parameter identityPoolId : A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. This is the ID of the pool for which to return a configuration.

Implementation

Future<GetIdentityPoolConfigurationResponse> getIdentityPoolConfiguration({
  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)}/configuration',
    exceptionFnMap: _exceptionFns,
  );
  return GetIdentityPoolConfigurationResponse.fromJson(response);
}