eventarc

package
v6.67.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel added in v6.44.0

type Channel struct {
	pulumi.CustomResourceState

	// Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
	ActivationToken pulumi.StringOutput `pulumi:"activationToken"`
	// Output only. The creation time.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// 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/*`.
	CryptoKeyName pulumi.StringPtrOutput `pulumi:"cryptoKeyName"`
	// The location for the resource
	Location pulumi.StringOutput `pulumi:"location"`
	// Required. The resource name of the channel. Must be unique within the location on the project.
	//
	// ***
	Name pulumi.StringOutput `pulumi:"name"`
	// The project for the resource
	Project pulumi.StringOutput `pulumi:"project"`
	// 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}`.
	PubsubTopic pulumi.StringOutput `pulumi:"pubsubTopic"`
	// Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
	State pulumi.StringOutput `pulumi:"state"`
	// 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.StringPtrOutput `pulumi:"thirdPartyProvider"`
	// 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.
	Uid pulumi.StringOutput `pulumi:"uid"`
	// Output only. The last-modified time.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

The Eventarc Channel resource

## Example Usage ### Basic ```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/eventarc"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/kms"
"github.com/pulumi/pulumi-gcp/sdk/v6/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, "key1Member", &kms.CryptoKeyIAMMemberArgs{
			CryptoKeyId: pulumi.Any(data.Google_kms_crypto_key.Key1.Id),
			Role:        pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
			Member:      pulumi.String(fmt.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"),
			Project:            *pulumi.String(testProject.ProjectId),
			CryptoKeyName:      pulumi.Any(data.Google_kms_crypto_key.Key1.Id),
			ThirdPartyProvider: pulumi.String(fmt.Sprintf("projects/%v/locations/us-west1/providers/datadog", testProject.ProjectId)),
		}, pulumi.DependsOn([]pulumi.Resource{
			key1Member,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Channel can be imported using any of these accepted formats

```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}}

```

func GetChannel added in v6.44.0

func GetChannel(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ChannelState, opts ...pulumi.ResourceOption) (*Channel, error)

GetChannel gets an existing Channel resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewChannel added in v6.44.0

func NewChannel(ctx *pulumi.Context,
	name string, args *ChannelArgs, opts ...pulumi.ResourceOption) (*Channel, error)

NewChannel registers a new resource with the given unique name, arguments, and options.

func (*Channel) ElementType added in v6.44.0

func (*Channel) ElementType() reflect.Type

func (*Channel) ToChannelOutput added in v6.44.0

func (i *Channel) ToChannelOutput() ChannelOutput

func (*Channel) ToChannelOutputWithContext added in v6.44.0

func (i *Channel) ToChannelOutputWithContext(ctx context.Context) ChannelOutput

func (*Channel) ToOutput added in v6.65.1

func (i *Channel) ToOutput(ctx context.Context) pulumix.Output[*Channel]

type ChannelArgs added in v6.44.0

type ChannelArgs struct {
	// 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/*`.
	CryptoKeyName pulumi.StringPtrInput
	// The location for the resource
	Location pulumi.StringInput
	// Required. The resource name of the channel. Must be unique within the location on the project.
	//
	// ***
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// 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.StringPtrInput
}

The set of arguments for constructing a Channel resource.

func (ChannelArgs) ElementType added in v6.44.0

func (ChannelArgs) ElementType() reflect.Type

type ChannelArray added in v6.44.0

type ChannelArray []ChannelInput

func (ChannelArray) ElementType added in v6.44.0

func (ChannelArray) ElementType() reflect.Type

func (ChannelArray) ToChannelArrayOutput added in v6.44.0

func (i ChannelArray) ToChannelArrayOutput() ChannelArrayOutput

func (ChannelArray) ToChannelArrayOutputWithContext added in v6.44.0

func (i ChannelArray) ToChannelArrayOutputWithContext(ctx context.Context) ChannelArrayOutput

func (ChannelArray) ToOutput added in v6.65.1

func (i ChannelArray) ToOutput(ctx context.Context) pulumix.Output[[]*Channel]

type ChannelArrayInput added in v6.44.0

type ChannelArrayInput interface {
	pulumi.Input

	ToChannelArrayOutput() ChannelArrayOutput
	ToChannelArrayOutputWithContext(context.Context) ChannelArrayOutput
}

ChannelArrayInput is an input type that accepts ChannelArray and ChannelArrayOutput values. You can construct a concrete instance of `ChannelArrayInput` via:

ChannelArray{ ChannelArgs{...} }

type ChannelArrayOutput added in v6.44.0

type ChannelArrayOutput struct{ *pulumi.OutputState }

func (ChannelArrayOutput) ElementType added in v6.44.0

func (ChannelArrayOutput) ElementType() reflect.Type

func (ChannelArrayOutput) Index added in v6.44.0

func (ChannelArrayOutput) ToChannelArrayOutput added in v6.44.0

func (o ChannelArrayOutput) ToChannelArrayOutput() ChannelArrayOutput

func (ChannelArrayOutput) ToChannelArrayOutputWithContext added in v6.44.0

func (o ChannelArrayOutput) ToChannelArrayOutputWithContext(ctx context.Context) ChannelArrayOutput

func (ChannelArrayOutput) ToOutput added in v6.65.1

type ChannelInput added in v6.44.0

type ChannelInput interface {
	pulumi.Input

	ToChannelOutput() ChannelOutput
	ToChannelOutputWithContext(ctx context.Context) ChannelOutput
}

type ChannelMap added in v6.44.0

type ChannelMap map[string]ChannelInput

func (ChannelMap) ElementType added in v6.44.0

func (ChannelMap) ElementType() reflect.Type

func (ChannelMap) ToChannelMapOutput added in v6.44.0

func (i ChannelMap) ToChannelMapOutput() ChannelMapOutput

func (ChannelMap) ToChannelMapOutputWithContext added in v6.44.0

func (i ChannelMap) ToChannelMapOutputWithContext(ctx context.Context) ChannelMapOutput

func (ChannelMap) ToOutput added in v6.65.1

func (i ChannelMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Channel]

type ChannelMapInput added in v6.44.0

type ChannelMapInput interface {
	pulumi.Input

	ToChannelMapOutput() ChannelMapOutput
	ToChannelMapOutputWithContext(context.Context) ChannelMapOutput
}

ChannelMapInput is an input type that accepts ChannelMap and ChannelMapOutput values. You can construct a concrete instance of `ChannelMapInput` via:

ChannelMap{ "key": ChannelArgs{...} }

type ChannelMapOutput added in v6.44.0

type ChannelMapOutput struct{ *pulumi.OutputState }

func (ChannelMapOutput) ElementType added in v6.44.0

func (ChannelMapOutput) ElementType() reflect.Type

func (ChannelMapOutput) MapIndex added in v6.44.0

func (ChannelMapOutput) ToChannelMapOutput added in v6.44.0

func (o ChannelMapOutput) ToChannelMapOutput() ChannelMapOutput

func (ChannelMapOutput) ToChannelMapOutputWithContext added in v6.44.0

func (o ChannelMapOutput) ToChannelMapOutputWithContext(ctx context.Context) ChannelMapOutput

func (ChannelMapOutput) ToOutput added in v6.65.1

type ChannelOutput added in v6.44.0

type ChannelOutput struct{ *pulumi.OutputState }

func (ChannelOutput) ActivationToken added in v6.44.0

func (o ChannelOutput) ActivationToken() pulumi.StringOutput

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

func (ChannelOutput) CreateTime added in v6.44.0

func (o ChannelOutput) CreateTime() pulumi.StringOutput

Output only. The creation time.

func (ChannelOutput) CryptoKeyName added in v6.44.0

func (o ChannelOutput) CryptoKeyName() pulumi.StringPtrOutput

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/*`.

func (ChannelOutput) ElementType added in v6.44.0

func (ChannelOutput) ElementType() reflect.Type

func (ChannelOutput) Location added in v6.44.0

func (o ChannelOutput) Location() pulumi.StringOutput

The location for the resource

func (ChannelOutput) Name added in v6.44.0

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

***

func (ChannelOutput) Project added in v6.44.0

func (o ChannelOutput) Project() pulumi.StringOutput

The project for the resource

func (ChannelOutput) PubsubTopic added in v6.44.0

func (o ChannelOutput) PubsubTopic() pulumi.StringOutput

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}`.

func (ChannelOutput) State added in v6.44.0

func (o ChannelOutput) State() pulumi.StringOutput

Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE

func (ChannelOutput) ThirdPartyProvider added in v6.44.0

func (o ChannelOutput) ThirdPartyProvider() pulumi.StringPtrOutput

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}`.

func (ChannelOutput) ToChannelOutput added in v6.44.0

func (o ChannelOutput) ToChannelOutput() ChannelOutput

func (ChannelOutput) ToChannelOutputWithContext added in v6.44.0

func (o ChannelOutput) ToChannelOutputWithContext(ctx context.Context) ChannelOutput

func (ChannelOutput) ToOutput added in v6.65.1

func (o ChannelOutput) ToOutput(ctx context.Context) pulumix.Output[*Channel]

func (ChannelOutput) Uid added in v6.44.0

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.

func (ChannelOutput) UpdateTime added in v6.44.0

func (o ChannelOutput) UpdateTime() pulumi.StringOutput

Output only. The last-modified time.

type ChannelState added in v6.44.0

type ChannelState struct {
	// Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
	ActivationToken pulumi.StringPtrInput
	// Output only. The creation time.
	CreateTime pulumi.StringPtrInput
	// 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/*`.
	CryptoKeyName pulumi.StringPtrInput
	// The location for the resource
	Location pulumi.StringPtrInput
	// Required. The resource name of the channel. Must be unique within the location on the project.
	//
	// ***
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// 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}`.
	PubsubTopic pulumi.StringPtrInput
	// Output only. The state of a Channel. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE, INACTIVE
	State pulumi.StringPtrInput
	// 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.StringPtrInput
	// 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.
	Uid pulumi.StringPtrInput
	// Output only. The last-modified time.
	UpdateTime pulumi.StringPtrInput
}

func (ChannelState) ElementType added in v6.44.0

func (ChannelState) ElementType() reflect.Type

type GoogleChannelConfig added in v6.45.0

type GoogleChannelConfig struct {
	pulumi.CustomResourceState

	// 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/*`.
	CryptoKeyName pulumi.StringPtrOutput `pulumi:"cryptoKeyName"`
	// The location for the resource
	Location pulumi.StringOutput `pulumi:"location"`
	// Required. The resource name of the config. Must be in the format of, `projects/{project}/locations/{location}/googleChannelConfig`.
	//
	// ***
	Name pulumi.StringOutput `pulumi:"name"`
	// The project for the resource
	Project pulumi.StringOutput `pulumi:"project"`
	// Output only. The last-modified time.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

The Eventarc GoogleChannelConfig resource

## Example Usage ### Basic ```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/eventarc"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/kms"
"github.com/pulumi/pulumi-gcp/sdk/v6/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, "key1Member", &kms.CryptoKeyIAMMemberArgs{
			CryptoKeyId: pulumi.Any(data.Google_kms_crypto_key.Key1.Id),
			Role:        pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
			Member:      pulumi.String(fmt.Sprintf("serviceAccount:service-%v@gcp-sa-eventarc.iam.gserviceaccount.com", testProject.Number)),
		})
		if err != nil {
			return err
		}
		_, err = eventarc.NewGoogleChannelConfig(ctx, "primary", &eventarc.GoogleChannelConfigArgs{
			Location:      pulumi.String("us-west1"),
			Project:       *pulumi.String(testProject.ProjectId),
			CryptoKeyName: pulumi.Any(data.Google_kms_crypto_key.Key1.Id),
		}, pulumi.DependsOn([]pulumi.Resource{
			key1Member,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GoogleChannelConfig can be imported using any of these accepted formats

```sh

$ pulumi import gcp:eventarc/googleChannelConfig:GoogleChannelConfig default projects/{{project}}/locations/{{location}}/googleChannelConfig

```

```sh

$ pulumi import gcp:eventarc/googleChannelConfig:GoogleChannelConfig default {{project}}/{{location}}

```

```sh

$ pulumi import gcp:eventarc/googleChannelConfig:GoogleChannelConfig default {{location}}

```

func GetGoogleChannelConfig added in v6.45.0

func GetGoogleChannelConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GoogleChannelConfigState, opts ...pulumi.ResourceOption) (*GoogleChannelConfig, error)

GetGoogleChannelConfig gets an existing GoogleChannelConfig resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGoogleChannelConfig added in v6.45.0

func NewGoogleChannelConfig(ctx *pulumi.Context,
	name string, args *GoogleChannelConfigArgs, opts ...pulumi.ResourceOption) (*GoogleChannelConfig, error)

NewGoogleChannelConfig registers a new resource with the given unique name, arguments, and options.

func (*GoogleChannelConfig) ElementType added in v6.45.0

func (*GoogleChannelConfig) ElementType() reflect.Type

func (*GoogleChannelConfig) ToGoogleChannelConfigOutput added in v6.45.0

func (i *GoogleChannelConfig) ToGoogleChannelConfigOutput() GoogleChannelConfigOutput

func (*GoogleChannelConfig) ToGoogleChannelConfigOutputWithContext added in v6.45.0

func (i *GoogleChannelConfig) ToGoogleChannelConfigOutputWithContext(ctx context.Context) GoogleChannelConfigOutput

func (*GoogleChannelConfig) ToOutput added in v6.65.1

type GoogleChannelConfigArgs added in v6.45.0

type GoogleChannelConfigArgs struct {
	// 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/*`.
	CryptoKeyName pulumi.StringPtrInput
	// The location for the resource
	Location pulumi.StringInput
	// Required. The resource name of the config. Must be in the format of, `projects/{project}/locations/{location}/googleChannelConfig`.
	//
	// ***
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
}

The set of arguments for constructing a GoogleChannelConfig resource.

func (GoogleChannelConfigArgs) ElementType added in v6.45.0

func (GoogleChannelConfigArgs) ElementType() reflect.Type

type GoogleChannelConfigArray added in v6.45.0

type GoogleChannelConfigArray []GoogleChannelConfigInput

func (GoogleChannelConfigArray) ElementType added in v6.45.0

func (GoogleChannelConfigArray) ElementType() reflect.Type

func (GoogleChannelConfigArray) ToGoogleChannelConfigArrayOutput added in v6.45.0

func (i GoogleChannelConfigArray) ToGoogleChannelConfigArrayOutput() GoogleChannelConfigArrayOutput

func (GoogleChannelConfigArray) ToGoogleChannelConfigArrayOutputWithContext added in v6.45.0

func (i GoogleChannelConfigArray) ToGoogleChannelConfigArrayOutputWithContext(ctx context.Context) GoogleChannelConfigArrayOutput

func (GoogleChannelConfigArray) ToOutput added in v6.65.1

type GoogleChannelConfigArrayInput added in v6.45.0

type GoogleChannelConfigArrayInput interface {
	pulumi.Input

	ToGoogleChannelConfigArrayOutput() GoogleChannelConfigArrayOutput
	ToGoogleChannelConfigArrayOutputWithContext(context.Context) GoogleChannelConfigArrayOutput
}

GoogleChannelConfigArrayInput is an input type that accepts GoogleChannelConfigArray and GoogleChannelConfigArrayOutput values. You can construct a concrete instance of `GoogleChannelConfigArrayInput` via:

GoogleChannelConfigArray{ GoogleChannelConfigArgs{...} }

type GoogleChannelConfigArrayOutput added in v6.45.0

type GoogleChannelConfigArrayOutput struct{ *pulumi.OutputState }

func (GoogleChannelConfigArrayOutput) ElementType added in v6.45.0

func (GoogleChannelConfigArrayOutput) Index added in v6.45.0

func (GoogleChannelConfigArrayOutput) ToGoogleChannelConfigArrayOutput added in v6.45.0

func (o GoogleChannelConfigArrayOutput) ToGoogleChannelConfigArrayOutput() GoogleChannelConfigArrayOutput

func (GoogleChannelConfigArrayOutput) ToGoogleChannelConfigArrayOutputWithContext added in v6.45.0

func (o GoogleChannelConfigArrayOutput) ToGoogleChannelConfigArrayOutputWithContext(ctx context.Context) GoogleChannelConfigArrayOutput

func (GoogleChannelConfigArrayOutput) ToOutput added in v6.65.1

type GoogleChannelConfigInput added in v6.45.0

type GoogleChannelConfigInput interface {
	pulumi.Input

	ToGoogleChannelConfigOutput() GoogleChannelConfigOutput
	ToGoogleChannelConfigOutputWithContext(ctx context.Context) GoogleChannelConfigOutput
}

type GoogleChannelConfigMap added in v6.45.0

type GoogleChannelConfigMap map[string]GoogleChannelConfigInput

func (GoogleChannelConfigMap) ElementType added in v6.45.0

func (GoogleChannelConfigMap) ElementType() reflect.Type

func (GoogleChannelConfigMap) ToGoogleChannelConfigMapOutput added in v6.45.0

func (i GoogleChannelConfigMap) ToGoogleChannelConfigMapOutput() GoogleChannelConfigMapOutput

func (GoogleChannelConfigMap) ToGoogleChannelConfigMapOutputWithContext added in v6.45.0

func (i GoogleChannelConfigMap) ToGoogleChannelConfigMapOutputWithContext(ctx context.Context) GoogleChannelConfigMapOutput

func (GoogleChannelConfigMap) ToOutput added in v6.65.1

type GoogleChannelConfigMapInput added in v6.45.0

type GoogleChannelConfigMapInput interface {
	pulumi.Input

	ToGoogleChannelConfigMapOutput() GoogleChannelConfigMapOutput
	ToGoogleChannelConfigMapOutputWithContext(context.Context) GoogleChannelConfigMapOutput
}

GoogleChannelConfigMapInput is an input type that accepts GoogleChannelConfigMap and GoogleChannelConfigMapOutput values. You can construct a concrete instance of `GoogleChannelConfigMapInput` via:

GoogleChannelConfigMap{ "key": GoogleChannelConfigArgs{...} }

type GoogleChannelConfigMapOutput added in v6.45.0

type GoogleChannelConfigMapOutput struct{ *pulumi.OutputState }

func (GoogleChannelConfigMapOutput) ElementType added in v6.45.0

func (GoogleChannelConfigMapOutput) MapIndex added in v6.45.0

func (GoogleChannelConfigMapOutput) ToGoogleChannelConfigMapOutput added in v6.45.0

func (o GoogleChannelConfigMapOutput) ToGoogleChannelConfigMapOutput() GoogleChannelConfigMapOutput

func (GoogleChannelConfigMapOutput) ToGoogleChannelConfigMapOutputWithContext added in v6.45.0

func (o GoogleChannelConfigMapOutput) ToGoogleChannelConfigMapOutputWithContext(ctx context.Context) GoogleChannelConfigMapOutput

func (GoogleChannelConfigMapOutput) ToOutput added in v6.65.1

type GoogleChannelConfigOutput added in v6.45.0

type GoogleChannelConfigOutput struct{ *pulumi.OutputState }

func (GoogleChannelConfigOutput) CryptoKeyName added in v6.45.0

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/*`.

func (GoogleChannelConfigOutput) ElementType added in v6.45.0

func (GoogleChannelConfigOutput) ElementType() reflect.Type

func (GoogleChannelConfigOutput) Location added in v6.45.0

The location for the resource

func (GoogleChannelConfigOutput) Name added in v6.45.0

Required. The resource name of the config. Must be in the format of, `projects/{project}/locations/{location}/googleChannelConfig`.

***

func (GoogleChannelConfigOutput) Project added in v6.45.0

The project for the resource

func (GoogleChannelConfigOutput) ToGoogleChannelConfigOutput added in v6.45.0

func (o GoogleChannelConfigOutput) ToGoogleChannelConfigOutput() GoogleChannelConfigOutput

func (GoogleChannelConfigOutput) ToGoogleChannelConfigOutputWithContext added in v6.45.0

func (o GoogleChannelConfigOutput) ToGoogleChannelConfigOutputWithContext(ctx context.Context) GoogleChannelConfigOutput

func (GoogleChannelConfigOutput) ToOutput added in v6.65.1

func (GoogleChannelConfigOutput) UpdateTime added in v6.45.0

Output only. The last-modified time.

type GoogleChannelConfigState added in v6.45.0

type GoogleChannelConfigState struct {
	// 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/*`.
	CryptoKeyName pulumi.StringPtrInput
	// The location for the resource
	Location pulumi.StringPtrInput
	// Required. The resource name of the config. Must be in the format of, `projects/{project}/locations/{location}/googleChannelConfig`.
	//
	// ***
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// Output only. The last-modified time.
	UpdateTime pulumi.StringPtrInput
}

func (GoogleChannelConfigState) ElementType added in v6.45.0

func (GoogleChannelConfigState) ElementType() reflect.Type

type Trigger

type Trigger struct {
	pulumi.CustomResourceState

	// Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
	Channel pulumi.StringPtrOutput `pulumi:"channel"`
	// Output only. The reason(s) why a trigger is in FAILED state.
	Conditions pulumi.StringMapOutput `pulumi:"conditions"`
	// Output only. The creation time.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Required. Destination specifies where the events should be sent to.
	Destination TriggerDestinationOutput `pulumi:"destination"`
	// Output only. This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.
	EventDataContentType pulumi.StringOutput `pulumi:"eventDataContentType"`
	// Optional. User labels attached to the triggers that can be used to group resources.
	Labels pulumi.StringMapOutput `pulumi:"labels"`
	// The location for the resource
	Location pulumi.StringOutput `pulumi:"location"`
	// Required. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.
	MatchingCriterias TriggerMatchingCriteriaArrayOutput `pulumi:"matchingCriterias"`
	// Required. The resource name of the trigger. Must be unique within the location on the project.
	Name pulumi.StringOutput `pulumi:"name"`
	// The project for the resource
	Project pulumi.StringOutput `pulumi:"project"`
	// Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have `roles/eventarc.eventReceiver` IAM role.
	ServiceAccount pulumi.StringPtrOutput `pulumi:"serviceAccount"`
	// Optional. In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
	Transports TriggerTransportArrayOutput `pulumi:"transports"`
	// Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
	Uid pulumi.StringOutput `pulumi:"uid"`
	// Output only. The last-modified time.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

The Eventarc Trigger resource

## Example Usage ### Basic ```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrun"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/eventarc"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/pubsub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudrun.NewService(ctx, "default", &cloudrun.ServiceArgs{
			Location: pulumi.String("europe-west1"),
			Metadata: &cloudrun.ServiceMetadataArgs{
				Namespace: pulumi.String("my-project-name"),
			},
			Template: &cloudrun.ServiceTemplateArgs{
				Spec: &cloudrun.ServiceTemplateSpecArgs{
					Containers: cloudrun.ServiceTemplateSpecContainerArray{
						&cloudrun.ServiceTemplateSpecContainerArgs{
							Image: pulumi.String("gcr.io/cloudrun/hello"),
							Ports: cloudrun.ServiceTemplateSpecContainerPortArray{
								&cloudrun.ServiceTemplateSpecContainerPortArgs{
									ContainerPort: pulumi.Int(8080),
								},
							},
						},
					},
					ContainerConcurrency: pulumi.Int(50),
					TimeoutSeconds:       pulumi.Int(100),
				},
			},
			Traffics: cloudrun.ServiceTrafficArray{
				&cloudrun.ServiceTrafficArgs{
					Percent:        pulumi.Int(100),
					LatestRevision: pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = eventarc.NewTrigger(ctx, "primary", &eventarc.TriggerArgs{
			Location: pulumi.String("europe-west1"),
			MatchingCriterias: eventarc.TriggerMatchingCriteriaArray{
				&eventarc.TriggerMatchingCriteriaArgs{
					Attribute: pulumi.String("type"),
					Value:     pulumi.String("google.cloud.pubsub.topic.v1.messagePublished"),
				},
			},
			Destination: &eventarc.TriggerDestinationArgs{
				CloudRunService: &eventarc.TriggerDestinationCloudRunServiceArgs{
					Service: _default.Name,
					Region:  pulumi.String("europe-west1"),
				},
			},
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		_, err = pubsub.NewTopic(ctx, "foo", nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Trigger can be imported using any of these accepted formats

```sh

$ pulumi import gcp:eventarc/trigger:Trigger default projects/{{project}}/locations/{{location}}/triggers/{{name}}

```

```sh

$ pulumi import gcp:eventarc/trigger:Trigger default {{project}}/{{location}}/{{name}}

```

```sh

$ pulumi import gcp:eventarc/trigger:Trigger default {{location}}/{{name}}

```

func GetTrigger

func GetTrigger(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TriggerState, opts ...pulumi.ResourceOption) (*Trigger, error)

GetTrigger gets an existing Trigger resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTrigger

func NewTrigger(ctx *pulumi.Context,
	name string, args *TriggerArgs, opts ...pulumi.ResourceOption) (*Trigger, error)

NewTrigger registers a new resource with the given unique name, arguments, and options.

func (*Trigger) ElementType

func (*Trigger) ElementType() reflect.Type

func (*Trigger) ToOutput added in v6.65.1

func (i *Trigger) ToOutput(ctx context.Context) pulumix.Output[*Trigger]

func (*Trigger) ToTriggerOutput

func (i *Trigger) ToTriggerOutput() TriggerOutput

func (*Trigger) ToTriggerOutputWithContext

func (i *Trigger) ToTriggerOutputWithContext(ctx context.Context) TriggerOutput

type TriggerArgs

type TriggerArgs struct {
	// Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
	Channel pulumi.StringPtrInput
	// Required. Destination specifies where the events should be sent to.
	Destination TriggerDestinationInput
	// Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.
	EventDataContentType pulumi.StringPtrInput
	// Optional. User labels attached to the triggers that can be used to group resources.
	Labels pulumi.StringMapInput
	// The location for the resource
	Location pulumi.StringInput
	// Required. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.
	MatchingCriterias TriggerMatchingCriteriaArrayInput
	// Required. The resource name of the trigger. Must be unique within the location on the project.
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have `roles/eventarc.eventReceiver` IAM role.
	ServiceAccount pulumi.StringPtrInput
	// Optional. In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
	Transports TriggerTransportArrayInput
}

The set of arguments for constructing a Trigger resource.

func (TriggerArgs) ElementType

func (TriggerArgs) ElementType() reflect.Type

type TriggerArray

type TriggerArray []TriggerInput

func (TriggerArray) ElementType

func (TriggerArray) ElementType() reflect.Type

func (TriggerArray) ToOutput added in v6.65.1

func (i TriggerArray) ToOutput(ctx context.Context) pulumix.Output[[]*Trigger]

func (TriggerArray) ToTriggerArrayOutput

func (i TriggerArray) ToTriggerArrayOutput() TriggerArrayOutput

func (TriggerArray) ToTriggerArrayOutputWithContext

func (i TriggerArray) ToTriggerArrayOutputWithContext(ctx context.Context) TriggerArrayOutput

type TriggerArrayInput

type TriggerArrayInput interface {
	pulumi.Input

	ToTriggerArrayOutput() TriggerArrayOutput
	ToTriggerArrayOutputWithContext(context.Context) TriggerArrayOutput
}

TriggerArrayInput is an input type that accepts TriggerArray and TriggerArrayOutput values. You can construct a concrete instance of `TriggerArrayInput` via:

TriggerArray{ TriggerArgs{...} }

type TriggerArrayOutput

type TriggerArrayOutput struct{ *pulumi.OutputState }

func (TriggerArrayOutput) ElementType

func (TriggerArrayOutput) ElementType() reflect.Type

func (TriggerArrayOutput) Index

func (TriggerArrayOutput) ToOutput added in v6.65.1

func (TriggerArrayOutput) ToTriggerArrayOutput

func (o TriggerArrayOutput) ToTriggerArrayOutput() TriggerArrayOutput

func (TriggerArrayOutput) ToTriggerArrayOutputWithContext

func (o TriggerArrayOutput) ToTriggerArrayOutputWithContext(ctx context.Context) TriggerArrayOutput

type TriggerDestination

type TriggerDestination struct {
	// [WARNING] Configuring a Cloud Function in Trigger is not supported as of today. The Cloud Function resource name. Format: projects/{project}/locations/{location}/functions/{function}
	CloudFunction *string `pulumi:"cloudFunction"`
	// Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
	CloudRunService *TriggerDestinationCloudRunService `pulumi:"cloudRunService"`
	// A GKE service capable of receiving events. The service should be running in the same project as the trigger.
	Gke *TriggerDestinationGke `pulumi:"gke"`
	// The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`
	Workflow *string `pulumi:"workflow"`
}

type TriggerDestinationArgs

type TriggerDestinationArgs struct {
	// [WARNING] Configuring a Cloud Function in Trigger is not supported as of today. The Cloud Function resource name. Format: projects/{project}/locations/{location}/functions/{function}
	CloudFunction pulumi.StringPtrInput `pulumi:"cloudFunction"`
	// Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
	CloudRunService TriggerDestinationCloudRunServicePtrInput `pulumi:"cloudRunService"`
	// A GKE service capable of receiving events. The service should be running in the same project as the trigger.
	Gke TriggerDestinationGkePtrInput `pulumi:"gke"`
	// The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`
	Workflow pulumi.StringPtrInput `pulumi:"workflow"`
}

func (TriggerDestinationArgs) ElementType

func (TriggerDestinationArgs) ElementType() reflect.Type

func (TriggerDestinationArgs) ToOutput added in v6.65.1

func (TriggerDestinationArgs) ToTriggerDestinationOutput

func (i TriggerDestinationArgs) ToTriggerDestinationOutput() TriggerDestinationOutput

func (TriggerDestinationArgs) ToTriggerDestinationOutputWithContext

func (i TriggerDestinationArgs) ToTriggerDestinationOutputWithContext(ctx context.Context) TriggerDestinationOutput

func (TriggerDestinationArgs) ToTriggerDestinationPtrOutput

func (i TriggerDestinationArgs) ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput

func (TriggerDestinationArgs) ToTriggerDestinationPtrOutputWithContext

func (i TriggerDestinationArgs) ToTriggerDestinationPtrOutputWithContext(ctx context.Context) TriggerDestinationPtrOutput

type TriggerDestinationCloudRunService

type TriggerDestinationCloudRunService struct {
	// Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
	Path *string `pulumi:"path"`
	// Required. The region the Cloud Run service is deployed in.
	Region *string `pulumi:"region"`
	// Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
	Service string `pulumi:"service"`
}

type TriggerDestinationCloudRunServiceArgs

type TriggerDestinationCloudRunServiceArgs struct {
	// Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
	Path pulumi.StringPtrInput `pulumi:"path"`
	// Required. The region the Cloud Run service is deployed in.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
	Service pulumi.StringInput `pulumi:"service"`
}

func (TriggerDestinationCloudRunServiceArgs) ElementType

func (TriggerDestinationCloudRunServiceArgs) ToOutput added in v6.65.1

func (TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServiceOutput

func (i TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServiceOutput() TriggerDestinationCloudRunServiceOutput

func (TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServiceOutputWithContext

func (i TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServiceOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServiceOutput

func (TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServicePtrOutput

func (i TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput

func (TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServicePtrOutputWithContext

func (i TriggerDestinationCloudRunServiceArgs) ToTriggerDestinationCloudRunServicePtrOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServicePtrOutput

type TriggerDestinationCloudRunServiceInput

type TriggerDestinationCloudRunServiceInput interface {
	pulumi.Input

	ToTriggerDestinationCloudRunServiceOutput() TriggerDestinationCloudRunServiceOutput
	ToTriggerDestinationCloudRunServiceOutputWithContext(context.Context) TriggerDestinationCloudRunServiceOutput
}

TriggerDestinationCloudRunServiceInput is an input type that accepts TriggerDestinationCloudRunServiceArgs and TriggerDestinationCloudRunServiceOutput values. You can construct a concrete instance of `TriggerDestinationCloudRunServiceInput` via:

TriggerDestinationCloudRunServiceArgs{...}

type TriggerDestinationCloudRunServiceOutput

type TriggerDestinationCloudRunServiceOutput struct{ *pulumi.OutputState }

func (TriggerDestinationCloudRunServiceOutput) ElementType

func (TriggerDestinationCloudRunServiceOutput) Path

Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

func (TriggerDestinationCloudRunServiceOutput) Region

Required. The region the Cloud Run service is deployed in.

func (TriggerDestinationCloudRunServiceOutput) Service

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.

func (TriggerDestinationCloudRunServiceOutput) ToOutput added in v6.65.1

func (TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServiceOutput

func (o TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServiceOutput() TriggerDestinationCloudRunServiceOutput

func (TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServiceOutputWithContext

func (o TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServiceOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServiceOutput

func (TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServicePtrOutput

func (o TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput

func (TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServicePtrOutputWithContext

func (o TriggerDestinationCloudRunServiceOutput) ToTriggerDestinationCloudRunServicePtrOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServicePtrOutput

type TriggerDestinationCloudRunServicePtrInput

type TriggerDestinationCloudRunServicePtrInput interface {
	pulumi.Input

	ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput
	ToTriggerDestinationCloudRunServicePtrOutputWithContext(context.Context) TriggerDestinationCloudRunServicePtrOutput
}

TriggerDestinationCloudRunServicePtrInput is an input type that accepts TriggerDestinationCloudRunServiceArgs, TriggerDestinationCloudRunServicePtr and TriggerDestinationCloudRunServicePtrOutput values. You can construct a concrete instance of `TriggerDestinationCloudRunServicePtrInput` via:

        TriggerDestinationCloudRunServiceArgs{...}

or:

        nil

type TriggerDestinationCloudRunServicePtrOutput

type TriggerDestinationCloudRunServicePtrOutput struct{ *pulumi.OutputState }

func (TriggerDestinationCloudRunServicePtrOutput) Elem

func (TriggerDestinationCloudRunServicePtrOutput) ElementType

func (TriggerDestinationCloudRunServicePtrOutput) Path

Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

func (TriggerDestinationCloudRunServicePtrOutput) Region

Required. The region the Cloud Run service is deployed in.

func (TriggerDestinationCloudRunServicePtrOutput) Service

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.

func (TriggerDestinationCloudRunServicePtrOutput) ToOutput added in v6.65.1

func (TriggerDestinationCloudRunServicePtrOutput) ToTriggerDestinationCloudRunServicePtrOutput

func (o TriggerDestinationCloudRunServicePtrOutput) ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput

func (TriggerDestinationCloudRunServicePtrOutput) ToTriggerDestinationCloudRunServicePtrOutputWithContext

func (o TriggerDestinationCloudRunServicePtrOutput) ToTriggerDestinationCloudRunServicePtrOutputWithContext(ctx context.Context) TriggerDestinationCloudRunServicePtrOutput

type TriggerDestinationGke added in v6.18.0

type TriggerDestinationGke struct {
	// Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
	Cluster string `pulumi:"cluster"`
	// Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.
	Location string `pulumi:"location"`
	// Required. The namespace the GKE service is running in.
	Namespace string `pulumi:"namespace"`
	// Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
	Path *string `pulumi:"path"`
	// Required. Name of the GKE service.
	Service string `pulumi:"service"`
}

type TriggerDestinationGkeArgs added in v6.18.0

type TriggerDestinationGkeArgs struct {
	// Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
	Cluster pulumi.StringInput `pulumi:"cluster"`
	// Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.
	Location pulumi.StringInput `pulumi:"location"`
	// Required. The namespace the GKE service is running in.
	Namespace pulumi.StringInput `pulumi:"namespace"`
	// Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
	Path pulumi.StringPtrInput `pulumi:"path"`
	// Required. Name of the GKE service.
	Service pulumi.StringInput `pulumi:"service"`
}

func (TriggerDestinationGkeArgs) ElementType added in v6.18.0

func (TriggerDestinationGkeArgs) ElementType() reflect.Type

func (TriggerDestinationGkeArgs) ToOutput added in v6.65.1

func (TriggerDestinationGkeArgs) ToTriggerDestinationGkeOutput added in v6.18.0

func (i TriggerDestinationGkeArgs) ToTriggerDestinationGkeOutput() TriggerDestinationGkeOutput

func (TriggerDestinationGkeArgs) ToTriggerDestinationGkeOutputWithContext added in v6.18.0

func (i TriggerDestinationGkeArgs) ToTriggerDestinationGkeOutputWithContext(ctx context.Context) TriggerDestinationGkeOutput

func (TriggerDestinationGkeArgs) ToTriggerDestinationGkePtrOutput added in v6.18.0

func (i TriggerDestinationGkeArgs) ToTriggerDestinationGkePtrOutput() TriggerDestinationGkePtrOutput

func (TriggerDestinationGkeArgs) ToTriggerDestinationGkePtrOutputWithContext added in v6.18.0

func (i TriggerDestinationGkeArgs) ToTriggerDestinationGkePtrOutputWithContext(ctx context.Context) TriggerDestinationGkePtrOutput

type TriggerDestinationGkeInput added in v6.18.0

type TriggerDestinationGkeInput interface {
	pulumi.Input

	ToTriggerDestinationGkeOutput() TriggerDestinationGkeOutput
	ToTriggerDestinationGkeOutputWithContext(context.Context) TriggerDestinationGkeOutput
}

TriggerDestinationGkeInput is an input type that accepts TriggerDestinationGkeArgs and TriggerDestinationGkeOutput values. You can construct a concrete instance of `TriggerDestinationGkeInput` via:

TriggerDestinationGkeArgs{...}

type TriggerDestinationGkeOutput added in v6.18.0

type TriggerDestinationGkeOutput struct{ *pulumi.OutputState }

func (TriggerDestinationGkeOutput) Cluster added in v6.18.0

Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.

func (TriggerDestinationGkeOutput) ElementType added in v6.18.0

func (TriggerDestinationGkeOutput) Location added in v6.18.0

Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.

func (TriggerDestinationGkeOutput) Namespace added in v6.18.0

Required. The namespace the GKE service is running in.

func (TriggerDestinationGkeOutput) Path added in v6.18.0

Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

func (TriggerDestinationGkeOutput) Service added in v6.18.0

Required. Name of the GKE service.

func (TriggerDestinationGkeOutput) ToOutput added in v6.65.1

func (TriggerDestinationGkeOutput) ToTriggerDestinationGkeOutput added in v6.18.0

func (o TriggerDestinationGkeOutput) ToTriggerDestinationGkeOutput() TriggerDestinationGkeOutput

func (TriggerDestinationGkeOutput) ToTriggerDestinationGkeOutputWithContext added in v6.18.0

func (o TriggerDestinationGkeOutput) ToTriggerDestinationGkeOutputWithContext(ctx context.Context) TriggerDestinationGkeOutput

func (TriggerDestinationGkeOutput) ToTriggerDestinationGkePtrOutput added in v6.18.0

func (o TriggerDestinationGkeOutput) ToTriggerDestinationGkePtrOutput() TriggerDestinationGkePtrOutput

func (TriggerDestinationGkeOutput) ToTriggerDestinationGkePtrOutputWithContext added in v6.18.0

func (o TriggerDestinationGkeOutput) ToTriggerDestinationGkePtrOutputWithContext(ctx context.Context) TriggerDestinationGkePtrOutput

type TriggerDestinationGkePtrInput added in v6.18.0

type TriggerDestinationGkePtrInput interface {
	pulumi.Input

	ToTriggerDestinationGkePtrOutput() TriggerDestinationGkePtrOutput
	ToTriggerDestinationGkePtrOutputWithContext(context.Context) TriggerDestinationGkePtrOutput
}

TriggerDestinationGkePtrInput is an input type that accepts TriggerDestinationGkeArgs, TriggerDestinationGkePtr and TriggerDestinationGkePtrOutput values. You can construct a concrete instance of `TriggerDestinationGkePtrInput` via:

        TriggerDestinationGkeArgs{...}

or:

        nil

func TriggerDestinationGkePtr added in v6.18.0

func TriggerDestinationGkePtr(v *TriggerDestinationGkeArgs) TriggerDestinationGkePtrInput

type TriggerDestinationGkePtrOutput added in v6.18.0

type TriggerDestinationGkePtrOutput struct{ *pulumi.OutputState }

func (TriggerDestinationGkePtrOutput) Cluster added in v6.18.0

Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.

func (TriggerDestinationGkePtrOutput) Elem added in v6.18.0

func (TriggerDestinationGkePtrOutput) ElementType added in v6.18.0

func (TriggerDestinationGkePtrOutput) Location added in v6.18.0

Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.

func (TriggerDestinationGkePtrOutput) Namespace added in v6.18.0

Required. The namespace the GKE service is running in.

func (TriggerDestinationGkePtrOutput) Path added in v6.18.0

Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

func (TriggerDestinationGkePtrOutput) Service added in v6.18.0

Required. Name of the GKE service.

func (TriggerDestinationGkePtrOutput) ToOutput added in v6.65.1

func (TriggerDestinationGkePtrOutput) ToTriggerDestinationGkePtrOutput added in v6.18.0

func (o TriggerDestinationGkePtrOutput) ToTriggerDestinationGkePtrOutput() TriggerDestinationGkePtrOutput

func (TriggerDestinationGkePtrOutput) ToTriggerDestinationGkePtrOutputWithContext added in v6.18.0

func (o TriggerDestinationGkePtrOutput) ToTriggerDestinationGkePtrOutputWithContext(ctx context.Context) TriggerDestinationGkePtrOutput

type TriggerDestinationInput

type TriggerDestinationInput interface {
	pulumi.Input

	ToTriggerDestinationOutput() TriggerDestinationOutput
	ToTriggerDestinationOutputWithContext(context.Context) TriggerDestinationOutput
}

TriggerDestinationInput is an input type that accepts TriggerDestinationArgs and TriggerDestinationOutput values. You can construct a concrete instance of `TriggerDestinationInput` via:

TriggerDestinationArgs{...}

type TriggerDestinationOutput

type TriggerDestinationOutput struct{ *pulumi.OutputState }

func (TriggerDestinationOutput) CloudFunction

[WARNING] Configuring a Cloud Function in Trigger is not supported as of today. The Cloud Function resource name. Format: projects/{project}/locations/{location}/functions/{function}

func (TriggerDestinationOutput) CloudRunService

Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.

func (TriggerDestinationOutput) ElementType

func (TriggerDestinationOutput) ElementType() reflect.Type

func (TriggerDestinationOutput) Gke added in v6.18.0

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

func (TriggerDestinationOutput) ToOutput added in v6.65.1

func (TriggerDestinationOutput) ToTriggerDestinationOutput

func (o TriggerDestinationOutput) ToTriggerDestinationOutput() TriggerDestinationOutput

func (TriggerDestinationOutput) ToTriggerDestinationOutputWithContext

func (o TriggerDestinationOutput) ToTriggerDestinationOutputWithContext(ctx context.Context) TriggerDestinationOutput

func (TriggerDestinationOutput) ToTriggerDestinationPtrOutput

func (o TriggerDestinationOutput) ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput

func (TriggerDestinationOutput) ToTriggerDestinationPtrOutputWithContext

func (o TriggerDestinationOutput) ToTriggerDestinationPtrOutputWithContext(ctx context.Context) TriggerDestinationPtrOutput

func (TriggerDestinationOutput) Workflow added in v6.18.0

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`

type TriggerDestinationPtrInput

type TriggerDestinationPtrInput interface {
	pulumi.Input

	ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput
	ToTriggerDestinationPtrOutputWithContext(context.Context) TriggerDestinationPtrOutput
}

TriggerDestinationPtrInput is an input type that accepts TriggerDestinationArgs, TriggerDestinationPtr and TriggerDestinationPtrOutput values. You can construct a concrete instance of `TriggerDestinationPtrInput` via:

        TriggerDestinationArgs{...}

or:

        nil

type TriggerDestinationPtrOutput

type TriggerDestinationPtrOutput struct{ *pulumi.OutputState }

func (TriggerDestinationPtrOutput) CloudFunction

[WARNING] Configuring a Cloud Function in Trigger is not supported as of today. The Cloud Function resource name. Format: projects/{project}/locations/{location}/functions/{function}

func (TriggerDestinationPtrOutput) CloudRunService

Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.

func (TriggerDestinationPtrOutput) Elem

func (TriggerDestinationPtrOutput) ElementType

func (TriggerDestinationPtrOutput) Gke added in v6.18.0

A GKE service capable of receiving events. The service should be running in the same project as the trigger.

func (TriggerDestinationPtrOutput) ToOutput added in v6.65.1

func (TriggerDestinationPtrOutput) ToTriggerDestinationPtrOutput

func (o TriggerDestinationPtrOutput) ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput

func (TriggerDestinationPtrOutput) ToTriggerDestinationPtrOutputWithContext

func (o TriggerDestinationPtrOutput) ToTriggerDestinationPtrOutputWithContext(ctx context.Context) TriggerDestinationPtrOutput

func (TriggerDestinationPtrOutput) Workflow added in v6.18.0

The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`

type TriggerInput

type TriggerInput interface {
	pulumi.Input

	ToTriggerOutput() TriggerOutput
	ToTriggerOutputWithContext(ctx context.Context) TriggerOutput
}

type TriggerMap

type TriggerMap map[string]TriggerInput

func (TriggerMap) ElementType

func (TriggerMap) ElementType() reflect.Type

func (TriggerMap) ToOutput added in v6.65.1

func (i TriggerMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Trigger]

func (TriggerMap) ToTriggerMapOutput

func (i TriggerMap) ToTriggerMapOutput() TriggerMapOutput

func (TriggerMap) ToTriggerMapOutputWithContext

func (i TriggerMap) ToTriggerMapOutputWithContext(ctx context.Context) TriggerMapOutput

type TriggerMapInput

type TriggerMapInput interface {
	pulumi.Input

	ToTriggerMapOutput() TriggerMapOutput
	ToTriggerMapOutputWithContext(context.Context) TriggerMapOutput
}

TriggerMapInput is an input type that accepts TriggerMap and TriggerMapOutput values. You can construct a concrete instance of `TriggerMapInput` via:

TriggerMap{ "key": TriggerArgs{...} }

type TriggerMapOutput

type TriggerMapOutput struct{ *pulumi.OutputState }

func (TriggerMapOutput) ElementType

func (TriggerMapOutput) ElementType() reflect.Type

func (TriggerMapOutput) MapIndex

func (TriggerMapOutput) ToOutput added in v6.65.1

func (TriggerMapOutput) ToTriggerMapOutput

func (o TriggerMapOutput) ToTriggerMapOutput() TriggerMapOutput

func (TriggerMapOutput) ToTriggerMapOutputWithContext

func (o TriggerMapOutput) ToTriggerMapOutputWithContext(ctx context.Context) TriggerMapOutput

type TriggerMatchingCriteria

type TriggerMatchingCriteria struct {
	// Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
	Attribute string `pulumi:"attribute"`
	// Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
	Operator *string `pulumi:"operator"`
	// Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud for available values.
	//
	// ***
	Value string `pulumi:"value"`
}

type TriggerMatchingCriteriaArgs

type TriggerMatchingCriteriaArgs struct {
	// Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
	Attribute pulumi.StringInput `pulumi:"attribute"`
	// Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
	Operator pulumi.StringPtrInput `pulumi:"operator"`
	// Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud for available values.
	//
	// ***
	Value pulumi.StringInput `pulumi:"value"`
}

func (TriggerMatchingCriteriaArgs) ElementType

func (TriggerMatchingCriteriaArgs) ToOutput added in v6.65.1

func (TriggerMatchingCriteriaArgs) ToTriggerMatchingCriteriaOutput

func (i TriggerMatchingCriteriaArgs) ToTriggerMatchingCriteriaOutput() TriggerMatchingCriteriaOutput

func (TriggerMatchingCriteriaArgs) ToTriggerMatchingCriteriaOutputWithContext

func (i TriggerMatchingCriteriaArgs) ToTriggerMatchingCriteriaOutputWithContext(ctx context.Context) TriggerMatchingCriteriaOutput

type TriggerMatchingCriteriaArray

type TriggerMatchingCriteriaArray []TriggerMatchingCriteriaInput

func (TriggerMatchingCriteriaArray) ElementType

func (TriggerMatchingCriteriaArray) ToOutput added in v6.65.1

func (TriggerMatchingCriteriaArray) ToTriggerMatchingCriteriaArrayOutput

func (i TriggerMatchingCriteriaArray) ToTriggerMatchingCriteriaArrayOutput() TriggerMatchingCriteriaArrayOutput

func (TriggerMatchingCriteriaArray) ToTriggerMatchingCriteriaArrayOutputWithContext

func (i TriggerMatchingCriteriaArray) ToTriggerMatchingCriteriaArrayOutputWithContext(ctx context.Context) TriggerMatchingCriteriaArrayOutput

type TriggerMatchingCriteriaArrayInput

type TriggerMatchingCriteriaArrayInput interface {
	pulumi.Input

	ToTriggerMatchingCriteriaArrayOutput() TriggerMatchingCriteriaArrayOutput
	ToTriggerMatchingCriteriaArrayOutputWithContext(context.Context) TriggerMatchingCriteriaArrayOutput
}

TriggerMatchingCriteriaArrayInput is an input type that accepts TriggerMatchingCriteriaArray and TriggerMatchingCriteriaArrayOutput values. You can construct a concrete instance of `TriggerMatchingCriteriaArrayInput` via:

TriggerMatchingCriteriaArray{ TriggerMatchingCriteriaArgs{...} }

type TriggerMatchingCriteriaArrayOutput

type TriggerMatchingCriteriaArrayOutput struct{ *pulumi.OutputState }

func (TriggerMatchingCriteriaArrayOutput) ElementType

func (TriggerMatchingCriteriaArrayOutput) Index

func (TriggerMatchingCriteriaArrayOutput) ToOutput added in v6.65.1

func (TriggerMatchingCriteriaArrayOutput) ToTriggerMatchingCriteriaArrayOutput

func (o TriggerMatchingCriteriaArrayOutput) ToTriggerMatchingCriteriaArrayOutput() TriggerMatchingCriteriaArrayOutput

func (TriggerMatchingCriteriaArrayOutput) ToTriggerMatchingCriteriaArrayOutputWithContext

func (o TriggerMatchingCriteriaArrayOutput) ToTriggerMatchingCriteriaArrayOutputWithContext(ctx context.Context) TriggerMatchingCriteriaArrayOutput

type TriggerMatchingCriteriaInput

type TriggerMatchingCriteriaInput interface {
	pulumi.Input

	ToTriggerMatchingCriteriaOutput() TriggerMatchingCriteriaOutput
	ToTriggerMatchingCriteriaOutputWithContext(context.Context) TriggerMatchingCriteriaOutput
}

TriggerMatchingCriteriaInput is an input type that accepts TriggerMatchingCriteriaArgs and TriggerMatchingCriteriaOutput values. You can construct a concrete instance of `TriggerMatchingCriteriaInput` via:

TriggerMatchingCriteriaArgs{...}

type TriggerMatchingCriteriaOutput

type TriggerMatchingCriteriaOutput struct{ *pulumi.OutputState }

func (TriggerMatchingCriteriaOutput) Attribute

Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.

func (TriggerMatchingCriteriaOutput) ElementType

func (TriggerMatchingCriteriaOutput) Operator added in v6.18.0

Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.

func (TriggerMatchingCriteriaOutput) ToOutput added in v6.65.1

func (TriggerMatchingCriteriaOutput) ToTriggerMatchingCriteriaOutput

func (o TriggerMatchingCriteriaOutput) ToTriggerMatchingCriteriaOutput() TriggerMatchingCriteriaOutput

func (TriggerMatchingCriteriaOutput) ToTriggerMatchingCriteriaOutputWithContext

func (o TriggerMatchingCriteriaOutput) ToTriggerMatchingCriteriaOutputWithContext(ctx context.Context) TriggerMatchingCriteriaOutput

func (TriggerMatchingCriteriaOutput) Value

Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud for available values.

***

type TriggerOutput

type TriggerOutput struct{ *pulumi.OutputState }

func (TriggerOutput) Channel added in v6.44.0

func (o TriggerOutput) Channel() pulumi.StringPtrOutput

Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.

func (TriggerOutput) Conditions added in v6.44.0

func (o TriggerOutput) Conditions() pulumi.StringMapOutput

Output only. The reason(s) why a trigger is in FAILED state.

func (TriggerOutput) CreateTime added in v6.23.0

func (o TriggerOutput) CreateTime() pulumi.StringOutput

Output only. The creation time.

func (TriggerOutput) Destination added in v6.23.0

func (o TriggerOutput) Destination() TriggerDestinationOutput

Required. Destination specifies where the events should be sent to.

func (TriggerOutput) ElementType

func (TriggerOutput) ElementType() reflect.Type

func (TriggerOutput) Etag added in v6.23.0

Output only. This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.

func (TriggerOutput) EventDataContentType added in v6.64.0

func (o TriggerOutput) EventDataContentType() pulumi.StringOutput

Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.

func (TriggerOutput) Labels added in v6.23.0

Optional. User labels attached to the triggers that can be used to group resources.

func (TriggerOutput) Location added in v6.23.0

func (o TriggerOutput) Location() pulumi.StringOutput

The location for the resource

func (TriggerOutput) MatchingCriterias added in v6.23.0

func (o TriggerOutput) MatchingCriterias() TriggerMatchingCriteriaArrayOutput

Required. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.

func (TriggerOutput) Name added in v6.23.0

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

func (TriggerOutput) Project added in v6.23.0

func (o TriggerOutput) Project() pulumi.StringOutput

The project for the resource

func (TriggerOutput) ServiceAccount added in v6.23.0

func (o TriggerOutput) ServiceAccount() pulumi.StringPtrOutput

Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have `roles/eventarc.eventReceiver` IAM role.

func (TriggerOutput) ToOutput added in v6.65.1

func (o TriggerOutput) ToOutput(ctx context.Context) pulumix.Output[*Trigger]

func (TriggerOutput) ToTriggerOutput

func (o TriggerOutput) ToTriggerOutput() TriggerOutput

func (TriggerOutput) ToTriggerOutputWithContext

func (o TriggerOutput) ToTriggerOutputWithContext(ctx context.Context) TriggerOutput

func (TriggerOutput) Transports added in v6.23.0

Optional. In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.

func (TriggerOutput) Uid added in v6.23.0

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

func (TriggerOutput) UpdateTime added in v6.23.0

func (o TriggerOutput) UpdateTime() pulumi.StringOutput

Output only. The last-modified time.

type TriggerState

type TriggerState struct {
	// Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
	Channel pulumi.StringPtrInput
	// Output only. The reason(s) why a trigger is in FAILED state.
	Conditions pulumi.StringMapInput
	// Output only. The creation time.
	CreateTime pulumi.StringPtrInput
	// Required. Destination specifies where the events should be sent to.
	Destination TriggerDestinationPtrInput
	// Output only. This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.
	Etag pulumi.StringPtrInput
	// Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.
	EventDataContentType pulumi.StringPtrInput
	// Optional. User labels attached to the triggers that can be used to group resources.
	Labels pulumi.StringMapInput
	// The location for the resource
	Location pulumi.StringPtrInput
	// Required. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.
	MatchingCriterias TriggerMatchingCriteriaArrayInput
	// Required. The resource name of the trigger. Must be unique within the location on the project.
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have `roles/eventarc.eventReceiver` IAM role.
	ServiceAccount pulumi.StringPtrInput
	// Optional. In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
	Transports TriggerTransportArrayInput
	// Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
	Uid pulumi.StringPtrInput
	// Output only. The last-modified time.
	UpdateTime pulumi.StringPtrInput
}

func (TriggerState) ElementType

func (TriggerState) ElementType() reflect.Type

type TriggerTransport

type TriggerTransport struct {
	// The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
	Pubsubs []TriggerTransportPubsub `pulumi:"pubsubs"`
}

type TriggerTransportArgs

type TriggerTransportArgs struct {
	// The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
	Pubsubs TriggerTransportPubsubArrayInput `pulumi:"pubsubs"`
}

func (TriggerTransportArgs) ElementType

func (TriggerTransportArgs) ElementType() reflect.Type

func (TriggerTransportArgs) ToOutput added in v6.65.1

func (TriggerTransportArgs) ToTriggerTransportOutput

func (i TriggerTransportArgs) ToTriggerTransportOutput() TriggerTransportOutput

func (TriggerTransportArgs) ToTriggerTransportOutputWithContext

func (i TriggerTransportArgs) ToTriggerTransportOutputWithContext(ctx context.Context) TriggerTransportOutput

type TriggerTransportArray

type TriggerTransportArray []TriggerTransportInput

func (TriggerTransportArray) ElementType

func (TriggerTransportArray) ElementType() reflect.Type

func (TriggerTransportArray) ToOutput added in v6.65.1

func (TriggerTransportArray) ToTriggerTransportArrayOutput

func (i TriggerTransportArray) ToTriggerTransportArrayOutput() TriggerTransportArrayOutput

func (TriggerTransportArray) ToTriggerTransportArrayOutputWithContext

func (i TriggerTransportArray) ToTriggerTransportArrayOutputWithContext(ctx context.Context) TriggerTransportArrayOutput

type TriggerTransportArrayInput

type TriggerTransportArrayInput interface {
	pulumi.Input

	ToTriggerTransportArrayOutput() TriggerTransportArrayOutput
	ToTriggerTransportArrayOutputWithContext(context.Context) TriggerTransportArrayOutput
}

TriggerTransportArrayInput is an input type that accepts TriggerTransportArray and TriggerTransportArrayOutput values. You can construct a concrete instance of `TriggerTransportArrayInput` via:

TriggerTransportArray{ TriggerTransportArgs{...} }

type TriggerTransportArrayOutput

type TriggerTransportArrayOutput struct{ *pulumi.OutputState }

func (TriggerTransportArrayOutput) ElementType

func (TriggerTransportArrayOutput) Index

func (TriggerTransportArrayOutput) ToOutput added in v6.65.1

func (TriggerTransportArrayOutput) ToTriggerTransportArrayOutput

func (o TriggerTransportArrayOutput) ToTriggerTransportArrayOutput() TriggerTransportArrayOutput

func (TriggerTransportArrayOutput) ToTriggerTransportArrayOutputWithContext

func (o TriggerTransportArrayOutput) ToTriggerTransportArrayOutputWithContext(ctx context.Context) TriggerTransportArrayOutput

type TriggerTransportInput

type TriggerTransportInput interface {
	pulumi.Input

	ToTriggerTransportOutput() TriggerTransportOutput
	ToTriggerTransportOutputWithContext(context.Context) TriggerTransportOutput
}

TriggerTransportInput is an input type that accepts TriggerTransportArgs and TriggerTransportOutput values. You can construct a concrete instance of `TriggerTransportInput` via:

TriggerTransportArgs{...}

type TriggerTransportOutput

type TriggerTransportOutput struct{ *pulumi.OutputState }

func (TriggerTransportOutput) ElementType

func (TriggerTransportOutput) ElementType() reflect.Type

func (TriggerTransportOutput) Pubsubs

The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.

func (TriggerTransportOutput) ToOutput added in v6.65.1

func (TriggerTransportOutput) ToTriggerTransportOutput

func (o TriggerTransportOutput) ToTriggerTransportOutput() TriggerTransportOutput

func (TriggerTransportOutput) ToTriggerTransportOutputWithContext

func (o TriggerTransportOutput) ToTriggerTransportOutputWithContext(ctx context.Context) TriggerTransportOutput

type TriggerTransportPubsub

type TriggerTransportPubsub struct {
	// Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
	Subscription *string `pulumi:"subscription"`
	// Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
	Topic *string `pulumi:"topic"`
}

type TriggerTransportPubsubArgs

type TriggerTransportPubsubArgs struct {
	// Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
	Subscription pulumi.StringPtrInput `pulumi:"subscription"`
	// Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
	Topic pulumi.StringPtrInput `pulumi:"topic"`
}

func (TriggerTransportPubsubArgs) ElementType

func (TriggerTransportPubsubArgs) ElementType() reflect.Type

func (TriggerTransportPubsubArgs) ToOutput added in v6.65.1

func (TriggerTransportPubsubArgs) ToTriggerTransportPubsubOutput

func (i TriggerTransportPubsubArgs) ToTriggerTransportPubsubOutput() TriggerTransportPubsubOutput

func (TriggerTransportPubsubArgs) ToTriggerTransportPubsubOutputWithContext

func (i TriggerTransportPubsubArgs) ToTriggerTransportPubsubOutputWithContext(ctx context.Context) TriggerTransportPubsubOutput

type TriggerTransportPubsubArray

type TriggerTransportPubsubArray []TriggerTransportPubsubInput

func (TriggerTransportPubsubArray) ElementType

func (TriggerTransportPubsubArray) ToOutput added in v6.65.1

func (TriggerTransportPubsubArray) ToTriggerTransportPubsubArrayOutput

func (i TriggerTransportPubsubArray) ToTriggerTransportPubsubArrayOutput() TriggerTransportPubsubArrayOutput

func (TriggerTransportPubsubArray) ToTriggerTransportPubsubArrayOutputWithContext

func (i TriggerTransportPubsubArray) ToTriggerTransportPubsubArrayOutputWithContext(ctx context.Context) TriggerTransportPubsubArrayOutput

type TriggerTransportPubsubArrayInput

type TriggerTransportPubsubArrayInput interface {
	pulumi.Input

	ToTriggerTransportPubsubArrayOutput() TriggerTransportPubsubArrayOutput
	ToTriggerTransportPubsubArrayOutputWithContext(context.Context) TriggerTransportPubsubArrayOutput
}

TriggerTransportPubsubArrayInput is an input type that accepts TriggerTransportPubsubArray and TriggerTransportPubsubArrayOutput values. You can construct a concrete instance of `TriggerTransportPubsubArrayInput` via:

TriggerTransportPubsubArray{ TriggerTransportPubsubArgs{...} }

type TriggerTransportPubsubArrayOutput

type TriggerTransportPubsubArrayOutput struct{ *pulumi.OutputState }

func (TriggerTransportPubsubArrayOutput) ElementType

func (TriggerTransportPubsubArrayOutput) Index

func (TriggerTransportPubsubArrayOutput) ToOutput added in v6.65.1

func (TriggerTransportPubsubArrayOutput) ToTriggerTransportPubsubArrayOutput

func (o TriggerTransportPubsubArrayOutput) ToTriggerTransportPubsubArrayOutput() TriggerTransportPubsubArrayOutput

func (TriggerTransportPubsubArrayOutput) ToTriggerTransportPubsubArrayOutputWithContext

func (o TriggerTransportPubsubArrayOutput) ToTriggerTransportPubsubArrayOutputWithContext(ctx context.Context) TriggerTransportPubsubArrayOutput

type TriggerTransportPubsubInput

type TriggerTransportPubsubInput interface {
	pulumi.Input

	ToTriggerTransportPubsubOutput() TriggerTransportPubsubOutput
	ToTriggerTransportPubsubOutputWithContext(context.Context) TriggerTransportPubsubOutput
}

TriggerTransportPubsubInput is an input type that accepts TriggerTransportPubsubArgs and TriggerTransportPubsubOutput values. You can construct a concrete instance of `TriggerTransportPubsubInput` via:

TriggerTransportPubsubArgs{...}

type TriggerTransportPubsubOutput

type TriggerTransportPubsubOutput struct{ *pulumi.OutputState }

func (TriggerTransportPubsubOutput) ElementType

func (TriggerTransportPubsubOutput) Subscription

Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.

func (TriggerTransportPubsubOutput) ToOutput added in v6.65.1

func (TriggerTransportPubsubOutput) ToTriggerTransportPubsubOutput

func (o TriggerTransportPubsubOutput) ToTriggerTransportPubsubOutput() TriggerTransportPubsubOutput

func (TriggerTransportPubsubOutput) ToTriggerTransportPubsubOutputWithContext

func (o TriggerTransportPubsubOutput) ToTriggerTransportPubsubOutputWithContext(ctx context.Context) TriggerTransportPubsubOutput

func (TriggerTransportPubsubOutput) Topic

Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL