1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. ProjectDefaultNetworkTier
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.compute.ProjectDefaultNetworkTier

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    Configures the Google Compute Engine Default Network Tier for a project.

    For more information, see, the Project API documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.compute.ProjectDefaultNetworkTier("default", {networkTier: "PREMIUM"});
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.compute.ProjectDefaultNetworkTier("default", network_tier="PREMIUM")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewProjectDefaultNetworkTier(ctx, "default", &compute.ProjectDefaultNetworkTierArgs{
    			NetworkTier: pulumi.String("PREMIUM"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Compute.ProjectDefaultNetworkTier("default", new()
        {
            NetworkTier = "PREMIUM",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.ProjectDefaultNetworkTier;
    import com.pulumi.gcp.compute.ProjectDefaultNetworkTierArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new ProjectDefaultNetworkTier("default", ProjectDefaultNetworkTierArgs.builder()
                .networkTier("PREMIUM")
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:compute:ProjectDefaultNetworkTier
        properties:
          networkTier: PREMIUM
    

    Create ProjectDefaultNetworkTier Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProjectDefaultNetworkTier(name: string, args: ProjectDefaultNetworkTierArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectDefaultNetworkTier(resource_name: str,
                                  args: ProjectDefaultNetworkTierArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectDefaultNetworkTier(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  network_tier: Optional[str] = None,
                                  project: Optional[str] = None)
    func NewProjectDefaultNetworkTier(ctx *Context, name string, args ProjectDefaultNetworkTierArgs, opts ...ResourceOption) (*ProjectDefaultNetworkTier, error)
    public ProjectDefaultNetworkTier(string name, ProjectDefaultNetworkTierArgs args, CustomResourceOptions? opts = null)
    public ProjectDefaultNetworkTier(String name, ProjectDefaultNetworkTierArgs args)
    public ProjectDefaultNetworkTier(String name, ProjectDefaultNetworkTierArgs args, CustomResourceOptions options)
    
    type: gcp:compute:ProjectDefaultNetworkTier
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ProjectDefaultNetworkTierArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProjectDefaultNetworkTierArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProjectDefaultNetworkTierArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectDefaultNetworkTierArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectDefaultNetworkTierArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var projectDefaultNetworkTierResource = new Gcp.Compute.ProjectDefaultNetworkTier("projectDefaultNetworkTierResource", new()
    {
        NetworkTier = "string",
        Project = "string",
    });
    
    example, err := compute.NewProjectDefaultNetworkTier(ctx, "projectDefaultNetworkTierResource", &compute.ProjectDefaultNetworkTierArgs{
    	NetworkTier: pulumi.String("string"),
    	Project:     pulumi.String("string"),
    })
    
    var projectDefaultNetworkTierResource = new ProjectDefaultNetworkTier("projectDefaultNetworkTierResource", ProjectDefaultNetworkTierArgs.builder()
        .networkTier("string")
        .project("string")
        .build());
    
    project_default_network_tier_resource = gcp.compute.ProjectDefaultNetworkTier("projectDefaultNetworkTierResource",
        network_tier="string",
        project="string")
    
    const projectDefaultNetworkTierResource = new gcp.compute.ProjectDefaultNetworkTier("projectDefaultNetworkTierResource", {
        networkTier: "string",
        project: "string",
    });
    
    type: gcp:compute:ProjectDefaultNetworkTier
    properties:
        networkTier: string
        project: string
    

    ProjectDefaultNetworkTier Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ProjectDefaultNetworkTier resource accepts the following input properties:

    NetworkTier string
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    NetworkTier string
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    networkTier String
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    networkTier string
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    network_tier str
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    networkTier String
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProjectDefaultNetworkTier resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ProjectDefaultNetworkTier Resource

    Get an existing ProjectDefaultNetworkTier resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ProjectDefaultNetworkTierState, opts?: CustomResourceOptions): ProjectDefaultNetworkTier
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            network_tier: Optional[str] = None,
            project: Optional[str] = None) -> ProjectDefaultNetworkTier
    func GetProjectDefaultNetworkTier(ctx *Context, name string, id IDInput, state *ProjectDefaultNetworkTierState, opts ...ResourceOption) (*ProjectDefaultNetworkTier, error)
    public static ProjectDefaultNetworkTier Get(string name, Input<string> id, ProjectDefaultNetworkTierState? state, CustomResourceOptions? opts = null)
    public static ProjectDefaultNetworkTier get(String name, Output<String> id, ProjectDefaultNetworkTierState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    NetworkTier string
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    NetworkTier string
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    networkTier String
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    networkTier string
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    network_tier str
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    networkTier String
    The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    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:

    $ pulumi import gcp:compute/projectDefaultNetworkTier:ProjectDefaultNetworkTier default {{project_id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi