I have a Python lambda function processing an API request from a user to change their password. The API for change_password is as follows
response = client.change_password(
PreviousPassword='string',
ProposedPassword='string',
AccessToken='string'
)
My question is what should I use to populate the AccessToken? I have tried the user's token obtained at login (and passed in the event). I have tried the assumed role's credentials:
session = boto3.Session()
credentials = session.get_credentials()
accessKey = credentials.access_key
Unfortunately neither work. Thanks!