Interface NetworkServicesEdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy

    • Method Detail

      • getMaxAge

        @Stability(Stable)
        @NotNull
        String getMaxAge()
        Specifies how long results of a preflight request can be cached by a client in seconds.

        Note that many browser clients enforce a maximum TTL of 600s (10 minutes). * Setting the value to -1 forces a pre-flight check for all requests (not recommended) * A maximum TTL of 86400s can be set, but note that (as above) some clients may force pre-flight checks at a more regular interval. * This translates to the Access-Control-Max-Age header. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#max_age NetworkServicesEdgeCacheService#max_age}

      • getAllowCredentials

        @Stability(Stable)
        @Nullable
        default Object getAllowCredentials()
        In response to a preflight request, setting this to true indicates that the actual request can include user credentials.

        This translates to the Access-Control-Allow-Credentials response header. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#allow_credentials NetworkServicesEdgeCacheService#allow_credentials}

      • getAllowHeaders

        @Stability(Stable)
        @Nullable
        default List<String> getAllowHeaders()
        Specifies the content for the Access-Control-Allow-Headers response header.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#allow_headers NetworkServicesEdgeCacheService#allow_headers}

      • getAllowMethods

        @Stability(Stable)
        @Nullable
        default List<String> getAllowMethods()
        Specifies the content for the Access-Control-Allow-Methods response header.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#allow_methods NetworkServicesEdgeCacheService#allow_methods}

      • getAllowOrigins

        @Stability(Stable)
        @Nullable
        default List<String> getAllowOrigins()
        Specifies the list of origins that will be allowed to do CORS requests.

        This translates to the Access-Control-Allow-Origin response header. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#allow_origins NetworkServicesEdgeCacheService#allow_origins}

      • getDisabled

        @Stability(Stable)
        @Nullable
        default Object getDisabled()
        If true, specifies the CORS policy is disabled.

        The default value is false, which indicates that the CORS policy is in effect. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#disabled NetworkServicesEdgeCacheService#disabled}

      • getExposeHeaders

        @Stability(Stable)
        @Nullable
        default List<String> getExposeHeaders()
        Specifies the content for the Access-Control-Allow-Headers response header.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#expose_headers NetworkServicesEdgeCacheService#expose_headers}