azurerm_backup_policy_vm_workload

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RecoveryVaultName: string, required
	RecoveryVaultName terra.StringValue `hcl:"recovery_vault_name,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// WorkloadType: string, required
	WorkloadType terra.StringValue `hcl:"workload_type,attr" validate:"required"`
	// ProtectionPolicy: min=1
	ProtectionPolicy []ProtectionPolicy `hcl:"protection_policy,block" validate:"min=1"`
	// Settings: required
	Settings *Settings `hcl:"settings,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_backup_policy_vm_workload.

type ProtectionPolicy

type ProtectionPolicy struct {
	// PolicyType: string, required
	PolicyType terra.StringValue `hcl:"policy_type,attr" validate:"required"`
	// ProtectionPolicyBackup: required
	Backup *ProtectionPolicyBackup `hcl:"backup,block" validate:"required"`
	// ProtectionPolicyRetentionDaily: optional
	RetentionDaily *ProtectionPolicyRetentionDaily `hcl:"retention_daily,block"`
	// ProtectionPolicyRetentionMonthly: optional
	RetentionMonthly *ProtectionPolicyRetentionMonthly `hcl:"retention_monthly,block"`
	// ProtectionPolicyRetentionWeekly: optional
	RetentionWeekly *ProtectionPolicyRetentionWeekly `hcl:"retention_weekly,block"`
	// ProtectionPolicyRetentionYearly: optional
	RetentionYearly *ProtectionPolicyRetentionYearly `hcl:"retention_yearly,block"`
	// ProtectionPolicySimpleRetention: optional
	SimpleRetention *ProtectionPolicySimpleRetention `hcl:"simple_retention,block"`
}

type ProtectionPolicyAttributes

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

func (ProtectionPolicyAttributes) Backup

func (ProtectionPolicyAttributes) InternalRef

func (pp ProtectionPolicyAttributes) InternalRef() (terra.Reference, error)

func (ProtectionPolicyAttributes) InternalTokens

func (pp ProtectionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ProtectionPolicyAttributes) InternalWithRef

func (ProtectionPolicyAttributes) PolicyType

func (ProtectionPolicyAttributes) RetentionDaily

func (ProtectionPolicyAttributes) RetentionMonthly

func (ProtectionPolicyAttributes) RetentionWeekly

func (ProtectionPolicyAttributes) RetentionYearly

func (ProtectionPolicyAttributes) SimpleRetention

type ProtectionPolicyBackup

type ProtectionPolicyBackup struct {
	// Frequency: string, optional
	Frequency terra.StringValue `hcl:"frequency,attr"`
	// FrequencyInMinutes: number, optional
	FrequencyInMinutes terra.NumberValue `hcl:"frequency_in_minutes,attr"`
	// Time: string, optional
	Time terra.StringValue `hcl:"time,attr"`
	// Weekdays: set of string, optional
	Weekdays terra.SetValue[terra.StringValue] `hcl:"weekdays,attr"`
}

type ProtectionPolicyBackupAttributes

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

func (ProtectionPolicyBackupAttributes) Frequency

func (ProtectionPolicyBackupAttributes) FrequencyInMinutes

func (b ProtectionPolicyBackupAttributes) FrequencyInMinutes() terra.NumberValue

func (ProtectionPolicyBackupAttributes) InternalRef

func (ProtectionPolicyBackupAttributes) InternalTokens

func (b ProtectionPolicyBackupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ProtectionPolicyBackupAttributes) InternalWithRef

func (ProtectionPolicyBackupAttributes) Time

func (ProtectionPolicyBackupAttributes) Weekdays

type ProtectionPolicyBackupState

type ProtectionPolicyBackupState struct {
	Frequency          string   `json:"frequency"`
	FrequencyInMinutes float64  `json:"frequency_in_minutes"`
	Time               string   `json:"time"`
	Weekdays           []string `json:"weekdays"`
}

type ProtectionPolicyRetentionDaily

