google_compute_resource_policy

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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// DiskConsistencyGroupPolicy: optional
	DiskConsistencyGroupPolicy *DiskConsistencyGroupPolicy `hcl:"disk_consistency_group_policy,block"`
	// GroupPlacementPolicy: optional
	GroupPlacementPolicy *GroupPlacementPolicy `hcl:"group_placement_policy,block"`
	// InstanceSchedulePolicy: optional
	InstanceSchedulePolicy *InstanceSchedulePolicy `hcl:"instance_schedule_policy,block"`
	// SnapshotSchedulePolicy: optional
	SnapshotSchedulePolicy *SnapshotSchedulePolicy `hcl:"snapshot_schedule_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_resource_policy.

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"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
}

DataArgs contains the configurations for google_compute_resource_policy.

type DataDiskConsistencyGroupPolicyAttributes

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

func (DataDiskConsistencyGroupPolicyAttributes) Enabled

func (DataDiskConsistencyGroupPolicyAttributes) InternalRef

func (DataDiskConsistencyGroupPolicyAttributes) InternalTokens

func (DataDiskConsistencyGroupPolicyAttributes) InternalWithRef

type DataDiskConsistencyGroupPolicyState

type DataDiskConsistencyGroupPolicyState struct {
	Enabled bool `json:"enabled"`
}

type DataGroupPlacementPolicyAttributes

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

func (DataGroupPlacementPolicyAttributes) AvailabilityDomainCount

func (gpp DataGroupPlacementPolicyAttributes) AvailabilityDomainCount() terra.NumberValue

func (DataGroupPlacementPolicyAttributes) Collocation

func (DataGroupPlacementPolicyAttributes) InternalRef

func (DataGroupPlacementPolicyAttributes) InternalTokens

func (gpp DataGroupPlacementPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataGroupPlacementPolicyAttributes) InternalWithRef

func (DataGroupPlacementPolicyAttributes) MaxDistance

func (DataGroupPlacementPolicyAttributes) VmCount

type DataGroupPlacementPolicyState

type DataGroupPlacementPolicyState struct {
	AvailabilityDomainCount float64 `json:"availability_domain_count"`
	Collocation             string  `json:"collocation"`
	MaxDistance             float64 `json:"max_distance"`
	VmCount                 float64 `json:"vm_count"`
}

type DataInstanceSchedulePolicyAttributes

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

func (DataInstanceSchedulePolicyAttributes) ExpirationTime

func (DataInstanceSchedulePolicyAttributes) InternalRef

func (DataInstanceSchedulePolicyAttributes) InternalTokens

func (DataInstanceSchedulePolicyAttributes) InternalWithRef

func (DataInstanceSchedulePolicyAttributes) StartTime

func (DataInstanceSchedulePolicyAttributes) TimeZone

func (DataInstanceSchedulePolicyAttributes) VmStartSchedule

func (DataInstanceSchedulePolicyAttributes) VmStopSchedule

type DataInstanceSchedulePolicyState

type DataInstanceSchedulePolicyState struct {
	ExpirationTime  string                                           `json:"expiration_time"`
	StartTime       string                                           `json:"start_time"`
	TimeZone        string                                           `json:"time_zone"`
	VmStartSchedule []DataInstanceSchedulePolicyVmStartScheduleState `json:"vm_start_schedule"`
	VmStopSchedule  []DataInstanceSchedulePolicyVmStopScheduleState  `json:"vm_stop_schedule"`
}

type DataInstanceSchedulePolicyVmStartScheduleAttributes

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

func (DataInstanceSchedulePolicyVmStartScheduleAttributes) InternalRef

func (DataInstanceSchedulePolicyVmStartScheduleAttributes) InternalTokens

func (DataInstanceSchedulePolicyVmStartScheduleAttributes) InternalWithRef

func (DataInstanceSchedulePolicyVmStartScheduleAttributes) Schedule

type DataInstanceSchedulePolicyVmStartScheduleState

type DataInstanceSchedulePolicyVmStartScheduleState struct {
	Schedule string `json:"schedule"`
}

type DataInstanceSchedulePolicyVmStopScheduleAttributes

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

func (DataInstanceSchedulePolicyVmStopScheduleAttributes) InternalRef

func (DataInstanceSchedulePolicyVmStopScheduleAttributes) InternalTokens

func (DataInstanceSchedulePolicyVmStopScheduleAttributes) InternalWithRef

func (DataInstanceSchedulePolicyVmStopScheduleAttributes) Schedule

type DataInstanceSchedulePolicyVmStopScheduleState

type DataInstanceSchedulePolicyVmStopScheduleState struct {
	Schedule string `json:"schedule"`
}

type DataSnapshotSchedulePolicyAttributes

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

func (DataSnapshotSchedulePolicyAttributes) InternalRef

func (DataSnapshotSchedulePolicyAttributes) InternalTokens

func (DataSnapshotSchedulePolicyAttributes) InternalWithRef

func (DataSnapshotSchedulePolicyAttributes) RetentionPolicy

func (DataSnapshotSchedulePolicyAttributes) Schedule

func (DataSnapshotSchedulePolicyAttributes) SnapshotProperties

type DataSnapshotSchedulePolicyRetentionPolicyAttributes

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

func (DataSnapshotSchedulePolicyRetentionPolicyAttributes) InternalRef

func (DataSnapshotSchedulePolicyRetentionPolicyAttributes) InternalTokens

func (DataSnapshotSchedulePolicyRetentionPolicyAttributes) InternalWithRef

func (DataSnapshotSchedulePolicyRetentionPolicyAttributes) MaxRetentionDays

func (DataSnapshotSchedulePolicyRetentionPolicyAttributes) OnSourceDiskDelete

type DataSnapshotSchedulePolicyRetentionPolicyState

type DataSnapshotSchedulePolicyRetentionPolicyState struct {
	MaxRetentionDays   float64 `json:"max_retention_days"`
	OnSourceDiskDelete string  `json:"on_source_disk_delete"`
}

type DataSnapshotSchedulePolicyScheduleAttributes

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

func (DataSnapshotSchedulePolicyScheduleAttributes) InternalRef

func (DataSnapshotSchedulePolicyScheduleAttributes) InternalTokens

func (DataSnapshotSchedulePolicyScheduleAttributes) InternalWithRef

type DataSnapshotSchedulePolicyScheduleDailyScheduleAttributes

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

func (DataSnapshotSchedulePolicyScheduleDailyScheduleAttributes) DaysInCycle

func (DataSnapshotSchedulePolicyScheduleDailyScheduleAttributes) InternalRef

func (DataSnapshotSchedulePolicyScheduleDailyScheduleAttributes) InternalTokens

func (DataSnapshotSchedulePolicyScheduleDailyScheduleAttributes) InternalWithRef

func (DataSnapshotSchedulePolicyScheduleDailyScheduleAttributes) StartTime

type DataSnapshotSchedulePolicyScheduleDailyScheduleState

type DataSnapshotSchedulePolicyScheduleDailyScheduleState struct {
	DaysInCycle float64 `json:"days_in_cycle"`
	StartTime   string  `json:"start_time"`
}

type DataSnapshotSchedulePolicyScheduleHourlyScheduleAttributes

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

func (DataSnapshotSchedulePolicyScheduleHourlyScheduleAttributes) HoursInCycle

func (DataSnapshotSchedulePolicyScheduleHourlyScheduleAttributes) InternalRef

func (DataSnapshotSchedulePolicyScheduleHourlyScheduleAttributes) InternalTokens

func (DataSnapshotSchedulePolicyScheduleHourlyScheduleAttributes) InternalWithRef

func (DataSnapshotSchedulePolicyScheduleHourlyScheduleAttributes) StartTime

type DataSnapshotSchedulePolicyScheduleHourlyScheduleState

type DataSnapshotSchedulePolicyScheduleHourlyScheduleState struct {
	HoursInCycle float64 `json:"hours_in_cycle"`
	StartTime    string  `json:"start_time"`
}

type DataSnapshotSchedulePolicyScheduleState

type DataSnapshotSchedulePolicyScheduleState struct {
	DailySchedule  []DataSnapshotSchedulePolicyScheduleDailyScheduleState  `json:"daily_schedule"`
	HourlySchedule []DataSnapshotSchedulePolicyScheduleHourlyScheduleState `json:"hourly_schedule"`
	WeeklySchedule []DataSnapshotSchedulePolicyScheduleWeeklyScheduleState `json:"weekly_schedule"`
}

type DataSnapshotSchedulePolicyScheduleWeeklyScheduleAttributes

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

func (DataSnapshotSchedulePolicyScheduleWeeklyScheduleAttributes) InternalRef

func (DataSnapshotSchedulePolicyScheduleWeeklyScheduleAttributes) InternalTokens

func (DataSnapshotSchedulePolicyScheduleWeeklyScheduleAttributes) InternalWithRef

type DataSnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes

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

func (DataSnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) Day

func (DataSnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) InternalRef

func (DataSnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) InternalTokens

func (DataSnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) InternalWithRef

func (DataSnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) StartTime

type DataSnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksState

type DataSnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksState struct {
	Day       string `json:"day"`
	StartTime string `json:"start_time"`
}

type DataSnapshotSchedulePolicyScheduleWeeklyScheduleState

type DataSnapshotSchedulePolicyScheduleWeeklyScheduleState struct {
	DayOfWeeks []DataSnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksState `json:"day_of_weeks"`
}

type DataSnapshotSchedulePolicySnapshotPropertiesAttributes

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

func (DataSnapshotSchedulePolicySnapshotPropertiesAttributes) ChainName

func (DataSnapshotSchedulePolicySnapshotPropertiesAttributes) GuestFlush

func (DataSnapshotSchedulePolicySnapshotPropertiesAttributes) InternalRef

func (DataSnapshotSchedulePolicySnapshotPropertiesAttributes) InternalTokens

func (DataSnapshotSchedulePolicySnapshotPropertiesAttributes) InternalWithRef

func (DataSnapshotSchedulePolicySnapshotPropertiesAttributes) Labels

func (DataSnapshotSchedulePolicySnapshotPropertiesAttributes) StorageLocations

type DataSnapshotSchedulePolicySnapshotPropertiesState

type DataSnapshotSchedulePolicySnapshotPropertiesState struct {
	ChainName        string            `json:"chain_name"`
	GuestFlush       bool              `json:"guest_flush"`
	Labels           map[string]string `json:"labels"`
	StorageLocations []string          `json:"storage_locations"`
}

type DataSnapshotSchedulePolicyState

type DataSnapshotSchedulePolicyState struct {
	RetentionPolicy    []DataSnapshotSchedulePolicyRetentionPolicyState    `json:"retention_policy"`
	Schedule           []DataSnapshotSchedulePolicyScheduleState           `json:"schedule"`
	SnapshotProperties []DataSnapshotSchedulePolicySnapshotPropertiesState `json:"snapshot_properties"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_compute_resource_policy.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gcrp *DataSource) Attributes() dataGoogleComputeResourcePolicyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gcrp *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gcrp *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DiskConsistencyGroupPolicy

