/
regionUrlMap.go
280 lines (239 loc) · 27.8 KB
/
regionUrlMap.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package beta
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Creates a UrlMap resource in the specified project using the data included in the request.
type RegionUrlMap struct {
pulumi.CustomResourceState
// Creation timestamp in RFC3339 text format.
CreationTimestamp pulumi.StringOutput `pulumi:"creationTimestamp"`
// defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the load balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with 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. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers.
DefaultCustomErrorResponsePolicy CustomErrorResponsePolicyResponseOutput `pulumi:"defaultCustomErrorResponsePolicy"`
// defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
DefaultRouteAction HttpRouteActionResponseOutput `pulumi:"defaultRouteAction"`
// The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
DefaultService pulumi.StringOutput `pulumi:"defaultService"`
// When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
DefaultUrlRedirect HttpRedirectActionResponseOutput `pulumi:"defaultUrlRedirect"`
// An optional description of this resource. Provide this property when you create the resource.
Description pulumi.StringOutput `pulumi:"description"`
// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
Fingerprint pulumi.StringOutput `pulumi:"fingerprint"`
// Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
HeaderAction HttpHeaderActionResponseOutput `pulumi:"headerAction"`
// The list of host rules to use against the URL.
HostRules HostRuleResponseArrayOutput `pulumi:"hostRules"`
// Type of the resource. Always compute#urlMaps for url maps.
Kind pulumi.StringOutput `pulumi:"kind"`
// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Name pulumi.StringOutput `pulumi:"name"`
// The list of named PathMatchers to use against the URL.
PathMatchers PathMatcherResponseArrayOutput `pulumi:"pathMatchers"`
Project pulumi.StringOutput `pulumi:"project"`
Region pulumi.StringOutput `pulumi:"region"`
// begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
RequestId pulumi.StringPtrOutput `pulumi:"requestId"`
// Server-defined URL for the resource.
SelfLink pulumi.StringOutput `pulumi:"selfLink"`
// The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
Tests UrlMapTestResponseArrayOutput `pulumi:"tests"`
}
// NewRegionUrlMap registers a new resource with the given unique name, arguments, and options.
func NewRegionUrlMap(ctx *pulumi.Context,
name string, args *RegionUrlMapArgs, opts ...pulumi.ResourceOption) (*RegionUrlMap, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Region == nil {
return nil, errors.New("invalid value for required argument 'Region'")
}
replaceOnChanges := pulumi.ReplaceOnChanges([]string{
"project",
"region",
})
opts = append(opts, replaceOnChanges)
opts = internal.PkgResourceDefaultOpts(opts)
var resource RegionUrlMap
err := ctx.RegisterResource("google-native:compute/beta:RegionUrlMap", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetRegionUrlMap gets an existing RegionUrlMap resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetRegionUrlMap(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *RegionUrlMapState, opts ...pulumi.ResourceOption) (*RegionUrlMap, error) {
var resource RegionUrlMap
err := ctx.ReadResource("google-native:compute/beta:RegionUrlMap", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering RegionUrlMap resources.
type regionUrlMapState struct {
}
type RegionUrlMapState struct {
}
func (RegionUrlMapState) ElementType() reflect.Type {
return reflect.TypeOf((*regionUrlMapState)(nil)).Elem()
}
type regionUrlMapArgs struct {
// defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the load balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with 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. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers.
DefaultCustomErrorResponsePolicy *CustomErrorResponsePolicy `pulumi:"defaultCustomErrorResponsePolicy"`
// defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
DefaultRouteAction *HttpRouteAction `pulumi:"defaultRouteAction"`
// The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
DefaultService *string `pulumi:"defaultService"`
// When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
DefaultUrlRedirect *HttpRedirectAction `pulumi:"defaultUrlRedirect"`
// An optional description of this resource. Provide this property when you create the resource.
Description *string `pulumi:"description"`
// Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
HeaderAction *HttpHeaderAction `pulumi:"headerAction"`
// The list of host rules to use against the URL.
HostRules []HostRule `pulumi:"hostRules"`
// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Name *string `pulumi:"name"`
// The list of named PathMatchers to use against the URL.
PathMatchers []PathMatcher `pulumi:"pathMatchers"`
Project *string `pulumi:"project"`
Region string `pulumi:"region"`
// begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
RequestId *string `pulumi:"requestId"`
// The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
Tests []UrlMapTest `pulumi:"tests"`
}
// The set of arguments for constructing a RegionUrlMap resource.
type RegionUrlMapArgs struct {
// defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the load balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with 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. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers.
DefaultCustomErrorResponsePolicy CustomErrorResponsePolicyPtrInput
// defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
DefaultRouteAction HttpRouteActionPtrInput
// The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
DefaultService pulumi.StringPtrInput
// When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
DefaultUrlRedirect HttpRedirectActionPtrInput
// An optional description of this resource. Provide this property when you create the resource.
Description pulumi.StringPtrInput
// Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
HeaderAction HttpHeaderActionPtrInput
// The list of host rules to use against the URL.
HostRules HostRuleArrayInput
// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Name pulumi.StringPtrInput
// The list of named PathMatchers to use against the URL.
PathMatchers PathMatcherArrayInput
Project pulumi.StringPtrInput
Region pulumi.StringInput
// begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
RequestId pulumi.StringPtrInput
// The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
Tests UrlMapTestArrayInput
}
func (RegionUrlMapArgs) ElementType() reflect.Type {
return reflect.TypeOf((*regionUrlMapArgs)(nil)).Elem()
}
type RegionUrlMapInput interface {
pulumi.Input
ToRegionUrlMapOutput() RegionUrlMapOutput
ToRegionUrlMapOutputWithContext(ctx context.Context) RegionUrlMapOutput
}
func (*RegionUrlMap) ElementType() reflect.Type {
return reflect.TypeOf((**RegionUrlMap)(nil)).Elem()
}
func (i *RegionUrlMap) ToRegionUrlMapOutput() RegionUrlMapOutput {
return i.ToRegionUrlMapOutputWithContext(context.Background())
}
func (i *RegionUrlMap) ToRegionUrlMapOutputWithContext(ctx context.Context) RegionUrlMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(RegionUrlMapOutput)
}
type RegionUrlMapOutput struct{ *pulumi.OutputState }
func (RegionUrlMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((**RegionUrlMap)(nil)).Elem()
}
func (o RegionUrlMapOutput) ToRegionUrlMapOutput() RegionUrlMapOutput {
return o
}
func (o RegionUrlMapOutput) ToRegionUrlMapOutputWithContext(ctx context.Context) RegionUrlMapOutput {
return o
}
// Creation timestamp in RFC3339 text format.
func (o RegionUrlMapOutput) CreationTimestamp() pulumi.StringOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringOutput { return v.CreationTimestamp }).(pulumi.StringOutput)
}
// defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendServiceor BackendBucket responds with an error. This policy takes effect at the load balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration: - defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. If a request for http://www.example.com/ encounters a 404, the policy in pathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for http://www.example.com/ encounters a 502, the policy in UrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in *.example.com such as http://www.myotherexample.com/, encounters a 404, UrlMap.defaultCustomErrorResponsePolicy takes effect. When used in conjunction with 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. defaultCustomErrorResponsePolicy is supported only for global external Application Load Balancers.
func (o RegionUrlMapOutput) DefaultCustomErrorResponsePolicy() CustomErrorResponsePolicyResponseOutput {
return o.ApplyT(func(v *RegionUrlMap) CustomErrorResponsePolicyResponseOutput {
return v.DefaultCustomErrorResponsePolicy
}).(CustomErrorResponsePolicyResponseOutput)
}
// defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for classic Application Load Balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
func (o RegionUrlMapOutput) DefaultRouteAction() HttpRouteActionResponseOutput {
return o.ApplyT(func(v *RegionUrlMap) HttpRouteActionResponseOutput { return v.DefaultRouteAction }).(HttpRouteActionResponseOutput)
}
// The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
func (o RegionUrlMapOutput) DefaultService() pulumi.StringOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringOutput { return v.DefaultService }).(pulumi.StringOutput)
}
// When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
func (o RegionUrlMapOutput) DefaultUrlRedirect() HttpRedirectActionResponseOutput {
return o.ApplyT(func(v *RegionUrlMap) HttpRedirectActionResponseOutput { return v.DefaultUrlRedirect }).(HttpRedirectActionResponseOutput)
}
// An optional description of this resource. Provide this property when you create the resource.
func (o RegionUrlMapOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
func (o RegionUrlMapOutput) Fingerprint() pulumi.StringOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringOutput { return v.Fingerprint }).(pulumi.StringOutput)
}
// Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
func (o RegionUrlMapOutput) HeaderAction() HttpHeaderActionResponseOutput {
return o.ApplyT(func(v *RegionUrlMap) HttpHeaderActionResponseOutput { return v.HeaderAction }).(HttpHeaderActionResponseOutput)
}
// The list of host rules to use against the URL.
func (o RegionUrlMapOutput) HostRules() HostRuleResponseArrayOutput {
return o.ApplyT(func(v *RegionUrlMap) HostRuleResponseArrayOutput { return v.HostRules }).(HostRuleResponseArrayOutput)
}
// Type of the resource. Always compute#urlMaps for url maps.
func (o RegionUrlMapOutput) Kind() pulumi.StringOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringOutput { return v.Kind }).(pulumi.StringOutput)
}
// Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
func (o RegionUrlMapOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The list of named PathMatchers to use against the URL.
func (o RegionUrlMapOutput) PathMatchers() PathMatcherResponseArrayOutput {
return o.ApplyT(func(v *RegionUrlMap) PathMatcherResponseArrayOutput { return v.PathMatchers }).(PathMatcherResponseArrayOutput)
}
func (o RegionUrlMapOutput) Project() pulumi.StringOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput)
}
func (o RegionUrlMapOutput) Region() pulumi.StringOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringOutput { return v.Region }).(pulumi.StringOutput)
}
// begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
func (o RegionUrlMapOutput) RequestId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringPtrOutput { return v.RequestId }).(pulumi.StringPtrOutput)
}
// Server-defined URL for the resource.
func (o RegionUrlMapOutput) SelfLink() pulumi.StringOutput {
return o.ApplyT(func(v *RegionUrlMap) pulumi.StringOutput { return v.SelfLink }).(pulumi.StringOutput)
}
// The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
func (o RegionUrlMapOutput) Tests() UrlMapTestResponseArrayOutput {
return o.ApplyT(func(v *RegionUrlMap) UrlMapTestResponseArrayOutput { return v.Tests }).(UrlMapTestResponseArrayOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*RegionUrlMapInput)(nil)).Elem(), &RegionUrlMap{})
pulumi.RegisterOutputType(RegionUrlMapOutput{})
}