gcp.firebase.AppHostingDefaultDomain
Explore with Pulumi AI
A domain name that is associated with a backend.
Example Usage
Firebase App Hosting Default Domain Minimal
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const serviceAccount = new gcp.serviceaccount.Account("service_account", {
project: "my-project-name",
accountId: "service-account",
displayName: "Firebase App Hosting compute service account",
createIgnoreAlreadyExists: true,
});
const exampleAppHostingBackend = new gcp.firebase.AppHostingBackend("example", {
project: "my-project-name",
location: "us-central1",
backendId: "dd-mini",
appId: "1:0000000000:web:674cde32020e16fbce9dbd",
servingLocality: "GLOBAL_ACCESS",
serviceAccount: serviceAccount.email,
});
const example = new gcp.firebase.AppHostingDefaultDomain("example", {
project: exampleAppHostingBackend.project,
location: exampleAppHostingBackend.location,
backend: exampleAppHostingBackend.backendId,
domainId: exampleAppHostingBackend.uri,
});
import pulumi
import pulumi_gcp as gcp
service_account = gcp.serviceaccount.Account("service_account",
project="my-project-name",
account_id="service-account",
display_name="Firebase App Hosting compute service account",
create_ignore_already_exists=True)
example_app_hosting_backend = gcp.firebase.AppHostingBackend("example",
project="my-project-name",
location="us-central1",
backend_id="dd-mini",
app_id="1:0000000000:web:674cde32020e16fbce9dbd",
serving_locality="GLOBAL_ACCESS",
service_account=service_account.email)
example = gcp.firebase.AppHostingDefaultDomain("example",
project=example_app_hosting_backend.project,
location=example_app_hosting_backend.location,
backend=example_app_hosting_backend.backend_id,
domain_id=example_app_hosting_backend.uri)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/serviceaccount"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
serviceAccount, err := serviceaccount.NewAccount(ctx, "service_account", &serviceaccount.AccountArgs{
Project: pulumi.String("my-project-name"),
AccountId: pulumi.String("service-account"),
DisplayName: pulumi.String("Firebase App Hosting compute service account"),
CreateIgnoreAlreadyExists: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleAppHostingBackend, err := firebase.NewAppHostingBackend(ctx, "example", &firebase.AppHostingBackendArgs{
Project: pulumi.String("my-project-name"),
Location: pulumi.String("us-central1"),
BackendId: pulumi.String("dd-mini"),
AppId: pulumi.String("1:0000000000:web:674cde32020e16fbce9dbd"),
ServingLocality: pulumi.String("GLOBAL_ACCESS"),
ServiceAccount: serviceAccount.Email,
})
if err != nil {
return err
}
_, err = firebase.NewAppHostingDefaultDomain(ctx, "example", &firebase.AppHostingDefaultDomainArgs{
Project: exampleAppHostingBackend.Project,
Location: exampleAppHostingBackend.Location,
Backend: exampleAppHostingBackend.BackendId,
DomainId: exampleAppHostingBackend.Uri,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var serviceAccount = new Gcp.ServiceAccount.Account("service_account", new()
{
Project = "my-project-name",
AccountId = "service-account",
DisplayName = "Firebase App Hosting compute service account",
CreateIgnoreAlreadyExists = true,
});
var exampleAppHostingBackend = new Gcp.Firebase.AppHostingBackend("example", new()
{
Project = "my-project-name",
Location = "us-central1",
BackendId = "dd-mini",
AppId = "1:0000000000:web:674cde32020e16fbce9dbd",
ServingLocality = "GLOBAL_ACCESS",
ServiceAccount = serviceAccount.Email,
});
var example = new Gcp.Firebase.AppHostingDefaultDomain("example", new()
{
Project = exampleAppHostingBackend.Project,
Location = exampleAppHostingBackend.Location,
Backend = exampleAppHostingBackend.BackendId,
DomainId = exampleAppHostingBackend.Uri,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.serviceaccount.Account;
import com.pulumi.gcp.serviceaccount.AccountArgs;
import com.pulumi.gcp.firebase.AppHostingBackend;
import com.pulumi.gcp.firebase.AppHostingBackendArgs;
import com.pulumi.gcp.firebase.AppHostingDefaultDomain;
import com.pulumi.gcp.firebase.AppHostingDefaultDomainArgs;
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 serviceAccount = new Account("serviceAccount", AccountArgs.builder()
.project("my-project-name")
.accountId("service-account")
.displayName("Firebase App Hosting compute service account")
.createIgnoreAlreadyExists(true)
.build());
var exampleAppHostingBackend = new AppHostingBackend("exampleAppHostingBackend", AppHostingBackendArgs.builder()
.project("my-project-name")
.location("us-central1")
.backendId("dd-mini")
.appId("1:0000000000:web:674cde32020e16fbce9dbd")
.servingLocality("GLOBAL_ACCESS")
.serviceAccount(serviceAccount.email())
.build());
var example = new AppHostingDefaultDomain("example", AppHostingDefaultDomainArgs.builder()
.project(exampleAppHostingBackend.project())
.location(exampleAppHostingBackend.location())
.backend(exampleAppHostingBackend.backendId())
.domainId(exampleAppHostingBackend.uri())
.build());
}
}
resources:
example:
type: gcp:firebase:AppHostingDefaultDomain
properties:
project: ${exampleAppHostingBackend.project}
location: ${exampleAppHostingBackend.location}
backend: ${exampleAppHostingBackend.backendId}
domainId: ${exampleAppHostingBackend.uri}
exampleAppHostingBackend:
type: gcp:firebase:AppHostingBackend
name: example
properties:
project: my-project-name
location: us-central1
backendId: dd-mini
appId: 1:0000000000:web:674cde32020e16fbce9dbd
servingLocality: GLOBAL_ACCESS
serviceAccount: ${serviceAccount.email}
serviceAccount:
type: gcp:serviceaccount:Account
name: service_account
properties:
project: my-project-name
accountId: service-account
displayName: Firebase App Hosting compute service account
createIgnoreAlreadyExists: true
Firebase App Hosting Default Domain Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const serviceAccount = new gcp.serviceaccount.Account("service_account", {
project: "my-project-name",
accountId: "service-account",
displayName: "Firebase App Hosting compute service account",
createIgnoreAlreadyExists: true,
});
const exampleAppHostingBackend = new gcp.firebase.AppHostingBackend("example", {
project: "my-project-name",
location: "us-central1",
backendId: "dd-full",
appId: "1:0000000000:web:674cde32020e16fbce9dbd",
servingLocality: "GLOBAL_ACCESS",
serviceAccount: serviceAccount.email,
});
const example = new gcp.firebase.AppHostingDefaultDomain("example", {
project: exampleAppHostingBackend.project,
location: exampleAppHostingBackend.location,
backend: exampleAppHostingBackend.backendId,
domainId: exampleAppHostingBackend.uri,
disabled: false,
});
import pulumi
import pulumi_gcp as gcp
service_account = gcp.serviceaccount.Account("service_account",
project="my-project-name",
account_id="service-account",
display_name="Firebase App Hosting compute service account",
create_ignore_already_exists=True)
example_app_hosting_backend = gcp.firebase.AppHostingBackend("example",
project="my-project-name",
location="us-central1",
backend_id="dd-full",
app_id="1:0000000000:web:674cde32020e16fbce9dbd",
serving_locality="GLOBAL_ACCESS",
service_account=service_account.email)
example = gcp.firebase.AppHostingDefaultDomain("example",
project=example_app_hosting_backend.project,
location=example_app_hosting_backend.location,
backend=example_app_hosting_backend.backend_id,
domain_id=example_app_hosting_backend.uri,
disabled=False)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/serviceaccount"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
serviceAccount, err := serviceaccount.NewAccount(ctx, "service_account", &serviceaccount.AccountArgs{
Project: pulumi.String("my-project-name"),
AccountId: pulumi.String("service-account"),
DisplayName: pulumi.String("Firebase App Hosting compute service account"),
CreateIgnoreAlreadyExists: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleAppHostingBackend, err := firebase.NewAppHostingBackend(ctx, "example", &firebase.AppHostingBackendArgs{
Project: pulumi.String("my-project-name"),
Location: pulumi.String("us-central1"),
BackendId: pulumi.String("dd-full"),
AppId: pulumi.String("1:0000000000:web:674cde32020e16fbce9dbd"),
ServingLocality: pulumi.String("GLOBAL_ACCESS"),
ServiceAccount: serviceAccount.Email,
})
if err != nil {
return err
}
_, err = firebase.NewAppHostingDefaultDomain(ctx, "example", &firebase.AppHostingDefaultDomainArgs{
Project: exampleAppHostingBackend.Project,
Location: exampleAppHostingBackend.Location,
Backend: exampleAppHostingBackend.BackendId,
DomainId: exampleAppHostingBackend.Uri,
Disabled: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var serviceAccount = new Gcp.ServiceAccount.Account("service_account", new()
{
Project = "my-project-name",
AccountId = "service-account",
DisplayName = "Firebase App Hosting compute service account",
CreateIgnoreAlreadyExists = true,
});
var exampleAppHostingBackend = new Gcp.Firebase.AppHostingBackend("example", new()
{
Project = "my-project-name",
Location = "us-central1",
BackendId = "dd-full",
AppId = "1:0000000000:web:674cde32020e16fbce9dbd",
ServingLocality = "GLOBAL_ACCESS",
ServiceAccount = serviceAccount.Email,
});
var example = new Gcp.Firebase.AppHostingDefaultDomain("example", new()
{
Project = exampleAppHostingBackend.Project,
Location = exampleAppHostingBackend.Location,
Backend = exampleAppHostingBackend.BackendId,
DomainId = exampleAppHostingBackend.Uri,
Disabled = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.serviceaccount.Account;
import com.pulumi.gcp.serviceaccount.AccountArgs;
import com.pulumi.gcp.firebase.AppHostingBackend;
import com.pulumi.gcp.firebase.AppHostingBackendArgs;
import com.pulumi.gcp.firebase.AppHostingDefaultDomain;
import com.pulumi.gcp.firebase.AppHostingDefaultDomainArgs;
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 serviceAccount = new Account("serviceAccount", AccountArgs.builder()
.project("my-project-name")
.accountId("service-account")
.displayName("Firebase App Hosting compute service account")
.createIgnoreAlreadyExists(true)
.build());
var exampleAppHostingBackend = new AppHostingBackend("exampleAppHostingBackend", AppHostingBackendArgs.builder()
.project("my-project-name")
.location("us-central1")
.backendId("dd-full")
.appId("1:0000000000:web:674cde32020e16fbce9dbd")
.servingLocality("GLOBAL_ACCESS")
.serviceAccount(serviceAccount.email())
.build());
var example = new AppHostingDefaultDomain("example", AppHostingDefaultDomainArgs.builder()
.project(exampleAppHostingBackend.project())
.location(exampleAppHostingBackend.location())
.backend(exampleAppHostingBackend.backendId())
.domainId(exampleAppHostingBackend.uri())
.disabled(false)
.build());
}
}
resources:
example:
type: gcp:firebase:AppHostingDefaultDomain
properties:
project: ${exampleAppHostingBackend.project}
location: ${exampleAppHostingBackend.location}
backend: ${exampleAppHostingBackend.backendId}
domainId: ${exampleAppHostingBackend.uri}
disabled: false
exampleAppHostingBackend:
type: gcp:firebase:AppHostingBackend
name: example
properties:
project: my-project-name
location: us-central1
backendId: dd-full
appId: 1:0000000000:web:674cde32020e16fbce9dbd
servingLocality: GLOBAL_ACCESS
serviceAccount: ${serviceAccount.email}
serviceAccount:
type: gcp:serviceaccount:Account
name: service_account
properties:
project: my-project-name
accountId: service-account
displayName: Firebase App Hosting compute service account
createIgnoreAlreadyExists: true
Firebase App Hosting Default Domain Disabled
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const serviceAccount = new gcp.serviceaccount.Account("service_account", {
project: "my-project-name",
accountId: "service-account",
displayName: "Firebase App Hosting compute service account",
createIgnoreAlreadyExists: true,
});
const exampleAppHostingBackend = new gcp.firebase.AppHostingBackend("example", {
project: "my-project-name",
location: "us-central1",
backendId: "dd-disabled",
appId: "1:0000000000:web:674cde32020e16fbce9dbd",
servingLocality: "GLOBAL_ACCESS",
serviceAccount: serviceAccount.email,
});
const example = new gcp.firebase.AppHostingDefaultDomain("example", {
project: exampleAppHostingBackend.project,
location: exampleAppHostingBackend.location,
backend: exampleAppHostingBackend.backendId,
domainId: exampleAppHostingBackend.uri,
disabled: true,
});
import pulumi
import pulumi_gcp as gcp
service_account = gcp.serviceaccount.Account("service_account",
project="my-project-name",
account_id="service-account",
display_name="Firebase App Hosting compute service account",
create_ignore_already_exists=True)
example_app_hosting_backend = gcp.firebase.AppHostingBackend("example",
project="my-project-name",
location="us-central1",
backend_id="dd-disabled",
app_id="1:0000000000:web:674cde32020e16fbce9dbd",
serving_locality="GLOBAL_ACCESS",
service_account=service_account.email)
example = gcp.firebase.AppHostingDefaultDomain("example",
project=example_app_hosting_backend.project,
location=example_app_hosting_backend.location,
backend=example_app_hosting_backend.backend_id,
domain_id=example_app_hosting_backend.uri,
disabled=True)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/serviceaccount"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
serviceAccount, err := serviceaccount.NewAccount(ctx, "service_account", &serviceaccount.AccountArgs{
Project: pulumi.String("my-project-name"),
AccountId: pulumi.String("service-account"),
DisplayName: pulumi.String("Firebase App Hosting compute service account"),
CreateIgnoreAlreadyExists: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleAppHostingBackend, err := firebase.NewAppHostingBackend(ctx, "example", &firebase.AppHostingBackendArgs{
Project: pulumi.String("my-project-name"),
Location: pulumi.String("us-central1"),
BackendId: pulumi.String("dd-disabled"),
AppId: pulumi.String("1:0000000000:web:674cde32020e16fbce9dbd"),
ServingLocality: pulumi.String("GLOBAL_ACCESS"),
ServiceAccount: serviceAccount.Email,
})
if err != nil {
return err
}
_, err = firebase.NewAppHostingDefaultDomain(ctx, "example", &firebase.AppHostingDefaultDomainArgs{
Project: exampleAppHostingBackend.Project,
Location: exampleAppHostingBackend.Location,
Backend: exampleAppHostingBackend.BackendId,
DomainId: exampleAppHostingBackend.Uri,
Disabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var serviceAccount = new Gcp.ServiceAccount.Account("service_account", new()
{
Project = "my-project-name",
AccountId = "service-account",
DisplayName = "Firebase App Hosting compute service account",
CreateIgnoreAlreadyExists = true,
});
var exampleAppHostingBackend = new Gcp.Firebase.AppHostingBackend("example", new()
{
Project = "my-project-name",
Location = "us-central1",
BackendId = "dd-disabled",
AppId = "1:0000000000:web:674cde32020e16fbce9dbd",
ServingLocality = "GLOBAL_ACCESS",
ServiceAccount = serviceAccount.Email,
});
var example = new Gcp.Firebase.AppHostingDefaultDomain("example", new()
{
Project = exampleAppHostingBackend.Project,
Location = exampleAppHostingBackend.Location,
Backend = exampleAppHostingBackend.BackendId,
DomainId = exampleAppHostingBackend.Uri,
Disabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.serviceaccount.Account;
import com.pulumi.gcp.serviceaccount.AccountArgs;
import com.pulumi.gcp.firebase.AppHostingBackend;
import com.pulumi.gcp.firebase.AppHostingBackendArgs;
import com.pulumi.gcp.firebase.AppHostingDefaultDomain;
import com.pulumi.gcp.firebase.AppHostingDefaultDomainArgs;
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 serviceAccount = new Account("serviceAccount", AccountArgs.builder()
.project("my-project-name")
.accountId("service-account")
.displayName("Firebase App Hosting compute service account")
.createIgnoreAlreadyExists(true)
.build());
var exampleAppHostingBackend = new AppHostingBackend("exampleAppHostingBackend", AppHostingBackendArgs.builder()
.project("my-project-name")
.location("us-central1")
.backendId("dd-disabled")
.appId("1:0000000000:web:674cde32020e16fbce9dbd")
.servingLocality("GLOBAL_ACCESS")
.serviceAccount(serviceAccount.email())
.build());
var example = new AppHostingDefaultDomain("example", AppHostingDefaultDomainArgs.builder()
.project(exampleAppHostingBackend.project())
.location(exampleAppHostingBackend.location())
.backend(exampleAppHostingBackend.backendId())
.domainId(exampleAppHostingBackend.uri())
.disabled(true)
.build());
}
}
resources:
example:
type: gcp:firebase:AppHostingDefaultDomain
properties:
project: ${exampleAppHostingBackend.project}
location: ${exampleAppHostingBackend.location}
backend: ${exampleAppHostingBackend.backendId}
domainId: ${exampleAppHostingBackend.uri}
disabled: true
exampleAppHostingBackend:
type: gcp:firebase:AppHostingBackend
name: example
properties:
project: my-project-name
location: us-central1
backendId: dd-disabled
appId: 1:0000000000:web:674cde32020e16fbce9dbd
servingLocality: GLOBAL_ACCESS
serviceAccount: ${serviceAccount.email}
serviceAccount:
type: gcp:serviceaccount:Account
name: service_account
properties:
project: my-project-name
accountId: service-account
displayName: Firebase App Hosting compute service account
createIgnoreAlreadyExists: true
Create AppHostingDefaultDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppHostingDefaultDomain(name: string, args: AppHostingDefaultDomainArgs, opts?: CustomResourceOptions);
@overload
def AppHostingDefaultDomain(resource_name: str,
args: AppHostingDefaultDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppHostingDefaultDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
backend: Optional[str] = None,
domain_id: Optional[str] = None,
location: Optional[str] = None,
disabled: Optional[bool] = None,
project: Optional[str] = None)
func NewAppHostingDefaultDomain(ctx *Context, name string, args AppHostingDefaultDomainArgs, opts ...ResourceOption) (*AppHostingDefaultDomain, error)
public AppHostingDefaultDomain(string name, AppHostingDefaultDomainArgs args, CustomResourceOptions? opts = null)
public AppHostingDefaultDomain(String name, AppHostingDefaultDomainArgs args)
public AppHostingDefaultDomain(String name, AppHostingDefaultDomainArgs args, CustomResourceOptions options)
type: gcp:firebase:AppHostingDefaultDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AppHostingDefaultDomainArgs
- 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 AppHostingDefaultDomainArgs
- 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 AppHostingDefaultDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppHostingDefaultDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppHostingDefaultDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var appHostingDefaultDomainResource = new Gcp.Firebase.AppHostingDefaultDomain("appHostingDefaultDomainResource", new()
{
Backend = "string",
DomainId = "string",
Location = "string",
Disabled = false,
Project = "string",
});
example, err := firebase.NewAppHostingDefaultDomain(ctx, "appHostingDefaultDomainResource", &firebase.AppHostingDefaultDomainArgs{
Backend: pulumi.String("string"),
DomainId: pulumi.String("string"),
Location: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Project: pulumi.String("string"),
})
var appHostingDefaultDomainResource = new AppHostingDefaultDomain("appHostingDefaultDomainResource", AppHostingDefaultDomainArgs.builder()
.backend("string")
.domainId("string")
.location("string")
.disabled(false)
.project("string")
.build());
app_hosting_default_domain_resource = gcp.firebase.AppHostingDefaultDomain("appHostingDefaultDomainResource",
backend="string",
domain_id="string",
location="string",
disabled=False,
project="string")
const appHostingDefaultDomainResource = new gcp.firebase.AppHostingDefaultDomain("appHostingDefaultDomainResource", {
backend: "string",
domainId: "string",
location: "string",
disabled: false,
project: "string",
});
type: gcp:firebase:AppHostingDefaultDomain
properties:
backend: string
disabled: false
domainId: string
location: string
project: string
AppHostingDefaultDomain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AppHostingDefaultDomain resource accepts the following input properties:
- Backend string
- The ID of the Backend that this Domain is associated with
- Domain
Id string - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- Location string
- The location of the Backend that this Domain is associated with
- Disabled bool
- Whether the domain is disabled. Defaults to false.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Backend string
- The ID of the Backend that this Domain is associated with
- Domain
Id string - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- Location string
- The location of the Backend that this Domain is associated with
- Disabled bool
- Whether the domain is disabled. Defaults to false.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- backend String
- The ID of the Backend that this Domain is associated with
- domain
Id String - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- location String
- The location of the Backend that this Domain is associated with
- disabled Boolean
- Whether the domain is disabled. Defaults to false.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- backend string
- The ID of the Backend that this Domain is associated with
- domain
Id string - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- location string
- The location of the Backend that this Domain is associated with
- disabled boolean
- Whether the domain is disabled. Defaults to false.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- backend str
- The ID of the Backend that this Domain is associated with
- domain_
id str - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- location str
- The location of the Backend that this Domain is associated with
- disabled bool
- Whether the domain is disabled. Defaults to false.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- backend String
- The ID of the Backend that this Domain is associated with
- domain
Id String - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- location String
- The location of the Backend that this Domain is associated with
- disabled Boolean
- Whether the domain is disabled. Defaults to false.
- 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 AppHostingDefaultDomain resource produces the following output properties:
- Create
Time string - Time at which the domain was created.
- Etag string
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- Uid string
- System-assigned, unique identifier.
- Update
Time string - Time at which the domain was last updated.
- Create
Time string - Time at which the domain was created.
- Etag string
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- Uid string
- System-assigned, unique identifier.
- Update
Time string - Time at which the domain was last updated.
- create
Time String - Time at which the domain was created.
- etag String
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- uid String
- System-assigned, unique identifier.
- update
Time String - Time at which the domain was last updated.
- create
Time string - Time at which the domain was created.
- etag string
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- uid string
- System-assigned, unique identifier.
- update
Time string - Time at which the domain was last updated.
- create_
time str - Time at which the domain was created.
- etag str
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- uid str
- System-assigned, unique identifier.
- update_
time str - Time at which the domain was last updated.
- create
Time String - Time at which the domain was created.
- etag String
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- uid String
- System-assigned, unique identifier.
- update
Time String - Time at which the domain was last updated.
Look up Existing AppHostingDefaultDomain Resource
Get an existing AppHostingDefaultDomain 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?: AppHostingDefaultDomainState, opts?: CustomResourceOptions): AppHostingDefaultDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backend: Optional[str] = None,
create_time: Optional[str] = None,
disabled: Optional[bool] = None,
domain_id: Optional[str] = None,
etag: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None) -> AppHostingDefaultDomain
func GetAppHostingDefaultDomain(ctx *Context, name string, id IDInput, state *AppHostingDefaultDomainState, opts ...ResourceOption) (*AppHostingDefaultDomain, error)
public static AppHostingDefaultDomain Get(string name, Input<string> id, AppHostingDefaultDomainState? state, CustomResourceOptions? opts = null)
public static AppHostingDefaultDomain get(String name, Output<String> id, AppHostingDefaultDomainState state, CustomResourceOptions options)
resources: _: type: gcp:firebase:AppHostingDefaultDomain get: id: ${id}
- 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.
- Backend string
- The ID of the Backend that this Domain is associated with
- Create
Time string - Time at which the domain was created.
- Disabled bool
- Whether the domain is disabled. Defaults to false.
- Domain
Id string - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- Etag string
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- Location string
- The location of the Backend that this Domain is associated with
- Name string
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Uid string
- System-assigned, unique identifier.
- Update
Time string - Time at which the domain was last updated.
- Backend string
- The ID of the Backend that this Domain is associated with
- Create
Time string - Time at which the domain was created.
- Disabled bool
- Whether the domain is disabled. Defaults to false.
- Domain
Id string - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- Etag string
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- Location string
- The location of the Backend that this Domain is associated with
- Name string
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Uid string
- System-assigned, unique identifier.
- Update
Time string - Time at which the domain was last updated.
- backend String
- The ID of the Backend that this Domain is associated with
- create
Time String - Time at which the domain was created.
- disabled Boolean
- Whether the domain is disabled. Defaults to false.
- domain
Id String - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- etag String
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- location String
- The location of the Backend that this Domain is associated with
- name String
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- uid String
- System-assigned, unique identifier.
- update
Time String - Time at which the domain was last updated.
- backend string
- The ID of the Backend that this Domain is associated with
- create
Time string - Time at which the domain was created.
- disabled boolean
- Whether the domain is disabled. Defaults to false.
- domain
Id string - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- etag string
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- location string
- The location of the Backend that this Domain is associated with
- name string
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- uid string
- System-assigned, unique identifier.
- update
Time string - Time at which the domain was last updated.
- backend str
- The ID of the Backend that this Domain is associated with
- create_
time str - Time at which the domain was created.
- disabled bool
- Whether the domain is disabled. Defaults to false.
- domain_
id str - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- etag str
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- location str
- The location of the Backend that this Domain is associated with
- name str
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- uid str
- System-assigned, unique identifier.
- update_
time str - Time at which the domain was last updated.
- backend String
- The ID of the Backend that this Domain is associated with
- create
Time String - Time at which the domain was created.
- disabled Boolean
- Whether the domain is disabled. Defaults to false.
- domain
Id String - Id of the domain. For default domain, it should be {{backend}}--{{project_id}}.{{location}}.hosted.app
- etag String
- Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
- location String
- The location of the Backend that this Domain is associated with
- name String
- Identifier. The resource name of the domain, e.g.
projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- uid String
- System-assigned, unique identifier.
- update
Time String - Time at which the domain was last updated.
Import
DefaultDomain can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/backends/{{backend}}/domains/{{domain_id}}
{{project}}/{{location}}/{{backend}}/{{domain_id}}
{{location}}/{{backend}}/{{domain_id}}
When using the pulumi import
command, DefaultDomain can be imported using one of the formats above. For example:
$ pulumi import gcp:firebase/appHostingDefaultDomain:AppHostingDefaultDomain default projects/{{project}}/locations/{{location}}/backends/{{backend}}/domains/{{domain_id}}
$ pulumi import gcp:firebase/appHostingDefaultDomain:AppHostingDefaultDomain default {{project}}/{{location}}/{{backend}}/{{domain_id}}
$ pulumi import gcp:firebase/appHostingDefaultDomain:AppHostingDefaultDomain default {{location}}/{{backend}}/{{domain_id}}
To learn more about importing existing cloud resources, see Importing resources.
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.