type DiskConsistencyGroupPolicy struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
}

type DiskConsistencyGroupPolicyAttributes

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

func (DiskConsistencyGroupPolicyAttributes) Enabled

func (DiskConsistencyGroupPolicyAttributes) InternalRef

func (DiskConsistencyGroupPolicyAttributes) InternalTokens

func (dcgp DiskConsistencyGroupPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DiskConsistencyGroupPolicyAttributes) InternalWithRef

type DiskConsistencyGroupPolicyState

type DiskConsistencyGroupPolicyState struct {
	Enabled bool `json:"enabled"`
}

type GroupPlacementPolicy

type GroupPlacementPolicy struct {
	// AvailabilityDomainCount: number, optional
	AvailabilityDomainCount terra.NumberValue `hcl:"availability_domain_count,attr"`
	// Collocation: string, optional
	Collocation terra.StringValue `hcl:"collocation,attr"`
	// MaxDistance: number, optional
	MaxDistance terra.NumberValue `hcl:"max_distance,attr"`
	// VmCount: number, optional
	VmCount terra.NumberValue `hcl:"vm_count,attr"`
}

type GroupPlacementPolicyAttributes

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

func (GroupPlacementPolicyAttributes) AvailabilityDomainCount

func (gpp GroupPlacementPolicyAttributes) AvailabilityDomainCount() terra.NumberValue

