google_workstations_workstation_config

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 {
	// Annotations: map of string, optional
	Annotations terra.MapValue[terra.StringValue] `hcl:"annotations,attr"`
	// DisableTcpConnections: bool, optional
	DisableTcpConnections terra.BoolValue `hcl:"disable_tcp_connections,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// EnableAuditAgent: bool, optional
	EnableAuditAgent terra.BoolValue `hcl:"enable_audit_agent,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IdleTimeout: string, optional
	IdleTimeout terra.StringValue `hcl:"idle_timeout,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"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// ReplicaZones: list of string, optional
	ReplicaZones terra.ListValue[terra.StringValue] `hcl:"replica_zones,attr"`
	// RunningTimeout: string, optional
	RunningTimeout terra.StringValue `hcl:"running_timeout,attr"`
	// WorkstationClusterId: string, required
	WorkstationClusterId terra.StringValue `hcl:"workstation_cluster_id,attr" validate:"required"`
	// WorkstationConfigId: string, required
	WorkstationConfigId terra.StringValue `hcl:"workstation_config_id,attr" validate:"required"`
	// Container: optional
	Container *Container `hcl:"container,block"`
	// EncryptionKey: optional
	EncryptionKey *EncryptionKey `hcl:"encryption_key,block"`
	// EphemeralDirectories: min=0
	EphemeralDirectories []EphemeralDirectories `hcl:"ephemeral_directories,block" validate:"min=0"`
	// Host: optional
	Host *Host `hcl:"host,block"`
	// PersistentDirectories: min=0
	PersistentDirectories []PersistentDirectories `hcl:"persistent_directories,block" validate:"min=0"`
	// ReadinessChecks: min=0
	ReadinessChecks []ReadinessChecks `hcl:"readiness_checks,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_workstations_workstation_config.

type ConditionsAttributes

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

func (ConditionsAttributes) Code

func (ConditionsAttributes) Details

func (ConditionsAttributes) InternalRef

func (c ConditionsAttributes) InternalRef() (terra.Reference, error)

func (ConditionsAttributes) InternalTokens

func (c ConditionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionsAttributes) InternalWithRef

func (ConditionsAttributes) Message

type ConditionsState

type ConditionsState struct {
	Code    float64             `json:"code"`
	Details []map[string]string `json:"details"`
	Message string              `json:"message"`
}

type Container

type Container struct {
	// Args: list of string, optional
	Args terra.ListValue[terra.StringValue] `hcl:"args,attr"`
	// Command: list of string, optional
	Command terra.ListValue[terra.StringValue] `hcl:"command,attr"`
	// Env: map of string, optional
	Env terra.MapValue[terra.StringValue] `hcl:"env,attr"`
	// Image: string, optional
	Image terra.StringValue `hcl:"image,attr"`
	// RunAsUser: number, optional
	RunAsUser terra.NumberValue `hcl:"run_as_user,attr"`
	// WorkingDir: string, optional
	WorkingDir terra.StringValue `hcl:"working_dir,attr"`
}

type ContainerAttributes

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

func (ContainerAttributes) Args

func (ContainerAttributes) Command

func (ContainerAttributes) Env

func (ContainerAttributes) Image

func (ContainerAttributes) InternalRef

func (c ContainerAttributes) InternalRef() (terra.Reference, error)

func (ContainerAttributes) InternalTokens

func (c ContainerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ContainerAttributes) InternalWithRef

func (c ContainerAttributes) InternalWithRef(ref terra.Reference) ContainerAttributes

func (ContainerAttributes) RunAsUser

func (c ContainerAttributes) RunAsUser() terra.NumberValue

func (ContainerAttributes) WorkingDir

func (c ContainerAttributes) WorkingDir() terra.StringValue

type ContainerState

type ContainerState struct {
	Args       []string          `json:"args"`
	Command    []string          `json:"command"`
	Env        map[string]string `json:"env"`
	Image      string            `json:"image"`
	RunAsUser  float64           `json:"run_as_user"`
	WorkingDir string            `json:"working_dir"`
}

type EncryptionKey

type EncryptionKey struct {
	// KmsKey: string, required
	KmsKey terra.StringValue `hcl:"kms_key,attr" validate:"required"`
	// KmsKeyServiceAccount: string, required
	KmsKeyServiceAccount terra.StringValue `hcl:"kms_key_service_account,attr" validate:"required"`
}

type EncryptionKeyAttributes

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

func (EncryptionKeyAttributes) InternalRef

func (ek EncryptionKeyAttributes) InternalRef() (terra.Reference, error)

func (EncryptionKeyAttributes) InternalTokens

func (ek EncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EncryptionKeyAttributes) InternalWithRef

func (EncryptionKeyAttributes) KmsKey

func (EncryptionKeyAttributes) KmsKeyServiceAccount

func (ek EncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue

type EncryptionKeyState

type EncryptionKeyState struct {
	KmsKey               string `json:"kms_key"`
	KmsKeyServiceAccount string `json:"kms_key_service_account"`
}

type EphemeralDirectories

type EphemeralDirectories struct {
	// MountPath: string, optional
	MountPath terra.StringValue `hcl:"mount_path,attr"`
	// EphemeralDirectoriesGcePd: optional
	GcePd *EphemeralDirectoriesGcePd `hcl:"gce_pd,block"`
}

type EphemeralDirectoriesAttributes

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

func (EphemeralDirectoriesAttributes) GcePd

func (EphemeralDirectoriesAttributes) InternalRef

func (EphemeralDirectoriesAttributes) InternalTokens

func (ed EphemeralDirectoriesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EphemeralDirectoriesAttributes) InternalWithRef

func (EphemeralDirectoriesAttributes) MountPath

type EphemeralDirectoriesGcePd

type EphemeralDirectoriesGcePd struct {
	// DiskType: string, optional
	DiskType terra.StringValue `hcl:"disk_type,attr"`
	// ReadOnly: bool, optional
	ReadOnly terra.BoolValue `hcl:"read_only,attr"`
	// SourceImage: string, optional
	SourceImage terra.StringValue `hcl:"source_image,attr"`
	// SourceSnapshot: string, optional
	SourceSnapshot terra.StringValue `hcl:"source_snapshot,attr"`
}

type EphemeralDirectoriesGcePdAttributes

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

func (EphemeralDirectoriesGcePdAttributes) DiskType

func (EphemeralDirectoriesGcePdAttributes) InternalRef

func (EphemeralDirectoriesGcePdAttributes) InternalTokens

func (EphemeralDirectoriesGcePdAttributes) InternalWithRef

func (EphemeralDirectoriesGcePdAttributes) ReadOnly

func (EphemeralDirectoriesGcePdAttributes) SourceImage

func (EphemeralDirectoriesGcePdAttributes) SourceSnapshot

type EphemeralDirectoriesGcePdState

type EphemeralDirectoriesGcePdState struct {
	DiskType       string `json:"disk_type"`
	ReadOnly       bool   `json:"read_only"`
	SourceImage    string `json:"source_image"`
	SourceSnapshot string `json:"source_snapshot"`
}

type EphemeralDirectoriesState

type EphemeralDirectoriesState struct {
	MountPath string                           `json:"mount_path"`
	GcePd     []EphemeralDirectoriesGcePdState `json:"gce_pd"`
}

type Host

type Host struct {
	// HostGceInstance: optional
	GceInstance *HostGceInstance `hcl:"gce_instance,block"`
}

type HostAttributes

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

func (HostAttributes) GceInstance

func (HostAttributes) InternalRef

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

func (HostAttributes) InternalTokens

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

func (HostAttributes) InternalWithRef

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

type HostGceInstance

type HostGceInstance struct {
	// BootDiskSizeGb: number, optional
	BootDiskSizeGb terra.NumberValue `hcl:"boot_disk_size_gb,attr"`
	// DisablePublicIpAddresses: bool, optional
	DisablePublicIpAddresses terra.BoolValue `hcl:"disable_public_ip_addresses,attr"`
	// DisableSsh: bool, optional
	DisableSsh terra.BoolValue `hcl:"disable_ssh,attr"`
	// EnableNestedVirtualization: bool, optional
	EnableNestedVirtualization terra.BoolValue `hcl:"enable_nested_virtualization,attr"`
	// MachineType: string, optional
	MachineType terra.StringValue `hcl:"machine_type,attr"`
	// PoolSize: number, optional
	PoolSize terra.NumberValue `hcl:"pool_size,attr"`
	// ServiceAccount: string, optional
	ServiceAccount terra.StringValue `hcl:"service_account,attr"`
	// ServiceAccountScopes: list of string, optional
	ServiceAccountScopes terra.ListValue[terra.StringValue] `hcl:"service_account_scopes,attr"`
	// Tags: list of string, optional
	Tags terra.ListValue[terra.StringValue] `hcl:"tags,attr"`
	// HostGceInstanceAccelerators: min=0
	Accelerators []HostGceInstanceAccelerators `hcl:"accelerators,block" validate:"min=0"`
	// HostGceInstanceBoostConfigs: min=0
	BoostConfigs []HostGceInstanceBoostConfigs `hcl:"boost_configs,block" validate:"min=0"`
	// HostGceInstanceConfidentialInstanceConfig: optional
	ConfidentialInstanceConfig *HostGceInstanceConfidentialInstanceConfig `hcl:"confidential_instance_config,block"`
	// HostGceInstanceShieldedInstanceConfig: optional
	ShieldedInstanceConfig *HostGceInstanceShieldedInstanceConfig `hcl:"shielded_instance_config,block"`
}

type HostGceInstanceAccelerators

type HostGceInstanceAccelerators struct {
	// Count: number, required
	Count terra.NumberValue `hcl:"count,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type HostGceInstanceAcceleratorsAttributes

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

func (HostGceInstanceAcceleratorsAttributes) Count

func (HostGceInstanceAcceleratorsAttributes) InternalRef

func (HostGceInstanceAcceleratorsAttributes) InternalTokens

func (HostGceInstanceAcceleratorsAttributes) InternalWithRef

func (HostGceInstanceAcceleratorsAttributes) Type

type HostGceInstanceAcceleratorsState

type HostGceInstanceAcceleratorsState struct {
	Count float64 `json:"count"`
	Type  string  `json:"type"`
}

type HostGceInstanceAttributes

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

func (HostGceInstanceAttributes) Accelerators

func (HostGceInstanceAttributes) BoostConfigs

func (HostGceInstanceAttributes) BootDiskSizeGb

func (gi HostGceInstanceAttributes) BootDiskSizeGb() terra.NumberValue

func (HostGceInstanceAttributes) ConfidentialInstanceConfig

func (HostGceInstanceAttributes) DisablePublicIpAddresses

func (gi HostGceInstanceAttributes) DisablePublicIpAddresses() terra.BoolValue

func (HostGceInstanceAttributes) DisableSsh

func (gi HostGceInstanceAttributes) DisableSsh() terra.BoolValue

func (HostGceInstanceAttributes) EnableNestedVirtualization

func (gi HostGceInstanceAttributes) EnableNestedVirtualization() terra.BoolValue

func (HostGceInstanceAttributes) InternalRef

func (gi HostGceInstanceAttributes) InternalRef() (terra.Reference, error)

func (HostGceInstanceAttributes) InternalTokens

func (gi HostGceInstanceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HostGceInstanceAttributes) InternalWithRef

func (HostGceInstanceAttributes) MachineType

func (gi HostGceInstanceAttributes) MachineType() terra.StringValue

func (HostGceInstanceAttributes) PoolSize

func (HostGceInstanceAttributes) ServiceAccount

func (gi HostGceInstanceAttributes) ServiceAccount() terra.StringValue

func (HostGceInstanceAttributes) ServiceAccountScopes

func (gi HostGceInstanceAttributes) ServiceAccountScopes() terra.ListValue[terra.StringValue]

func (HostGceInstanceAttributes) ShieldedInstanceConfig

func (HostGceInstanceAttributes) Tags

type HostGceInstanceBoostConfigs

type HostGceInstanceBoostConfigs struct {
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// MachineType: string, optional
	MachineType terra.StringValue `hcl:"machine_type,attr"`
	// HostGceInstanceBoostConfigsAccelerators: min=0
	Accelerators []HostGceInstanceBoostConfigsAccelerators `hcl:"accelerators,block" validate:"min=0"`
}

type HostGceInstanceBoostConfigsAccelerators

type HostGceInstanceBoostConfigsAccelerators struct {
	// Count: number, required
	Count terra.NumberValue `hcl:"count,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type HostGceInstanceBoostConfigsAcceleratorsAttributes

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

func (HostGceInstanceBoostConfigsAcceleratorsAttributes) Count

func (HostGceInstanceBoostConfigsAcceleratorsAttributes) InternalRef

func (HostGceInstanceBoostConfigsAcceleratorsAttributes) InternalTokens

func (HostGceInstanceBoostConfigsAcceleratorsAttributes) InternalWithRef

func (HostGceInstanceBoostConfigsAcceleratorsAttributes) Type

type HostGceInstanceBoostConfigsAcceleratorsState

type HostGceInstanceBoostConfigsAcceleratorsState struct {
	Count float64 `json:"count"`
	Type  string  `json:"type"`
}

type HostGceInstanceBoostConfigsAttributes

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

func (HostGceInstanceBoostConfigsAttributes) Accelerators

func (HostGceInstanceBoostConfigsAttributes) Id

func (HostGceInstanceBoostConfigsAttributes) InternalRef

func (HostGceInstanceBoostConfigsAttributes) InternalTokens

func (HostGceInstanceBoostConfigsAttributes) InternalWithRef

func (HostGceInstanceBoostConfigsAttributes) MachineType

type HostGceInstanceBoostConfigsState

type HostGceInstanceBoostConfigsState struct {
	Id           string                                         `json:"id"`
	MachineType  string                                         `json:"machine_type"`
	Accelerators []HostGceInstanceBoostConfigsAcceleratorsState `json:"accelerators"`
}

type HostGceInstanceConfidentialInstanceConfig

type HostGceInstanceConfidentialInstanceConfig struct {
	// EnableConfidentialCompute: bool, optional
	EnableConfidentialCompute terra.BoolValue `hcl:"enable_confidential_compute,attr"`
}

type HostGceInstanceConfidentialInstanceConfigAttributes

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

func (HostGceInstanceConfidentialInstanceConfigAttributes) EnableConfidentialCompute

func (HostGceInstanceConfidentialInstanceConfigAttributes) InternalRef

func (HostGceInstanceConfidentialInstanceConfigAttributes) InternalTokens

func (HostGceInstanceConfidentialInstanceConfigAttributes) InternalWithRef

type HostGceInstanceConfidentialInstanceConfigState

type HostGceInstanceConfidentialInstanceConfigState struct {
	EnableConfidentialCompute bool `json:"enable_confidential_compute"`
}

type HostGceInstanceShieldedInstanceConfig

type HostGceInstanceShieldedInstanceConfig struct {
	// EnableIntegrityMonitoring: bool, optional
	EnableIntegrityMonitoring terra.BoolValue `hcl:"enable_integrity_monitoring,attr"`
	// EnableSecureBoot: bool, optional
	EnableSecureBoot terra.BoolValue `hcl:"enable_secure_boot,attr"`
	// EnableVtpm: bool, optional
	EnableVtpm terra.BoolValue `hcl:"enable_vtpm,attr"`
}

type HostGceInstanceShieldedInstanceConfigAttributes

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

func (HostGceInstanceShieldedInstanceConfigAttributes) EnableIntegrityMonitoring

func (sic HostGceInstanceShieldedInstanceConfigAttributes) EnableIntegrityMonitoring() terra.BoolValue

func (HostGceInstanceShieldedInstanceConfigAttributes) EnableSecureBoot

func (HostGceInstanceShieldedInstanceConfigAttributes) EnableVtpm

func (HostGceInstanceShieldedInstanceConfigAttributes) InternalRef

func (HostGceInstanceShieldedInstanceConfigAttributes) InternalTokens

func (HostGceInstanceShieldedInstanceConfigAttributes) InternalWithRef

type HostGceInstanceShieldedInstanceConfigState

type HostGceInstanceShieldedInstanceConfigState struct {
	EnableIntegrityMonitoring bool `json:"enable_integrity_monitoring"`
	EnableSecureBoot          bool `json:"enable_secure_boot"`
	EnableVtpm                bool `json:"enable_vtpm"`
}

type HostGceInstanceState

type HostGceInstanceState struct {
	BootDiskSizeGb             float64                                          `json:"boot_disk_size_gb"`
	DisablePublicIpAddresses   bool                                             `json:"disable_public_ip_addresses"`
	DisableSsh                 bool                                             `json:"disable_ssh"`
	EnableNestedVirtualization bool                                             `json:"enable_nested_virtualization"`
	MachineType                string                                           `json:"machine_type"`
	PoolSize                   float64                                          `json:"pool_size"`
	ServiceAccount             string                                           `json:"service_account"`
	ServiceAccountScopes       []string                                         `json:"service_account_scopes"`
	Tags                       []string                                         `json:"tags"`
	Accelerators               []HostGceInstanceAcceleratorsState               `json:"accelerators"`
	BoostConfigs               []HostGceInstanceBoostConfigsState               `json:"boost_configs"`
	ConfidentialInstanceConfig []HostGceInstanceConfidentialInstanceConfigState `json:"confidential_instance_config"`
	ShieldedInstanceConfig     []HostGceInstanceShieldedInstanceConfigState     `json:"shielded_instance_config"`
}

type HostState

type HostState struct {
	GceInstance []HostGceInstanceState `json:"gce_instance"`
}

type PersistentDirectories

type PersistentDirectories struct {
	// MountPath: string, optional
	MountPath terra.StringValue `hcl:"mount_path,attr"`
	// PersistentDirectoriesGcePd: optional
	GcePd *PersistentDirectoriesGcePd `hcl:"gce_pd,block"`
}

type PersistentDirectoriesAttributes

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

func (PersistentDirectoriesAttributes) GcePd

func (PersistentDirectoriesAttributes) InternalRef

func (PersistentDirectoriesAttributes) InternalTokens

func (pd PersistentDirectoriesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PersistentDirectoriesAttributes) InternalWithRef

func (PersistentDirectoriesAttributes) MountPath

type PersistentDirectoriesGcePd

type PersistentDirectoriesGcePd struct {
	// DiskType: string, optional
	DiskType terra.StringValue `hcl:"disk_type,attr"`
	// FsType: string, optional
	FsType terra.StringValue `hcl:"fs_type,attr"`
	// ReclaimPolicy: string, optional
	ReclaimPolicy terra.StringValue `hcl:"reclaim_policy,attr"`
	// SizeGb: number, optional
	SizeGb terra.NumberValue `hcl:"size_gb,attr"`
	// SourceSnapshot: string, optional
	SourceSnapshot terra.StringValue `hcl:"source_snapshot,attr"`
}

type PersistentDirectoriesGcePdAttributes

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

func (PersistentDirectoriesGcePdAttributes) DiskType

func (PersistentDirectoriesGcePdAttributes) FsType

func (PersistentDirectoriesGcePdAttributes) InternalRef

func (PersistentDirectoriesGcePdAttributes) InternalTokens

func (PersistentDirectoriesGcePdAttributes) InternalWithRef

func (PersistentDirectoriesGcePdAttributes) ReclaimPolicy

func (PersistentDirectoriesGcePdAttributes) SizeGb

func (PersistentDirectoriesGcePdAttributes) SourceSnapshot

type PersistentDirectoriesGcePdState

type PersistentDirectoriesGcePdState struct {
	DiskType       string  `json:"disk_type"`
	FsType         string  `json:"fs_type"`
	ReclaimPolicy  string  `json:"reclaim_policy"`
	SizeGb         float64 `json:"size_gb"`
	SourceSnapshot string  `json:"source_snapshot"`
}

type PersistentDirectoriesState

type PersistentDirectoriesState struct {
	MountPath string                            `json:"mount_path"`
	GcePd     []PersistentDirectoriesGcePdState `json:"gce_pd"`
}

type ReadinessChecks

type ReadinessChecks struct {
	// Path: string, required
	Path terra.StringValue `hcl:"path,attr" validate:"required"`
	// Port: number, required
	Port terra.NumberValue `hcl:"port,attr" validate:"required"`
}

type ReadinessChecksAttributes

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

func (ReadinessChecksAttributes) InternalRef

func (rc ReadinessChecksAttributes) InternalRef() (terra.Reference, error)

func (ReadinessChecksAttributes) InternalTokens

func (rc ReadinessChecksAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReadinessChecksAttributes) InternalWithRef

func (ReadinessChecksAttributes) Path

func (ReadinessChecksAttributes) Port

type ReadinessChecksState

type ReadinessChecksState struct {
	Path string  `json:"path"`
	Port float64 `json:"port"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gwwc *Resource) Attributes() googleWorkstationsWorkstationConfigAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gwwc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gwwc *Resource) State() (*googleWorkstationsWorkstationConfigState, bool)

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

func (*Resource) StateMust

func (gwwc *Resource) StateMust() *googleWorkstationsWorkstationConfigState

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

func (*Resource) Type

func (gwwc *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"`
}

Jump to

Keyboard shortcuts

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