google_cloudfunctions2_function

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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKeyName: string, optional
	KmsKeyName terra.StringValue `hcl:"kms_key_name,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"`
	// BuildConfig: optional
	BuildConfig *BuildConfig `hcl:"build_config,block"`
	// EventTrigger: optional
	EventTrigger *EventTrigger `hcl:"event_trigger,block"`
	// ServiceConfig: optional
	ServiceConfig *ServiceConfig `hcl:"service_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_cloudfunctions2_function.

type BuildConfig

type BuildConfig struct {
	// DockerRepository: string, optional
	DockerRepository terra.StringValue `hcl:"docker_repository,attr"`
	// EntryPoint: string, optional
	EntryPoint terra.StringValue `hcl:"entry_point,attr"`
	// EnvironmentVariables: map of string, optional
	EnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"environment_variables,attr"`
	// Runtime: string, optional
	Runtime terra.StringValue `hcl:"runtime,attr"`
	// WorkerPool: string, optional
	WorkerPool terra.StringValue `hcl:"worker_pool,attr"`
	// BuildConfigSource: optional
	Source *BuildConfigSource `hcl:"source,block"`
}

type BuildConfigAttributes

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

func (BuildConfigAttributes) Build

func (BuildConfigAttributes) DockerRepository

func (bc BuildConfigAttributes) DockerRepository() terra.StringValue

func (BuildConfigAttributes) EntryPoint

func (bc BuildConfigAttributes) EntryPoint() terra.StringValue

func (BuildConfigAttributes) EnvironmentVariables

func (bc BuildConfigAttributes) EnvironmentVariables() terra.MapValue[terra.StringValue]

func (BuildConfigAttributes) InternalRef

func (bc BuildConfigAttributes) InternalRef() (terra.Reference, error)

func (BuildConfigAttributes) InternalTokens

func (bc BuildConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BuildConfigAttributes) InternalWithRef

func (BuildConfigAttributes) Runtime

func (BuildConfigAttributes) Source

func (BuildConfigAttributes) WorkerPool

func (bc BuildConfigAttributes) WorkerPool() terra.StringValue

type BuildConfigSource

type BuildConfigSource struct {
	// BuildConfigSourceRepoSource: optional
	RepoSource *BuildConfigSourceRepoSource `hcl:"repo_source,block"`
	// BuildConfigSourceStorageSource: optional
	StorageSource *BuildConfigSourceStorageSource `hcl:"storage_source,block"`
}

type BuildConfigSourceAttributes

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

func (BuildConfigSourceAttributes) InternalRef

func (s BuildConfigSourceAttributes) InternalRef() (terra.Reference, error)

func (BuildConfigSourceAttributes) InternalTokens

func (s BuildConfigSourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BuildConfigSourceAttributes) InternalWithRef

func (BuildConfigSourceAttributes) RepoSource

func (BuildConfigSourceAttributes) StorageSource

type BuildConfigSourceRepoSource

type BuildConfigSourceRepoSource struct {
	// BranchName: string, optional
	BranchName terra.StringValue `hcl:"branch_name,attr"`
	// CommitSha: string, optional
	CommitSha terra.StringValue `hcl:"commit_sha,attr"`
	// Dir: string, optional
	Dir terra.StringValue `hcl:"dir,attr"`
	// InvertRegex: bool, optional
	InvertRegex terra.BoolValue `hcl:"invert_regex,attr"`
	// ProjectId: string, optional
	ProjectId terra.StringValue `hcl:"project_id,attr"`
	// RepoName: string, optional
	RepoName terra.StringValue `hcl:"repo_name,attr"`
	// TagName: string, optional
	TagName terra.StringValue `hcl:"tag_name,attr"`
}

type BuildConfigSourceRepoSourceAttributes

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

func (BuildConfigSourceRepoSourceAttributes) BranchName

func (BuildConfigSourceRepoSourceAttributes) CommitSha

func (BuildConfigSourceRepoSourceAttributes) Dir

