aws_workspaces_workspace

package
v5.45.0 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 {
	// BundleId: string, required
	BundleId terra.StringValue `hcl:"bundle_id,attr" validate:"required"`
	// DirectoryId: string, required
	DirectoryId terra.StringValue `hcl:"directory_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// RootVolumeEncryptionEnabled: bool, optional
	RootVolumeEncryptionEnabled terra.BoolValue `hcl:"root_volume_encryption_enabled,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// UserName: string, required
	UserName terra.StringValue `hcl:"user_name,attr" validate:"required"`
	// UserVolumeEncryptionEnabled: bool, optional
	UserVolumeEncryptionEnabled terra.BoolValue `hcl:"user_volume_encryption_enabled,attr"`
	// VolumeEncryptionKey: string, optional
	VolumeEncryptionKey terra.StringValue `hcl:"volume_encryption_key,attr"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// WorkspaceProperties: optional
	WorkspaceProperties *WorkspaceProperties `hcl:"workspace_properties,block"`
}

Args contains the configurations for aws_workspaces_workspace.

type DataArgs

type DataArgs struct {
	// DirectoryId: string, optional
	DirectoryId terra.StringValue `hcl:"directory_id,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// UserName: string, optional
	UserName terra.StringValue `hcl:"user_name,attr"`
	// WorkspaceId: string, optional
	WorkspaceId terra.StringValue `hcl:"workspace_id,attr"`
}

DataArgs contains the configurations for aws_workspaces_workspace.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_workspaces_workspace.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aww *DataSource) Attributes() dataAwsWorkspacesWorkspaceAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aww *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aww *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataWorkspacePropertiesAttributes

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

func (DataWorkspacePropertiesAttributes) ComputeTypeName

func (DataWorkspacePropertiesAttributes) InternalRef

func (DataWorkspacePropertiesAttributes) InternalTokens

func (wp DataWorkspacePropertiesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataWorkspacePropertiesAttributes) InternalWithRef

func (DataWorkspacePropertiesAttributes) RootVolumeSizeGib

func (wp DataWorkspacePropertiesAttributes) RootVolumeSizeGib() terra.NumberValue

func (DataWorkspacePropertiesAttributes) RunningMode

func (DataWorkspacePropertiesAttributes) RunningModeAutoStopTimeoutInMinutes

func (wp DataWorkspacePropertiesAttributes) RunningModeAutoStopTimeoutInMinutes() terra.NumberValue

func (DataWorkspacePropertiesAttributes) UserVolumeSizeGib

func (wp DataWorkspacePropertiesAttributes) UserVolumeSizeGib() terra.NumberValue

type DataWorkspacePropertiesState

type DataWorkspacePropertiesState struct {
	ComputeTypeName                     string  `json:"compute_type_name"`
	RootVolumeSizeGib                   float64 `json:"root_volume_size_gib"`
	RunningMode                         string  `json:"running_mode"`
	RunningModeAutoStopTimeoutInMinutes float64 `json:"running_mode_auto_stop_timeout_in_minutes"`
	UserVolumeSizeGib                   float64 `json:"user_volume_size_gib"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aww *Resource) Attributes() awsWorkspacesWorkspaceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aww *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aww *Resource) State() (*awsWorkspacesWorkspaceState, bool)

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

func (*Resource) StateMust

func (aww *Resource) StateMust() *awsWorkspacesWorkspaceState

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

func (*Resource) Type

func (aww *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 WorkspaceProperties

type WorkspaceProperties struct {
	// ComputeTypeName: string, optional
	ComputeTypeName terra.StringValue `hcl:"compute_type_name,attr"`
	// RootVolumeSizeGib: number, optional
	RootVolumeSizeGib terra.NumberValue `hcl:"root_volume_size_gib,attr"`
	// RunningMode: string, optional
	RunningMode terra.StringValue `hcl:"running_mode,attr"`
	// RunningModeAutoStopTimeoutInMinutes: number, optional
	RunningModeAutoStopTimeoutInMinutes terra.NumberValue `hcl:"running_mode_auto_stop_timeout_in_minutes,attr"`
	// UserVolumeSizeGib: number, optional
	UserVolumeSizeGib terra.NumberValue `hcl:"user_volume_size_gib,attr"`
}

type WorkspacePropertiesAttributes

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

func (WorkspacePropertiesAttributes) ComputeTypeName

func (wp WorkspacePropertiesAttributes) ComputeTypeName() terra.StringValue

func (WorkspacePropertiesAttributes) InternalRef

func (wp WorkspacePropertiesAttributes) InternalRef() (terra.Reference, error)

func (WorkspacePropertiesAttributes) InternalTokens

func (wp WorkspacePropertiesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WorkspacePropertiesAttributes) InternalWithRef

func (WorkspacePropertiesAttributes) RootVolumeSizeGib

func (wp WorkspacePropertiesAttributes) RootVolumeSizeGib() terra.NumberValue

func (WorkspacePropertiesAttributes) RunningMode

func (WorkspacePropertiesAttributes) RunningModeAutoStopTimeoutInMinutes

func (wp WorkspacePropertiesAttributes) RunningModeAutoStopTimeoutInMinutes() terra.NumberValue

func (WorkspacePropertiesAttributes) UserVolumeSizeGib

func (wp WorkspacePropertiesAttributes) UserVolumeSizeGib() terra.NumberValue

type WorkspacePropertiesState

type WorkspacePropertiesState struct {
	ComputeTypeName                     string  `json:"compute_type_name"`
	RootVolumeSizeGib                   float64 `json:"root_volume_size_gib"`
	RunningMode                         string  `json:"running_mode"`
	RunningModeAutoStopTimeoutInMinutes float64 `json:"running_mode_auto_stop_timeout_in_minutes"`
	UserVolumeSizeGib                   float64 `json:"user_volume_size_gib"`
}

Jump to

Keyboard shortcuts

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