code: function getArnComponent(arn, index) {
    const components = isNotBlank(arn) ? trim(arn).split(':') : [];
    return components.length > index ? trimOrEmpty(components[index]) : '';
  }
docs: Extracts the component at the given index of the given ARN.
  @param {string} arn the ARN from which to extract the component
  @param {number} index the index of the ARN component to retrieve
  @returns {string} the component (if extracted) or empty string (if not)