UNPKG

@pulumi/gcp

Version:

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

102 lines (101 loc) 3.95 kB
import * as pulumi from "@pulumi/pulumi"; /** * Configures the Google Compute Engine * [Default Network Tier](https://cloud.google.com/network-tiers/docs/using-network-service-tiers#setting_the_tier_for_all_resources_in_a_project) * for a project. * * For more information, see, * [the Project API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/projects/setDefaultNetworkTier). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = new gcp.compute.ProjectDefaultNetworkTier("default", {networkTier: "PREMIUM"}); * ``` * * ## Import * * Compute Engine Default Network Tier can be imported using any of these accepted formats: * * * `{{project_id}}` * * When using the `pulumi import` command, Compute Engine Default Network Tier can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:compute/projectDefaultNetworkTier:ProjectDefaultNetworkTier default {{project_id}} * ``` */ export declare class ProjectDefaultNetworkTier extends pulumi.CustomResource { /** * Get an existing ProjectDefaultNetworkTier 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?: ProjectDefaultNetworkTierState, opts?: pulumi.CustomResourceOptions): ProjectDefaultNetworkTier; /** * Returns true if the given object is an instance of ProjectDefaultNetworkTier. 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 ProjectDefaultNetworkTier; /** * The default network tier to be configured for the project. * This field can take the following values: `PREMIUM` or `STANDARD`. * * - - - */ readonly networkTier: pulumi.Output<string>; /** * 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>; /** * Create a ProjectDefaultNetworkTier 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: ProjectDefaultNetworkTierArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProjectDefaultNetworkTier resources. */ export interface ProjectDefaultNetworkTierState { /** * The default network tier to be configured for the project. * This field can take the following values: `PREMIUM` or `STANDARD`. * * - - - */ networkTier?: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: pulumi.Input<string>; } /** * The set of arguments for constructing a ProjectDefaultNetworkTier resource. */ export interface ProjectDefaultNetworkTierArgs { /** * The default network tier to be configured for the project. * This field can take the following values: `PREMIUM` or `STANDARD`. * * - - - */ networkTier: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: pulumi.Input<string>; }