'Manually create credentials for this session.  If you would
prefer to use botocore without a config file, environment variables,
or IAM roles, you can pass explicit credentials into this
method to establish credentials for this session.
:type access_key: str
:param access_key: The access key part of the credentials.
:type secret_key: str
:param secret_key: The secret key part of the credentials.
:type token: str
:param token: An option session token used by STS session
credentials.'

def set_credentials(self, access_key, secret_key, token=None):

    self._credentials = botocore.credentials.Credentials(access_key, secret_key, token)
