-
Notifications
You must be signed in to change notification settings - Fork 17
/
IClusterEngine.go
87 lines (75 loc) · 2.35 KB
/
IClusterEngine.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package awsrds
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/v2/awssecretsmanager"
"github.com/aws/constructs-go/constructs/v10"
)
// The interface representing a database cluster (as opposed to instance) engine.
type IClusterEngine interface {
IEngine
// Method called when the engine is used to create a new cluster.
BindToCluster(scope constructs.Construct, options *ClusterEngineBindOptions) *ClusterEngineConfig
// Whether the IAM Roles used for data importing and exporting need to be combined for this Engine, or can they be kept separate.
// Default: false.
//
CombineImportAndExportRoles() *bool
// The application used by this engine to perform rotation for a multi-user scenario.
MultiUserRotationApplication() awssecretsmanager.SecretRotationApplication
// The application used by this engine to perform rotation for a single-user scenario.
SingleUserRotationApplication() awssecretsmanager.SecretRotationApplication
// The log types that are available with this engine type.
SupportedLogTypes() *[]*string
}
// The jsii proxy for IClusterEngine
type jsiiProxy_IClusterEngine struct {
jsiiProxy_IEngine
}
func (i *jsiiProxy_IClusterEngine) BindToCluster(scope constructs.Construct, options *ClusterEngineBindOptions) *ClusterEngineConfig {
if err := i.validateBindToClusterParameters(scope, options); err != nil {
panic(err)
}
var returns *ClusterEngineConfig
_jsii_.Invoke(
i,
"bindToCluster",
[]interface{}{scope, options},
&returns,
)
return returns
}
func (j *jsiiProxy_IClusterEngine) CombineImportAndExportRoles() *bool {
var returns *bool
_jsii_.Get(
j,
"combineImportAndExportRoles",
&returns,
)
return returns
}
func (j *jsiiProxy_IClusterEngine) MultiUserRotationApplication() awssecretsmanager.SecretRotationApplication {
var returns awssecretsmanager.SecretRotationApplication
_jsii_.Get(
j,
"multiUserRotationApplication",
&returns,
)
return returns
}
func (j *jsiiProxy_IClusterEngine) SingleUserRotationApplication() awssecretsmanager.SecretRotationApplication {
var returns awssecretsmanager.SecretRotationApplication
_jsii_.Get(
j,
"singleUserRotationApplication",
&returns,
)
return returns
}
func (j *jsiiProxy_IClusterEngine) SupportedLogTypes() *[]*string {
var returns *[]*string
_jsii_.Get(
j,
"supportedLogTypes",
&returns,
)
return returns
}