azurerm_backup_policy_file_share

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"`
	// Timezone: string, optional
	Timezone terra.StringValue `hcl:"timezone,attr"`
	// Backup: required
	Backup *Backup `hcl:"backup,block" validate:"required"`
	// RetentionDaily: required
	RetentionDaily *RetentionDaily `hcl:"retention_daily,block" validate:"required"`
	// RetentionMonthly: optional
	RetentionMonthly *RetentionMonthly `hcl:"retention_monthly,block"`
	// RetentionWeekly: optional
	RetentionWeekly *RetentionWeekly `hcl:"retention_weekly,block"`
	// RetentionYearly: optional
	RetentionYearly *RetentionYearly `hcl:"retention_yearly,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_backup_policy_file_share.

type Backup

type Backup struct {
	// Frequency: string, required
	Frequency terra.StringValue `hcl:"frequency,attr" validate:"required"`
	// Time: string, optional
	Time terra.StringValue `hcl:"time,attr"`
	// BackupHourly: optional
	Hourly *BackupHourly `hcl:"hourly,block"`
}

type BackupAttributes

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

func (BackupAttributes) Frequency

func (b BackupAttributes) Frequency() terra.StringValue

func (BackupAttributes) Hourly

func (BackupAttributes) InternalRef

func (b BackupAttributes) InternalRef() (terra.Reference, error)

func (BackupAttributes) InternalTokens

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

func (BackupAttributes) InternalWithRef

func (b BackupAttributes) InternalWithRef(ref terra.Reference) BackupAttributes

func (BackupAttributes) Time

type BackupHourly

type BackupHourly struct {
	// Interval: number, required
	Interval terra.NumberValue `hcl:"interval,attr" validate:"required"`
	// StartTime: string, required
	StartTime terra.StringValue `hcl:"start_time,attr" validate:"required"`
	// WindowDuration: number, required
	WindowDuration terra.NumberValue `hcl:"window_duration,attr" validate:"required"`
}

type BackupHourlyAttributes

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

func (BackupHourlyAttributes) InternalRef

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

func (BackupHourlyAttributes) InternalTokens

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

func (BackupHourlyAttributes) InternalWithRef

func (BackupHourlyAttributes) Interval

func (BackupHourlyAttributes) StartTime

func (BackupHourlyAttributes) WindowDuration

func (h BackupHourlyAttributes) WindowDuration() terra.NumberValue

type BackupHourlyState

type BackupHourlyState struct {
	Interval       float64 `json:"interval"`
	StartTime      string  `json:"start_time"`
	WindowDuration float64 `json:"window_duration"`
}

type BackupState

type BackupState struct {
	Frequency string              `json:"frequency"`
	Time      string              `json:"time"`
	Hourly    []BackupHourlyState `json:"hourly"`
}

type DataArgs

type DataArgs 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"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_backup_policy_file_share.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_backup_policy_file_share.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (abpfs *DataSource) Attributes() dataAzurermBackupPolicyFileShareAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (abpfs *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (abpfs *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTimeouts

type DataTimeouts struct {
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
}

type DataTimeoutsAttributes

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

func (DataTimeoutsAttributes) InternalRef

func (t DataTimeoutsAttributes) InternalRef() (terra.Reference, error)

func (DataTimeoutsAttributes) InternalTokens

func (t DataTimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataTimeoutsAttributes) InternalWithRef

func (DataTimeoutsAttributes) Read

type DataTimeoutsState

type DataTimeoutsState struct {
	Read string `json:"read"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (abpfs *Resource) Attributes() azurermBackupPolicyFileShareAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (abpfs *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (abpfs *Resource) State() (*azurermBackupPolicyFileShareState, bool)

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

func (*Resource) StateMust

func (abpfs *Resource) StateMust() *azurermBackupPolicyFileShareState

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

func (*Resource) Type

func (abpfs *Resource) Type() string

Type returns the Terraform object type for Resource.

type RetentionDaily

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

type RetentionDailyAttributes

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

func (RetentionDailyAttributes) Count

func (RetentionDailyAttributes) InternalRef

func (rd RetentionDailyAttributes) InternalRef() (terra.Reference, error)

func (RetentionDailyAttributes) InternalTokens

func (rd RetentionDailyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetentionDailyAttributes) InternalWithRef

type RetentionDailyState

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

type RetentionMonthly

type RetentionMonthly struct {
	// Count: number, required
	Count terra.NumberValue `hcl:"count,attr" validate:"required"`
	// Days: set of number, optional
	Days terra.SetValue[terra.NumberValue] `hcl:"days,attr"`
	// IncludeLastDays: bool, optional
	IncludeLastDays terra.BoolValue `hcl:"include_last_days,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 RetentionMonthlyAttributes

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

func (RetentionMonthlyAttributes) Count

func (RetentionMonthlyAttributes) Days

func (RetentionMonthlyAttributes) IncludeLastDays

func (rm RetentionMonthlyAttributes) IncludeLastDays() terra.BoolValue

func (RetentionMonthlyAttributes) InternalRef

func (rm RetentionMonthlyAttributes) InternalRef() (terra.Reference, error)

func (RetentionMonthlyAttributes) InternalTokens

func (rm RetentionMonthlyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetentionMonthlyAttributes) InternalWithRef

func (RetentionMonthlyAttributes) Weekdays

func (RetentionMonthlyAttributes) Weeks

type RetentionMonthlyState

type RetentionMonthlyState struct {
	Count           float64   `json:"count"`
	Days            []float64 `json:"days"`
	IncludeLastDays bool      `json:"include_last_days"`
	Weekdays        []string  `json:"weekdays"`
	Weeks           []string  `json:"weeks"`
}

type RetentionWeekly

type RetentionWeekly 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 RetentionWeeklyAttributes

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

func (RetentionWeeklyAttributes) Count

func (RetentionWeeklyAttributes) InternalRef

func (rw RetentionWeeklyAttributes) InternalRef() (terra.Reference, error)

func (RetentionWeeklyAttributes) InternalTokens

func (rw RetentionWeeklyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetentionWeeklyAttributes) InternalWithRef

func (RetentionWeeklyAttributes) Weekdays

type RetentionWeeklyState

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

type RetentionYearly

type RetentionYearly struct {
	// Count: number, required
	Count terra.NumberValue `hcl:"count,attr" validate:"required"`
	// Days: set of number, optional
	Days terra.SetValue[terra.NumberValue] `hcl:"days,attr"`
	// IncludeLastDays: bool, optional
	IncludeLastDays terra.BoolValue `hcl:"include_last_days,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 RetentionYearlyAttributes

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

func (RetentionYearlyAttributes) Count

func (RetentionYearlyAttributes) Days

func (RetentionYearlyAttributes) IncludeLastDays

func (ry RetentionYearlyAttributes) IncludeLastDays() terra.BoolValue

func (RetentionYearlyAttributes) InternalRef

func (ry RetentionYearlyAttributes) InternalRef() (terra.Reference, error)

func (RetentionYearlyAttributes) InternalTokens

func (ry RetentionYearlyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetentionYearlyAttributes) InternalWithRef

func (RetentionYearlyAttributes) Months

func (RetentionYearlyAttributes) Weekdays

func (RetentionYearlyAttributes) Weeks

type RetentionYearlyState

type RetentionYearlyState struct {
	Count           float64   `json:"count"`
	Days            []float64 `json:"days"`
	IncludeLastDays bool      `json:"include_last_days"`
	Months          []string  `json:"months"`
	Weekdays        []string  `json:"weekdays"`
	Weeks           []string  `json:"weeks"`
}

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