constructor()

in source/checksum/lib/validation/index.js [46:62]


  constructor(params = {}) {
    super('ChecksumValidation', params);
    /* sanity check */
    const missing = REQUIRED_PARAMS.filter(x => params[x] === undefined);
    if (missing.length) {
      throw new InvalidArgumentError(`missing ${missing.join(', ')}`);
    }
    this.$computed = params.Computed;
    this.$algorithm = params.Algorithm || undefined;
    this.$expected = params.Expected || undefined;
    this.$storeChecksumOnTagging = params.StoreChecksumOnTagging
      || (params.StoreChecksumOnTagging === undefined);
    this.$comparedWith = this.$expected ? 'api' : 'none';
    this.$comparedResult = 'SKIPPED';
    this.$snsTopicArn = process.env.ENV_SNS_TOPIC_ARN || undefined;
    this.$tagUpdated = false;
  }