1. Packages
  2. Yandex
  3. API Docs
  4. AlbHttpRouter
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.AlbHttpRouter

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    Creates an HTTP Router in the specified folder. For more information, see the official documentation.

    Example Usage

    using Pulumi;
    using Yandex = Pulumi.Yandex;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var tf_router = new Yandex.AlbHttpRouter("tf-router", new Yandex.AlbHttpRouterArgs
            {
                Labels = 
                {
                    { "empty-label", "" },
                    { "s", 
                    {
                        ,
                    } },
                    { "tf-label", "tf-label-value" },
                },
            });
        }
    
    }
    
    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.NewAlbHttpRouter(ctx, "tf-router", &yandex.AlbHttpRouterArgs{
    			Labels: pulumi.StringMap{
    				"empty-label": pulumi.String(""),
    				"s": pulumi.String{
    					nil,
    				},
    				"tf-label": pulumi.String("tf-label-value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_yandex as yandex
    
    tf_router = yandex.AlbHttpRouter("tf-router", labels={
        "empty-label": "",
        "s": [{}],
        "tf-label": "tf-label-value",
    })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as yandex from "@pulumi/yandex";
    
    const tf_router = new yandex.AlbHttpRouter("tf-router", {
        labels: {
            "empty-label": "",
            s: [{}],
            "tf-label": "tf-label-value",
        },
    });
    

    Coming soon!

    Create AlbHttpRouter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AlbHttpRouter(name: string, args?: AlbHttpRouterArgs, opts?: CustomResourceOptions);
    @overload
    def AlbHttpRouter(resource_name: str,
                      args: Optional[AlbHttpRouterArgs] = None,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlbHttpRouter(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      description: Optional[str] = None,
                      folder_id: Optional[str] = None,
                      labels: Optional[Mapping[str, str]] = None,
                      name: Optional[str] = None)
    func NewAlbHttpRouter(ctx *Context, name string, args *AlbHttpRouterArgs, opts ...ResourceOption) (*AlbHttpRouter, error)
    public AlbHttpRouter(string name, AlbHttpRouterArgs? args = null, CustomResourceOptions? opts = null)
    public AlbHttpRouter(String name, AlbHttpRouterArgs args)
    public AlbHttpRouter(String name, AlbHttpRouterArgs args, CustomResourceOptions options)
    
    type: yandex:AlbHttpRouter
    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 AlbHttpRouterArgs
    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 AlbHttpRouterArgs
    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 AlbHttpRouterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlbHttpRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlbHttpRouterArgs
    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 albHttpRouterResource = new Yandex.AlbHttpRouter("albHttpRouterResource", new()
    {
        Description = "string",
        FolderId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
    });
    
    example, err := yandex.NewAlbHttpRouter(ctx, "albHttpRouterResource", &yandex.AlbHttpRouterArgs{
    	Description: pulumi.String("string"),
    	FolderId:    pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    })
    
    var albHttpRouterResource = new AlbHttpRouter("albHttpRouterResource", AlbHttpRouterArgs.builder()
        .description("string")
        .folderId("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .build());
    
    alb_http_router_resource = yandex.AlbHttpRouter("albHttpRouterResource",
        description="string",
        folder_id="string",
        labels={
            "string": "string",
        },
        name="string")
    
    const albHttpRouterResource = new yandex.AlbHttpRouter("albHttpRouterResource", {
        description: "string",
        folderId: "string",
        labels: {
            string: "string",
        },
        name: "string",
    });
    
    type: yandex:AlbHttpRouter
    properties:
        description: string
        folderId: string
        labels:
            string: string
        name: string
    

    AlbHttpRouter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AlbHttpRouter resource accepts the following input properties:

    Description string
    An optional description of the HTTP Router. Provide this property when you create the resource.
    FolderId string
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    Labels Dictionary<string, string>
    Labels to assign to this HTTP Router. A list of key/value pairs.
    Name string
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    Description string
    An optional description of the HTTP Router. Provide this property when you create the resource.
    FolderId string
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    Labels map[string]string
    Labels to assign to this HTTP Router. A list of key/value pairs.
    Name string
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    description String
    An optional description of the HTTP Router. Provide this property when you create the resource.
    folderId String
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    labels Map<String,String>
    Labels to assign to this HTTP Router. A list of key/value pairs.
    name String
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    description string
    An optional description of the HTTP Router. Provide this property when you create the resource.
    folderId string
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    labels {[key: string]: string}
    Labels to assign to this HTTP Router. A list of key/value pairs.
    name string
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    description str
    An optional description of the HTTP Router. Provide this property when you create the resource.
    folder_id str
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    labels Mapping[str, str]
    Labels to assign to this HTTP Router. A list of key/value pairs.
    name str
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    description String
    An optional description of the HTTP Router. Provide this property when you create the resource.
    folderId String
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    labels Map<String>
    Labels to assign to this HTTP Router. A list of key/value pairs.
    name String
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AlbHttpRouter resource produces the following output properties:

    CreatedAt string
    The HTTP Router creation timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreatedAt string
    The HTTP Router creation timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    createdAt String
    The HTTP Router creation timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    createdAt string
    The HTTP Router creation timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    created_at str
    The HTTP Router creation timestamp.
    id str
    The provider-assigned unique ID for this managed resource.
    createdAt String
    The HTTP Router creation timestamp.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AlbHttpRouter Resource

    Get an existing AlbHttpRouter 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?: AlbHttpRouterState, opts?: CustomResourceOptions): AlbHttpRouter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            folder_id: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None) -> AlbHttpRouter
    func GetAlbHttpRouter(ctx *Context, name string, id IDInput, state *AlbHttpRouterState, opts ...ResourceOption) (*AlbHttpRouter, error)
    public static AlbHttpRouter Get(string name, Input<string> id, AlbHttpRouterState? state, CustomResourceOptions? opts = null)
    public static AlbHttpRouter get(String name, Output<String> id, AlbHttpRouterState 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.
    The following state arguments are supported:
    CreatedAt string
    The HTTP Router creation timestamp.
    Description string
    An optional description of the HTTP Router. Provide this property when you create the resource.
    FolderId string
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    Labels Dictionary<string, string>
    Labels to assign to this HTTP Router. A list of key/value pairs.
    Name string
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    CreatedAt string
    The HTTP Router creation timestamp.
    Description string
    An optional description of the HTTP Router. Provide this property when you create the resource.
    FolderId string
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    Labels map[string]string
    Labels to assign to this HTTP Router. A list of key/value pairs.
    Name string
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    createdAt String
    The HTTP Router creation timestamp.
    description String
    An optional description of the HTTP Router. Provide this property when you create the resource.
    folderId String
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    labels Map<String,String>
    Labels to assign to this HTTP Router. A list of key/value pairs.
    name String
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    createdAt string
    The HTTP Router creation timestamp.
    description string
    An optional description of the HTTP Router. Provide this property when you create the resource.
    folderId string
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    labels {[key: string]: string}
    Labels to assign to this HTTP Router. A list of key/value pairs.
    name string
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    created_at str
    The HTTP Router creation timestamp.
    description str
    An optional description of the HTTP Router. Provide this property when you create the resource.
    folder_id str
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    labels Mapping[str, str]
    Labels to assign to this HTTP Router. A list of key/value pairs.
    name str
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.
    createdAt String
    The HTTP Router creation timestamp.
    description String
    An optional description of the HTTP Router. Provide this property when you create the resource.
    folderId String
    The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
    labels Map<String>
    Labels to assign to this HTTP Router. A list of key/value pairs.
    name String
    Name of the HTTP Router. Provided by the client when the HTTP Router is created.

    Import

    An HTTP Router can be imported using the id of the resource, e.g.

     $ pulumi import yandex:index/albHttpRouter:AlbHttpRouter default http_router_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.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi