mardi 24 mars 2015

Amazon AWS AWSCognitoCredentialsProvider initializing error

Hi I am trying to initialize to create a default service configuration by adding the following code snippet in the Application delegate of an iOS 8 Swift app.


As directed on the amazon tutorial here http://ift.tt/1jMcsAv use the following lines of code



//AWS Service Config
let credentialsProvider = AWSCognitoCredentialsProvider(
regionType: AWSRegionType.USEast1, identityPoolId: "us-east-13453454-92d1-234234-234234-3434")

let defaultServiceConfiguration = AWSServiceConfiguration(
region: AWSRegionType.USEast1, credentialsProvider: credentialsProvider)

AWSServiceManager.defaultServiceManager().defaultServiceConfiguration = defaultServiceConfiguration


However the code will not compile as xCode says I am "Missing argument for IdentityId in Call"


First off this code is directly from amazons tutorial and also I do not have an identiyID just an identitypooolid (which is scrambled in my code).


What can I do to resolve this?


Thank you, Jack





Aucun commentaire:

Enregistrer un commentaire