google_alloydb_backup

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 {
	// Annotations: map of string, optional
	Annotations terra.MapValue[terra.StringValue] `hcl:"annotations,attr"`
	// BackupId: string, required
	BackupId terra.StringValue `hcl:"backup_id,attr" validate:"required"`
	// ClusterName: string, required
	ClusterName terra.StringValue `hcl:"cluster_name,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// EncryptionConfig: optional
	EncryptionConfig *EncryptionConfig `hcl:"encryption_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_alloydb_backup.

type EncryptionConfig

type EncryptionConfig struct {
	// KmsKeyName: string, optional
	KmsKeyName terra.StringValue `hcl:"kms_key_name,attr"`
}

type EncryptionConfigAttributes

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

func (EncryptionConfigAttributes) InternalRef

func (ec EncryptionConfigAttributes) InternalRef() (terra.Reference, error)

func (EncryptionConfigAttributes) InternalTokens

func (ec EncryptionConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EncryptionConfigAttributes) InternalWithRef

func (EncryptionConfigAttributes) KmsKeyName

type EncryptionConfigState

type EncryptionConfigState struct {
	KmsKeyName string `json:"kms_key_name"`
}

type EncryptionInfoAttributes

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

func (EncryptionInfoAttributes) EncryptionType

func (ei EncryptionInfoAttributes) EncryptionType() terra.StringValue

func (EncryptionInfoAttributes) InternalRef

func (ei EncryptionInfoAttributes) InternalRef() (terra.Reference, error)

func (EncryptionInfoAttributes) InternalTokens

func (ei EncryptionInfoAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EncryptionInfoAttributes) InternalWithRef

func (EncryptionInfoAttributes) KmsKeyVersions

type EncryptionInfoState

type EncryptionInfoState struct {
	EncryptionType string   `json:"encryption_type"`
	KmsKeyVersions []string `json:"kms_key_versions"`
}

type ExpiryQuantityAttributes

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

func (ExpiryQuantityAttributes) InternalRef

func (eq ExpiryQuantityAttributes) InternalRef() (terra.Reference, error)

func (ExpiryQuantityAttributes) InternalTokens

func (eq ExpiryQuantityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExpiryQuantityAttributes) InternalWithRef

func (ExpiryQuantityAttributes) RetentionCount

func (eq ExpiryQuantityAttributes) RetentionCount() terra.NumberValue

func (ExpiryQuantityAttributes) TotalRetentionCount

func (eq ExpiryQuantityAttributes) TotalRetentionCount() terra.NumberValue

type ExpiryQuantityState

type ExpiryQuantityState struct {
	RetentionCount      float64 `json:"retention_count"`
	TotalRetentionCount float64 `json:"total_retention_count"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gab *Resource) Attributes() googleAlloydbBackupAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gab *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gab *Resource) State() (*googleAlloydbBackupState, bool)

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

func (*Resource) StateMust

func (gab *Resource) StateMust() *googleAlloydbBackupState

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

func (*Resource) Type

func (gab *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"`
	// 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) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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