azurerm_dev_test_global_vm_shutdown_schedule

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 {
	// DailyRecurrenceTime: string, required
	DailyRecurrenceTime terra.StringValue `hcl:"daily_recurrence_time,attr" validate:"required"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Timezone: string, required
	Timezone terra.StringValue `hcl:"timezone,attr" validate:"required"`
	// VirtualMachineId: string, required
	VirtualMachineId terra.StringValue `hcl:"virtual_machine_id,attr" validate:"required"`
	// NotificationSettings: required
	NotificationSettings *NotificationSettings `hcl:"notification_settings,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_dev_test_global_vm_shutdown_schedule.

type NotificationSettings

type NotificationSettings struct {
	// Email: string, optional
	Email terra.StringValue `hcl:"email,attr"`
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// TimeInMinutes: number, optional
	TimeInMinutes terra.NumberValue `hcl:"time_in_minutes,attr"`
	// WebhookUrl: string, optional
	WebhookUrl terra.StringValue `hcl:"webhook_url,attr"`
}

type NotificationSettingsAttributes

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

func (NotificationSettingsAttributes) Email

func (NotificationSettingsAttributes) Enabled

func (NotificationSettingsAttributes) InternalRef

func (NotificationSettingsAttributes) InternalTokens

func (ns NotificationSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NotificationSettingsAttributes) InternalWithRef

func (NotificationSettingsAttributes) TimeInMinutes

func (NotificationSettingsAttributes) WebhookUrl

type NotificationSettingsState

type NotificationSettingsState struct {
	Email         string  `json:"email"`
	Enabled       bool    `json:"enabled"`
	TimeInMinutes float64 `json:"time_in_minutes"`
	WebhookUrl    string  `json:"webhook_url"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (adtgvss *Resource) Attributes() azurermDevTestGlobalVmShutdownScheduleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (adtgvss *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (adtgvss *Resource) State() (*azurermDevTestGlobalVmShutdownScheduleState, bool)

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

func (*Resource) StateMust

func (adtgvss *Resource) StateMust() *azurermDevTestGlobalVmShutdownScheduleState

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

func (*Resource) Type

func (adtgvss *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"`
	// 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