Channel

class Channel : KotlinCustomResource

The Eventarc Channel resource To get more information about Channel, see:

Example Usage

Eventarc Channel With Cmek

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const primary = new gcp.eventarc.Channel("primary", {
location: "us-central1",
name: "some-channel",
cryptoKeyName: "some-key",
thirdPartyProvider: "projects/my-project-name/locations/us-central1/providers/datadog",
});
import pulumi
import pulumi_gcp as gcp
primary = gcp.eventarc.Channel("primary",
location="us-central1",
name="some-channel",
crypto_key_name="some-key",
third_party_provider="projects/my-project-name/locations/us-central1/providers/datadog")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var primary = new Gcp.Eventarc.Channel("primary", new()
{
Location = "us-central1",
Name = "some-channel",
CryptoKeyName = "some-key",
ThirdPartyProvider = "projects/my-project-name/locations/us-central1/providers/datadog",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/eventarc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventarc.NewChannel(ctx, "primary", &eventarc.ChannelArgs{
Location: pulumi.String("us-central1"),
Name: pulumi.String("some-channel"),
CryptoKeyName: pulumi.String("some-key"),
ThirdPartyProvider: pulumi.String("projects/my-project-name/locations/us-central1/providers/datadog"),
})
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.eventarc.Channel;
import com.pulumi.gcp.eventarc.ChannelArgs;
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 primary = new Channel("primary", ChannelArgs.builder()
.location("us-central1")
.name("some-channel")
.cryptoKeyName("some-key")
.thirdPartyProvider("projects/my-project-name/locations/us-central1/providers/datadog")
.build());
}
}
resources:
primary:
type: gcp:eventarc:Channel
properties:
location: us-central1
name: some-channel
cryptoKeyName: some-key
thirdPartyProvider: projects/my-project-name/locations/us-central1/providers/datadog

Import

Channel can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/channels/{{name}}

  • {{project}}/{{location}}/{{name}}

  • {{location}}/{{name}} When using the pulumi import command, Channel can be imported using one of the formats above. For example:

$ pulumi import gcp:eventarc/channel:Channel default projects/{{project}}/locations/{{location}}/channels/{{name}}
$ pulumi import gcp:eventarc/channel:Channel default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:eventarc/channel:Channel default {{location}}/{{name}}

Properties

Link copied to clipboard
val activationToken: Output<String>

The activation token for the channel. The token must be used by the provider to register the channel for publishing.

Link copied to clipboard
val createTime: Output<String>

The creation time.

Link copied to clipboard
val cryptoKeyName: Output<String>?

Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern projects/*/locations/*/keyRings/*/cryptoKeys/*. ////

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The location for the resource

Link copied to clipboard
val name: Output<String>

The resource name of the channel. Must be unique within the location on the project.

Link copied to clipboard
val project: Output<String>

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

Link copied to clipboard
val pubsubTopic: Output<String>

The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: projects/{project}/topics/{topic_id}.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Output<String>

The state of a Channel.

Link copied to clipboard

The name of the event provider (e.g. Eventarc SaaS partner) associated with the channel. This provider will be granted permissions to publish events to the channel. Format: projects/{project}/locations/{location}/providers/{provider_id}.

Link copied to clipboard
val uid: Output<String>

Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

Link copied to clipboard
val updateTime: Output<String>

The last-modified time.

Link copied to clipboard
val urn: Output<String>