func (BuildConfigSourceRepoSourceAttributes) InternalRef

func (BuildConfigSourceRepoSourceAttributes) InternalTokens

func (BuildConfigSourceRepoSourceAttributes) InternalWithRef

func (BuildConfigSourceRepoSourceAttributes) InvertRegex

func (BuildConfigSourceRepoSourceAttributes) ProjectId

func (BuildConfigSourceRepoSourceAttributes) RepoName

func (BuildConfigSourceRepoSourceAttributes) TagName

type BuildConfigSourceRepoSourceState

type BuildConfigSourceRepoSourceState struct {
	BranchName  string `json:"branch_name"`
	CommitSha   string `json:"commit_sha"`
	Dir         string `json:"dir"`
	InvertRegex bool   `json:"invert_regex"`
	ProjectId   string `json:"project_id"`
	RepoName    string `json:"repo_name"`
	TagName     string `json:"tag_name"`
}

type BuildConfigSourceState

type BuildConfigSourceState struct {
	RepoSource    []BuildConfigSourceRepoSourceState    `json:"repo_source"`
	StorageSource []BuildConfigSourceStorageSourceState `json:"storage_source"`
}

type BuildConfigSourceStorageSource

type BuildConfigSourceStorageSource struct {
	// Bucket: string, optional
	Bucket terra.StringValue `hcl:"bucket,attr"`
	// Generation: number, optional
	Generation terra.NumberValue `hcl:"generation,attr"`
	// Object: string, optional
	Object terra.StringValue `hcl:"object,attr"`
}

type BuildConfigSourceStorageSourceAttributes

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

func (BuildConfigSourceStorageSourceAttributes) Bucket

func (BuildConfigSourceStorageSourceAttributes) Generation

func (BuildConfigSourceStorageSourceAttributes) InternalRef

func (BuildConfigSourceStorageSourceAttributes) InternalTokens

func (BuildConfigSourceStorageSourceAttributes) InternalWithRef

func (BuildConfigSourceStorageSourceAttributes) Object

type BuildConfigSourceStorageSourceState

type BuildConfigSourceStorageSourceState struct {
	Bucket     string  `json:"bucket"`
	Generation float64 `json:"generation"`
	Object     string  `json:"object"`
}

type BuildConfigState

type BuildConfigState struct {
	Build                string                   `json:"build"`
	DockerRepository     string                   `json:"docker_repository"`
	EntryPoint           string                   `json:"entry_point"`
	EnvironmentVariables map[string]string        `json:"environment_variables"`
	Runtime              string                   `json:"runtime"`
	WorkerPool           string                   `json:"worker_pool"`
	Source               []BuildConfigSourceState `json:"source"`
}

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,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"`
}

DataArgs contains the configurations for google_cloudfunctions2_function.

type DataBuildConfigAttributes

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

func (DataBuildConfigAttributes) Build

func (DataBuildConfigAttributes) DockerRepository

func (bc DataBuildConfigAttributes) DockerRepository() terra.StringValue

func (DataBuildConfigAttributes) EntryPoint

func (DataBuildConfigAttributes) EnvironmentVariables

func (bc DataBuildConfigAttributes) EnvironmentVariables() terra.MapValue[terra.StringValue]

func (DataBuildConfigAttributes) InternalRef

func (bc DataBuildConfigAttributes) InternalRef() (terra.Reference, error)

func (DataBuildConfigAttributes) InternalTokens

func (bc DataBuildConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataBuildConfigAttributes) InternalWithRef

func (DataBuildConfigAttributes) Runtime

func (DataBuildConfigAttributes) Source

func (DataBuildConfigAttributes) WorkerPool

type DataBuildConfigSourceAttributes

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

func (DataBuildConfigSourceAttributes) InternalRef

func (DataBuildConfigSourceAttributes) InternalTokens

func (s DataBuildConfigSourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataBuildConfigSourceAttributes) InternalWithRef

func (DataBuildConfigSourceAttributes) RepoSource

func (DataBuildConfigSourceAttributes) StorageSource

