aws_elasticache_serverless_cache

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 {
	// DailySnapshotTime: string, optional
	DailySnapshotTime terra.StringValue `hcl:"daily_snapshot_time,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Engine: string, required
	Engine terra.StringValue `hcl:"engine,attr" validate:"required"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// MajorEngineVersion: string, optional
	MajorEngineVersion terra.StringValue `hcl:"major_engine_version,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// SecurityGroupIds: set of string, optional
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr"`
	// SnapshotArnsToRestore: list of string, optional
	SnapshotArnsToRestore terra.ListValue[terra.StringValue] `hcl:"snapshot_arns_to_restore,attr"`
	// SnapshotRetentionLimit: number, optional
	SnapshotRetentionLimit terra.NumberValue `hcl:"snapshot_retention_limit,attr"`
	// SubnetIds: set of string, optional
	SubnetIds terra.SetValue[terra.StringValue] `hcl:"subnet_ids,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// UserGroupId: string, optional
	UserGroupId terra.StringValue `hcl:"user_group_id,attr"`
	// CacheUsageLimits: min=0
	CacheUsageLimits []CacheUsageLimits `hcl:"cache_usage_limits,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_elasticache_serverless_cache.

type CacheUsageLimits

type CacheUsageLimits struct {
	// CacheUsageLimitsDataStorage: min=0
	DataStorage []CacheUsageLimitsDataStorage `hcl:"data_storage,block" validate:"min=0"`
	// CacheUsageLimitsEcpuPerSecond: min=0
	EcpuPerSecond []CacheUsageLimitsEcpuPerSecond `hcl:"ecpu_per_second,block" validate:"min=0"`
}

type CacheUsageLimitsAttributes

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

func (CacheUsageLimitsAttributes) DataStorage

func (CacheUsageLimitsAttributes) EcpuPerSecond

func (CacheUsageLimitsAttributes) InternalRef

func (cul CacheUsageLimitsAttributes) InternalRef() (terra.Reference, error)

func (CacheUsageLimitsAttributes) InternalTokens

func (cul CacheUsageLimitsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CacheUsageLimitsAttributes) InternalWithRef

type CacheUsageLimitsDataStorage

type CacheUsageLimitsDataStorage struct {
	// Maximum: number, required
	Maximum terra.NumberValue `hcl:"maximum,attr" validate:"required"`
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
}

type CacheUsageLimitsDataStorageAttributes

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

func (CacheUsageLimitsDataStorageAttributes) InternalRef

func (CacheUsageLimitsDataStorageAttributes) InternalTokens

func (CacheUsageLimitsDataStorageAttributes) InternalWithRef

func (CacheUsageLimitsDataStorageAttributes) Maximum

func (CacheUsageLimitsDataStorageAttributes) Unit

type CacheUsageLimitsDataStorageState

type CacheUsageLimitsDataStorageState struct {
	Maximum float64 `json:"maximum"`
	Unit    string  `json:"unit"`
}

type CacheUsageLimitsEcpuPerSecond

type CacheUsageLimitsEcpuPerSecond struct {
	// Maximum: number, required
	Maximum terra.NumberValue `hcl:"maximum,attr" validate:"required"`
}

type CacheUsageLimitsEcpuPerSecondAttributes

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

func (CacheUsageLimitsEcpuPerSecondAttributes) InternalRef

func (CacheUsageLimitsEcpuPerSecondAttributes) InternalTokens

func (CacheUsageLimitsEcpuPerSecondAttributes) InternalWithRef

func (CacheUsageLimitsEcpuPerSecondAttributes) Maximum

type CacheUsageLimitsEcpuPerSecondState

type CacheUsageLimitsEcpuPerSecondState struct {
	Maximum float64 `json:"maximum"`
}

type CacheUsageLimitsState

type CacheUsageLimitsState struct {
	DataStorage   []CacheUsageLimitsDataStorageState   `json:"data_storage"`
	EcpuPerSecond []CacheUsageLimitsEcpuPerSecondState `json:"ecpu_per_second"`
}

type EndpointAttributes

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

func (EndpointAttributes) Address

func (e EndpointAttributes) Address() terra.StringValue

func (EndpointAttributes) InternalRef

func (e EndpointAttributes) InternalRef() (terra.Reference, error)

func (EndpointAttributes) InternalTokens

func (e EndpointAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EndpointAttributes) InternalWithRef

func (e EndpointAttributes) InternalWithRef(ref terra.Reference) EndpointAttributes

func (EndpointAttributes) Port

type EndpointState

type EndpointState struct {
	Address string  `json:"address"`
	Port    float64 `json:"port"`
}

type ReaderEndpointAttributes

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

func (ReaderEndpointAttributes) Address

func (ReaderEndpointAttributes) InternalRef

func (re ReaderEndpointAttributes) InternalRef() (terra.Reference, error)

func (ReaderEndpointAttributes) InternalTokens

func (re ReaderEndpointAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReaderEndpointAttributes) InternalWithRef

func (ReaderEndpointAttributes) Port

type ReaderEndpointState

type ReaderEndpointState struct {
	Address string  `json:"address"`
	Port    float64 `json:"port"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aesc *Resource) Attributes() awsElasticacheServerlessCacheAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aesc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aesc *Resource) State() (*awsElasticacheServerlessCacheState, bool)

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

func (*Resource) StateMust

func (aesc *Resource) StateMust() *awsElasticacheServerlessCacheState

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

func (*Resource) Type

func (aesc *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