Class BucketCorsConfigurationCorsRule


  • public final class BucketCorsConfigurationCorsRule
    extends java.lang.Object
    • Method Detail

      • allowedHeaders

        public java.util.List<java.lang.String> allowedHeaders()
        Returns:
        Set of Headers that are specified in the `Access-Control-Request-Headers` header.
      • allowedMethods

        public java.util.List<java.lang.String> allowedMethods()
        Returns:
        Set of HTTP methods that you allow the origin to execute. Valid values are `GET`, `PUT`, `HEAD`, `POST`, and `DELETE`.
      • allowedOrigins

        public java.util.List<java.lang.String> allowedOrigins()
        Returns:
        Set of origins you want customers to be able to access the bucket from.
      • exposeHeaders

        public java.util.List<java.lang.String> exposeHeaders()
        Returns:
        Set of headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript `XMLHttpRequest` object).
      • id

        public java.util.Optional<java.lang.String> id()
        Returns:
        Unique identifier for the rule. The value cannot be longer than 255 characters.
      • maxAgeSeconds

        public java.util.Optional<java.lang.Integer> maxAgeSeconds()
        Returns:
        Time in seconds that your browser is to cache the preflight response for the specified resource.