type DataBuildConfigSourceRepoSourceAttributes

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

func (DataBuildConfigSourceRepoSourceAttributes) BranchName

func (DataBuildConfigSourceRepoSourceAttributes) CommitSha

func (DataBuildConfigSourceRepoSourceAttributes) Dir

func (DataBuildConfigSourceRepoSourceAttributes) InternalRef

func (DataBuildConfigSourceRepoSourceAttributes) InternalTokens

func (DataBuildConfigSourceRepoSourceAttributes) InternalWithRef

func (DataBuildConfigSourceRepoSourceAttributes) InvertRegex

func (DataBuildConfigSourceRepoSourceAttributes) ProjectId

func (DataBuildConfigSourceRepoSourceAttributes) RepoName

func (DataBuildConfigSourceRepoSourceAttributes) TagName

type DataBuildConfigSourceRepoSourceState

type DataBuildConfigSourceRepoSourceState struct {
	BranchName  string `json:"branch_name"`
	CommitSha   string `json:"commit_sha"`
	Dir         string `json:"dir"`
	InvertRegex bool   `json:"invert_regex"`
	ProjectId   string `json:"project_id"`
	RepoName    string `json:"repo_name"`
	TagName     string `json:"tag_name"`
}

type DataBuildConfigSourceState

type DataBuildConfigSourceState struct {
	RepoSource    []DataBuildConfigSourceRepoSourceState    `json:"repo_source"`
	StorageSource []DataBuildConfigSourceStorageSourceState `json:"storage_source"`
}

type DataBuildConfigSourceStorageSourceAttributes

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

func (DataBuildConfigSourceStorageSourceAttributes) Bucket

func (DataBuildConfigSourceStorageSourceAttributes) Generation

func (DataBuildConfigSourceStorageSourceAttributes) InternalRef

func (DataBuildConfigSourceStorageSourceAttributes) InternalTokens

func (DataBuildConfigSourceStorageSourceAttributes) InternalWithRef

func (DataBuildConfigSourceStorageSourceAttributes) Object

type DataBuildConfigSourceStorageSourceState

type DataBuildConfigSourceStorageSourceState struct {
	Bucket     string  `json:"bucket"`
	Generation float64 `json:"generation"`
	Object     string  `json:"object"`
}

type DataBuildConfigState

type DataBuildConfigState struct {
	Build                string                       `json:"build"`
	DockerRepository     string                       `json:"docker_repository"`
	EntryPoint           string                       `json:"entry_point"`
	EnvironmentVariables map[string]string            `json:"environment_variables"`
	Runtime              string                       `json:"runtime"`
	WorkerPool           string                       `json:"worker_pool"`
	Source               []DataBuildConfigSourceState `json:"source"`
}

type DataEventTriggerAttributes

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

func (DataEventTriggerAttributes) EventFilters

func (DataEventTriggerAttributes) EventType

func (DataEventTriggerAttributes) InternalRef

func (et DataEventTriggerAttributes) InternalRef() (terra.Reference, error)

func (DataEventTriggerAttributes) InternalTokens

func (et DataEventTriggerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataEventTriggerAttributes) InternalWithRef

func (DataEventTriggerAttributes) PubsubTopic

func (et DataEventTriggerAttributes) PubsubTopic() terra.StringValue

func (DataEventTriggerAttributes) RetryPolicy

func (et DataEventTriggerAttributes) RetryPolicy() terra.StringValue

func (DataEventTriggerAttributes) ServiceAccountEmail

func (et DataEventTriggerAttributes) ServiceAccountEmail() terra.StringValue

func (DataEventTriggerAttributes) Trigger

func (DataEventTriggerAttributes) TriggerRegion

func (et DataEventTriggerAttributes) TriggerRegion() terra.StringValue

type DataEventTriggerEventFiltersAttributes

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

func (DataEventTriggerEventFiltersAttributes) Attribute

func (DataEventTriggerEventFiltersAttributes) InternalRef

