2017-06-05 59 views
0

我正在编写应用程序以使用Amazon Web Services (AWS)实现脱机同步功能我正在关注this过时的教程,并在尝试使用我当前的身份池ID运行我的代码时收到错误。 enter image description hereAWS - IdentityPool找不到

我缺少什么:

ap-southeast-2:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

我一直在使用这个JSON

{ 
    "Version": "2012-10-17", 
    "Statement": [ 
     { 
      "Effect": "Allow", 
      "Action": [ 
       "mobileanalytics:PutEvents", 
       "cognito-sync:*", 
       "sdb:*" 
      ], 
      "Resource": [ 
       "*" 
      ] 
     } 
    ] 
} 

我也允许未经验证的访问设置验证和非验证用户的权限?

回答

0

在本教程中的代码,你会看到下面

public SimpleDBStorage() 
    { 
     var credentials = new CognitoAWSCredentials(
           Constants.CognitoIdentityPoolId, 
           RegionEndpoint.<REGION>); 
     var config = new AmazonSimpleDBConfig(); 
     config.RegionEndpoint = RegionEndpoint.<REGION>; 
     client = new AmazonSimpleDBClient(credentials, config); 

     Items = new List<TodoItem>(); 
     SetupDomain(); 
    } 

功能您必须更新这些地区您正在使用AWS在该地区。