parameters: (self)
return_statement: return assume_role_kwargs
docstring: Get the arguments for assume role based on current configuration.
docstring_summary: Get the arguments for assume role based on current configuration.
docstring_tokens: Get the arguments for assume role based on current configuration .
function: def _assume_role_kwargs(self):
          """Get the arguments for assume role based on current configuration."""
          assume_role_kwargs = deepcopy(self._assume_kwargs)
  
          mfa_serial = assume_role_kwargs.get('SerialNumber')
  
          if mfa_serial is not None:
              prompt = 'Enter MFA code for %s: ' % mfa_serial
              token_code = self._mfa_prompter(prompt)
              assume_role_kwargs['TokenCode'] = token_code
  
          duration_seconds = assume_role_kwargs.get('DurationSeconds')
  
          if duration_seconds is not None:
              assume_role_kwargs['DurationSeconds'] = duration_seconds
  
          return assume_role_kwargs
function_tokens: def _assume_role_kwargs ( self ) : assume_role_kwargs = deepcopy ( self . _assume_kwargs ) mfa_serial = assume_role_kwargs . get ( 'SerialNumber' ) if mfa_serial is not None : prompt = 'Enter MFA code for %s: ' % mfa_serial token_code = self . _mfa_prompter ( prompt ) assume_role_kwargs [ 'TokenCode' ] = token_code duration_seconds = assume_role_kwargs . get ( 'DurationSeconds' ) if duration_seconds is not None : assume_role_kwargs [ 'DurationSeconds' ] = duration_seconds return assume_role_kwargs