azurerm_storage_management_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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// StorageAccountId: string, required
	StorageAccountId terra.StringValue `hcl:"storage_account_id,attr" validate:"required"`
	// Rule: min=0
	Rule []Rule `hcl:"rule,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_storage_management_policy.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// StorageAccountId: string, required
	StorageAccountId terra.StringValue `hcl:"storage_account_id,attr" validate:"required"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_storage_management_policy.

type DataRuleActionsAttributes

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

func (DataRuleActionsAttributes) BaseBlob

func (DataRuleActionsAttributes) InternalRef

func (a DataRuleActionsAttributes) InternalRef() (terra.Reference, error)

func (DataRuleActionsAttributes) InternalTokens

func (a DataRuleActionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRuleActionsAttributes) InternalWithRef

func (DataRuleActionsAttributes) Snapshot

func (DataRuleActionsAttributes) Version

type DataRuleActionsBaseBlobAttributes

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

func (DataRuleActionsBaseBlobAttributes) AutoTierToHotFromCoolEnabled

func (bb DataRuleActionsBaseBlobAttributes) AutoTierToHotFromCoolEnabled() terra.BoolValue

func (DataRuleActionsBaseBlobAttributes) DeleteAfterDaysSinceCreationGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) DeleteAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) DeleteAfterDaysSinceLastAccessTimeGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) DeleteAfterDaysSinceLastAccessTimeGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) DeleteAfterDaysSinceModificationGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) DeleteAfterDaysSinceModificationGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) InternalRef

func (DataRuleActionsBaseBlobAttributes) InternalTokens

func (bb DataRuleActionsBaseBlobAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRuleActionsBaseBlobAttributes) InternalWithRef

