google_bigtable_gc_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 {
	// ColumnFamily: string, required
	ColumnFamily terra.StringValue `hcl:"column_family,attr" validate:"required"`
	// DeletionPolicy: string, optional
	DeletionPolicy terra.StringValue `hcl:"deletion_policy,attr"`
	// GcRules: string, optional
	GcRules terra.StringValue `hcl:"gc_rules,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceName: string, required
	InstanceName terra.StringValue `hcl:"instance_name,attr" validate:"required"`
	// Mode: string, optional
	Mode terra.StringValue `hcl:"mode,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Table: string, required
	Table terra.StringValue `hcl:"table,attr" validate:"required"`
	// MaxAge: optional
	MaxAge *MaxAge `hcl:"max_age,block"`
	// MaxVersion: min=0
	MaxVersion []MaxVersion `hcl:"max_version,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_bigtable_gc_policy.

type MaxAge

type MaxAge struct {
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// Duration: string, optional
	Duration terra.StringValue `hcl:"duration,attr"`
}

type MaxAgeAttributes

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

func (MaxAgeAttributes) Days

func (MaxAgeAttributes) Duration

func (ma MaxAgeAttributes) Duration() terra.StringValue

func (MaxAgeAttributes) InternalRef

func (ma MaxAgeAttributes) InternalRef() (terra.Reference, error)

func (MaxAgeAttributes) InternalTokens

func (ma MaxAgeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaxAgeAttributes) InternalWithRef

func (ma MaxAgeAttributes) InternalWithRef(ref terra.Reference) MaxAgeAttributes

type MaxAgeState

type MaxAgeState struct {
	Days     float64 `json:"days"`
	Duration string  `json:"duration"`
}

type MaxVersion

type MaxVersion struct {
	// Number: number, required
	Number terra.NumberValue `hcl:"number,attr" validate:"required"`
}

type MaxVersionAttributes

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

func (MaxVersionAttributes) InternalRef

func (mv MaxVersionAttributes) InternalRef() (terra.Reference, error)

func (MaxVersionAttributes) InternalTokens

func (mv MaxVersionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaxVersionAttributes) InternalWithRef

func (mv MaxVersionAttributes) InternalWithRef(ref terra.Reference) MaxVersionAttributes

func (MaxVersionAttributes) Number

type MaxVersionState

type MaxVersionState struct {
	Number float64 `json:"number"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gbgp *Resource) Attributes() googleBigtableGcPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gbgp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gbgp *Resource) State() (*googleBigtableGcPolicyState, bool)

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

func (*Resource) StateMust

func (gbgp *Resource) StateMust() *googleBigtableGcPolicyState

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

func (*Resource) Type

func (gbgp *Resource) Type() string

Type returns the Terraform object type for Resource.

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