@pulumi/mongodbatlas 3.3.0-alpha.1645657458 → 3.3.0-alpha.1647547463
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/advancedCluster.d.ts +363 -0
- package/advancedCluster.js +202 -0
- package/advancedCluster.js.map +1 -0
- package/cloudBackupSnapshot.d.ts +236 -0
- package/cloudBackupSnapshot.js +140 -0
- package/cloudBackupSnapshot.js.map +1 -0
- package/cloudBackupSnapshotExportBucket.d.ts +121 -0
- package/cloudBackupSnapshotExportBucket.js +98 -0
- package/cloudBackupSnapshotExportBucket.js.map +1 -0
- package/cloudBackupSnapshotExportJob.d.ts +174 -0
- package/cloudBackupSnapshotExportJob.js +129 -0
- package/cloudBackupSnapshotExportJob.js.map +1 -0
- package/cloudBackupSnapshotRestoreJob.d.ts +253 -0
- package/cloudBackupSnapshotRestoreJob.js +168 -0
- package/cloudBackupSnapshotRestoreJob.js.map +1 -0
- package/cloudProviderSnapshot.d.ts +1 -1
- package/cloudProviderSnapshot.js +1 -1
- package/cloudProviderSnapshotRestoreJob.d.ts +1 -1
- package/cloudProviderSnapshotRestoreJob.js +1 -1
- package/cluster.d.ts +190 -0
- package/cluster.js +190 -0
- package/cluster.js.map +1 -1
- package/config/index.js +5 -1
- package/config/index.js.map +1 -1
- package/dataLake.d.ts +22 -0
- package/dataLake.js +22 -0
- package/dataLake.js.map +1 -1
- package/databaseUser.d.ts +87 -0
- package/databaseUser.js +87 -0
- package/databaseUser.js.map +1 -1
- package/getAdvancedCluster.d.ts +131 -0
- package/getAdvancedCluster.js +44 -0
- package/getAdvancedCluster.js.map +1 -0
- package/getAdvancedClusters.d.ts +71 -0
- package/getAdvancedClusters.js +57 -0
- package/getAdvancedClusters.js.map +1 -0
- package/getCloudBackupSnapshot.d.ts +101 -0
- package/getCloudBackupSnapshot.js +29 -0
- package/getCloudBackupSnapshot.js.map +1 -0
- package/getCloudBackupSnapshotExportBucket.d.ts +56 -0
- package/getCloudBackupSnapshotExportBucket.js +29 -0
- package/getCloudBackupSnapshotExportBucket.js.map +1 -0
- package/getCloudBackupSnapshotExportBuckets.d.ts +80 -0
- package/getCloudBackupSnapshotExportBuckets.js +46 -0
- package/getCloudBackupSnapshotExportBuckets.js.map +1 -0
- package/getCloudBackupSnapshotExportJob.d.ts +93 -0
- package/getCloudBackupSnapshotExportJob.js +30 -0
- package/getCloudBackupSnapshotExportJob.js.map +1 -0
- package/getCloudBackupSnapshotExportJobs.d.ts +100 -0
- package/getCloudBackupSnapshotExportJobs.js +58 -0
- package/getCloudBackupSnapshotExportJobs.js.map +1 -0
- package/getCloudBackupSnapshotRestoreJob.d.ts +98 -0
- package/getCloudBackupSnapshotRestoreJob.js +29 -0
- package/getCloudBackupSnapshotRestoreJob.js.map +1 -0
- package/getCloudBackupSnapshotRestoreJobs.d.ts +101 -0
- package/getCloudBackupSnapshotRestoreJobs.js +62 -0
- package/getCloudBackupSnapshotRestoreJobs.js.map +1 -0
- package/getCloudBackupSnapshots.d.ts +63 -0
- package/getCloudBackupSnapshots.js +30 -0
- package/getCloudBackupSnapshots.js.map +1 -0
- package/getCloudProviderSnapshot.d.ts +1 -1
- package/getCloudProviderSnapshot.js +1 -1
- package/getCloudProviderSnapshotRestoreJob.d.ts +1 -1
- package/getCloudProviderSnapshotRestoreJob.js +1 -1
- package/getCloudProviderSnapshots.d.ts +1 -1
- package/getCloudProviderSnapshots.js +1 -1
- package/getOrgInvitation.d.ts +77 -0
- package/getOrgInvitation.js +27 -0
- package/getOrgInvitation.js.map +1 -0
- package/getPrivatelinkEndpointServiceAdl.d.ts +76 -0
- package/getPrivatelinkEndpointServiceAdl.js +47 -0
- package/getPrivatelinkEndpointServiceAdl.js.map +1 -0
- package/getPrivatelinkEndpointsServiceAdl.d.ts +58 -0
- package/getPrivatelinkEndpointsServiceAdl.js +45 -0
- package/getPrivatelinkEndpointsServiceAdl.js.map +1 -0
- package/getProjectInvitation.d.ts +78 -0
- package/getProjectInvitation.js +31 -0
- package/getProjectInvitation.js.map +1 -0
- package/index.d.ts +22 -0
- package/index.js +59 -1
- package/index.js.map +1 -1
- package/ldapConfiguration.d.ts +39 -0
- package/ldapConfiguration.js +39 -0
- package/ldapConfiguration.js.map +1 -1
- package/networkPeering.d.ts +270 -0
- package/networkPeering.js +270 -0
- package/networkPeering.js.map +1 -1
- package/orgInvitation.d.ts +195 -0
- package/orgInvitation.js +136 -0
- package/orgInvitation.js.map +1 -0
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/privateLinkEndpoint.d.ts +1 -1
- package/privateLinkEndpoint.js +1 -1
- package/privateLinkEndpointService.d.ts +1 -1
- package/privateLinkEndpointService.js +1 -1
- package/privatelinkEndpointServiceAdl.d.ts +126 -0
- package/privatelinkEndpointServiceAdl.js +99 -0
- package/privatelinkEndpointServiceAdl.js.map +1 -0
- package/project.d.ts +29 -0
- package/project.js +29 -0
- package/project.js.map +1 -1
- package/projectInvitation.d.ts +174 -0
- package/projectInvitation.js +122 -0
- package/projectInvitation.js.map +1 -0
- package/thirdPartyIntegration.d.ts +15 -0
- package/thirdPartyIntegration.js +15 -0
- package/thirdPartyIntegration.js.map +1 -1
- package/types/input.d.ts +289 -32
- package/types/output.d.ts +1097 -77
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* `mongodbatlas.AdvancedCluster` provides an Advanced Cluster resource. The resource lets you create, edit and delete advanced clusters. The resource requires your Project ID.
|
|
5
|
+
*
|
|
6
|
+
* More information on considerations for using advanced clusters please see [Considerations](https://docs.atlas.mongodb.com/reference/api/cluster-advanced/create-one-cluster-advanced/#considerations)
|
|
7
|
+
*
|
|
8
|
+
* > **NOTE:** Groups and projects are synonymous terms. You may find groupId in the official documentation.
|
|
9
|
+
*
|
|
10
|
+
* > **NOTE:** A network container is created for a advanced cluster to reside in if one does not yet exist in the project. To use this automatically created container with another resource, such as peering, the `containerId` is exported after creation.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
* ### Example single provider and single region
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
18
|
+
*
|
|
19
|
+
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
20
|
+
* clusterType: "REPLICASET",
|
|
21
|
+
* projectId: "PROJECT ID",
|
|
22
|
+
* replicationSpecs: [{
|
|
23
|
+
* regionConfigs: [{
|
|
24
|
+
* analyticsSpecs: {
|
|
25
|
+
* instanceSize: "M10",
|
|
26
|
+
* nodeCount: 1,
|
|
27
|
+
* },
|
|
28
|
+
* electableSpecs: {
|
|
29
|
+
* instanceSize: "M10",
|
|
30
|
+
* nodeCount: 3,
|
|
31
|
+
* },
|
|
32
|
+
* priority: 1,
|
|
33
|
+
* providerName: "AWS",
|
|
34
|
+
* regionName: "US_EAST_1",
|
|
35
|
+
* }],
|
|
36
|
+
* }],
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
* ### Example Tenant Cluster
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
44
|
+
*
|
|
45
|
+
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
46
|
+
* clusterType: "REPLICASET",
|
|
47
|
+
* projectId: "PROJECT ID",
|
|
48
|
+
* replicationSpecs: [{
|
|
49
|
+
* regionConfigs: [{
|
|
50
|
+
* backingProviderName: "AWS",
|
|
51
|
+
* electableSpecs: {
|
|
52
|
+
* instanceSize: "M5",
|
|
53
|
+
* },
|
|
54
|
+
* priority: 1,
|
|
55
|
+
* providerName: "TENANT",
|
|
56
|
+
* regionName: "US_EAST_1",
|
|
57
|
+
* }],
|
|
58
|
+
* }],
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
* ### Example Multicloud.
|
|
62
|
+
*
|
|
63
|
+
* ```typescript
|
|
64
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
66
|
+
*
|
|
67
|
+
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
68
|
+
* clusterType: "REPLICASET",
|
|
69
|
+
* projectId: "PROJECT ID",
|
|
70
|
+
* replicationSpecs: [{
|
|
71
|
+
* regionConfigs: [
|
|
72
|
+
* {
|
|
73
|
+
* analyticsSpecs: {
|
|
74
|
+
* instanceSize: "M10",
|
|
75
|
+
* nodeCount: 1,
|
|
76
|
+
* },
|
|
77
|
+
* electableSpecs: {
|
|
78
|
+
* instanceSize: "M10",
|
|
79
|
+
* nodeCount: 3,
|
|
80
|
+
* },
|
|
81
|
+
* priority: 1,
|
|
82
|
+
* providerName: "AWS",
|
|
83
|
+
* regionName: "US_EAST_1",
|
|
84
|
+
* },
|
|
85
|
+
* {
|
|
86
|
+
* electableSpecs: {
|
|
87
|
+
* instanceSize: "M10",
|
|
88
|
+
* nodeCount: 2,
|
|
89
|
+
* },
|
|
90
|
+
* priority: 6,
|
|
91
|
+
* providerName: "GCP",
|
|
92
|
+
* regionName: "NORTH_AMERICA_NORTHEAST_1",
|
|
93
|
+
* },
|
|
94
|
+
* ],
|
|
95
|
+
* }],
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* ## Import
|
|
100
|
+
*
|
|
101
|
+
* Clusters can be imported using project ID and cluster name, in the format `PROJECTID-CLUSTERNAME`, e.g.
|
|
102
|
+
*
|
|
103
|
+
* ```sh
|
|
104
|
+
* $ pulumi import mongodbatlas:index/advancedCluster:AdvancedCluster my_cluster 1112222b3bf99403840e8934-Cluster0
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* See detailed information for arguments and attributes[MongoDB API Advanced Clusters](https://docs.atlas.mongodb.com/reference/api/cluster-advanced/create-one-cluster-advanced/)
|
|
108
|
+
*/
|
|
109
|
+
export declare class AdvancedCluster extends pulumi.CustomResource {
|
|
110
|
+
/**
|
|
111
|
+
* Get an existing AdvancedCluster resource's state with the given name, ID, and optional extra
|
|
112
|
+
* properties used to qualify the lookup.
|
|
113
|
+
*
|
|
114
|
+
* @param name The _unique_ name of the resulting resource.
|
|
115
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
116
|
+
* @param state Any extra arguments used during the lookup.
|
|
117
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
118
|
+
*/
|
|
119
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AdvancedClusterState, opts?: pulumi.CustomResourceOptions): AdvancedCluster;
|
|
120
|
+
/**
|
|
121
|
+
* Returns true if the given object is an instance of AdvancedCluster. This is designed to work even
|
|
122
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
123
|
+
*/
|
|
124
|
+
static isInstance(obj: any): obj is AdvancedCluster;
|
|
125
|
+
readonly advancedConfiguration: pulumi.Output<outputs.AdvancedClusterAdvancedConfiguration>;
|
|
126
|
+
/**
|
|
127
|
+
* Flag that indicates whether the cluster can perform backups.
|
|
128
|
+
* If `true`, the cluster can perform backups. You must set this value to `true` for NVMe clusters.
|
|
129
|
+
*/
|
|
130
|
+
readonly backupEnabled: pulumi.Output<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* Configuration settings applied to BI Connector for Atlas on this cluster. The MongoDB Connector for Business Intelligence for Atlas (BI Connector) is only available for M10 and larger clusters. The BI Connector is a powerful tool which provides users SQL-based access to their MongoDB databases. As a result, the BI Connector performs operations which may be CPU and memory intensive. Given the limited hardware resources on M10 and M20 cluster tiers, you may experience performance degradation of the cluster when enabling the BI Connector. If this occurs, upgrade to an M30 or larger cluster or disable the BI Connector. See below.
|
|
133
|
+
*/
|
|
134
|
+
readonly biConnector: pulumi.Output<outputs.AdvancedClusterBiConnector>;
|
|
135
|
+
/**
|
|
136
|
+
* The cluster ID.
|
|
137
|
+
*/
|
|
138
|
+
readonly clusterId: pulumi.Output<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Type of the cluster that you want to create.
|
|
141
|
+
* Accepted values include:
|
|
142
|
+
*/
|
|
143
|
+
readonly clusterType: pulumi.Output<string>;
|
|
144
|
+
/**
|
|
145
|
+
* 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/). NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster.
|
|
146
|
+
*/
|
|
147
|
+
readonly connectionStrings: pulumi.Output<outputs.AdvancedClusterConnectionString[]>;
|
|
148
|
+
readonly createDate: pulumi.Output<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Capacity, in gigabytes, of the host's root volume. Increase this number to add capacity, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive number. You can't set this value with clusters with local [NVMe SSDs](https://docs.atlas.mongodb.com/cluster-tier/#std-label-nvme-storage). The minimum disk size for dedicated clusters is 10 GB for AWS and GCP. If you specify diskSizeGB with a lower disk size, Atlas defaults to the minimum disk size value. If your cluster includes Azure nodes, this value must correspond to an existing Azure disk type (8, 16, 32, 64, 128, 256, 512, 1024, 2048, or 4095)Atlas calculates storage charges differently depending on whether you choose the default value or a custom value. The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require additional storage space beyond this limitation, consider [upgrading your cluster](https://docs.atlas.mongodb.com/scale-cluster/#std-label-scale-cluster-instance) to a higher tier. If your cluster spans cloud service providers, this value defaults to the minimum default of the providers involved.
|
|
151
|
+
*/
|
|
152
|
+
readonly diskSizeGb: pulumi.Output<number>;
|
|
153
|
+
/**
|
|
154
|
+
* Possible values are AWS, GCP, AZURE or NONE. Only needed if you desire to manage the keys, see [Encryption at Rest using Customer Key Management](https://docs.atlas.mongodb.com/security-kms-encryption/) for complete documentation. You must configure encryption at rest for the Atlas project before enabling it on any cluster in the project. For Documentation, see [AWS](https://docs.atlas.mongodb.com/security-aws-kms/), [GCP](https://docs.atlas.mongodb.com/security-kms-encryption/) and [Azure](https://docs.atlas.mongodb.com/security-azure-kms/#std-label-security-azure-kms). Requirements are if `replication_specs.#.region_configs.#.<type>Specs.instance_size` is M10 or greater and `backupEnabled` is false or omitted.
|
|
155
|
+
*/
|
|
156
|
+
readonly encryptionAtRestProvider: pulumi.Output<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Configuration for the collection of key-value pairs that tag and categorize the cluster. See below.
|
|
159
|
+
*/
|
|
160
|
+
readonly labels: pulumi.Output<outputs.AdvancedClusterLabel[]>;
|
|
161
|
+
/**
|
|
162
|
+
* Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters: `4.0`, `4.2`, `4.4`, or `5.0`. If omitted, Atlas deploys a cluster that runs MongoDB 4.4. If `replication_specs#.region_configs#.<type>Specs.instance_size`: `M0`, `M2` or `M5`, Atlas deploys MongoDB 4.4. Atlas always deploys the cluster with the latest stable release of the specified version. If you set a value to this parameter and set `versionReleaseSystem` `CONTINUOUS`, the resource returns an error. Either clear this parameter or set `versionReleaseSystem`: `LTS`.
|
|
163
|
+
*/
|
|
164
|
+
readonly mongoDbMajorVersion: pulumi.Output<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Version of MongoDB the cluster runs, in `major-version`.`minor-version` format.
|
|
167
|
+
*/
|
|
168
|
+
readonly mongoDbVersion: pulumi.Output<string>;
|
|
169
|
+
/**
|
|
170
|
+
* Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
|
|
171
|
+
*/
|
|
172
|
+
readonly name: pulumi.Output<string>;
|
|
173
|
+
readonly paused: pulumi.Output<boolean | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* - Flag that indicates if the cluster uses Continuous Cloud Backup.
|
|
176
|
+
*/
|
|
177
|
+
readonly pitEnabled: pulumi.Output<boolean>;
|
|
178
|
+
/**
|
|
179
|
+
* Unique ID for the project to create the database user.
|
|
180
|
+
*/
|
|
181
|
+
readonly projectId: pulumi.Output<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Configuration for cluster regions and the hardware provisioned in them. See below
|
|
184
|
+
*/
|
|
185
|
+
readonly replicationSpecs: pulumi.Output<outputs.AdvancedClusterReplicationSpec[]>;
|
|
186
|
+
/**
|
|
187
|
+
* - Certificate Authority that MongoDB Atlas clusters use. You can specify ISRGROOTX1 (for ISRG Root X1).
|
|
188
|
+
*/
|
|
189
|
+
readonly rootCertType: pulumi.Output<string>;
|
|
190
|
+
/**
|
|
191
|
+
* Current state of the cluster. The possible states are:
|
|
192
|
+
* - IDLE
|
|
193
|
+
* - CREATING
|
|
194
|
+
* - UPDATING
|
|
195
|
+
* - DELETING
|
|
196
|
+
* - DELETED
|
|
197
|
+
* - REPAIRING
|
|
198
|
+
*/
|
|
199
|
+
readonly stateName: pulumi.Output<string>;
|
|
200
|
+
/**
|
|
201
|
+
* - Release cadence that Atlas uses for this cluster. This parameter defaults to `LTS`. If you set this field to `CONTINUOUS`, you must omit the `mongoDbMajorVersion` field. Atlas accepts:
|
|
202
|
+
* - `CONTINUOUS`: Atlas creates your cluster using the most recent MongoDB release. Atlas automatically updates your cluster to the latest major and rapid MongoDB releases as they become available.
|
|
203
|
+
* - `LTS`: Atlas creates your cluster using the latest patch release of the MongoDB version that you specify in the mongoDBMajorVersion field. Atlas automatically updates your cluster to subsequent patch releases of this MongoDB version. Atlas doesn't update your cluster to newer rapid or major MongoDB releases as they become available.
|
|
204
|
+
*/
|
|
205
|
+
readonly versionReleaseSystem: pulumi.Output<string | undefined>;
|
|
206
|
+
/**
|
|
207
|
+
* Create a AdvancedCluster resource with the given unique name, arguments, and options.
|
|
208
|
+
*
|
|
209
|
+
* @param name The _unique_ name of the resource.
|
|
210
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
211
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
212
|
+
*/
|
|
213
|
+
constructor(name: string, args: AdvancedClusterArgs, opts?: pulumi.CustomResourceOptions);
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Input properties used for looking up and filtering AdvancedCluster resources.
|
|
217
|
+
*/
|
|
218
|
+
export interface AdvancedClusterState {
|
|
219
|
+
advancedConfiguration?: pulumi.Input<inputs.AdvancedClusterAdvancedConfiguration>;
|
|
220
|
+
/**
|
|
221
|
+
* Flag that indicates whether the cluster can perform backups.
|
|
222
|
+
* If `true`, the cluster can perform backups. You must set this value to `true` for NVMe clusters.
|
|
223
|
+
*/
|
|
224
|
+
backupEnabled?: pulumi.Input<boolean>;
|
|
225
|
+
/**
|
|
226
|
+
* Configuration settings applied to BI Connector for Atlas on this cluster. The MongoDB Connector for Business Intelligence for Atlas (BI Connector) is only available for M10 and larger clusters. The BI Connector is a powerful tool which provides users SQL-based access to their MongoDB databases. As a result, the BI Connector performs operations which may be CPU and memory intensive. Given the limited hardware resources on M10 and M20 cluster tiers, you may experience performance degradation of the cluster when enabling the BI Connector. If this occurs, upgrade to an M30 or larger cluster or disable the BI Connector. See below.
|
|
227
|
+
*/
|
|
228
|
+
biConnector?: pulumi.Input<inputs.AdvancedClusterBiConnector>;
|
|
229
|
+
/**
|
|
230
|
+
* The cluster ID.
|
|
231
|
+
*/
|
|
232
|
+
clusterId?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Type of the cluster that you want to create.
|
|
235
|
+
* Accepted values include:
|
|
236
|
+
*/
|
|
237
|
+
clusterType?: pulumi.Input<string>;
|
|
238
|
+
/**
|
|
239
|
+
* 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/). NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster.
|
|
240
|
+
*/
|
|
241
|
+
connectionStrings?: pulumi.Input<pulumi.Input<inputs.AdvancedClusterConnectionString>[]>;
|
|
242
|
+
createDate?: pulumi.Input<string>;
|
|
243
|
+
/**
|
|
244
|
+
* Capacity, in gigabytes, of the host's root volume. Increase this number to add capacity, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive number. You can't set this value with clusters with local [NVMe SSDs](https://docs.atlas.mongodb.com/cluster-tier/#std-label-nvme-storage). The minimum disk size for dedicated clusters is 10 GB for AWS and GCP. If you specify diskSizeGB with a lower disk size, Atlas defaults to the minimum disk size value. If your cluster includes Azure nodes, this value must correspond to an existing Azure disk type (8, 16, 32, 64, 128, 256, 512, 1024, 2048, or 4095)Atlas calculates storage charges differently depending on whether you choose the default value or a custom value. The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require additional storage space beyond this limitation, consider [upgrading your cluster](https://docs.atlas.mongodb.com/scale-cluster/#std-label-scale-cluster-instance) to a higher tier. If your cluster spans cloud service providers, this value defaults to the minimum default of the providers involved.
|
|
245
|
+
*/
|
|
246
|
+
diskSizeGb?: pulumi.Input<number>;
|
|
247
|
+
/**
|
|
248
|
+
* Possible values are AWS, GCP, AZURE or NONE. Only needed if you desire to manage the keys, see [Encryption at Rest using Customer Key Management](https://docs.atlas.mongodb.com/security-kms-encryption/) for complete documentation. You must configure encryption at rest for the Atlas project before enabling it on any cluster in the project. For Documentation, see [AWS](https://docs.atlas.mongodb.com/security-aws-kms/), [GCP](https://docs.atlas.mongodb.com/security-kms-encryption/) and [Azure](https://docs.atlas.mongodb.com/security-azure-kms/#std-label-security-azure-kms). Requirements are if `replication_specs.#.region_configs.#.<type>Specs.instance_size` is M10 or greater and `backupEnabled` is false or omitted.
|
|
249
|
+
*/
|
|
250
|
+
encryptionAtRestProvider?: pulumi.Input<string>;
|
|
251
|
+
/**
|
|
252
|
+
* Configuration for the collection of key-value pairs that tag and categorize the cluster. See below.
|
|
253
|
+
*/
|
|
254
|
+
labels?: pulumi.Input<pulumi.Input<inputs.AdvancedClusterLabel>[]>;
|
|
255
|
+
/**
|
|
256
|
+
* Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters: `4.0`, `4.2`, `4.4`, or `5.0`. If omitted, Atlas deploys a cluster that runs MongoDB 4.4. If `replication_specs#.region_configs#.<type>Specs.instance_size`: `M0`, `M2` or `M5`, Atlas deploys MongoDB 4.4. Atlas always deploys the cluster with the latest stable release of the specified version. If you set a value to this parameter and set `versionReleaseSystem` `CONTINUOUS`, the resource returns an error. Either clear this parameter or set `versionReleaseSystem`: `LTS`.
|
|
257
|
+
*/
|
|
258
|
+
mongoDbMajorVersion?: pulumi.Input<string>;
|
|
259
|
+
/**
|
|
260
|
+
* Version of MongoDB the cluster runs, in `major-version`.`minor-version` format.
|
|
261
|
+
*/
|
|
262
|
+
mongoDbVersion?: pulumi.Input<string>;
|
|
263
|
+
/**
|
|
264
|
+
* Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
|
|
265
|
+
*/
|
|
266
|
+
name?: pulumi.Input<string>;
|
|
267
|
+
paused?: pulumi.Input<boolean>;
|
|
268
|
+
/**
|
|
269
|
+
* - Flag that indicates if the cluster uses Continuous Cloud Backup.
|
|
270
|
+
*/
|
|
271
|
+
pitEnabled?: pulumi.Input<boolean>;
|
|
272
|
+
/**
|
|
273
|
+
* Unique ID for the project to create the database user.
|
|
274
|
+
*/
|
|
275
|
+
projectId?: pulumi.Input<string>;
|
|
276
|
+
/**
|
|
277
|
+
* Configuration for cluster regions and the hardware provisioned in them. See below
|
|
278
|
+
*/
|
|
279
|
+
replicationSpecs?: pulumi.Input<pulumi.Input<inputs.AdvancedClusterReplicationSpec>[]>;
|
|
280
|
+
/**
|
|
281
|
+
* - Certificate Authority that MongoDB Atlas clusters use. You can specify ISRGROOTX1 (for ISRG Root X1).
|
|
282
|
+
*/
|
|
283
|
+
rootCertType?: pulumi.Input<string>;
|
|
284
|
+
/**
|
|
285
|
+
* Current state of the cluster. The possible states are:
|
|
286
|
+
* - IDLE
|
|
287
|
+
* - CREATING
|
|
288
|
+
* - UPDATING
|
|
289
|
+
* - DELETING
|
|
290
|
+
* - DELETED
|
|
291
|
+
* - REPAIRING
|
|
292
|
+
*/
|
|
293
|
+
stateName?: pulumi.Input<string>;
|
|
294
|
+
/**
|
|
295
|
+
* - Release cadence that Atlas uses for this cluster. This parameter defaults to `LTS`. If you set this field to `CONTINUOUS`, you must omit the `mongoDbMajorVersion` field. Atlas accepts:
|
|
296
|
+
* - `CONTINUOUS`: Atlas creates your cluster using the most recent MongoDB release. Atlas automatically updates your cluster to the latest major and rapid MongoDB releases as they become available.
|
|
297
|
+
* - `LTS`: Atlas creates your cluster using the latest patch release of the MongoDB version that you specify in the mongoDBMajorVersion field. Atlas automatically updates your cluster to subsequent patch releases of this MongoDB version. Atlas doesn't update your cluster to newer rapid or major MongoDB releases as they become available.
|
|
298
|
+
*/
|
|
299
|
+
versionReleaseSystem?: pulumi.Input<string>;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* The set of arguments for constructing a AdvancedCluster resource.
|
|
303
|
+
*/
|
|
304
|
+
export interface AdvancedClusterArgs {
|
|
305
|
+
advancedConfiguration?: pulumi.Input<inputs.AdvancedClusterAdvancedConfiguration>;
|
|
306
|
+
/**
|
|
307
|
+
* Flag that indicates whether the cluster can perform backups.
|
|
308
|
+
* If `true`, the cluster can perform backups. You must set this value to `true` for NVMe clusters.
|
|
309
|
+
*/
|
|
310
|
+
backupEnabled?: pulumi.Input<boolean>;
|
|
311
|
+
/**
|
|
312
|
+
* Configuration settings applied to BI Connector for Atlas on this cluster. The MongoDB Connector for Business Intelligence for Atlas (BI Connector) is only available for M10 and larger clusters. The BI Connector is a powerful tool which provides users SQL-based access to their MongoDB databases. As a result, the BI Connector performs operations which may be CPU and memory intensive. Given the limited hardware resources on M10 and M20 cluster tiers, you may experience performance degradation of the cluster when enabling the BI Connector. If this occurs, upgrade to an M30 or larger cluster or disable the BI Connector. See below.
|
|
313
|
+
*/
|
|
314
|
+
biConnector?: pulumi.Input<inputs.AdvancedClusterBiConnector>;
|
|
315
|
+
/**
|
|
316
|
+
* Type of the cluster that you want to create.
|
|
317
|
+
* Accepted values include:
|
|
318
|
+
*/
|
|
319
|
+
clusterType: pulumi.Input<string>;
|
|
320
|
+
/**
|
|
321
|
+
* Capacity, in gigabytes, of the host's root volume. Increase this number to add capacity, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive number. You can't set this value with clusters with local [NVMe SSDs](https://docs.atlas.mongodb.com/cluster-tier/#std-label-nvme-storage). The minimum disk size for dedicated clusters is 10 GB for AWS and GCP. If you specify diskSizeGB with a lower disk size, Atlas defaults to the minimum disk size value. If your cluster includes Azure nodes, this value must correspond to an existing Azure disk type (8, 16, 32, 64, 128, 256, 512, 1024, 2048, or 4095)Atlas calculates storage charges differently depending on whether you choose the default value or a custom value. The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require additional storage space beyond this limitation, consider [upgrading your cluster](https://docs.atlas.mongodb.com/scale-cluster/#std-label-scale-cluster-instance) to a higher tier. If your cluster spans cloud service providers, this value defaults to the minimum default of the providers involved.
|
|
322
|
+
*/
|
|
323
|
+
diskSizeGb?: pulumi.Input<number>;
|
|
324
|
+
/**
|
|
325
|
+
* Possible values are AWS, GCP, AZURE or NONE. Only needed if you desire to manage the keys, see [Encryption at Rest using Customer Key Management](https://docs.atlas.mongodb.com/security-kms-encryption/) for complete documentation. You must configure encryption at rest for the Atlas project before enabling it on any cluster in the project. For Documentation, see [AWS](https://docs.atlas.mongodb.com/security-aws-kms/), [GCP](https://docs.atlas.mongodb.com/security-kms-encryption/) and [Azure](https://docs.atlas.mongodb.com/security-azure-kms/#std-label-security-azure-kms). Requirements are if `replication_specs.#.region_configs.#.<type>Specs.instance_size` is M10 or greater and `backupEnabled` is false or omitted.
|
|
326
|
+
*/
|
|
327
|
+
encryptionAtRestProvider?: pulumi.Input<string>;
|
|
328
|
+
/**
|
|
329
|
+
* Configuration for the collection of key-value pairs that tag and categorize the cluster. See below.
|
|
330
|
+
*/
|
|
331
|
+
labels?: pulumi.Input<pulumi.Input<inputs.AdvancedClusterLabel>[]>;
|
|
332
|
+
/**
|
|
333
|
+
* Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters: `4.0`, `4.2`, `4.4`, or `5.0`. If omitted, Atlas deploys a cluster that runs MongoDB 4.4. If `replication_specs#.region_configs#.<type>Specs.instance_size`: `M0`, `M2` or `M5`, Atlas deploys MongoDB 4.4. Atlas always deploys the cluster with the latest stable release of the specified version. If you set a value to this parameter and set `versionReleaseSystem` `CONTINUOUS`, the resource returns an error. Either clear this parameter or set `versionReleaseSystem`: `LTS`.
|
|
334
|
+
*/
|
|
335
|
+
mongoDbMajorVersion?: pulumi.Input<string>;
|
|
336
|
+
/**
|
|
337
|
+
* Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
|
|
338
|
+
*/
|
|
339
|
+
name?: pulumi.Input<string>;
|
|
340
|
+
paused?: pulumi.Input<boolean>;
|
|
341
|
+
/**
|
|
342
|
+
* - Flag that indicates if the cluster uses Continuous Cloud Backup.
|
|
343
|
+
*/
|
|
344
|
+
pitEnabled?: pulumi.Input<boolean>;
|
|
345
|
+
/**
|
|
346
|
+
* Unique ID for the project to create the database user.
|
|
347
|
+
*/
|
|
348
|
+
projectId: pulumi.Input<string>;
|
|
349
|
+
/**
|
|
350
|
+
* Configuration for cluster regions and the hardware provisioned in them. See below
|
|
351
|
+
*/
|
|
352
|
+
replicationSpecs: pulumi.Input<pulumi.Input<inputs.AdvancedClusterReplicationSpec>[]>;
|
|
353
|
+
/**
|
|
354
|
+
* - Certificate Authority that MongoDB Atlas clusters use. You can specify ISRGROOTX1 (for ISRG Root X1).
|
|
355
|
+
*/
|
|
356
|
+
rootCertType?: pulumi.Input<string>;
|
|
357
|
+
/**
|
|
358
|
+
* - Release cadence that Atlas uses for this cluster. This parameter defaults to `LTS`. If you set this field to `CONTINUOUS`, you must omit the `mongoDbMajorVersion` field. Atlas accepts:
|
|
359
|
+
* - `CONTINUOUS`: Atlas creates your cluster using the most recent MongoDB release. Atlas automatically updates your cluster to the latest major and rapid MongoDB releases as they become available.
|
|
360
|
+
* - `LTS`: Atlas creates your cluster using the latest patch release of the MongoDB version that you specify in the mongoDBMajorVersion field. Atlas automatically updates your cluster to subsequent patch releases of this MongoDB version. Atlas doesn't update your cluster to newer rapid or major MongoDB releases as they become available.
|
|
361
|
+
*/
|
|
362
|
+
versionReleaseSystem?: pulumi.Input<string>;
|
|
363
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AdvancedCluster = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `mongodbatlas.AdvancedCluster` provides an Advanced Cluster resource. The resource lets you create, edit and delete advanced clusters. The resource requires your Project ID.
|
|
10
|
+
*
|
|
11
|
+
* More information on considerations for using advanced clusters please see [Considerations](https://docs.atlas.mongodb.com/reference/api/cluster-advanced/create-one-cluster-advanced/#considerations)
|
|
12
|
+
*
|
|
13
|
+
* > **NOTE:** Groups and projects are synonymous terms. You may find groupId in the official documentation.
|
|
14
|
+
*
|
|
15
|
+
* > **NOTE:** A network container is created for a advanced cluster to reside in if one does not yet exist in the project. To use this automatically created container with another resource, such as peering, the `containerId` is exported after creation.
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
* ### Example single provider and single region
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
23
|
+
*
|
|
24
|
+
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
25
|
+
* clusterType: "REPLICASET",
|
|
26
|
+
* projectId: "PROJECT ID",
|
|
27
|
+
* replicationSpecs: [{
|
|
28
|
+
* regionConfigs: [{
|
|
29
|
+
* analyticsSpecs: {
|
|
30
|
+
* instanceSize: "M10",
|
|
31
|
+
* nodeCount: 1,
|
|
32
|
+
* },
|
|
33
|
+
* electableSpecs: {
|
|
34
|
+
* instanceSize: "M10",
|
|
35
|
+
* nodeCount: 3,
|
|
36
|
+
* },
|
|
37
|
+
* priority: 1,
|
|
38
|
+
* providerName: "AWS",
|
|
39
|
+
* regionName: "US_EAST_1",
|
|
40
|
+
* }],
|
|
41
|
+
* }],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
* ### Example Tenant Cluster
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
49
|
+
*
|
|
50
|
+
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
51
|
+
* clusterType: "REPLICASET",
|
|
52
|
+
* projectId: "PROJECT ID",
|
|
53
|
+
* replicationSpecs: [{
|
|
54
|
+
* regionConfigs: [{
|
|
55
|
+
* backingProviderName: "AWS",
|
|
56
|
+
* electableSpecs: {
|
|
57
|
+
* instanceSize: "M5",
|
|
58
|
+
* },
|
|
59
|
+
* priority: 1,
|
|
60
|
+
* providerName: "TENANT",
|
|
61
|
+
* regionName: "US_EAST_1",
|
|
62
|
+
* }],
|
|
63
|
+
* }],
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
* ### Example Multicloud.
|
|
67
|
+
*
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
71
|
+
*
|
|
72
|
+
* const test = new mongodbatlas.AdvancedCluster("test", {
|
|
73
|
+
* clusterType: "REPLICASET",
|
|
74
|
+
* projectId: "PROJECT ID",
|
|
75
|
+
* replicationSpecs: [{
|
|
76
|
+
* regionConfigs: [
|
|
77
|
+
* {
|
|
78
|
+
* analyticsSpecs: {
|
|
79
|
+
* instanceSize: "M10",
|
|
80
|
+
* nodeCount: 1,
|
|
81
|
+
* },
|
|
82
|
+
* electableSpecs: {
|
|
83
|
+
* instanceSize: "M10",
|
|
84
|
+
* nodeCount: 3,
|
|
85
|
+
* },
|
|
86
|
+
* priority: 1,
|
|
87
|
+
* providerName: "AWS",
|
|
88
|
+
* regionName: "US_EAST_1",
|
|
89
|
+
* },
|
|
90
|
+
* {
|
|
91
|
+
* electableSpecs: {
|
|
92
|
+
* instanceSize: "M10",
|
|
93
|
+
* nodeCount: 2,
|
|
94
|
+
* },
|
|
95
|
+
* priority: 6,
|
|
96
|
+
* providerName: "GCP",
|
|
97
|
+
* regionName: "NORTH_AMERICA_NORTHEAST_1",
|
|
98
|
+
* },
|
|
99
|
+
* ],
|
|
100
|
+
* }],
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* ## Import
|
|
105
|
+
*
|
|
106
|
+
* Clusters can be imported using project ID and cluster name, in the format `PROJECTID-CLUSTERNAME`, e.g.
|
|
107
|
+
*
|
|
108
|
+
* ```sh
|
|
109
|
+
* $ pulumi import mongodbatlas:index/advancedCluster:AdvancedCluster my_cluster 1112222b3bf99403840e8934-Cluster0
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* See detailed information for arguments and attributes[MongoDB API Advanced Clusters](https://docs.atlas.mongodb.com/reference/api/cluster-advanced/create-one-cluster-advanced/)
|
|
113
|
+
*/
|
|
114
|
+
class AdvancedCluster extends pulumi.CustomResource {
|
|
115
|
+
constructor(name, argsOrState, opts) {
|
|
116
|
+
let resourceInputs = {};
|
|
117
|
+
opts = opts || {};
|
|
118
|
+
if (opts.id) {
|
|
119
|
+
const state = argsOrState;
|
|
120
|
+
resourceInputs["advancedConfiguration"] = state ? state.advancedConfiguration : undefined;
|
|
121
|
+
resourceInputs["backupEnabled"] = state ? state.backupEnabled : undefined;
|
|
122
|
+
resourceInputs["biConnector"] = state ? state.biConnector : undefined;
|
|
123
|
+
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
124
|
+
resourceInputs["clusterType"] = state ? state.clusterType : undefined;
|
|
125
|
+
resourceInputs["connectionStrings"] = state ? state.connectionStrings : undefined;
|
|
126
|
+
resourceInputs["createDate"] = state ? state.createDate : undefined;
|
|
127
|
+
resourceInputs["diskSizeGb"] = state ? state.diskSizeGb : undefined;
|
|
128
|
+
resourceInputs["encryptionAtRestProvider"] = state ? state.encryptionAtRestProvider : undefined;
|
|
129
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
130
|
+
resourceInputs["mongoDbMajorVersion"] = state ? state.mongoDbMajorVersion : undefined;
|
|
131
|
+
resourceInputs["mongoDbVersion"] = state ? state.mongoDbVersion : undefined;
|
|
132
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
133
|
+
resourceInputs["paused"] = state ? state.paused : undefined;
|
|
134
|
+
resourceInputs["pitEnabled"] = state ? state.pitEnabled : undefined;
|
|
135
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
136
|
+
resourceInputs["replicationSpecs"] = state ? state.replicationSpecs : undefined;
|
|
137
|
+
resourceInputs["rootCertType"] = state ? state.rootCertType : undefined;
|
|
138
|
+
resourceInputs["stateName"] = state ? state.stateName : undefined;
|
|
139
|
+
resourceInputs["versionReleaseSystem"] = state ? state.versionReleaseSystem : undefined;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
const args = argsOrState;
|
|
143
|
+
if ((!args || args.clusterType === undefined) && !opts.urn) {
|
|
144
|
+
throw new Error("Missing required property 'clusterType'");
|
|
145
|
+
}
|
|
146
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
147
|
+
throw new Error("Missing required property 'projectId'");
|
|
148
|
+
}
|
|
149
|
+
if ((!args || args.replicationSpecs === undefined) && !opts.urn) {
|
|
150
|
+
throw new Error("Missing required property 'replicationSpecs'");
|
|
151
|
+
}
|
|
152
|
+
resourceInputs["advancedConfiguration"] = args ? args.advancedConfiguration : undefined;
|
|
153
|
+
resourceInputs["backupEnabled"] = args ? args.backupEnabled : undefined;
|
|
154
|
+
resourceInputs["biConnector"] = args ? args.biConnector : undefined;
|
|
155
|
+
resourceInputs["clusterType"] = args ? args.clusterType : undefined;
|
|
156
|
+
resourceInputs["diskSizeGb"] = args ? args.diskSizeGb : undefined;
|
|
157
|
+
resourceInputs["encryptionAtRestProvider"] = args ? args.encryptionAtRestProvider : undefined;
|
|
158
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
159
|
+
resourceInputs["mongoDbMajorVersion"] = args ? args.mongoDbMajorVersion : undefined;
|
|
160
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
161
|
+
resourceInputs["paused"] = args ? args.paused : undefined;
|
|
162
|
+
resourceInputs["pitEnabled"] = args ? args.pitEnabled : undefined;
|
|
163
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
164
|
+
resourceInputs["replicationSpecs"] = args ? args.replicationSpecs : undefined;
|
|
165
|
+
resourceInputs["rootCertType"] = args ? args.rootCertType : undefined;
|
|
166
|
+
resourceInputs["versionReleaseSystem"] = args ? args.versionReleaseSystem : undefined;
|
|
167
|
+
resourceInputs["clusterId"] = undefined /*out*/;
|
|
168
|
+
resourceInputs["connectionStrings"] = undefined /*out*/;
|
|
169
|
+
resourceInputs["createDate"] = undefined /*out*/;
|
|
170
|
+
resourceInputs["mongoDbVersion"] = undefined /*out*/;
|
|
171
|
+
resourceInputs["stateName"] = undefined /*out*/;
|
|
172
|
+
}
|
|
173
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
174
|
+
super(AdvancedCluster.__pulumiType, name, resourceInputs, opts);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Get an existing AdvancedCluster resource's state with the given name, ID, and optional extra
|
|
178
|
+
* properties used to qualify the lookup.
|
|
179
|
+
*
|
|
180
|
+
* @param name The _unique_ name of the resulting resource.
|
|
181
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
182
|
+
* @param state Any extra arguments used during the lookup.
|
|
183
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
184
|
+
*/
|
|
185
|
+
static get(name, id, state, opts) {
|
|
186
|
+
return new AdvancedCluster(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Returns true if the given object is an instance of AdvancedCluster. This is designed to work even
|
|
190
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
191
|
+
*/
|
|
192
|
+
static isInstance(obj) {
|
|
193
|
+
if (obj === undefined || obj === null) {
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
196
|
+
return obj['__pulumiType'] === AdvancedCluster.__pulumiType;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
exports.AdvancedCluster = AdvancedCluster;
|
|
200
|
+
/** @internal */
|
|
201
|
+
AdvancedCluster.__pulumiType = 'mongodbatlas:index/advancedCluster:AdvancedCluster';
|
|
202
|
+
//# sourceMappingURL=advancedCluster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advancedCluster.js","sourceRoot":"","sources":["../advancedCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,MAAa,eAAgB,SAAQ,MA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