import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Represents an Instance Settings resource. Instance settings are centralized configuration parameters that allow users to configure the default values for specific VM parameters that are normally set using GCE instance API methods. * * To get more information about InstanceSettings, see: * * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/instanceSettings) * * How-to Guides * * [Update Instance Settings](https://cloud.google.com/compute/docs/metadata/setting-custom-metadata#set-custom-project-zonal-metadata) * * ## Example Usage * * ### Instance Settings Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const gceInstanceSettings = new gcp.compute.InstanceSettings("gce_instance_settings", { * zone: "us-east7-b", * metadata: { * items: { * foo: "baz", * }, * }, * }); * ``` * * ## Import * * InstanceSettings can be imported using any of these accepted formats: * * * `projects/{{project}}/zones/{{zone}}/instanceSettings` * * * `{{project}}/{{zone}}` * * * `{{zone}}` * * When using the `pulumi import` command, InstanceSettings can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:compute/instanceSettings:InstanceSettings default projects/{{project}}/zones/{{zone}}/instanceSettings * ``` * * ```sh * $ pulumi import gcp:compute/instanceSettings:InstanceSettings default {{project}}/{{zone}} * ``` * * ```sh * $ pulumi import gcp:compute/instanceSettings:InstanceSettings default {{zone}} * ``` */ export declare class InstanceSettings extends pulumi.CustomResource { /** * Get an existing InstanceSettings 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, state?: InstanceSettingsState, opts?: pulumi.CustomResourceOptions): InstanceSettings; /** * Returns true if the given object is an instance of InstanceSettings. 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 InstanceSettings; /** * The fingerprint used for optimistic locking of this resource. Used * internally during updates. */ readonly fingerprint: pulumi.Output; /** * The metadata key/value pairs assigned to all the instances in the corresponding scope. * Structure is documented below. */ readonly metadata: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * A reference to the zone where the machine resides. */ readonly zone: pulumi.Output; /** * Create a InstanceSettings 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: InstanceSettingsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering InstanceSettings resources. */ export interface InstanceSettingsState { /** * The fingerprint used for optimistic locking of this resource. Used * internally during updates. */ fingerprint?: pulumi.Input; /** * The metadata key/value pairs assigned to all the instances in the corresponding scope. * Structure is documented below. */ metadata?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * A reference to the zone where the machine resides. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a InstanceSettings resource. */ export interface InstanceSettingsArgs { /** * The metadata key/value pairs assigned to all the instances in the corresponding scope. * Structure is documented below. */ metadata?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * A reference to the zone where the machine resides. */ zone: pulumi.Input; }