func (DataEventTriggerEventFiltersAttributes) InternalTokens

func (DataEventTriggerEventFiltersAttributes) InternalWithRef

func (DataEventTriggerEventFiltersAttributes) Operator

func (DataEventTriggerEventFiltersAttributes) Value

type DataEventTriggerEventFiltersState

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

type DataEventTriggerState

type DataEventTriggerState struct {
	EventType           string                              `json:"event_type"`
	PubsubTopic         string                              `json:"pubsub_topic"`
	RetryPolicy         string                              `json:"retry_policy"`
	ServiceAccountEmail string                              `json:"service_account_email"`
	Trigger             string                              `json:"trigger"`
	TriggerRegion       string                              `json:"trigger_region"`
	EventFilters        []DataEventTriggerEventFiltersState `json:"event_filters"`
}

type DataServiceConfigAttributes

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

func (DataServiceConfigAttributes) AllTrafficOnLatestRevision

func (sc DataServiceConfigAttributes) AllTrafficOnLatestRevision() terra.BoolValue

func (DataServiceConfigAttributes) AvailableCpu

func (sc DataServiceConfigAttributes) AvailableCpu() terra.StringValue

func (DataServiceConfigAttributes) AvailableMemory

func (sc DataServiceConfigAttributes) AvailableMemory() terra.StringValue

func (DataServiceConfigAttributes) EnvironmentVariables

func (sc DataServiceConfigAttributes) EnvironmentVariables() terra.MapValue[terra.StringValue]

func (DataServiceConfigAttributes) GcfUri

func (DataServiceConfigAttributes) IngressSettings

func (sc DataServiceConfigAttributes) IngressSettings() terra.StringValue

func (DataServiceConfigAttributes) InternalRef

func (sc DataServiceConfigAttributes) InternalRef() (terra.Reference, error)

func (DataServiceConfigAttributes) InternalTokens

func (sc DataServiceConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataServiceConfigAttributes) InternalWithRef

func (DataServiceConfigAttributes) MaxInstanceCount

func (sc DataServiceConfigAttributes) MaxInstanceCount() terra.NumberValue

func (DataServiceConfigAttributes) MaxInstanceRequestConcurrency

func (sc DataServiceConfigAttributes) MaxInstanceRequestConcurrency() terra.NumberValue

func (DataServiceConfigAttributes) MinInstanceCount

func (sc DataServiceConfigAttributes) MinInstanceCount() terra.NumberValue

func (DataServiceConfigAttributes) SecretEnvironmentVariables

func (DataServiceConfigAttributes) SecretVolumes

func (DataServiceConfigAttributes) Service

func (DataServiceConfigAttributes) ServiceAccountEmail

func (sc DataServiceConfigAttributes) ServiceAccountEmail() terra.StringValue

func (DataServiceConfigAttributes) TimeoutSeconds

func (sc DataServiceConfigAttributes) TimeoutSeconds() terra.NumberValue

func (DataServiceConfigAttributes) Uri

func (DataServiceConfigAttributes) VpcConnector

func (sc DataServiceConfigAttributes) VpcConnector() terra.StringValue

func (DataServiceConfigAttributes) VpcConnectorEgressSettings

func (sc DataServiceConfigAttributes) VpcConnectorEgressSettings() terra.StringValue

type DataServiceConfigSecretEnvironmentVariablesAttributes

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

func (DataServiceConfigSecretEnvironmentVariablesAttributes) InternalRef

func (DataServiceConfigSecretEnvironmentVariablesAttributes) InternalTokens

func (DataServiceConfigSecretEnvironmentVariablesAttributes) InternalWithRef

func (DataServiceConfigSecretEnvironmentVariablesAttributes) Key

func (DataServiceConfigSecretEnvironmentVariablesAttributes) ProjectId

func (DataServiceConfigSecretEnvironmentVariablesAttributes) Secret

func (DataServiceConfigSecretEnvironmentVariablesAttributes) Version

type DataServiceConfigSecretEnvironmentVariablesState