type ProtectionPolicyRetentionDaily struct {
	// Count: number, required
	Count terra.NumberValue `hcl:"count,attr" validate:"required"`
}

type ProtectionPolicyRetentionDailyAttributes

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

func (ProtectionPolicyRetentionDailyAttributes) Count

func (ProtectionPolicyRetentionDailyAttributes) InternalRef

func (ProtectionPolicyRetentionDailyAttributes) InternalTokens

func (ProtectionPolicyRetentionDailyAttributes) InternalWithRef

type ProtectionPolicyRetentionDailyState

type ProtectionPolicyRetentionDailyState struct {
	Count float64 `json:"count"`
}

type ProtectionPolicyRetentionMonthly

type ProtectionPolicyRetentionMonthly struct {
	// Count: number, required
	Count terra.NumberValue `hcl:"count,attr" validate:"required"`
	// FormatType: string, required
	FormatType terra.StringValue `hcl:"format_type,attr" validate:"required"`
	// Monthdays: set of number, optional
	Monthdays terra.SetValue[terra.NumberValue] `hcl:"monthdays,attr"`
	// Weekdays: set of string, optional
	Weekdays terra.SetValue[terra.StringValue] `hcl:"weekdays,attr"`
	// Weeks: set of string, optional
	Weeks terra.SetValue[terra.StringValue] `hcl:"weeks,attr"`
}

type ProtectionPolicyRetentionMonthlyAttributes

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

func (ProtectionPolicyRetentionMonthlyAttributes) Count

func (ProtectionPolicyRetentionMonthlyAttributes) FormatType

func (ProtectionPolicyRetentionMonthlyAttributes) InternalRef

func (ProtectionPolicyRetentionMonthlyAttributes) InternalTokens

func (ProtectionPolicyRetentionMonthlyAttributes) InternalWithRef

func (ProtectionPolicyRetentionMonthlyAttributes) Monthdays

func (ProtectionPolicyRetentionMonthlyAttributes) Weekdays

func (ProtectionPolicyRetentionMonthlyAttributes) Weeks

type ProtectionPolicyRetentionMonthlyState

type ProtectionPolicyRetentionMonthlyState struct {
	Count      float64   `json:"count"`
	FormatType string    `json:"format_type"`
	Monthdays  []float64 `json:"monthdays"`
	Weekdays   []string  `json:"weekdays"`
	Weeks      []string  `json:"weeks"`
}

type ProtectionPolicyRetentionWeekly

type ProtectionPolicyRetentionWeekly struct {
	// Count: number, required
	Count terra.NumberValue `hcl:"count,attr" validate:"required"`
	// Weekdays: set of string, required
	Weekdays terra.SetValue[terra.StringValue] `hcl:"weekdays,attr" validate:"required"`
}

type ProtectionPolicyRetentionWeeklyAttributes

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

func (ProtectionPolicyRetentionWeeklyAttributes) Count

func (ProtectionPolicyRetentionWeeklyAttributes) InternalRef

func (ProtectionPolicyRetentionWeeklyAttributes) InternalTokens

func (ProtectionPolicyRetentionWeeklyAttributes) InternalWithRef

func (ProtectionPolicyRetentionWeeklyAttributes) Weekdays

type ProtectionPolicyRetentionWeeklyState

type ProtectionPolicyRetentionWeeklyState struct {
	Count    float64  `json:"count"`
	Weekdays []string `json:"weekdays"`
}

type ProtectionPolicyRetentionYearly

type ProtectionPolicyRetentionYearly struct {
	// Count: number, required
	Count terra.NumberValue `hcl:"count,attr" validate:"required"`
	// FormatType: string, required
	FormatType terra.StringValue `hcl:"format_type,attr" validate:"required"`
	// Monthdays: set of number, optional
	Monthdays terra.SetValue[terra.NumberValue] `hcl:"monthdays,attr"`
	// Months: set of string, required
	Months terra.SetValue[terra.StringValue] `hcl:"months,attr" validate:"required"`
	// Weekdays: set of string, optional
	Weekdays terra.SetValue[terra.StringValue] `hcl:"weekdays,attr"`
	// Weeks: set of string, optional
	Weeks terra.SetValue[terra.StringValue] `hcl:"weeks,attr"`
}

