/
getCluster.go
399 lines (342 loc) · 23.8 KB
/
getCluster.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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package mongodbatlas
import (
"context"
"reflect"
"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// `Cluster` describes a Cluster. The data source requires your Project ID.
//
// > **NOTE:** Groups and projects are synonymous terms. You may find groupId in the official documentation.
//
// > **IMPORTANT:**
// <br> • Multi Region Cluster: The `Cluster` data source doesn't return the `containerId` for each region utilized by the cluster. For retrieving the `containerId`, we recommend the `AdvancedCluster` data source instead.
// <br> • Changes to cluster configurations can affect costs. Before making changes, please see [Billing](https://docs.atlas.mongodb.com/billing/).
// <br> • If your Atlas project contains a custom role that uses actions introduced in a specific MongoDB version, you cannot create a cluster with a MongoDB version less than that version unless you delete the custom role.
func LookupCluster(ctx *pulumi.Context, args *LookupClusterArgs, opts ...pulumi.InvokeOption) (*LookupClusterResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupClusterResult
err := ctx.Invoke("mongodbatlas:index/getCluster:getCluster", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getCluster.
type LookupClusterArgs struct {
// Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
Name string `pulumi:"name"`
// The unique ID for the project to create the database user.
ProjectId string `pulumi:"projectId"`
}
// A collection of values returned by getCluster.
type LookupClusterResult struct {
// Get the advanced configuration options. See Advanced Configuration below for more details.
AdvancedConfigurations []GetClusterAdvancedConfiguration `pulumi:"advancedConfigurations"`
// Specifies whether cluster tier auto-scaling is enabled. The default is false.
AutoScalingComputeEnabled bool `pulumi:"autoScalingComputeEnabled"`
// Specifies whether cluster tier auto-down-scaling is enabled.
AutoScalingComputeScaleDownEnabled bool `pulumi:"autoScalingComputeScaleDownEnabled"`
// Indicates whether disk auto-scaling is enabled.
AutoScalingDiskGbEnabled bool `pulumi:"autoScalingDiskGbEnabled"`
// Indicates Cloud service provider on which the server for a multi-tenant cluster is provisioned.
BackingProviderName string `pulumi:"backingProviderName"`
// Legacy Option, Indicates whether Atlas continuous backups are enabled for the cluster.
BackupEnabled bool `pulumi:"backupEnabled"`
// Indicates BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
BiConnectorConfigs []GetClusterBiConnectorConfig `pulumi:"biConnectorConfigs"`
// Indicates the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
ClusterType string `pulumi:"clusterType"`
// Set of connection strings that your applications use to connect to this cluster. More info in [Connection-strings](https://docs.mongodb.com/manual/reference/connection-string/). Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see [Connection String Options](https://docs.atlas.mongodb.com/reference/faq/connection-changes/).
ConnectionStrings []GetClusterConnectionString `pulumi:"connectionStrings"`
// The Network Peering Container ID.
ContainerId string `pulumi:"containerId"`
// Indicates the size in gigabytes of the server’s root volume (AWS/GCP Only).
DiskSizeGb float64 `pulumi:"diskSizeGb"`
// Indicates whether Encryption at Rest is enabled or disabled.
EncryptionAtRestProvider string `pulumi:"encryptionAtRestProvider"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below. **DEPRECATED** Use `tags` instead.
//
// Deprecated: this parameter is deprecated and will be removed by September 2024, please transition to tags
Labels []GetClusterLabel `pulumi:"labels"`
// Indicates the version of the cluster to deploy.
MongoDbMajorVersion string `pulumi:"mongoDbMajorVersion"`
// Version of MongoDB the cluster runs, in `major-version`.`minor-version` format.
MongoDbVersion string `pulumi:"mongoDbVersion"`
// Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
MongoUri string `pulumi:"mongoUri"`
// Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
MongoUriUpdated string `pulumi:"mongoUriUpdated"`
// Describes connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
MongoUriWithOptions string `pulumi:"mongoUriWithOptions"`
// The name of the current plugin
Name string `pulumi:"name"`
// Number of shards to deploy in the specified zone.
NumShards int `pulumi:"numShards"`
// Flag that indicates whether the cluster is paused or not.
Paused bool `pulumi:"paused"`
// Flag that indicates if the cluster uses Continuous Cloud Backup.
PitEnabled bool `pulumi:"pitEnabled"`
ProjectId string `pulumi:"projectId"`
// Maximum instance size to which your cluster can automatically scale.
ProviderAutoScalingComputeMaxInstanceSize string `pulumi:"providerAutoScalingComputeMaxInstanceSize"`
// Minimum instance size to which your cluster can automatically scale.
ProviderAutoScalingComputeMinInstanceSize string `pulumi:"providerAutoScalingComputeMinInstanceSize"`
ProviderBackupEnabled bool `pulumi:"providerBackupEnabled"`
// Indicates the maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
ProviderDiskIops int `pulumi:"providerDiskIops"`
// Describes Azure disk type of the server’s root volume (Azure Only).
ProviderDiskTypeName string `pulumi:"providerDiskTypeName"`
// **(DEPRECATED)** Indicates whether the Amazon EBS encryption is enabled. This feature encrypts the server’s root volume for both data at rest within the volume and data moving between the volume and the instance. By default this attribute is always enabled, per deprecation process showing the real value at `providerEncryptEbsVolumeFlag` computed attribute.
ProviderEncryptEbsVolume bool `pulumi:"providerEncryptEbsVolume"`
ProviderEncryptEbsVolumeFlag bool `pulumi:"providerEncryptEbsVolumeFlag"`
// Atlas provides different instance sizes, each with a default storage capacity and RAM size.
ProviderInstanceSizeName string `pulumi:"providerInstanceSizeName"`
// Indicates the cloud service provider on which the servers are provisioned.
ProviderName string `pulumi:"providerName"`
// Indicates Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for [AWS](https://docs.atlas.mongodb.com/reference/amazon-aws/), [GCP](https://docs.atlas.mongodb.com/reference/google-gcp/), [Azure](https://docs.atlas.mongodb.com/reference/microsoft-azure/).
ProviderRegionName string `pulumi:"providerRegionName"`
// Indicates the type of the volume. The possible values are: `STANDARD` and `PROVISIONED`.
// > **NOTE:** `STANDARD` is not available for NVME clusters.
ProviderVolumeType string `pulumi:"providerVolumeType"`
// (Deprecated) Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
ReplicationFactor int `pulumi:"replicationFactor"`
// Configuration for cluster regions. See Replication Spec below for more details.
ReplicationSpecs []GetClusterReplicationSpec `pulumi:"replicationSpecs"`
// current snapshot schedule and retention settings for the cluster.
SnapshotBackupPolicies []GetClusterSnapshotBackupPolicy `pulumi:"snapshotBackupPolicies"`
// Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
SrvAddress string `pulumi:"srvAddress"`
// Indicates the current state of the cluster. The possible states are:
// - IDLE
// - CREATING
// - UPDATING
// - DELETING
// - DELETED
// - REPAIRING
StateName string `pulumi:"stateName"`
// Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below.
Tags []GetClusterTag `pulumi:"tags"`
// Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
TerminationProtectionEnabled bool `pulumi:"terminationProtectionEnabled"`
// Release cadence that Atlas uses for this cluster.
VersionReleaseSystem string `pulumi:"versionReleaseSystem"`
}
func LookupClusterOutput(ctx *pulumi.Context, args LookupClusterOutputArgs, opts ...pulumi.InvokeOption) LookupClusterResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupClusterResult, error) {
args := v.(LookupClusterArgs)
r, err := LookupCluster(ctx, &args, opts...)
var s LookupClusterResult
if r != nil {
s = *r
}
return s, err
}).(LookupClusterResultOutput)
}
// A collection of arguments for invoking getCluster.
type LookupClusterOutputArgs struct {
// Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
Name pulumi.StringInput `pulumi:"name"`
// The unique ID for the project to create the database user.
ProjectId pulumi.StringInput `pulumi:"projectId"`
}
func (LookupClusterOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupClusterArgs)(nil)).Elem()
}
// A collection of values returned by getCluster.
type LookupClusterResultOutput struct{ *pulumi.OutputState }
func (LookupClusterResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupClusterResult)(nil)).Elem()
}
func (o LookupClusterResultOutput) ToLookupClusterResultOutput() LookupClusterResultOutput {
return o
}
func (o LookupClusterResultOutput) ToLookupClusterResultOutputWithContext(ctx context.Context) LookupClusterResultOutput {
return o
}
// Get the advanced configuration options. See Advanced Configuration below for more details.
func (o LookupClusterResultOutput) AdvancedConfigurations() GetClusterAdvancedConfigurationArrayOutput {
return o.ApplyT(func(v LookupClusterResult) []GetClusterAdvancedConfiguration { return v.AdvancedConfigurations }).(GetClusterAdvancedConfigurationArrayOutput)
}
// Specifies whether cluster tier auto-scaling is enabled. The default is false.
func (o LookupClusterResultOutput) AutoScalingComputeEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.AutoScalingComputeEnabled }).(pulumi.BoolOutput)
}
// Specifies whether cluster tier auto-down-scaling is enabled.
func (o LookupClusterResultOutput) AutoScalingComputeScaleDownEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.AutoScalingComputeScaleDownEnabled }).(pulumi.BoolOutput)
}
// Indicates whether disk auto-scaling is enabled.
func (o LookupClusterResultOutput) AutoScalingDiskGbEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.AutoScalingDiskGbEnabled }).(pulumi.BoolOutput)
}
// Indicates Cloud service provider on which the server for a multi-tenant cluster is provisioned.
func (o LookupClusterResultOutput) BackingProviderName() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.BackingProviderName }).(pulumi.StringOutput)
}
// Legacy Option, Indicates whether Atlas continuous backups are enabled for the cluster.
func (o LookupClusterResultOutput) BackupEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.BackupEnabled }).(pulumi.BoolOutput)
}
// Indicates BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
func (o LookupClusterResultOutput) BiConnectorConfigs() GetClusterBiConnectorConfigArrayOutput {
return o.ApplyT(func(v LookupClusterResult) []GetClusterBiConnectorConfig { return v.BiConnectorConfigs }).(GetClusterBiConnectorConfigArrayOutput)
}
// Indicates the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
func (o LookupClusterResultOutput) ClusterType() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ClusterType }).(pulumi.StringOutput)
}
// Set of connection strings that your applications use to connect to this cluster. More info in [Connection-strings](https://docs.mongodb.com/manual/reference/connection-string/). Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see [Connection String Options](https://docs.atlas.mongodb.com/reference/faq/connection-changes/).
func (o LookupClusterResultOutput) ConnectionStrings() GetClusterConnectionStringArrayOutput {
return o.ApplyT(func(v LookupClusterResult) []GetClusterConnectionString { return v.ConnectionStrings }).(GetClusterConnectionStringArrayOutput)
}
// The Network Peering Container ID.
func (o LookupClusterResultOutput) ContainerId() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ContainerId }).(pulumi.StringOutput)
}
// Indicates the size in gigabytes of the server’s root volume (AWS/GCP Only).
func (o LookupClusterResultOutput) DiskSizeGb() pulumi.Float64Output {
return o.ApplyT(func(v LookupClusterResult) float64 { return v.DiskSizeGb }).(pulumi.Float64Output)
}
// Indicates whether Encryption at Rest is enabled or disabled.
func (o LookupClusterResultOutput) EncryptionAtRestProvider() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.EncryptionAtRestProvider }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupClusterResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.Id }).(pulumi.StringOutput)
}
// Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below. **DEPRECATED** Use `tags` instead.
//
// Deprecated: this parameter is deprecated and will be removed by September 2024, please transition to tags
func (o LookupClusterResultOutput) Labels() GetClusterLabelArrayOutput {
return o.ApplyT(func(v LookupClusterResult) []GetClusterLabel { return v.Labels }).(GetClusterLabelArrayOutput)
}
// Indicates the version of the cluster to deploy.
func (o LookupClusterResultOutput) MongoDbMajorVersion() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.MongoDbMajorVersion }).(pulumi.StringOutput)
}
// Version of MongoDB the cluster runs, in `major-version`.`minor-version` format.
func (o LookupClusterResultOutput) MongoDbVersion() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.MongoDbVersion }).(pulumi.StringOutput)
}
// Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
func (o LookupClusterResultOutput) MongoUri() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.MongoUri }).(pulumi.StringOutput)
}
// Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
func (o LookupClusterResultOutput) MongoUriUpdated() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.MongoUriUpdated }).(pulumi.StringOutput)
}
// Describes connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
func (o LookupClusterResultOutput) MongoUriWithOptions() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.MongoUriWithOptions }).(pulumi.StringOutput)
}
// The name of the current plugin
func (o LookupClusterResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.Name }).(pulumi.StringOutput)
}
// Number of shards to deploy in the specified zone.
func (o LookupClusterResultOutput) NumShards() pulumi.IntOutput {
return o.ApplyT(func(v LookupClusterResult) int { return v.NumShards }).(pulumi.IntOutput)
}
// Flag that indicates whether the cluster is paused or not.
func (o LookupClusterResultOutput) Paused() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.Paused }).(pulumi.BoolOutput)
}
// Flag that indicates if the cluster uses Continuous Cloud Backup.
func (o LookupClusterResultOutput) PitEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.PitEnabled }).(pulumi.BoolOutput)
}
func (o LookupClusterResultOutput) ProjectId() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ProjectId }).(pulumi.StringOutput)
}
// Maximum instance size to which your cluster can automatically scale.
func (o LookupClusterResultOutput) ProviderAutoScalingComputeMaxInstanceSize() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ProviderAutoScalingComputeMaxInstanceSize }).(pulumi.StringOutput)
}
// Minimum instance size to which your cluster can automatically scale.
func (o LookupClusterResultOutput) ProviderAutoScalingComputeMinInstanceSize() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ProviderAutoScalingComputeMinInstanceSize }).(pulumi.StringOutput)
}
func (o LookupClusterResultOutput) ProviderBackupEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.ProviderBackupEnabled }).(pulumi.BoolOutput)
}
// Indicates the maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
func (o LookupClusterResultOutput) ProviderDiskIops() pulumi.IntOutput {
return o.ApplyT(func(v LookupClusterResult) int { return v.ProviderDiskIops }).(pulumi.IntOutput)
}
// Describes Azure disk type of the server’s root volume (Azure Only).
func (o LookupClusterResultOutput) ProviderDiskTypeName() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ProviderDiskTypeName }).(pulumi.StringOutput)
}
// **(DEPRECATED)** Indicates whether the Amazon EBS encryption is enabled. This feature encrypts the server’s root volume for both data at rest within the volume and data moving between the volume and the instance. By default this attribute is always enabled, per deprecation process showing the real value at `providerEncryptEbsVolumeFlag` computed attribute.
func (o LookupClusterResultOutput) ProviderEncryptEbsVolume() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.ProviderEncryptEbsVolume }).(pulumi.BoolOutput)
}
func (o LookupClusterResultOutput) ProviderEncryptEbsVolumeFlag() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.ProviderEncryptEbsVolumeFlag }).(pulumi.BoolOutput)
}
// Atlas provides different instance sizes, each with a default storage capacity and RAM size.
func (o LookupClusterResultOutput) ProviderInstanceSizeName() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ProviderInstanceSizeName }).(pulumi.StringOutput)
}
// Indicates the cloud service provider on which the servers are provisioned.
func (o LookupClusterResultOutput) ProviderName() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ProviderName }).(pulumi.StringOutput)
}
// Indicates Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for [AWS](https://docs.atlas.mongodb.com/reference/amazon-aws/), [GCP](https://docs.atlas.mongodb.com/reference/google-gcp/), [Azure](https://docs.atlas.mongodb.com/reference/microsoft-azure/).
func (o LookupClusterResultOutput) ProviderRegionName() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ProviderRegionName }).(pulumi.StringOutput)
}
// Indicates the type of the volume. The possible values are: `STANDARD` and `PROVISIONED`.
// > **NOTE:** `STANDARD` is not available for NVME clusters.
func (o LookupClusterResultOutput) ProviderVolumeType() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.ProviderVolumeType }).(pulumi.StringOutput)
}
// (Deprecated) Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
func (o LookupClusterResultOutput) ReplicationFactor() pulumi.IntOutput {
return o.ApplyT(func(v LookupClusterResult) int { return v.ReplicationFactor }).(pulumi.IntOutput)
}
// Configuration for cluster regions. See Replication Spec below for more details.
func (o LookupClusterResultOutput) ReplicationSpecs() GetClusterReplicationSpecArrayOutput {
return o.ApplyT(func(v LookupClusterResult) []GetClusterReplicationSpec { return v.ReplicationSpecs }).(GetClusterReplicationSpecArrayOutput)
}
// current snapshot schedule and retention settings for the cluster.
func (o LookupClusterResultOutput) SnapshotBackupPolicies() GetClusterSnapshotBackupPolicyArrayOutput {
return o.ApplyT(func(v LookupClusterResult) []GetClusterSnapshotBackupPolicy { return v.SnapshotBackupPolicies }).(GetClusterSnapshotBackupPolicyArrayOutput)
}
// Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
func (o LookupClusterResultOutput) SrvAddress() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.SrvAddress }).(pulumi.StringOutput)
}
// Indicates the current state of the cluster. The possible states are:
// - IDLE
// - CREATING
// - UPDATING
// - DELETING
// - DELETED
// - REPAIRING
func (o LookupClusterResultOutput) StateName() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.StateName }).(pulumi.StringOutput)
}
// Set that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster. See below.
func (o LookupClusterResultOutput) Tags() GetClusterTagArrayOutput {
return o.ApplyT(func(v LookupClusterResult) []GetClusterTag { return v.Tags }).(GetClusterTagArrayOutput)
}
// Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
func (o LookupClusterResultOutput) TerminationProtectionEnabled() pulumi.BoolOutput {
return o.ApplyT(func(v LookupClusterResult) bool { return v.TerminationProtectionEnabled }).(pulumi.BoolOutput)
}
// Release cadence that Atlas uses for this cluster.
func (o LookupClusterResultOutput) VersionReleaseSystem() pulumi.StringOutput {
return o.ApplyT(func(v LookupClusterResult) string { return v.VersionReleaseSystem }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupClusterResultOutput{})
}