Class AwsCloudFrontDistributionCacheBehavior

    • Method Detail

      • viewerProtocolPolicy

        public final String viewerProtocolPolicy()

        The protocol that viewers can use to access the files in an origin. You can specify the following options:

        • allow-all - Viewers can use HTTP or HTTPS.

        • redirect-to-https - CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.

        • https-only - CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).

        Returns:
        The protocol that viewers can use to access the files in an origin. You can specify the following options:

        • allow-all - Viewers can use HTTP or HTTPS.

        • redirect-to-https - CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.

        • https-only - CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)