UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

230 lines • 9.1 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A Zone VM Extension Policy. * * ## Example Usage * * ### Compute Zone Vm Extension Policy Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const opsAgentPolicy = new gcp.compute.ZoneVmExtensionPolicy("ops_agent_policy", { * name: "zonal-ops-agent-vme-policy-_79169", * zone: "us-central1-a", * extensionPolicies: [{ * extensionName: "ops-agent", * pinnedVersion: "2.66.0", * }], * }); * ``` * * ## Import * * ZoneVmExtensionPolicy can be imported using any of these accepted formats: * * * `projects/{{project}}/zones/{{zone}}/vmExtensionPolicies/{{name}}` * * `{{project}}/{{zone}}/{{name}}` * * `{{zone}}/{{name}}` * * `{{name}}` * * When using the `pulumi import` command, ZoneVmExtensionPolicy can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:compute/zoneVmExtensionPolicy:ZoneVmExtensionPolicy default projects/{{project}}/zones/{{zone}}/vmExtensionPolicies/{{name}} * $ pulumi import gcp:compute/zoneVmExtensionPolicy:ZoneVmExtensionPolicy default {{project}}/{{zone}}/{{name}} * $ pulumi import gcp:compute/zoneVmExtensionPolicy:ZoneVmExtensionPolicy default {{zone}}/{{name}} * $ pulumi import gcp:compute/zoneVmExtensionPolicy:ZoneVmExtensionPolicy default {{name}} * ``` */ export declare class ZoneVmExtensionPolicy extends pulumi.CustomResource { /** * Get an existing ZoneVmExtensionPolicy 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?: ZoneVmExtensionPolicyState, opts?: pulumi.CustomResourceOptions): ZoneVmExtensionPolicy; /** * Returns true if the given object is an instance of ZoneVmExtensionPolicy. 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 ZoneVmExtensionPolicy; /** * Creation timestamp in RFC3339 text format. */ readonly creationTimestamp: pulumi.Output<string>; /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ readonly deletionPolicy: pulumi.Output<string>; /** * An optional description of this resource. */ readonly description: pulumi.Output<string | undefined>; /** * A map of extension names (for example, "ops-agent") to their corresponding policy configurations. * Structure is documented below. */ readonly extensionPolicies: pulumi.Output<outputs.compute.ZoneVmExtensionPolicyExtensionPolicy[]>; /** * Selectors to target VMs for this policy. * Structure is documented below. */ readonly instanceSelectors: pulumi.Output<outputs.compute.ZoneVmExtensionPolicyInstanceSelector[] | undefined>; /** * Type of the resource. */ readonly kind: pulumi.Output<string>; /** * Indicates if this policy is managed by a global policy. */ readonly managedByGlobal: pulumi.Output<boolean>; /** * Name of the resource. Provided by the client when the resource is created. */ readonly name: pulumi.Output<string>; /** * Priority of this policy. */ readonly priority: pulumi.Output<number>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output<string>; /** * Current state of the policy. */ readonly state: pulumi.Output<string>; /** * Name of the zone for this request. */ readonly zone: pulumi.Output<string>; /** * Create a ZoneVmExtensionPolicy 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: ZoneVmExtensionPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ZoneVmExtensionPolicy resources. */ export interface ZoneVmExtensionPolicyState { /** * Creation timestamp in RFC3339 text format. */ creationTimestamp?: pulumi.Input<string | undefined>; /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ deletionPolicy?: pulumi.Input<string | undefined>; /** * An optional description of this resource. */ description?: pulumi.Input<string | undefined>; /** * A map of extension names (for example, "ops-agent") to their corresponding policy configurations. * Structure is documented below. */ extensionPolicies?: pulumi.Input<pulumi.Input<inputs.compute.ZoneVmExtensionPolicyExtensionPolicy>[] | undefined>; /** * Selectors to target VMs for this policy. * Structure is documented below. */ instanceSelectors?: pulumi.Input<pulumi.Input<inputs.compute.ZoneVmExtensionPolicyInstanceSelector>[] | undefined>; /** * Type of the resource. */ kind?: pulumi.Input<string | undefined>; /** * Indicates if this policy is managed by a global policy. */ managedByGlobal?: pulumi.Input<boolean | undefined>; /** * Name of the resource. Provided by the client when the resource is created. */ name?: pulumi.Input<string | undefined>; /** * Priority of this policy. */ priority?: pulumi.Input<number | undefined>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string | undefined>; /** * Current state of the policy. */ state?: pulumi.Input<string | undefined>; /** * Name of the zone for this request. */ zone?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a ZoneVmExtensionPolicy resource. */ export interface ZoneVmExtensionPolicyArgs { /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ deletionPolicy?: pulumi.Input<string | undefined>; /** * An optional description of this resource. */ description?: pulumi.Input<string | undefined>; /** * A map of extension names (for example, "ops-agent") to their corresponding policy configurations. * Structure is documented below. */ extensionPolicies: pulumi.Input<pulumi.Input<inputs.compute.ZoneVmExtensionPolicyExtensionPolicy>[]>; /** * Selectors to target VMs for this policy. * Structure is documented below. */ instanceSelectors?: pulumi.Input<pulumi.Input<inputs.compute.ZoneVmExtensionPolicyInstanceSelector>[] | undefined>; /** * Name of the resource. Provided by the client when the resource is created. */ name?: pulumi.Input<string | undefined>; /** * Priority of this policy. */ priority?: pulumi.Input<number | undefined>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string | undefined>; /** * Name of the zone for this request. */ zone: pulumi.Input<string>; } //# sourceMappingURL=zoneVmExtensionPolicy.d.ts.map