Show / Hide Table of Contents

Class DomainMapping

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

To get more information about DomainMapping, see:

  • API documentation
  • How-to Guides
  • Official Documentation

Example Usage - Cloud Run Domain Mapping Basic

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var defaultService = new Gcp.CloudRun.Service("defaultService", new Gcp.CloudRun.ServiceArgs
    {
        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 Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
                    {
                        Image = "gcr.io/cloudrun/hello",
                    },
                },
            },
        },
    });
    var defaultDomainMapping = new Gcp.CloudRun.DomainMapping("defaultDomainMapping", new Gcp.CloudRun.DomainMappingArgs
    {
        Location = "us-central1",
        Metadata = new Gcp.CloudRun.Inputs.DomainMappingMetadataArgs
        {
            Namespace = "my-project-name",
        },
        Spec = new Gcp.CloudRun.Inputs.DomainMappingSpecArgs
        {
            RouteName = defaultService.Name,
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
DomainMapping
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.CloudRun
Assembly: Pulumi.Gcp.dll
Syntax
public class DomainMapping : CustomResource

Constructors

View Source

DomainMapping(String, DomainMappingArgs, CustomResourceOptions)

Create a DomainMapping resource with the given unique name, arguments, and options.

Declaration
public DomainMapping(string name, DomainMappingArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DomainMappingArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Location

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

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Metadata

Metadata associated with this DomainMapping. Structure is documented below.

Declaration
public Output<DomainMappingMetadata> Metadata { get; }
Property Value
Type Description
Output<DomainMappingMetadata>
View Source

Name

Name should be a verified domain

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Project

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

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

Spec

The spec for this DomainMapping. Structure is documented below.

Declaration
public Output<DomainMappingSpec> Spec { get; }
Property Value
Type Description
Output<DomainMappingSpec>
View Source

Status

The current status of the DomainMapping.

Declaration
public Output<DomainMappingStatus> Status { get; }
Property Value
Type Description
Output<DomainMappingStatus>

Methods

View Source

Get(String, Input<String>, DomainMappingState, CustomResourceOptions)

Get an existing DomainMapping resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static DomainMapping Get(string name, Input<string> id, DomainMappingState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

DomainMappingState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
DomainMapping
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.