com.pulumi.gcp.compute.kotlin.ProjectDefaultNetworkTierArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.ProjectDefaultNetworkTierArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* 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"});
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.compute.ProjectDefaultNetworkTier("default", network_tier="PREMIUM")
* ```
* ```csharp
* 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",
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:compute:ProjectDefaultNetworkTier
* properties:
* 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}}
* ```
* @property networkTier The default network tier to be configured for the project.
* This field can take the following values: `PREMIUM` or `STANDARD`.
* - - -
* @property project The ID of the project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
public data class ProjectDefaultNetworkTierArgs(
public val networkTier: Output? = null,
public val project: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.ProjectDefaultNetworkTierArgs =
com.pulumi.gcp.compute.ProjectDefaultNetworkTierArgs.builder()
.networkTier(networkTier?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ProjectDefaultNetworkTierArgs].
*/
@PulumiTagMarker
public class ProjectDefaultNetworkTierArgsBuilder internal constructor() {
private var networkTier: Output? = null
private var project: Output? = null
/**
* @param value The default network tier to be configured for the project.
* This field can take the following values: `PREMIUM` or `STANDARD`.
* - - -
*/
@JvmName("onhujwbdywvuoxqx")
public suspend fun networkTier(`value`: Output) {
this.networkTier = value
}
/**
* @param value The ID of the project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
@JvmName("cteavpcveasjdkvh")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The default network tier to be configured for the project.
* This field can take the following values: `PREMIUM` or `STANDARD`.
* - - -
*/
@JvmName("qpevwtojcleiexhf")
public suspend fun networkTier(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.networkTier = mapped
}
/**
* @param value The ID of the project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
@JvmName("dngvbejasodondla")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): ProjectDefaultNetworkTierArgs = ProjectDefaultNetworkTierArgs(
networkTier = networkTier,
project = project,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy