forked from cloudfoundry-community/pe-rds-broker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_cluster.go
39 lines (35 loc) · 1.13 KB
/
db_cluster.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package awsrds
import (
"errors"
)
type DBCluster interface {
Describe(ID string) (DBClusterDetails, error)
Create(ID string, dbClusterDetails DBClusterDetails) error
Modify(ID string, dbClusterDetails DBClusterDetails, applyImmediately bool) error
Delete(ID string, skipFinalSnapshot bool) error
}
type DBClusterDetails struct {
Identifier string
Status string
AllocatedStorage int64
AvailabilityZones []string
BackupRetentionPeriod int64
CharacterSetName string
DBClusterParameterGroupName string
DBSubnetGroupName string
DatabaseName string
Endpoint string
Engine string
EngineVersion string
MasterUsername string
MasterUserPassword string
OptionGroupName string
Port int64
PreferredBackupWindow string
PreferredMaintenanceWindow string
VpcSecurityGroupIds []string
Tags map[string]string
}
var (
ErrDBClusterDoesNotExist = errors.New("rds db cluster does not exist")
)