aws_rds_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 {
	// AllocatedStorage: number, optional
	AllocatedStorage terra.NumberValue `hcl:"allocated_storage,attr"`
	// AllowMajorVersionUpgrade: bool, optional
	AllowMajorVersionUpgrade terra.BoolValue `hcl:"allow_major_version_upgrade,attr"`
	// ApplyImmediately: bool, optional
	ApplyImmediately terra.BoolValue `hcl:"apply_immediately,attr"`
	// AvailabilityZones: set of string, optional
	AvailabilityZones terra.SetValue[terra.StringValue] `hcl:"availability_zones,attr"`
	// BacktrackWindow: number, optional
	BacktrackWindow terra.NumberValue `hcl:"backtrack_window,attr"`
	// BackupRetentionPeriod: number, optional
	BackupRetentionPeriod terra.NumberValue `hcl:"backup_retention_period,attr"`
	// ClusterIdentifier: string, optional
	ClusterIdentifier terra.StringValue `hcl:"cluster_identifier,attr"`
	// ClusterIdentifierPrefix: string, optional
	ClusterIdentifierPrefix terra.StringValue `hcl:"cluster_identifier_prefix,attr"`
	// ClusterMembers: set of string, optional
	ClusterMembers terra.SetValue[terra.StringValue] `hcl:"cluster_members,attr"`
	// CopyTagsToSnapshot: bool, optional
	CopyTagsToSnapshot terra.BoolValue `hcl:"copy_tags_to_snapshot,attr"`
	// DatabaseName: string, optional
	DatabaseName terra.StringValue `hcl:"database_name,attr"`
	// DbClusterInstanceClass: string, optional
	DbClusterInstanceClass terra.StringValue `hcl:"db_cluster_instance_class,attr"`
	// DbClusterParameterGroupName: string, optional
	DbClusterParameterGroupName terra.StringValue `hcl:"db_cluster_parameter_group_name,attr"`
	// DbInstanceParameterGroupName: string, optional
	DbInstanceParameterGroupName terra.StringValue `hcl:"db_instance_parameter_group_name,attr"`
	// DbSubnetGroupName: string, optional
	DbSubnetGroupName terra.StringValue `hcl:"db_subnet_group_name,attr"`
	// DbSystemId: string, optional
	DbSystemId terra.StringValue `hcl:"db_system_id,attr"`
	// DeleteAutomatedBackups: bool, optional
	DeleteAutomatedBackups terra.BoolValue `hcl:"delete_automated_backups,attr"`
	// DeletionProtection: bool, optional
	DeletionProtection terra.BoolValue `hcl:"deletion_protection,attr"`
	// Domain: string, optional
	Domain terra.StringValue `hcl:"domain,attr"`
	// DomainIamRoleName: string, optional
	DomainIamRoleName terra.StringValue `hcl:"domain_iam_role_name,attr"`
	// EnableGlobalWriteForwarding: bool, optional
	EnableGlobalWriteForwarding terra.BoolValue `hcl:"enable_global_write_forwarding,attr"`
	// EnableHttpEndpoint: bool, optional
	EnableHttpEndpoint terra.BoolValue `hcl:"enable_http_endpoint,attr"`
	// EnableLocalWriteForwarding: bool, optional
	EnableLocalWriteForwarding terra.BoolValue `hcl:"enable_local_write_forwarding,attr"`
	// EnabledCloudwatchLogsExports: set of string, optional
	EnabledCloudwatchLogsExports terra.SetValue[terra.StringValue] `hcl:"enabled_cloudwatch_logs_exports,attr"`
	// Engine: string, required
	Engine terra.StringValue `hcl:"engine,attr" validate:"required"`
	// EngineMode: string, optional
	EngineMode terra.StringValue `hcl:"engine_mode,attr"`
	// EngineVersion: string, optional
	EngineVersion terra.StringValue `hcl:"engine_version,attr"`
	// FinalSnapshotIdentifier: string, optional
	FinalSnapshotIdentifier terra.StringValue `hcl:"final_snapshot_identifier,attr"`
	// GlobalClusterIdentifier: string, optional
	GlobalClusterIdentifier terra.StringValue `hcl:"global_cluster_identifier,attr"`
	// IamDatabaseAuthenticationEnabled: bool, optional
	IamDatabaseAuthenticationEnabled terra.BoolValue `hcl:"iam_database_authentication_enabled,attr"`
	// IamRoles: set of string, optional
	IamRoles terra.SetValue[terra.StringValue] `hcl:"iam_roles,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Iops: number, optional
	Iops terra.NumberValue `hcl:"iops,attr"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// ManageMasterUserPassword: bool, optional
	ManageMasterUserPassword terra.BoolValue `hcl:"manage_master_user_password,attr"`
	// MasterPassword: string, optional
	MasterPassword terra.StringValue `hcl:"master_password,attr"`
	// MasterUserSecretKmsKeyId: string, optional
	MasterUserSecretKmsKeyId terra.StringValue `hcl:"master_user_secret_kms_key_id,attr"`
	// MasterUsername: string, optional
	MasterUsername terra.StringValue `hcl:"master_username,attr"`
	// NetworkType: string, optional
	NetworkType terra.StringValue `hcl:"network_type,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// PreferredBackupWindow: string, optional
	PreferredBackupWindow terra.StringValue `hcl:"preferred_backup_window,attr"`
	// PreferredMaintenanceWindow: string, optional
	PreferredMaintenanceWindow terra.StringValue `hcl:"preferred_maintenance_window,attr"`
	// ReplicationSourceIdentifier: string, optional
	ReplicationSourceIdentifier terra.StringValue `hcl:"replication_source_identifier,attr"`
	// SkipFinalSnapshot: bool, optional
	SkipFinalSnapshot terra.BoolValue `hcl:"skip_final_snapshot,attr"`
	// SnapshotIdentifier: string, optional
	SnapshotIdentifier terra.StringValue `hcl:"snapshot_identifier,attr"`
	// SourceRegion: string, optional
	SourceRegion terra.StringValue `hcl:"source_region,attr"`
	// StorageEncrypted: bool, optional
	StorageEncrypted terra.BoolValue `hcl:"storage_encrypted,attr"`
	// StorageType: string, optional
	StorageType terra.StringValue `hcl:"storage_type,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"`
	// RestoreToPointInTime: optional
	RestoreToPointInTime *RestoreToPointInTime `hcl:"restore_to_point_in_time,block"`
	// S3Import: optional
	S3Import *S3Import `hcl:"s3_import,block"`
	// ScalingConfiguration: optional
	ScalingConfiguration *ScalingConfiguration `hcl:"scaling_configuration,block"`
	// Serverlessv2ScalingConfiguration: optional
	Serverlessv2ScalingConfiguration *Serverlessv2ScalingConfiguration `hcl:"serverlessv2_scaling_configuration,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_rds_cluster.

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

type DataMasterUserSecretAttributes

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

func (DataMasterUserSecretAttributes) InternalRef

func (mus DataMasterUserSecretAttributes) InternalRef() (terra.Reference, error)

func (DataMasterUserSecretAttributes) InternalTokens

func (mus DataMasterUserSecretAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataMasterUserSecretAttributes) InternalWithRef

func (DataMasterUserSecretAttributes) KmsKeyId

func (DataMasterUserSecretAttributes) SecretArn

func (DataMasterUserSecretAttributes) SecretStatus

type DataMasterUserSecretState

type DataMasterUserSecretState struct {
	KmsKeyId     string `json:"kms_key_id"`
	SecretArn    string `json:"secret_arn"`
	SecretStatus string `json:"secret_status"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_rds_cluster.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (arc *DataSource) Attributes() dataAwsRdsClusterAttributes

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 MasterUserSecretAttributes

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

func (MasterUserSecretAttributes) InternalRef

func (mus MasterUserSecretAttributes) InternalRef() (terra.Reference, error)

func (MasterUserSecretAttributes) InternalTokens

func (mus MasterUserSecretAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MasterUserSecretAttributes) InternalWithRef

func (MasterUserSecretAttributes) KmsKeyId

func (MasterUserSecretAttributes) SecretArn

func (MasterUserSecretAttributes) SecretStatus

func (mus MasterUserSecretAttributes) SecretStatus() terra.StringValue

type MasterUserSecretState

type MasterUserSecretState struct {
	KmsKeyId     string `json:"kms_key_id"`
	SecretArn    string `json:"secret_arn"`
	SecretStatus string `json:"secret_status"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (arc *Resource) Attributes() awsRdsClusterAttributes

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() (*awsRdsClusterState, bool)

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

func (*Resource) StateMust

func (arc *Resource) StateMust() *awsRdsClusterState

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 RestoreToPointInTime

type RestoreToPointInTime struct {
	// RestoreToTime: string, optional
	RestoreToTime terra.StringValue `hcl:"restore_to_time,attr"`
	// RestoreType: string, optional
	RestoreType terra.StringValue `hcl:"restore_type,attr"`
	// SourceClusterIdentifier: string, required
	SourceClusterIdentifier terra.StringValue `hcl:"source_cluster_identifier,attr" validate:"required"`
	// UseLatestRestorableTime: bool, optional
	UseLatestRestorableTime terra.BoolValue `hcl:"use_latest_restorable_time,attr"`
}

type RestoreToPointInTimeAttributes

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

func (RestoreToPointInTimeAttributes) InternalRef

func (rtpit RestoreToPointInTimeAttributes) InternalRef() (terra.Reference, error)

func (RestoreToPointInTimeAttributes) InternalTokens

func (rtpit RestoreToPointInTimeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RestoreToPointInTimeAttributes) InternalWithRef

func (RestoreToPointInTimeAttributes) RestoreToTime

func (rtpit RestoreToPointInTimeAttributes) RestoreToTime() terra.StringValue

func (RestoreToPointInTimeAttributes) RestoreType

func (rtpit RestoreToPointInTimeAttributes) RestoreType() terra.StringValue

func (RestoreToPointInTimeAttributes) SourceClusterIdentifier

func (rtpit RestoreToPointInTimeAttributes) SourceClusterIdentifier() terra.StringValue

func (RestoreToPointInTimeAttributes) UseLatestRestorableTime

func (rtpit RestoreToPointInTimeAttributes) UseLatestRestorableTime() terra.BoolValue

type RestoreToPointInTimeState

type RestoreToPointInTimeState struct {
	RestoreToTime           string `json:"restore_to_time"`
	RestoreType             string `json:"restore_type"`
	SourceClusterIdentifier string `json:"source_cluster_identifier"`
	UseLatestRestorableTime bool   `json:"use_latest_restorable_time"`
}

type S3Import

type S3Import struct {
	// BucketName: string, required
	BucketName terra.StringValue `hcl:"bucket_name,attr" validate:"required"`
	// BucketPrefix: string, optional
	BucketPrefix terra.StringValue `hcl:"bucket_prefix,attr"`
	// IngestionRole: string, required
	IngestionRole terra.StringValue `hcl:"ingestion_role,attr" validate:"required"`
	// SourceEngine: string, required
	SourceEngine terra.StringValue `hcl:"source_engine,attr" validate:"required"`
	// SourceEngineVersion: string, required
	SourceEngineVersion terra.StringValue `hcl:"source_engine_version,attr" validate:"required"`
}

type S3ImportAttributes

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

func (S3ImportAttributes) BucketName

func (si S3ImportAttributes) BucketName() terra.StringValue

func (S3ImportAttributes) BucketPrefix

func (si S3ImportAttributes) BucketPrefix() terra.StringValue

func (S3ImportAttributes) IngestionRole

func (si S3ImportAttributes) IngestionRole() terra.StringValue

func (S3ImportAttributes) InternalRef

func (si S3ImportAttributes) InternalRef() (terra.Reference, error)

func (S3ImportAttributes) InternalTokens

func (si S3ImportAttributes) InternalTokens() (hclwrite.Tokens, error)

func (S3ImportAttributes) InternalWithRef

func (si S3ImportAttributes) InternalWithRef(ref terra.Reference) S3ImportAttributes

func (S3ImportAttributes) SourceEngine

func (si S3ImportAttributes) SourceEngine() terra.StringValue

func (S3ImportAttributes) SourceEngineVersion

func (si S3ImportAttributes) SourceEngineVersion() terra.StringValue

type S3ImportState

type S3ImportState struct {
	BucketName          string `json:"bucket_name"`
	BucketPrefix        string `json:"bucket_prefix"`
	IngestionRole       string `json:"ingestion_role"`
	SourceEngine        string `json:"source_engine"`
	SourceEngineVersion string `json:"source_engine_version"`
}

type ScalingConfiguration

type ScalingConfiguration struct {
	// AutoPause: bool, optional
	AutoPause terra.BoolValue `hcl:"auto_pause,attr"`
	// MaxCapacity: number, optional
	MaxCapacity terra.NumberValue `hcl:"max_capacity,attr"`
	// MinCapacity: number, optional
	MinCapacity terra.NumberValue `hcl:"min_capacity,attr"`
	// SecondsUntilAutoPause: number, optional
	SecondsUntilAutoPause terra.NumberValue `hcl:"seconds_until_auto_pause,attr"`
	// TimeoutAction: string, optional
	TimeoutAction terra.StringValue `hcl:"timeout_action,attr"`
}

type ScalingConfigurationAttributes

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

func (ScalingConfigurationAttributes) AutoPause

func (ScalingConfigurationAttributes) InternalRef

func (ScalingConfigurationAttributes) InternalTokens

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

func (ScalingConfigurationAttributes) InternalWithRef

func (ScalingConfigurationAttributes) MaxCapacity

func (ScalingConfigurationAttributes) MinCapacity

func (ScalingConfigurationAttributes) SecondsUntilAutoPause

func (sc ScalingConfigurationAttributes) SecondsUntilAutoPause() terra.NumberValue

func (ScalingConfigurationAttributes) TimeoutAction

type ScalingConfigurationState

type ScalingConfigurationState struct {
	AutoPause             bool    `json:"auto_pause"`
	MaxCapacity           float64 `json:"max_capacity"`
	MinCapacity           float64 `json:"min_capacity"`
	SecondsUntilAutoPause float64 `json:"seconds_until_auto_pause"`
	TimeoutAction         string  `json:"timeout_action"`
}

type Serverlessv2ScalingConfiguration

type Serverlessv2ScalingConfiguration struct {
	// MaxCapacity: number, required
	MaxCapacity terra.NumberValue `hcl:"max_capacity,attr" validate:"required"`
	// MinCapacity: number, required
	MinCapacity terra.NumberValue `hcl:"min_capacity,attr" validate:"required"`
}

type Serverlessv2ScalingConfigurationAttributes

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

func (Serverlessv2ScalingConfigurationAttributes) InternalRef

func (Serverlessv2ScalingConfigurationAttributes) InternalTokens

func (Serverlessv2ScalingConfigurationAttributes) InternalWithRef

func (Serverlessv2ScalingConfigurationAttributes) MaxCapacity

func (Serverlessv2ScalingConfigurationAttributes) MinCapacity

type Serverlessv2ScalingConfigurationState

type Serverlessv2ScalingConfigurationState struct {
	MaxCapacity float64 `json:"max_capacity"`
	MinCapacity float64 `json:"min_capacity"`
}

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