eventarc

package
v4.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trigger

type Trigger struct {
	pulumi.CustomResourceState

	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Required. Destination specifies where the events should be sent to.
	Destination TriggerDestinationOutput `pulumi:"destination"`
	Etag        pulumi.StringOutput      `pulumi:"etag"`
	// The location for the resource
	Location pulumi.StringOutput `pulumi:"location"`
	// Required. The criteria by which events are filtered. Only events that match with this criteria 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 and must be in \`projects/{project}/locations/{location}/triggers/{trigger}\` format.
	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?hl=en#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 'eventarc.events.receiveAuditLogV1Written' permission.
	ServiceAccount pulumi.StringPtrOutput      `pulumi:"serviceAccount"`
	Transports     TriggerTransportArrayOutput `pulumi:"transports"`
	UpdateTime     pulumi.StringOutput         `pulumi:"updateTime"`
}

An event trigger sends messages to the event receiver service deployed on Cloud Run.

* [API documentation](https://cloud.google.com/eventarc/docs/reference/rest/v1/projects.locations.triggers)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/cloudrun"
"github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/eventarc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudrun.NewService(ctx, "_default", &cloudrun.ServiceArgs{
			Location: pulumi.String("us-central1"),
			Metadata: &cloudrun.ServiceMetadataArgs{
				Namespace: pulumi.String("my-project"),
			},
			Template: &cloudrun.ServiceTemplateArgs{
				Spec: &cloudrun.ServiceTemplateSpecArgs{
					Containers: cloudrun.ServiceTemplateSpecContainerArray{
						&cloudrun.ServiceTemplateSpecContainerArgs{
							Image: pulumi.String("gcr.io/cloudrun/hello"),
							Args: pulumi.StringArray{
								pulumi.String("arrgs"),
							},
						},
					},
					ContainerConcurrency: pulumi.Int(50),
				},
			},
			Traffics: cloudrun.ServiceTrafficArray{
				&cloudrun.ServiceTrafficArgs{
					Percent:        pulumi.Int(100),
					LatestRevision: pulumi.Bool(true),
				},
			},
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		_, err = eventarc.NewTrigger(ctx, "trigger", &eventarc.TriggerArgs{
			Location: pulumi.String("us-central1"),
			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("us-central1"),
				},
			},
		}, pulumi.Provider(google_beta))
		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) ToTriggerOutput

func (i *Trigger) ToTriggerOutput() TriggerOutput

func (*Trigger) ToTriggerOutputWithContext

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

func (*Trigger) ToTriggerPtrOutput

func (i *Trigger) ToTriggerPtrOutput() TriggerPtrOutput

func (*Trigger) ToTriggerPtrOutputWithContext

func (i *Trigger) ToTriggerPtrOutputWithContext(ctx context.Context) TriggerPtrOutput

type TriggerArgs

type TriggerArgs struct {
	// Required. Destination specifies where the events should be sent to.
	Destination TriggerDestinationInput
	// The location for the resource
	Location pulumi.StringInput
	// Required. The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination.
	MatchingCriterias TriggerMatchingCriteriaArrayInput
	// Required. The resource name of the trigger. Must be unique within the location on the project and must be in \`projects/{project}/locations/{location}/triggers/{trigger}\` format.
	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?hl=en#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 'eventarc.events.receiveAuditLogV1Written' permission.
	ServiceAccount pulumi.StringPtrInput
}

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) 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) ToTriggerArrayOutput

func (o TriggerArrayOutput) ToTriggerArrayOutput() TriggerArrayOutput

func (TriggerArrayOutput) ToTriggerArrayOutputWithContext

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

type TriggerDestination

type TriggerDestination struct {
	// Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
	// The `matchingCriteria` block supports:
	CloudRunService *TriggerDestinationCloudRunService `pulumi:"cloudRunService"`
}

type TriggerDestinationArgs

type TriggerDestinationArgs struct {
	// Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
	// The `matchingCriteria` block supports:
	CloudRunService TriggerDestinationCloudRunServicePtrInput `pulumi:"cloudRunService"`
}

func (TriggerDestinationArgs) ElementType

func (TriggerDestinationArgs) ElementType() reflect.Type

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) 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) 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) ToTriggerDestinationCloudRunServicePtrOutput

func (o TriggerDestinationCloudRunServicePtrOutput) ToTriggerDestinationCloudRunServicePtrOutput() TriggerDestinationCloudRunServicePtrOutput

func (TriggerDestinationCloudRunServicePtrOutput) ToTriggerDestinationCloudRunServicePtrOutputWithContext

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

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) CloudRunService

Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger. The `matchingCriteria` block supports:

func (TriggerDestinationOutput) ElementType

func (TriggerDestinationOutput) ElementType() reflect.Type

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

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) CloudRunService

Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger. The `matchingCriteria` block supports:

func (TriggerDestinationPtrOutput) Elem

func (TriggerDestinationPtrOutput) ElementType

func (TriggerDestinationPtrOutput) ToTriggerDestinationPtrOutput

func (o TriggerDestinationPtrOutput) ToTriggerDestinationPtrOutput() TriggerDestinationPtrOutput

