aws_finspace_kx_cluster

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 {
	// AvailabilityZoneId: string, optional
	AvailabilityZoneId terra.StringValue `hcl:"availability_zone_id,attr"`
	// AzMode: string, required
	AzMode terra.StringValue `hcl:"az_mode,attr" validate:"required"`
	// CommandLineArguments: map of string, optional
	CommandLineArguments terra.MapValue[terra.StringValue] `hcl:"command_line_arguments,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// EnvironmentId: string, required
	EnvironmentId terra.StringValue `hcl:"environment_id,attr" validate:"required"`
	// ExecutionRole: string, optional
	ExecutionRole terra.StringValue `hcl:"execution_role,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InitializationScript: string, optional
	InitializationScript terra.StringValue `hcl:"initialization_script,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ReleaseLabel: string, required
	ReleaseLabel terra.StringValue `hcl:"release_label,attr" validate:"required"`
	// 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"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// AutoScalingConfiguration: optional
	AutoScalingConfiguration *AutoScalingConfiguration `hcl:"auto_scaling_configuration,block"`
	// CacheStorageConfigurations: min=0
	CacheStorageConfigurations []CacheStorageConfigurations `hcl:"cache_storage_configurations,block" validate:"min=0"`
	// CapacityConfiguration: optional
	CapacityConfiguration *CapacityConfiguration `hcl:"capacity_configuration,block"`
	// Code: optional
	Code *Code `hcl:"code,block"`
	// Database: min=0
	Database []Database `hcl:"database,block" validate:"min=0"`
	// SavedownStorageConfiguration: optional
	SavedownStorageConfiguration *SavedownStorageConfiguration `hcl:"savedown_storage_configuration,block"`
	// ScalingGroupConfiguration: optional
	ScalingGroupConfiguration *ScalingGroupConfiguration `hcl:"scaling_group_configuration,block"`
	// TickerplantLogConfiguration: min=0
	TickerplantLogConfiguration []TickerplantLogConfiguration `hcl:"tickerplant_log_configuration,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// VpcConfiguration: required
	VpcConfiguration *VpcConfiguration `hcl:"vpc_configuration,block" validate:"required"`
}

Args contains the configurations for aws_finspace_kx_cluster.

type AutoScalingConfiguration

type AutoScalingConfiguration struct {
	// AutoScalingMetric: string, required
	AutoScalingMetric terra.StringValue `hcl:"auto_scaling_metric,attr" validate:"required"`
	// MaxNodeCount: number, required
	MaxNodeCount terra.NumberValue `hcl:"max_node_count,attr" validate:"required"`
	// MetricTarget: number, required
	MetricTarget terra.NumberValue `hcl:"metric_target,attr" validate:"required"`
	// MinNodeCount: number, required
	MinNodeCount terra.NumberValue `hcl:"min_node_count,attr" validate:"required"`
	// ScaleInCooldownSeconds: number, required
	ScaleInCooldownSeconds terra.NumberValue `hcl:"scale_in_cooldown_seconds,attr" validate:"required"`
	// ScaleOutCooldownSeconds: number, required
	ScaleOutCooldownSeconds terra.NumberValue `hcl:"scale_out_cooldown_seconds,attr" validate:"required"`
}

type AutoScalingConfigurationAttributes

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

func (AutoScalingConfigurationAttributes) AutoScalingMetric

func (asc AutoScalingConfigurationAttributes) AutoScalingMetric() terra.StringValue

func (AutoScalingConfigurationAttributes) InternalRef

func (AutoScalingConfigurationAttributes) InternalTokens

func (asc AutoScalingConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoScalingConfigurationAttributes) InternalWithRef

func (AutoScalingConfigurationAttributes) MaxNodeCount

func (AutoScalingConfigurationAttributes) MetricTarget

func (AutoScalingConfigurationAttributes) MinNodeCount

func (AutoScalingConfigurationAttributes) ScaleInCooldownSeconds

func (asc AutoScalingConfigurationAttributes) ScaleInCooldownSeconds() terra.NumberValue

func (AutoScalingConfigurationAttributes) ScaleOutCooldownSeconds

func (asc AutoScalingConfigurationAttributes) ScaleOutCooldownSeconds() terra.NumberValue

type AutoScalingConfigurationState

type AutoScalingConfigurationState struct {
	AutoScalingMetric       string  `json:"auto_scaling_metric"`
	MaxNodeCount            float64 `json:"max_node_count"`
	MetricTarget            float64 `json:"metric_target"`
	MinNodeCount            float64 `json:"min_node_count"`
	ScaleInCooldownSeconds  float64 `json:"scale_in_cooldown_seconds"`
	ScaleOutCooldownSeconds float64 `json:"scale_out_cooldown_seconds"`
}

type CacheStorageConfigurations

