aws_memorydb_cluster

package
v5.45.0 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 {
	// AclName: string, required
	AclName terra.StringValue `hcl:"acl_name,attr" validate:"required"`
	// AutoMinorVersionUpgrade: bool, optional
	AutoMinorVersionUpgrade terra.BoolValue `hcl:"auto_minor_version_upgrade,attr"`
	// DataTiering: bool, optional
	DataTiering terra.BoolValue `hcl:"data_tiering,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// EngineVersion: string, optional
	EngineVersion terra.StringValue `hcl:"engine_version,attr"`
	// FinalSnapshotName: string, optional
	FinalSnapshotName terra.StringValue `hcl:"final_snapshot_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKeyArn: string, optional
	KmsKeyArn terra.StringValue `hcl:"kms_key_arn,attr"`
	// MaintenanceWindow: string, optional
	MaintenanceWindow terra.StringValue `hcl:"maintenance_window,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// NamePrefix: string, optional
	NamePrefix terra.StringValue `hcl:"name_prefix,attr"`
	// NodeType: string, required
	NodeType terra.StringValue `hcl:"node_type,attr" validate:"required"`
	// NumReplicasPerShard: number, optional
	NumReplicasPerShard terra.NumberValue `hcl:"num_replicas_per_shard,attr"`
	// NumShards: number, optional
	NumShards terra.NumberValue `hcl:"num_shards,attr"`
	// ParameterGroupName: string, optional
	ParameterGroupName terra.StringValue `hcl:"parameter_group_name,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// SecurityGroupIds: set of string, optional
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr"`
	// SnapshotArns: list of string, optional
	SnapshotArns terra.ListValue[terra.StringValue] `hcl:"snapshot_arns,attr"`
	// SnapshotName: string, optional
	SnapshotName terra.StringValue `hcl:"snapshot_name,attr"`
	// SnapshotRetentionLimit: number, optional
	SnapshotRetentionLimit terra.NumberValue `hcl:"snapshot_retention_limit,attr"`
	// SnapshotWindow: string, optional
	SnapshotWindow terra.StringValue `hcl:"snapshot_window,attr"`
	// SnsTopicArn: string, optional
	SnsTopicArn terra.StringValue `hcl:"sns_topic_arn,attr"`
	// SubnetGroupName: string, optional
	SubnetGroupName terra.StringValue `hcl:"subnet_group_name,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// TlsEnabled: bool, optional
	TlsEnabled terra.BoolValue `hcl:"tls_enabled,attr"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_memorydb_cluster.

type ClusterEndpointAttributes

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

func (ClusterEndpointAttributes) Address

func (ClusterEndpointAttributes) InternalRef

func (ce ClusterEndpointAttributes) InternalRef() (terra.Reference, error)

func (ClusterEndpointAttributes) InternalTokens

func (ce ClusterEndpointAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ClusterEndpointAttributes) InternalWithRef

func (ClusterEndpointAttributes) Port

type ClusterEndpointState

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

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"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_memorydb_cluster.

type DataClusterEndpointAttributes

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

func (DataClusterEndpointAttributes) Address

func (DataClusterEndpointAttributes) InternalRef

func (ce DataClusterEndpointAttributes) InternalRef() (terra.Reference, error)

func (DataClusterEndpointAttributes) InternalTokens

func (ce DataClusterEndpointAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataClusterEndpointAttributes) InternalWithRef

func (DataClusterEndpointAttributes) Port

type DataClusterEndpointState

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

type DataShardsAttributes

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

func (DataShardsAttributes) InternalRef

func (s DataShardsAttributes) InternalRef() (terra.Reference, error)

func (DataShardsAttributes) InternalTokens

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

func (DataShardsAttributes) InternalWithRef

func (DataShardsAttributes) Name

func (DataShardsAttributes) Nodes

func (DataShardsAttributes) NumNodes

func (s DataShardsAttributes) NumNodes() terra.NumberValue

func (DataShardsAttributes) Slots

type DataShardsNodesAttributes

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

func (DataShardsNodesAttributes) AvailabilityZone

func (n DataShardsNodesAttributes) AvailabilityZone() terra.StringValue

func (DataShardsNodesAttributes) CreateTime

func (DataShardsNodesAttributes) Endpoint

func (DataShardsNodesAttributes) InternalRef

func (n DataShardsNodesAttributes) InternalRef() (terra.Reference, error)

func (DataShardsNodesAttributes) InternalTokens

func (n DataShardsNodesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataShardsNodesAttributes) InternalWithRef

func (DataShardsNodesAttributes) Name

type DataShardsNodesEndpointAttributes

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

func (DataShardsNodesEndpointAttributes) Address

func (DataShardsNodesEndpointAttributes) InternalRef

func (DataShardsNodesEndpointAttributes) InternalTokens

func (DataShardsNodesEndpointAttributes) InternalWithRef

func (DataShardsNodesEndpointAttributes) Port

type DataShardsNodesEndpointState

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

type DataShardsNodesState

type DataShardsNodesState struct {
	AvailabilityZone string                         `json:"availability_zone"`
	CreateTime       string                         `json:"create_time"`
	Name             string                         `json:"name"`
	Endpoint         []DataShardsNodesEndpointState `json:"endpoint"`
}

type DataShardsState

type DataShardsState struct {
	Name     string                 `json:"name"`
	NumNodes float64                `json:"num_nodes"`
	Slots    string                 `json:"slots"`
	Nodes    []DataShardsNodesState `json:"nodes"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_memorydb_cluster.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (amc *DataSource) Attributes() dataAwsMemorydbClusterAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (amc *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (amc *DataSource) LocalName() string

LocalName returns the local name for DataSource.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (amc *Resource) Attributes() awsMemorydbClusterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (amc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (amc *Resource) State() (*awsMemorydbClusterState, bool)

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

func (*Resource) StateMust

func (amc *Resource) StateMust() *awsMemorydbClusterState

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

func (*Resource) Type

func (amc *Resource) Type() string

Type returns the Terraform object type for Resource.

type ShardsAttributes

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

func (ShardsAttributes) InternalRef

func (s ShardsAttributes) InternalRef() (terra.Reference, error)

func (ShardsAttributes) InternalTokens

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

func (ShardsAttributes) InternalWithRef

func (s ShardsAttributes) InternalWithRef(ref terra.Reference) ShardsAttributes

func (ShardsAttributes) Name

func (ShardsAttributes) Nodes

func (ShardsAttributes) NumNodes

func (s ShardsAttributes) NumNodes() terra.NumberValue

func (ShardsAttributes) Slots

type ShardsNodesAttributes

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

func (ShardsNodesAttributes) AvailabilityZone

func (n ShardsNodesAttributes) AvailabilityZone() terra.StringValue

func (ShardsNodesAttributes) CreateTime

func (n ShardsNodesAttributes) CreateTime() terra.StringValue

func (ShardsNodesAttributes) Endpoint

func (ShardsNodesAttributes) InternalRef

func (n ShardsNodesAttributes) InternalRef() (terra.Reference, error)

func (ShardsNodesAttributes) InternalTokens

func (n ShardsNodesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ShardsNodesAttributes) InternalWithRef

func (ShardsNodesAttributes) Name

type ShardsNodesEndpointAttributes

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

func (ShardsNodesEndpointAttributes) Address

func (ShardsNodesEndpointAttributes) InternalRef

func (ShardsNodesEndpointAttributes) InternalTokens

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

func (ShardsNodesEndpointAttributes) InternalWithRef

func (ShardsNodesEndpointAttributes) Port

type ShardsNodesEndpointState

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

type ShardsNodesState

type ShardsNodesState struct {
	AvailabilityZone string                     `json:"availability_zone"`
	CreateTime       string                     `json:"create_time"`
	Name             string                     `json:"name"`
	Endpoint         []ShardsNodesEndpointState `json:"endpoint"`
}

type ShardsState

type ShardsState struct {
	Name     string             `json:"name"`
	NumNodes float64            `json:"num_nodes"`
	Slots    string             `json:"slots"`
	Nodes    []ShardsNodesState `json:"nodes"`
}

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