google_app_engine_standard_app_version

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 {
	// AppEngineApis: bool, optional
	AppEngineApis terra.BoolValue `hcl:"app_engine_apis,attr"`
	// DeleteServiceOnDestroy: bool, optional
	DeleteServiceOnDestroy terra.BoolValue `hcl:"delete_service_on_destroy,attr"`
	// EnvVariables: map of string, optional
	EnvVariables terra.MapValue[terra.StringValue] `hcl:"env_variables,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InboundServices: set of string, optional
	InboundServices terra.SetValue[terra.StringValue] `hcl:"inbound_services,attr"`
	// InstanceClass: string, optional
	InstanceClass terra.StringValue `hcl:"instance_class,attr"`
	// NoopOnDestroy: bool, optional
	NoopOnDestroy terra.BoolValue `hcl:"noop_on_destroy,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Runtime: string, required
	Runtime terra.StringValue `hcl:"runtime,attr" validate:"required"`
	// RuntimeApiVersion: string, optional
	RuntimeApiVersion terra.StringValue `hcl:"runtime_api_version,attr"`
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
	// ServiceAccount: string, optional
	ServiceAccount terra.StringValue `hcl:"service_account,attr"`
	// Threadsafe: bool, optional
	Threadsafe terra.BoolValue `hcl:"threadsafe,attr"`
	// VersionId: string, optional
	VersionId terra.StringValue `hcl:"version_id,attr"`
	// AutomaticScaling: optional
	AutomaticScaling *AutomaticScaling `hcl:"automatic_scaling,block"`
	// BasicScaling: optional
	BasicScaling *BasicScaling `hcl:"basic_scaling,block"`
	// Deployment: required
	Deployment *Deployment `hcl:"deployment,block" validate:"required"`
	// Entrypoint: required
	Entrypoint *Entrypoint `hcl:"entrypoint,block" validate:"required"`
	// Handlers: min=0
	Handlers []Handlers `hcl:"handlers,block" validate:"min=0"`
	// Libraries: min=0
	Libraries []Libraries `hcl:"libraries,block" validate:"min=0"`
	// ManualScaling: optional
	ManualScaling *ManualScaling `hcl:"manual_scaling,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// VpcAccessConnector: optional
	VpcAccessConnector *VpcAccessConnector `hcl:"vpc_access_connector,block"`
}

Args contains the configurations for google_app_engine_standard_app_version.

type AutomaticScaling

type AutomaticScaling struct {
	// MaxConcurrentRequests: number, optional
	MaxConcurrentRequests terra.NumberValue `hcl:"max_concurrent_requests,attr"`
	// MaxIdleInstances: number, optional
	MaxIdleInstances terra.NumberValue `hcl:"max_idle_instances,attr"`
	// MaxPendingLatency: string, optional
	MaxPendingLatency terra.StringValue `hcl:"max_pending_latency,attr"`
	// MinIdleInstances: number, optional
	MinIdleInstances terra.NumberValue `hcl:"min_idle_instances,attr"`
	// MinPendingLatency: string, optional
	MinPendingLatency terra.StringValue `hcl:"min_pending_latency,attr"`
	// AutomaticScalingStandardSchedulerSettings: optional
	StandardSchedulerSettings *AutomaticScalingStandardSchedulerSettings `hcl:"standard_scheduler_settings,block"`
}

type AutomaticScalingAttributes

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

func (AutomaticScalingAttributes) InternalRef

func (as AutomaticScalingAttributes) InternalRef() (terra.Reference, error)

func (AutomaticScalingAttributes) InternalTokens

func (as AutomaticScalingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutomaticScalingAttributes) InternalWithRef

func (AutomaticScalingAttributes) MaxConcurrentRequests

func (as AutomaticScalingAttributes) MaxConcurrentRequests() terra.NumberValue

func (AutomaticScalingAttributes) MaxIdleInstances

func (as AutomaticScalingAttributes) MaxIdleInstances() terra.NumberValue

func (AutomaticScalingAttributes) MaxPendingLatency

func (as AutomaticScalingAttributes) MaxPendingLatency() terra.StringValue

func (AutomaticScalingAttributes) MinIdleInstances

func (as AutomaticScalingAttributes) MinIdleInstances() terra.NumberValue

func (AutomaticScalingAttributes) MinPendingLatency

func (as AutomaticScalingAttributes) MinPendingLatency() terra.StringValue

func (AutomaticScalingAttributes) StandardSchedulerSettings

type AutomaticScalingStandardSchedulerSettings

type AutomaticScalingStandardSchedulerSettings struct {
	// MaxInstances: number, optional
	MaxInstances terra.NumberValue `hcl:"max_instances,attr"`
	// MinInstances: number, optional
	MinInstances terra.NumberValue `hcl:"min_instances,attr"`
	// TargetCpuUtilization: number, optional
	TargetCpuUtilization terra.NumberValue `hcl:"target_cpu_utilization,attr"`
	// TargetThroughputUtilization: number, optional
	TargetThroughputUtilization terra.NumberValue `hcl:"target_throughput_utilization,attr"`
}

type AutomaticScalingStandardSchedulerSettingsAttributes

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

func (AutomaticScalingStandardSchedulerSettingsAttributes) InternalRef

func (AutomaticScalingStandardSchedulerSettingsAttributes) InternalTokens

func (AutomaticScalingStandardSchedulerSettingsAttributes) InternalWithRef

func (AutomaticScalingStandardSchedulerSettingsAttributes) MaxInstances

func (AutomaticScalingStandardSchedulerSettingsAttributes) MinInstances

func (AutomaticScalingStandardSchedulerSettingsAttributes) TargetCpuUtilization

func (AutomaticScalingStandardSchedulerSettingsAttributes) TargetThroughputUtilization

func (sss AutomaticScalingStandardSchedulerSettingsAttributes) TargetThroughputUtilization() terra.NumberValue

type AutomaticScalingStandardSchedulerSettingsState

type AutomaticScalingStandardSchedulerSettingsState struct {
	MaxInstances                float64 `json:"max_instances"`
	MinInstances                float64 `json:"min_instances"`
	TargetCpuUtilization        float64 `json:"target_cpu_utilization"`
	TargetThroughputUtilization float64 `json:"target_throughput_utilization"`
}

type AutomaticScalingState

type AutomaticScalingState struct {
	MaxConcurrentRequests     float64                                          `json:"max_concurrent_requests"`
	MaxIdleInstances          float64                                          `json:"max_idle_instances"`
	MaxPendingLatency         string                                           `json:"max_pending_latency"`
	MinIdleInstances          float64                                          `json:"min_idle_instances"`
	MinPendingLatency         string                                           `json:"min_pending_latency"`
	StandardSchedulerSettings []AutomaticScalingStandardSchedulerSettingsState `json:"standard_scheduler_settings"`
}

type BasicScaling

type BasicScaling struct {
	// IdleTimeout: string, optional
	IdleTimeout terra.StringValue `hcl:"idle_timeout,attr"`
	// MaxInstances: number, required
	MaxInstances terra.NumberValue `hcl:"max_instances,attr" validate:"required"`
}

type BasicScalingAttributes

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

func (BasicScalingAttributes) IdleTimeout

func (bs BasicScalingAttributes) IdleTimeout() terra.StringValue

func (BasicScalingAttributes) InternalRef

func (bs BasicScalingAttributes) InternalRef() (terra.Reference, error)

func (BasicScalingAttributes) InternalTokens

func (bs BasicScalingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BasicScalingAttributes) InternalWithRef

func (BasicScalingAttributes) MaxInstances

func (bs BasicScalingAttributes) MaxInstances() terra.NumberValue

type BasicScalingState

type BasicScalingState struct {
	IdleTimeout  string  `json:"idle_timeout"`
	MaxInstances float64 `json:"max_instances"`
}

type Deployment

type Deployment struct {
	// DeploymentFiles: min=0
	Files []DeploymentFiles `hcl:"files,block" validate:"min=0"`
	// DeploymentZip: optional
	Zip *DeploymentZip `hcl:"zip,block"`
}

type DeploymentAttributes

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

func (DeploymentAttributes) Files

func (DeploymentAttributes) InternalRef

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

func (DeploymentAttributes) InternalTokens

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

func (DeploymentAttributes) InternalWithRef

func (DeploymentAttributes) Zip

type DeploymentFiles

type DeploymentFiles struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Sha1Sum: string, optional
	Sha1Sum terra.StringValue `hcl:"sha1_sum,attr"`
	// SourceUrl: string, required
	SourceUrl terra.StringValue `hcl:"source_url,attr" validate:"required"`
}

type DeploymentFilesAttributes

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

func (DeploymentFilesAttributes) InternalRef

func (f DeploymentFilesAttributes) InternalRef() (terra.Reference, error)

func (DeploymentFilesAttributes) InternalTokens

func (f DeploymentFilesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DeploymentFilesAttributes) InternalWithRef

func (DeploymentFilesAttributes) Name

func (DeploymentFilesAttributes) Sha1Sum

func (DeploymentFilesAttributes) SourceUrl

type DeploymentFilesState

type DeploymentFilesState struct {
	Name      string `json:"name"`
	Sha1Sum   string `json:"sha1_sum"`
	SourceUrl string `json:"source_url"`
}

type DeploymentState

type DeploymentState struct {
	Files []DeploymentFilesState `json:"files"`
	Zip   []DeploymentZipState   `json:"zip"`
}

type DeploymentZip

type DeploymentZip struct {
	// FilesCount: number, optional
	FilesCount terra.NumberValue `hcl:"files_count,attr"`
	// SourceUrl: string, required
	SourceUrl terra.StringValue `hcl:"source_url,attr" validate:"required"`
}

type DeploymentZipAttributes

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

func (DeploymentZipAttributes) FilesCount

func (z DeploymentZipAttributes) FilesCount() terra.NumberValue

func (DeploymentZipAttributes) InternalRef

func (z DeploymentZipAttributes) InternalRef() (terra.Reference, error)

func (DeploymentZipAttributes) InternalTokens

func (z DeploymentZipAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DeploymentZipAttributes) InternalWithRef

func (DeploymentZipAttributes) SourceUrl

type DeploymentZipState

type DeploymentZipState struct {
	FilesCount float64 `json:"files_count"`
	SourceUrl  string  `json:"source_url"`
}

type Entrypoint

type Entrypoint struct {
	// Shell: string, required
	Shell terra.StringValue `hcl:"shell,attr" validate:"required"`
}

type EntrypointAttributes

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

func (EntrypointAttributes) InternalRef

func (e EntrypointAttributes) InternalRef() (terra.Reference, error)

func (EntrypointAttributes) InternalTokens

func (e EntrypointAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EntrypointAttributes) InternalWithRef

func (EntrypointAttributes) Shell

type EntrypointState

type EntrypointState struct {
	Shell string `json:"shell"`
}

type Handlers

type Handlers struct {
	// AuthFailAction: string, optional
	AuthFailAction terra.StringValue `hcl:"auth_fail_action,attr"`
	// Login: string, optional
	Login terra.StringValue `hcl:"login,attr"`
	// RedirectHttpResponseCode: string, optional
	RedirectHttpResponseCode terra.StringValue `hcl:"redirect_http_response_code,attr"`
	// SecurityLevel: string, optional
	SecurityLevel terra.StringValue `hcl:"security_level,attr"`
	// UrlRegex: string, optional
	UrlRegex terra.StringValue `hcl:"url_regex,attr"`
	// HandlersScript: optional
	Script *HandlersScript `hcl:"script,block"`
	// HandlersStaticFiles: optional
	StaticFiles *HandlersStaticFiles `hcl:"static_files,block"`
}

type HandlersAttributes

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

func (HandlersAttributes) AuthFailAction

func (h HandlersAttributes) AuthFailAction() terra.StringValue

func (HandlersAttributes) InternalRef

func (h HandlersAttributes) InternalRef() (terra.Reference, error)

func (HandlersAttributes) InternalTokens

func (h HandlersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HandlersAttributes) InternalWithRef

func (h HandlersAttributes) InternalWithRef(ref terra.Reference) HandlersAttributes

func (HandlersAttributes) Login

func (HandlersAttributes) RedirectHttpResponseCode

func (h HandlersAttributes) RedirectHttpResponseCode() terra.StringValue

func (HandlersAttributes) Script

func (HandlersAttributes) SecurityLevel

func (h HandlersAttributes) SecurityLevel() terra.StringValue

func (HandlersAttributes) StaticFiles

func (HandlersAttributes) UrlRegex

func (h HandlersAttributes) UrlRegex() terra.StringValue

type HandlersScript

type HandlersScript struct {
	// ScriptPath: string, required
	ScriptPath terra.StringValue `hcl:"script_path,attr" validate:"required"`
}

type HandlersScriptAttributes

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

func (HandlersScriptAttributes) InternalRef

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

func (HandlersScriptAttributes) InternalTokens

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

func (HandlersScriptAttributes) InternalWithRef

func (HandlersScriptAttributes) ScriptPath

type HandlersScriptState

type HandlersScriptState struct {
	ScriptPath string `json:"script_path"`
}

type HandlersState

type HandlersState struct {
	AuthFailAction           string                     `json:"auth_fail_action"`
	Login                    string                     `json:"login"`
	RedirectHttpResponseCode string                     `json:"redirect_http_response_code"`
	SecurityLevel            string                     `json:"security_level"`
	UrlRegex                 string                     `json:"url_regex"`
	Script                   []HandlersScriptState      `json:"script"`
	StaticFiles              []HandlersStaticFilesState `json:"static_files"`
}

type HandlersStaticFiles

type HandlersStaticFiles struct {
	// ApplicationReadable: bool, optional
	ApplicationReadable terra.BoolValue `hcl:"application_readable,attr"`
	// Expiration: string, optional
	Expiration terra.StringValue `hcl:"expiration,attr"`
	// HttpHeaders: map of string, optional
	HttpHeaders terra.MapValue[terra.StringValue] `hcl:"http_headers,attr"`
	// MimeType: string, optional
	MimeType terra.StringValue `hcl:"mime_type,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// RequireMatchingFile: bool, optional
	RequireMatchingFile terra.BoolValue `hcl:"require_matching_file,attr"`
	// UploadPathRegex: string, optional
	UploadPathRegex terra.StringValue `hcl:"upload_path_regex,attr"`
}