func (GroupPlacementPolicyAttributes) Collocation

func (GroupPlacementPolicyAttributes) InternalRef

func (gpp GroupPlacementPolicyAttributes) InternalRef() (terra.Reference, error)

func (GroupPlacementPolicyAttributes) InternalTokens

func (gpp GroupPlacementPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GroupPlacementPolicyAttributes) InternalWithRef

func (GroupPlacementPolicyAttributes) MaxDistance

func (GroupPlacementPolicyAttributes) VmCount

type GroupPlacementPolicyState

type GroupPlacementPolicyState struct {
	AvailabilityDomainCount float64 `json:"availability_domain_count"`
	Collocation             string  `json:"collocation"`
	MaxDistance             float64 `json:"max_distance"`
	VmCount                 float64 `json:"vm_count"`
}

type InstanceSchedulePolicy

type InstanceSchedulePolicy struct {
	// ExpirationTime: string, optional
	ExpirationTime terra.StringValue `hcl:"expiration_time,attr"`
	// StartTime: string, optional
	StartTime terra.StringValue `hcl:"start_time,attr"`
	// TimeZone: string, required
	TimeZone terra.StringValue `hcl:"time_zone,attr" validate:"required"`
	// InstanceSchedulePolicyVmStartSchedule: optional
	VmStartSchedule *InstanceSchedulePolicyVmStartSchedule `hcl:"vm_start_schedule,block"`
	// InstanceSchedulePolicyVmStopSchedule: optional
	VmStopSchedule *InstanceSchedulePolicyVmStopSchedule `hcl:"vm_stop_schedule,block"`
}

