azurerm_virtual_desktop_scaling_plan

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"`
	// ExclusionTag: string, optional
	ExclusionTag terra.StringValue `hcl:"exclusion_tag,attr"`
	// FriendlyName: string, optional
	FriendlyName terra.StringValue `hcl:"friendly_name,attr"`
	// 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"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TimeZone: string, required
	TimeZone terra.StringValue `hcl:"time_zone,attr" validate:"required"`
	// HostPool: min=0
	HostPool []HostPool `hcl:"host_pool,block" validate:"min=0"`
	// Schedule: min=1
	Schedule []Schedule `hcl:"schedule,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_virtual_desktop_scaling_plan.

type HostPool

type HostPool struct {
	// HostpoolId: string, required
	HostpoolId terra.StringValue `hcl:"hostpool_id,attr" validate:"required"`
	// ScalingPlanEnabled: bool, required
	ScalingPlanEnabled terra.BoolValue `hcl:"scaling_plan_enabled,attr" validate:"required"`
}

type HostPoolAttributes

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

func (HostPoolAttributes) HostpoolId

func (hp HostPoolAttributes) HostpoolId() terra.StringValue

func (HostPoolAttributes) InternalRef

func (hp HostPoolAttributes) InternalRef() (terra.Reference, error)

func (HostPoolAttributes) InternalTokens

func (hp HostPoolAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HostPoolAttributes) InternalWithRef

func (hp HostPoolAttributes) InternalWithRef(ref terra.Reference) HostPoolAttributes

func (HostPoolAttributes) ScalingPlanEnabled

func (hp HostPoolAttributes) ScalingPlanEnabled() terra.BoolValue

type HostPoolState

type HostPoolState struct {
	HostpoolId         string `json:"hostpool_id"`
	ScalingPlanEnabled bool   `json:"scaling_plan_enabled"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (avdsp *Resource) Attributes() azurermVirtualDesktopScalingPlanAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (avdsp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (avdsp *Resource) State() (*azurermVirtualDesktopScalingPlanState, bool)

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

func (*Resource) StateMust

func (avdsp *Resource) StateMust() *azurermVirtualDesktopScalingPlanState

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

func (*Resource) Type

func (avdsp *Resource) Type() string

Type returns the Terraform object type for Resource.

type Schedule

type Schedule struct {
	// DaysOfWeek: set of string, required
	DaysOfWeek terra.SetValue[terra.StringValue] `hcl:"days_of_week,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// OffPeakLoadBalancingAlgorithm: string, required
	OffPeakLoadBalancingAlgorithm terra.StringValue `hcl:"off_peak_load_balancing_algorithm,attr" validate:"required"`
	// OffPeakStartTime: string, required
	OffPeakStartTime terra.StringValue `hcl:"off_peak_start_time,attr" validate:"required"`
	// PeakLoadBalancingAlgorithm: string, required
	PeakLoadBalancingAlgorithm terra.StringValue `hcl:"peak_load_balancing_algorithm,attr" validate:"required"`
	// PeakStartTime: string, required
	PeakStartTime terra.StringValue `hcl:"peak_start_time,attr" validate:"required"`
	// RampDownCapacityThresholdPercent: number, required
	RampDownCapacityThresholdPercent terra.NumberValue `hcl:"ramp_down_capacity_threshold_percent,attr" validate:"required"`
	// RampDownForceLogoffUsers: bool, required
	RampDownForceLogoffUsers terra.BoolValue `hcl:"ramp_down_force_logoff_users,attr" validate:"required"`
	// RampDownLoadBalancingAlgorithm: string, required
	RampDownLoadBalancingAlgorithm terra.StringValue `hcl:"ramp_down_load_balancing_algorithm,attr" validate:"required"`
	// RampDownMinimumHostsPercent: number, required
	RampDownMinimumHostsPercent terra.NumberValue `hcl:"ramp_down_minimum_hosts_percent,attr" validate:"required"`
	// RampDownNotificationMessage: string, required
	RampDownNotificationMessage terra.StringValue `hcl:"ramp_down_notification_message,attr" validate:"required"`
	// RampDownStartTime: string, required
	RampDownStartTime terra.StringValue `hcl:"ramp_down_start_time,attr" validate:"required"`
	// RampDownStopHostsWhen: string, required
	RampDownStopHostsWhen terra.StringValue `hcl:"ramp_down_stop_hosts_when,attr" validate:"required"`
	// RampDownWaitTimeMinutes: number, required
	RampDownWaitTimeMinutes terra.NumberValue `hcl:"ramp_down_wait_time_minutes,attr" validate:"required"`
	// RampUpCapacityThresholdPercent: number, optional
	RampUpCapacityThresholdPercent terra.NumberValue `hcl:"ramp_up_capacity_threshold_percent,attr"`
	// RampUpLoadBalancingAlgorithm: string, required
	RampUpLoadBalancingAlgorithm terra.StringValue `hcl:"ramp_up_load_balancing_algorithm,attr" validate:"required"`
	// RampUpMinimumHostsPercent: number, optional
	RampUpMinimumHostsPercent terra.NumberValue `hcl:"ramp_up_minimum_hosts_percent,attr"`
	// RampUpStartTime: string, required
	RampUpStartTime terra.StringValue `hcl:"ramp_up_start_time,attr" validate:"required"`
}

type ScheduleAttributes

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

func (ScheduleAttributes) DaysOfWeek

func (ScheduleAttributes) InternalRef

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

func (ScheduleAttributes) InternalTokens

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

func (ScheduleAttributes) InternalWithRef

func (s ScheduleAttributes) InternalWithRef(ref terra.Reference) ScheduleAttributes

func (ScheduleAttributes) Name

func (ScheduleAttributes) OffPeakLoadBalancingAlgorithm

func (s ScheduleAttributes) OffPeakLoadBalancingAlgorithm() terra.StringValue

func (ScheduleAttributes) OffPeakStartTime

func (s ScheduleAttributes) OffPeakStartTime() terra.StringValue

func (ScheduleAttributes) PeakLoadBalancingAlgorithm

func (s ScheduleAttributes) PeakLoadBalancingAlgorithm() terra.StringValue

func (ScheduleAttributes) PeakStartTime

func (s ScheduleAttributes) PeakStartTime() terra.StringValue

func (ScheduleAttributes) RampDownCapacityThresholdPercent

func (s ScheduleAttributes) RampDownCapacityThresholdPercent() terra.NumberValue

func (ScheduleAttributes) RampDownForceLogoffUsers

func (s ScheduleAttributes) RampDownForceLogoffUsers() terra.BoolValue

func (ScheduleAttributes) RampDownLoadBalancingAlgorithm

func (s ScheduleAttributes) RampDownLoadBalancingAlgorithm() terra.StringValue

func (ScheduleAttributes) RampDownMinimumHostsPercent

func (s ScheduleAttributes) RampDownMinimumHostsPercent() terra.NumberValue

func (ScheduleAttributes) RampDownNotificationMessage

func (s ScheduleAttributes) RampDownNotificationMessage() terra.StringValue

func (ScheduleAttributes) RampDownStartTime

func (s ScheduleAttributes) RampDownStartTime() terra.StringValue

func (ScheduleAttributes) RampDownStopHostsWhen

func (s ScheduleAttributes) RampDownStopHostsWhen() terra.StringValue

func (ScheduleAttributes) RampDownWaitTimeMinutes

func (s ScheduleAttributes) RampDownWaitTimeMinutes() terra.NumberValue

func (ScheduleAttributes) RampUpCapacityThresholdPercent

func (s ScheduleAttributes) RampUpCapacityThresholdPercent() terra.NumberValue

func (ScheduleAttributes) RampUpLoadBalancingAlgorithm

func (s ScheduleAttributes) RampUpLoadBalancingAlgorithm() terra.StringValue

func (ScheduleAttributes) RampUpMinimumHostsPercent

func (s ScheduleAttributes) RampUpMinimumHostsPercent() terra.NumberValue

func (ScheduleAttributes) RampUpStartTime

func (s ScheduleAttributes) RampUpStartTime() terra.StringValue

type ScheduleState

type ScheduleState struct {
	DaysOfWeek                       []string `json:"days_of_week"`
	Name                             string   `json:"name"`
	OffPeakLoadBalancingAlgorithm    string   `json:"off_peak_load_balancing_algorithm"`
	OffPeakStartTime                 string   `json:"off_peak_start_time"`
	PeakLoadBalancingAlgorithm       string   `json:"peak_load_balancing_algorithm"`
	PeakStartTime                    string   `json:"peak_start_time"`
	RampDownCapacityThresholdPercent float64  `json:"ramp_down_capacity_threshold_percent"`
	RampDownForceLogoffUsers         bool     `json:"ramp_down_force_logoff_users"`
	RampDownLoadBalancingAlgorithm   string   `json:"ramp_down_load_balancing_algorithm"`
	RampDownMinimumHostsPercent      float64  `json:"ramp_down_minimum_hosts_percent"`
	RampDownNotificationMessage      string   `json:"ramp_down_notification_message"`
	RampDownStartTime                string   `json:"ramp_down_start_time"`
	RampDownStopHostsWhen            string   `json:"ramp_down_stop_hosts_when"`
	RampDownWaitTimeMinutes          float64  `json:"ramp_down_wait_time_minutes"`
	RampUpCapacityThresholdPercent   float64  `json:"ramp_up_capacity_threshold_percent"`
	RampUpLoadBalancingAlgorithm     string   `json:"ramp_up_load_balancing_algorithm"`
	RampUpMinimumHostsPercent        float64  `json:"ramp_up_minimum_hosts_percent"`
	RampUpStartTime                  string   `json:"ramp_up_start_time"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,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) Read

func (TimeoutsAttributes) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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