gcp.servicenetworking.PeeredDnsDomain
Explore with Pulumi AI
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
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()
{
DnsSuffix = "example.com.",
Network = "default",
Project = "10000000",
Service = "peering-service",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/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{
DnsSuffix: pulumi.String("example.com."),
Network: pulumi.String("default"),
Project: pulumi.String("10000000"),
Service: pulumi.String("peering-service"),
})
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.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()
.dnsSuffix("example.com.")
.network("default")
.project(10000000)
.service("peering-service")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
name = gcp.servicenetworking.PeeredDnsDomain("name",
dns_suffix="example.com.",
network="default",
project="10000000",
service="peering-service")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const name = new gcp.servicenetworking.PeeredDnsDomain("name", {
dnsSuffix: "example.com.",
network: "default",
project: "10000000",
service: "peering-service",
});
resources:
name:
type: gcp:servicenetworking:PeeredDnsDomain
properties:
dnsSuffix: example.com.
network: default
project: 1e+07
service: peering-service
Create PeeredDnsDomain Resource
new PeeredDnsDomain(name: string, args: PeeredDnsDomainArgs, opts?: CustomResourceOptions);
@overload
def PeeredDnsDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
dns_suffix: Optional[str] = None,
name: Optional[str] = None,
network: Optional[str] = None,
project: Optional[str] = None,
service: Optional[str] = None)
@overload
def PeeredDnsDomain(resource_name: str,
args: PeeredDnsDomainArgs,
opts: Optional[ResourceOptions] = None)
func NewPeeredDnsDomain(ctx *Context, name string, args PeeredDnsDomainArgs, opts ...ResourceOption) (*PeeredDnsDomain, error)
public PeeredDnsDomain(string name, PeeredDnsDomainArgs args, CustomResourceOptions? opts = null)
public PeeredDnsDomain(String name, PeeredDnsDomainArgs args)
public PeeredDnsDomain(String name, PeeredDnsDomainArgs args, CustomResourceOptions options)
type: gcp:servicenetworking:PeeredDnsDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PeeredDnsDomainArgs
- 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 PeeredDnsDomainArgs
- 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 PeeredDnsDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PeeredDnsDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PeeredDnsDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PeeredDnsDomain 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 PeeredDnsDomain resource accepts the following input properties:
- Dns
Suffix string The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- Network string
The network in the consumer project.
- Name string
Internal name used for the peered DNS domain.
- Project string
The producer project number. If not provided, the provider project is used.
- Service string
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- Dns
Suffix string The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- Network string
The network in the consumer project.
- Name string
Internal name used for the peered DNS domain.
- Project string
The producer project number. If not provided, the provider project is used.
- Service string
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- dns
Suffix String The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- network String
The network in the consumer project.
- name String
Internal name used for the peered DNS domain.
- project String
The producer project number. If not provided, the provider project is used.
- service String
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- dns
Suffix string The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- network string
The network in the consumer project.
- name string
Internal name used for the peered DNS domain.
- project string
The producer project number. If not provided, the provider project is used.
- service string
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- dns_
suffix str The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- network str
The network in the consumer project.
- name str
Internal name used for the peered DNS domain.
- project str
The producer project number. If not provided, the provider project is used.
- service str
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- dns
Suffix String The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- network String
The network in the consumer project.
- name String
Internal name used for the peered DNS domain.
- project String
The producer project number. If not provided, the provider project is used.
- service String
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
Outputs
All input properties are implicitly available as output properties. Additionally, the PeeredDnsDomain resource produces the following output properties:
Look up Existing PeeredDnsDomain Resource
Get an existing PeeredDnsDomain 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?: PeeredDnsDomainState, opts?: CustomResourceOptions): PeeredDnsDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dns_suffix: Optional[str] = None,
name: Optional[str] = None,
network: Optional[str] = None,
parent: Optional[str] = None,
project: Optional[str] = None,
service: Optional[str] = None) -> PeeredDnsDomain
func GetPeeredDnsDomain(ctx *Context, name string, id IDInput, state *PeeredDnsDomainState, opts ...ResourceOption) (*PeeredDnsDomain, error)
public static PeeredDnsDomain Get(string name, Input<string> id, PeeredDnsDomainState? state, CustomResourceOptions? opts = null)
public static PeeredDnsDomain get(String name, Output<String> id, PeeredDnsDomainState 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.
- Dns
Suffix string The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- Name string
Internal name used for the peered DNS domain.
- Network string
The network in the consumer project.
- Parent string
an identifier for the resource with format
services/{{service}}/projects/{{project}}/global/networks/{{network}}
- Project string
The producer project number. If not provided, the provider project is used.
- Service string
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- Dns
Suffix string The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- Name string
Internal name used for the peered DNS domain.
- Network string
The network in the consumer project.
- Parent string
an identifier for the resource with format
services/{{service}}/projects/{{project}}/global/networks/{{network}}
- Project string
The producer project number. If not provided, the provider project is used.
- Service string
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- dns
Suffix String The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- name String
Internal name used for the peered DNS domain.
- network String
The network in the consumer project.
- parent String
an identifier for the resource with format
services/{{service}}/projects/{{project}}/global/networks/{{network}}
- project String
The producer project number. If not provided, the provider project is used.
- service String
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- dns
Suffix string The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- name string
Internal name used for the peered DNS domain.
- network string
The network in the consumer project.
- parent string
an identifier for the resource with format
services/{{service}}/projects/{{project}}/global/networks/{{network}}
- project string
The producer project number. If not provided, the provider project is used.
- service string
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- dns_
suffix str The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- name str
Internal name used for the peered DNS domain.
- network str
The network in the consumer project.
- parent str
an identifier for the resource with format
services/{{service}}/projects/{{project}}/global/networks/{{network}}
- project str
The producer project number. If not provided, the provider project is used.
- service str
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
- dns
Suffix String The DNS domain suffix of the peered DNS domain. Make sure to suffix with a
.
(dot).- name String
Internal name used for the peered DNS domain.
- network String
The network in the consumer project.
- parent String
an identifier for the resource with format
services/{{service}}/projects/{{project}}/global/networks/{{network}}
- project String
The producer project number. If not provided, the provider project is used.
- service String
Private service connection between service and consumer network, defaults to
servicenetworking.googleapis.com
Import
Project peered DNS domains can be imported using the service
, project
, network
and name
, e.g.
$ pulumi import gcp:servicenetworking/peeredDnsDomain:PeeredDnsDomain my_domain services/{service}/projects/{project}/global/networks/{network}/peeredDnsDomains/{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.
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.