AWSCognitoLoginProviderKey (SWIFT) (AWS) (Cognito)

I was following along the guide to set up Google + Cognito

https://docs.aws.amazon.com/cognito/latest/developerguide/google.html

They eventually say to implement this function.

func finishedWithAuth(auth: GTMOAuth2Authentication!, error: NSError!) {
        if error != nil {
          print(error.localizedDescription)
        }
        else {
          let idToken = auth.parameters.objectForKey("id_token")
          credentialsProvider.logins = [AWSCognitoLoginProviderKey.Google.rawValue: idToken!]
        }
    }

But the problem is the line:

credentialsProvider.logins = [AWSCognitoLoginProviderKey.Google.rawValue: idToken!]

Is no longer is a valid function call in their newest version of the SDK (swift) but their documentation still says to do this so I am lost. Has anyone ever successfully updated their app for it to work?

Note: Basically I have logged into google gotten a id_token from them and I am looking to pass the google auth id_token to aws cognito to get a authenticated cognito identity to then use services like s3, etc..