yandex.AlbVirtualHost
Explore with Pulumi AI
Creates a virtual host that belongs to specified HTTP router and adds the specified routes to it. For more information, see the official documentation.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var my_virtual_host = new Yandex.AlbVirtualHost("my-virtual-host", new Yandex.AlbVirtualHostArgs
{
HttpRouterId = yandex_alb_http_router.My_router.Id,
Routes =
{
new Yandex.Inputs.AlbVirtualHostRouteArgs
{
Name = "my-route",
HttpRoute = new Yandex.Inputs.AlbVirtualHostRouteHttpRouteArgs
{
HttpRouteAction = new Yandex.Inputs.AlbVirtualHostRouteHttpRouteHttpRouteActionArgs
{
BackendGroupId = yandex_alb_backend_group.My_bg.Id,
Timeout = "3s",
},
},
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := yandex.NewAlbVirtualHost(ctx, "my-virtual-host", &yandex.AlbVirtualHostArgs{
HttpRouterId: pulumi.Any(yandex_alb_http_router.My - router.Id),
Routes: AlbVirtualHostRouteArray{
&AlbVirtualHostRouteArgs{
Name: pulumi.String("my-route"),
HttpRoute: &AlbVirtualHostRouteHttpRouteArgs{
HttpRouteAction: &AlbVirtualHostRouteHttpRouteHttpRouteActionArgs{
BackendGroupId: pulumi.Any(yandex_alb_backend_group.My - bg.Id),
Timeout: pulumi.String("3s"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
my_virtual_host = yandex.AlbVirtualHost("my-virtual-host",
http_router_id=yandex_alb_http_router["my-router"]["id"],
routes=[yandex.AlbVirtualHostRouteArgs(
name="my-route",
http_route=yandex.AlbVirtualHostRouteHttpRouteArgs(
http_route_action=yandex.AlbVirtualHostRouteHttpRouteHttpRouteActionArgs(
backend_group_id=yandex_alb_backend_group["my-bg"]["id"],
timeout="3s",
),
),
)])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const my_virtual_host = new yandex.AlbVirtualHost("my-virtual-host", {
httpRouterId: yandex_alb_http_router["my-router"].id,
routes: [{
name: "my-route",
httpRoute: {
httpRouteAction: {
backendGroupId: yandex_alb_backend_group["my-bg"].id,
timeout: "3s",
},
},
}],
});
Coming soon!
Create AlbVirtualHost Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlbVirtualHost(name: string, args: AlbVirtualHostArgs, opts?: CustomResourceOptions);
@overload
def AlbVirtualHost(resource_name: str,
args: AlbVirtualHostArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlbVirtualHost(resource_name: str,
opts: Optional[ResourceOptions] = None,
http_router_id: Optional[str] = None,
authorities: Optional[Sequence[str]] = None,
modify_request_headers: Optional[Sequence[AlbVirtualHostModifyRequestHeaderArgs]] = None,
modify_response_headers: Optional[Sequence[AlbVirtualHostModifyResponseHeaderArgs]] = None,
name: Optional[str] = None,
routes: Optional[Sequence[AlbVirtualHostRouteArgs]] = None)
func NewAlbVirtualHost(ctx *Context, name string, args AlbVirtualHostArgs, opts ...ResourceOption) (*AlbVirtualHost, error)
public AlbVirtualHost(string name, AlbVirtualHostArgs args, CustomResourceOptions? opts = null)
public AlbVirtualHost(String name, AlbVirtualHostArgs args)
public AlbVirtualHost(String name, AlbVirtualHostArgs args, CustomResourceOptions options)
type: yandex:AlbVirtualHost
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AlbVirtualHostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AlbVirtualHostArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlbVirtualHostArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlbVirtualHostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlbVirtualHostArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var albVirtualHostResource = new Yandex.AlbVirtualHost("albVirtualHostResource", new()
{
HttpRouterId = "string",
Authorities = new[]
{
"string",
},
ModifyRequestHeaders = new[]
{
new Yandex.Inputs.AlbVirtualHostModifyRequestHeaderArgs
{
Name = "string",
Append = "string",
Remove = false,
Replace = "string",
},
},
ModifyResponseHeaders = new[]
{
new Yandex.Inputs.AlbVirtualHostModifyResponseHeaderArgs
{
Name = "string",
Append = "string",
Remove = false,
Replace = "string",
},
},
Name = "string",
Routes = new[]
{
new Yandex.Inputs.AlbVirtualHostRouteArgs
{
GrpcRoute = new Yandex.Inputs.AlbVirtualHostRouteGrpcRouteArgs
{
GrpcMatches = new[]
{
new Yandex.Inputs.AlbVirtualHostRouteGrpcRouteGrpcMatchArgs
{
Fqmn = new Yandex.Inputs.AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs
{
Exact = "string",
Prefix = "string",
},
},
},
GrpcRouteAction = new Yandex.Inputs.AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs
{
BackendGroupId = "string",
AutoHostRewrite = false,
HostRewrite = "string",
IdleTimeout = "string",
MaxTimeout = "string",
},
GrpcStatusResponseAction = new Yandex.Inputs.AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs
{
Status = "string",
},
},
HttpRoute = new Yandex.Inputs.AlbVirtualHostRouteHttpRouteArgs
{
DirectResponseAction = new Yandex.Inputs.AlbVirtualHostRouteHttpRouteDirectResponseActionArgs
{
Body = "string",
Status = 0,
},
HttpMatches = new[]
{
new Yandex.Inputs.AlbVirtualHostRouteHttpRouteHttpMatchArgs
{
HttpMethods = new[]
{
"string",
},
Path = new Yandex.Inputs.AlbVirtualHostRouteHttpRouteHttpMatchPathArgs
{
Exact = "string",
Prefix = "string",
},
},
},
HttpRouteAction = new Yandex.Inputs.AlbVirtualHostRouteHttpRouteHttpRouteActionArgs
{
BackendGroupId = "string",
AutoHostRewrite = false,
HostRewrite = "string",
IdleTimeout = "string",
PrefixRewrite = "string",
Timeout = "string",
UpgradeTypes = new[]
{
"string",
},
},
RedirectAction = new Yandex.Inputs.AlbVirtualHostRouteHttpRouteRedirectActionArgs
{
RemoveQuery = false,
ReplaceHost = "string",
ReplacePath = "string",
ReplacePort = 0,
ReplacePrefix = "string",
ReplaceScheme = "string",
ResponseCode = "string",
},
},
Name = "string",
},
},
});
example, err := yandex.NewAlbVirtualHost(ctx, "albVirtualHostResource", &yandex.AlbVirtualHostArgs{
HttpRouterId: pulumi.String("string"),
Authorities: pulumi.StringArray{
pulumi.String("string"),
},
ModifyRequestHeaders: yandex.AlbVirtualHostModifyRequestHeaderArray{
&yandex.AlbVirtualHostModifyRequestHeaderArgs{
Name: pulumi.String("string"),
Append: pulumi.String("string"),
Remove: pulumi.Bool(false),
Replace: pulumi.String("string"),
},
},
ModifyResponseHeaders: yandex.AlbVirtualHostModifyResponseHeaderArray{
&yandex.AlbVirtualHostModifyResponseHeaderArgs{
Name: pulumi.String("string"),
Append: pulumi.String("string"),
Remove: pulumi.Bool(false),
Replace: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Routes: yandex.AlbVirtualHostRouteArray{
&yandex.AlbVirtualHostRouteArgs{
GrpcRoute: &yandex.AlbVirtualHostRouteGrpcRouteArgs{
GrpcMatches: yandex.AlbVirtualHostRouteGrpcRouteGrpcMatchArray{
&yandex.AlbVirtualHostRouteGrpcRouteGrpcMatchArgs{
Fqmn: &yandex.AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs{
Exact: pulumi.String("string"),
Prefix: pulumi.String("string"),
},
},
},
GrpcRouteAction: &yandex.AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs{
BackendGroupId: pulumi.String("string"),
AutoHostRewrite: pulumi.Bool(false),
HostRewrite: pulumi.String("string"),
IdleTimeout: pulumi.String("string"),
MaxTimeout: pulumi.String("string"),
},
GrpcStatusResponseAction: &yandex.AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs{
Status: pulumi.String("string"),
},
},
HttpRoute: &yandex.AlbVirtualHostRouteHttpRouteArgs{
DirectResponseAction: &yandex.AlbVirtualHostRouteHttpRouteDirectResponseActionArgs{
Body: pulumi.String("string"),
Status: pulumi.Int(0),
},
HttpMatches: yandex.AlbVirtualHostRouteHttpRouteHttpMatchArray{
&yandex.AlbVirtualHostRouteHttpRouteHttpMatchArgs{
HttpMethods: pulumi.StringArray{
pulumi.String("string"),
},
Path: &yandex.AlbVirtualHostRouteHttpRouteHttpMatchPathArgs{
Exact: pulumi.String("string"),
Prefix: pulumi.String("string"),
},
},
},
HttpRouteAction: &yandex.AlbVirtualHostRouteHttpRouteHttpRouteActionArgs{
BackendGroupId: pulumi.String("string"),
AutoHostRewrite: pulumi.Bool(false),
HostRewrite: pulumi.String("string"),
IdleTimeout: pulumi.String("string"),
PrefixRewrite: pulumi.String("string"),
Timeout: pulumi.String("string"),
UpgradeTypes: pulumi.StringArray{
pulumi.String("string"),
},
},
RedirectAction: &yandex.AlbVirtualHostRouteHttpRouteRedirectActionArgs{
RemoveQuery: pulumi.Bool(false),
ReplaceHost: pulumi.String("string"),
ReplacePath: pulumi.String("string"),
ReplacePort: pulumi.Int(0),
ReplacePrefix: pulumi.String("string"),
ReplaceScheme: pulumi.String("string"),
ResponseCode: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
},
},
})
var albVirtualHostResource = new AlbVirtualHost("albVirtualHostResource", AlbVirtualHostArgs.builder()
.httpRouterId("string")
.authorities("string")
.modifyRequestHeaders(AlbVirtualHostModifyRequestHeaderArgs.builder()
.name("string")
.append("string")
.remove(false)
.replace("string")
.build())
.modifyResponseHeaders(AlbVirtualHostModifyResponseHeaderArgs.builder()
.name("string")
.append("string")
.remove(false)
.replace("string")
.build())
.name("string")
.routes(AlbVirtualHostRouteArgs.builder()
.grpcRoute(AlbVirtualHostRouteGrpcRouteArgs.builder()
.grpcMatches(AlbVirtualHostRouteGrpcRouteGrpcMatchArgs.builder()
.fqmn(AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs.builder()
.exact("string")
.prefix("string")
.build())
.build())
.grpcRouteAction(AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs.builder()
.backendGroupId("string")
.autoHostRewrite(false)
.hostRewrite("string")
.idleTimeout("string")
.maxTimeout("string")
.build())
.grpcStatusResponseAction(AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs.builder()
.status("string")
.build())
.build())
.httpRoute(AlbVirtualHostRouteHttpRouteArgs.builder()
.directResponseAction(AlbVirtualHostRouteHttpRouteDirectResponseActionArgs.builder()
.body("string")
.status(0)
.build())
.httpMatches(AlbVirtualHostRouteHttpRouteHttpMatchArgs.builder()
.httpMethods("string")
.path(AlbVirtualHostRouteHttpRouteHttpMatchPathArgs.builder()
.exact("string")
.prefix("string")
.build())
.build())
.httpRouteAction(AlbVirtualHostRouteHttpRouteHttpRouteActionArgs.builder()
.backendGroupId("string")
.autoHostRewrite(false)
.hostRewrite("string")
.idleTimeout("string")
.prefixRewrite("string")
.timeout("string")
.upgradeTypes("string")
.build())
.redirectAction(AlbVirtualHostRouteHttpRouteRedirectActionArgs.builder()
.removeQuery(false)
.replaceHost("string")
.replacePath("string")
.replacePort(0)
.replacePrefix("string")
.replaceScheme("string")
.responseCode("string")
.build())
.build())
.name("string")
.build())
.build());
alb_virtual_host_resource = yandex.AlbVirtualHost("albVirtualHostResource",
http_router_id="string",
authorities=["string"],
modify_request_headers=[{
"name": "string",
"append": "string",
"remove": False,
"replace": "string",
}],
modify_response_headers=[{
"name": "string",
"append": "string",
"remove": False,
"replace": "string",
}],
name="string",
routes=[{
"grpc_route": {
"grpc_matches": [{
"fqmn": {
"exact": "string",
"prefix": "string",
},
}],
"grpc_route_action": {
"backend_group_id": "string",
"auto_host_rewrite": False,
"host_rewrite": "string",
"idle_timeout": "string",
"max_timeout": "string",
},
"grpc_status_response_action": {
"status": "string",
},
},
"http_route": {
"direct_response_action": {
"body": "string",
"status": 0,
},
"http_matches": [{
"http_methods": ["string"],
"path": {
"exact": "string",
"prefix": "string",
},
}],
"http_route_action": {
"backend_group_id": "string",
"auto_host_rewrite": False,
"host_rewrite": "string",
"idle_timeout": "string",
"prefix_rewrite": "string",
"timeout": "string",
"upgrade_types": ["string"],
},
"redirect_action": {
"remove_query": False,
"replace_host": "string",
"replace_path": "string",
"replace_port": 0,
"replace_prefix": "string",
"replace_scheme": "string",
"response_code": "string",
},
},
"name": "string",
}])
const albVirtualHostResource = new yandex.AlbVirtualHost("albVirtualHostResource", {
httpRouterId: "string",
authorities: ["string"],
modifyRequestHeaders: [{
name: "string",
append: "string",
remove: false,
replace: "string",
}],
modifyResponseHeaders: [{
name: "string",
append: "string",
remove: false,
replace: "string",
}],
name: "string",
routes: [{
grpcRoute: {
grpcMatches: [{
fqmn: {
exact: "string",
prefix: "string",
},
}],
grpcRouteAction: {
backendGroupId: "string",
autoHostRewrite: false,
hostRewrite: "string",
idleTimeout: "string",
maxTimeout: "string",
},
grpcStatusResponseAction: {
status: "string",
},
},
httpRoute: {
directResponseAction: {
body: "string",
status: 0,
},
httpMatches: [{
httpMethods: ["string"],
path: {
exact: "string",
prefix: "string",
},
}],
httpRouteAction: {
backendGroupId: "string",
autoHostRewrite: false,
hostRewrite: "string",
idleTimeout: "string",
prefixRewrite: "string",
timeout: "string",
upgradeTypes: ["string"],
},
redirectAction: {
removeQuery: false,
replaceHost: "string",
replacePath: "string",
replacePort: 0,
replacePrefix: "string",
replaceScheme: "string",
responseCode: "string",
},
},
name: "string",
}],
});
type: yandex:AlbVirtualHost
properties:
authorities:
- string
httpRouterId: string
modifyRequestHeaders:
- append: string
name: string
remove: false
replace: string
modifyResponseHeaders:
- append: string
name: string
remove: false
replace: string
name: string
routes:
- grpcRoute:
grpcMatches:
- fqmn:
exact: string
prefix: string
grpcRouteAction:
autoHostRewrite: false
backendGroupId: string
hostRewrite: string
idleTimeout: string
maxTimeout: string
grpcStatusResponseAction:
status: string
httpRoute:
directResponseAction:
body: string
status: 0
httpMatches:
- httpMethods:
- string
path:
exact: string
prefix: string
httpRouteAction:
autoHostRewrite: false
backendGroupId: string
hostRewrite: string
idleTimeout: string
prefixRewrite: string
timeout: string
upgradeTypes:
- string
redirectAction:
removeQuery: false
replaceHost: string
replacePath: string
replacePort: 0
replacePrefix: string
replaceScheme: string
responseCode: string
name: string
AlbVirtualHost Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AlbVirtualHost resource accepts the following input properties:
- Http
Router stringId - List<string>
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- Modify
Request List<AlbHeaders Virtual Host Modify Request Header> - Apply the following modifications to the request headers. The structure is documented below.
- Modify
Response List<AlbHeaders Virtual Host Modify Response Header> - Apply the following modifications to the response headers. The structure is documented below.
- Name string
- name of the route.
- Routes
List<Alb
Virtual Host Route> - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- Http
Router stringId - []string
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- Modify
Request []AlbHeaders Virtual Host Modify Request Header Args - Apply the following modifications to the request headers. The structure is documented below.
- Modify
Response []AlbHeaders Virtual Host Modify Response Header Args - Apply the following modifications to the response headers. The structure is documented below.
- Name string
- name of the route.
- Routes
[]Alb
Virtual Host Route Args - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- http
Router StringId - List<String>
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- modify
Request List<AlbHeaders Virtual Host Modify Request Header> - Apply the following modifications to the request headers. The structure is documented below.
- modify
Response List<AlbHeaders Virtual Host Modify Response Header> - Apply the following modifications to the response headers. The structure is documented below.
- name String
- name of the route.
- routes
List<Alb
Virtual Host Route> - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- http
Router stringId - string[]
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- modify
Request AlbHeaders Virtual Host Modify Request Header[] - Apply the following modifications to the request headers. The structure is documented below.
- modify
Response AlbHeaders Virtual Host Modify Response Header[] - Apply the following modifications to the response headers. The structure is documented below.
- name string
- name of the route.
- routes
Alb
Virtual Host Route[] - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- http_
router_ strid - Sequence[str]
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- modify_
request_ Sequence[Albheaders Virtual Host Modify Request Header Args] - Apply the following modifications to the request headers. The structure is documented below.
- modify_
response_ Sequence[Albheaders Virtual Host Modify Response Header Args] - Apply the following modifications to the response headers. The structure is documented below.
- name str
- name of the route.
- routes
Sequence[Alb
Virtual Host Route Args] - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- http
Router StringId - List<String>
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- modify
Request List<Property Map>Headers - Apply the following modifications to the request headers. The structure is documented below.
- modify
Response List<Property Map>Headers - Apply the following modifications to the response headers. The structure is documented below.
- name String
- name of the route.
- routes List<Property Map>
- A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlbVirtualHost resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AlbVirtualHost Resource
Get an existing AlbVirtualHost resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AlbVirtualHostState, opts?: CustomResourceOptions): AlbVirtualHost
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorities: Optional[Sequence[str]] = None,
http_router_id: Optional[str] = None,
modify_request_headers: Optional[Sequence[AlbVirtualHostModifyRequestHeaderArgs]] = None,
modify_response_headers: Optional[Sequence[AlbVirtualHostModifyResponseHeaderArgs]] = None,
name: Optional[str] = None,
routes: Optional[Sequence[AlbVirtualHostRouteArgs]] = None) -> AlbVirtualHost
func GetAlbVirtualHost(ctx *Context, name string, id IDInput, state *AlbVirtualHostState, opts ...ResourceOption) (*AlbVirtualHost, error)
public static AlbVirtualHost Get(string name, Input<string> id, AlbVirtualHostState? state, CustomResourceOptions? opts = null)
public static AlbVirtualHost get(String name, Output<String> id, AlbVirtualHostState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- List<string>
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- Http
Router stringId - Modify
Request List<AlbHeaders Virtual Host Modify Request Header> - Apply the following modifications to the request headers. The structure is documented below.
- Modify
Response List<AlbHeaders Virtual Host Modify Response Header> - Apply the following modifications to the response headers. The structure is documented below.
- Name string
- name of the route.
- Routes
List<Alb
Virtual Host Route> - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- []string
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- Http
Router stringId - Modify
Request []AlbHeaders Virtual Host Modify Request Header Args - Apply the following modifications to the request headers. The structure is documented below.
- Modify
Response []AlbHeaders Virtual Host Modify Response Header Args - Apply the following modifications to the response headers. The structure is documented below.
- Name string
- name of the route.
- Routes
[]Alb
Virtual Host Route Args - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- List<String>
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- http
Router StringId - modify
Request List<AlbHeaders Virtual Host Modify Request Header> - Apply the following modifications to the request headers. The structure is documented below.
- modify
Response List<AlbHeaders Virtual Host Modify Response Header> - Apply the following modifications to the response headers. The structure is documented below.
- name String
- name of the route.
- routes
List<Alb
Virtual Host Route> - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- string[]
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- http
Router stringId - modify
Request AlbHeaders Virtual Host Modify Request Header[] - Apply the following modifications to the request headers. The structure is documented below.
- modify
Response AlbHeaders Virtual Host Modify Response Header[] - Apply the following modifications to the response headers. The structure is documented below.
- name string
- name of the route.
- routes
Alb
Virtual Host Route[] - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- Sequence[str]
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- http_
router_ strid - modify_
request_ Sequence[Albheaders Virtual Host Modify Request Header Args] - Apply the following modifications to the request headers. The structure is documented below.
- modify_
response_ Sequence[Albheaders Virtual Host Modify Response Header Args] - Apply the following modifications to the response headers. The structure is documented below.
- name str
- name of the route.
- routes
Sequence[Alb
Virtual Host Route Args] - A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
- List<String>
- A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
- http
Router StringId - modify
Request List<Property Map>Headers - Apply the following modifications to the request headers. The structure is documented below.
- modify
Response List<Property Map>Headers - Apply the following modifications to the response headers. The structure is documented below.
- name String
- name of the route.
- routes List<Property Map>
- A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused. The structure is documented below.
Supporting Types
AlbVirtualHostModifyRequestHeader, AlbVirtualHostModifyRequestHeaderArgs
- Name string
- name of the route.
- Append string
- Append string to the header value.
- Remove bool
- If set, remove the header.
- Replace string
- New value for a header. Header values support the following formatters.
- Name string
- name of the route.
- Append string
- Append string to the header value.
- Remove bool
- If set, remove the header.
- Replace string
- New value for a header. Header values support the following formatters.
- name String
- name of the route.
- append String
- Append string to the header value.
- remove Boolean
- If set, remove the header.
- replace String
- New value for a header. Header values support the following formatters.
- name string
- name of the route.
- append string
- Append string to the header value.
- remove boolean
- If set, remove the header.
- replace string
- New value for a header. Header values support the following formatters.
- name str
- name of the route.
- append str
- Append string to the header value.
- remove bool
- If set, remove the header.
- replace str
- New value for a header. Header values support the following formatters.
- name String
- name of the route.
- append String
- Append string to the header value.
- remove Boolean
- If set, remove the header.
- replace String
- New value for a header. Header values support the following formatters.
AlbVirtualHostModifyResponseHeader, AlbVirtualHostModifyResponseHeaderArgs
- Name string
- name of the route.
- Append string
- Append string to the header value.
- Remove bool
- If set, remove the header.
- Replace string
- New value for a header. Header values support the following formatters.
- Name string
- name of the route.
- Append string
- Append string to the header value.
- Remove bool
- If set, remove the header.
- Replace string
- New value for a header. Header values support the following formatters.
- name String
- name of the route.
- append String
- Append string to the header value.
- remove Boolean
- If set, remove the header.
- replace String
- New value for a header. Header values support the following formatters.
- name string
- name of the route.
- append string
- Append string to the header value.
- remove boolean
- If set, remove the header.
- replace string
- New value for a header. Header values support the following formatters.
- name str
- name of the route.
- append str
- Append string to the header value.
- remove bool
- If set, remove the header.
- replace str
- New value for a header. Header values support the following formatters.
- name String
- name of the route.
- append String
- Append string to the header value.
- remove Boolean
- If set, remove the header.
- replace String
- New value for a header. Header values support the following formatters.
AlbVirtualHostRoute, AlbVirtualHostRouteArgs
- Grpc
Route AlbVirtual Host Route Grpc Route - GRPC route resource. The structure is documented below.
- Http
Route AlbVirtual Host Route Http Route - HTTP route resource. The structure is documented below.
- Name string
- name of the route.
- Grpc
Route AlbVirtual Host Route Grpc Route - GRPC route resource. The structure is documented below.
- Http
Route AlbVirtual Host Route Http Route - HTTP route resource. The structure is documented below.
- Name string
- name of the route.
- grpc
Route AlbVirtual Host Route Grpc Route - GRPC route resource. The structure is documented below.
- http
Route AlbVirtual Host Route Http Route - HTTP route resource. The structure is documented below.
- name String
- name of the route.
- grpc
Route AlbVirtual Host Route Grpc Route - GRPC route resource. The structure is documented below.
- http
Route AlbVirtual Host Route Http Route - HTTP route resource. The structure is documented below.
- name string
- name of the route.
- grpc_
route AlbVirtual Host Route Grpc Route - GRPC route resource. The structure is documented below.
- http_
route AlbVirtual Host Route Http Route - HTTP route resource. The structure is documented below.
- name str
- name of the route.
- grpc
Route Property Map - GRPC route resource. The structure is documented below.
- http
Route Property Map - HTTP route resource. The structure is documented below.
- name String
- name of the route.
AlbVirtualHostRouteGrpcRoute, AlbVirtualHostRouteGrpcRouteArgs
- Grpc
Matches List<AlbVirtual Host Route Grpc Route Grpc Match> - Checks "/" prefix by default. The structure is documented below.
- Grpc
Route AlbAction Virtual Host Route Grpc Route Grpc Route Action - GRPC route action resource. The structure is documented below.
- Grpc
Status AlbResponse Action Virtual Host Route Grpc Route Grpc Status Response Action - GRPC status response action resource. The structure is documented below.
- Grpc
Matches []AlbVirtual Host Route Grpc Route Grpc Match - Checks "/" prefix by default. The structure is documented below.
- Grpc
Route AlbAction Virtual Host Route Grpc Route Grpc Route Action - GRPC route action resource. The structure is documented below.
- Grpc
Status AlbResponse Action Virtual Host Route Grpc Route Grpc Status Response Action - GRPC status response action resource. The structure is documented below.
- grpc
Matches List<AlbVirtual Host Route Grpc Route Grpc Match> - Checks "/" prefix by default. The structure is documented below.
- grpc
Route AlbAction Virtual Host Route Grpc Route Grpc Route Action - GRPC route action resource. The structure is documented below.
- grpc
Status AlbResponse Action Virtual Host Route Grpc Route Grpc Status Response Action - GRPC status response action resource. The structure is documented below.
- grpc
Matches AlbVirtual Host Route Grpc Route Grpc Match[] - Checks "/" prefix by default. The structure is documented below.
- grpc
Route AlbAction Virtual Host Route Grpc Route Grpc Route Action - GRPC route action resource. The structure is documented below.
- grpc
Status AlbResponse Action Virtual Host Route Grpc Route Grpc Status Response Action - GRPC status response action resource. The structure is documented below.
- grpc_
matches Sequence[AlbVirtual Host Route Grpc Route Grpc Match] - Checks "/" prefix by default. The structure is documented below.
- grpc_
route_ Albaction Virtual Host Route Grpc Route Grpc Route Action - GRPC route action resource. The structure is documented below.
- grpc_
status_ Albresponse_ action Virtual Host Route Grpc Route Grpc Status Response Action - GRPC status response action resource. The structure is documented below.
- grpc
Matches List<Property Map> - Checks "/" prefix by default. The structure is documented below.
- grpc
Route Property MapAction - GRPC route action resource. The structure is documented below.
- grpc
Status Property MapResponse Action - GRPC status response action resource. The structure is documented below.
AlbVirtualHostRouteGrpcRouteGrpcMatch, AlbVirtualHostRouteGrpcRouteGrpcMatchArgs
- Fqmn
Alb
Virtual Host Route Grpc Route Grpc Match Fqmn - If not set, all services/methods are assumed. The structure is documented below.
- Fqmn
Alb
Virtual Host Route Grpc Route Grpc Match Fqmn - If not set, all services/methods are assumed. The structure is documented below.
- fqmn
Alb
Virtual Host Route Grpc Route Grpc Match Fqmn - If not set, all services/methods are assumed. The structure is documented below.
- fqmn
Alb
Virtual Host Route Grpc Route Grpc Match Fqmn - If not set, all services/methods are assumed. The structure is documented below.
- fqmn
Alb
Virtual Host Route Grpc Route Grpc Match Fqmn - If not set, all services/methods are assumed. The structure is documented below.
- fqmn Property Map
- If not set, all services/methods are assumed. The structure is documented below.
AlbVirtualHostRouteGrpcRouteGrpcMatchFqmn, AlbVirtualHostRouteGrpcRouteGrpcMatchFqmnArgs
AlbVirtualHostRouteGrpcRouteGrpcRouteAction, AlbVirtualHostRouteGrpcRouteGrpcRouteActionArgs
- Backend
Group stringId - Backend group to route requests.
- Auto
Host boolRewrite - If set, will automatically rewrite host.
- Host
Rewrite string - Host rewrite specifier.
- Idle
Timeout string - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- Max
Timeout string - Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is 60 seconds.
- Backend
Group stringId - Backend group to route requests.
- Auto
Host boolRewrite - If set, will automatically rewrite host.
- Host
Rewrite string - Host rewrite specifier.
- Idle
Timeout string - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- Max
Timeout string - Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is 60 seconds.
- backend
Group StringId - Backend group to route requests.
- auto
Host BooleanRewrite - If set, will automatically rewrite host.
- host
Rewrite String - Host rewrite specifier.
- idle
Timeout String - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- max
Timeout String - Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is 60 seconds.
- backend
Group stringId - Backend group to route requests.
- auto
Host booleanRewrite - If set, will automatically rewrite host.
- host
Rewrite string - Host rewrite specifier.
- idle
Timeout string - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- max
Timeout string - Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is 60 seconds.
- backend_
group_ strid - Backend group to route requests.
- auto_
host_ boolrewrite - If set, will automatically rewrite host.
- host_
rewrite str - Host rewrite specifier.
- idle_
timeout str - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- max_
timeout str - Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is 60 seconds.
- backend
Group StringId - Backend group to route requests.
- auto
Host BooleanRewrite - If set, will automatically rewrite host.
- host
Rewrite String - Host rewrite specifier.
- idle
Timeout String - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- max
Timeout String - Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is 60 seconds.
AlbVirtualHostRouteGrpcRouteGrpcStatusResponseAction, AlbVirtualHostRouteGrpcRouteGrpcStatusResponseActionArgs
- Status string
- The status of the response. Supported values are: ok, invalid_argumet, not_found, permission_denied, unauthenticated, unimplemented, internal, unavailable.
- Status string
- The status of the response. Supported values are: ok, invalid_argumet, not_found, permission_denied, unauthenticated, unimplemented, internal, unavailable.
- status String
- The status of the response. Supported values are: ok, invalid_argumet, not_found, permission_denied, unauthenticated, unimplemented, internal, unavailable.
- status string
- The status of the response. Supported values are: ok, invalid_argumet, not_found, permission_denied, unauthenticated, unimplemented, internal, unavailable.
- status str
- The status of the response. Supported values are: ok, invalid_argumet, not_found, permission_denied, unauthenticated, unimplemented, internal, unavailable.
- status String
- The status of the response. Supported values are: ok, invalid_argumet, not_found, permission_denied, unauthenticated, unimplemented, internal, unavailable.
AlbVirtualHostRouteHttpRoute, AlbVirtualHostRouteHttpRouteArgs
- Direct
Response AlbAction Virtual Host Route Http Route Direct Response Action - Direct response action resource. The structure is documented below.
- Http
Matches List<AlbVirtual Host Route Http Route Http Match> - Checks "/" prefix by default. The structure is documented below.
- Http
Route AlbAction Virtual Host Route Http Route Http Route Action - HTTP route action resource. The structure is documented below.
- Redirect
Action AlbVirtual Host Route Http Route Redirect Action - Redirect action resource. The structure is documented below.
- Direct
Response AlbAction Virtual Host Route Http Route Direct Response Action - Direct response action resource. The structure is documented below.
- Http
Matches []AlbVirtual Host Route Http Route Http Match - Checks "/" prefix by default. The structure is documented below.
- Http
Route AlbAction Virtual Host Route Http Route Http Route Action - HTTP route action resource. The structure is documented below.
- Redirect
Action AlbVirtual Host Route Http Route Redirect Action - Redirect action resource. The structure is documented below.
- direct
Response AlbAction Virtual Host Route Http Route Direct Response Action - Direct response action resource. The structure is documented below.
- http
Matches List<AlbVirtual Host Route Http Route Http Match> - Checks "/" prefix by default. The structure is documented below.
- http
Route AlbAction Virtual Host Route Http Route Http Route Action - HTTP route action resource. The structure is documented below.
- redirect
Action AlbVirtual Host Route Http Route Redirect Action - Redirect action resource. The structure is documented below.
- direct
Response AlbAction Virtual Host Route Http Route Direct Response Action - Direct response action resource. The structure is documented below.
- http
Matches AlbVirtual Host Route Http Route Http Match[] - Checks "/" prefix by default. The structure is documented below.
- http
Route AlbAction Virtual Host Route Http Route Http Route Action - HTTP route action resource. The structure is documented below.
- redirect
Action AlbVirtual Host Route Http Route Redirect Action - Redirect action resource. The structure is documented below.
- direct_
response_ Albaction Virtual Host Route Http Route Direct Response Action - Direct response action resource. The structure is documented below.
- http_
matches Sequence[AlbVirtual Host Route Http Route Http Match] - Checks "/" prefix by default. The structure is documented below.
- http_
route_ Albaction Virtual Host Route Http Route Http Route Action - HTTP route action resource. The structure is documented below.
- redirect_
action AlbVirtual Host Route Http Route Redirect Action - Redirect action resource. The structure is documented below.
- direct
Response Property MapAction - Direct response action resource. The structure is documented below.
- http
Matches List<Property Map> - Checks "/" prefix by default. The structure is documented below.
- http
Route Property MapAction - HTTP route action resource. The structure is documented below.
- redirect
Action Property Map - Redirect action resource. The structure is documented below.
AlbVirtualHostRouteHttpRouteDirectResponseAction, AlbVirtualHostRouteHttpRouteDirectResponseActionArgs
AlbVirtualHostRouteHttpRouteHttpMatch, AlbVirtualHostRouteHttpRouteHttpMatchArgs
- Http
Methods List<string> - List of methods(strings).
- Path
Alb
Virtual Host Route Http Route Http Match Path - If not set, '/' is assumed. The structure is documented below.
- Http
Methods []string - List of methods(strings).
- Path
Alb
Virtual Host Route Http Route Http Match Path - If not set, '/' is assumed. The structure is documented below.
- http
Methods List<String> - List of methods(strings).
- path
Alb
Virtual Host Route Http Route Http Match Path - If not set, '/' is assumed. The structure is documented below.
- http
Methods string[] - List of methods(strings).
- path
Alb
Virtual Host Route Http Route Http Match Path - If not set, '/' is assumed. The structure is documented below.
- http_
methods Sequence[str] - List of methods(strings).
- path
Alb
Virtual Host Route Http Route Http Match Path - If not set, '/' is assumed. The structure is documented below.
- http
Methods List<String> - List of methods(strings).
- path Property Map
- If not set, '/' is assumed. The structure is documented below.
AlbVirtualHostRouteHttpRouteHttpMatchPath, AlbVirtualHostRouteHttpRouteHttpMatchPathArgs
AlbVirtualHostRouteHttpRouteHttpRouteAction, AlbVirtualHostRouteHttpRouteHttpRouteActionArgs
- Backend
Group stringId - Backend group to route requests.
- Auto
Host boolRewrite - If set, will automatically rewrite host.
- Host
Rewrite string - Host rewrite specifier.
- Idle
Timeout string - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- Prefix
Rewrite string - If not empty, matched path prefix will be replaced by this value.
- Timeout string
- Specifies the request timeout (overall time request processing is allowed to take) for the route. If not set, default is 60 seconds.
- Upgrade
Types List<string> - List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
- Backend
Group stringId - Backend group to route requests.
- Auto
Host boolRewrite - If set, will automatically rewrite host.
- Host
Rewrite string - Host rewrite specifier.
- Idle
Timeout string - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- Prefix
Rewrite string - If not empty, matched path prefix will be replaced by this value.
- Timeout string
- Specifies the request timeout (overall time request processing is allowed to take) for the route. If not set, default is 60 seconds.
- Upgrade
Types []string - List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
- backend
Group StringId - Backend group to route requests.
- auto
Host BooleanRewrite - If set, will automatically rewrite host.
- host
Rewrite String - Host rewrite specifier.
- idle
Timeout String - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- prefix
Rewrite String - If not empty, matched path prefix will be replaced by this value.
- timeout String
- Specifies the request timeout (overall time request processing is allowed to take) for the route. If not set, default is 60 seconds.
- upgrade
Types List<String> - List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
- backend
Group stringId - Backend group to route requests.
- auto
Host booleanRewrite - If set, will automatically rewrite host.
- host
Rewrite string - Host rewrite specifier.
- idle
Timeout string - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- prefix
Rewrite string - If not empty, matched path prefix will be replaced by this value.
- timeout string
- Specifies the request timeout (overall time request processing is allowed to take) for the route. If not set, default is 60 seconds.
- upgrade
Types string[] - List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
- backend_
group_ strid - Backend group to route requests.
- auto_
host_ boolrewrite - If set, will automatically rewrite host.
- host_
rewrite str - Host rewrite specifier.
- idle_
timeout str - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- prefix_
rewrite str - If not empty, matched path prefix will be replaced by this value.
- timeout str
- Specifies the request timeout (overall time request processing is allowed to take) for the route. If not set, default is 60 seconds.
- upgrade_
types Sequence[str] - List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
- backend
Group StringId - Backend group to route requests.
- auto
Host BooleanRewrite - If set, will automatically rewrite host.
- host
Rewrite String - Host rewrite specifier.
- idle
Timeout String - Specifies the idle timeout (time without any data transfer for the active request) for the route. It is useful for streaming scenarios - one should set idle_timeout to something meaningful and max_timeout to the maximum time the stream is allowed to be alive. If not specified, there is no per-route idle timeout.
- prefix
Rewrite String - If not empty, matched path prefix will be replaced by this value.
- timeout String
- Specifies the request timeout (overall time request processing is allowed to take) for the route. If not set, default is 60 seconds.
- upgrade
Types List<String> - List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
AlbVirtualHostRouteHttpRouteRedirectAction, AlbVirtualHostRouteHttpRouteRedirectActionArgs
- Remove
Query bool - Replace
Host string - Replaces hostname.
- Replace
Path string - Replace path.
- Replace
Port int - Replaces port.
- Replace
Prefix string - Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- Replace
Scheme string - Replaces scheme. If the original scheme is
http
orhttps
, will also remove the 80 or 443 port, if present. - Response
Code string - The HTTP status code to use in the redirect response. Supported values are: moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
- Remove
Query bool - Replace
Host string - Replaces hostname.
- Replace
Path string - Replace path.
- Replace
Port int - Replaces port.
- Replace
Prefix string - Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- Replace
Scheme string - Replaces scheme. If the original scheme is
http
orhttps
, will also remove the 80 or 443 port, if present. - Response
Code string - The HTTP status code to use in the redirect response. Supported values are: moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
- remove
Query Boolean - replace
Host String - Replaces hostname.
- replace
Path String - Replace path.
- replace
Port Integer - Replaces port.
- replace
Prefix String - Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- replace
Scheme String - Replaces scheme. If the original scheme is
http
orhttps
, will also remove the 80 or 443 port, if present. - response
Code String - The HTTP status code to use in the redirect response. Supported values are: moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
- remove
Query boolean - replace
Host string - Replaces hostname.
- replace
Path string - Replace path.
- replace
Port number - Replaces port.
- replace
Prefix string - Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- replace
Scheme string - Replaces scheme. If the original scheme is
http
orhttps
, will also remove the 80 or 443 port, if present. - response
Code string - The HTTP status code to use in the redirect response. Supported values are: moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
- remove_
query bool - replace_
host str - Replaces hostname.
- replace_
path str - Replace path.
- replace_
port int - Replaces port.
- replace_
prefix str - Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- replace_
scheme str - Replaces scheme. If the original scheme is
http
orhttps
, will also remove the 80 or 443 port, if present. - response_
code str - The HTTP status code to use in the redirect response. Supported values are: moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
- remove
Query Boolean - replace
Host String - Replaces hostname.
- replace
Path String - Replace path.
- replace
Port Number - Replaces port.
- replace
Prefix String - Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- replace
Scheme String - Replaces scheme. If the original scheme is
http
orhttps
, will also remove the 80 or 443 port, if present. - response
Code String - The HTTP status code to use in the redirect response. Supported values are: moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
Import
A virtual host can be imported using the id
of the resource, e.g.
$ pulumi import yandex:index/albVirtualHost:AlbVirtualHost default virtual_host_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.