com.pulumi.gcp.compute.kotlin.NetworkEdgeSecurityServiceArgs.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.NetworkEdgeSecurityServiceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ## Example Usage
* ### Compute Network Edge Security Service Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const _default = new gcp.compute.NetworkEdgeSecurityService("default", {
* name: "my-edge-security-service",
* region: "us-east1",
* description: "My basic resource",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.compute.NetworkEdgeSecurityService("default",
* name="my-edge-security-service",
* region="us-east1",
* description="My basic resource")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var @default = new Gcp.Compute.NetworkEdgeSecurityService("default", new()
* {
* Name = "my-edge-security-service",
* Region = "us-east1",
* Description = "My basic resource",
* });
* });
* ```
* ```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.NewNetworkEdgeSecurityService(ctx, "default", &compute.NetworkEdgeSecurityServiceArgs{
* Name: pulumi.String("my-edge-security-service"),
* Region: pulumi.String("us-east1"),
* Description: pulumi.String("My basic resource"),
* })
* 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.NetworkEdgeSecurityService;
* import com.pulumi.gcp.compute.NetworkEdgeSecurityServiceArgs;
* 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 NetworkEdgeSecurityService("default", NetworkEdgeSecurityServiceArgs.builder()
* .name("my-edge-security-service")
* .region("us-east1")
* .description("My basic resource")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:compute:NetworkEdgeSecurityService
* properties:
* name: my-edge-security-service
* region: us-east1
* description: My basic resource
* ```
*
* ## Import
* NetworkEdgeSecurityService can be imported using any of these accepted formats:
* * `projects/{{project}}/regions/{{region}}/networkEdgeSecurityServices/{{name}}`
* * `{{project}}/{{region}}/{{name}}`
* * `{{region}}/{{name}}`
* * `{{name}}`
* When using the `pulumi import` command, NetworkEdgeSecurityService can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:compute/networkEdgeSecurityService:NetworkEdgeSecurityService default projects/{{project}}/regions/{{region}}/networkEdgeSecurityServices/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/networkEdgeSecurityService:NetworkEdgeSecurityService default {{project}}/{{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/networkEdgeSecurityService:NetworkEdgeSecurityService default {{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/networkEdgeSecurityService:NetworkEdgeSecurityService default {{name}}
* ```
* @property description Free-text description of the resource.
* @property name Name of the resource. Provided by the client when the resource is created.
* - - -
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property region The region of the gateway security policy.
* @property securityPolicy The resource URL for the network edge security service associated with this network edge security service.
*/
public data class NetworkEdgeSecurityServiceArgs(
public val description: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
public val region: Output? = null,
public val securityPolicy: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.NetworkEdgeSecurityServiceArgs =
com.pulumi.gcp.compute.NetworkEdgeSecurityServiceArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.region(region?.applyValue({ args0 -> args0 }))
.securityPolicy(securityPolicy?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NetworkEdgeSecurityServiceArgs].
*/
@PulumiTagMarker
public class NetworkEdgeSecurityServiceArgsBuilder internal constructor() {
private var description: Output? = null
private var name: Output? = null
private var project: Output? = null
private var region: Output? = null
private var securityPolicy: Output? = null
/**
* @param value Free-text description of the resource.
*/
@JvmName("jrjuagecydvkspfi")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Name of the resource. Provided by the client when the resource is created.
* - - -
*/
@JvmName("wbiecpmgpeolkkph")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("feggmgghxywxhkto")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The region of the gateway security policy.
*/
@JvmName("jxyjlwrmyfukoado")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value The resource URL for the network edge security service associated with this network edge security service.
*/
@JvmName("rxpbppceoesveumh")
public suspend fun securityPolicy(`value`: Output) {
this.securityPolicy = value
}
/**
* @param value Free-text description of the resource.
*/
@JvmName("rjmrkvpgcxojvjaw")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Name of the resource. Provided by the client when the resource is created.
* - - -
*/
@JvmName("ffcddhpmhermqfew")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("witdaxsnxgrfhisy")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value The region of the gateway security policy.
*/
@JvmName("dmmsmrrkoacicjsg")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.region = mapped
}
/**
* @param value The resource URL for the network edge security service associated with this network edge security service.
*/
@JvmName("euufxrkwwjfjfjtj")
public suspend fun securityPolicy(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.securityPolicy = mapped
}
internal fun build(): NetworkEdgeSecurityServiceArgs = NetworkEdgeSecurityServiceArgs(
description = description,
name = name,
project = project,
region = region,
securityPolicy = securityPolicy,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy