@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
206 lines (205 loc) • 7.79 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The Eventarc Channel resource
*
* To get more information about Channel, see:
*
* * [API documentation](https://cloud.google.com/eventarc/docs/reference/rest/v1/projects.locations.channels)
* * How-to Guides
* * [Official Documentation](https://cloud.google.com/eventarc/standard/docs/third-parties/create-channels)
*
* ## Example Usage
*
* ### Eventarc Channel With Cmek
*
* ```typescript
* 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
*
* 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:
*
* ```sh
* $ pulumi import gcp:eventarc/channel:Channel default projects/{{project}}/locations/{{location}}/channels/{{name}}
* ```
*
* ```sh
* $ pulumi import gcp:eventarc/channel:Channel default {{project}}/{{location}}/{{name}}
* ```
*
* ```sh
* $ pulumi import gcp:eventarc/channel:Channel default {{location}}/{{name}}
* ```
*/
export declare class Channel extends pulumi.CustomResource {
/**
* Get an existing Channel resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ChannelState, opts?: pulumi.CustomResourceOptions): Channel;
/**
* Returns true if the given object is an instance of Channel. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Channel;
/**
* The activation token for the channel. The token must be used by the provider to register the channel for publishing.
*/
readonly activationToken: pulumi.Output<string>;
/**
* The creation time.
*/
readonly createTime: pulumi.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/*`.
*/
readonly cryptoKeyName: pulumi.Output<string | undefined>;
/**
* The location for the resource
*
*
* - - -
*/
readonly location: pulumi.Output<string>;
/**
* The resource name of the channel. Must be unique within the location on the project.
*/
readonly name: pulumi.Output<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
readonly project: pulumi.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}`.
*/
readonly pubsubTopic: pulumi.Output<string>;
/**
* The state of a Channel.
*/
readonly state: pulumi.Output<string>;
/**
* 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}`.
*/
readonly thirdPartyProvider: pulumi.Output<string | undefined>;
/**
* Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
*/
readonly uid: pulumi.Output<string>;
/**
* The last-modified time.
*/
readonly updateTime: pulumi.Output<string>;
/**
* Create a Channel resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ChannelArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Channel resources.
*/
export interface ChannelState {
/**
* The activation token for the channel. The token must be used by the provider to register the channel for publishing.
*/
activationToken?: pulumi.Input<string>;
/**
* The creation time.
*/
createTime?: pulumi.Input<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/*`.
*/
cryptoKeyName?: pulumi.Input<string>;
/**
* The location for the resource
*
*
* - - -
*/
location?: pulumi.Input<string>;
/**
* The resource name of the channel. Must be unique within the location on the project.
*/
name?: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<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}`.
*/
pubsubTopic?: pulumi.Input<string>;
/**
* The state of a Channel.
*/
state?: pulumi.Input<string>;
/**
* 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}`.
*/
thirdPartyProvider?: pulumi.Input<string>;
/**
* Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
*/
uid?: pulumi.Input<string>;
/**
* The last-modified time.
*/
updateTime?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Channel resource.
*/
export interface ChannelArgs {
/**
* 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/*`.
*/
cryptoKeyName?: pulumi.Input<string>;
/**
* The location for the resource
*
*
* - - -
*/
location: pulumi.Input<string>;
/**
* The resource name of the channel. Must be unique within the location on the project.
*/
name?: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* 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}`.
*/
thirdPartyProvider?: pulumi.Input<string>;
}