Documentation ¶
Index ¶
- type Args
- type Resource
- func (adpbpp *Resource) Attributes() azurermDataProtectionBackupPolicyPostgresqlAttributes
- func (adpbpp *Resource) Configuration() interface{}
- func (adpbpp *Resource) DependOn() terra.Reference
- func (adpbpp *Resource) Dependencies() terra.Dependencies
- func (adpbpp *Resource) ImportState(state io.Reader) error
- func (adpbpp *Resource) LifecycleManagement() *terra.Lifecycle
- func (adpbpp *Resource) LocalName() string
- func (adpbpp *Resource) State() (*azurermDataProtectionBackupPolicyPostgresqlState, bool)
- func (adpbpp *Resource) StateMust() *azurermDataProtectionBackupPolicyPostgresqlState
- func (adpbpp *Resource) Type() string
- type RetentionRule
- type RetentionRuleAttributes
- func (rr RetentionRuleAttributes) Criteria() terra.ListValue[RetentionRuleCriteriaAttributes]
- func (rr RetentionRuleAttributes) Duration() terra.StringValue
- func (rr RetentionRuleAttributes) InternalRef() (terra.Reference, error)
- func (rr RetentionRuleAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (rr RetentionRuleAttributes) InternalWithRef(ref terra.Reference) RetentionRuleAttributes
- func (rr RetentionRuleAttributes) Name() terra.StringValue
- func (rr RetentionRuleAttributes) Priority() terra.NumberValue
- type RetentionRuleCriteria
- type RetentionRuleCriteriaAttributes
- func (c RetentionRuleCriteriaAttributes) AbsoluteCriteria() terra.StringValue
- func (c RetentionRuleCriteriaAttributes) DaysOfWeek() terra.SetValue[terra.StringValue]
- func (c RetentionRuleCriteriaAttributes) InternalRef() (terra.Reference, error)
- func (c RetentionRuleCriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c RetentionRuleCriteriaAttributes) InternalWithRef(ref terra.Reference) RetentionRuleCriteriaAttributes
- func (c RetentionRuleCriteriaAttributes) MonthsOfYear() terra.SetValue[terra.StringValue]
- func (c RetentionRuleCriteriaAttributes) ScheduledBackupTimes() terra.SetValue[terra.StringValue]
- func (c RetentionRuleCriteriaAttributes) WeeksOfMonth() terra.SetValue[terra.StringValue]
- type RetentionRuleCriteriaState
- type RetentionRuleState
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Read() terra.StringValue
- type TimeoutsState
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 (*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) Dependencies ¶
func (adpbpp *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block 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 (rr RetentionRuleAttributes) Criteria() terra.ListValue[RetentionRuleCriteriaAttributes]
func (RetentionRuleAttributes) Duration ¶
func (rr RetentionRuleAttributes) Duration() terra.StringValue
func (RetentionRuleAttributes) InternalRef ¶
func (rr RetentionRuleAttributes) InternalRef() (terra.Reference, error)
func (RetentionRuleAttributes) InternalTokens ¶
func (rr RetentionRuleAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RetentionRuleAttributes) InternalWithRef ¶
func (rr RetentionRuleAttributes) InternalWithRef(ref terra.Reference) RetentionRuleAttributes
func (RetentionRuleAttributes) Name ¶
func (rr RetentionRuleAttributes) Name() terra.StringValue
func (RetentionRuleAttributes) Priority ¶
func (rr RetentionRuleAttributes) Priority() terra.NumberValue
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 (c RetentionRuleCriteriaAttributes) DaysOfWeek() terra.SetValue[terra.StringValue]
func (RetentionRuleCriteriaAttributes) InternalRef ¶
func (c RetentionRuleCriteriaAttributes) InternalRef() (terra.Reference, error)
func (RetentionRuleCriteriaAttributes) InternalTokens ¶
func (c RetentionRuleCriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RetentionRuleCriteriaAttributes) InternalWithRef ¶
func (c RetentionRuleCriteriaAttributes) InternalWithRef(ref terra.Reference) RetentionRuleCriteriaAttributes
func (RetentionRuleCriteriaAttributes) MonthsOfYear ¶
func (c RetentionRuleCriteriaAttributes) MonthsOfYear() terra.SetValue[terra.StringValue]
func (RetentionRuleCriteriaAttributes) ScheduledBackupTimes ¶
func (c RetentionRuleCriteriaAttributes) ScheduledBackupTimes() terra.SetValue[terra.StringValue]
func (RetentionRuleCriteriaAttributes) WeeksOfMonth ¶
func (c RetentionRuleCriteriaAttributes) WeeksOfMonth() terra.SetValue[terra.StringValue]
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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 (t TimeoutsAttributes) Read() terra.StringValue
type TimeoutsState ¶
Click to show internal directories.
Click to hide internal directories.