type HandlersStaticFilesAttributes

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

func (HandlersStaticFilesAttributes) ApplicationReadable

func (sf HandlersStaticFilesAttributes) ApplicationReadable() terra.BoolValue

func (HandlersStaticFilesAttributes) Expiration

func (HandlersStaticFilesAttributes) HttpHeaders

func (HandlersStaticFilesAttributes) InternalRef

func (sf HandlersStaticFilesAttributes) InternalRef() (terra.Reference, error)

func (HandlersStaticFilesAttributes) InternalTokens

func (sf HandlersStaticFilesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HandlersStaticFilesAttributes) InternalWithRef

func (HandlersStaticFilesAttributes) MimeType

func (HandlersStaticFilesAttributes) Path

func (HandlersStaticFilesAttributes) RequireMatchingFile

func (sf HandlersStaticFilesAttributes) RequireMatchingFile() terra.BoolValue

func (HandlersStaticFilesAttributes) UploadPathRegex

func (sf HandlersStaticFilesAttributes) UploadPathRegex() terra.StringValue

type HandlersStaticFilesState

type HandlersStaticFilesState struct {
	ApplicationReadable bool              `json:"application_readable"`
	Expiration          string            `json:"expiration"`
	HttpHeaders         map[string]string `json:"http_headers"`
	MimeType            string            `json:"mime_type"`
	Path                string            `json:"path"`
	RequireMatchingFile bool              `json:"require_matching_file"`
	UploadPathRegex     string            `json:"upload_path_regex"`
}