type InstanceSchedulePolicyAttributes

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

func (InstanceSchedulePolicyAttributes) ExpirationTime

func (isp InstanceSchedulePolicyAttributes) ExpirationTime() terra.StringValue

func (InstanceSchedulePolicyAttributes) InternalRef

func (InstanceSchedulePolicyAttributes) InternalTokens

func (isp InstanceSchedulePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InstanceSchedulePolicyAttributes) InternalWithRef

func (InstanceSchedulePolicyAttributes) StartTime

func (InstanceSchedulePolicyAttributes) TimeZone

func (InstanceSchedulePolicyAttributes) VmStartSchedule

func (InstanceSchedulePolicyAttributes) VmStopSchedule

type InstanceSchedulePolicyState

type InstanceSchedulePolicyState struct {
	ExpirationTime  string                                       `json:"expiration_time"`
	StartTime       string                                       `json:"start_time"`
	TimeZone        string                                       `json:"time_zone"`
	VmStartSchedule []InstanceSchedulePolicyVmStartScheduleState `json:"vm_start_schedule"`
	VmStopSchedule  []InstanceSchedulePolicyVmStopScheduleState  `json:"vm_stop_schedule"`
}

type InstanceSchedulePolicyVmStartSchedule

type InstanceSchedulePolicyVmStartSchedule struct {
	// Schedule: string, required
	Schedule terra.StringValue `hcl:"schedule,attr" validate:"required"`
}