type DataServiceConfigSecretEnvironmentVariablesState struct {
	Key       string `json:"key"`
	ProjectId string `json:"project_id"`
	Secret    string `json:"secret"`
	Version   string `json:"version"`
}

type DataServiceConfigSecretVolumesAttributes

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

func (DataServiceConfigSecretVolumesAttributes) InternalRef

func (DataServiceConfigSecretVolumesAttributes) InternalTokens

func (DataServiceConfigSecretVolumesAttributes) InternalWithRef

func (DataServiceConfigSecretVolumesAttributes) MountPath

func (DataServiceConfigSecretVolumesAttributes) ProjectId

func (DataServiceConfigSecretVolumesAttributes) Secret

func (DataServiceConfigSecretVolumesAttributes) Versions

type DataServiceConfigSecretVolumesState

type DataServiceConfigSecretVolumesState struct {
	MountPath string                                        `json:"mount_path"`
	ProjectId string                                        `json:"project_id"`
	Secret    string                                        `json:"secret"`
	Versions  []DataServiceConfigSecretVolumesVersionsState `json:"versions"`
}

type DataServiceConfigSecretVolumesVersionsAttributes

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

func (DataServiceConfigSecretVolumesVersionsAttributes) InternalRef

func (DataServiceConfigSecretVolumesVersionsAttributes) InternalTokens

func (DataServiceConfigSecretVolumesVersionsAttributes) InternalWithRef

func (DataServiceConfigSecretVolumesVersionsAttributes) Path

func (DataServiceConfigSecretVolumesVersionsAttributes) Version

type DataServiceConfigSecretVolumesVersionsState

type DataServiceConfigSecretVolumesVersionsState struct {
	Path    string `json:"path"`
	Version string `json:"version"`
}

type DataServiceConfigState

