function loadWaiterConfig(state) {
    if (!this.service.api.waiters[state]) {
      throw new AWS.util.error(new Error(), {
        code: 'StateNotFoundError',
        message: 'State ' + state + ' not found.'
      });
    }

    this.config = AWS.util.copy(this.service.api.waiters[state]);
  }
function loadWaiterConfig(state) {
    if (!this.service.api.waiters[state]) {
      throw new AWS.util.error(new Error(), {
        code: 'StateNotFoundError',
        message: 'State ' + state + ' not found.'
      });
    }

    this.config = AWS.util.copy(this.service.api.waiters[state]);
  }
function loadWaiterConfig ( state ) { if ( ! this . service . api . waiters [ state ] ) { throw new AWS . util . error ( new Error ( ) , { code : 'StateNotFoundError' , message : 'State ' + state + ' not found.' } ) ; } this . config = AWS . util . copy ( this . service . api . waiters [ state ] ) ; }
Loads waiter configuration from API configuration

@api private
Loads waiter configuration from API configuration
Load the waiter config for a given state