type InstanceSchedulePolicyVmStartScheduleAttributes

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

func (InstanceSchedulePolicyVmStartScheduleAttributes) InternalRef

func (InstanceSchedulePolicyVmStartScheduleAttributes) InternalTokens

func (InstanceSchedulePolicyVmStartScheduleAttributes) InternalWithRef

func (InstanceSchedulePolicyVmStartScheduleAttributes) Schedule

type InstanceSchedulePolicyVmStartScheduleState

type InstanceSchedulePolicyVmStartScheduleState struct {
	Schedule string `json:"schedule"`
}

type InstanceSchedulePolicyVmStopSchedule

type InstanceSchedulePolicyVmStopSchedule struct {
	// Schedule: string, required
	Schedule terra.StringValue `hcl:"schedule,attr" validate:"required"`
}

type InstanceSchedulePolicyVmStopScheduleAttributes

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

func (InstanceSchedulePolicyVmStopScheduleAttributes) InternalRef

func (InstanceSchedulePolicyVmStopScheduleAttributes) InternalTokens

func (InstanceSchedulePolicyVmStopScheduleAttributes) InternalWithRef

func (InstanceSchedulePolicyVmStopScheduleAttributes) Schedule

type InstanceSchedulePolicyVmStopScheduleState

type InstanceSchedulePolicyVmStopScheduleState struct {
	Schedule string `json:"schedule"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcrp *Resource) Attributes() googleComputeResourcePolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcrp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcrp *Resource) State() (*googleComputeResourcePolicyState, bool)

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

func (*Resource) StateMust

func (gcrp *Resource) StateMust() *googleComputeResourcePolicyState

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

func (*Resource) Type

func (gcrp *Resource) Type() string

Type returns the Terraform object type for Resource.

type SnapshotSchedulePolicy

type SnapshotSchedulePolicy struct {
	// SnapshotSchedulePolicyRetentionPolicy: optional
	RetentionPolicy *SnapshotSchedulePolicyRetentionPolicy `hcl:"retention_policy,block"`
	// SnapshotSchedulePolicySchedule: required
	Schedule *SnapshotSchedulePolicySchedule `hcl:"schedule,block" validate:"required"`
	// SnapshotSchedulePolicySnapshotProperties: optional
	SnapshotProperties *SnapshotSchedulePolicySnapshotProperties `hcl:"snapshot_properties,block"`
}

type SnapshotSchedulePolicyAttributes

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

func (SnapshotSchedulePolicyAttributes) InternalRef

func (SnapshotSchedulePolicyAttributes) InternalTokens

func (ssp SnapshotSchedulePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SnapshotSchedulePolicyAttributes) InternalWithRef

func (SnapshotSchedulePolicyAttributes) RetentionPolicy

func (SnapshotSchedulePolicyAttributes) Schedule

func (SnapshotSchedulePolicyAttributes) SnapshotProperties

type SnapshotSchedulePolicyRetentionPolicy

type SnapshotSchedulePolicyRetentionPolicy struct {
	// MaxRetentionDays: number, required
	MaxRetentionDays terra.NumberValue `hcl:"max_retention_days,attr" validate:"required"`
	// OnSourceDiskDelete: string, optional
	OnSourceDiskDelete terra.StringValue `hcl:"on_source_disk_delete,attr"`
}

type SnapshotSchedulePolicyRetentionPolicyAttributes

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

func (SnapshotSchedulePolicyRetentionPolicyAttributes) InternalRef

func (SnapshotSchedulePolicyRetentionPolicyAttributes) InternalTokens

func (SnapshotSchedulePolicyRetentionPolicyAttributes) InternalWithRef

func (SnapshotSchedulePolicyRetentionPolicyAttributes) MaxRetentionDays

func (SnapshotSchedulePolicyRetentionPolicyAttributes) OnSourceDiskDelete

type SnapshotSchedulePolicyRetentionPolicyState

type SnapshotSchedulePolicyRetentionPolicyState struct {
	MaxRetentionDays   float64 `json:"max_retention_days"`
	OnSourceDiskDelete string  `json:"on_source_disk_delete"`
}

type SnapshotSchedulePolicySchedule

type SnapshotSchedulePolicySchedule struct {
	// SnapshotSchedulePolicyScheduleDailySchedule: optional
	DailySchedule *SnapshotSchedulePolicyScheduleDailySchedule `hcl:"daily_schedule,block"`
	// SnapshotSchedulePolicyScheduleHourlySchedule: optional
	HourlySchedule *SnapshotSchedulePolicyScheduleHourlySchedule `hcl:"hourly_schedule,block"`
	// SnapshotSchedulePolicyScheduleWeeklySchedule: optional
	WeeklySchedule *SnapshotSchedulePolicyScheduleWeeklySchedule `hcl:"weekly_schedule,block"`
}

type SnapshotSchedulePolicyScheduleAttributes

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

func (SnapshotSchedulePolicyScheduleAttributes) InternalRef

func (SnapshotSchedulePolicyScheduleAttributes) InternalTokens

func (SnapshotSchedulePolicyScheduleAttributes) InternalWithRef

type SnapshotSchedulePolicyScheduleDailySchedule

type SnapshotSchedulePolicyScheduleDailySchedule struct {
	// DaysInCycle: number, required
	DaysInCycle terra.NumberValue `hcl:"days_in_cycle,attr" validate:"required"`
	// StartTime: string, required
	StartTime terra.StringValue `hcl:"start_time,attr" validate:"required"`
}

type SnapshotSchedulePolicyScheduleDailyScheduleAttributes

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

func (SnapshotSchedulePolicyScheduleDailyScheduleAttributes) DaysInCycle

func (SnapshotSchedulePolicyScheduleDailyScheduleAttributes) InternalRef

func (SnapshotSchedulePolicyScheduleDailyScheduleAttributes) InternalTokens

func (SnapshotSchedulePolicyScheduleDailyScheduleAttributes) InternalWithRef

func (SnapshotSchedulePolicyScheduleDailyScheduleAttributes) StartTime

type SnapshotSchedulePolicyScheduleDailyScheduleState

type SnapshotSchedulePolicyScheduleDailyScheduleState struct {
	DaysInCycle float64 `json:"days_in_cycle"`
	StartTime   string  `json:"start_time"`
}

type SnapshotSchedulePolicyScheduleHourlySchedule

type SnapshotSchedulePolicyScheduleHourlySchedule struct {
	// HoursInCycle: number, required
	HoursInCycle terra.NumberValue `hcl:"hours_in_cycle,attr" validate:"required"`
	// StartTime: string, required
	StartTime terra.StringValue `hcl:"start_time,attr" validate:"required"`
}

type SnapshotSchedulePolicyScheduleHourlyScheduleAttributes

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

func (SnapshotSchedulePolicyScheduleHourlyScheduleAttributes) HoursInCycle

func (SnapshotSchedulePolicyScheduleHourlyScheduleAttributes) InternalRef

func (SnapshotSchedulePolicyScheduleHourlyScheduleAttributes) InternalTokens

func (SnapshotSchedulePolicyScheduleHourlyScheduleAttributes) InternalWithRef

func (SnapshotSchedulePolicyScheduleHourlyScheduleAttributes) StartTime

type SnapshotSchedulePolicyScheduleHourlyScheduleState

type SnapshotSchedulePolicyScheduleHourlyScheduleState struct {
	HoursInCycle float64 `json:"hours_in_cycle"`
	StartTime    string  `json:"start_time"`
}

type SnapshotSchedulePolicyScheduleState

type SnapshotSchedulePolicyScheduleState struct {
	DailySchedule  []SnapshotSchedulePolicyScheduleDailyScheduleState  `json:"daily_schedule"`
	HourlySchedule []SnapshotSchedulePolicyScheduleHourlyScheduleState `json:"hourly_schedule"`
	WeeklySchedule []SnapshotSchedulePolicyScheduleWeeklyScheduleState `json:"weekly_schedule"`
}

type SnapshotSchedulePolicyScheduleWeeklySchedule

type SnapshotSchedulePolicyScheduleWeeklySchedule struct {
	// SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks: min=1,max=7
	DayOfWeeks []SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks `hcl:"day_of_weeks,block" validate:"min=1,max=7"`
}

type SnapshotSchedulePolicyScheduleWeeklyScheduleAttributes

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

func (SnapshotSchedulePolicyScheduleWeeklyScheduleAttributes) InternalRef

func (SnapshotSchedulePolicyScheduleWeeklyScheduleAttributes) InternalTokens

func (SnapshotSchedulePolicyScheduleWeeklyScheduleAttributes) InternalWithRef

type SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks

type SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeks struct {
	// Day: string, required
	Day terra.StringValue `hcl:"day,attr" validate:"required"`
	// StartTime: string, required
	StartTime terra.StringValue `hcl:"start_time,attr" validate:"required"`
}

type SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes

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

func (SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) Day

func (SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) InternalRef

func (SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) InternalTokens

func (SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) InternalWithRef

func (SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksAttributes) StartTime

type SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksState

type SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksState struct {
	Day       string `json:"day"`
	StartTime string `json:"start_time"`
}

type SnapshotSchedulePolicyScheduleWeeklyScheduleState

type SnapshotSchedulePolicyScheduleWeeklyScheduleState struct {
	DayOfWeeks []SnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeeksState `json:"day_of_weeks"`
}

type SnapshotSchedulePolicySnapshotProperties

type SnapshotSchedulePolicySnapshotProperties struct {
	// ChainName: string, optional
	ChainName terra.StringValue `hcl:"chain_name,attr"`
	// GuestFlush: bool, optional
	GuestFlush terra.BoolValue `hcl:"guest_flush,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// StorageLocations: set of string, optional
	StorageLocations terra.SetValue[terra.StringValue] `hcl:"storage_locations,attr"`
}