func (TriggerDestinationPtrOutput) ToTriggerDestinationPtrOutputWithContext

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

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) 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) 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 can be specified. All triggers MUST provide a matching criteria for the 'type' attribute.
	Attribute string `pulumi:"attribute"`
	// Required. The value for the attribute.
	Value string `pulumi:"value"`
}

type TriggerMatchingCriteriaArgs

type TriggerMatchingCriteriaArgs struct {
	// Required. The name of a CloudEvents attribute. Currently, only a subset of attributes can be specified. All triggers MUST provide a matching criteria for the 'type' attribute.
	Attribute pulumi.StringInput `pulumi:"attribute"`
	// Required. The value for the attribute.
	Value pulumi.StringInput `pulumi:"value"`
}

func (TriggerMatchingCriteriaArgs) ElementType

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) 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) 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 can be specified. All triggers MUST provide a matching criteria for the 'type' attribute.

func (TriggerMatchingCriteriaOutput) ElementType

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.

type TriggerOutput

type TriggerOutput struct {
	*pulumi.OutputState
}

func (TriggerOutput) ElementType

func (TriggerOutput) ElementType() reflect.Type

func (TriggerOutput) ToTriggerOutput

func (o TriggerOutput) ToTriggerOutput() TriggerOutput

func (TriggerOutput) ToTriggerOutputWithContext

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

func (TriggerOutput) ToTriggerPtrOutput

func (o TriggerOutput) ToTriggerPtrOutput() TriggerPtrOutput

func (TriggerOutput) ToTriggerPtrOutputWithContext

func (o TriggerOutput) ToTriggerPtrOutputWithContext(ctx context.Context) TriggerPtrOutput

type TriggerPtrInput

type TriggerPtrInput interface {
	pulumi.Input

	ToTriggerPtrOutput() TriggerPtrOutput
	ToTriggerPtrOutputWithContext(ctx context.Context) TriggerPtrOutput
}

type TriggerPtrOutput

type TriggerPtrOutput struct {
	*pulumi.OutputState
}

func (TriggerPtrOutput) ElementType

func (TriggerPtrOutput) ElementType() reflect.Type

func (TriggerPtrOutput) ToTriggerPtrOutput

func (o TriggerPtrOutput) ToTriggerPtrOutput() TriggerPtrOutput

func (TriggerPtrOutput) ToTriggerPtrOutputWithContext

func (o TriggerPtrOutput) ToTriggerPtrOutputWithContext(ctx context.Context) TriggerPtrOutput

type TriggerState

type TriggerState struct {
	CreateTime pulumi.StringPtrInput
	// Required. Destination specifies where the events should be sent to.
	Destination TriggerDestinationPtrInput
	Etag        pulumi.StringPtrInput
	// The location for the resource
	Location pulumi.StringPtrInput
	// Required. The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination.
	MatchingCriterias TriggerMatchingCriteriaArrayInput
	// Required. The resource name of the trigger. Must be unique within the location on the project and must be in \`projects/{project}/locations/{location}/triggers/{trigger}\` format.
	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?hl=en#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 'eventarc.events.receiveAuditLogV1Written' permission.
	ServiceAccount pulumi.StringPtrInput
	Transports     TriggerTransportArrayInput
	UpdateTime     pulumi.StringPtrInput
}

func (TriggerState) ElementType

func (TriggerState) ElementType() reflect.Type

type TriggerTransport

type TriggerTransport struct {
	Pubsubs []TriggerTransportPubsub `pulumi:"pubsubs"`
}

type TriggerTransportArgs

type TriggerTransportArgs struct {
	Pubsubs TriggerTransportPubsubArrayInput `pulumi:"pubsubs"`
}

func (TriggerTransportArgs) ElementType

func (TriggerTransportArgs) ElementType() reflect.Type

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) 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) 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

func (TriggerTransportOutput) ToTriggerTransportOutput

func (o TriggerTransportOutput) ToTriggerTransportOutput() TriggerTransportOutput

func (TriggerTransportOutput) ToTriggerTransportOutputWithContext

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

type TriggerTransportPubsub

type TriggerTransportPubsub struct {
	Subscription *string `pulumi:"subscription"`
	Topic        *string `pulumi:"topic"`
}

type TriggerTransportPubsubArgs

type TriggerTransportPubsubArgs struct {
	Subscription pulumi.StringPtrInput `pulumi:"subscription"`
	Topic        pulumi.StringPtrInput `pulumi:"topic"`
}

func (TriggerTransportPubsubArgs) ElementType

func (TriggerTransportPubsubArgs) ElementType() reflect.Type

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) 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) 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

func (TriggerTransportPubsubOutput) ToTriggerTransportPubsubOutput

func (o TriggerTransportPubsubOutput) ToTriggerTransportPubsubOutput() TriggerTransportPubsubOutput

func (TriggerTransportPubsubOutput) ToTriggerTransportPubsubOutputWithContext

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

func (TriggerTransportPubsubOutput) Topic

Jump to

Keyboard shortcuts

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