type DataServiceConfigState struct {
	AllTrafficOnLatestRevision    bool                                               `json:"all_traffic_on_latest_revision"`
	AvailableCpu                  string                                             `json:"available_cpu"`
	AvailableMemory               string                                             `json:"available_memory"`
	EnvironmentVariables          map[string]string                                  `json:"environment_variables"`
	GcfUri                        string                                             `json:"gcf_uri"`
	IngressSettings               string                                             `json:"ingress_settings"`
	MaxInstanceCount              float64                                            `json:"max_instance_count"`
	MaxInstanceRequestConcurrency float64                                            `json:"max_instance_request_concurrency"`
	MinInstanceCount              float64                                            `json:"min_instance_count"`
	Service                       string                                             `json:"service"`
	ServiceAccountEmail           string                                             `json:"service_account_email"`
	TimeoutSeconds                float64                                            `json:"timeout_seconds"`
	Uri                           string                                             `json:"uri"`
	VpcConnector                  string                                             `json:"vpc_connector"`
	VpcConnectorEgressSettings    string                                             `json:"vpc_connector_egress_settings"`
	SecretEnvironmentVariables    []DataServiceConfigSecretEnvironmentVariablesState `json:"secret_environment_variables"`
	SecretVolumes                 []DataServiceConfigSecretVolumesState              `json:"secret_volumes"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_cloudfunctions2_function.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gcf *DataSource) Attributes() dataGoogleCloudfunctions2FunctionAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (gcf *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gcf *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gcf *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type EventTrigger

type EventTrigger struct {
	// EventType: string, optional
	EventType terra.StringValue `hcl:"event_type,attr"`
	// PubsubTopic: string, optional
	PubsubTopic terra.StringValue `hcl:"pubsub_topic,attr"`
	// RetryPolicy: string, optional
	RetryPolicy terra.StringValue `hcl:"retry_policy,attr"`
	// ServiceAccountEmail: string, optional
	ServiceAccountEmail terra.StringValue `hcl:"service_account_email,attr"`
	// TriggerRegion: string, optional
	TriggerRegion terra.StringValue `hcl:"trigger_region,attr"`
	// EventTriggerEventFilters: min=0
	EventFilters []EventTriggerEventFilters `hcl:"event_filters,block" validate:"min=0"`
}

type EventTriggerAttributes

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

func (EventTriggerAttributes) EventFilters

func (EventTriggerAttributes) EventType

func (et EventTriggerAttributes) EventType() terra.StringValue

func (EventTriggerAttributes) InternalRef

func (et EventTriggerAttributes) InternalRef() (terra.Reference, error)

func (EventTriggerAttributes) InternalTokens

func (et EventTriggerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EventTriggerAttributes) InternalWithRef

func (EventTriggerAttributes) PubsubTopic

func (et EventTriggerAttributes) PubsubTopic() terra.StringValue

func (EventTriggerAttributes) RetryPolicy

func (et EventTriggerAttributes) RetryPolicy() terra.StringValue

func (EventTriggerAttributes) ServiceAccountEmail

func (et EventTriggerAttributes) ServiceAccountEmail() terra.StringValue

func (EventTriggerAttributes) Trigger

func (EventTriggerAttributes) TriggerRegion

func (et EventTriggerAttributes) TriggerRegion() terra.StringValue

type EventTriggerEventFilters

type EventTriggerEventFilters 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 EventTriggerEventFiltersAttributes

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

func (EventTriggerEventFiltersAttributes) Attribute

func (EventTriggerEventFiltersAttributes) InternalRef

func (EventTriggerEventFiltersAttributes) InternalTokens

func (EventTriggerEventFiltersAttributes) InternalWithRef

func (EventTriggerEventFiltersAttributes) Operator

func (EventTriggerEventFiltersAttributes) Value

type EventTriggerEventFiltersState

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

type EventTriggerState

type EventTriggerState struct {
	EventType           string                          `json:"event_type"`
	PubsubTopic         string                          `json:"pubsub_topic"`
	RetryPolicy         string                          `json:"retry_policy"`
	ServiceAccountEmail string                          `json:"service_account_email"`
	Trigger             string                          `json:"trigger"`
	TriggerRegion       string                          `json:"trigger_region"`
	EventFilters        []EventTriggerEventFiltersState `json:"event_filters"`
}

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_cloudfunctions2_function.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcf *Resource) Attributes() googleCloudfunctions2FunctionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcf *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcf *Resource) State() (*googleCloudfunctions2FunctionState, bool)

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

func (*Resource) StateMust

func (gcf *Resource) StateMust() *googleCloudfunctions2FunctionState

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

func (*Resource) Type

func (gcf *Resource) Type() string

Type returns the Terraform object type for Resource.

type ServiceConfig

type ServiceConfig struct {
	// AllTrafficOnLatestRevision: bool, optional
	AllTrafficOnLatestRevision terra.BoolValue `hcl:"all_traffic_on_latest_revision,attr"`
	// AvailableCpu: string, optional
	AvailableCpu terra.StringValue `hcl:"available_cpu,attr"`
	// AvailableMemory: string, optional
	AvailableMemory terra.StringValue `hcl:"available_memory,attr"`
	// EnvironmentVariables: map of string, optional
	EnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"environment_variables,attr"`
	// IngressSettings: string, optional
	IngressSettings terra.StringValue `hcl:"ingress_settings,attr"`
	// MaxInstanceCount: number, optional
	MaxInstanceCount terra.NumberValue `hcl:"max_instance_count,attr"`
	// MaxInstanceRequestConcurrency: number, optional
	MaxInstanceRequestConcurrency terra.NumberValue `hcl:"max_instance_request_concurrency,attr"`
	// MinInstanceCount: number, optional
	MinInstanceCount terra.NumberValue `hcl:"min_instance_count,attr"`
	// Service: string, optional
	Service terra.StringValue `hcl:"service,attr"`
	// ServiceAccountEmail: string, optional
	ServiceAccountEmail terra.StringValue `hcl:"service_account_email,attr"`
	// TimeoutSeconds: number, optional
	TimeoutSeconds terra.NumberValue `hcl:"timeout_seconds,attr"`
	// VpcConnector: string, optional
	VpcConnector terra.StringValue `hcl:"vpc_connector,attr"`
	// VpcConnectorEgressSettings: string, optional
	VpcConnectorEgressSettings terra.StringValue `hcl:"vpc_connector_egress_settings,attr"`
	// ServiceConfigSecretEnvironmentVariables: min=0
	SecretEnvironmentVariables []ServiceConfigSecretEnvironmentVariables `hcl:"secret_environment_variables,block" validate:"min=0"`
	// ServiceConfigSecretVolumes: min=0
	SecretVolumes []ServiceConfigSecretVolumes `hcl:"secret_volumes,block" validate:"min=0"`
}