type SnapshotSchedulePolicySnapshotPropertiesAttributes

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

func (SnapshotSchedulePolicySnapshotPropertiesAttributes) ChainName

func (SnapshotSchedulePolicySnapshotPropertiesAttributes) GuestFlush

func (SnapshotSchedulePolicySnapshotPropertiesAttributes) InternalRef

func (SnapshotSchedulePolicySnapshotPropertiesAttributes) InternalTokens

func (SnapshotSchedulePolicySnapshotPropertiesAttributes) InternalWithRef

func (SnapshotSchedulePolicySnapshotPropertiesAttributes) Labels

func (SnapshotSchedulePolicySnapshotPropertiesAttributes) StorageLocations

type SnapshotSchedulePolicySnapshotPropertiesState

type SnapshotSchedulePolicySnapshotPropertiesState struct {
	ChainName        string            `json:"chain_name"`
	GuestFlush       bool              `json:"guest_flush"`
	Labels           map[string]string `json:"labels"`
	StorageLocations []string          `json:"storage_locations"`
}

type SnapshotSchedulePolicyState

type SnapshotSchedulePolicyState struct {
	RetentionPolicy    []SnapshotSchedulePolicyRetentionPolicyState    `json:"retention_policy"`
	Schedule           []SnapshotSchedulePolicyScheduleState           `json:"schedule"`
	SnapshotProperties []SnapshotSchedulePolicySnapshotPropertiesState `json:"snapshot_properties"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,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

type TimeoutsState

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

Jump to

Keyboard shortcuts

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