1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. firebase
  5. HostingChannel
Google Cloud v8.25.1 published on Wednesday, Apr 9, 2025 by Pulumi

gcp.firebase.HostingChannel

Explore with Pulumi AI

Example Usage

Firebasehosting Channel Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const _default = new gcp.firebase.HostingSite("default", {
    project: "my-project-name",
    siteId: "site-with-channel",
});
const defaultHostingChannel = new gcp.firebase.HostingChannel("default", {
    siteId: _default.siteId,
    channelId: "channel-basic",
});
Copy
import pulumi
import pulumi_gcp as gcp

default = gcp.firebase.HostingSite("default",
    project="my-project-name",
    site_id="site-with-channel")
default_hosting_channel = gcp.firebase.HostingChannel("default",
    site_id=default.site_id,
    channel_id="channel-basic")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := firebase.NewHostingSite(ctx, "default", &firebase.HostingSiteArgs{
			Project: pulumi.String("my-project-name"),
			SiteId:  pulumi.String("site-with-channel"),
		})
		if err != nil {
			return err
		}
		_, err = firebase.NewHostingChannel(ctx, "default", &firebase.HostingChannelArgs{
			SiteId:    _default.SiteId,
			ChannelId: pulumi.String("channel-basic"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var @default = new Gcp.Firebase.HostingSite("default", new()
    {
        Project = "my-project-name",
        SiteId = "site-with-channel",
    });

    var defaultHostingChannel = new Gcp.Firebase.HostingChannel("default", new()
    {
        SiteId = @default.SiteId,
        ChannelId = "channel-basic",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.firebase.HostingSite;
import com.pulumi.gcp.firebase.HostingSiteArgs;
import com.pulumi.gcp.firebase.HostingChannel;
import com.pulumi.gcp.firebase.HostingChannelArgs;
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 default_ = new HostingSite("default", HostingSiteArgs.builder()
            .project("my-project-name")
            .siteId("site-with-channel")
            .build());

        var defaultHostingChannel = new HostingChannel("defaultHostingChannel", HostingChannelArgs.builder()
            .siteId(default_.siteId())
            .channelId("channel-basic")
            .build());

    }
}
Copy
resources:
  default:
    type: gcp:firebase:HostingSite
    properties:
      project: my-project-name
      siteId: site-with-channel
  defaultHostingChannel:
    type: gcp:firebase:HostingChannel
    name: default
    properties:
      siteId: ${default.siteId}
      channelId: channel-basic
Copy

Firebasehosting Channel Full

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const _default = new gcp.firebase.HostingSite("default", {
    project: "my-project-name",
    siteId: "site-with-channel",
});
const full = new gcp.firebase.HostingChannel("full", {
    siteId: _default.siteId,
    channelId: "channel-full",
    ttl: "86400s",
    retainedReleaseCount: 20,
    labels: {
        "some-key": "some-value",
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

default = gcp.firebase.HostingSite("default",
    project="my-project-name",
    site_id="site-with-channel")
full = gcp.firebase.HostingChannel("full",
    site_id=default.site_id,
    channel_id="channel-full",
    ttl="86400s",
    retained_release_count=20,
    labels={
        "some-key": "some-value",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := firebase.NewHostingSite(ctx, "default", &firebase.HostingSiteArgs{
			Project: pulumi.String("my-project-name"),
			SiteId:  pulumi.String("site-with-channel"),
		})
		if err != nil {
			return err
		}
		_, err = firebase.NewHostingChannel(ctx, "full", &firebase.HostingChannelArgs{
			SiteId:               _default.SiteId,
			ChannelId:            pulumi.String("channel-full"),
			Ttl:                  pulumi.String("86400s"),
			RetainedReleaseCount: pulumi.Int(20),
			Labels: pulumi.StringMap{
				"some-key": pulumi.String("some-value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var @default = new Gcp.Firebase.HostingSite("default", new()
    {
        Project = "my-project-name",
        SiteId = "site-with-channel",
    });

    var full = new Gcp.Firebase.HostingChannel("full", new()
    {
        SiteId = @default.SiteId,
        ChannelId = "channel-full",
        Ttl = "86400s",
        RetainedReleaseCount = 20,
        Labels = 
        {
            { "some-key", "some-value" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.firebase.HostingSite;
import com.pulumi.gcp.firebase.HostingSiteArgs;
import com.pulumi.gcp.firebase.HostingChannel;
import com.pulumi.gcp.firebase.HostingChannelArgs;
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 default_ = new HostingSite("default", HostingSiteArgs.builder()
            .project("my-project-name")
            .siteId("site-with-channel")
            .build());

        var full = new HostingChannel("full", HostingChannelArgs.builder()
            .siteId(default_.siteId())
            .channelId("channel-full")
            .ttl("86400s")
            .retainedReleaseCount(20)
            .labels(Map.of("some-key", "some-value"))
            .build());

    }
}
Copy
resources:
  default:
    type: gcp:firebase:HostingSite
    properties:
      project: my-project-name
      siteId: site-with-channel
  full:
    type: gcp:firebase:HostingChannel
    properties:
      siteId: ${default.siteId}
      channelId: channel-full
      ttl: 86400s
      retainedReleaseCount: 20
      labels:
        some-key: some-value
Copy

Create HostingChannel Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new HostingChannel(name: string, args: HostingChannelArgs, opts?: CustomResourceOptions);
@overload
def HostingChannel(resource_name: str,
                   args: HostingChannelArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def HostingChannel(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   channel_id: Optional[str] = None,
                   site_id: Optional[str] = None,
                   expire_time: Optional[str] = None,
                   labels: Optional[Mapping[str, str]] = None,
                   retained_release_count: Optional[int] = None,
                   ttl: Optional[str] = None)
func NewHostingChannel(ctx *Context, name string, args HostingChannelArgs, opts ...ResourceOption) (*HostingChannel, error)
public HostingChannel(string name, HostingChannelArgs args, CustomResourceOptions? opts = null)
public HostingChannel(String name, HostingChannelArgs args)
public HostingChannel(String name, HostingChannelArgs args, CustomResourceOptions options)
type: gcp:firebase:HostingChannel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. HostingChannelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. HostingChannelArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. HostingChannelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. HostingChannelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. HostingChannelArgs
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 hostingChannelResource = new Gcp.Firebase.HostingChannel("hostingChannelResource", new()
{
    ChannelId = "string",
    SiteId = "string",
    ExpireTime = "string",
    Labels = 
    {
        { "string", "string" },
    },
    RetainedReleaseCount = 0,
    Ttl = "string",
});
Copy
example, err := firebase.NewHostingChannel(ctx, "hostingChannelResource", &firebase.HostingChannelArgs{
	ChannelId:  pulumi.String("string"),
	SiteId:     pulumi.String("string"),
	ExpireTime: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	RetainedReleaseCount: pulumi.Int(0),
	Ttl:                  pulumi.String("string"),
})
Copy
var hostingChannelResource = new HostingChannel("hostingChannelResource", HostingChannelArgs.builder()
    .channelId("string")
    .siteId("string")
    .expireTime("string")
    .labels(Map.of("string", "string"))
    .retainedReleaseCount(0)
    .ttl("string")
    .build());
Copy
hosting_channel_resource = gcp.firebase.HostingChannel("hostingChannelResource",
    channel_id="string",
    site_id="string",
    expire_time="string",
    labels={
        "string": "string",
    },
    retained_release_count=0,
    ttl="string")
Copy
const hostingChannelResource = new gcp.firebase.HostingChannel("hostingChannelResource", {
    channelId: "string",
    siteId: "string",
    expireTime: "string",
    labels: {
        string: "string",
    },
    retainedReleaseCount: 0,
    ttl: "string",
});
Copy
type: gcp:firebase:HostingChannel
properties:
    channelId: string
    expireTime: string
    labels:
        string: string
    retainedReleaseCount: 0
    siteId: string
    ttl: string
Copy

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

ChannelId
This property is required.
Changes to this property will trigger replacement.
string
Required. Immutable. A unique ID within the site that identifies the channel.


SiteId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID of the site in which to create this channel.
ExpireTime string
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
Labels Dictionary<string, string>
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
RetainedReleaseCount int
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
Ttl Changes to this property will trigger replacement. string
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
ChannelId
This property is required.
Changes to this property will trigger replacement.
string
Required. Immutable. A unique ID within the site that identifies the channel.


SiteId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID of the site in which to create this channel.
ExpireTime string
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
Labels map[string]string
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
RetainedReleaseCount int
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
Ttl Changes to this property will trigger replacement. string
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
channelId
This property is required.
Changes to this property will trigger replacement.
String
Required. Immutable. A unique ID within the site that identifies the channel.


siteId
This property is required.
Changes to this property will trigger replacement.
String
Required. The ID of the site in which to create this channel.
expireTime String
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
labels Map<String,String>
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
retainedReleaseCount Integer
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
ttl Changes to this property will trigger replacement. String
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
channelId
This property is required.
Changes to this property will trigger replacement.
string
Required. Immutable. A unique ID within the site that identifies the channel.


siteId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID of the site in which to create this channel.
expireTime string
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
labels {[key: string]: string}
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
retainedReleaseCount number
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
ttl Changes to this property will trigger replacement. string
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
channel_id
This property is required.
Changes to this property will trigger replacement.
str
Required. Immutable. A unique ID within the site that identifies the channel.


site_id
This property is required.
Changes to this property will trigger replacement.
str
Required. The ID of the site in which to create this channel.
expire_time str
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
labels Mapping[str, str]
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
retained_release_count int
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
ttl Changes to this property will trigger replacement. str
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
channelId
This property is required.
Changes to this property will trigger replacement.
String
Required. Immutable. A unique ID within the site that identifies the channel.


siteId
This property is required.
Changes to this property will trigger replacement.
String
Required. The ID of the site in which to create this channel.
expireTime String
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
labels Map<String>
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
retainedReleaseCount Number
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
ttl Changes to this property will trigger replacement. String
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).

Outputs

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

EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
name String
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id string
The provider-assigned unique ID for this managed resource.
name string
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id str
The provider-assigned unique ID for this managed resource.
name str
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
name String
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.

Look up Existing HostingChannel Resource

Get an existing HostingChannel 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?: HostingChannelState, opts?: CustomResourceOptions): HostingChannel
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        channel_id: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        expire_time: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        retained_release_count: Optional[int] = None,
        site_id: Optional[str] = None,
        ttl: Optional[str] = None) -> HostingChannel
func GetHostingChannel(ctx *Context, name string, id IDInput, state *HostingChannelState, opts ...ResourceOption) (*HostingChannel, error)
public static HostingChannel Get(string name, Input<string> id, HostingChannelState? state, CustomResourceOptions? opts = null)
public static HostingChannel get(String name, Output<String> id, HostingChannelState state, CustomResourceOptions options)
resources:  _:    type: gcp:firebase:HostingChannel    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ChannelId Changes to this property will trigger replacement. string
Required. Immutable. A unique ID within the site that identifies the channel.


EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
ExpireTime string
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
Labels Dictionary<string, string>
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Name string
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
RetainedReleaseCount int
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
SiteId Changes to this property will trigger replacement. string
Required. The ID of the site in which to create this channel.
Ttl Changes to this property will trigger replacement. string
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
ChannelId Changes to this property will trigger replacement. string
Required. Immutable. A unique ID within the site that identifies the channel.


EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
ExpireTime string
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
Labels map[string]string
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Name string
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
RetainedReleaseCount int
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
SiteId Changes to this property will trigger replacement. string
Required. The ID of the site in which to create this channel.
Ttl Changes to this property will trigger replacement. string
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
channelId Changes to this property will trigger replacement. String
Required. Immutable. A unique ID within the site that identifies the channel.


effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
expireTime String
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
labels Map<String,String>
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
name String
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
retainedReleaseCount Integer
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
siteId Changes to this property will trigger replacement. String
Required. The ID of the site in which to create this channel.
ttl Changes to this property will trigger replacement. String
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
channelId Changes to this property will trigger replacement. string
Required. Immutable. A unique ID within the site that identifies the channel.


effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
expireTime string
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
labels {[key: string]: string}
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
name string
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
retainedReleaseCount number
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
siteId Changes to this property will trigger replacement. string
Required. The ID of the site in which to create this channel.
ttl Changes to this property will trigger replacement. string
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
channel_id Changes to this property will trigger replacement. str
Required. Immutable. A unique ID within the site that identifies the channel.


effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
expire_time str
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
labels Mapping[str, str]
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
name str
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
retained_release_count int
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
site_id Changes to this property will trigger replacement. str
Required. The ID of the site in which to create this channel.
ttl Changes to this property will trigger replacement. str
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).
channelId Changes to this property will trigger replacement. String
Required. Immutable. A unique ID within the site that identifies the channel.


effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
expireTime String
The time at which the channel will be automatically deleted. If null, the channel will not be automatically deleted. This field is present in the output whether it's set directly or via the ttl field.
labels Map<String>
Text labels used for extra metadata and/or filtering Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
name String
The fully-qualified resource name for the channel, in the format: sites/SITE_ID/channels/CHANNEL_ID
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
retainedReleaseCount Number
The number of previous releases to retain on the channel for rollback or other purposes. Must be a number between 1-100. Defaults to 10 for new channels.
siteId Changes to this property will trigger replacement. String
Required. The ID of the site in which to create this channel.
ttl Changes to this property will trigger replacement. String
Input only. A time-to-live for this channel. Sets expire_time to the provided duration past the time of the request. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "86400s" (one day).

Import

Channel can be imported using any of these accepted formats:

  • sites/{{site_id}}/channels/{{channel_id}}

  • {{site_id}}/{{channel_id}}

When using the pulumi import command, Channel can be imported using one of the formats above. For example:

$ pulumi import gcp:firebase/hostingChannel:HostingChannel default sites/{{site_id}}/channels/{{channel_id}}
Copy
$ pulumi import gcp:firebase/hostingChannel:HostingChannel default {{site_id}}/{{channel_id}}
Copy

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.