-
Notifications
You must be signed in to change notification settings - Fork 17
/
IParameterGroup.go
83 lines (69 loc) · 2.04 KB
/
IParameterGroup.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
package awsrds
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/v2"
"github.com/aws/aws-cdk-go/awscdk/v2/awsrds/internal"
)
// A parameter group.
//
// Represents both a cluster parameter group,
// and an instance parameter group.
type IParameterGroup interface {
awscdk.IResource
// Adds a parameter to this group.
//
// If this is an imported parameter group,
// this method does nothing.
//
// Returns: true if the parameter was actually added
// (i.e., this ParameterGroup is not imported),
// false otherwise.
AddParameter(key *string, value *string) *bool
// Method called when this Parameter Group is used when defining a database cluster.
BindToCluster(options *ParameterGroupClusterBindOptions) *ParameterGroupClusterConfig
// Method called when this Parameter Group is used when defining a database instance.
BindToInstance(options *ParameterGroupInstanceBindOptions) *ParameterGroupInstanceConfig
}
// The jsii proxy for IParameterGroup
type jsiiProxy_IParameterGroup struct {
internal.Type__awscdkIResource
}
func (i *jsiiProxy_IParameterGroup) AddParameter(key *string, value *string) *bool {
if err := i.validateAddParameterParameters(key, value); err != nil {
panic(err)
}
var returns *bool
_jsii_.Invoke(
i,
"addParameter",
[]interface{}{key, value},
&returns,
)
return returns
}
func (i *jsiiProxy_IParameterGroup) BindToCluster(options *ParameterGroupClusterBindOptions) *ParameterGroupClusterConfig {
if err := i.validateBindToClusterParameters(options); err != nil {
panic(err)
}
var returns *ParameterGroupClusterConfig
_jsii_.Invoke(
i,
"bindToCluster",
[]interface{}{options},
&returns,
)
return returns
}
func (i *jsiiProxy_IParameterGroup) BindToInstance(options *ParameterGroupInstanceBindOptions) *ParameterGroupInstanceConfig {
if err := i.validateBindToInstanceParameters(options); err != nil {
panic(err)
}
var returns *ParameterGroupInstanceConfig
_jsii_.Invoke(
i,
"bindToInstance",
[]interface{}{options},
&returns,
)
return returns
}