Channel
The Eventarc Channel resource To get more information about Channel, see:
How-to Guides
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 thepulumi 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
The activation token for the channel. The token must be used by the provider to register the channel for publishing.
The creation time.
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/*
. ////
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}
.
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}
.
The last-modified time.