import * as pulumi from "@pulumi/pulumi"; /** * Creates a TargetInstance resource in the specified project and zone using the data included in the request. */ export declare class TargetInstance extends pulumi.CustomResource { /** * Get an existing TargetInstance 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): TargetInstance; /** * Returns true if the given object is an instance of TargetInstance. 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 TargetInstance; /** * [Output Only] Creation timestamp in RFC3339 text format. */ readonly creationTimestamp: pulumi.Output; /** * An optional description of this resource. Provide this property when you create the resource. */ readonly description: pulumi.Output; /** * A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance * - projects/project/zones/zone/instances/instance * - zones/zone/instances/instance */ readonly instance: pulumi.Output; /** * [Output Only] The type of the resource. Always compute#targetInstance for target instances. */ readonly kind: pulumi.Output; /** * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. */ readonly name: pulumi.Output; /** * NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. */ readonly natPolicy: pulumi.Output; /** * The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. */ readonly network: pulumi.Output; /** * [Output Only] Server-defined URL for the resource. */ readonly selfLink: pulumi.Output; /** * [Output Only] Server-defined URL for this resource with the resource id. */ readonly selfLinkWithId: pulumi.Output; /** * [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. */ readonly zone: pulumi.Output; /** * Create a TargetInstance 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: TargetInstanceArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a TargetInstance resource. */ export interface TargetInstanceArgs { /** * [Output Only] Creation timestamp in RFC3339 text format. */ readonly creationTimestamp?: pulumi.Input; /** * An optional description of this resource. Provide this property when you create the resource. */ readonly description?: pulumi.Input; /** * [Output Only] The unique identifier for the resource. This identifier is defined by the server. */ readonly id?: pulumi.Input; /** * A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance * - projects/project/zones/zone/instances/instance * - zones/zone/instances/instance */ readonly instance?: pulumi.Input; /** * [Output Only] The type of the resource. Always compute#targetInstance for target instances. */ readonly kind?: pulumi.Input; /** * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. */ readonly name?: pulumi.Input; /** * NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. */ readonly natPolicy?: pulumi.Input; /** * The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. */ readonly network?: pulumi.Input; readonly project: pulumi.Input; /** * [Output Only] Server-defined URL for the resource. */ readonly selfLink?: pulumi.Input; /** * [Output Only] Server-defined URL for this resource with the resource id. */ readonly selfLinkWithId?: pulumi.Input; readonly targetInstance: pulumi.Input; /** * [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. */ readonly zone: pulumi.Input; }