toOriginRequestPolicyHeaderBehavior method

OriginRequestPolicyHeaderBehavior toOriginRequestPolicyHeaderBehavior()

Implementation

OriginRequestPolicyHeaderBehavior toOriginRequestPolicyHeaderBehavior() {
  switch (this) {
    case 'none':
      return OriginRequestPolicyHeaderBehavior.none;
    case 'whitelist':
      return OriginRequestPolicyHeaderBehavior.whitelist;
    case 'allViewer':
      return OriginRequestPolicyHeaderBehavior.allViewer;
    case 'allViewerAndWhitelistCloudFront':
      return OriginRequestPolicyHeaderBehavior
          .allViewerAndWhitelistCloudFront;
  }
  throw Exception(
      '$this is not known in enum OriginRequestPolicyHeaderBehavior');
}