google_eventarc_trigger

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Channel: string, optional
	Channel terra.StringValue `hcl:"channel,attr"`
	// EventDataContentType: string, optional
	EventDataContentType terra.StringValue `hcl:"event_data_content_type,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// ServiceAccount: string, optional
	ServiceAccount terra.StringValue `hcl:"service_account,attr"`
	// Destination: required
	Destination *Destination `hcl:"destination,block" validate:"required"`
	// MatchingCriteria: min=1
	MatchingCriteria []MatchingCriteria `hcl:"matching_criteria,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// Transport: optional
	Transport *Transport `hcl:"transport,block"`
}

Args contains the configurations for google_eventarc_trigger.

type Destination

type Destination struct {
	// Workflow: string, optional
	Workflow terra.StringValue `hcl:"workflow,attr"`
	// DestinationCloudRunService: optional
	CloudRunService *DestinationCloudRunService `hcl:"cloud_run_service,block"`
	// DestinationGke: optional
	Gke *DestinationGke `hcl:"gke,block"`
	// DestinationHttpEndpoint: optional
	HttpEndpoint *DestinationHttpEndpoint `hcl:"http_endpoint,block"`
	// DestinationNetworkConfig: optional
	NetworkConfig *DestinationNetworkConfig `hcl:"network_config,block"`
}

type DestinationAttributes

type DestinationAttributes struct {
	// contains filtered or unexported fields
}

func (DestinationAttributes) CloudFunction

func (d DestinationAttributes) CloudFunction() terra.StringValue

func (DestinationAttributes) CloudRunService

func (DestinationAttributes) Gke

func (DestinationAttributes) HttpEndpoint

func (DestinationAttributes) InternalRef

func (d DestinationAttributes) InternalRef() (terra.Reference, error)

func (DestinationAttributes) InternalTokens

func (d DestinationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DestinationAttributes) InternalWithRef

func (DestinationAttributes) NetworkConfig

func (DestinationAttributes) Workflow

type DestinationCloudRunService

type DestinationCloudRunService struct {
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
}

type DestinationCloudRunServiceAttributes

type DestinationCloudRunServiceAttributes struct {
	// contains filtered or unexported fields
}

func (DestinationCloudRunServiceAttributes) InternalRef

func (DestinationCloudRunServiceAttributes) InternalTokens

func (DestinationCloudRunServiceAttributes) InternalWithRef

func (DestinationCloudRunServiceAttributes) Path

func (DestinationCloudRunServiceAttributes) Region

func (DestinationCloudRunServiceAttributes) Service

type DestinationCloudRunServiceState

type DestinationCloudRunServiceState struct {
	Path    string `json:"path"`
	Region  string `json:"region"`
	Service string `json:"service"`
}

type DestinationGke