type Libraries

type Libraries struct {
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
}

type LibrariesAttributes

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

func (LibrariesAttributes) InternalRef

func (l LibrariesAttributes) InternalRef() (terra.Reference, error)

func (LibrariesAttributes) InternalTokens

func (l LibrariesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LibrariesAttributes) InternalWithRef

func (l LibrariesAttributes) InternalWithRef(ref terra.Reference) LibrariesAttributes

func (LibrariesAttributes) Name

func (LibrariesAttributes) Version

type LibrariesState

type LibrariesState struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type ManualScaling

type ManualScaling struct {
	// Instances: number, required
	Instances terra.NumberValue `hcl:"instances,attr" validate:"required"`
}

type ManualScalingAttributes

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

func (ManualScalingAttributes) Instances

func (ms ManualScalingAttributes) Instances() terra.NumberValue

func (ManualScalingAttributes) InternalRef

func (ms ManualScalingAttributes) InternalRef() (terra.Reference, error)

func (ManualScalingAttributes) InternalTokens

func (ms ManualScalingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ManualScalingAttributes) InternalWithRef

type ManualScalingState

type ManualScalingState struct {
	Instances float64 `json:"instances"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gaesav *Resource) Attributes() googleAppEngineStandardAppVersionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gaesav *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gaesav *Resource) State() (*googleAppEngineStandardAppVersionState, bool)

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

func (*Resource) StateMust

func (gaesav *Resource) StateMust() *googleAppEngineStandardAppVersionState

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

func (*Resource) Type

func (gaesav *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 VpcAccessConnector

type VpcAccessConnector struct {
	// EgressSetting: string, optional
	EgressSetting terra.StringValue `hcl:"egress_setting,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type VpcAccessConnectorAttributes

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

func (VpcAccessConnectorAttributes) EgressSetting

func (vac VpcAccessConnectorAttributes) EgressSetting() terra.StringValue

func (VpcAccessConnectorAttributes) InternalRef

func (vac VpcAccessConnectorAttributes) InternalRef() (terra.Reference, error)

func (VpcAccessConnectorAttributes) InternalTokens

func (vac VpcAccessConnectorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VpcAccessConnectorAttributes) InternalWithRef

func (VpcAccessConnectorAttributes) Name

type VpcAccessConnectorState

type VpcAccessConnectorState struct {
	EgressSetting string `json:"egress_setting"`
	Name          string `json:"name"`
}

Jump to

Keyboard shortcuts

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