gcp.compute.ProjectDefaultNetworkTier
Explore with Pulumi AI
Configures the Google Compute Engine Default Network Tier for a project.
For more information, see, the Project API documentation.
Example Usage
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 main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/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
})
}
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());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.compute.ProjectDefaultNetworkTier("default", network_tier="PREMIUM")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.compute.ProjectDefaultNetworkTier("default", {networkTier: "PREMIUM"});
resources:
default:
type: gcp:compute:ProjectDefaultNetworkTier
properties:
networkTier: PREMIUM
Create ProjectDefaultNetworkTier Resource
new ProjectDefaultNetworkTier(name: string, args: ProjectDefaultNetworkTierArgs, opts?: CustomResourceOptions);
@overload
def ProjectDefaultNetworkTier(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_tier: Optional[str] = None,
project: Optional[str] = None)
@overload
def ProjectDefaultNetworkTier(resource_name: str,
args: ProjectDefaultNetworkTierArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The ProjectDefaultNetworkTier resource accepts the following input properties:
- Network
Tier string The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Network
Tier string The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- network
Tier String The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- network
Tier string The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- 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
orSTANDARD
.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- network
Tier String The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- 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.
- Network
Tier string The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Network
Tier string The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- network
Tier String The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- network
Tier string The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- 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
orSTANDARD
.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- network
Tier String The default network tier to be configured for the project. This field can take the following values:
PREMIUM
orSTANDARD
.- 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}}
In Terraform v1.5.0 and later, use an import
block to import Compute Engine Default Network Tier using one of the formats above. For exampletf import {
id = “{{project_id}}”
to = google_compute_project_default_network_tier.default }
$ pulumi import gcp:compute/projectDefaultNetworkTier:ProjectDefaultNetworkTier When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), 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}}
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.