HostingChannelArgs

data class HostingChannelArgs(val channelId: Output<String>? = null, val expireTime: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val retainedReleaseCount: Output<Int>? = null, val siteId: Output<String>? = null, val ttl: Output<String>? = null) : ConvertibleToJava<HostingChannelArgs>

Example Usage

Firebasehosting Channel Basic

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 com.pulumi.resources.CustomResourceOptions;
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 defaultHostingSite = new HostingSite("defaultHostingSite", HostingSiteArgs.builder()
.project("my-project-name")
.siteId("site-with-channel")
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
var defaultHostingChannel = new HostingChannel("defaultHostingChannel", HostingChannelArgs.builder()
.siteId(defaultHostingSite.siteId())
.channelId("channel-basic")
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}

Firebasehosting Channel Full

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 com.pulumi.resources.CustomResourceOptions;
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(), CustomResourceOptions.builder()
.provider(google_beta)
.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(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}

Import

Channel can be imported using any of these accepted formats

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

Constructors

Link copied to clipboard
constructor(channelId: Output<String>? = null, expireTime: Output<String>? = null, labels: Output<Map<String, String>>? = null, retainedReleaseCount: Output<Int>? = null, siteId: Output<String>? = null, ttl: Output<String>? = null)

Properties

Link copied to clipboard
val channelId: Output<String>? = null

Required. Immutable. A unique ID within the site that identifies the channel.

Link copied to clipboard
val expireTime: Output<String>? = null

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.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Text labels used for extra metadata and/or filtering

Link copied to clipboard
val retainedReleaseCount: Output<Int>? = null

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.

Link copied to clipboard
val siteId: Output<String>? = null

Required. The ID of the site in which to create this channel.

Link copied to clipboard
val ttl: Output<String>? = null

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).

Functions

Link copied to clipboard
open override fun toJava(): HostingChannelArgs