func (DataRuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceCreationGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceModificationGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceModificationGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceCreationGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceLastAccessTimeGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceLastAccessTimeGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceModificationGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceModificationGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceCreationGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceLastAccessTimeGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceLastAccessTimeGreaterThan() terra.NumberValue

func (DataRuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceModificationGreaterThan

func (bb DataRuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceModificationGreaterThan() terra.NumberValue

type DataRuleActionsBaseBlobState

type DataRuleActionsBaseBlobState struct {
	AutoTierToHotFromCoolEnabled                         bool    `json:"auto_tier_to_hot_from_cool_enabled"`
	DeleteAfterDaysSinceCreationGreaterThan              float64 `json:"delete_after_days_since_creation_greater_than"`
	DeleteAfterDaysSinceLastAccessTimeGreaterThan        float64 `json:"delete_after_days_since_last_access_time_greater_than"`
	DeleteAfterDaysSinceModificationGreaterThan          float64 `json:"delete_after_days_since_modification_greater_than"`
	TierToArchiveAfterDaysSinceCreationGreaterThan       float64 `json:"tier_to_archive_after_days_since_creation_greater_than"`
	TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan float64 `json:"tier_to_archive_after_days_since_last_access_time_greater_than"`
	TierToArchiveAfterDaysSinceLastTierChangeGreaterThan float64 `json:"tier_to_archive_after_days_since_last_tier_change_greater_than"`
	TierToArchiveAfterDaysSinceModificationGreaterThan   float64 `json:"tier_to_archive_after_days_since_modification_greater_than"`
	TierToColdAfterDaysSinceCreationGreaterThan          float64 `json:"tier_to_cold_after_days_since_creation_greater_than"`
	TierToColdAfterDaysSinceLastAccessTimeGreaterThan    float64 `json:"tier_to_cold_after_days_since_last_access_time_greater_than"`
	TierToColdAfterDaysSinceModificationGreaterThan      float64 `json:"tier_to_cold_after_days_since_modification_greater_than"`
	TierToCoolAfterDaysSinceCreationGreaterThan          float64 `json:"tier_to_cool_after_days_since_creation_greater_than"`
	TierToCoolAfterDaysSinceLastAccessTimeGreaterThan    float64 `json:"tier_to_cool_after_days_since_last_access_time_greater_than"`
	TierToCoolAfterDaysSinceModificationGreaterThan      float64 `json:"tier_to_cool_after_days_since_modification_greater_than"`
}

type DataRuleActionsSnapshotAttributes

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

func (DataRuleActionsSnapshotAttributes) ChangeTierToArchiveAfterDaysSinceCreation

func (s DataRuleActionsSnapshotAttributes) ChangeTierToArchiveAfterDaysSinceCreation() terra.NumberValue

func (DataRuleActionsSnapshotAttributes) ChangeTierToCoolAfterDaysSinceCreation

func (s DataRuleActionsSnapshotAttributes) ChangeTierToCoolAfterDaysSinceCreation() terra.NumberValue

func (DataRuleActionsSnapshotAttributes) DeleteAfterDaysSinceCreationGreaterThan

func (s DataRuleActionsSnapshotAttributes) DeleteAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (DataRuleActionsSnapshotAttributes) InternalRef

func (DataRuleActionsSnapshotAttributes) InternalTokens

func (DataRuleActionsSnapshotAttributes) InternalWithRef

func (DataRuleActionsSnapshotAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan

func (s DataRuleActionsSnapshotAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan() terra.NumberValue

func (DataRuleActionsSnapshotAttributes) TierToColdAfterDaysSinceCreationGreaterThan

func (s DataRuleActionsSnapshotAttributes) TierToColdAfterDaysSinceCreationGreaterThan() terra.NumberValue

type DataRuleActionsSnapshotState

type DataRuleActionsSnapshotState struct {
	ChangeTierToArchiveAfterDaysSinceCreation            float64 `json:"change_tier_to_archive_after_days_since_creation"`
	ChangeTierToCoolAfterDaysSinceCreation               float64 `json:"change_tier_to_cool_after_days_since_creation"`
	DeleteAfterDaysSinceCreationGreaterThan              float64 `json:"delete_after_days_since_creation_greater_than"`
	TierToArchiveAfterDaysSinceLastTierChangeGreaterThan float64 `json:"tier_to_archive_after_days_since_last_tier_change_greater_than"`
	TierToColdAfterDaysSinceCreationGreaterThan          float64 `json:"tier_to_cold_after_days_since_creation_greater_than"`
}

type DataRuleActionsState

type DataRuleActionsState struct {
	BaseBlob []DataRuleActionsBaseBlobState `json:"base_blob"`
	Snapshot []DataRuleActionsSnapshotState `json:"snapshot"`
	Version  []DataRuleActionsVersionState  `json:"version"`
}

type DataRuleActionsVersionAttributes

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

func (DataRuleActionsVersionAttributes) ChangeTierToArchiveAfterDaysSinceCreation

func (v DataRuleActionsVersionAttributes) ChangeTierToArchiveAfterDaysSinceCreation() terra.NumberValue

func (DataRuleActionsVersionAttributes) ChangeTierToCoolAfterDaysSinceCreation

func (v DataRuleActionsVersionAttributes) ChangeTierToCoolAfterDaysSinceCreation() terra.NumberValue

func (DataRuleActionsVersionAttributes) DeleteAfterDaysSinceCreation

func (v DataRuleActionsVersionAttributes) DeleteAfterDaysSinceCreation() terra.NumberValue

func (DataRuleActionsVersionAttributes) InternalRef

func (DataRuleActionsVersionAttributes) InternalTokens

func (v DataRuleActionsVersionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRuleActionsVersionAttributes) InternalWithRef

func (DataRuleActionsVersionAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan

func (v DataRuleActionsVersionAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan() terra.NumberValue

func (DataRuleActionsVersionAttributes) TierToColdAfterDaysSinceCreationGreaterThan

func (v DataRuleActionsVersionAttributes) TierToColdAfterDaysSinceCreationGreaterThan() terra.NumberValue

type DataRuleActionsVersionState

type DataRuleActionsVersionState struct {
	ChangeTierToArchiveAfterDaysSinceCreation            float64 `json:"change_tier_to_archive_after_days_since_creation"`
	ChangeTierToCoolAfterDaysSinceCreation               float64 `json:"change_tier_to_cool_after_days_since_creation"`
	DeleteAfterDaysSinceCreation                         float64 `json:"delete_after_days_since_creation"`
	TierToArchiveAfterDaysSinceLastTierChangeGreaterThan float64 `json:"tier_to_archive_after_days_since_last_tier_change_greater_than"`
	TierToColdAfterDaysSinceCreationGreaterThan          float64 `json:"tier_to_cold_after_days_since_creation_greater_than"`
}

type DataRuleAttributes

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

func (DataRuleAttributes) Actions

func (DataRuleAttributes) Enabled

func (r DataRuleAttributes) Enabled() terra.BoolValue

func (DataRuleAttributes) Filters

func (DataRuleAttributes) InternalRef

func (r DataRuleAttributes) InternalRef() (terra.Reference, error)

func (DataRuleAttributes) InternalTokens

func (r DataRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRuleAttributes) InternalWithRef

func (r DataRuleAttributes) InternalWithRef(ref terra.Reference) DataRuleAttributes

func (DataRuleAttributes) Name

type DataRuleFiltersAttributes

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

func (DataRuleFiltersAttributes) BlobTypes

func (DataRuleFiltersAttributes) InternalRef

func (f DataRuleFiltersAttributes) InternalRef() (terra.Reference, error)

func (DataRuleFiltersAttributes) InternalTokens

func (f DataRuleFiltersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRuleFiltersAttributes) InternalWithRef

func (DataRuleFiltersAttributes) MatchBlobIndexTag

func (DataRuleFiltersAttributes) PrefixMatch

type DataRuleFiltersMatchBlobIndexTagAttributes

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

func (DataRuleFiltersMatchBlobIndexTagAttributes) InternalRef

func (DataRuleFiltersMatchBlobIndexTagAttributes) InternalTokens

func (DataRuleFiltersMatchBlobIndexTagAttributes) InternalWithRef

func (DataRuleFiltersMatchBlobIndexTagAttributes) Name

func (DataRuleFiltersMatchBlobIndexTagAttributes) Operation

func (DataRuleFiltersMatchBlobIndexTagAttributes) Value

type DataRuleFiltersMatchBlobIndexTagState

type DataRuleFiltersMatchBlobIndexTagState struct {
	Name      string `json:"name"`
	Operation string `json:"operation"`
	Value     string `json:"value"`
}

type DataRuleFiltersState

type DataRuleFiltersState struct {
	BlobTypes         []string                                `json:"blob_types"`
	PrefixMatch       []string                                `json:"prefix_match"`
	MatchBlobIndexTag []DataRuleFiltersMatchBlobIndexTagState `json:"match_blob_index_tag"`
}

type DataRuleState

type DataRuleState struct {
	Enabled bool                   `json:"enabled"`
	Name    string                 `json:"name"`
	Actions []DataRuleActionsState `json:"actions"`
	Filters []DataRuleFiltersState `json:"filters"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_storage_management_policy.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (asmp *DataSource) Attributes() dataAzurermStorageManagementPolicyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (asmp *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (asmp *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_storage_management_policy.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asmp *Resource) Attributes() azurermStorageManagementPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asmp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asmp *Resource) State() (*azurermStorageManagementPolicyState, bool)

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

func (*Resource) StateMust

func (asmp *Resource) StateMust() *azurermStorageManagementPolicyState

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

func (*Resource) Type

func (asmp *Resource) Type() string

Type returns the Terraform object type for Resource.

type Rule

type Rule struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RuleActions: required
	Actions *RuleActions `hcl:"actions,block" validate:"required"`
	// RuleFilters: required
	Filters *RuleFilters `hcl:"filters,block" validate:"required"`
}

type RuleActions

type RuleActions struct {
	// RuleActionsBaseBlob: optional
	BaseBlob *RuleActionsBaseBlob `hcl:"base_blob,block"`
	// RuleActionsSnapshot: optional
	Snapshot *RuleActionsSnapshot `hcl:"snapshot,block"`
	// RuleActionsVersion: optional
	Version *RuleActionsVersion `hcl:"version,block"`
}

type RuleActionsAttributes

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

func (RuleActionsAttributes) BaseBlob

func (RuleActionsAttributes) InternalRef

func (a RuleActionsAttributes) InternalRef() (terra.Reference, error)

func (RuleActionsAttributes) InternalTokens

func (a RuleActionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleActionsAttributes) InternalWithRef

func (RuleActionsAttributes) Snapshot

func (RuleActionsAttributes) Version

type RuleActionsBaseBlob

type RuleActionsBaseBlob struct {
	// AutoTierToHotFromCoolEnabled: bool, optional
	AutoTierToHotFromCoolEnabled terra.BoolValue `hcl:"auto_tier_to_hot_from_cool_enabled,attr"`
	// DeleteAfterDaysSinceCreationGreaterThan: number, optional
	DeleteAfterDaysSinceCreationGreaterThan terra.NumberValue `hcl:"delete_after_days_since_creation_greater_than,attr"`
	// DeleteAfterDaysSinceLastAccessTimeGreaterThan: number, optional
	DeleteAfterDaysSinceLastAccessTimeGreaterThan terra.NumberValue `hcl:"delete_after_days_since_last_access_time_greater_than,attr"`
	// DeleteAfterDaysSinceModificationGreaterThan: number, optional
	DeleteAfterDaysSinceModificationGreaterThan terra.NumberValue `hcl:"delete_after_days_since_modification_greater_than,attr"`
	// TierToArchiveAfterDaysSinceCreationGreaterThan: number, optional
	TierToArchiveAfterDaysSinceCreationGreaterThan terra.NumberValue `hcl:"tier_to_archive_after_days_since_creation_greater_than,attr"`
	// TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan: number, optional
	TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan terra.NumberValue `hcl:"tier_to_archive_after_days_since_last_access_time_greater_than,attr"`
	// TierToArchiveAfterDaysSinceLastTierChangeGreaterThan: number, optional
	TierToArchiveAfterDaysSinceLastTierChangeGreaterThan terra.NumberValue `hcl:"tier_to_archive_after_days_since_last_tier_change_greater_than,attr"`
	// TierToArchiveAfterDaysSinceModificationGreaterThan: number, optional
	TierToArchiveAfterDaysSinceModificationGreaterThan terra.NumberValue `hcl:"tier_to_archive_after_days_since_modification_greater_than,attr"`
	// TierToColdAfterDaysSinceCreationGreaterThan: number, optional
	TierToColdAfterDaysSinceCreationGreaterThan terra.NumberValue `hcl:"tier_to_cold_after_days_since_creation_greater_than,attr"`
	// TierToColdAfterDaysSinceLastAccessTimeGreaterThan: number, optional
	TierToColdAfterDaysSinceLastAccessTimeGreaterThan terra.NumberValue `hcl:"tier_to_cold_after_days_since_last_access_time_greater_than,attr"`
	// TierToColdAfterDaysSinceModificationGreaterThan: number, optional
	TierToColdAfterDaysSinceModificationGreaterThan terra.NumberValue `hcl:"tier_to_cold_after_days_since_modification_greater_than,attr"`
	// TierToCoolAfterDaysSinceCreationGreaterThan: number, optional
	TierToCoolAfterDaysSinceCreationGreaterThan terra.NumberValue `hcl:"tier_to_cool_after_days_since_creation_greater_than,attr"`
	// TierToCoolAfterDaysSinceLastAccessTimeGreaterThan: number, optional
	TierToCoolAfterDaysSinceLastAccessTimeGreaterThan terra.NumberValue `hcl:"tier_to_cool_after_days_since_last_access_time_greater_than,attr"`
	// TierToCoolAfterDaysSinceModificationGreaterThan: number, optional
	TierToCoolAfterDaysSinceModificationGreaterThan terra.NumberValue `hcl:"tier_to_cool_after_days_since_modification_greater_than,attr"`
}

type RuleActionsBaseBlobAttributes

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

func (RuleActionsBaseBlobAttributes) AutoTierToHotFromCoolEnabled

func (bb RuleActionsBaseBlobAttributes) AutoTierToHotFromCoolEnabled() terra.BoolValue

func (RuleActionsBaseBlobAttributes) DeleteAfterDaysSinceCreationGreaterThan

func (bb RuleActionsBaseBlobAttributes) DeleteAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) DeleteAfterDaysSinceLastAccessTimeGreaterThan

func (bb RuleActionsBaseBlobAttributes) DeleteAfterDaysSinceLastAccessTimeGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) DeleteAfterDaysSinceModificationGreaterThan

func (bb RuleActionsBaseBlobAttributes) DeleteAfterDaysSinceModificationGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) InternalRef

func (bb RuleActionsBaseBlobAttributes) InternalRef() (terra.Reference, error)

func (RuleActionsBaseBlobAttributes) InternalTokens

func (bb RuleActionsBaseBlobAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleActionsBaseBlobAttributes) InternalWithRef

func (RuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceCreationGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceModificationGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToArchiveAfterDaysSinceModificationGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceCreationGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceLastAccessTimeGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceLastAccessTimeGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceModificationGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToColdAfterDaysSinceModificationGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceCreationGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceLastAccessTimeGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceLastAccessTimeGreaterThan() terra.NumberValue

func (RuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceModificationGreaterThan

func (bb RuleActionsBaseBlobAttributes) TierToCoolAfterDaysSinceModificationGreaterThan() terra.NumberValue

type RuleActionsBaseBlobState

type RuleActionsBaseBlobState struct {
	AutoTierToHotFromCoolEnabled                         bool    `json:"auto_tier_to_hot_from_cool_enabled"`
	DeleteAfterDaysSinceCreationGreaterThan              float64 `json:"delete_after_days_since_creation_greater_than"`
	DeleteAfterDaysSinceLastAccessTimeGreaterThan        float64 `json:"delete_after_days_since_last_access_time_greater_than"`
	DeleteAfterDaysSinceModificationGreaterThan          float64 `json:"delete_after_days_since_modification_greater_than"`
	TierToArchiveAfterDaysSinceCreationGreaterThan       float64 `json:"tier_to_archive_after_days_since_creation_greater_than"`
	TierToArchiveAfterDaysSinceLastAccessTimeGreaterThan float64 `json:"tier_to_archive_after_days_since_last_access_time_greater_than"`
	TierToArchiveAfterDaysSinceLastTierChangeGreaterThan float64 `json:"tier_to_archive_after_days_since_last_tier_change_greater_than"`
	TierToArchiveAfterDaysSinceModificationGreaterThan   float64 `json:"tier_to_archive_after_days_since_modification_greater_than"`
	TierToColdAfterDaysSinceCreationGreaterThan          float64 `json:"tier_to_cold_after_days_since_creation_greater_than"`
	TierToColdAfterDaysSinceLastAccessTimeGreaterThan    float64 `json:"tier_to_cold_after_days_since_last_access_time_greater_than"`
	TierToColdAfterDaysSinceModificationGreaterThan      float64 `json:"tier_to_cold_after_days_since_modification_greater_than"`
	TierToCoolAfterDaysSinceCreationGreaterThan          float64 `json:"tier_to_cool_after_days_since_creation_greater_than"`
	TierToCoolAfterDaysSinceLastAccessTimeGreaterThan    float64 `json:"tier_to_cool_after_days_since_last_access_time_greater_than"`
	TierToCoolAfterDaysSinceModificationGreaterThan      float64 `json:"tier_to_cool_after_days_since_modification_greater_than"`
}

type RuleActionsSnapshot

type RuleActionsSnapshot struct {
	// ChangeTierToArchiveAfterDaysSinceCreation: number, optional
	ChangeTierToArchiveAfterDaysSinceCreation terra.NumberValue `hcl:"change_tier_to_archive_after_days_since_creation,attr"`
	// ChangeTierToCoolAfterDaysSinceCreation: number, optional
	ChangeTierToCoolAfterDaysSinceCreation terra.NumberValue `hcl:"change_tier_to_cool_after_days_since_creation,attr"`
	// DeleteAfterDaysSinceCreationGreaterThan: number, optional
	DeleteAfterDaysSinceCreationGreaterThan terra.NumberValue `hcl:"delete_after_days_since_creation_greater_than,attr"`
	// TierToArchiveAfterDaysSinceLastTierChangeGreaterThan: number, optional
	TierToArchiveAfterDaysSinceLastTierChangeGreaterThan terra.NumberValue `hcl:"tier_to_archive_after_days_since_last_tier_change_greater_than,attr"`
	// TierToColdAfterDaysSinceCreationGreaterThan: number, optional
	TierToColdAfterDaysSinceCreationGreaterThan terra.NumberValue `hcl:"tier_to_cold_after_days_since_creation_greater_than,attr"`
}

type RuleActionsSnapshotAttributes

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

func (RuleActionsSnapshotAttributes) ChangeTierToArchiveAfterDaysSinceCreation

func (s RuleActionsSnapshotAttributes) ChangeTierToArchiveAfterDaysSinceCreation() terra.NumberValue

func (RuleActionsSnapshotAttributes) ChangeTierToCoolAfterDaysSinceCreation

func (s RuleActionsSnapshotAttributes) ChangeTierToCoolAfterDaysSinceCreation() terra.NumberValue

func (RuleActionsSnapshotAttributes) DeleteAfterDaysSinceCreationGreaterThan

func (s RuleActionsSnapshotAttributes) DeleteAfterDaysSinceCreationGreaterThan() terra.NumberValue

func (RuleActionsSnapshotAttributes) InternalRef

func (RuleActionsSnapshotAttributes) InternalTokens

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

func (RuleActionsSnapshotAttributes) InternalWithRef

func (RuleActionsSnapshotAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan

func (s RuleActionsSnapshotAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan() terra.NumberValue

func (RuleActionsSnapshotAttributes) TierToColdAfterDaysSinceCreationGreaterThan

func (s RuleActionsSnapshotAttributes) TierToColdAfterDaysSinceCreationGreaterThan() terra.NumberValue

type RuleActionsSnapshotState

type RuleActionsSnapshotState struct {
	ChangeTierToArchiveAfterDaysSinceCreation            float64 `json:"change_tier_to_archive_after_days_since_creation"`
	ChangeTierToCoolAfterDaysSinceCreation               float64 `json:"change_tier_to_cool_after_days_since_creation"`
	DeleteAfterDaysSinceCreationGreaterThan              float64 `json:"delete_after_days_since_creation_greater_than"`
	TierToArchiveAfterDaysSinceLastTierChangeGreaterThan float64 `json:"tier_to_archive_after_days_since_last_tier_change_greater_than"`
	TierToColdAfterDaysSinceCreationGreaterThan          float64 `json:"tier_to_cold_after_days_since_creation_greater_than"`
}

type RuleActionsState

type RuleActionsState struct {
	BaseBlob []RuleActionsBaseBlobState `json:"base_blob"`
	Snapshot []RuleActionsSnapshotState `json:"snapshot"`
	Version  []RuleActionsVersionState  `json:"version"`
}

type RuleActionsVersion

type RuleActionsVersion struct {
	// ChangeTierToArchiveAfterDaysSinceCreation: number, optional
	ChangeTierToArchiveAfterDaysSinceCreation terra.NumberValue `hcl:"change_tier_to_archive_after_days_since_creation,attr"`
	// ChangeTierToCoolAfterDaysSinceCreation: number, optional
	ChangeTierToCoolAfterDaysSinceCreation terra.NumberValue `hcl:"change_tier_to_cool_after_days_since_creation,attr"`
	// DeleteAfterDaysSinceCreation: number, optional
	DeleteAfterDaysSinceCreation terra.NumberValue `hcl:"delete_after_days_since_creation,attr"`
	// TierToArchiveAfterDaysSinceLastTierChangeGreaterThan: number, optional
	TierToArchiveAfterDaysSinceLastTierChangeGreaterThan terra.NumberValue `hcl:"tier_to_archive_after_days_since_last_tier_change_greater_than,attr"`
	// TierToColdAfterDaysSinceCreationGreaterThan: number, optional
	TierToColdAfterDaysSinceCreationGreaterThan terra.NumberValue `hcl:"tier_to_cold_after_days_since_creation_greater_than,attr"`
}

type RuleActionsVersionAttributes

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

func (RuleActionsVersionAttributes) ChangeTierToArchiveAfterDaysSinceCreation

func (v RuleActionsVersionAttributes) ChangeTierToArchiveAfterDaysSinceCreation() terra.NumberValue

func (RuleActionsVersionAttributes) ChangeTierToCoolAfterDaysSinceCreation

func (v RuleActionsVersionAttributes) ChangeTierToCoolAfterDaysSinceCreation() terra.NumberValue

func (RuleActionsVersionAttributes) DeleteAfterDaysSinceCreation

func (v RuleActionsVersionAttributes) DeleteAfterDaysSinceCreation() terra.NumberValue

func (RuleActionsVersionAttributes) InternalRef

func (RuleActionsVersionAttributes) InternalTokens

func (v RuleActionsVersionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleActionsVersionAttributes) InternalWithRef

func (RuleActionsVersionAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan

func (v RuleActionsVersionAttributes) TierToArchiveAfterDaysSinceLastTierChangeGreaterThan() terra.NumberValue

func (RuleActionsVersionAttributes) TierToColdAfterDaysSinceCreationGreaterThan

func (v RuleActionsVersionAttributes) TierToColdAfterDaysSinceCreationGreaterThan() terra.NumberValue

type RuleActionsVersionState

type RuleActionsVersionState struct {
	ChangeTierToArchiveAfterDaysSinceCreation            float64 `json:"change_tier_to_archive_after_days_since_creation"`
	ChangeTierToCoolAfterDaysSinceCreation               float64 `json:"change_tier_to_cool_after_days_since_creation"`
	DeleteAfterDaysSinceCreation                         float64 `json:"delete_after_days_since_creation"`
	TierToArchiveAfterDaysSinceLastTierChangeGreaterThan float64 `json:"tier_to_archive_after_days_since_last_tier_change_greater_than"`
	TierToColdAfterDaysSinceCreationGreaterThan          float64 `json:"tier_to_cold_after_days_since_creation_greater_than"`
}

type RuleAttributes

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

func (RuleAttributes) Actions

func (RuleAttributes) Enabled

func (r RuleAttributes) Enabled() terra.BoolValue

func (RuleAttributes) Filters

func (RuleAttributes) InternalRef

func (r RuleAttributes) InternalRef() (terra.Reference, error)

func (RuleAttributes) InternalTokens

func (r RuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleAttributes) InternalWithRef

func (r RuleAttributes) InternalWithRef(ref terra.Reference) RuleAttributes

func (RuleAttributes) Name

func (r RuleAttributes) Name() terra.StringValue

type RuleFilters

type RuleFilters struct {
	// BlobTypes: set of string, required
	BlobTypes terra.SetValue[terra.StringValue] `hcl:"blob_types,attr" validate:"required"`
	// PrefixMatch: set of string, optional
	PrefixMatch terra.SetValue[terra.StringValue] `hcl:"prefix_match,attr"`
	// RuleFiltersMatchBlobIndexTag: min=0
	MatchBlobIndexTag []RuleFiltersMatchBlobIndexTag `hcl:"match_blob_index_tag,block" validate:"min=0"`
}

type RuleFiltersAttributes

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

func (RuleFiltersAttributes) BlobTypes

func (RuleFiltersAttributes) InternalRef

func (f RuleFiltersAttributes) InternalRef() (terra.Reference, error)

func (RuleFiltersAttributes) InternalTokens

func (f RuleFiltersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleFiltersAttributes) InternalWithRef

func (RuleFiltersAttributes) MatchBlobIndexTag

func (RuleFiltersAttributes) PrefixMatch

type RuleFiltersMatchBlobIndexTag

type RuleFiltersMatchBlobIndexTag struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Operation: string, optional
	Operation terra.StringValue `hcl:"operation,attr"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type RuleFiltersMatchBlobIndexTagAttributes

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

func (RuleFiltersMatchBlobIndexTagAttributes) InternalRef

func (RuleFiltersMatchBlobIndexTagAttributes) InternalTokens

func (RuleFiltersMatchBlobIndexTagAttributes) InternalWithRef

func (RuleFiltersMatchBlobIndexTagAttributes) Name

func (RuleFiltersMatchBlobIndexTagAttributes) Operation

func (RuleFiltersMatchBlobIndexTagAttributes) Value

type RuleFiltersMatchBlobIndexTagState

type RuleFiltersMatchBlobIndexTagState struct {
	Name      string `json:"name"`
	Operation string `json:"operation"`
	Value     string `json:"value"`
}

type RuleFiltersState

type RuleFiltersState struct {
	BlobTypes         []string                            `json:"blob_types"`
	PrefixMatch       []string                            `json:"prefix_match"`
	MatchBlobIndexTag []RuleFiltersMatchBlobIndexTagState `json:"match_blob_index_tag"`
}

type RuleState

type RuleState struct {
	Enabled bool               `json:"enabled"`
	Name    string             `json:"name"`
	Actions []RuleActionsState `json:"actions"`
	Filters []RuleFiltersState `json:"filters"`
}

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