type ProtectionPolicyRetentionYearlyAttributes

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

func (ProtectionPolicyRetentionYearlyAttributes) Count

func (ProtectionPolicyRetentionYearlyAttributes) FormatType

func (ProtectionPolicyRetentionYearlyAttributes) InternalRef

func (ProtectionPolicyRetentionYearlyAttributes) InternalTokens

func (ProtectionPolicyRetentionYearlyAttributes) InternalWithRef

func (ProtectionPolicyRetentionYearlyAttributes) Monthdays

func (ProtectionPolicyRetentionYearlyAttributes) Months

func (ProtectionPolicyRetentionYearlyAttributes) Weekdays

func (ProtectionPolicyRetentionYearlyAttributes) Weeks

type ProtectionPolicyRetentionYearlyState

type ProtectionPolicyRetentionYearlyState struct {
	Count      float64   `json:"count"`
	FormatType string    `json:"format_type"`
	Monthdays  []float64 `json:"monthdays"`
	Months     []string  `json:"months"`
	Weekdays   []string  `json:"weekdays"`
	Weeks      []string  `json:"weeks"`
}

type ProtectionPolicySimpleRetention

type ProtectionPolicySimpleRetention struct {
	// Count: number, required
	Count terra.NumberValue `hcl:"count,attr" validate:"required"`
}

type ProtectionPolicySimpleRetentionAttributes

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

func (ProtectionPolicySimpleRetentionAttributes) Count

func (ProtectionPolicySimpleRetentionAttributes) InternalRef

func (ProtectionPolicySimpleRetentionAttributes) InternalTokens

func (ProtectionPolicySimpleRetentionAttributes) InternalWithRef

type ProtectionPolicySimpleRetentionState

type ProtectionPolicySimpleRetentionState struct {
	Count float64 `json:"count"`
}

type ProtectionPolicyState

type ProtectionPolicyState struct {
	PolicyType       string                                  `json:"policy_type"`
	Backup           []ProtectionPolicyBackupState           `json:"backup"`
	RetentionDaily   []ProtectionPolicyRetentionDailyState   `json:"retention_daily"`
	RetentionMonthly []ProtectionPolicyRetentionMonthlyState `json:"retention_monthly"`
	RetentionWeekly  []ProtectionPolicyRetentionWeeklyState  `json:"retention_weekly"`
	RetentionYearly  []ProtectionPolicyRetentionYearlyState  `json:"retention_yearly"`
	SimpleRetention  []ProtectionPolicySimpleRetentionState  `json:"simple_retention"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (abpvw *Resource) Attributes() azurermBackupPolicyVmWorkloadAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (abpvw *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (abpvw *Resource) State() (*azurermBackupPolicyVmWorkloadState, bool)

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

func (*Resource) StateMust

func (abpvw *Resource) StateMust() *azurermBackupPolicyVmWorkloadState

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

func (*Resource) Type

func (abpvw *Resource) Type() string

Type returns the Terraform object type for Resource.

type Settings

type Settings struct {
	// CompressionEnabled: bool, optional
	CompressionEnabled terra.BoolValue `hcl:"compression_enabled,attr"`
	// TimeZone: string, required
	TimeZone terra.StringValue `hcl:"time_zone,attr" validate:"required"`
}

type SettingsAttributes

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

func (SettingsAttributes) CompressionEnabled

func (s SettingsAttributes) CompressionEnabled() terra.BoolValue

func (SettingsAttributes) InternalRef

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

func (SettingsAttributes) InternalTokens

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

func (SettingsAttributes) InternalWithRef

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

func (SettingsAttributes) TimeZone

func (s SettingsAttributes) TimeZone() terra.StringValue

type SettingsState

type SettingsState struct {
	CompressionEnabled bool   `json:"compression_enabled"`
	TimeZone           string `json:"time_zone"`
}

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