Interface ComputeRegionUrlMapDefaultRouteActionCorsPolicy

    • Method Detail

      • 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 field translates to the Access-Control-Allow-Credentials header. Default is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#allow_credentials ComputeRegionUrlMap#allow_credentials}

      • getAllowHeaders

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

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

      • getAllowMethods

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

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

      • getAllowOriginRegexes

        @Stability(Stable)
        @Nullable
        default List<String> getAllowOriginRegexes()
        Specifies the regualar expression patterns that match allowed origins.

        For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#allow_origin_regexes ComputeRegionUrlMap#allow_origin_regexes}

      • getAllowOrigins

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

        An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#allow_origins ComputeRegionUrlMap#allow_origins}

      • getDisabled

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

        The default value of 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/compute_region_url_map#disabled ComputeRegionUrlMap#disabled}

      • getExposeHeaders

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

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

      • getMaxAge

        @Stability(Stable)
        @Nullable
        default Number getMaxAge()
        Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#max_age ComputeRegionUrlMap#max_age}