INNER CODE UNIT · JavaScript

Promise

ACloudGuru/serverless-plugin-aws-alerts · src/external-stack.js:247

          return new Promise((resolve) => setTimeout(resolve, 5000)).then(
            readMore
          );
        }
        if (dots) this.serverless.cli.consoleLog('');
        this.serverless.cli.log(
          `External alert stack ${externalStackName} ${this.phrases[operation][state]} (${response.StackStatus}).`
        );
        if (this.stackStatusCodes[response.StackStatus] === 'failure') {
          // The operation failed, so return an error to Serverless
          return Promise.reject(
            new Error(
              `External alert stack ${externalStackName} ${this.phrases[operation][state]} (${response.StackStatus})`
            )
          );
        }
      });
    return readMore();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…