aws_redshift_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 {
	// AllowVersionUpgrade: bool, optional
	AllowVersionUpgrade terra.BoolValue `hcl:"allow_version_upgrade,attr"`
	// ApplyImmediately: bool, optional
	ApplyImmediately terra.BoolValue `hcl:"apply_immediately,attr"`
	// AquaConfigurationStatus: string, optional
	AquaConfigurationStatus terra.StringValue `hcl:"aqua_configuration_status,attr"`
	// AutomatedSnapshotRetentionPeriod: number, optional
	AutomatedSnapshotRetentionPeriod terra.NumberValue `hcl:"automated_snapshot_retention_period,attr"`
	// AvailabilityZone: string, optional
	AvailabilityZone terra.StringValue `hcl:"availability_zone,attr"`
	// AvailabilityZoneRelocationEnabled: bool, optional
	AvailabilityZoneRelocationEnabled terra.BoolValue `hcl:"availability_zone_relocation_enabled,attr"`
	// ClusterIdentifier: string, required
	ClusterIdentifier terra.StringValue `hcl:"cluster_identifier,attr" validate:"required"`
	// ClusterParameterGroupName: string, optional
	ClusterParameterGroupName terra.StringValue `hcl:"cluster_parameter_group_name,attr"`
	// ClusterPublicKey: string, optional
	ClusterPublicKey terra.StringValue `hcl:"cluster_public_key,attr"`
	// ClusterRevisionNumber: string, optional
	ClusterRevisionNumber terra.StringValue `hcl:"cluster_revision_number,attr"`
	// ClusterSubnetGroupName: string, optional
	ClusterSubnetGroupName terra.StringValue `hcl:"cluster_subnet_group_name,attr"`
	// ClusterType: string, optional
	ClusterType terra.StringValue `hcl:"cluster_type,attr"`
	// ClusterVersion: string, optional
	ClusterVersion terra.StringValue `hcl:"cluster_version,attr"`
	// DatabaseName: string, optional
	DatabaseName terra.StringValue `hcl:"database_name,attr"`
	// DefaultIamRoleArn: string, optional
	DefaultIamRoleArn terra.StringValue `hcl:"default_iam_role_arn,attr"`
	// ElasticIp: string, optional
	ElasticIp terra.StringValue `hcl:"elastic_ip,attr"`
	// Encrypted: bool, optional
	Encrypted terra.BoolValue `hcl:"encrypted,attr"`
	// Endpoint: string, optional
	Endpoint terra.StringValue `hcl:"endpoint,attr"`
	// EnhancedVpcRouting: bool, optional
	EnhancedVpcRouting terra.BoolValue `hcl:"enhanced_vpc_routing,attr"`
	// FinalSnapshotIdentifier: string, optional
	FinalSnapshotIdentifier terra.StringValue `hcl:"final_snapshot_identifier,attr"`
	// IamRoles: set of string, optional
	IamRoles terra.SetValue[terra.StringValue] `hcl:"iam_roles,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// MaintenanceTrackName: string, optional
	MaintenanceTrackName terra.StringValue `hcl:"maintenance_track_name,attr"`
	// ManageMasterPassword: bool, optional
	ManageMasterPassword terra.BoolValue `hcl:"manage_master_password,attr"`
	// ManualSnapshotRetentionPeriod: number, optional
	ManualSnapshotRetentionPeriod terra.NumberValue `hcl:"manual_snapshot_retention_period,attr"`
	// MasterPassword: string, optional
	MasterPassword terra.StringValue `hcl:"master_password,attr"`
	// MasterPasswordSecretKmsKeyId: string, optional
	MasterPasswordSecretKmsKeyId terra.StringValue `hcl:"master_password_secret_kms_key_id,attr"`
	// MasterUsername: string, optional
	MasterUsername terra.StringValue `hcl:"master_username,attr"`
	// MultiAz: bool, optional
	MultiAz terra.BoolValue `hcl:"multi_az,attr"`
	// NodeType: string, required
	NodeType terra.StringValue `hcl:"node_type,attr" validate:"required"`
	// NumberOfNodes: number, optional
	NumberOfNodes terra.NumberValue `hcl:"number_of_nodes,attr"`
	// OwnerAccount: string, optional
	OwnerAccount terra.StringValue `hcl:"owner_account,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// PreferredMaintenanceWindow: string, optional
	PreferredMaintenanceWindow terra.StringValue `hcl:"preferred_maintenance_window,attr"`
	// PubliclyAccessible: bool, optional
	PubliclyAccessible terra.BoolValue `hcl:"publicly_accessible,attr"`
	// SkipFinalSnapshot: bool, optional
	SkipFinalSnapshot terra.BoolValue `hcl:"skip_final_snapshot,attr"`
	// SnapshotArn: string, optional
	SnapshotArn terra.StringValue `hcl:"snapshot_arn,attr"`
	// SnapshotClusterIdentifier: string, optional
	SnapshotClusterIdentifier terra.StringValue `hcl:"snapshot_cluster_identifier,attr"`
	// SnapshotIdentifier: string, optional
	SnapshotIdentifier terra.StringValue `hcl:"snapshot_identifier,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"`
	// VpcSecurityGroupIds: set of string, optional
	VpcSecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"vpc_security_group_ids,attr"`
	// Logging: optional
	Logging *Logging `hcl:"logging,block"`
	// SnapshotCopy: optional
	SnapshotCopy *SnapshotCopy `hcl:"snapshot_copy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_redshift_cluster.

type ClusterNodesAttributes

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

func (ClusterNodesAttributes) InternalRef

func (cn ClusterNodesAttributes) InternalRef() (terra.Reference, error)

func (ClusterNodesAttributes) InternalTokens

func (cn ClusterNodesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ClusterNodesAttributes) InternalWithRef

func (ClusterNodesAttributes) NodeRole

func (ClusterNodesAttributes) PrivateIpAddress

func (cn ClusterNodesAttributes) PrivateIpAddress() terra.StringValue

func (ClusterNodesAttributes) PublicIpAddress

func (cn ClusterNodesAttributes) PublicIpAddress() terra.StringValue

type ClusterNodesState

type ClusterNodesState struct {
	NodeRole         string `json:"node_role"`
	PrivateIpAddress string `json:"private_ip_address"`
	PublicIpAddress  string `json:"public_ip_address"`
}

type DataArgs

type DataArgs struct {
	// ClusterIdentifier: string, required
	ClusterIdentifier terra.StringValue `hcl:"cluster_identifier,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_redshift_cluster.

type DataClusterNodesAttributes

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

func (DataClusterNodesAttributes) InternalRef

func (cn DataClusterNodesAttributes) InternalRef() (terra.Reference, error)

func (DataClusterNodesAttributes) InternalTokens

func (cn DataClusterNodesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataClusterNodesAttributes) InternalWithRef

func (DataClusterNodesAttributes) NodeRole

func (DataClusterNodesAttributes) PrivateIpAddress

func (cn DataClusterNodesAttributes) PrivateIpAddress() terra.StringValue

func (DataClusterNodesAttributes) PublicIpAddress

func (cn DataClusterNodesAttributes) PublicIpAddress() terra.StringValue

type DataClusterNodesState

type DataClusterNodesState struct {
	NodeRole         string `json:"node_role"`
	PrivateIpAddress string `json:"private_ip_address"`
	PublicIpAddress  string `json:"public_ip_address"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_redshift_cluster.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (arc *DataSource) Attributes() dataAwsRedshiftClusterAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (arc *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (arc *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type Logging

type Logging struct {
	// BucketName: string, optional
	BucketName terra.StringValue `hcl:"bucket_name,attr"`
	// Enable: bool, required
	Enable terra.BoolValue `hcl:"enable,attr" validate:"required"`
	// LogDestinationType: string, optional
	LogDestinationType terra.StringValue `hcl:"log_destination_type,attr"`
	// LogExports: set of string, optional
	LogExports terra.SetValue[terra.StringValue] `hcl:"log_exports,attr"`
	// S3KeyPrefix: string, optional
	S3KeyPrefix terra.StringValue `hcl:"s3_key_prefix,attr"`
}

type LoggingAttributes

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

func (LoggingAttributes) BucketName

func (l LoggingAttributes) BucketName() terra.StringValue

func (LoggingAttributes) Enable

func (l LoggingAttributes) Enable() terra.BoolValue

func (LoggingAttributes) InternalRef

func (l LoggingAttributes) InternalRef() (terra.Reference, error)

func (LoggingAttributes) InternalTokens

func (l LoggingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoggingAttributes) InternalWithRef

func (l LoggingAttributes) InternalWithRef(ref terra.Reference) LoggingAttributes

func (LoggingAttributes) LogDestinationType

func (l LoggingAttributes) LogDestinationType() terra.StringValue

func (LoggingAttributes) LogExports

func (LoggingAttributes) S3KeyPrefix

func (l LoggingAttributes) S3KeyPrefix() terra.StringValue

type LoggingState

type LoggingState struct {
	BucketName         string   `json:"bucket_name"`
	Enable             bool     `json:"enable"`
	LogDestinationType string   `json:"log_destination_type"`
	LogExports         []string `json:"log_exports"`
	S3KeyPrefix        string   `json:"s3_key_prefix"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (arc *Resource) Attributes() awsRedshiftClusterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (arc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (arc *Resource) State() (*awsRedshiftClusterState, bool)

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

func (*Resource) StateMust

func (arc *Resource) StateMust() *awsRedshiftClusterState

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

func (*Resource) Type

func (arc *Resource) Type() string

Type returns the Terraform object type for Resource.

type SnapshotCopy

type SnapshotCopy struct {
	// DestinationRegion: string, required
	DestinationRegion terra.StringValue `hcl:"destination_region,attr" validate:"required"`
	// GrantName: string, optional
	GrantName terra.StringValue `hcl:"grant_name,attr"`
	// RetentionPeriod: number, optional
	RetentionPeriod terra.NumberValue `hcl:"retention_period,attr"`
}

type SnapshotCopyAttributes

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

func (SnapshotCopyAttributes) DestinationRegion

func (sc SnapshotCopyAttributes) DestinationRegion() terra.StringValue

func (SnapshotCopyAttributes) GrantName

func (sc SnapshotCopyAttributes) GrantName() terra.StringValue

func (SnapshotCopyAttributes) InternalRef

func (sc SnapshotCopyAttributes) InternalRef() (terra.Reference, error)

func (SnapshotCopyAttributes) InternalTokens

func (sc SnapshotCopyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SnapshotCopyAttributes) InternalWithRef

func (SnapshotCopyAttributes) RetentionPeriod

func (sc SnapshotCopyAttributes) RetentionPeriod() terra.NumberValue

type SnapshotCopyState

type SnapshotCopyState struct {
	DestinationRegion string  `json:"destination_region"`
	GrantName         string  `json:"grant_name"`
	RetentionPeriod   float64 `json:"retention_period"`
}

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