jimbo340
jimbo340

Reputation: 9

type AWS credentials provider has no member credentials with region type

I'm trying to make my app connect to Amazon S3 and retrieve files from a bucket only I'm getting some errors.

let credentialsProvider = AWSCognitoCredentialsProvider.credentialsWithRegionType(AWSRegionType.EUWest1,identityPoolId: CognitoIdentityPoolId ,unauthRoleArn: unRoleArn, authRoleArn: RoleArn, accoundId: ID )

This is the code that is giving me an error with "Type 'AWSCognitoCredentialsProvider' has no member 'CredentialsWithRegionType'" hopefully some can spread some light on what I have been doing wrong because at the moment I don't know if it's something in my code or me not installing the correct things with my Podfile.

Thanks

Upvotes: 0

Views: 440

Answers (1)

jack_f
jack_f

Reputation: 140

There is a new, simpler way to provide credentials in swift. Try this and see if it fixes your errors:

let credentialsProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: cognitoIdentityPoolId)

Upvotes: 1

Related Questions