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.servicenetworking.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.servicenetworking.PeeredDnsDomainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Allows management of a single peered DNS domain for an existing Google Cloud Platform project.
* When using Google Cloud DNS to manage internal DNS, create peered DNS domains to make your DNS available to services like Google Cloud Build.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const name = new gcp.servicenetworking.PeeredDnsDomain("name", {
* project: "10000000",
* name: "example-com",
* network: "default",
* dnsSuffix: "example.com.",
* service: "peering-service",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* name = gcp.servicenetworking.PeeredDnsDomain("name",
* project="10000000",
* name="example-com",
* network="default",
* dns_suffix="example.com.",
* service="peering-service")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var name = new Gcp.ServiceNetworking.PeeredDnsDomain("name", new()
* {
* Project = "10000000",
* Name = "example-com",
* Network = "default",
* DnsSuffix = "example.com.",
* Service = "peering-service",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/servicenetworking"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := servicenetworking.NewPeeredDnsDomain(ctx, "name", &servicenetworking.PeeredDnsDomainArgs{
* Project: pulumi.String("10000000"),
* Name: pulumi.String("example-com"),
* Network: pulumi.String("default"),
* DnsSuffix: pulumi.String("example.com."),
* Service: pulumi.String("peering-service"),
* })
* 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.servicenetworking.PeeredDnsDomain;
* import com.pulumi.gcp.servicenetworking.PeeredDnsDomainArgs;
* 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 name = new PeeredDnsDomain("name", PeeredDnsDomainArgs.builder()
* .project(10000000)
* .name("example-com")
* .network("default")
* .dnsSuffix("example.com.")
* .service("peering-service")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* name:
* type: gcp:servicenetworking:PeeredDnsDomain
* properties:
* project: 1e+07
* name: example-com
* network: default
* dnsSuffix: example.com.
* service: peering-service
* ```
*
* ## Import
* Project peered DNS domains can be imported using the `service`, `project`, `network` and `name`, where:
* - `service` is the service connection, defaults to `servicenetworking.googleapis.com`.
* - `project` is the producer project name.
* - `network` is the consumer network name.
* - `name` is the name of your peered DNS domain.
* * `services/{service}/projects/{project}/global/networks/{network}/peeredDnsDomains/{name}`
* When using the `pulumi import` command, project peered DNS domains can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:servicenetworking/peeredDnsDomain:PeeredDnsDomain default services/{service}/projects/{project}/global/networks/{network}/peeredDnsDomains/{name}
* ```
* @property dnsSuffix The DNS domain suffix of the peered DNS domain. Make sure to suffix with a `.` (dot).
* @property name Internal name used for the peered DNS domain.
* @property network The network in the consumer project.
* @property project The producer project number. If not provided, the provider project is used.
* @property service Private service connection between service and consumer network, defaults to `servicenetworking.googleapis.com`
*/
public data class PeeredDnsDomainArgs(
public val dnsSuffix: Output? = null,
public val name: Output? = null,
public val network: Output? = null,
public val project: Output? = null,
public val service: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.servicenetworking.PeeredDnsDomainArgs =
com.pulumi.gcp.servicenetworking.PeeredDnsDomainArgs.builder()
.dnsSuffix(dnsSuffix?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.network(network?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.service(service?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PeeredDnsDomainArgs].
*/
@PulumiTagMarker
public class PeeredDnsDomainArgsBuilder internal constructor() {
private var dnsSuffix: Output? = null
private var name: Output? = null
private var network: Output? = null
private var project: Output? = null
private var service: Output? = null
/**
* @param value The DNS domain suffix of the peered DNS domain. Make sure to suffix with a `.` (dot).
*/
@JvmName("fnxxxchweogmohqs")
public suspend fun dnsSuffix(`value`: Output) {
this.dnsSuffix = value
}
/**
* @param value Internal name used for the peered DNS domain.
*/
@JvmName("exufahrvxbbppjxd")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The network in the consumer project.
*/
@JvmName("ajgbyqijhmgvqdlc")
public suspend fun network(`value`: Output) {
this.network = value
}
/**
* @param value The producer project number. If not provided, the provider project is used.
*/
@JvmName("ttshandgoixarthi")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value Private service connection between service and consumer network, defaults to `servicenetworking.googleapis.com`
*/
@JvmName("siubrgimhqbobdfo")
public suspend fun service(`value`: Output) {
this.service = value
}
/**
* @param value The DNS domain suffix of the peered DNS domain. Make sure to suffix with a `.` (dot).
*/
@JvmName("aqrwcyjoxwromtds")
public suspend fun dnsSuffix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dnsSuffix = mapped
}
/**
* @param value Internal name used for the peered DNS domain.
*/
@JvmName("dnrktcrntxifiwaw")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The network in the consumer project.
*/
@JvmName("jqesviyflhfakyan")
public suspend fun network(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.network = mapped
}
/**
* @param value The producer project number. If not provided, the provider project is used.
*/
@JvmName("ptuxvkstvxflnkhj")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value Private service connection between service and consumer network, defaults to `servicenetworking.googleapis.com`
*/
@JvmName("ktskfkdjpxymtrpj")
public suspend fun service(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.service = mapped
}
internal fun build(): PeeredDnsDomainArgs = PeeredDnsDomainArgs(
dnsSuffix = dnsSuffix,
name = name,
network = network,
project = project,
service = service,
)
}