pulumi-gcp 7.30.0__py3-none-any.whl → 7.30.0a1719513455__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_gcp/__init__.py +0 -32
- pulumi_gcp/artifactregistry/get_docker_image.py +2 -2
- pulumi_gcp/bigtable/gc_policy.py +14 -68
- pulumi_gcp/cloudfunctionsv2/_inputs.py +0 -97
- pulumi_gcp/cloudfunctionsv2/function.py +0 -232
- pulumi_gcp/cloudfunctionsv2/outputs.py +1 -129
- pulumi_gcp/compute/_inputs.py +0 -622
- pulumi_gcp/compute/address.py +7 -0
- pulumi_gcp/compute/backend_service.py +14 -0
- pulumi_gcp/compute/forwarding_rule.py +21 -0
- pulumi_gcp/compute/global_forwarding_rule.py +21 -0
- pulumi_gcp/compute/managed_ssl_certificate.py +7 -0
- pulumi_gcp/compute/manged_ssl_certificate.py +7 -0
- pulumi_gcp/compute/network_attachment.py +0 -16
- pulumi_gcp/compute/outputs.py +8 -504
- pulumi_gcp/compute/region_backend_service.py +14 -0
- pulumi_gcp/compute/region_disk_iam_binding.py +95 -122
- pulumi_gcp/compute/region_disk_iam_member.py +95 -122
- pulumi_gcp/compute/region_disk_iam_policy.py +88 -115
- pulumi_gcp/compute/region_ssl_certificate.py +7 -0
- pulumi_gcp/compute/ssl_certificate.py +7 -0
- pulumi_gcp/compute/target_https_proxy.py +1 -76
- pulumi_gcp/compute/url_map.py +0 -255
- pulumi_gcp/container/aws_cluster.py +2 -2
- pulumi_gcp/container/aws_node_pool.py +2 -2
- pulumi_gcp/container/azure_client.py +2 -2
- pulumi_gcp/container/azure_cluster.py +2 -2
- pulumi_gcp/container/azure_node_pool.py +2 -2
- pulumi_gcp/datafusion/_inputs.py +11 -163
- pulumi_gcp/datafusion/instance.py +0 -64
- pulumi_gcp/datafusion/outputs.py +7 -127
- pulumi_gcp/gkebackup/restore_plan_iam_binding.py +953 -328
- pulumi_gcp/gkebackup/restore_plan_iam_member.py +953 -328
- pulumi_gcp/gkebackup/restore_plan_iam_policy.py +953 -238
- pulumi_gcp/healthcare/_inputs.py +0 -43
- pulumi_gcp/healthcare/dataset.py +0 -110
- pulumi_gcp/healthcare/outputs.py +0 -43
- pulumi_gcp/identityplatform/config.py +1 -1
- pulumi_gcp/logging/billing_account_bucket_config.py +1 -1
- pulumi_gcp/logging/folder_bucket_config.py +1 -1
- pulumi_gcp/logging/organization_bucket_config.py +1 -1
- pulumi_gcp/monitoring/_inputs.py +0 -77
- pulumi_gcp/monitoring/outputs.py +0 -63
- pulumi_gcp/networksecurity/address_group_iam_binding.py +2 -289
- pulumi_gcp/networksecurity/address_group_iam_member.py +2 -289
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/securitycenter/instance_iam_binding.py +0 -64
- pulumi_gcp/securitycenter/instance_iam_member.py +0 -64
- pulumi_gcp/securitycenter/instance_iam_policy.py +0 -64
- pulumi_gcp/sourcerepo/repository_iam_binding.py +83 -92
- pulumi_gcp/sourcerepo/repository_iam_member.py +83 -92
- pulumi_gcp/sourcerepo/repository_iam_policy.py +76 -85
- pulumi_gcp/storage/__init__.py +0 -5
- pulumi_gcp/storage/_inputs.py +0 -130
- pulumi_gcp/storage/outputs.py +0 -76
- pulumi_gcp/vertex/_inputs.py +3 -3
- pulumi_gcp/vertex/ai_feature_online_store.py +9 -9
- pulumi_gcp/vertex/outputs.py +2 -2
- {pulumi_gcp-7.30.0.dist-info → pulumi_gcp-7.30.0a1719513455.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.30.0.dist-info → pulumi_gcp-7.30.0a1719513455.dist-info}/RECORD +62 -67
- {pulumi_gcp-7.30.0.dist-info → pulumi_gcp-7.30.0a1719513455.dist-info}/WHEEL +1 -1
- pulumi_gcp/storage/get_managed_folder_iam_policy.py +0 -115
- pulumi_gcp/storage/managed_folder.py +0 -440
- pulumi_gcp/storage/managed_folder_iam_binding.py +0 -947
- pulumi_gcp/storage/managed_folder_iam_member.py +0 -947
- pulumi_gcp/storage/managed_folder_iam_policy.py +0 -766
- {pulumi_gcp-7.30.0.dist-info → pulumi_gcp-7.30.0a1719513455.dist-info}/top_level.txt +0 -0
pulumi_gcp/compute/_inputs.py
CHANGED
@@ -925,10 +925,6 @@ __all__ = [
|
|
925
925
|
'SubnetworkLogConfigArgsDict',
|
926
926
|
'SubnetworkSecondaryIpRangeArgs',
|
927
927
|
'SubnetworkSecondaryIpRangeArgsDict',
|
928
|
-
'URLMapDefaultCustomErrorResponsePolicyArgs',
|
929
|
-
'URLMapDefaultCustomErrorResponsePolicyArgsDict',
|
930
|
-
'URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgs',
|
931
|
-
'URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgsDict',
|
932
928
|
'URLMapDefaultRouteActionArgs',
|
933
929
|
'URLMapDefaultRouteActionArgsDict',
|
934
930
|
'URLMapDefaultRouteActionCorsPolicyArgs',
|
@@ -971,10 +967,6 @@ __all__ = [
|
|
971
967
|
'URLMapHostRuleArgsDict',
|
972
968
|
'URLMapPathMatcherArgs',
|
973
969
|
'URLMapPathMatcherArgsDict',
|
974
|
-
'URLMapPathMatcherDefaultCustomErrorResponsePolicyArgs',
|
975
|
-
'URLMapPathMatcherDefaultCustomErrorResponsePolicyArgsDict',
|
976
|
-
'URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgs',
|
977
|
-
'URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgsDict',
|
978
970
|
'URLMapPathMatcherDefaultRouteActionArgs',
|
979
971
|
'URLMapPathMatcherDefaultRouteActionArgsDict',
|
980
972
|
'URLMapPathMatcherDefaultRouteActionCorsPolicyArgs',
|
@@ -1015,10 +1007,6 @@ __all__ = [
|
|
1015
1007
|
'URLMapPathMatcherHeaderActionResponseHeadersToAddArgsDict',
|
1016
1008
|
'URLMapPathMatcherPathRuleArgs',
|
1017
1009
|
'URLMapPathMatcherPathRuleArgsDict',
|
1018
|
-
'URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgs',
|
1019
|
-
'URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgsDict',
|
1020
|
-
'URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgs',
|
1021
|
-
'URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgsDict',
|
1022
1010
|
'URLMapPathMatcherPathRuleRouteActionArgs',
|
1023
1011
|
'URLMapPathMatcherPathRuleRouteActionArgsDict',
|
1024
1012
|
'URLMapPathMatcherPathRuleRouteActionCorsPolicyArgs',
|
@@ -43801,181 +43789,6 @@ class SubnetworkSecondaryIpRangeArgs:
|
|
43801
43789
|
pulumi.set(self, "range_name", value)
|
43802
43790
|
|
43803
43791
|
|
43804
|
-
if not MYPY:
|
43805
|
-
class URLMapDefaultCustomErrorResponsePolicyArgsDict(TypedDict):
|
43806
|
-
error_response_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgsDict']]]]
|
43807
|
-
"""
|
43808
|
-
Specifies rules for returning error responses.
|
43809
|
-
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
|
43810
|
-
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
|
43811
|
-
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
|
43812
|
-
Structure is documented below.
|
43813
|
-
"""
|
43814
|
-
error_service: NotRequired[pulumi.Input[str]]
|
43815
|
-
"""
|
43816
|
-
The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
|
43817
|
-
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
43818
|
-
compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
43819
|
-
global/backendBuckets/myBackendBucket
|
43820
|
-
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
|
43821
|
-
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
|
43822
|
-
"""
|
43823
|
-
elif False:
|
43824
|
-
URLMapDefaultCustomErrorResponsePolicyArgsDict: TypeAlias = Mapping[str, Any]
|
43825
|
-
|
43826
|
-
@pulumi.input_type
|
43827
|
-
class URLMapDefaultCustomErrorResponsePolicyArgs:
|
43828
|
-
def __init__(__self__, *,
|
43829
|
-
error_response_rules: Optional[pulumi.Input[Sequence[pulumi.Input['URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgs']]]] = None,
|
43830
|
-
error_service: Optional[pulumi.Input[str]] = None):
|
43831
|
-
"""
|
43832
|
-
:param pulumi.Input[Sequence[pulumi.Input['URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgs']]] error_response_rules: Specifies rules for returning error responses.
|
43833
|
-
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
|
43834
|
-
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
|
43835
|
-
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
|
43836
|
-
Structure is documented below.
|
43837
|
-
:param pulumi.Input[str] error_service: The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
|
43838
|
-
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
43839
|
-
compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
43840
|
-
global/backendBuckets/myBackendBucket
|
43841
|
-
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
|
43842
|
-
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
|
43843
|
-
"""
|
43844
|
-
if error_response_rules is not None:
|
43845
|
-
pulumi.set(__self__, "error_response_rules", error_response_rules)
|
43846
|
-
if error_service is not None:
|
43847
|
-
pulumi.set(__self__, "error_service", error_service)
|
43848
|
-
|
43849
|
-
@property
|
43850
|
-
@pulumi.getter(name="errorResponseRules")
|
43851
|
-
def error_response_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgs']]]]:
|
43852
|
-
"""
|
43853
|
-
Specifies rules for returning error responses.
|
43854
|
-
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
|
43855
|
-
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
|
43856
|
-
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
|
43857
|
-
Structure is documented below.
|
43858
|
-
"""
|
43859
|
-
return pulumi.get(self, "error_response_rules")
|
43860
|
-
|
43861
|
-
@error_response_rules.setter
|
43862
|
-
def error_response_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgs']]]]):
|
43863
|
-
pulumi.set(self, "error_response_rules", value)
|
43864
|
-
|
43865
|
-
@property
|
43866
|
-
@pulumi.getter(name="errorService")
|
43867
|
-
def error_service(self) -> Optional[pulumi.Input[str]]:
|
43868
|
-
"""
|
43869
|
-
The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
|
43870
|
-
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
43871
|
-
compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
43872
|
-
global/backendBuckets/myBackendBucket
|
43873
|
-
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
|
43874
|
-
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
|
43875
|
-
"""
|
43876
|
-
return pulumi.get(self, "error_service")
|
43877
|
-
|
43878
|
-
@error_service.setter
|
43879
|
-
def error_service(self, value: Optional[pulumi.Input[str]]):
|
43880
|
-
pulumi.set(self, "error_service", value)
|
43881
|
-
|
43882
|
-
|
43883
|
-
if not MYPY:
|
43884
|
-
class URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgsDict(TypedDict):
|
43885
|
-
match_response_codes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
43886
|
-
"""
|
43887
|
-
Valid values include:
|
43888
|
-
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
|
43889
|
-
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
|
43890
|
-
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
|
43891
|
-
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
|
43892
|
-
"""
|
43893
|
-
override_response_code: NotRequired[pulumi.Input[int]]
|
43894
|
-
"""
|
43895
|
-
The HTTP status code returned with the response containing the custom error content.
|
43896
|
-
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
|
43897
|
-
"""
|
43898
|
-
path: NotRequired[pulumi.Input[str]]
|
43899
|
-
"""
|
43900
|
-
The full path to a file within backendBucket. For example: /errors/defaultError.html
|
43901
|
-
path must start with a leading slash. path cannot have trailing slashes.
|
43902
|
-
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
|
43903
|
-
The value must be from 1 to 1024 characters.
|
43904
|
-
"""
|
43905
|
-
elif False:
|
43906
|
-
URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgsDict: TypeAlias = Mapping[str, Any]
|
43907
|
-
|
43908
|
-
@pulumi.input_type
|
43909
|
-
class URLMapDefaultCustomErrorResponsePolicyErrorResponseRuleArgs:
|
43910
|
-
def __init__(__self__, *,
|
43911
|
-
match_response_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
43912
|
-
override_response_code: Optional[pulumi.Input[int]] = None,
|
43913
|
-
path: Optional[pulumi.Input[str]] = None):
|
43914
|
-
"""
|
43915
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] match_response_codes: Valid values include:
|
43916
|
-
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
|
43917
|
-
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
|
43918
|
-
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
|
43919
|
-
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
|
43920
|
-
:param pulumi.Input[int] override_response_code: The HTTP status code returned with the response containing the custom error content.
|
43921
|
-
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
|
43922
|
-
:param pulumi.Input[str] path: The full path to a file within backendBucket. For example: /errors/defaultError.html
|
43923
|
-
path must start with a leading slash. path cannot have trailing slashes.
|
43924
|
-
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
|
43925
|
-
The value must be from 1 to 1024 characters.
|
43926
|
-
"""
|
43927
|
-
if match_response_codes is not None:
|
43928
|
-
pulumi.set(__self__, "match_response_codes", match_response_codes)
|
43929
|
-
if override_response_code is not None:
|
43930
|
-
pulumi.set(__self__, "override_response_code", override_response_code)
|
43931
|
-
if path is not None:
|
43932
|
-
pulumi.set(__self__, "path", path)
|
43933
|
-
|
43934
|
-
@property
|
43935
|
-
@pulumi.getter(name="matchResponseCodes")
|
43936
|
-
def match_response_codes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
43937
|
-
"""
|
43938
|
-
Valid values include:
|
43939
|
-
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
|
43940
|
-
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
|
43941
|
-
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
|
43942
|
-
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
|
43943
|
-
"""
|
43944
|
-
return pulumi.get(self, "match_response_codes")
|
43945
|
-
|
43946
|
-
@match_response_codes.setter
|
43947
|
-
def match_response_codes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
43948
|
-
pulumi.set(self, "match_response_codes", value)
|
43949
|
-
|
43950
|
-
@property
|
43951
|
-
@pulumi.getter(name="overrideResponseCode")
|
43952
|
-
def override_response_code(self) -> Optional[pulumi.Input[int]]:
|
43953
|
-
"""
|
43954
|
-
The HTTP status code returned with the response containing the custom error content.
|
43955
|
-
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
|
43956
|
-
"""
|
43957
|
-
return pulumi.get(self, "override_response_code")
|
43958
|
-
|
43959
|
-
@override_response_code.setter
|
43960
|
-
def override_response_code(self, value: Optional[pulumi.Input[int]]):
|
43961
|
-
pulumi.set(self, "override_response_code", value)
|
43962
|
-
|
43963
|
-
@property
|
43964
|
-
@pulumi.getter
|
43965
|
-
def path(self) -> Optional[pulumi.Input[str]]:
|
43966
|
-
"""
|
43967
|
-
The full path to a file within backendBucket. For example: /errors/defaultError.html
|
43968
|
-
path must start with a leading slash. path cannot have trailing slashes.
|
43969
|
-
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
|
43970
|
-
The value must be from 1 to 1024 characters.
|
43971
|
-
"""
|
43972
|
-
return pulumi.get(self, "path")
|
43973
|
-
|
43974
|
-
@path.setter
|
43975
|
-
def path(self, value: Optional[pulumi.Input[str]]):
|
43976
|
-
pulumi.set(self, "path", value)
|
43977
|
-
|
43978
|
-
|
43979
43792
|
if not MYPY:
|
43980
43793
|
class URLMapDefaultRouteActionArgsDict(TypedDict):
|
43981
43794
|
cors_policy: NotRequired[pulumi.Input['URLMapDefaultRouteActionCorsPolicyArgsDict']]
|
@@ -45839,18 +45652,6 @@ if not MYPY:
|
|
45839
45652
|
"""
|
45840
45653
|
The name to which this PathMatcher is referred by the HostRule.
|
45841
45654
|
"""
|
45842
|
-
default_custom_error_response_policy: NotRequired[pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyArgsDict']]
|
45843
|
-
"""
|
45844
|
-
defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error.
|
45845
|
-
This policy takes effect at the PathMatcher level and applies only when no policy has been defined for the error code at lower levels like RouteRule and PathRule within this PathMatcher. If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
45846
|
-
For example, consider a UrlMap with the following configuration:
|
45847
|
-
UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors
|
45848
|
-
A RouteRule for /coming_soon/ is configured for the error code 404.
|
45849
|
-
If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
45850
|
-
When used in conjunction with pathMatcher.defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client.
|
45851
|
-
defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers.
|
45852
|
-
Structure is documented below.
|
45853
|
-
"""
|
45854
45655
|
default_route_action: NotRequired[pulumi.Input['URLMapPathMatcherDefaultRouteActionArgsDict']]
|
45855
45656
|
"""
|
45856
45657
|
defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs
|
@@ -45910,7 +45711,6 @@ elif False:
|
|
45910
45711
|
class URLMapPathMatcherArgs:
|
45911
45712
|
def __init__(__self__, *,
|
45912
45713
|
name: pulumi.Input[str],
|
45913
|
-
default_custom_error_response_policy: Optional[pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyArgs']] = None,
|
45914
45714
|
default_route_action: Optional[pulumi.Input['URLMapPathMatcherDefaultRouteActionArgs']] = None,
|
45915
45715
|
default_service: Optional[pulumi.Input[str]] = None,
|
45916
45716
|
default_url_redirect: Optional[pulumi.Input['URLMapPathMatcherDefaultUrlRedirectArgs']] = None,
|
@@ -45920,15 +45720,6 @@ class URLMapPathMatcherArgs:
|
|
45920
45720
|
route_rules: Optional[pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherRouteRuleArgs']]]] = None):
|
45921
45721
|
"""
|
45922
45722
|
:param pulumi.Input[str] name: The name to which this PathMatcher is referred by the HostRule.
|
45923
|
-
:param pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyArgs'] default_custom_error_response_policy: defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error.
|
45924
|
-
This policy takes effect at the PathMatcher level and applies only when no policy has been defined for the error code at lower levels like RouteRule and PathRule within this PathMatcher. If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
45925
|
-
For example, consider a UrlMap with the following configuration:
|
45926
|
-
UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors
|
45927
|
-
A RouteRule for /coming_soon/ is configured for the error code 404.
|
45928
|
-
If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
45929
|
-
When used in conjunction with pathMatcher.defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client.
|
45930
|
-
defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers.
|
45931
|
-
Structure is documented below.
|
45932
45723
|
:param pulumi.Input['URLMapPathMatcherDefaultRouteActionArgs'] default_route_action: defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs
|
45933
45724
|
advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request
|
45934
45725
|
to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set.
|
@@ -45962,8 +45753,6 @@ class URLMapPathMatcherArgs:
|
|
45962
45753
|
Structure is documented below.
|
45963
45754
|
"""
|
45964
45755
|
pulumi.set(__self__, "name", name)
|
45965
|
-
if default_custom_error_response_policy is not None:
|
45966
|
-
pulumi.set(__self__, "default_custom_error_response_policy", default_custom_error_response_policy)
|
45967
45756
|
if default_route_action is not None:
|
45968
45757
|
pulumi.set(__self__, "default_route_action", default_route_action)
|
45969
45758
|
if default_service is not None:
|
@@ -45991,26 +45780,6 @@ class URLMapPathMatcherArgs:
|
|
45991
45780
|
def name(self, value: pulumi.Input[str]):
|
45992
45781
|
pulumi.set(self, "name", value)
|
45993
45782
|
|
45994
|
-
@property
|
45995
|
-
@pulumi.getter(name="defaultCustomErrorResponsePolicy")
|
45996
|
-
def default_custom_error_response_policy(self) -> Optional[pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyArgs']]:
|
45997
|
-
"""
|
45998
|
-
defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error.
|
45999
|
-
This policy takes effect at the PathMatcher level and applies only when no policy has been defined for the error code at lower levels like RouteRule and PathRule within this PathMatcher. If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
46000
|
-
For example, consider a UrlMap with the following configuration:
|
46001
|
-
UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors
|
46002
|
-
A RouteRule for /coming_soon/ is configured for the error code 404.
|
46003
|
-
If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
46004
|
-
When used in conjunction with pathMatcher.defaultRouteAction.retryPolicy, retries take precedence. Only once all retries are exhausted, the defaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to the client.
|
46005
|
-
defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers.
|
46006
|
-
Structure is documented below.
|
46007
|
-
"""
|
46008
|
-
return pulumi.get(self, "default_custom_error_response_policy")
|
46009
|
-
|
46010
|
-
@default_custom_error_response_policy.setter
|
46011
|
-
def default_custom_error_response_policy(self, value: Optional[pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyArgs']]):
|
46012
|
-
pulumi.set(self, "default_custom_error_response_policy", value)
|
46013
|
-
|
46014
45783
|
@property
|
46015
45784
|
@pulumi.getter(name="defaultRouteAction")
|
46016
45785
|
def default_route_action(self) -> Optional[pulumi.Input['URLMapPathMatcherDefaultRouteActionArgs']]:
|
@@ -46120,181 +45889,6 @@ class URLMapPathMatcherArgs:
|
|
46120
45889
|
pulumi.set(self, "route_rules", value)
|
46121
45890
|
|
46122
45891
|
|
46123
|
-
if not MYPY:
|
46124
|
-
class URLMapPathMatcherDefaultCustomErrorResponsePolicyArgsDict(TypedDict):
|
46125
|
-
error_response_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgsDict']]]]
|
46126
|
-
"""
|
46127
|
-
Specifies rules for returning error responses.
|
46128
|
-
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
|
46129
|
-
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
|
46130
|
-
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
|
46131
|
-
Structure is documented below.
|
46132
|
-
"""
|
46133
|
-
error_service: NotRequired[pulumi.Input[str]]
|
46134
|
-
"""
|
46135
|
-
The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
|
46136
|
-
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
46137
|
-
compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
46138
|
-
global/backendBuckets/myBackendBucket
|
46139
|
-
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
|
46140
|
-
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
|
46141
|
-
"""
|
46142
|
-
elif False:
|
46143
|
-
URLMapPathMatcherDefaultCustomErrorResponsePolicyArgsDict: TypeAlias = Mapping[str, Any]
|
46144
|
-
|
46145
|
-
@pulumi.input_type
|
46146
|
-
class URLMapPathMatcherDefaultCustomErrorResponsePolicyArgs:
|
46147
|
-
def __init__(__self__, *,
|
46148
|
-
error_response_rules: Optional[pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgs']]]] = None,
|
46149
|
-
error_service: Optional[pulumi.Input[str]] = None):
|
46150
|
-
"""
|
46151
|
-
:param pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgs']]] error_response_rules: Specifies rules for returning error responses.
|
46152
|
-
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
|
46153
|
-
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
|
46154
|
-
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
|
46155
|
-
Structure is documented below.
|
46156
|
-
:param pulumi.Input[str] error_service: The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
|
46157
|
-
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
46158
|
-
compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
46159
|
-
global/backendBuckets/myBackendBucket
|
46160
|
-
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
|
46161
|
-
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
|
46162
|
-
"""
|
46163
|
-
if error_response_rules is not None:
|
46164
|
-
pulumi.set(__self__, "error_response_rules", error_response_rules)
|
46165
|
-
if error_service is not None:
|
46166
|
-
pulumi.set(__self__, "error_service", error_service)
|
46167
|
-
|
46168
|
-
@property
|
46169
|
-
@pulumi.getter(name="errorResponseRules")
|
46170
|
-
def error_response_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgs']]]]:
|
46171
|
-
"""
|
46172
|
-
Specifies rules for returning error responses.
|
46173
|
-
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
|
46174
|
-
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
|
46175
|
-
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
|
46176
|
-
Structure is documented below.
|
46177
|
-
"""
|
46178
|
-
return pulumi.get(self, "error_response_rules")
|
46179
|
-
|
46180
|
-
@error_response_rules.setter
|
46181
|
-
def error_response_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgs']]]]):
|
46182
|
-
pulumi.set(self, "error_response_rules", value)
|
46183
|
-
|
46184
|
-
@property
|
46185
|
-
@pulumi.getter(name="errorService")
|
46186
|
-
def error_service(self) -> Optional[pulumi.Input[str]]:
|
46187
|
-
"""
|
46188
|
-
The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
|
46189
|
-
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
46190
|
-
compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
46191
|
-
global/backendBuckets/myBackendBucket
|
46192
|
-
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
|
46193
|
-
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
|
46194
|
-
"""
|
46195
|
-
return pulumi.get(self, "error_service")
|
46196
|
-
|
46197
|
-
@error_service.setter
|
46198
|
-
def error_service(self, value: Optional[pulumi.Input[str]]):
|
46199
|
-
pulumi.set(self, "error_service", value)
|
46200
|
-
|
46201
|
-
|
46202
|
-
if not MYPY:
|
46203
|
-
class URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgsDict(TypedDict):
|
46204
|
-
match_response_codes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
46205
|
-
"""
|
46206
|
-
Valid values include:
|
46207
|
-
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
|
46208
|
-
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
|
46209
|
-
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
|
46210
|
-
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
|
46211
|
-
"""
|
46212
|
-
override_response_code: NotRequired[pulumi.Input[int]]
|
46213
|
-
"""
|
46214
|
-
The HTTP status code returned with the response containing the custom error content.
|
46215
|
-
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
|
46216
|
-
"""
|
46217
|
-
path: NotRequired[pulumi.Input[str]]
|
46218
|
-
"""
|
46219
|
-
The full path to a file within backendBucket. For example: /errors/defaultError.html
|
46220
|
-
path must start with a leading slash. path cannot have trailing slashes.
|
46221
|
-
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
|
46222
|
-
The value must be from 1 to 1024 characters.
|
46223
|
-
"""
|
46224
|
-
elif False:
|
46225
|
-
URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgsDict: TypeAlias = Mapping[str, Any]
|
46226
|
-
|
46227
|
-
@pulumi.input_type
|
46228
|
-
class URLMapPathMatcherDefaultCustomErrorResponsePolicyErrorResponseRuleArgs:
|
46229
|
-
def __init__(__self__, *,
|
46230
|
-
match_response_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
46231
|
-
override_response_code: Optional[pulumi.Input[int]] = None,
|
46232
|
-
path: Optional[pulumi.Input[str]] = None):
|
46233
|
-
"""
|
46234
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] match_response_codes: Valid values include:
|
46235
|
-
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
|
46236
|
-
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
|
46237
|
-
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
|
46238
|
-
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
|
46239
|
-
:param pulumi.Input[int] override_response_code: The HTTP status code returned with the response containing the custom error content.
|
46240
|
-
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
|
46241
|
-
:param pulumi.Input[str] path: The full path to a file within backendBucket. For example: /errors/defaultError.html
|
46242
|
-
path must start with a leading slash. path cannot have trailing slashes.
|
46243
|
-
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
|
46244
|
-
The value must be from 1 to 1024 characters.
|
46245
|
-
"""
|
46246
|
-
if match_response_codes is not None:
|
46247
|
-
pulumi.set(__self__, "match_response_codes", match_response_codes)
|
46248
|
-
if override_response_code is not None:
|
46249
|
-
pulumi.set(__self__, "override_response_code", override_response_code)
|
46250
|
-
if path is not None:
|
46251
|
-
pulumi.set(__self__, "path", path)
|
46252
|
-
|
46253
|
-
@property
|
46254
|
-
@pulumi.getter(name="matchResponseCodes")
|
46255
|
-
def match_response_codes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
46256
|
-
"""
|
46257
|
-
Valid values include:
|
46258
|
-
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
|
46259
|
-
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
|
46260
|
-
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
|
46261
|
-
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
|
46262
|
-
"""
|
46263
|
-
return pulumi.get(self, "match_response_codes")
|
46264
|
-
|
46265
|
-
@match_response_codes.setter
|
46266
|
-
def match_response_codes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
46267
|
-
pulumi.set(self, "match_response_codes", value)
|
46268
|
-
|
46269
|
-
@property
|
46270
|
-
@pulumi.getter(name="overrideResponseCode")
|
46271
|
-
def override_response_code(self) -> Optional[pulumi.Input[int]]:
|
46272
|
-
"""
|
46273
|
-
The HTTP status code returned with the response containing the custom error content.
|
46274
|
-
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
|
46275
|
-
"""
|
46276
|
-
return pulumi.get(self, "override_response_code")
|
46277
|
-
|
46278
|
-
@override_response_code.setter
|
46279
|
-
def override_response_code(self, value: Optional[pulumi.Input[int]]):
|
46280
|
-
pulumi.set(self, "override_response_code", value)
|
46281
|
-
|
46282
|
-
@property
|
46283
|
-
@pulumi.getter
|
46284
|
-
def path(self) -> Optional[pulumi.Input[str]]:
|
46285
|
-
"""
|
46286
|
-
The full path to a file within backendBucket. For example: /errors/defaultError.html
|
46287
|
-
path must start with a leading slash. path cannot have trailing slashes.
|
46288
|
-
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
|
46289
|
-
The value must be from 1 to 1024 characters.
|
46290
|
-
"""
|
46291
|
-
return pulumi.get(self, "path")
|
46292
|
-
|
46293
|
-
@path.setter
|
46294
|
-
def path(self, value: Optional[pulumi.Input[str]]):
|
46295
|
-
pulumi.set(self, "path", value)
|
46296
|
-
|
46297
|
-
|
46298
45892
|
if not MYPY:
|
46299
45893
|
class URLMapPathMatcherDefaultRouteActionArgsDict(TypedDict):
|
46300
45894
|
cors_policy: NotRequired[pulumi.Input['URLMapPathMatcherDefaultRouteActionCorsPolicyArgsDict']]
|
@@ -48079,17 +47673,6 @@ if not MYPY:
|
|
48079
47673
|
does not include any text after the first ? or #, and those chars are not
|
48080
47674
|
allowed here.
|
48081
47675
|
"""
|
48082
|
-
custom_error_response_policy: NotRequired[pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgsDict']]
|
48083
|
-
"""
|
48084
|
-
customErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error.
|
48085
|
-
If a policy for an error code is not configured for the PathRule, a policy for the error code configured in pathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified in pathMatcher.defaultCustomErrorResponsePolicy, the policy configured in UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
48086
|
-
For example, consider a UrlMap with the following configuration:
|
48087
|
-
UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx errors
|
48088
|
-
A PathRule for /coming_soon/ is configured for the error code 404.
|
48089
|
-
If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
48090
|
-
customErrorResponsePolicy is supported only for global external Application Load Balancers.
|
48091
|
-
Structure is documented below.
|
48092
|
-
"""
|
48093
47676
|
route_action: NotRequired[pulumi.Input['URLMapPathMatcherPathRuleRouteActionArgsDict']]
|
48094
47677
|
"""
|
48095
47678
|
In response to a matching path, the load balancer performs advanced routing
|
@@ -48118,7 +47701,6 @@ elif False:
|
|
48118
47701
|
class URLMapPathMatcherPathRuleArgs:
|
48119
47702
|
def __init__(__self__, *,
|
48120
47703
|
paths: pulumi.Input[Sequence[pulumi.Input[str]]],
|
48121
|
-
custom_error_response_policy: Optional[pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgs']] = None,
|
48122
47704
|
route_action: Optional[pulumi.Input['URLMapPathMatcherPathRuleRouteActionArgs']] = None,
|
48123
47705
|
service: Optional[pulumi.Input[str]] = None,
|
48124
47706
|
url_redirect: Optional[pulumi.Input['URLMapPathMatcherPathRuleUrlRedirectArgs']] = None):
|
@@ -48127,14 +47709,6 @@ class URLMapPathMatcherPathRuleArgs:
|
|
48127
47709
|
\\* is allowed is at the end following a /. The string fed to the path matcher
|
48128
47710
|
does not include any text after the first ? or #, and those chars are not
|
48129
47711
|
allowed here.
|
48130
|
-
:param pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgs'] custom_error_response_policy: customErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error.
|
48131
|
-
If a policy for an error code is not configured for the PathRule, a policy for the error code configured in pathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified in pathMatcher.defaultCustomErrorResponsePolicy, the policy configured in UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
48132
|
-
For example, consider a UrlMap with the following configuration:
|
48133
|
-
UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx errors
|
48134
|
-
A PathRule for /coming_soon/ is configured for the error code 404.
|
48135
|
-
If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
48136
|
-
customErrorResponsePolicy is supported only for global external Application Load Balancers.
|
48137
|
-
Structure is documented below.
|
48138
47712
|
:param pulumi.Input['URLMapPathMatcherPathRuleRouteActionArgs'] route_action: In response to a matching path, the load balancer performs advanced routing
|
48139
47713
|
actions like URL rewrites, header transformations, etc. prior to forwarding the
|
48140
47714
|
request to the selected backend. If routeAction specifies any
|
@@ -48149,8 +47723,6 @@ class URLMapPathMatcherPathRuleArgs:
|
|
48149
47723
|
Structure is documented below.
|
48150
47724
|
"""
|
48151
47725
|
pulumi.set(__self__, "paths", paths)
|
48152
|
-
if custom_error_response_policy is not None:
|
48153
|
-
pulumi.set(__self__, "custom_error_response_policy", custom_error_response_policy)
|
48154
47726
|
if route_action is not None:
|
48155
47727
|
pulumi.set(__self__, "route_action", route_action)
|
48156
47728
|
if service is not None:
|
@@ -48173,25 +47745,6 @@ class URLMapPathMatcherPathRuleArgs:
|
|
48173
47745
|
def paths(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
48174
47746
|
pulumi.set(self, "paths", value)
|
48175
47747
|
|
48176
|
-
@property
|
48177
|
-
@pulumi.getter(name="customErrorResponsePolicy")
|
48178
|
-
def custom_error_response_policy(self) -> Optional[pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgs']]:
|
48179
|
-
"""
|
48180
|
-
customErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error.
|
48181
|
-
If a policy for an error code is not configured for the PathRule, a policy for the error code configured in pathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified in pathMatcher.defaultCustomErrorResponsePolicy, the policy configured in UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
48182
|
-
For example, consider a UrlMap with the following configuration:
|
48183
|
-
UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx errors
|
48184
|
-
A PathRule for /coming_soon/ is configured for the error code 404.
|
48185
|
-
If the request is for www.myotherdomain.com and a 404 is encountered, the policy under UrlMap.defaultCustomErrorResponsePolicy takes effect. If a 404 response is encountered for the request www.example.com/current_events/, the pathMatcher's policy takes effect. If however, the request for www.example.com/coming_soon/ encounters a 404, the policy in PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example encounter a 500 error code, the policy at UrlMap.defaultCustomErrorResponsePolicy takes effect.
|
48186
|
-
customErrorResponsePolicy is supported only for global external Application Load Balancers.
|
48187
|
-
Structure is documented below.
|
48188
|
-
"""
|
48189
|
-
return pulumi.get(self, "custom_error_response_policy")
|
48190
|
-
|
48191
|
-
@custom_error_response_policy.setter
|
48192
|
-
def custom_error_response_policy(self, value: Optional[pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgs']]):
|
48193
|
-
pulumi.set(self, "custom_error_response_policy", value)
|
48194
|
-
|
48195
47748
|
@property
|
48196
47749
|
@pulumi.getter(name="routeAction")
|
48197
47750
|
def route_action(self) -> Optional[pulumi.Input['URLMapPathMatcherPathRuleRouteActionArgs']]:
|
@@ -48238,181 +47791,6 @@ class URLMapPathMatcherPathRuleArgs:
|
|
48238
47791
|
pulumi.set(self, "url_redirect", value)
|
48239
47792
|
|
48240
47793
|
|
48241
|
-
if not MYPY:
|
48242
|
-
class URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgsDict(TypedDict):
|
48243
|
-
error_response_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgsDict']]]]
|
48244
|
-
"""
|
48245
|
-
Specifies rules for returning error responses.
|
48246
|
-
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
|
48247
|
-
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
|
48248
|
-
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
|
48249
|
-
Structure is documented below.
|
48250
|
-
"""
|
48251
|
-
error_service: NotRequired[pulumi.Input[str]]
|
48252
|
-
"""
|
48253
|
-
The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
|
48254
|
-
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
48255
|
-
compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
48256
|
-
global/backendBuckets/myBackendBucket
|
48257
|
-
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
|
48258
|
-
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
|
48259
|
-
"""
|
48260
|
-
elif False:
|
48261
|
-
URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgsDict: TypeAlias = Mapping[str, Any]
|
48262
|
-
|
48263
|
-
@pulumi.input_type
|
48264
|
-
class URLMapPathMatcherPathRuleCustomErrorResponsePolicyArgs:
|
48265
|
-
def __init__(__self__, *,
|
48266
|
-
error_response_rules: Optional[pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgs']]]] = None,
|
48267
|
-
error_service: Optional[pulumi.Input[str]] = None):
|
48268
|
-
"""
|
48269
|
-
:param pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgs']]] error_response_rules: Specifies rules for returning error responses.
|
48270
|
-
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
|
48271
|
-
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
|
48272
|
-
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
|
48273
|
-
Structure is documented below.
|
48274
|
-
:param pulumi.Input[str] error_service: The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
|
48275
|
-
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
48276
|
-
compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
48277
|
-
global/backendBuckets/myBackendBucket
|
48278
|
-
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
|
48279
|
-
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
|
48280
|
-
"""
|
48281
|
-
if error_response_rules is not None:
|
48282
|
-
pulumi.set(__self__, "error_response_rules", error_response_rules)
|
48283
|
-
if error_service is not None:
|
48284
|
-
pulumi.set(__self__, "error_service", error_service)
|
48285
|
-
|
48286
|
-
@property
|
48287
|
-
@pulumi.getter(name="errorResponseRules")
|
48288
|
-
def error_response_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgs']]]]:
|
48289
|
-
"""
|
48290
|
-
Specifies rules for returning error responses.
|
48291
|
-
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
|
48292
|
-
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
|
48293
|
-
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
|
48294
|
-
Structure is documented below.
|
48295
|
-
"""
|
48296
|
-
return pulumi.get(self, "error_response_rules")
|
48297
|
-
|
48298
|
-
@error_response_rules.setter
|
48299
|
-
def error_response_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgs']]]]):
|
48300
|
-
pulumi.set(self, "error_response_rules", value)
|
48301
|
-
|
48302
|
-
@property
|
48303
|
-
@pulumi.getter(name="errorService")
|
48304
|
-
def error_service(self) -> Optional[pulumi.Input[str]]:
|
48305
|
-
"""
|
48306
|
-
The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
|
48307
|
-
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
48308
|
-
compute/v1/projects/project/global/backendBuckets/myBackendBucket
|
48309
|
-
global/backendBuckets/myBackendBucket
|
48310
|
-
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
|
48311
|
-
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
|
48312
|
-
"""
|
48313
|
-
return pulumi.get(self, "error_service")
|
48314
|
-
|
48315
|
-
@error_service.setter
|
48316
|
-
def error_service(self, value: Optional[pulumi.Input[str]]):
|
48317
|
-
pulumi.set(self, "error_service", value)
|
48318
|
-
|
48319
|
-
|
48320
|
-
if not MYPY:
|
48321
|
-
class URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgsDict(TypedDict):
|
48322
|
-
match_response_codes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
48323
|
-
"""
|
48324
|
-
Valid values include:
|
48325
|
-
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
|
48326
|
-
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
|
48327
|
-
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
|
48328
|
-
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
|
48329
|
-
"""
|
48330
|
-
override_response_code: NotRequired[pulumi.Input[int]]
|
48331
|
-
"""
|
48332
|
-
The HTTP status code returned with the response containing the custom error content.
|
48333
|
-
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
|
48334
|
-
"""
|
48335
|
-
path: NotRequired[pulumi.Input[str]]
|
48336
|
-
"""
|
48337
|
-
The full path to a file within backendBucket. For example: /errors/defaultError.html
|
48338
|
-
path must start with a leading slash. path cannot have trailing slashes.
|
48339
|
-
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
|
48340
|
-
The value must be from 1 to 1024 characters.
|
48341
|
-
"""
|
48342
|
-
elif False:
|
48343
|
-
URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgsDict: TypeAlias = Mapping[str, Any]
|
48344
|
-
|
48345
|
-
@pulumi.input_type
|
48346
|
-
class URLMapPathMatcherPathRuleCustomErrorResponsePolicyErrorResponseRuleArgs:
|
48347
|
-
def __init__(__self__, *,
|
48348
|
-
match_response_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
48349
|
-
override_response_code: Optional[pulumi.Input[int]] = None,
|
48350
|
-
path: Optional[pulumi.Input[str]] = None):
|
48351
|
-
"""
|
48352
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] match_response_codes: Valid values include:
|
48353
|
-
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
|
48354
|
-
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
|
48355
|
-
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
|
48356
|
-
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
|
48357
|
-
:param pulumi.Input[int] override_response_code: The HTTP status code returned with the response containing the custom error content.
|
48358
|
-
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
|
48359
|
-
:param pulumi.Input[str] path: The full path to a file within backendBucket. For example: /errors/defaultError.html
|
48360
|
-
path must start with a leading slash. path cannot have trailing slashes.
|
48361
|
-
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
|
48362
|
-
The value must be from 1 to 1024 characters.
|
48363
|
-
"""
|
48364
|
-
if match_response_codes is not None:
|
48365
|
-
pulumi.set(__self__, "match_response_codes", match_response_codes)
|
48366
|
-
if override_response_code is not None:
|
48367
|
-
pulumi.set(__self__, "override_response_code", override_response_code)
|
48368
|
-
if path is not None:
|
48369
|
-
pulumi.set(__self__, "path", path)
|
48370
|
-
|
48371
|
-
@property
|
48372
|
-
@pulumi.getter(name="matchResponseCodes")
|
48373
|
-
def match_response_codes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
48374
|
-
"""
|
48375
|
-
Valid values include:
|
48376
|
-
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
|
48377
|
-
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
|
48378
|
-
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
|
48379
|
-
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
|
48380
|
-
"""
|
48381
|
-
return pulumi.get(self, "match_response_codes")
|
48382
|
-
|
48383
|
-
@match_response_codes.setter
|
48384
|
-
def match_response_codes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
48385
|
-
pulumi.set(self, "match_response_codes", value)
|
48386
|
-
|
48387
|
-
@property
|
48388
|
-
@pulumi.getter(name="overrideResponseCode")
|
48389
|
-
def override_response_code(self) -> Optional[pulumi.Input[int]]:
|
48390
|
-
"""
|
48391
|
-
The HTTP status code returned with the response containing the custom error content.
|
48392
|
-
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
|
48393
|
-
"""
|
48394
|
-
return pulumi.get(self, "override_response_code")
|
48395
|
-
|
48396
|
-
@override_response_code.setter
|
48397
|
-
def override_response_code(self, value: Optional[pulumi.Input[int]]):
|
48398
|
-
pulumi.set(self, "override_response_code", value)
|
48399
|
-
|
48400
|
-
@property
|
48401
|
-
@pulumi.getter
|
48402
|
-
def path(self) -> Optional[pulumi.Input[str]]:
|
48403
|
-
"""
|
48404
|
-
The full path to a file within backendBucket. For example: /errors/defaultError.html
|
48405
|
-
path must start with a leading slash. path cannot have trailing slashes.
|
48406
|
-
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
|
48407
|
-
The value must be from 1 to 1024 characters.
|
48408
|
-
"""
|
48409
|
-
return pulumi.get(self, "path")
|
48410
|
-
|
48411
|
-
@path.setter
|
48412
|
-
def path(self, value: Optional[pulumi.Input[str]]):
|
48413
|
-
pulumi.set(self, "path", value)
|
48414
|
-
|
48415
|
-
|
48416
47794
|
if not MYPY:
|
48417
47795
|
class URLMapPathMatcherPathRuleRouteActionArgsDict(TypedDict):
|
48418
47796
|
cors_policy: NotRequired[pulumi.Input['URLMapPathMatcherPathRuleRouteActionCorsPolicyArgsDict']]
|