type ServiceConfigAttributes

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

func (ServiceConfigAttributes) AllTrafficOnLatestRevision

func (sc ServiceConfigAttributes) AllTrafficOnLatestRevision() terra.BoolValue

func (ServiceConfigAttributes) AvailableCpu

func (sc ServiceConfigAttributes) AvailableCpu() terra.StringValue

func (ServiceConfigAttributes) AvailableMemory

func (sc ServiceConfigAttributes) AvailableMemory() terra.StringValue

func (ServiceConfigAttributes) EnvironmentVariables

func (sc ServiceConfigAttributes) EnvironmentVariables() terra.MapValue[terra.StringValue]

func (ServiceConfigAttributes) GcfUri

func (ServiceConfigAttributes) IngressSettings

func (sc ServiceConfigAttributes) IngressSettings() terra.StringValue

func (ServiceConfigAttributes) InternalRef

func (sc ServiceConfigAttributes) InternalRef() (terra.Reference, error)

func (ServiceConfigAttributes) InternalTokens

func (sc ServiceConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ServiceConfigAttributes) InternalWithRef

func (ServiceConfigAttributes) MaxInstanceCount

func (sc ServiceConfigAttributes) MaxInstanceCount() terra.NumberValue

func (ServiceConfigAttributes) MaxInstanceRequestConcurrency

func (sc ServiceConfigAttributes) MaxInstanceRequestConcurrency() terra.NumberValue

func (ServiceConfigAttributes) MinInstanceCount

func (sc ServiceConfigAttributes) MinInstanceCount() terra.NumberValue

func (ServiceConfigAttributes) SecretEnvironmentVariables

func (ServiceConfigAttributes) SecretVolumes

func (ServiceConfigAttributes) Service

func (ServiceConfigAttributes) ServiceAccountEmail

func (sc ServiceConfigAttributes) ServiceAccountEmail() terra.StringValue

func (ServiceConfigAttributes) TimeoutSeconds

func (sc ServiceConfigAttributes) TimeoutSeconds() terra.NumberValue

func (ServiceConfigAttributes) Uri

func (ServiceConfigAttributes) VpcConnector

func (sc ServiceConfigAttributes) VpcConnector() terra.StringValue

func (ServiceConfigAttributes) VpcConnectorEgressSettings

func (sc ServiceConfigAttributes) VpcConnectorEgressSettings() terra.StringValue

type ServiceConfigSecretEnvironmentVariables

