Documentation ¶
Index ¶
- type Connection
- type ConnectionArgs
- type ConnectionArray
- func (ConnectionArray) ElementType() reflect.Type
- func (i ConnectionArray) ToConnectionArrayOutput() ConnectionArrayOutput
- func (i ConnectionArray) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput
- func (i ConnectionArray) ToOutput(ctx context.Context) pulumix.Output[[]*Connection]
- type ConnectionArrayInput
- type ConnectionArrayOutput
- func (ConnectionArrayOutput) ElementType() reflect.Type
- func (o ConnectionArrayOutput) Index(i pulumi.IntInput) ConnectionOutput
- func (o ConnectionArrayOutput) ToConnectionArrayOutput() ConnectionArrayOutput
- func (o ConnectionArrayOutput) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput
- func (o ConnectionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Connection]
- type ConnectionInput
- type ConnectionMap
- func (ConnectionMap) ElementType() reflect.Type
- func (i ConnectionMap) ToConnectionMapOutput() ConnectionMapOutput
- func (i ConnectionMap) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput
- func (i ConnectionMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Connection]
- type ConnectionMapInput
- type ConnectionMapOutput
- func (ConnectionMapOutput) ElementType() reflect.Type
- func (o ConnectionMapOutput) MapIndex(k pulumi.StringInput) ConnectionOutput
- func (o ConnectionMapOutput) ToConnectionMapOutput() ConnectionMapOutput
- func (o ConnectionMapOutput) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput
- func (o ConnectionMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Connection]
- type ConnectionOutput
- func (ConnectionOutput) ElementType() reflect.Type
- func (o ConnectionOutput) Network() pulumi.StringOutput
- func (o ConnectionOutput) Peering() pulumi.StringOutput
- func (o ConnectionOutput) ReservedPeeringRanges() pulumi.StringArrayOutput
- func (o ConnectionOutput) Service() pulumi.StringOutput
- func (o ConnectionOutput) ToConnectionOutput() ConnectionOutput
- func (o ConnectionOutput) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput
- func (o ConnectionOutput) ToOutput(ctx context.Context) pulumix.Output[*Connection]
- type ConnectionState
- type LookupPeeredDnsDomainArgs
- type LookupPeeredDnsDomainOutputArgs
- type LookupPeeredDnsDomainResult
- type LookupPeeredDnsDomainResultOutput
- func (o LookupPeeredDnsDomainResultOutput) DnsSuffix() pulumi.StringOutput
- func (LookupPeeredDnsDomainResultOutput) ElementType() reflect.Type
- func (o LookupPeeredDnsDomainResultOutput) Id() pulumi.StringOutput
- func (o LookupPeeredDnsDomainResultOutput) Name() pulumi.StringOutput
- func (o LookupPeeredDnsDomainResultOutput) Network() pulumi.StringOutput
- func (o LookupPeeredDnsDomainResultOutput) Parent() pulumi.StringOutput
- func (o LookupPeeredDnsDomainResultOutput) Project() pulumi.StringOutput
- func (o LookupPeeredDnsDomainResultOutput) Service() pulumi.StringOutput
- func (o LookupPeeredDnsDomainResultOutput) ToLookupPeeredDnsDomainResultOutput() LookupPeeredDnsDomainResultOutput
- func (o LookupPeeredDnsDomainResultOutput) ToLookupPeeredDnsDomainResultOutputWithContext(ctx context.Context) LookupPeeredDnsDomainResultOutput
- func (o LookupPeeredDnsDomainResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupPeeredDnsDomainResult]
- type PeeredDnsDomain
- func (*PeeredDnsDomain) ElementType() reflect.Type
- func (i *PeeredDnsDomain) ToOutput(ctx context.Context) pulumix.Output[*PeeredDnsDomain]
- func (i *PeeredDnsDomain) ToPeeredDnsDomainOutput() PeeredDnsDomainOutput
- func (i *PeeredDnsDomain) ToPeeredDnsDomainOutputWithContext(ctx context.Context) PeeredDnsDomainOutput
- type PeeredDnsDomainArgs
- type PeeredDnsDomainArray
- func (PeeredDnsDomainArray) ElementType() reflect.Type
- func (i PeeredDnsDomainArray) ToOutput(ctx context.Context) pulumix.Output[[]*PeeredDnsDomain]
- func (i PeeredDnsDomainArray) ToPeeredDnsDomainArrayOutput() PeeredDnsDomainArrayOutput
- func (i PeeredDnsDomainArray) ToPeeredDnsDomainArrayOutputWithContext(ctx context.Context) PeeredDnsDomainArrayOutput
- type PeeredDnsDomainArrayInput
- type PeeredDnsDomainArrayOutput
- func (PeeredDnsDomainArrayOutput) ElementType() reflect.Type
- func (o PeeredDnsDomainArrayOutput) Index(i pulumi.IntInput) PeeredDnsDomainOutput
- func (o PeeredDnsDomainArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*PeeredDnsDomain]
- func (o PeeredDnsDomainArrayOutput) ToPeeredDnsDomainArrayOutput() PeeredDnsDomainArrayOutput
- func (o PeeredDnsDomainArrayOutput) ToPeeredDnsDomainArrayOutputWithContext(ctx context.Context) PeeredDnsDomainArrayOutput
- type PeeredDnsDomainInput
- type PeeredDnsDomainMap
- func (PeeredDnsDomainMap) ElementType() reflect.Type
- func (i PeeredDnsDomainMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*PeeredDnsDomain]
- func (i PeeredDnsDomainMap) ToPeeredDnsDomainMapOutput() PeeredDnsDomainMapOutput
- func (i PeeredDnsDomainMap) ToPeeredDnsDomainMapOutputWithContext(ctx context.Context) PeeredDnsDomainMapOutput
- type PeeredDnsDomainMapInput
- type PeeredDnsDomainMapOutput
- func (PeeredDnsDomainMapOutput) ElementType() reflect.Type
- func (o PeeredDnsDomainMapOutput) MapIndex(k pulumi.StringInput) PeeredDnsDomainOutput
- func (o PeeredDnsDomainMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*PeeredDnsDomain]
- func (o PeeredDnsDomainMapOutput) ToPeeredDnsDomainMapOutput() PeeredDnsDomainMapOutput
- func (o PeeredDnsDomainMapOutput) ToPeeredDnsDomainMapOutputWithContext(ctx context.Context) PeeredDnsDomainMapOutput
- type PeeredDnsDomainOutput
- func (o PeeredDnsDomainOutput) DnsSuffix() pulumi.StringOutput
- func (PeeredDnsDomainOutput) ElementType() reflect.Type
- func (o PeeredDnsDomainOutput) Name() pulumi.StringOutput
- func (o PeeredDnsDomainOutput) Network() pulumi.StringOutput
- func (o PeeredDnsDomainOutput) Parent() pulumi.StringOutput
- func (o PeeredDnsDomainOutput) Project() pulumi.StringOutput
- func (o PeeredDnsDomainOutput) Service() pulumi.StringPtrOutput
- func (o PeeredDnsDomainOutput) ToOutput(ctx context.Context) pulumix.Output[*PeeredDnsDomain]
- func (o PeeredDnsDomainOutput) ToPeeredDnsDomainOutput() PeeredDnsDomainOutput
- func (o PeeredDnsDomainOutput) ToPeeredDnsDomainOutputWithContext(ctx context.Context) PeeredDnsDomainOutput
- type PeeredDnsDomainState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { pulumi.CustomResourceState // Name of VPC network connected with service producers using VPC peering. Network pulumi.StringOutput `pulumi:"network"` // (Computed) The name of the VPC Network Peering connection that was created by the service producer. Peering pulumi.StringOutput `pulumi:"peering"` // Named IP address range(s) of PEERING type reserved for // this service provider. Note that invoking this method with a different range when connection // is already established will not reallocate already provisioned service producer subnetworks. ReservedPeeringRanges pulumi.StringArrayOutput `pulumi:"reservedPeeringRanges"` // Provider peering service that is managing peering connectivity for a // service provider organization. For Google services that support this functionality it is // 'servicenetworking.googleapis.com'. Service pulumi.StringOutput `pulumi:"service"` }
Manages a private VPC connection with a GCP service provider. For more information see [the official documentation](https://cloud.google.com/vpc/docs/configure-private-services-access#creating-connection) and [API](https://cloud.google.com/service-infrastructure/docs/service-networking/reference/rest/v1/services.connections).
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute" "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 { peeringNetwork, err := compute.NewNetwork(ctx, "peeringNetwork", nil) if err != nil { return err } privateIpAlloc, err := compute.NewGlobalAddress(ctx, "privateIpAlloc", &compute.GlobalAddressArgs{ Purpose: pulumi.String("VPC_PEERING"), AddressType: pulumi.String("INTERNAL"), PrefixLength: pulumi.Int(16), Network: peeringNetwork.ID(), }) if err != nil { return err } _, err = servicenetworking.NewConnection(ctx, "default", &servicenetworking.ConnectionArgs{ Network: peeringNetwork.ID(), Service: pulumi.String("servicenetworking.googleapis.com"), ReservedPeeringRanges: pulumi.StringArray{ privateIpAlloc.Name, }, }) if err != nil { return err } _, err = compute.NewNetworkPeeringRoutesConfig(ctx, "peeringRoutes", &compute.NetworkPeeringRoutesConfigArgs{ Peering: _default.Peering, Network: peeringNetwork.Name, ImportCustomRoutes: pulumi.Bool(true), ExportCustomRoutes: pulumi.Bool(true), }) if err != nil { return err } return nil }) }
```
## Import
ServiceNetworkingConnection can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:servicenetworking/connection:Connection peering_connection {{peering-network}}:{{service}}
```
```sh
$ pulumi import gcp:servicenetworking/connection:Connection peering_connection /projects/{{project}}/global/networks/{{peering-network}}:{{service}}
```
func GetConnection ¶
func GetConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConnectionState, opts ...pulumi.ResourceOption) (*Connection, error)
GetConnection gets an existing Connection resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewConnection ¶
func NewConnection(ctx *pulumi.Context, name string, args *ConnectionArgs, opts ...pulumi.ResourceOption) (*Connection, error)
NewConnection registers a new resource with the given unique name, arguments, and options.
func (*Connection) ElementType ¶
func (*Connection) ElementType() reflect.Type
func (*Connection) ToConnectionOutput ¶
func (i *Connection) ToConnectionOutput() ConnectionOutput
func (*Connection) ToConnectionOutputWithContext ¶
func (i *Connection) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput
func (*Connection) ToOutput ¶ added in v6.65.1
func (i *Connection) ToOutput(ctx context.Context) pulumix.Output[*Connection]
type ConnectionArgs ¶
type ConnectionArgs struct { // Name of VPC network connected with service producers using VPC peering. Network pulumi.StringInput // Named IP address range(s) of PEERING type reserved for // this service provider. Note that invoking this method with a different range when connection // is already established will not reallocate already provisioned service producer subnetworks. ReservedPeeringRanges pulumi.StringArrayInput // Provider peering service that is managing peering connectivity for a // service provider organization. For Google services that support this functionality it is // 'servicenetworking.googleapis.com'. Service pulumi.StringInput }
The set of arguments for constructing a Connection resource.
func (ConnectionArgs) ElementType ¶
func (ConnectionArgs) ElementType() reflect.Type
type ConnectionArray ¶
type ConnectionArray []ConnectionInput
func (ConnectionArray) ElementType ¶
func (ConnectionArray) ElementType() reflect.Type
func (ConnectionArray) ToConnectionArrayOutput ¶
func (i ConnectionArray) ToConnectionArrayOutput() ConnectionArrayOutput
func (ConnectionArray) ToConnectionArrayOutputWithContext ¶
func (i ConnectionArray) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput
func (ConnectionArray) ToOutput ¶ added in v6.65.1
func (i ConnectionArray) ToOutput(ctx context.Context) pulumix.Output[[]*Connection]
type ConnectionArrayInput ¶
type ConnectionArrayInput interface { pulumi.Input ToConnectionArrayOutput() ConnectionArrayOutput ToConnectionArrayOutputWithContext(context.Context) ConnectionArrayOutput }
ConnectionArrayInput is an input type that accepts ConnectionArray and ConnectionArrayOutput values. You can construct a concrete instance of `ConnectionArrayInput` via:
ConnectionArray{ ConnectionArgs{...} }
type ConnectionArrayOutput ¶
type ConnectionArrayOutput struct{ *pulumi.OutputState }
func (ConnectionArrayOutput) ElementType ¶
func (ConnectionArrayOutput) ElementType() reflect.Type
func (ConnectionArrayOutput) Index ¶
func (o ConnectionArrayOutput) Index(i pulumi.IntInput) ConnectionOutput
func (ConnectionArrayOutput) ToConnectionArrayOutput ¶
func (o ConnectionArrayOutput) ToConnectionArrayOutput() ConnectionArrayOutput
func (ConnectionArrayOutput) ToConnectionArrayOutputWithContext ¶
func (o ConnectionArrayOutput) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput
func (ConnectionArrayOutput) ToOutput ¶ added in v6.65.1
func (o ConnectionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Connection]
type ConnectionInput ¶
type ConnectionInput interface { pulumi.Input ToConnectionOutput() ConnectionOutput ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput }
type ConnectionMap ¶
type ConnectionMap map[string]ConnectionInput
func (ConnectionMap) ElementType ¶
func (ConnectionMap) ElementType() reflect.Type
func (ConnectionMap) ToConnectionMapOutput ¶
func (i ConnectionMap) ToConnectionMapOutput() ConnectionMapOutput
func (ConnectionMap) ToConnectionMapOutputWithContext ¶
func (i ConnectionMap) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput
func (ConnectionMap) ToOutput ¶ added in v6.65.1
func (i ConnectionMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Connection]
type ConnectionMapInput ¶
type ConnectionMapInput interface { pulumi.Input ToConnectionMapOutput() ConnectionMapOutput ToConnectionMapOutputWithContext(context.Context) ConnectionMapOutput }
ConnectionMapInput is an input type that accepts ConnectionMap and ConnectionMapOutput values. You can construct a concrete instance of `ConnectionMapInput` via:
ConnectionMap{ "key": ConnectionArgs{...} }
type ConnectionMapOutput ¶
type ConnectionMapOutput struct{ *pulumi.OutputState }
func (ConnectionMapOutput) ElementType ¶
func (ConnectionMapOutput) ElementType() reflect.Type
func (ConnectionMapOutput) MapIndex ¶
func (o ConnectionMapOutput) MapIndex(k pulumi.StringInput) ConnectionOutput
func (ConnectionMapOutput) ToConnectionMapOutput ¶
func (o ConnectionMapOutput) ToConnectionMapOutput() ConnectionMapOutput
func (ConnectionMapOutput) ToConnectionMapOutputWithContext ¶
func (o ConnectionMapOutput) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput
func (ConnectionMapOutput) ToOutput ¶ added in v6.65.1
func (o ConnectionMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Connection]
type ConnectionOutput ¶
type ConnectionOutput struct{ *pulumi.OutputState }
func (ConnectionOutput) ElementType ¶
func (ConnectionOutput) ElementType() reflect.Type
func (ConnectionOutput) Network ¶ added in v6.23.0
func (o ConnectionOutput) Network() pulumi.StringOutput
Name of VPC network connected with service producers using VPC peering.
func (ConnectionOutput) Peering ¶ added in v6.23.0
func (o ConnectionOutput) Peering() pulumi.StringOutput
(Computed) The name of the VPC Network Peering connection that was created by the service producer.
func (ConnectionOutput) ReservedPeeringRanges ¶ added in v6.23.0
func (o ConnectionOutput) ReservedPeeringRanges() pulumi.StringArrayOutput
Named IP address range(s) of PEERING type reserved for this service provider. Note that invoking this method with a different range when connection is already established will not reallocate already provisioned service producer subnetworks.
func (ConnectionOutput) Service ¶ added in v6.23.0
func (o ConnectionOutput) Service() pulumi.StringOutput
Provider peering service that is managing peering connectivity for a service provider organization. For Google services that support this functionality it is 'servicenetworking.googleapis.com'.
func (ConnectionOutput) ToConnectionOutput ¶
func (o ConnectionOutput) ToConnectionOutput() ConnectionOutput
func (ConnectionOutput) ToConnectionOutputWithContext ¶
func (o ConnectionOutput) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput
func (ConnectionOutput) ToOutput ¶ added in v6.65.1
func (o ConnectionOutput) ToOutput(ctx context.Context) pulumix.Output[*Connection]
type ConnectionState ¶
type ConnectionState struct { // Name of VPC network connected with service producers using VPC peering. Network pulumi.StringPtrInput // (Computed) The name of the VPC Network Peering connection that was created by the service producer. Peering pulumi.StringPtrInput // Named IP address range(s) of PEERING type reserved for // this service provider. Note that invoking this method with a different range when connection // is already established will not reallocate already provisioned service producer subnetworks. ReservedPeeringRanges pulumi.StringArrayInput // Provider peering service that is managing peering connectivity for a // service provider organization. For Google services that support this functionality it is // 'servicenetworking.googleapis.com'. Service pulumi.StringPtrInput }
func (ConnectionState) ElementType ¶
func (ConnectionState) ElementType() reflect.Type
type LookupPeeredDnsDomainArgs ¶
type LookupPeeredDnsDomainArgs struct { Name string `pulumi:"name"` Network string `pulumi:"network"` Project string `pulumi:"project"` Service string `pulumi:"service"` }
A collection of arguments for invoking getPeeredDnsDomain.
type LookupPeeredDnsDomainOutputArgs ¶
type LookupPeeredDnsDomainOutputArgs struct { Name pulumi.StringInput `pulumi:"name"` Network pulumi.StringInput `pulumi:"network"` Project pulumi.StringInput `pulumi:"project"` Service pulumi.StringInput `pulumi:"service"` }
A collection of arguments for invoking getPeeredDnsDomain.
func (LookupPeeredDnsDomainOutputArgs) ElementType ¶
func (LookupPeeredDnsDomainOutputArgs) ElementType() reflect.Type
type LookupPeeredDnsDomainResult ¶
type LookupPeeredDnsDomainResult struct { DnsSuffix string `pulumi:"dnsSuffix"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` Network string `pulumi:"network"` Parent string `pulumi:"parent"` Project string `pulumi:"project"` Service string `pulumi:"service"` }
A collection of values returned by getPeeredDnsDomain.
func LookupPeeredDnsDomain ¶
func LookupPeeredDnsDomain(ctx *pulumi.Context, args *LookupPeeredDnsDomainArgs, opts ...pulumi.InvokeOption) (*LookupPeeredDnsDomainResult, error)
type LookupPeeredDnsDomainResultOutput ¶
type LookupPeeredDnsDomainResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPeeredDnsDomain.
func LookupPeeredDnsDomainOutput ¶
func LookupPeeredDnsDomainOutput(ctx *pulumi.Context, args LookupPeeredDnsDomainOutputArgs, opts ...pulumi.InvokeOption) LookupPeeredDnsDomainResultOutput
func (LookupPeeredDnsDomainResultOutput) DnsSuffix ¶
func (o LookupPeeredDnsDomainResultOutput) DnsSuffix() pulumi.StringOutput
func (LookupPeeredDnsDomainResultOutput) ElementType ¶
func (LookupPeeredDnsDomainResultOutput) ElementType() reflect.Type
func (LookupPeeredDnsDomainResultOutput) Id ¶
func (o LookupPeeredDnsDomainResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupPeeredDnsDomainResultOutput) Name ¶
func (o LookupPeeredDnsDomainResultOutput) Name() pulumi.StringOutput
func (LookupPeeredDnsDomainResultOutput) Network ¶
func (o LookupPeeredDnsDomainResultOutput) Network() pulumi.StringOutput
func (LookupPeeredDnsDomainResultOutput) Parent ¶
func (o LookupPeeredDnsDomainResultOutput) Parent() pulumi.StringOutput
func (LookupPeeredDnsDomainResultOutput) Project ¶
func (o LookupPeeredDnsDomainResultOutput) Project() pulumi.StringOutput
func (LookupPeeredDnsDomainResultOutput) Service ¶
func (o LookupPeeredDnsDomainResultOutput) Service() pulumi.StringOutput
func (LookupPeeredDnsDomainResultOutput) ToLookupPeeredDnsDomainResultOutput ¶
func (o LookupPeeredDnsDomainResultOutput) ToLookupPeeredDnsDomainResultOutput() LookupPeeredDnsDomainResultOutput
func (LookupPeeredDnsDomainResultOutput) ToLookupPeeredDnsDomainResultOutputWithContext ¶
func (o LookupPeeredDnsDomainResultOutput) ToLookupPeeredDnsDomainResultOutputWithContext(ctx context.Context) LookupPeeredDnsDomainResultOutput
func (LookupPeeredDnsDomainResultOutput) ToOutput ¶ added in v6.65.1
func (o LookupPeeredDnsDomainResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupPeeredDnsDomainResult]
type PeeredDnsDomain ¶
type PeeredDnsDomain struct { pulumi.CustomResourceState // The DNS domain suffix of the peered DNS domain. Make sure to suffix with a `.` (dot). DnsSuffix pulumi.StringOutput `pulumi:"dnsSuffix"` // Internal name used for the peered DNS domain. Name pulumi.StringOutput `pulumi:"name"` // The network in the consumer project. Network pulumi.StringOutput `pulumi:"network"` // an identifier for the resource with format `services/{{service}}/projects/{{project}}/global/networks/{{network}}` Parent pulumi.StringOutput `pulumi:"parent"` // The producer project number. If not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // Private service connection between service and consumer network, defaults to `servicenetworking.googleapis.com` Service pulumi.StringPtrOutput `pulumi:"service"` }
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
```go 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 }) }
```
## Import
Project peered DNS domains can be imported using the `service`, `project`, `network` and `name`, e.g.
```sh
$ 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.
func GetPeeredDnsDomain ¶
func GetPeeredDnsDomain(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PeeredDnsDomainState, opts ...pulumi.ResourceOption) (*PeeredDnsDomain, error)
GetPeeredDnsDomain gets an existing PeeredDnsDomain resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPeeredDnsDomain ¶
func NewPeeredDnsDomain(ctx *pulumi.Context, name string, args *PeeredDnsDomainArgs, opts ...pulumi.ResourceOption) (*PeeredDnsDomain, error)
NewPeeredDnsDomain registers a new resource with the given unique name, arguments, and options.
func (*PeeredDnsDomain) ElementType ¶
func (*PeeredDnsDomain) ElementType() reflect.Type
func (*PeeredDnsDomain) ToOutput ¶ added in v6.65.1
func (i *PeeredDnsDomain) ToOutput(ctx context.Context) pulumix.Output[*PeeredDnsDomain]
func (*PeeredDnsDomain) ToPeeredDnsDomainOutput ¶
func (i *PeeredDnsDomain) ToPeeredDnsDomainOutput() PeeredDnsDomainOutput
func (*PeeredDnsDomain) ToPeeredDnsDomainOutputWithContext ¶
func (i *PeeredDnsDomain) ToPeeredDnsDomainOutputWithContext(ctx context.Context) PeeredDnsDomainOutput
type PeeredDnsDomainArgs ¶
type PeeredDnsDomainArgs struct { // The DNS domain suffix of the peered DNS domain. Make sure to suffix with a `.` (dot). DnsSuffix pulumi.StringInput // Internal name used for the peered DNS domain. Name pulumi.StringPtrInput // The network in the consumer project. Network pulumi.StringInput // The producer project number. If not provided, the provider project is used. Project pulumi.StringPtrInput // Private service connection between service and consumer network, defaults to `servicenetworking.googleapis.com` Service pulumi.StringPtrInput }
The set of arguments for constructing a PeeredDnsDomain resource.
func (PeeredDnsDomainArgs) ElementType ¶
func (PeeredDnsDomainArgs) ElementType() reflect.Type
type PeeredDnsDomainArray ¶
type PeeredDnsDomainArray []PeeredDnsDomainInput
func (PeeredDnsDomainArray) ElementType ¶
func (PeeredDnsDomainArray) ElementType() reflect.Type
func (PeeredDnsDomainArray) ToOutput ¶ added in v6.65.1
func (i PeeredDnsDomainArray) ToOutput(ctx context.Context) pulumix.Output[[]*PeeredDnsDomain]
func (PeeredDnsDomainArray) ToPeeredDnsDomainArrayOutput ¶
func (i PeeredDnsDomainArray) ToPeeredDnsDomainArrayOutput() PeeredDnsDomainArrayOutput
func (PeeredDnsDomainArray) ToPeeredDnsDomainArrayOutputWithContext ¶
func (i PeeredDnsDomainArray) ToPeeredDnsDomainArrayOutputWithContext(ctx context.Context) PeeredDnsDomainArrayOutput
type PeeredDnsDomainArrayInput ¶
type PeeredDnsDomainArrayInput interface { pulumi.Input ToPeeredDnsDomainArrayOutput() PeeredDnsDomainArrayOutput ToPeeredDnsDomainArrayOutputWithContext(context.Context) PeeredDnsDomainArrayOutput }
PeeredDnsDomainArrayInput is an input type that accepts PeeredDnsDomainArray and PeeredDnsDomainArrayOutput values. You can construct a concrete instance of `PeeredDnsDomainArrayInput` via:
PeeredDnsDomainArray{ PeeredDnsDomainArgs{...} }
type PeeredDnsDomainArrayOutput ¶
type PeeredDnsDomainArrayOutput struct{ *pulumi.OutputState }
func (PeeredDnsDomainArrayOutput) ElementType ¶
func (PeeredDnsDomainArrayOutput) ElementType() reflect.Type
func (PeeredDnsDomainArrayOutput) Index ¶
func (o PeeredDnsDomainArrayOutput) Index(i pulumi.IntInput) PeeredDnsDomainOutput
func (PeeredDnsDomainArrayOutput) ToOutput ¶ added in v6.65.1
func (o PeeredDnsDomainArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*PeeredDnsDomain]
func (PeeredDnsDomainArrayOutput) ToPeeredDnsDomainArrayOutput ¶
func (o PeeredDnsDomainArrayOutput) ToPeeredDnsDomainArrayOutput() PeeredDnsDomainArrayOutput
func (PeeredDnsDomainArrayOutput) ToPeeredDnsDomainArrayOutputWithContext ¶
func (o PeeredDnsDomainArrayOutput) ToPeeredDnsDomainArrayOutputWithContext(ctx context.Context) PeeredDnsDomainArrayOutput
type PeeredDnsDomainInput ¶
type PeeredDnsDomainInput interface { pulumi.Input ToPeeredDnsDomainOutput() PeeredDnsDomainOutput ToPeeredDnsDomainOutputWithContext(ctx context.Context) PeeredDnsDomainOutput }
type PeeredDnsDomainMap ¶
type PeeredDnsDomainMap map[string]PeeredDnsDomainInput
func (PeeredDnsDomainMap) ElementType ¶
func (PeeredDnsDomainMap) ElementType() reflect.Type
func (PeeredDnsDomainMap) ToOutput ¶ added in v6.65.1
func (i PeeredDnsDomainMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*PeeredDnsDomain]
func (PeeredDnsDomainMap) ToPeeredDnsDomainMapOutput ¶
func (i PeeredDnsDomainMap) ToPeeredDnsDomainMapOutput() PeeredDnsDomainMapOutput
func (PeeredDnsDomainMap) ToPeeredDnsDomainMapOutputWithContext ¶
func (i PeeredDnsDomainMap) ToPeeredDnsDomainMapOutputWithContext(ctx context.Context) PeeredDnsDomainMapOutput
type PeeredDnsDomainMapInput ¶
type PeeredDnsDomainMapInput interface { pulumi.Input ToPeeredDnsDomainMapOutput() PeeredDnsDomainMapOutput ToPeeredDnsDomainMapOutputWithContext(context.Context) PeeredDnsDomainMapOutput }
PeeredDnsDomainMapInput is an input type that accepts PeeredDnsDomainMap and PeeredDnsDomainMapOutput values. You can construct a concrete instance of `PeeredDnsDomainMapInput` via:
PeeredDnsDomainMap{ "key": PeeredDnsDomainArgs{...} }
type PeeredDnsDomainMapOutput ¶
type PeeredDnsDomainMapOutput struct{ *pulumi.OutputState }
func (PeeredDnsDomainMapOutput) ElementType ¶
func (PeeredDnsDomainMapOutput) ElementType() reflect.Type
func (PeeredDnsDomainMapOutput) MapIndex ¶
func (o PeeredDnsDomainMapOutput) MapIndex(k pulumi.StringInput) PeeredDnsDomainOutput
func (PeeredDnsDomainMapOutput) ToOutput ¶ added in v6.65.1
func (o PeeredDnsDomainMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*PeeredDnsDomain]
func (PeeredDnsDomainMapOutput) ToPeeredDnsDomainMapOutput ¶
func (o PeeredDnsDomainMapOutput) ToPeeredDnsDomainMapOutput() PeeredDnsDomainMapOutput
func (PeeredDnsDomainMapOutput) ToPeeredDnsDomainMapOutputWithContext ¶
func (o PeeredDnsDomainMapOutput) ToPeeredDnsDomainMapOutputWithContext(ctx context.Context) PeeredDnsDomainMapOutput
type PeeredDnsDomainOutput ¶
type PeeredDnsDomainOutput struct{ *pulumi.OutputState }
func (PeeredDnsDomainOutput) DnsSuffix ¶ added in v6.23.0
func (o PeeredDnsDomainOutput) DnsSuffix() pulumi.StringOutput
The DNS domain suffix of the peered DNS domain. Make sure to suffix with a `.` (dot).
func (PeeredDnsDomainOutput) ElementType ¶
func (PeeredDnsDomainOutput) ElementType() reflect.Type
func (PeeredDnsDomainOutput) Name ¶ added in v6.23.0
func (o PeeredDnsDomainOutput) Name() pulumi.StringOutput
Internal name used for the peered DNS domain.
func (PeeredDnsDomainOutput) Network ¶ added in v6.23.0
func (o PeeredDnsDomainOutput) Network() pulumi.StringOutput
The network in the consumer project.
func (PeeredDnsDomainOutput) Parent ¶ added in v6.23.0
func (o PeeredDnsDomainOutput) Parent() pulumi.StringOutput
an identifier for the resource with format `services/{{service}}/projects/{{project}}/global/networks/{{network}}`
func (PeeredDnsDomainOutput) Project ¶ added in v6.23.0
func (o PeeredDnsDomainOutput) Project() pulumi.StringOutput
The producer project number. If not provided, the provider project is used.
func (PeeredDnsDomainOutput) Service ¶ added in v6.23.0
func (o PeeredDnsDomainOutput) Service() pulumi.StringPtrOutput
Private service connection between service and consumer network, defaults to `servicenetworking.googleapis.com`
func (PeeredDnsDomainOutput) ToOutput ¶ added in v6.65.1
func (o PeeredDnsDomainOutput) ToOutput(ctx context.Context) pulumix.Output[*PeeredDnsDomain]
func (PeeredDnsDomainOutput) ToPeeredDnsDomainOutput ¶
func (o PeeredDnsDomainOutput) ToPeeredDnsDomainOutput() PeeredDnsDomainOutput
func (PeeredDnsDomainOutput) ToPeeredDnsDomainOutputWithContext ¶
func (o PeeredDnsDomainOutput) ToPeeredDnsDomainOutputWithContext(ctx context.Context) PeeredDnsDomainOutput
type PeeredDnsDomainState ¶
type PeeredDnsDomainState struct { // The DNS domain suffix of the peered DNS domain. Make sure to suffix with a `.` (dot). DnsSuffix pulumi.StringPtrInput // Internal name used for the peered DNS domain. Name pulumi.StringPtrInput // The network in the consumer project. Network pulumi.StringPtrInput // an identifier for the resource with format `services/{{service}}/projects/{{project}}/global/networks/{{network}}` Parent pulumi.StringPtrInput // The producer project number. If not provided, the provider project is used. Project pulumi.StringPtrInput // Private service connection between service and consumer network, defaults to `servicenetworking.googleapis.com` Service pulumi.StringPtrInput }
func (PeeredDnsDomainState) ElementType ¶
func (PeeredDnsDomainState) ElementType() reflect.Type