@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
132 lines (131 loc) • 4.48 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Creates an HTTP Router in the specified folder.
* For more information, see [the official documentation](https://cloud.yandex.com/en/docs/application-load-balancer/concepts/http-router).
*
* ## Example Usage
*
* ```typescript
* 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",
* },
* });
* ```
*
* ## Import
*
* An HTTP Router can be imported using the `id` of the resource, e.g.
*
* ```sh
* $ pulumi import yandex:index/albHttpRouter:AlbHttpRouter default http_router_id
* ```
*/
export declare class AlbHttpRouter extends pulumi.CustomResource {
/**
* Get an existing AlbHttpRouter resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlbHttpRouterState, opts?: pulumi.CustomResourceOptions): AlbHttpRouter;
/**
* Returns true if the given object is an instance of AlbHttpRouter. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is AlbHttpRouter;
/**
* The HTTP Router creation timestamp.
*/
readonly createdAt: pulumi.Output<string>;
/**
* An optional description of the HTTP Router. Provide this property when
* you create the resource.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The ID of the folder to which the resource belongs.
* If omitted, the provider folder is used.
*/
readonly folderId: pulumi.Output<string>;
/**
* Labels to assign to this HTTP Router. A list of key/value pairs.
*/
readonly labels: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Name of the HTTP Router. Provided by the client when the HTTP Router is created.
*/
readonly name: pulumi.Output<string>;
/**
* Create a AlbHttpRouter resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: AlbHttpRouterArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AlbHttpRouter resources.
*/
export interface AlbHttpRouterState {
/**
* The HTTP Router creation timestamp.
*/
createdAt?: pulumi.Input<string>;
/**
* An optional description of the HTTP Router. Provide this property when
* you create the resource.
*/
description?: pulumi.Input<string>;
/**
* The ID of the folder to which the resource belongs.
* If omitted, the provider folder is used.
*/
folderId?: pulumi.Input<string>;
/**
* Labels to assign to this HTTP Router. A list of key/value pairs.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Name of the HTTP Router. Provided by the client when the HTTP Router is created.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a AlbHttpRouter resource.
*/
export interface AlbHttpRouterArgs {
/**
* An optional description of the HTTP Router. Provide this property when
* you create the resource.
*/
description?: pulumi.Input<string>;
/**
* The ID of the folder to which the resource belongs.
* If omitted, the provider folder is used.
*/
folderId?: pulumi.Input<string>;
/**
* Labels to assign to this HTTP Router. A list of key/value pairs.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Name of the HTTP Router. Provided by the client when the HTTP Router is created.
*/
name?: pulumi.Input<string>;
}