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 * 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",
            },
        },
    }],
});
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",
            ),
        ),
    )])
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:
- HttpRouter 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.
- ModifyRequest List<AlbHeaders Virtual Host Modify Request Header> 
- Apply the following modifications to the request headers. The structure is documented below.
- ModifyResponse 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<AlbVirtual 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.
- HttpRouter 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.
- ModifyRequest []AlbHeaders Virtual Host Modify Request Header Args 
- Apply the following modifications to the request headers. The structure is documented below.
- ModifyResponse []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
[]AlbVirtual 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.
- httpRouter 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.
- modifyRequest List<AlbHeaders Virtual Host Modify Request Header> 
- Apply the following modifications to the request headers. The structure is documented below.
- modifyResponse 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<AlbVirtual 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.
- httpRouter 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.
- modifyRequest AlbHeaders Virtual Host Modify Request Header[] 
- Apply the following modifications to the request headers. The structure is documented below.
- modifyResponse 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
AlbVirtual 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[AlbVirtual 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.
- httpRouter 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.
- modifyRequest List<Property Map>Headers 
- Apply the following modifications to the request headers. The structure is documented below.
- modifyResponse 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) -> AlbVirtualHostfunc 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)resources:  _:    type: yandex:AlbVirtualHost    get:      id: ${id}- 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.
- HttpRouter stringId 
- ModifyRequest List<AlbHeaders Virtual Host Modify Request Header> 
- Apply the following modifications to the request headers. The structure is documented below.
- ModifyResponse 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<AlbVirtual 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.
- HttpRouter stringId 
- ModifyRequest []AlbHeaders Virtual Host Modify Request Header Args 
- Apply the following modifications to the request headers. The structure is documented below.
- ModifyResponse []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
[]AlbVirtual 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.
- httpRouter StringId 
- modifyRequest List<AlbHeaders Virtual Host Modify Request Header> 
- Apply the following modifications to the request headers. The structure is documented below.
- modifyResponse 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<AlbVirtual 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.
- httpRouter stringId 
- modifyRequest AlbHeaders Virtual Host Modify Request Header[] 
- Apply the following modifications to the request headers. The structure is documented below.
- modifyResponse 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
AlbVirtual 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[AlbVirtual 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.
- httpRouter StringId 
- modifyRequest List<Property Map>Headers 
- Apply the following modifications to the request headers. The structure is documented below.
- modifyResponse 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        
- GrpcRoute AlbVirtual Host Route Grpc Route 
- GRPC route resource. The structure is documented below.
- HttpRoute AlbVirtual Host Route Http Route 
- HTTP route resource. The structure is documented below.
- Name string
- name of the route.
- GrpcRoute AlbVirtual Host Route Grpc Route 
- GRPC route resource. The structure is documented below.
- HttpRoute AlbVirtual Host Route Http Route 
- HTTP route resource. The structure is documented below.
- Name string
- name of the route.
- grpcRoute AlbVirtual Host Route Grpc Route 
- GRPC route resource. The structure is documented below.
- httpRoute AlbVirtual Host Route Http Route 
- HTTP route resource. The structure is documented below.
- name String
- name of the route.
- grpcRoute AlbVirtual Host Route Grpc Route 
- GRPC route resource. The structure is documented below.
- httpRoute 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.
- grpcRoute Property Map
- GRPC route resource. The structure is documented below.
- httpRoute Property Map
- HTTP route resource. The structure is documented below.
- name String
- name of the route.
AlbVirtualHostRouteGrpcRoute, AlbVirtualHostRouteGrpcRouteArgs            
- GrpcMatches List<AlbVirtual Host Route Grpc Route Grpc Match> 
- Checks "/" prefix by default. The structure is documented below.
- GrpcRoute AlbAction Virtual Host Route Grpc Route Grpc Route Action 
- GRPC route action resource. The structure is documented below.
- GrpcStatus AlbResponse Action Virtual Host Route Grpc Route Grpc Status Response Action 
- GRPC status response action resource. The structure is documented below.
- GrpcMatches []AlbVirtual Host Route Grpc Route Grpc Match 
- Checks "/" prefix by default. The structure is documented below.
- GrpcRoute AlbAction Virtual Host Route Grpc Route Grpc Route Action 
- GRPC route action resource. The structure is documented below.
- GrpcStatus AlbResponse Action Virtual Host Route Grpc Route Grpc Status Response Action 
- GRPC status response action resource. The structure is documented below.
- grpcMatches List<AlbVirtual Host Route Grpc Route Grpc Match> 
- Checks "/" prefix by default. The structure is documented below.
- grpcRoute AlbAction Virtual Host Route Grpc Route Grpc Route Action 
- GRPC route action resource. The structure is documented below.
- grpcStatus AlbResponse Action Virtual Host Route Grpc Route Grpc Status Response Action 
- GRPC status response action resource. The structure is documented below.
- grpcMatches AlbVirtual Host Route Grpc Route Grpc Match[] 
- Checks "/" prefix by default. The structure is documented below.
- grpcRoute AlbAction Virtual Host Route Grpc Route Grpc Route Action 
- GRPC route action resource. The structure is documented below.
- grpcStatus 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.
- grpcMatches List<Property Map>
- Checks "/" prefix by default. The structure is documented below.
- grpcRoute Property MapAction 
- GRPC route action resource. The structure is documented below.
- grpcStatus Property MapResponse Action 
- GRPC status response action resource. The structure is documented below.
AlbVirtualHostRouteGrpcRouteGrpcMatch, AlbVirtualHostRouteGrpcRouteGrpcMatchArgs                
- Fqmn
AlbVirtual Host Route Grpc Route Grpc Match Fqmn 
- If not set, all services/methods are assumed. The structure is documented below.
- Fqmn
AlbVirtual Host Route Grpc Route Grpc Match Fqmn 
- If not set, all services/methods are assumed. The structure is documented below.
- fqmn
AlbVirtual Host Route Grpc Route Grpc Match Fqmn 
- If not set, all services/methods are assumed. The structure is documented below.
- fqmn
AlbVirtual Host Route Grpc Route Grpc Match Fqmn 
- If not set, all services/methods are assumed. The structure is documented below.
- fqmn
AlbVirtual 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                  
- BackendGroup stringId 
- Backend group to route requests.
- AutoHost boolRewrite 
- If set, will automatically rewrite host.
- HostRewrite string
- Host rewrite specifier.
- IdleTimeout 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.
- MaxTimeout string
- Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is 60 seconds.
- BackendGroup stringId 
- Backend group to route requests.
- AutoHost boolRewrite 
- If set, will automatically rewrite host.
- HostRewrite string
- Host rewrite specifier.
- IdleTimeout 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.
- MaxTimeout string
- Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is 60 seconds.
- backendGroup StringId 
- Backend group to route requests.
- autoHost BooleanRewrite 
- If set, will automatically rewrite host.
- hostRewrite String
- Host rewrite specifier.
- idleTimeout 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.
- maxTimeout String
- Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is 60 seconds.
- backendGroup stringId 
- Backend group to route requests.
- autoHost booleanRewrite 
- If set, will automatically rewrite host.
- hostRewrite string
- Host rewrite specifier.
- idleTimeout 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.
- maxTimeout 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.
- backendGroup StringId 
- Backend group to route requests.
- autoHost BooleanRewrite 
- If set, will automatically rewrite host.
- hostRewrite String
- Host rewrite specifier.
- idleTimeout 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.
- maxTimeout 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            
- DirectResponse AlbAction Virtual Host Route Http Route Direct Response Action 
- Direct response action resource. The structure is documented below.
- HttpMatches List<AlbVirtual Host Route Http Route Http Match> 
- Checks "/" prefix by default. The structure is documented below.
- HttpRoute AlbAction Virtual Host Route Http Route Http Route Action 
- HTTP route action resource. The structure is documented below.
- RedirectAction AlbVirtual Host Route Http Route Redirect Action 
- Redirect action resource. The structure is documented below.
- DirectResponse AlbAction Virtual Host Route Http Route Direct Response Action 
- Direct response action resource. The structure is documented below.
- HttpMatches []AlbVirtual Host Route Http Route Http Match 
- Checks "/" prefix by default. The structure is documented below.
- HttpRoute AlbAction Virtual Host Route Http Route Http Route Action 
- HTTP route action resource. The structure is documented below.
- RedirectAction AlbVirtual Host Route Http Route Redirect Action 
- Redirect action resource. The structure is documented below.
- directResponse AlbAction Virtual Host Route Http Route Direct Response Action 
- Direct response action resource. The structure is documented below.
- httpMatches List<AlbVirtual Host Route Http Route Http Match> 
- Checks "/" prefix by default. The structure is documented below.
- httpRoute AlbAction Virtual Host Route Http Route Http Route Action 
- HTTP route action resource. The structure is documented below.
- redirectAction AlbVirtual Host Route Http Route Redirect Action 
- Redirect action resource. The structure is documented below.
- directResponse AlbAction Virtual Host Route Http Route Direct Response Action 
- Direct response action resource. The structure is documented below.
- httpMatches AlbVirtual Host Route Http Route Http Match[] 
- Checks "/" prefix by default. The structure is documented below.
- httpRoute AlbAction Virtual Host Route Http Route Http Route Action 
- HTTP route action resource. The structure is documented below.
- redirectAction 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.
- directResponse Property MapAction 
- Direct response action resource. The structure is documented below.
- httpMatches List<Property Map>
- Checks "/" prefix by default. The structure is documented below.
- httpRoute Property MapAction 
- HTTP route action resource. The structure is documented below.
- redirectAction Property Map
- Redirect action resource. The structure is documented below.
AlbVirtualHostRouteHttpRouteDirectResponseAction, AlbVirtualHostRouteHttpRouteDirectResponseActionArgs                  
AlbVirtualHostRouteHttpRouteHttpMatch, AlbVirtualHostRouteHttpRouteHttpMatchArgs                
- HttpMethods List<string>
- List of methods(strings).
- Path
AlbVirtual Host Route Http Route Http Match Path 
- If not set, '/' is assumed. The structure is documented below.
- HttpMethods []string
- List of methods(strings).
- Path
AlbVirtual Host Route Http Route Http Match Path 
- If not set, '/' is assumed. The structure is documented below.
- httpMethods List<String>
- List of methods(strings).
- path
AlbVirtual Host Route Http Route Http Match Path 
- If not set, '/' is assumed. The structure is documented below.
- httpMethods string[]
- List of methods(strings).
- path
AlbVirtual 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
AlbVirtual Host Route Http Route Http Match Path 
- If not set, '/' is assumed. The structure is documented below.
- httpMethods List<String>
- List of methods(strings).
- path Property Map
- If not set, '/' is assumed. The structure is documented below.
AlbVirtualHostRouteHttpRouteHttpMatchPath, AlbVirtualHostRouteHttpRouteHttpMatchPathArgs                  
AlbVirtualHostRouteHttpRouteHttpRouteAction, AlbVirtualHostRouteHttpRouteHttpRouteActionArgs                  
- BackendGroup stringId 
- Backend group to route requests.
- AutoHost boolRewrite 
- If set, will automatically rewrite host.
- HostRewrite string
- Host rewrite specifier.
- IdleTimeout 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.
- PrefixRewrite 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.
- UpgradeTypes List<string>
- List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
- BackendGroup stringId 
- Backend group to route requests.
- AutoHost boolRewrite 
- If set, will automatically rewrite host.
- HostRewrite string
- Host rewrite specifier.
- IdleTimeout 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.
- PrefixRewrite 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.
- UpgradeTypes []string
- List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
- backendGroup StringId 
- Backend group to route requests.
- autoHost BooleanRewrite 
- If set, will automatically rewrite host.
- hostRewrite String
- Host rewrite specifier.
- idleTimeout 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.
- prefixRewrite 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.
- upgradeTypes List<String>
- List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
- backendGroup stringId 
- Backend group to route requests.
- autoHost booleanRewrite 
- If set, will automatically rewrite host.
- hostRewrite string
- Host rewrite specifier.
- idleTimeout 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.
- prefixRewrite 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.
- upgradeTypes 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".
- backendGroup StringId 
- Backend group to route requests.
- autoHost BooleanRewrite 
- If set, will automatically rewrite host.
- hostRewrite String
- Host rewrite specifier.
- idleTimeout 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.
- prefixRewrite 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.
- upgradeTypes List<String>
- List of upgrade types. Only specified upgrade types will be allowed. For example, "websocket".
AlbVirtualHostRouteHttpRouteRedirectAction, AlbVirtualHostRouteHttpRouteRedirectActionArgs                
- RemoveQuery bool
- ReplaceHost string
- Replaces hostname.
- ReplacePath string
- Replace path.
- ReplacePort int
- Replaces port.
- ReplacePrefix string
- Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- ReplaceScheme string
- Replaces scheme. If the original scheme is httporhttps, will also remove the 80 or 443 port, if present.
- ResponseCode string
- The HTTP status code to use in the redirect response. Supported values are: moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
- RemoveQuery bool
- ReplaceHost string
- Replaces hostname.
- ReplacePath string
- Replace path.
- ReplacePort int
- Replaces port.
- ReplacePrefix string
- Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- ReplaceScheme string
- Replaces scheme. If the original scheme is httporhttps, will also remove the 80 or 443 port, if present.
- ResponseCode string
- The HTTP status code to use in the redirect response. Supported values are: moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
- removeQuery Boolean
- replaceHost String
- Replaces hostname.
- replacePath String
- Replace path.
- replacePort Integer
- Replaces port.
- replacePrefix String
- Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- replaceScheme String
- Replaces scheme. If the original scheme is httporhttps, will also remove the 80 or 443 port, if present.
- responseCode String
- The HTTP status code to use in the redirect response. Supported values are: moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
- removeQuery boolean
- replaceHost string
- Replaces hostname.
- replacePath string
- Replace path.
- replacePort number
- Replaces port.
- replacePrefix string
- Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- replaceScheme string
- Replaces scheme. If the original scheme is httporhttps, will also remove the 80 or 443 port, if present.
- responseCode 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 httporhttps, 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.
- removeQuery Boolean
- replaceHost String
- Replaces hostname.
- replacePath String
- Replace path.
- replacePort Number
- Replaces port.
- replacePrefix String
- Replace only matched prefix. Example: match:{ prefix_match: "/some" } redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
- replaceScheme String
- Replaces scheme. If the original scheme is httporhttps, will also remove the 80 or 443 port, if present.
- responseCode 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 yandexTerraform Provider.