Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
/**
* Builder for [NetworkEdgeSecurityService].
*/
@PulumiTagMarker
public class NetworkEdgeSecurityServiceResourceBuilder internal constructor() {
public var name: String? = null
public var args: NetworkEdgeSecurityServiceArgs = NetworkEdgeSecurityServiceArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend NetworkEdgeSecurityServiceArgsBuilder.() -> Unit) {
val builder = NetworkEdgeSecurityServiceArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): NetworkEdgeSecurityService {
val builtJavaResource =
com.pulumi.gcp.compute.NetworkEdgeSecurityService(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return NetworkEdgeSecurityService(builtJavaResource)
}
}
/**
* ## 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}}
* ```
*/
public class NetworkEdgeSecurityService internal constructor(
override val javaResource: com.pulumi.gcp.compute.NetworkEdgeSecurityService,
) : KotlinCustomResource(javaResource, NetworkEdgeSecurityServiceMapper) {
/**
* Creation timestamp in RFC3339 text format.
*/
public val creationTimestamp: Output
get() = javaResource.creationTimestamp().applyValue({ args0 -> args0 })
/**
* Free-text description of the resource.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService.
* An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, otherwise the request will fail with error 412 conditionNotMet.
*/
public val fingerprint: Output
get() = javaResource.fingerprint().applyValue({ args0 -> args0 })
/**
* Name of the resource. Provided by the client when the resource is created.
* - - -
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
public val project: Output
get() = javaResource.project().applyValue({ args0 -> args0 })
/**
* The region of the gateway security policy.
*/
public val region: Output?
get() = javaResource.region().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The resource URL for the network edge security service associated with this network edge security service.
*/
public val securityPolicy: Output?
get() = javaResource.securityPolicy().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Server-defined URL for the resource.
*/
public val selfLink: Output
get() = javaResource.selfLink().applyValue({ args0 -> args0 })
/**
* Server-defined URL for this resource with the resource id.
*/
public val selfLinkWithServiceId: Output
get() = javaResource.selfLinkWithServiceId().applyValue({ args0 -> args0 })
/**
* The unique identifier for the resource. This identifier is defined by the server.
*/
public val serviceId: Output
get() = javaResource.serviceId().applyValue({ args0 -> args0 })
}
public object NetworkEdgeSecurityServiceMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.gcp.compute.NetworkEdgeSecurityService::class == javaResource::class
override fun map(javaResource: Resource): NetworkEdgeSecurityService =
NetworkEdgeSecurityService(javaResource as com.pulumi.gcp.compute.NetworkEdgeSecurityService)
}
/**
* @see [NetworkEdgeSecurityService].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [NetworkEdgeSecurityService].
*/
public suspend fun networkEdgeSecurityService(
name: String,
block: suspend NetworkEdgeSecurityServiceResourceBuilder.() -> Unit,
): NetworkEdgeSecurityService {
val builder = NetworkEdgeSecurityServiceResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [NetworkEdgeSecurityService].
* @param name The _unique_ name of the resulting resource.
*/
public fun networkEdgeSecurityService(name: String): NetworkEdgeSecurityService {
val builder = NetworkEdgeSecurityServiceResourceBuilder()
builder.name(name)
return builder.build()
}