type ServiceConfigSecretEnvironmentVariables struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// ProjectId: string, required
	ProjectId terra.StringValue `hcl:"project_id,attr" validate:"required"`
	// Secret: string, required
	Secret terra.StringValue `hcl:"secret,attr" validate:"required"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
}

type ServiceConfigSecretEnvironmentVariablesAttributes

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

func (ServiceConfigSecretEnvironmentVariablesAttributes) InternalRef

func (ServiceConfigSecretEnvironmentVariablesAttributes) InternalTokens

func (ServiceConfigSecretEnvironmentVariablesAttributes) InternalWithRef

func (ServiceConfigSecretEnvironmentVariablesAttributes) Key

func (ServiceConfigSecretEnvironmentVariablesAttributes) ProjectId

func (ServiceConfigSecretEnvironmentVariablesAttributes) Secret

func (ServiceConfigSecretEnvironmentVariablesAttributes) Version

type ServiceConfigSecretEnvironmentVariablesState

type ServiceConfigSecretEnvironmentVariablesState struct {
	Key       string `json:"key"`
	ProjectId string `json:"project_id"`
	Secret    string `json:"secret"`
	Version   string `json:"version"`
}

type ServiceConfigSecretVolumes

type ServiceConfigSecretVolumes struct {
	// MountPath: string, required
	MountPath terra.StringValue `hcl:"mount_path,attr" validate:"required"`
	// ProjectId: string, required
	ProjectId terra.StringValue `hcl:"project_id,attr" validate:"required"`
	// Secret: string, required
	Secret terra.StringValue `hcl:"secret,attr" validate:"required"`
	// ServiceConfigSecretVolumesVersions: min=0
	Versions []ServiceConfigSecretVolumesVersions `hcl:"versions,block" validate:"min=0"`
}

type ServiceConfigSecretVolumesAttributes

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

func (ServiceConfigSecretVolumesAttributes) InternalRef

func (ServiceConfigSecretVolumesAttributes) InternalTokens

func (ServiceConfigSecretVolumesAttributes) InternalWithRef

func (ServiceConfigSecretVolumesAttributes) MountPath

func (ServiceConfigSecretVolumesAttributes) ProjectId

func (ServiceConfigSecretVolumesAttributes) Secret

func (ServiceConfigSecretVolumesAttributes) Versions

type ServiceConfigSecretVolumesState

type ServiceConfigSecretVolumesState struct {
	MountPath string                                    `json:"mount_path"`
	ProjectId string                                    `json:"project_id"`
	Secret    string                                    `json:"secret"`
	Versions  []ServiceConfigSecretVolumesVersionsState `json:"versions"`
}

type ServiceConfigSecretVolumesVersions

type ServiceConfigSecretVolumesVersions struct {
	// Path: string, required
	Path terra.StringValue `hcl:"path,attr" validate:"required"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
}

type ServiceConfigSecretVolumesVersionsAttributes

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

func (ServiceConfigSecretVolumesVersionsAttributes) InternalRef

func (ServiceConfigSecretVolumesVersionsAttributes) InternalTokens

func (ServiceConfigSecretVolumesVersionsAttributes) InternalWithRef

func (ServiceConfigSecretVolumesVersionsAttributes) Path

func (ServiceConfigSecretVolumesVersionsAttributes) Version

type ServiceConfigSecretVolumesVersionsState

type ServiceConfigSecretVolumesVersionsState struct {
	Path    string `json:"path"`
	Version string `json:"version"`
}

type ServiceConfigState

type ServiceConfigState struct {
	AllTrafficOnLatestRevision    bool                                           `json:"all_traffic_on_latest_revision"`
	AvailableCpu                  string                                         `json:"available_cpu"`
	AvailableMemory               string                                         `json:"available_memory"`
	EnvironmentVariables          map[string]string                              `json:"environment_variables"`
	GcfUri                        string                                         `json:"gcf_uri"`
	IngressSettings               string                                         `json:"ingress_settings"`
	MaxInstanceCount              float64                                        `json:"max_instance_count"`
	MaxInstanceRequestConcurrency float64                                        `json:"max_instance_request_concurrency"`
	MinInstanceCount              float64                                        `json:"min_instance_count"`
	Service                       string                                         `json:"service"`
	ServiceAccountEmail           string                                         `json:"service_account_email"`
	TimeoutSeconds                float64                                        `json:"timeout_seconds"`
	Uri                           string                                         `json:"uri"`
	VpcConnector                  string                                         `json:"vpc_connector"`
	VpcConnectorEgressSettings    string                                         `json:"vpc_connector_egress_settings"`
	SecretEnvironmentVariables    []ServiceConfigSecretEnvironmentVariablesState `json:"secret_environment_variables"`
	SecretVolumes                 []ServiceConfigSecretVolumesState              `json:"secret_volumes"`
}

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

Jump to

Keyboard shortcuts

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