gcp.eventarc.Channel
Explore with Pulumi AI
The Eventarc Channel resource
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const testProject = gcp.organizations.getProject({
projectId: "my-project-name",
});
const testKeyRing = gcp.kms.getKMSKeyRing({
name: "keyring",
location: "us-west1",
});
const key = testKeyRing.then(testKeyRing => gcp.kms.getKMSCryptoKey({
name: "key",
keyRing: testKeyRing.id,
}));
const key1Member = new gcp.kms.CryptoKeyIAMMember("key1_member", {
cryptoKeyId: key1.id,
role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
member: testProject.then(testProject => `serviceAccount:service-${testProject.number}@gcp-sa-eventarc.iam.gserviceaccount.com`),
});
const primary = new gcp.eventarc.Channel("primary", {
location: "us-west1",
name: "channel",
project: testProject.then(testProject => testProject.projectId),
cryptoKeyName: key1.id,
thirdPartyProvider: testProject.then(testProject => `projects/${testProject.projectId}/locations/us-west1/providers/datadog`),
}, {
dependsOn: [key1Member],
});
import pulumi
import pulumi_gcp as gcp
test_project = gcp.organizations.get_project(project_id="my-project-name")
test_key_ring = gcp.kms.get_kms_key_ring(name="keyring",
location="us-west1")
key = gcp.kms.get_kms_crypto_key(name="key",
key_ring=test_key_ring.id)
key1_member = gcp.kms.CryptoKeyIAMMember("key1_member",
crypto_key_id=key1["id"],
role="roles/cloudkms.cryptoKeyEncrypterDecrypter",
member=f"serviceAccount:service-{test_project.number}@gcp-sa-eventarc.iam.gserviceaccount.com")
primary = gcp.eventarc.Channel("primary",
location="us-west1",
name="channel",
project=test_project.project_id,
crypto_key_name=key1["id"],
third_party_provider=f"projects/{test_project.project_id}/locations/us-west1/providers/datadog",
opts = pulumi.ResourceOptions(depends_on=[key1_member]))
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/eventarc"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/kms"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testProject, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{
ProjectId: pulumi.StringRef("my-project-name"),
}, nil)
if err != nil {
return err
}
testKeyRing, err := kms.GetKMSKeyRing(ctx, &kms.GetKMSKeyRingArgs{
Name: "keyring",
Location: "us-west1",
}, nil)
if err != nil {
return err
}
_, err = kms.GetKMSCryptoKey(ctx, &kms.GetKMSCryptoKeyArgs{
Name: "key",
KeyRing: testKeyRing.Id,
}, nil)
if err != nil {
return err
}
key1Member, err := kms.NewCryptoKeyIAMMember(ctx, "key1_member", &kms.CryptoKeyIAMMemberArgs{
CryptoKeyId: pulumi.Any(key1.Id),
Role: pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
Member: pulumi.Sprintf("serviceAccount:service-%v@gcp-sa-eventarc.iam.gserviceaccount.com", testProject.Number),
})
if err != nil {
return err
}
_, err = eventarc.NewChannel(ctx, "primary", &eventarc.ChannelArgs{
Location: pulumi.String("us-west1"),
Name: pulumi.String("channel"),
Project: pulumi.String(testProject.ProjectId),
CryptoKeyName: pulumi.Any(key1.Id),
ThirdPartyProvider: pulumi.Sprintf("projects/%v/locations/us-west1/providers/datadog", testProject.ProjectId),
}, pulumi.DependsOn([]pulumi.Resource{
key1Member,
}))
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 testProject = Gcp.Organizations.GetProject.Invoke(new()
{
ProjectId = "my-project-name",
});
var testKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new()
{
Name = "keyring",
Location = "us-west1",
});
var key = Gcp.Kms.GetKMSCryptoKey.Invoke(new()
{
Name = "key",
KeyRing = testKeyRing.Apply(getKMSKeyRingResult => getKMSKeyRingResult.Id),
});
var key1Member = new Gcp.Kms.CryptoKeyIAMMember("key1_member", new()
{
CryptoKeyId = key1.Id,
Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter",
Member = $"serviceAccount:service-{testProject.Apply(getProjectResult => getProjectResult.Number)}@gcp-sa-eventarc.iam.gserviceaccount.com",
});
var primary = new Gcp.Eventarc.Channel("primary", new()
{
Location = "us-west1",
Name = "channel",
Project = testProject.Apply(getProjectResult => getProjectResult.ProjectId),
CryptoKeyName = key1.Id,
ThirdPartyProvider = $"projects/{testProject.Apply(getProjectResult => getProjectResult.ProjectId)}/locations/us-west1/providers/datadog",
}, new CustomResourceOptions
{
DependsOn =
{
key1Member,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.kms.KmsFunctions;
import com.pulumi.gcp.kms.inputs.GetKMSKeyRingArgs;
import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyArgs;
import com.pulumi.gcp.kms.CryptoKeyIAMMember;
import com.pulumi.gcp.kms.CryptoKeyIAMMemberArgs;
import com.pulumi.gcp.eventarc.Channel;
import com.pulumi.gcp.eventarc.ChannelArgs;
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) {
final var testProject = OrganizationsFunctions.getProject(GetProjectArgs.builder()
.projectId("my-project-name")
.build());
final var testKeyRing = KmsFunctions.getKMSKeyRing(GetKMSKeyRingArgs.builder()
.name("keyring")
.location("us-west1")
.build());
final var key = KmsFunctions.getKMSCryptoKey(GetKMSCryptoKeyArgs.builder()
.name("key")
.keyRing(testKeyRing.applyValue(getKMSKeyRingResult -> getKMSKeyRingResult.id()))
.build());
var key1Member = new CryptoKeyIAMMember("key1Member", CryptoKeyIAMMemberArgs.builder()
.cryptoKeyId(key1.id())
.role("roles/cloudkms.cryptoKeyEncrypterDecrypter")
.member(String.format("serviceAccount:service-%s@gcp-sa-eventarc.iam.gserviceaccount.com", testProject.applyValue(getProjectResult -> getProjectResult.number())))
.build());
var primary = new Channel("primary", ChannelArgs.builder()
.location("us-west1")
.name("channel")
.project(testProject.applyValue(getProjectResult -> getProjectResult.projectId()))
.cryptoKeyName(key1.id())
.thirdPartyProvider(String.format("projects/%s/locations/us-west1/providers/datadog", testProject.applyValue(getProjectResult -> getProjectResult.projectId())))
.build(), CustomResourceOptions.builder()
.dependsOn(key1Member)
.build());
}
}
resources:
key1Member:
type: gcp:kms:CryptoKeyIAMMember
name: key1_member
properties:
cryptoKeyId: ${key1.id}
role: roles/cloudkms.cryptoKeyEncrypterDecrypter
member: serviceAccount:service-${testProject.number}@gcp-sa-eventarc.iam.gserviceaccount.com
primary:
type: gcp:eventarc:Channel
properties:
location: us-west1
name: channel
project: ${testProject.projectId}
cryptoKeyName: ${key1.id}
thirdPartyProvider: projects/${testProject.projectId}/locations/us-west1/providers/datadog
options:
dependson:
- ${key1Member}
variables:
testProject:
fn::invoke:
Function: gcp:organizations:getProject
Arguments:
projectId: my-project-name
testKeyRing:
fn::invoke:
Function: gcp:kms:getKMSKeyRing
Arguments:
name: keyring
location: us-west1
key:
fn::invoke:
Function: gcp:kms:getKMSCryptoKey
Arguments:
name: key
keyRing: ${testKeyRing.id}
Create Channel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Channel(name: string, args: ChannelArgs, opts?: CustomResourceOptions);
@overload
def Channel(resource_name: str,
args: ChannelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Channel(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
crypto_key_name: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
third_party_provider: Optional[str] = None)
func NewChannel(ctx *Context, name string, args ChannelArgs, opts ...ResourceOption) (*Channel, error)
public Channel(string name, ChannelArgs args, CustomResourceOptions? opts = null)
public Channel(String name, ChannelArgs args)
public Channel(String name, ChannelArgs args, CustomResourceOptions options)
type: gcp:eventarc:Channel
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 ChannelArgs
- 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 ChannelArgs
- 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 ChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ChannelArgs
- 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 channelResource = new Gcp.Eventarc.Channel("channelResource", new()
{
Location = "string",
CryptoKeyName = "string",
Name = "string",
Project = "string",
ThirdPartyProvider = "string",
});
example, err := eventarc.NewChannel(ctx, "channelResource", &eventarc.ChannelArgs{
Location: pulumi.String("string"),
CryptoKeyName: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
ThirdPartyProvider: pulumi.String("string"),
})
var channelResource = new Channel("channelResource", ChannelArgs.builder()
.location("string")
.cryptoKeyName("string")
.name("string")
.project("string")
.thirdPartyProvider("string")
.build());
channel_resource = gcp.eventarc.Channel("channelResource",
location="string",
crypto_key_name="string",
name="string",
project="string",
third_party_provider="string")
const channelResource = new gcp.eventarc.Channel("channelResource", {
location: "string",
cryptoKeyName: "string",
name: "string",
project: "string",
thirdPartyProvider: "string",
});
type: gcp:eventarc:Channel
properties:
cryptoKeyName: string
location: string
name: string
project: string
thirdPartyProvider: string
Channel 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 Channel resource accepts the following input properties:
- Location string
- The location for the resource
- Crypto
Key stringName - Optional. 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/*
. - Name string
- Required. The resource name of the channel. Must be unique within the location on the project.
- Project string
- The project for the resource
- Third
Party stringProvider - 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}
.
- Location string
- The location for the resource
- Crypto
Key stringName - Optional. 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/*
. - Name string
- Required. The resource name of the channel. Must be unique within the location on the project.
- Project string
- The project for the resource
- Third
Party stringProvider - 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}
.
- location String
- The location for the resource
- crypto
Key StringName - Optional. 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/*
. - name String
- Required. The resource name of the channel. Must be unique within the location on the project.
- project String
- The project for the resource
- third
Party StringProvider - 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}
.
- location string
- The location for the resource
- crypto
Key stringName - Optional. 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/*
. - name string
- Required. The resource name of the channel. Must be unique within the location on the project.
- project string
- The project for the resource
- third
Party stringProvider - 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}
.
- location str
- The location for the resource
- crypto_
key_ strname - Optional. 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/*
. - name str
- Required. The resource name of the channel. Must be unique within the location on the project.
- project str
- The project for the resource
- third_
party_ strprovider - 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}
.
- location String
- The location for the resource
- crypto
Key StringName - Optional. 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/*
. - name String
- Required. The resource name of the channel. Must be unique within the location on the project.
- project String
- The project for the resource
- third
Party StringProvider - 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}
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Channel resource produces the following output properties:
- Activation
Token string - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- Create
Time string - Output only. The creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pubsub
Topic string - Output only. 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}
. - State string
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- Uid string
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- Update
Time string - Output only. The last-modified time.
- Activation
Token string - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- Create
Time string - Output only. The creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pubsub
Topic string - Output only. 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}
. - State string
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- Uid string
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- Update
Time string - Output only. The last-modified time.
- activation
Token String - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- create
Time String - Output only. The creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- pubsub
Topic String - Output only. 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}
. - state String
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- uid String
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time String - Output only. The last-modified time.
- activation
Token string - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- create
Time string - Output only. The creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- pubsub
Topic string - Output only. 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}
. - state string
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- uid string
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time string - Output only. The last-modified time.
- activation_
token str - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- create_
time str - Output only. The creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- pubsub_
topic str - Output only. 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}
. - state str
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- uid str
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update_
time str - Output only. The last-modified time.
- activation
Token String - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- create
Time String - Output only. The creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- pubsub
Topic String - Output only. 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}
. - state String
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- uid String
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time String - Output only. The last-modified time.
Look up Existing Channel Resource
Get an existing Channel 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?: ChannelState, opts?: CustomResourceOptions): Channel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
activation_token: Optional[str] = None,
create_time: Optional[str] = None,
crypto_key_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pubsub_topic: Optional[str] = None,
state: Optional[str] = None,
third_party_provider: Optional[str] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None) -> Channel
func GetChannel(ctx *Context, name string, id IDInput, state *ChannelState, opts ...ResourceOption) (*Channel, error)
public static Channel Get(string name, Input<string> id, ChannelState? state, CustomResourceOptions? opts = null)
public static Channel get(String name, Output<String> id, ChannelState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Activation
Token string - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- Create
Time string - Output only. The creation time.
- Crypto
Key stringName - Optional. 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/*
. - Location string
- The location for the resource
- Name string
- Required. The resource name of the channel. Must be unique within the location on the project.
- Project string
- The project for the resource
- Pubsub
Topic string - Output only. 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}
. - State string
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- Third
Party stringProvider - 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}
. - Uid string
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- Update
Time string - Output only. The last-modified time.
- Activation
Token string - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- Create
Time string - Output only. The creation time.
- Crypto
Key stringName - Optional. 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/*
. - Location string
- The location for the resource
- Name string
- Required. The resource name of the channel. Must be unique within the location on the project.
- Project string
- The project for the resource
- Pubsub
Topic string - Output only. 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}
. - State string
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- Third
Party stringProvider - 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}
. - Uid string
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- Update
Time string - Output only. The last-modified time.
- activation
Token String - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- create
Time String - Output only. The creation time.
- crypto
Key StringName - Optional. 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/*
. - location String
- The location for the resource
- name String
- Required. The resource name of the channel. Must be unique within the location on the project.
- project String
- The project for the resource
- pubsub
Topic String - Output only. 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}
. - state String
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- third
Party StringProvider - 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}
. - uid String
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time String - Output only. The last-modified time.
- activation
Token string - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- create
Time string - Output only. The creation time.
- crypto
Key stringName - Optional. 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/*
. - location string
- The location for the resource
- name string
- Required. The resource name of the channel. Must be unique within the location on the project.
- project string
- The project for the resource
- pubsub
Topic string - Output only. 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}
. - state string
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- third
Party stringProvider - 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}
. - uid string
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time string - Output only. The last-modified time.
- activation_
token str - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- create_
time str - Output only. The creation time.
- crypto_
key_ strname - Optional. 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/*
. - location str
- The location for the resource
- name str
- Required. The resource name of the channel. Must be unique within the location on the project.
- project str
- The project for the resource
- pubsub_
topic str - Output only. 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}
. - state str
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- third_
party_ strprovider - 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}
. - uid str
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update_
time str - Output only. The last-modified time.
- activation
Token String - Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
- create
Time String - Output only. The creation time.
- crypto
Key StringName - Optional. 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/*
. - location String
- The location for the resource
- name String
- Required. The resource name of the channel. Must be unique within the location on the project.
- project String
- The project for the resource
- pubsub
Topic String - Output only. 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}
. - state String
- Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
- third
Party StringProvider - 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}
. - uid String
- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time String - Output only. The last-modified time.
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}}
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.