session.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:AWS-AutoTag 作者: cpollard0 项目源码 文件源码
def set_credentials(self, access_key, secret_key, token=None):
        """
        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.
        """
        self._credentials = botocore.credentials.Credentials(access_key,
                                                             secret_key,
                                                             token)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号