-
Notifications
You must be signed in to change notification settings - Fork 5
/
cluster.go
380 lines (356 loc) · 21.5 KB
/
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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package polardb
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Provides a PolarDB cluster resource. A PolarDB cluster is an isolated database
// environment in the cloud. A PolarDB cluster can contain multiple user-created
// databases.
//
// > **NOTE:** Available in v1.66.0+.
//
// ## Example Usage
// ### Create a PolarDB MySQL cluster
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud"
// "github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/polardb"
// "github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi/config"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// cfg := config.New(ctx, "")
// name := "polardbClusterconfig"
// if param := cfg.Get("name"); param != "" {
// name = param
// }
// creation := "PolarDB"
// if param := cfg.Get("creation"); param != "" {
// creation = param
// }
// opt0 := creation
// defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
// AvailableResourceCreation: &opt0,
// }, nil)
// if err != nil {
// return err
// }
// defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
// CidrBlock: pulumi.String("172.16.0.0/16"),
// })
// if err != nil {
// return err
// }
// defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
// VpcId: defaultNetwork.ID(),
// CidrBlock: pulumi.String("172.16.0.0/24"),
// AvailabilityZone: pulumi.String(defaultZones.Zones[0].Id),
// })
// if err != nil {
// return err
// }
// _, err = polardb.NewCluster(ctx, "defaultCluster", &polardb.ClusterArgs{
// DbType: pulumi.String("MySQL"),
// DbVersion: pulumi.String("5.6"),
// DbNodeClass: pulumi.String("polar.mysql.x4.medium"),
// PayType: pulumi.String("PostPaid"),
// Description: pulumi.String(name),
// VswitchId: defaultSwitch.ID(),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// PolarDB cluster can be imported using the id, e.g.
//
// ```sh
// $ pulumi import alicloud:polardb/cluster:Cluster example pc-abc12345678
// ```
type Cluster struct {
pulumi.CustomResourceState
// Auto-renewal period of an cluster, in the unit of the month. It is valid when payType is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.
AutoRenewPeriod pulumi.IntPtrOutput `pulumi:"autoRenewPeriod"`
// (Available in 1.81.0+) PolarDB cluster connection string. When securityIps is configured, the address of cluster type endpoint will be returned, and if only "127.0.0.1" is configured, it will also be an empty string.
ConnectionString pulumi.StringOutput `pulumi:"connectionString"`
// The dbNodeClass of cluster node.
DbNodeClass pulumi.StringOutput `pulumi:"dbNodeClass"`
// Number of the PolarDB cluster nodes, default is 2(Each cluster must contain at least a primary node and a read-only node). Add/remove nodes by modifying this parameter, valid values: [2~16].
// **NOTE:** To avoid adding or removing multiple read-only nodes by mistake, the system allows you to add or remove one read-only node at a time.
DbNodeCount pulumi.IntPtrOutput `pulumi:"dbNodeCount"`
// Database type. Value options: MySQL, Oracle, PostgreSQL.
DbType pulumi.StringOutput `pulumi:"dbType"`
// Database version. Value options can refer to the latest docs [CreateDBCluster](https://help.aliyun.com/document_detail/98169.html) `DBVersion`.
DbVersion pulumi.StringOutput `pulumi:"dbVersion"`
// The description of cluster.
Description pulumi.StringPtrOutput `pulumi:"description"`
// Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
MaintainTime pulumi.StringOutput `pulumi:"maintainTime"`
// Use as `dbNodeClass` change class, define upgrade or downgrade. Valid values are `Upgrade`, `Downgrade`, Default to `Upgrade`.
ModifyType pulumi.StringPtrOutput `pulumi:"modifyType"`
// Set of parameters needs to be set after DB cluster was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) .
Parameters ClusterParameterArrayOutput `pulumi:"parameters"`
// Valid values are `PrePaid`, `PostPaid`, Default to `PostPaid`. Currently, the resource can not supports change pay type.
PayType pulumi.StringPtrOutput `pulumi:"payType"`
// The duration that you will buy DB cluster (in month). It is valid when payType is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.
Period pulumi.IntPtrOutput `pulumi:"period"`
// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
RenewalStatus pulumi.StringPtrOutput `pulumi:"renewalStatus"`
// The ID of resource group which the PolarDB cluster belongs. If not specified, then it belongs to the default resource group.
ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
// List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
SecurityIps pulumi.StringArrayOutput `pulumi:"securityIps"`
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags pulumi.MapOutput `pulumi:"tags"`
// The virtual switch ID to launch DB instances in one VPC.
VswitchId pulumi.StringPtrOutput `pulumi:"vswitchId"`
// The Zone to launch the DB cluster. it supports multiple zone.
ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}
// NewCluster registers a new resource with the given unique name, arguments, and options.
func NewCluster(ctx *pulumi.Context,
name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.DbNodeClass == nil {
return nil, errors.New("invalid value for required argument 'DbNodeClass'")
}
if args.DbType == nil {
return nil, errors.New("invalid value for required argument 'DbType'")
}
if args.DbVersion == nil {
return nil, errors.New("invalid value for required argument 'DbVersion'")
}
var resource Cluster
err := ctx.RegisterResource("alicloud:polardb/cluster:Cluster", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetCluster gets an existing Cluster resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetCluster(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error) {
var resource Cluster
err := ctx.ReadResource("alicloud:polardb/cluster:Cluster", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Cluster resources.
type clusterState struct {
// Auto-renewal period of an cluster, in the unit of the month. It is valid when payType is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.
AutoRenewPeriod *int `pulumi:"autoRenewPeriod"`
// (Available in 1.81.0+) PolarDB cluster connection string. When securityIps is configured, the address of cluster type endpoint will be returned, and if only "127.0.0.1" is configured, it will also be an empty string.
ConnectionString *string `pulumi:"connectionString"`
// The dbNodeClass of cluster node.
DbNodeClass *string `pulumi:"dbNodeClass"`
// Number of the PolarDB cluster nodes, default is 2(Each cluster must contain at least a primary node and a read-only node). Add/remove nodes by modifying this parameter, valid values: [2~16].
// **NOTE:** To avoid adding or removing multiple read-only nodes by mistake, the system allows you to add or remove one read-only node at a time.
DbNodeCount *int `pulumi:"dbNodeCount"`
// Database type. Value options: MySQL, Oracle, PostgreSQL.
DbType *string `pulumi:"dbType"`
// Database version. Value options can refer to the latest docs [CreateDBCluster](https://help.aliyun.com/document_detail/98169.html) `DBVersion`.
DbVersion *string `pulumi:"dbVersion"`
// The description of cluster.
Description *string `pulumi:"description"`
// Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
MaintainTime *string `pulumi:"maintainTime"`
// Use as `dbNodeClass` change class, define upgrade or downgrade. Valid values are `Upgrade`, `Downgrade`, Default to `Upgrade`.
ModifyType *string `pulumi:"modifyType"`
// Set of parameters needs to be set after DB cluster was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) .
Parameters []ClusterParameter `pulumi:"parameters"`
// Valid values are `PrePaid`, `PostPaid`, Default to `PostPaid`. Currently, the resource can not supports change pay type.
PayType *string `pulumi:"payType"`
// The duration that you will buy DB cluster (in month). It is valid when payType is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.
Period *int `pulumi:"period"`
// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
RenewalStatus *string `pulumi:"renewalStatus"`
// The ID of resource group which the PolarDB cluster belongs. If not specified, then it belongs to the default resource group.
ResourceGroupId *string `pulumi:"resourceGroupId"`
// List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
SecurityIps []string `pulumi:"securityIps"`
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags map[string]interface{} `pulumi:"tags"`
// The virtual switch ID to launch DB instances in one VPC.
VswitchId *string `pulumi:"vswitchId"`
// The Zone to launch the DB cluster. it supports multiple zone.
ZoneId *string `pulumi:"zoneId"`
}
type ClusterState struct {
// Auto-renewal period of an cluster, in the unit of the month. It is valid when payType is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.
AutoRenewPeriod pulumi.IntPtrInput
// (Available in 1.81.0+) PolarDB cluster connection string. When securityIps is configured, the address of cluster type endpoint will be returned, and if only "127.0.0.1" is configured, it will also be an empty string.
ConnectionString pulumi.StringPtrInput
// The dbNodeClass of cluster node.
DbNodeClass pulumi.StringPtrInput
// Number of the PolarDB cluster nodes, default is 2(Each cluster must contain at least a primary node and a read-only node). Add/remove nodes by modifying this parameter, valid values: [2~16].
// **NOTE:** To avoid adding or removing multiple read-only nodes by mistake, the system allows you to add or remove one read-only node at a time.
DbNodeCount pulumi.IntPtrInput
// Database type. Value options: MySQL, Oracle, PostgreSQL.
DbType pulumi.StringPtrInput
// Database version. Value options can refer to the latest docs [CreateDBCluster](https://help.aliyun.com/document_detail/98169.html) `DBVersion`.
DbVersion pulumi.StringPtrInput
// The description of cluster.
Description pulumi.StringPtrInput
// Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
MaintainTime pulumi.StringPtrInput
// Use as `dbNodeClass` change class, define upgrade or downgrade. Valid values are `Upgrade`, `Downgrade`, Default to `Upgrade`.
ModifyType pulumi.StringPtrInput
// Set of parameters needs to be set after DB cluster was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) .
Parameters ClusterParameterArrayInput
// Valid values are `PrePaid`, `PostPaid`, Default to `PostPaid`. Currently, the resource can not supports change pay type.
PayType pulumi.StringPtrInput
// The duration that you will buy DB cluster (in month). It is valid when payType is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.
Period pulumi.IntPtrInput
// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
RenewalStatus pulumi.StringPtrInput
// The ID of resource group which the PolarDB cluster belongs. If not specified, then it belongs to the default resource group.
ResourceGroupId pulumi.StringPtrInput
// List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
SecurityIps pulumi.StringArrayInput
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags pulumi.MapInput
// The virtual switch ID to launch DB instances in one VPC.
VswitchId pulumi.StringPtrInput
// The Zone to launch the DB cluster. it supports multiple zone.
ZoneId pulumi.StringPtrInput
}
func (ClusterState) ElementType() reflect.Type {
return reflect.TypeOf((*clusterState)(nil)).Elem()
}
type clusterArgs struct {
// Auto-renewal period of an cluster, in the unit of the month. It is valid when payType is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.
AutoRenewPeriod *int `pulumi:"autoRenewPeriod"`
// The dbNodeClass of cluster node.
DbNodeClass string `pulumi:"dbNodeClass"`
// Number of the PolarDB cluster nodes, default is 2(Each cluster must contain at least a primary node and a read-only node). Add/remove nodes by modifying this parameter, valid values: [2~16].
// **NOTE:** To avoid adding or removing multiple read-only nodes by mistake, the system allows you to add or remove one read-only node at a time.
DbNodeCount *int `pulumi:"dbNodeCount"`
// Database type. Value options: MySQL, Oracle, PostgreSQL.
DbType string `pulumi:"dbType"`
// Database version. Value options can refer to the latest docs [CreateDBCluster](https://help.aliyun.com/document_detail/98169.html) `DBVersion`.
DbVersion string `pulumi:"dbVersion"`
// The description of cluster.
Description *string `pulumi:"description"`
// Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
MaintainTime *string `pulumi:"maintainTime"`
// Use as `dbNodeClass` change class, define upgrade or downgrade. Valid values are `Upgrade`, `Downgrade`, Default to `Upgrade`.
ModifyType *string `pulumi:"modifyType"`
// Set of parameters needs to be set after DB cluster was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) .
Parameters []ClusterParameter `pulumi:"parameters"`
// Valid values are `PrePaid`, `PostPaid`, Default to `PostPaid`. Currently, the resource can not supports change pay type.
PayType *string `pulumi:"payType"`
// The duration that you will buy DB cluster (in month). It is valid when payType is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.
Period *int `pulumi:"period"`
// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
RenewalStatus *string `pulumi:"renewalStatus"`
// The ID of resource group which the PolarDB cluster belongs. If not specified, then it belongs to the default resource group.
ResourceGroupId *string `pulumi:"resourceGroupId"`
// List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
SecurityIps []string `pulumi:"securityIps"`
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags map[string]interface{} `pulumi:"tags"`
// The virtual switch ID to launch DB instances in one VPC.
VswitchId *string `pulumi:"vswitchId"`
// The Zone to launch the DB cluster. it supports multiple zone.
ZoneId *string `pulumi:"zoneId"`
}
// The set of arguments for constructing a Cluster resource.
type ClusterArgs struct {
// Auto-renewal period of an cluster, in the unit of the month. It is valid when payType is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.
AutoRenewPeriod pulumi.IntPtrInput
// The dbNodeClass of cluster node.
DbNodeClass pulumi.StringInput
// Number of the PolarDB cluster nodes, default is 2(Each cluster must contain at least a primary node and a read-only node). Add/remove nodes by modifying this parameter, valid values: [2~16].
// **NOTE:** To avoid adding or removing multiple read-only nodes by mistake, the system allows you to add or remove one read-only node at a time.
DbNodeCount pulumi.IntPtrInput
// Database type. Value options: MySQL, Oracle, PostgreSQL.
DbType pulumi.StringInput
// Database version. Value options can refer to the latest docs [CreateDBCluster](https://help.aliyun.com/document_detail/98169.html) `DBVersion`.
DbVersion pulumi.StringInput
// The description of cluster.
Description pulumi.StringPtrInput
// Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
MaintainTime pulumi.StringPtrInput
// Use as `dbNodeClass` change class, define upgrade or downgrade. Valid values are `Upgrade`, `Downgrade`, Default to `Upgrade`.
ModifyType pulumi.StringPtrInput
// Set of parameters needs to be set after DB cluster was launched. Available parameters can refer to the latest docs [View database parameter templates](https://www.alibabacloud.com/help/doc-detail/26284.htm) .
Parameters ClusterParameterArrayInput
// Valid values are `PrePaid`, `PostPaid`, Default to `PostPaid`. Currently, the resource can not supports change pay type.
PayType pulumi.StringPtrInput
// The duration that you will buy DB cluster (in month). It is valid when payType is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.
Period pulumi.IntPtrInput
// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
RenewalStatus pulumi.StringPtrInput
// The ID of resource group which the PolarDB cluster belongs. If not specified, then it belongs to the default resource group.
ResourceGroupId pulumi.StringPtrInput
// List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
SecurityIps pulumi.StringArrayInput
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags pulumi.MapInput
// The virtual switch ID to launch DB instances in one VPC.
VswitchId pulumi.StringPtrInput
// The Zone to launch the DB cluster. it supports multiple zone.
ZoneId pulumi.StringPtrInput
}
func (ClusterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*clusterArgs)(nil)).Elem()
}
type ClusterInput interface {
pulumi.Input
ToClusterOutput() ClusterOutput
ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}
func (Cluster) ElementType() reflect.Type {
return reflect.TypeOf((*Cluster)(nil)).Elem()
}
func (i Cluster) ToClusterOutput() ClusterOutput {
return i.ToClusterOutputWithContext(context.Background())
}
func (i Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterOutput)
}
type ClusterOutput struct {
*pulumi.OutputState
}
func (ClusterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterOutput)(nil)).Elem()
}
func (o ClusterOutput) ToClusterOutput() ClusterOutput {
return o
}
func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput {
return o
}
func init() {
pulumi.RegisterOutputType(ClusterOutput{})
}