type DestinationGke struct {
	// Cluster: string, required
	Cluster terra.StringValue `hcl:"cluster,attr" validate:"required"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
}

type DestinationGkeAttributes

type DestinationGkeAttributes struct {
	// contains filtered or unexported fields
}

func (DestinationGkeAttributes) Cluster

func (DestinationGkeAttributes) InternalRef

func (g DestinationGkeAttributes) InternalRef() (terra.Reference, error)

func (DestinationGkeAttributes) InternalTokens

func (g DestinationGkeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DestinationGkeAttributes) InternalWithRef

func (DestinationGkeAttributes) Location

func (DestinationGkeAttributes) Namespace

func (DestinationGkeAttributes) Path

func (DestinationGkeAttributes) Service

type DestinationGkeState

type DestinationGkeState struct {
	Cluster   string `json:"cluster"`
	Location  string `json:"location"`
	Namespace string `json:"namespace"`
	Path      string `json:"path"`
	Service   string `json:"service"`
}

type DestinationHttpEndpoint

type DestinationHttpEndpoint struct {
	// Uri: string, required
	Uri terra.StringValue `hcl:"uri,attr" validate:"required"`
}

type DestinationHttpEndpointAttributes

type DestinationHttpEndpointAttributes struct {
	// contains filtered or unexported fields
}

func (DestinationHttpEndpointAttributes) InternalRef

func (DestinationHttpEndpointAttributes) InternalTokens

func (he DestinationHttpEndpointAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DestinationHttpEndpointAttributes) InternalWithRef

func (DestinationHttpEndpointAttributes) Uri

type DestinationHttpEndpointState

type DestinationHttpEndpointState struct {
	Uri string `json:"uri"`
}

type DestinationNetworkConfig

type DestinationNetworkConfig struct {
	// NetworkAttachment: string, required
	NetworkAttachment terra.StringValue `hcl:"network_attachment,attr" validate:"required"`
}

type DestinationNetworkConfigAttributes

type DestinationNetworkConfigAttributes struct {
	// contains filtered or unexported fields
}

func (DestinationNetworkConfigAttributes) InternalRef

func (DestinationNetworkConfigAttributes) InternalTokens

func (DestinationNetworkConfigAttributes) InternalWithRef

func (DestinationNetworkConfigAttributes) NetworkAttachment

func (nc DestinationNetworkConfigAttributes) NetworkAttachment() terra.StringValue

type DestinationNetworkConfigState

type DestinationNetworkConfigState struct {
	NetworkAttachment string `json:"network_attachment"`
}

type DestinationState

type DestinationState struct {
	CloudFunction   string                            `json:"cloud_function"`
	Workflow        string                            `json:"workflow"`
	CloudRunService []DestinationCloudRunServiceState `json:"cloud_run_service"`
	Gke             []DestinationGkeState             `json:"gke"`
	HttpEndpoint    []DestinationHttpEndpointState    `json:"http_endpoint"`
	NetworkConfig   []DestinationNetworkConfigState   `json:"network_config"`
}

type MatchingCriteria

type MatchingCriteria struct {
	// Attribute: string, required
	Attribute terra.StringValue `hcl:"attribute,attr" validate:"required"`
	// Operator: string, optional
	Operator terra.StringValue `hcl:"operator,attr"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type MatchingCriteriaAttributes

type MatchingCriteriaAttributes struct {
	// contains filtered or unexported fields
}

func (MatchingCriteriaAttributes) Attribute

func (MatchingCriteriaAttributes) InternalRef

func (mc MatchingCriteriaAttributes) InternalRef() (terra.Reference, error)

func (MatchingCriteriaAttributes) InternalTokens

func (mc MatchingCriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MatchingCriteriaAttributes) InternalWithRef

func (MatchingCriteriaAttributes) Operator

func (MatchingCriteriaAttributes) Value

type MatchingCriteriaState

type MatchingCriteriaState struct {
	Attribute string `json:"attribute"`
	Operator  string `json:"operator"`
	Value     string `json:"value"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_eventarc_trigger.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (get *Resource) Attributes() googleEventarcTriggerAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (get *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (get *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (get *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (get *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (get *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (get *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (get *Resource) State() (*googleEventarcTriggerState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (get *Resource) StateMust() *googleEventarcTriggerState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (get *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

type Transport

type Transport struct {
	// TransportPubsub: optional
	Pubsub *TransportPubsub `hcl:"pubsub,block"`
}

type TransportAttributes

type TransportAttributes struct {
	// contains filtered or unexported fields
}

func (TransportAttributes) InternalRef

func (t TransportAttributes) InternalRef() (terra.Reference, error)

func (TransportAttributes) InternalTokens

func (t TransportAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TransportAttributes) InternalWithRef

func (t TransportAttributes) InternalWithRef(ref terra.Reference) TransportAttributes

func (TransportAttributes) Pubsub

type TransportPubsub

type TransportPubsub struct {
	// Topic: string, optional
	Topic terra.StringValue `hcl:"topic,attr"`
}

type TransportPubsubAttributes

type TransportPubsubAttributes struct {
	// contains filtered or unexported fields
}

func (TransportPubsubAttributes) InternalRef

func (p TransportPubsubAttributes) InternalRef() (terra.Reference, error)

func (TransportPubsubAttributes) InternalTokens

func (p TransportPubsubAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TransportPubsubAttributes) InternalWithRef

func (TransportPubsubAttributes) Subscription

func (p TransportPubsubAttributes) Subscription() terra.StringValue

func (TransportPubsubAttributes) Topic

type TransportPubsubState

type TransportPubsubState struct {
	Subscription string `json:"subscription"`
	Topic        string `json:"topic"`
}

type TransportState

type TransportState struct {
	Pubsub []TransportPubsubState `json:"pubsub"`
}

Jump to

Keyboard shortcuts

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