0
我的身份池以“us-east-2 ...”开头。但我无法在Android Cognito SDK中找到US_EAST_2区域。可能地区不被亚马逊支持。当我创建CognitoCachingCredentialsProvider对象:亚马逊Cognito身份池区域不存在
public static CognitoCachingCredentialsProvider getCredentialsProvider() {
if (credentialsProvider == null) {
credentialsProvider = new CognitoCachingCredentialsProvider(
context,
"us-east-2:*****", // Identity pool ID
Regions.DEFAULT_REGION);
}
return credentialsProvider;
}
我显示在logcat的这样一条消息:
com.amazonaws.services.cognitoidentity.model.ResourceNotFoundException: IdentityPool 'us-east-2:****' not found. (Service: AmazonCognitoIdentity; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: ***)
我怎样才能解决这个问题?
地区水湿是缺席尝试与Regions.US_EAST_1。如果更换我没看错的 – yash786
我尝试过US_EAST_1。我得到同样的错误。 – sorunluadam
好的请尝试使用Regions.US_EAST_2。 – yash786