azurerm_data_protection_backup_policy_postgresql

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 {
	// BackupRepeatingTimeIntervals: list of string, required
	BackupRepeatingTimeIntervals terra.ListValue[terra.StringValue] `hcl:"backup_repeating_time_intervals,attr" validate:"required"`
	// DefaultRetentionDuration: string, required
	DefaultRetentionDuration terra.StringValue `hcl:"default_retention_duration,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// TimeZone: string, optional
	TimeZone terra.StringValue `hcl:"time_zone,attr"`
	// VaultName: string, required
	VaultName terra.StringValue `hcl:"vault_name,attr" validate:"required"`
	// RetentionRule: min=0
	RetentionRule []RetentionRule `hcl:"retention_rule,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_data_protection_backup_policy_postgresql.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (adpbpp *Resource) Attributes() azurermDataProtectionBackupPolicyPostgresqlAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (adpbpp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (adpbpp *Resource) State() (*azurermDataProtectionBackupPolicyPostgresqlState, bool)

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

func (*Resource) StateMust

func (adpbpp *Resource) StateMust() *azurermDataProtectionBackupPolicyPostgresqlState

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

func (*Resource) Type

func (adpbpp *Resource) Type() string

Type returns the Terraform object type for Resource.

type RetentionRule

type RetentionRule struct {
	// Duration: string, required
	Duration terra.StringValue `hcl:"duration,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// RetentionRuleCriteria: required
	Criteria *RetentionRuleCriteria `hcl:"criteria,block" validate:"required"`
}

type RetentionRuleAttributes

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

func (RetentionRuleAttributes) Criteria

func (RetentionRuleAttributes) Duration

func (RetentionRuleAttributes) InternalRef

func (rr RetentionRuleAttributes) InternalRef() (terra.Reference, error)

func (RetentionRuleAttributes) InternalTokens

func (rr RetentionRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetentionRuleAttributes) InternalWithRef

func (RetentionRuleAttributes) Name

func (RetentionRuleAttributes) Priority

type RetentionRuleCriteria

type RetentionRuleCriteria struct {
	// AbsoluteCriteria: string, optional
	AbsoluteCriteria terra.StringValue `hcl:"absolute_criteria,attr"`
	// DaysOfWeek: set of string, optional
	DaysOfWeek terra.SetValue[terra.StringValue] `hcl:"days_of_week,attr"`
	// MonthsOfYear: set of string, optional
	MonthsOfYear terra.SetValue[terra.StringValue] `hcl:"months_of_year,attr"`
	// ScheduledBackupTimes: set of string, optional
	ScheduledBackupTimes terra.SetValue[terra.StringValue] `hcl:"scheduled_backup_times,attr"`
	// WeeksOfMonth: set of string, optional
	WeeksOfMonth terra.SetValue[terra.StringValue] `hcl:"weeks_of_month,attr"`
}

type RetentionRuleCriteriaAttributes

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

func (RetentionRuleCriteriaAttributes) AbsoluteCriteria

func (c RetentionRuleCriteriaAttributes) AbsoluteCriteria() terra.StringValue

func (RetentionRuleCriteriaAttributes) DaysOfWeek

func (RetentionRuleCriteriaAttributes) InternalRef

func (RetentionRuleCriteriaAttributes) InternalTokens

func (c RetentionRuleCriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetentionRuleCriteriaAttributes) InternalWithRef

func (RetentionRuleCriteriaAttributes) MonthsOfYear

func (RetentionRuleCriteriaAttributes) ScheduledBackupTimes

func (RetentionRuleCriteriaAttributes) WeeksOfMonth

type RetentionRuleCriteriaState

type RetentionRuleCriteriaState struct {
	AbsoluteCriteria     string   `json:"absolute_criteria"`
	DaysOfWeek           []string `json:"days_of_week"`
	MonthsOfYear         []string `json:"months_of_year"`
	ScheduledBackupTimes []string `json:"scheduled_backup_times"`
	WeeksOfMonth         []string `json:"weeks_of_month"`
}

type RetentionRuleState

type RetentionRuleState struct {
	Duration string                       `json:"duration"`
	Name     string                       `json:"name"`
	Priority float64                      `json:"priority"`
	Criteria []RetentionRuleCriteriaState `json:"criteria"`
}

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"`
}

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

type TimeoutsState

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

Jump to

Keyboard shortcuts

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