gcp logo
Google Cloud Classic v6.52.0, Mar 22 23

gcp.cloudrun.DomainMapping

Resource to hold the state and status of a user’s domain mapping.

To get more information about DomainMapping, see:

Example Usage

Cloud Run Domain Mapping Basic

using System.Collections.Generic;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var defaultService = new Gcp.CloudRun.Service("defaultService", new()
    {
        Location = "us-central1",
        Metadata = new Gcp.CloudRun.Inputs.ServiceMetadataArgs
        {
            Namespace = "my-project-name",
        },
        Template = new Gcp.CloudRun.Inputs.ServiceTemplateArgs
        {
            Spec = new Gcp.CloudRun.Inputs.ServiceTemplateSpecArgs
            {
                Containers = new[]
                {
                    new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
                    {
                        Image = "us-docker.pkg.dev/cloudrun/container/hello",
                    },
                },
            },
        },
    });

    var defaultDomainMapping = new Gcp.CloudRun.DomainMapping("defaultDomainMapping", new()
    {
        Location = "us-central1",
        Metadata = new Gcp.CloudRun.Inputs.DomainMappingMetadataArgs
        {
            Namespace = "my-project-name",
        },
        Spec = new Gcp.CloudRun.Inputs.DomainMappingSpecArgs
        {
            RouteName = defaultService.Name,
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrun"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultService, err := cloudrun.NewService(ctx, "defaultService", &cloudrun.ServiceArgs{
			Location: pulumi.String("us-central1"),
			Metadata: &cloudrun.ServiceMetadataArgs{
				Namespace: pulumi.String("my-project-name"),
			},
			Template: &cloudrun.ServiceTemplateArgs{
				Spec: &cloudrun.ServiceTemplateSpecArgs{
					Containers: cloudrun.ServiceTemplateSpecContainerArray{
						&cloudrun.ServiceTemplateSpecContainerArgs{
							Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = cloudrun.NewDomainMapping(ctx, "defaultDomainMapping", &cloudrun.DomainMappingArgs{
			Location: pulumi.String("us-central1"),
			Metadata: &cloudrun.DomainMappingMetadataArgs{
				Namespace: pulumi.String("my-project-name"),
			},
			Spec: &cloudrun.DomainMappingSpecArgs{
				RouteName: defaultService.Name,
			},
		})
		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.cloudrun.Service;
import com.pulumi.gcp.cloudrun.ServiceArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceMetadataArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecArgs;
import com.pulumi.gcp.cloudrun.DomainMapping;
import com.pulumi.gcp.cloudrun.DomainMappingArgs;
import com.pulumi.gcp.cloudrun.inputs.DomainMappingMetadataArgs;
import com.pulumi.gcp.cloudrun.inputs.DomainMappingSpecArgs;
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 defaultService = new Service("defaultService", ServiceArgs.builder()        
            .location("us-central1")
            .metadata(ServiceMetadataArgs.builder()
                .namespace("my-project-name")
                .build())
            .template(ServiceTemplateArgs.builder()
                .spec(ServiceTemplateSpecArgs.builder()
                    .containers(ServiceTemplateSpecContainerArgs.builder()
                        .image("us-docker.pkg.dev/cloudrun/container/hello")
                        .build())
                    .build())
                .build())
            .build());

        var defaultDomainMapping = new DomainMapping("defaultDomainMapping", DomainMappingArgs.builder()        
            .location("us-central1")
            .metadata(DomainMappingMetadataArgs.builder()
                .namespace("my-project-name")
                .build())
            .spec(DomainMappingSpecArgs.builder()
                .routeName(defaultService.name())
                .build())
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

default_service = gcp.cloudrun.Service("defaultService",
    location="us-central1",
    metadata=gcp.cloudrun.ServiceMetadataArgs(
        namespace="my-project-name",
    ),
    template=gcp.cloudrun.ServiceTemplateArgs(
        spec=gcp.cloudrun.ServiceTemplateSpecArgs(
            containers=[gcp.cloudrun.ServiceTemplateSpecContainerArgs(
                image="us-docker.pkg.dev/cloudrun/container/hello",
            )],
        ),
    ))
default_domain_mapping = gcp.cloudrun.DomainMapping("defaultDomainMapping",
    location="us-central1",
    metadata=gcp.cloudrun.DomainMappingMetadataArgs(
        namespace="my-project-name",
    ),
    spec=gcp.cloudrun.DomainMappingSpecArgs(
        route_name=default_service.name,
    ))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const defaultService = new gcp.cloudrun.Service("defaultService", {
    location: "us-central1",
    metadata: {
        namespace: "my-project-name",
    },
    template: {
        spec: {
            containers: [{
                image: "us-docker.pkg.dev/cloudrun/container/hello",
            }],
        },
    },
});
const defaultDomainMapping = new gcp.cloudrun.DomainMapping("defaultDomainMapping", {
    location: "us-central1",
    metadata: {
        namespace: "my-project-name",
    },
    spec: {
        routeName: defaultService.name,
    },
});
resources:
  defaultService:
    type: gcp:cloudrun:Service
    properties:
      location: us-central1
      metadata:
        namespace: my-project-name
      template:
        spec:
          containers:
            - image: us-docker.pkg.dev/cloudrun/container/hello
  defaultDomainMapping:
    type: gcp:cloudrun:DomainMapping
    properties:
      location: us-central1
      metadata:
        namespace: my-project-name
      spec:
        routeName: ${defaultService.name}

Create DomainMapping Resource

new DomainMapping(name: string, args: DomainMappingArgs, opts?: CustomResourceOptions);
@overload
def DomainMapping(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  location: Optional[str] = None,
                  metadata: Optional[DomainMappingMetadataArgs] = None,
                  name: Optional[str] = None,
                  project: Optional[str] = None,
                  spec: Optional[DomainMappingSpecArgs] = None)
@overload
def DomainMapping(resource_name: str,
                  args: DomainMappingArgs,
                  opts: Optional[ResourceOptions] = None)
func NewDomainMapping(ctx *Context, name string, args DomainMappingArgs, opts ...ResourceOption) (*DomainMapping, error)
public DomainMapping(string name, DomainMappingArgs args, CustomResourceOptions? opts = null)
public DomainMapping(String name, DomainMappingArgs args)
public DomainMapping(String name, DomainMappingArgs args, CustomResourceOptions options)
type: gcp:cloudrun:DomainMapping
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DomainMappingArgs
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 DomainMappingArgs
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 DomainMappingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DomainMappingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DomainMappingArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DomainMapping 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 DomainMapping resource accepts the following input properties:

Location string

The location of the cloud run instance. eg us-central1

Metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

Spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

Name string

Name should be a verified domain

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Location string

The location of the cloud run instance. eg us-central1

Metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

Spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

Name string

Name should be a verified domain

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

location String

The location of the cloud run instance. eg us-central1

metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

name String

Name should be a verified domain

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

location string

The location of the cloud run instance. eg us-central1

metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

name string

Name should be a verified domain

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

location str

The location of the cloud run instance. eg us-central1

metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

name str

Name should be a verified domain

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

location String

The location of the cloud run instance. eg us-central1

metadata Property Map

Metadata associated with this DomainMapping. Structure is documented below.

spec Property Map

The spec for this DomainMapping. Structure is documented below.

name String

Name should be a verified domain

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the DomainMapping resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Statuses List<DomainMappingStatus>

(Output) Status of the condition, one of True, False, Unknown.

Id string

The provider-assigned unique ID for this managed resource.

Statuses []DomainMappingStatus

(Output) Status of the condition, one of True, False, Unknown.

id String

The provider-assigned unique ID for this managed resource.

statuses List<DomainMappingStatus>

(Output) Status of the condition, one of True, False, Unknown.

id string

The provider-assigned unique ID for this managed resource.

statuses DomainMappingStatus[]

(Output) Status of the condition, one of True, False, Unknown.

id str

The provider-assigned unique ID for this managed resource.

statuses Sequence[DomainMappingStatus]

(Output) Status of the condition, one of True, False, Unknown.

id String

The provider-assigned unique ID for this managed resource.

statuses List<Property Map>

(Output) Status of the condition, one of True, False, Unknown.

Look up Existing DomainMapping Resource

Get an existing DomainMapping 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?: DomainMappingState, opts?: CustomResourceOptions): DomainMapping
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        location: Optional[str] = None,
        metadata: Optional[DomainMappingMetadataArgs] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        spec: Optional[DomainMappingSpecArgs] = None,
        statuses: Optional[Sequence[DomainMappingStatusArgs]] = None) -> DomainMapping
func GetDomainMapping(ctx *Context, name string, id IDInput, state *DomainMappingState, opts ...ResourceOption) (*DomainMapping, error)
public static DomainMapping Get(string name, Input<string> id, DomainMappingState? state, CustomResourceOptions? opts = null)
public static DomainMapping get(String name, Output<String> id, DomainMappingState 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.
The following state arguments are supported:
Location string

The location of the cloud run instance. eg us-central1

Metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

Name string

Name should be a verified domain

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

Statuses List<DomainMappingStatusArgs>

(Output) Status of the condition, one of True, False, Unknown.

Location string

The location of the cloud run instance. eg us-central1

Metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

Name string

Name should be a verified domain

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

Statuses []DomainMappingStatusArgs

(Output) Status of the condition, one of True, False, Unknown.

location String

The location of the cloud run instance. eg us-central1

metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

name String

Name should be a verified domain

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

statuses List<DomainMappingStatusArgs>

(Output) Status of the condition, one of True, False, Unknown.

location string

The location of the cloud run instance. eg us-central1

metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

name string

Name should be a verified domain

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

statuses DomainMappingStatusArgs[]

(Output) Status of the condition, one of True, False, Unknown.

location str

The location of the cloud run instance. eg us-central1

metadata DomainMappingMetadataArgs

Metadata associated with this DomainMapping. Structure is documented below.

name str

Name should be a verified domain

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

spec DomainMappingSpecArgs

The spec for this DomainMapping. Structure is documented below.

statuses Sequence[DomainMappingStatusArgs]

(Output) Status of the condition, one of True, False, Unknown.

location String

The location of the cloud run instance. eg us-central1

metadata Property Map

Metadata associated with this DomainMapping. Structure is documented below.

name String

Name should be a verified domain

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

spec Property Map

The spec for this DomainMapping. Structure is documented below.

statuses List<Property Map>

(Output) Status of the condition, one of True, False, Unknown.

Supporting Types

DomainMappingMetadata

Namespace string

In Cloud Run the namespace must be equal to either the project ID or project number.

Annotations Dictionary<string, string>

Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.

Generation int

(Output) A sequence number representing a specific generation of the desired state.

Labels Dictionary<string, string>

Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels

ResourceVersion string

(Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

SelfLink string

(Output) SelfLink is a URL representing this object.

Uid string

(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

Namespace string

In Cloud Run the namespace must be equal to either the project ID or project number.

Annotations map[string]string

Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.

Generation int

(Output) A sequence number representing a specific generation of the desired state.

Labels map[string]string

Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels

ResourceVersion string

(Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

SelfLink string

(Output) SelfLink is a URL representing this object.

Uid string

(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

namespace String

In Cloud Run the namespace must be equal to either the project ID or project number.

annotations Map<String,String>

Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.

generation Integer

(Output) A sequence number representing a specific generation of the desired state.

labels Map<String,String>

Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels

resourceVersion String

(Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

selfLink String

(Output) SelfLink is a URL representing this object.

uid String

(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

namespace string

In Cloud Run the namespace must be equal to either the project ID or project number.

annotations {[key: string]: string}

Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.

generation number

(Output) A sequence number representing a specific generation of the desired state.

labels {[key: string]: string}

Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels

resourceVersion string

(Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

selfLink string

(Output) SelfLink is a URL representing this object.

uid string

(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

namespace str

In Cloud Run the namespace must be equal to either the project ID or project number.

annotations Mapping[str, str]

Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.

generation int

(Output) A sequence number representing a specific generation of the desired state.

labels Mapping[str, str]

Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels

resource_version str

(Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

self_link str

(Output) SelfLink is a URL representing this object.

uid str

(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

namespace String

In Cloud Run the namespace must be equal to either the project ID or project number.

annotations Map<String>

Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.

generation Number

(Output) A sequence number representing a specific generation of the desired state.

labels Map<String>

Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels

resourceVersion String

(Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

selfLink String

(Output) SelfLink is a URL representing this object.

uid String

(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

DomainMappingSpec

RouteName string

The name of the Cloud Run Service that this DomainMapping applies to. The route must exist.

CertificateMode string

The mode of the certificate. Default value is AUTOMATIC. Possible values are NONE and AUTOMATIC.

ForceOverride bool

If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning.

RouteName string

The name of the Cloud Run Service that this DomainMapping applies to. The route must exist.

CertificateMode string

The mode of the certificate. Default value is AUTOMATIC. Possible values are NONE and AUTOMATIC.

ForceOverride bool

If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning.

routeName String

The name of the Cloud Run Service that this DomainMapping applies to. The route must exist.

certificateMode String

The mode of the certificate. Default value is AUTOMATIC. Possible values are NONE and AUTOMATIC.

forceOverride Boolean

If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning.

routeName string

The name of the Cloud Run Service that this DomainMapping applies to. The route must exist.

certificateMode string

The mode of the certificate. Default value is AUTOMATIC. Possible values are NONE and AUTOMATIC.

forceOverride boolean

If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning.

route_name str

The name of the Cloud Run Service that this DomainMapping applies to. The route must exist.

certificate_mode str

The mode of the certificate. Default value is AUTOMATIC. Possible values are NONE and AUTOMATIC.

force_override bool

If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning.

routeName String

The name of the Cloud Run Service that this DomainMapping applies to. The route must exist.

certificateMode String

The mode of the certificate. Default value is AUTOMATIC. Possible values are NONE and AUTOMATIC.

forceOverride Boolean

If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning.

DomainMappingStatus

Conditions List<DomainMappingStatusCondition>

(Output) Array of observed DomainMappingConditions, indicating the current state of the DomainMapping. Structure is documented below.

MappedRouteName string

(Output) The name of the route that the mapping currently points to.

ObservedGeneration int

(Output) ObservedGeneration is the 'Generation' of the DomainMapping that was last processed by the controller.

ResourceRecords List<DomainMappingStatusResourceRecord>

The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping. Structure is documented below.

Conditions []DomainMappingStatusCondition

(Output) Array of observed DomainMappingConditions, indicating the current state of the DomainMapping. Structure is documented below.

MappedRouteName string

(Output) The name of the route that the mapping currently points to.

ObservedGeneration int

(Output) ObservedGeneration is the 'Generation' of the DomainMapping that was last processed by the controller.

ResourceRecords []DomainMappingStatusResourceRecord

The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping. Structure is documented below.

conditions List<DomainMappingStatusCondition>

(Output) Array of observed DomainMappingConditions, indicating the current state of the DomainMapping. Structure is documented below.

mappedRouteName String

(Output) The name of the route that the mapping currently points to.

observedGeneration Integer

(Output) ObservedGeneration is the 'Generation' of the DomainMapping that was last processed by the controller.

resourceRecords List<DomainMappingStatusResourceRecord>

The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping. Structure is documented below.

conditions DomainMappingStatusCondition[]

(Output) Array of observed DomainMappingConditions, indicating the current state of the DomainMapping. Structure is documented below.

mappedRouteName string

(Output) The name of the route that the mapping currently points to.

observedGeneration number

(Output) ObservedGeneration is the 'Generation' of the DomainMapping that was last processed by the controller.

resourceRecords DomainMappingStatusResourceRecord[]

The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping. Structure is documented below.

conditions Sequence[DomainMappingStatusCondition]

(Output) Array of observed DomainMappingConditions, indicating the current state of the DomainMapping. Structure is documented below.

mapped_route_name str

(Output) The name of the route that the mapping currently points to.

observed_generation int

(Output) ObservedGeneration is the 'Generation' of the DomainMapping that was last processed by the controller.

resource_records Sequence[DomainMappingStatusResourceRecord]

The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping. Structure is documented below.

conditions List<Property Map>

(Output) Array of observed DomainMappingConditions, indicating the current state of the DomainMapping. Structure is documented below.

mappedRouteName String

(Output) The name of the route that the mapping currently points to.

observedGeneration Number

(Output) ObservedGeneration is the 'Generation' of the DomainMapping that was last processed by the controller.

resourceRecords List<Property Map>

The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping. Structure is documented below.

DomainMappingStatusCondition

Message string

(Output) Human readable message indicating details about the current status.

Reason string

(Output) One-word CamelCase reason for the condition's current status.

Status string

(Output) Status of the condition, one of True, False, Unknown.

Type string

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

Message string

(Output) Human readable message indicating details about the current status.

Reason string

(Output) One-word CamelCase reason for the condition's current status.

Status string

(Output) Status of the condition, one of True, False, Unknown.

Type string

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

message String

(Output) Human readable message indicating details about the current status.

reason String

(Output) One-word CamelCase reason for the condition's current status.

status String

(Output) Status of the condition, one of True, False, Unknown.

type String

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

message string

(Output) Human readable message indicating details about the current status.

reason string

(Output) One-word CamelCase reason for the condition's current status.

status string

(Output) Status of the condition, one of True, False, Unknown.

type string

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

message str

(Output) Human readable message indicating details about the current status.

reason str

(Output) One-word CamelCase reason for the condition's current status.

status str

(Output) Status of the condition, one of True, False, Unknown.

type str

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

message String

(Output) Human readable message indicating details about the current status.

reason String

(Output) One-word CamelCase reason for the condition's current status.

status String

(Output) Status of the condition, one of True, False, Unknown.

type String

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

DomainMappingStatusResourceRecord

Name string

Name should be a verified domain

Rrdata string

(Output) Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).

Type string

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

Name string

Name should be a verified domain

Rrdata string

(Output) Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).

Type string

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

name String

Name should be a verified domain

rrdata String

(Output) Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).

type String

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

name string

Name should be a verified domain

rrdata string

(Output) Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).

type string

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

name str

Name should be a verified domain

rrdata str

(Output) Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).

type str

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

name String

Name should be a verified domain

rrdata String

(Output) Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).

type String

Resource record type. Example: AAAA. Possible values are A, AAAA, and CNAME.

Import

DomainMapping can be imported using any of these accepted formats

 $ pulumi import gcp:cloudrun/domainMapping:DomainMapping default locations/{{location}}/namespaces/{{project}}/domainmappings/{{name}}
 $ pulumi import gcp:cloudrun/domainMapping:DomainMapping default {{location}}/{{project}}/{{name}}
 $ pulumi import gcp:cloudrun/domainMapping:DomainMapping default {{location}}/{{name}}

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.