#NEWLINE# def __init__( self , aws_access_key_id = None , aws_secret_access_key = None , is_secure = True , port = None , proxy = None , proxy_port = None , host = None , debug = 0 , session_token = None , authenticate_requests = True , validate_cert = True , max_sts_attempts = 3 ) : #NEWLINE# #INDENT# if ( not host ) : #NEWLINE# #INDENT# host = self . DefaultHost #NEWLINE# #UNINDENT# self . validate_cert = validate_cert #NEWLINE# self . authenticate_requests = authenticate_requests #NEWLINE# AWSAuthConnection . __init__ ( self , host , aws_access_key_id , aws_secret_access_key , is_secure , port , proxy , proxy_port , debug = debug , security_token = session_token ) #NEWLINE# self . pending_requests = deque ( ) #NEWLINE# self . sts = AsyncAwsSts ( aws_secret_access_key , aws_secret_access_key ) #NEWLINE# assert ( isinstance ( max_sts_attempts , int ) and ( max_sts_attempts >= 0 ) ) #NEWLINE# self . max_sts_attempts = max_sts_attempts