type CacheStorageConfigurations struct {
	// Size: number, required
	Size terra.NumberValue `hcl:"size,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type CacheStorageConfigurationsAttributes

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

func (CacheStorageConfigurationsAttributes) InternalRef

func (CacheStorageConfigurationsAttributes) InternalTokens

func (CacheStorageConfigurationsAttributes) InternalWithRef

func (CacheStorageConfigurationsAttributes) Size

func (CacheStorageConfigurationsAttributes) Type

type CacheStorageConfigurationsState

type CacheStorageConfigurationsState struct {
	Size float64 `json:"size"`
	Type string  `json:"type"`
}

type CapacityConfiguration

type CapacityConfiguration struct {
	// NodeCount: number, required
	NodeCount terra.NumberValue `hcl:"node_count,attr" validate:"required"`
	// NodeType: string, required
	NodeType terra.StringValue `hcl:"node_type,attr" validate:"required"`
}

type CapacityConfigurationAttributes

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

func (CapacityConfigurationAttributes) InternalRef

func (CapacityConfigurationAttributes) InternalTokens

func (cc CapacityConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CapacityConfigurationAttributes) InternalWithRef

func (CapacityConfigurationAttributes) NodeCount

func (CapacityConfigurationAttributes) NodeType

type CapacityConfigurationState

type CapacityConfigurationState struct {
	NodeCount float64 `json:"node_count"`
	NodeType  string  `json:"node_type"`
}

type Code

type Code struct {
	// S3Bucket: string, required
	S3Bucket terra.StringValue `hcl:"s3_bucket,attr" validate:"required"`
	// S3Key: string, required
	S3Key terra.StringValue `hcl:"s3_key,attr" validate:"required"`
	// S3ObjectVersion: string, optional
	S3ObjectVersion terra.StringValue `hcl:"s3_object_version,attr"`
}

type CodeAttributes

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

func (CodeAttributes) InternalRef

func (c CodeAttributes) InternalRef() (terra.Reference, error)

func (CodeAttributes) InternalTokens

func (c CodeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CodeAttributes) InternalWithRef

func (c CodeAttributes) InternalWithRef(ref terra.Reference) CodeAttributes

func (CodeAttributes) S3Bucket

func (c CodeAttributes) S3Bucket() terra.StringValue

func (CodeAttributes) S3Key

func (c CodeAttributes) S3Key() terra.StringValue

func (CodeAttributes) S3ObjectVersion

func (c CodeAttributes) S3ObjectVersion() terra.StringValue

type CodeState

type CodeState struct {
	S3Bucket        string `json:"s3_bucket"`
	S3Key           string `json:"s3_key"`
	S3ObjectVersion string `json:"s3_object_version"`
}

type Database

type Database struct {
	// ChangesetId: string, optional
	ChangesetId terra.StringValue `hcl:"changeset_id,attr"`
	// DatabaseName: string, required
	DatabaseName terra.StringValue `hcl:"database_name,attr" validate:"required"`
	// DataviewName: string, optional
	DataviewName terra.StringValue `hcl:"dataview_name,attr"`
	// DatabaseCacheConfigurations: min=0
	CacheConfigurations []DatabaseCacheConfigurations `hcl:"cache_configurations,block" validate:"min=0"`
}

type DatabaseAttributes

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

func (DatabaseAttributes) CacheConfigurations

func (DatabaseAttributes) ChangesetId

func (d DatabaseAttributes) ChangesetId() terra.StringValue

func (DatabaseAttributes) DatabaseName

func (d DatabaseAttributes) DatabaseName() terra.StringValue

func (DatabaseAttributes) DataviewName

func (d DatabaseAttributes) DataviewName() terra.StringValue

func (DatabaseAttributes) InternalRef

func (d DatabaseAttributes) InternalRef() (terra.Reference, error)

func (DatabaseAttributes) InternalTokens

func (d DatabaseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DatabaseAttributes) InternalWithRef

func (d DatabaseAttributes) InternalWithRef(ref terra.Reference) DatabaseAttributes

type DatabaseCacheConfigurations

type DatabaseCacheConfigurations struct {
	// CacheType: string, required
	CacheType terra.StringValue `hcl:"cache_type,attr" validate:"required"`
	// DbPaths: set of string, optional
	DbPaths terra.SetValue[terra.StringValue] `hcl:"db_paths,attr"`
}

type DatabaseCacheConfigurationsAttributes

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

func (DatabaseCacheConfigurationsAttributes) CacheType

func (DatabaseCacheConfigurationsAttributes) DbPaths

func (DatabaseCacheConfigurationsAttributes) InternalRef

func (DatabaseCacheConfigurationsAttributes) InternalTokens

func (DatabaseCacheConfigurationsAttributes) InternalWithRef

type DatabaseCacheConfigurationsState

type DatabaseCacheConfigurationsState struct {
	CacheType string   `json:"cache_type"`
	DbPaths   []string `json:"db_paths"`
}

type DatabaseState

type DatabaseState struct {
	ChangesetId         string                             `json:"changeset_id"`
	DatabaseName        string                             `json:"database_name"`
	DataviewName        string                             `json:"dataview_name"`
	CacheConfigurations []DatabaseCacheConfigurationsState `json:"cache_configurations"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (afkc *Resource) Attributes() awsFinspaceKxClusterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (afkc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (afkc *Resource) State() (*awsFinspaceKxClusterState, bool)

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

func (*Resource) StateMust

func (afkc *Resource) StateMust() *awsFinspaceKxClusterState

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

func (*Resource) Type

func (afkc *Resource) Type() string

Type returns the Terraform object type for Resource.

type SavedownStorageConfiguration

type SavedownStorageConfiguration struct {
	// Size: number, optional
	Size terra.NumberValue `hcl:"size,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// VolumeName: string, optional
	VolumeName terra.StringValue `hcl:"volume_name,attr"`
}

type SavedownStorageConfigurationAttributes

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

func (SavedownStorageConfigurationAttributes) InternalRef

func (SavedownStorageConfigurationAttributes) InternalTokens

func (SavedownStorageConfigurationAttributes) InternalWithRef

func (SavedownStorageConfigurationAttributes) Size

func (SavedownStorageConfigurationAttributes) Type

func (SavedownStorageConfigurationAttributes) VolumeName

type SavedownStorageConfigurationState

type SavedownStorageConfigurationState struct {
	Size       float64 `json:"size"`
	Type       string  `json:"type"`
	VolumeName string  `json:"volume_name"`
}

type ScalingGroupConfiguration

type ScalingGroupConfiguration struct {
	// Cpu: number, optional
	Cpu terra.NumberValue `hcl:"cpu,attr"`
	// MemoryLimit: number, optional
	MemoryLimit terra.NumberValue `hcl:"memory_limit,attr"`
	// MemoryReservation: number, required
	MemoryReservation terra.NumberValue `hcl:"memory_reservation,attr" validate:"required"`
	// NodeCount: number, required
	NodeCount terra.NumberValue `hcl:"node_count,attr" validate:"required"`
	// ScalingGroupName: string, required
	ScalingGroupName terra.StringValue `hcl:"scaling_group_name,attr" validate:"required"`
}

type ScalingGroupConfigurationAttributes

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

func (ScalingGroupConfigurationAttributes) Cpu

func (ScalingGroupConfigurationAttributes) InternalRef

func (ScalingGroupConfigurationAttributes) InternalTokens

func (sgc ScalingGroupConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ScalingGroupConfigurationAttributes) InternalWithRef

func (ScalingGroupConfigurationAttributes) MemoryLimit

func (ScalingGroupConfigurationAttributes) MemoryReservation

func (sgc ScalingGroupConfigurationAttributes) MemoryReservation() terra.NumberValue

func (ScalingGroupConfigurationAttributes) NodeCount

func (ScalingGroupConfigurationAttributes) ScalingGroupName

func (sgc ScalingGroupConfigurationAttributes) ScalingGroupName() terra.StringValue

type ScalingGroupConfigurationState

type ScalingGroupConfigurationState struct {
	Cpu               float64 `json:"cpu"`
	MemoryLimit       float64 `json:"memory_limit"`
	MemoryReservation float64 `json:"memory_reservation"`
	NodeCount         float64 `json:"node_count"`
	ScalingGroupName  string  `json:"scaling_group_name"`
}

type TickerplantLogConfiguration

type TickerplantLogConfiguration struct {
	// TickerplantLogVolumes: set of string, required
	TickerplantLogVolumes terra.SetValue[terra.StringValue] `hcl:"tickerplant_log_volumes,attr" validate:"required"`
}

type TickerplantLogConfigurationAttributes

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

func (TickerplantLogConfigurationAttributes) InternalRef

func (TickerplantLogConfigurationAttributes) InternalTokens

func (TickerplantLogConfigurationAttributes) InternalWithRef

func (TickerplantLogConfigurationAttributes) TickerplantLogVolumes

type TickerplantLogConfigurationState

type TickerplantLogConfigurationState struct {
	TickerplantLogVolumes []string `json:"tickerplant_log_volumes"`
}

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"`
}

type VpcConfiguration

type VpcConfiguration struct {
	// IpAddressType: string, required
	IpAddressType terra.StringValue `hcl:"ip_address_type,attr" validate:"required"`
	// SecurityGroupIds: set of string, required
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr" validate:"required"`
	// SubnetIds: set of string, required
	SubnetIds terra.SetValue[terra.StringValue] `hcl:"subnet_ids,attr" validate:"required"`
	// VpcId: string, required
	VpcId terra.StringValue `hcl:"vpc_id,attr" validate:"required"`
}

type VpcConfigurationAttributes

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

func (VpcConfigurationAttributes) InternalRef

func (vc VpcConfigurationAttributes) InternalRef() (terra.Reference, error)

func (VpcConfigurationAttributes) InternalTokens

func (vc VpcConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VpcConfigurationAttributes) InternalWithRef

func (VpcConfigurationAttributes) IpAddressType

func (vc VpcConfigurationAttributes) IpAddressType() terra.StringValue

func (VpcConfigurationAttributes) SecurityGroupIds

func (VpcConfigurationAttributes) SubnetIds

func (VpcConfigurationAttributes) VpcId

type VpcConfigurationState

type VpcConfigurationState struct {
	IpAddressType    string   `json:"ip_address_type"`
	SecurityGroupIds []string `json:"security_group_ids"`
	SubnetIds        []string `json:"subnet_ids"`
	VpcId            string   `json:"vpc_id"`
}

Jump to

Keyboard shortcuts

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