@pulumi/mongodbatlas 3.37.0-alpha.1762842753 → 3.37.0-alpha.1763072353
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/dataLakePipeline.d.ts +54 -0
- package/dataLakePipeline.js +54 -0
- package/dataLakePipeline.js.map +1 -1
- package/eventTrigger.d.ts +2 -2
- package/eventTrigger.js +2 -2
- package/flexCluster.d.ts +26 -0
- package/flexCluster.js +26 -0
- package/flexCluster.js.map +1 -1
- package/get509AuthenticationDatabaseUser.d.ts +58 -2
- package/get509AuthenticationDatabaseUser.js +58 -2
- package/get509AuthenticationDatabaseUser.js.map +1 -1
- package/getAccessListApiKey.d.ts +30 -0
- package/getAccessListApiKey.js +30 -0
- package/getAccessListApiKey.js.map +1 -1
- package/getAccessListApiKeys.d.ts +30 -0
- package/getAccessListApiKeys.js +30 -0
- package/getAccessListApiKeys.js.map +1 -1
- package/getCloudBackupSchedule.d.ts +108 -0
- package/getCloudBackupSchedule.js +108 -0
- package/getCloudBackupSchedule.js.map +1 -1
- package/getCloudBackupSnapshotRestoreJob.d.ts +54 -0
- package/getCloudBackupSnapshotRestoreJob.js +54 -0
- package/getCloudBackupSnapshotRestoreJob.js.map +1 -1
- package/getCustomDbRoles.d.ts +50 -0
- package/getCustomDbRoles.js +50 -0
- package/getCustomDbRoles.js.map +1 -1
- package/getDataLakePipeline.d.ts +116 -0
- package/getDataLakePipeline.js +116 -0
- package/getDataLakePipeline.js.map +1 -1
- package/getDataLakePipelineRuns.d.ts +74 -0
- package/getDataLakePipelineRuns.js +74 -0
- package/getDataLakePipelineRuns.js.map +1 -1
- package/getFederatedSettingsOrgRoleMappings.d.ts +68 -0
- package/getFederatedSettingsOrgRoleMappings.js +68 -0
- package/getFederatedSettingsOrgRoleMappings.js.map +1 -1
- package/getFlexCluster.d.ts +50 -0
- package/getFlexCluster.js +50 -0
- package/getFlexCluster.js.map +1 -1
- package/getFlexClusters.d.ts +50 -0
- package/getFlexClusters.js +50 -0
- package/getFlexClusters.js.map +1 -1
- package/getSearchDeployment.d.ts +78 -0
- package/getSearchDeployment.js +78 -0
- package/getSearchDeployment.js.map +1 -1
- package/getStreamPrivatelinkEndpoint.d.ts +140 -0
- package/getStreamPrivatelinkEndpoint.js +140 -0
- package/getStreamPrivatelinkEndpoint.js.map +1 -1
- package/getStreamPrivatelinkEndpoints.d.ts +140 -0
- package/getStreamPrivatelinkEndpoints.js +140 -0
- package/getStreamPrivatelinkEndpoints.js.map +1 -1
- package/getStreamProcessor.d.ts +264 -0
- package/getStreamProcessor.js +264 -0
- package/getStreamProcessor.js.map +1 -1
- package/getStreamProcessors.d.ts +264 -0
- package/getStreamProcessors.js +264 -0
- package/getStreamProcessors.js.map +1 -1
- package/getX509AuthenticationDatabaseUser.d.ts +58 -2
- package/getX509AuthenticationDatabaseUser.js +58 -2
- package/getX509AuthenticationDatabaseUser.js.map +1 -1
- package/package.json +2 -2
- package/searchDeployment.d.ts +40 -0
- package/searchDeployment.js +40 -0
- package/searchDeployment.js.map +1 -1
- package/searchIndex.d.ts +39 -39
- package/searchIndex.js +39 -39
- package/streamConnection.d.ts +40 -0
- package/streamConnection.js +40 -0
- package/streamConnection.js.map +1 -1
- package/streamInstance.d.ts +14 -0
- package/streamInstance.js +14 -0
- package/streamInstance.js.map +1 -1
- package/streamPrivatelinkEndpoint.d.ts +70 -0
- package/streamPrivatelinkEndpoint.js +70 -0
- package/streamPrivatelinkEndpoint.js.map +1 -1
- package/streamProcessor.d.ts +133 -0
- package/streamProcessor.js +133 -0
- package/streamProcessor.js.map +1 -1
- package/x509authenticationDatabaseUser.d.ts +63 -0
- package/x509authenticationDatabaseUser.js +63 -0
- package/x509authenticationDatabaseUser.js.map +1 -1
package/streamProcessor.d.ts
CHANGED
|
@@ -15,6 +15,139 @@ import * as outputs from "./types/output";
|
|
|
15
15
|
*
|
|
16
16
|
* ### S
|
|
17
17
|
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
21
|
+
*
|
|
22
|
+
* const example = new mongodbatlas.StreamInstance("example", {
|
|
23
|
+
* projectId: projectId,
|
|
24
|
+
* instanceName: "InstanceName",
|
|
25
|
+
* dataProcessRegion: {
|
|
26
|
+
* region: "VIRGINIA_USA",
|
|
27
|
+
* cloudProvider: "AWS",
|
|
28
|
+
* },
|
|
29
|
+
* });
|
|
30
|
+
* const example_sample = new mongodbatlas.StreamConnection("example-sample", {
|
|
31
|
+
* projectId: projectId,
|
|
32
|
+
* instanceName: example.instanceName,
|
|
33
|
+
* connectionName: "sample_stream_solar",
|
|
34
|
+
* type: "Sample",
|
|
35
|
+
* });
|
|
36
|
+
* const example_cluster = new mongodbatlas.StreamConnection("example-cluster", {
|
|
37
|
+
* projectId: projectId,
|
|
38
|
+
* instanceName: example.instanceName,
|
|
39
|
+
* connectionName: "ClusterConnection",
|
|
40
|
+
* type: "Cluster",
|
|
41
|
+
* clusterName: clusterName,
|
|
42
|
+
* dbRoleToExecute: {
|
|
43
|
+
* role: "atlasAdmin",
|
|
44
|
+
* type: "BUILT_IN",
|
|
45
|
+
* },
|
|
46
|
+
* });
|
|
47
|
+
* const example_kafka = new mongodbatlas.StreamConnection("example-kafka", {
|
|
48
|
+
* projectId: projectId,
|
|
49
|
+
* instanceName: example.instanceName,
|
|
50
|
+
* connectionName: "KafkaPlaintextConnection",
|
|
51
|
+
* type: "Kafka",
|
|
52
|
+
* authentication: {
|
|
53
|
+
* mechanism: "PLAIN",
|
|
54
|
+
* username: kafkaUsername,
|
|
55
|
+
* password: kafkaPassword,
|
|
56
|
+
* },
|
|
57
|
+
* bootstrapServers: "localhost:9092,localhost:9092",
|
|
58
|
+
* config: {
|
|
59
|
+
* "auto.offset.reset": "earliest",
|
|
60
|
+
* },
|
|
61
|
+
* security: {
|
|
62
|
+
* protocol: "SASL_PLAINTEXT",
|
|
63
|
+
* },
|
|
64
|
+
* });
|
|
65
|
+
* const stream_processor_sample_example = new mongodbatlas.StreamProcessor("stream-processor-sample-example", {
|
|
66
|
+
* projectId: projectId,
|
|
67
|
+
* instanceName: example.instanceName,
|
|
68
|
+
* processorName: "sampleProcessorName",
|
|
69
|
+
* pipeline: JSON.stringify([
|
|
70
|
+
* {
|
|
71
|
+
* $source: {
|
|
72
|
+
* connectionName: mongodbatlasStreamConnection["example-sample"].connectionName,
|
|
73
|
+
* },
|
|
74
|
+
* },
|
|
75
|
+
* {
|
|
76
|
+
* $emit: {
|
|
77
|
+
* connectionName: mongodbatlasStreamConnection["example-cluster"].connectionName,
|
|
78
|
+
* db: "sample",
|
|
79
|
+
* coll: "solar",
|
|
80
|
+
* timeseries: {
|
|
81
|
+
* timeField: "_ts",
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
84
|
+
* },
|
|
85
|
+
* ]),
|
|
86
|
+
* state: "STARTED",
|
|
87
|
+
* });
|
|
88
|
+
* const stream_processor_cluster_to_kafka_example = new mongodbatlas.StreamProcessor("stream-processor-cluster-to-kafka-example", {
|
|
89
|
+
* projectId: projectId,
|
|
90
|
+
* instanceName: example.instanceName,
|
|
91
|
+
* processorName: "clusterProcessorName",
|
|
92
|
+
* pipeline: JSON.stringify([
|
|
93
|
+
* {
|
|
94
|
+
* $source: {
|
|
95
|
+
* connectionName: mongodbatlasStreamConnection["example-cluster"].connectionName,
|
|
96
|
+
* },
|
|
97
|
+
* },
|
|
98
|
+
* {
|
|
99
|
+
* $emit: {
|
|
100
|
+
* connectionName: mongodbatlasStreamConnection["example-kafka"].connectionName,
|
|
101
|
+
* topic: "topic_from_cluster",
|
|
102
|
+
* },
|
|
103
|
+
* },
|
|
104
|
+
* ]),
|
|
105
|
+
* state: "CREATED",
|
|
106
|
+
* });
|
|
107
|
+
* const stream_processor_kafka_to_cluster_example = new mongodbatlas.StreamProcessor("stream-processor-kafka-to-cluster-example", {
|
|
108
|
+
* projectId: projectId,
|
|
109
|
+
* instanceName: example.instanceName,
|
|
110
|
+
* processorName: "kafkaProcessorName",
|
|
111
|
+
* pipeline: JSON.stringify([
|
|
112
|
+
* {
|
|
113
|
+
* $source: {
|
|
114
|
+
* connectionName: mongodbatlasStreamConnection["example-kafka"].connectionName,
|
|
115
|
+
* topic: "topic_source",
|
|
116
|
+
* },
|
|
117
|
+
* },
|
|
118
|
+
* {
|
|
119
|
+
* $emit: {
|
|
120
|
+
* connectionName: mongodbatlasStreamConnection["example-cluster"].connectionName,
|
|
121
|
+
* db: "kafka",
|
|
122
|
+
* coll: "topic_source",
|
|
123
|
+
* timeseries: {
|
|
124
|
+
* timeField: "ts",
|
|
125
|
+
* },
|
|
126
|
+
* },
|
|
127
|
+
* },
|
|
128
|
+
* ]),
|
|
129
|
+
* state: "CREATED",
|
|
130
|
+
* options: {
|
|
131
|
+
* dlq: {
|
|
132
|
+
* coll: "exampleColumn",
|
|
133
|
+
* connectionName: mongodbatlasStreamConnection["example-cluster"].connectionName,
|
|
134
|
+
* db: "exampleDb",
|
|
135
|
+
* },
|
|
136
|
+
* },
|
|
137
|
+
* });
|
|
138
|
+
* const example_stream_processors = example.instanceName.apply(instanceName => mongodbatlas.getStreamProcessorsOutput({
|
|
139
|
+
* projectId: projectId,
|
|
140
|
+
* instanceName: instanceName,
|
|
141
|
+
* }));
|
|
142
|
+
* const example_stream_processor = pulumi.all([example.instanceName, stream_processor_sample_example.processorName]).apply(([instanceName, processorName]) => mongodbatlas.getStreamProcessorOutput({
|
|
143
|
+
* projectId: projectId,
|
|
144
|
+
* instanceName: instanceName,
|
|
145
|
+
* processorName: processorName,
|
|
146
|
+
* }));
|
|
147
|
+
* export const streamProcessorsState = example_stream_processor.apply(example_stream_processor => example_stream_processor.state);
|
|
148
|
+
* export const streamProcessorsResults = example_stream_processors.apply(example_stream_processors => example_stream_processors.results);
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
18
151
|
* ## Import
|
|
19
152
|
*
|
|
20
153
|
* Stream Processor resource can be imported using the Project ID, Stream Instance name and Stream Processor name, in the format `INSTANCE_NAME-PROJECT_ID-PROCESSOR_NAME`, e.g.
|
package/streamProcessor.js
CHANGED
|
@@ -19,6 +19,139 @@ const utilities = require("./utilities");
|
|
|
19
19
|
*
|
|
20
20
|
* ### S
|
|
21
21
|
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
25
|
+
*
|
|
26
|
+
* const example = new mongodbatlas.StreamInstance("example", {
|
|
27
|
+
* projectId: projectId,
|
|
28
|
+
* instanceName: "InstanceName",
|
|
29
|
+
* dataProcessRegion: {
|
|
30
|
+
* region: "VIRGINIA_USA",
|
|
31
|
+
* cloudProvider: "AWS",
|
|
32
|
+
* },
|
|
33
|
+
* });
|
|
34
|
+
* const example_sample = new mongodbatlas.StreamConnection("example-sample", {
|
|
35
|
+
* projectId: projectId,
|
|
36
|
+
* instanceName: example.instanceName,
|
|
37
|
+
* connectionName: "sample_stream_solar",
|
|
38
|
+
* type: "Sample",
|
|
39
|
+
* });
|
|
40
|
+
* const example_cluster = new mongodbatlas.StreamConnection("example-cluster", {
|
|
41
|
+
* projectId: projectId,
|
|
42
|
+
* instanceName: example.instanceName,
|
|
43
|
+
* connectionName: "ClusterConnection",
|
|
44
|
+
* type: "Cluster",
|
|
45
|
+
* clusterName: clusterName,
|
|
46
|
+
* dbRoleToExecute: {
|
|
47
|
+
* role: "atlasAdmin",
|
|
48
|
+
* type: "BUILT_IN",
|
|
49
|
+
* },
|
|
50
|
+
* });
|
|
51
|
+
* const example_kafka = new mongodbatlas.StreamConnection("example-kafka", {
|
|
52
|
+
* projectId: projectId,
|
|
53
|
+
* instanceName: example.instanceName,
|
|
54
|
+
* connectionName: "KafkaPlaintextConnection",
|
|
55
|
+
* type: "Kafka",
|
|
56
|
+
* authentication: {
|
|
57
|
+
* mechanism: "PLAIN",
|
|
58
|
+
* username: kafkaUsername,
|
|
59
|
+
* password: kafkaPassword,
|
|
60
|
+
* },
|
|
61
|
+
* bootstrapServers: "localhost:9092,localhost:9092",
|
|
62
|
+
* config: {
|
|
63
|
+
* "auto.offset.reset": "earliest",
|
|
64
|
+
* },
|
|
65
|
+
* security: {
|
|
66
|
+
* protocol: "SASL_PLAINTEXT",
|
|
67
|
+
* },
|
|
68
|
+
* });
|
|
69
|
+
* const stream_processor_sample_example = new mongodbatlas.StreamProcessor("stream-processor-sample-example", {
|
|
70
|
+
* projectId: projectId,
|
|
71
|
+
* instanceName: example.instanceName,
|
|
72
|
+
* processorName: "sampleProcessorName",
|
|
73
|
+
* pipeline: JSON.stringify([
|
|
74
|
+
* {
|
|
75
|
+
* $source: {
|
|
76
|
+
* connectionName: mongodbatlasStreamConnection["example-sample"].connectionName,
|
|
77
|
+
* },
|
|
78
|
+
* },
|
|
79
|
+
* {
|
|
80
|
+
* $emit: {
|
|
81
|
+
* connectionName: mongodbatlasStreamConnection["example-cluster"].connectionName,
|
|
82
|
+
* db: "sample",
|
|
83
|
+
* coll: "solar",
|
|
84
|
+
* timeseries: {
|
|
85
|
+
* timeField: "_ts",
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* },
|
|
89
|
+
* ]),
|
|
90
|
+
* state: "STARTED",
|
|
91
|
+
* });
|
|
92
|
+
* const stream_processor_cluster_to_kafka_example = new mongodbatlas.StreamProcessor("stream-processor-cluster-to-kafka-example", {
|
|
93
|
+
* projectId: projectId,
|
|
94
|
+
* instanceName: example.instanceName,
|
|
95
|
+
* processorName: "clusterProcessorName",
|
|
96
|
+
* pipeline: JSON.stringify([
|
|
97
|
+
* {
|
|
98
|
+
* $source: {
|
|
99
|
+
* connectionName: mongodbatlasStreamConnection["example-cluster"].connectionName,
|
|
100
|
+
* },
|
|
101
|
+
* },
|
|
102
|
+
* {
|
|
103
|
+
* $emit: {
|
|
104
|
+
* connectionName: mongodbatlasStreamConnection["example-kafka"].connectionName,
|
|
105
|
+
* topic: "topic_from_cluster",
|
|
106
|
+
* },
|
|
107
|
+
* },
|
|
108
|
+
* ]),
|
|
109
|
+
* state: "CREATED",
|
|
110
|
+
* });
|
|
111
|
+
* const stream_processor_kafka_to_cluster_example = new mongodbatlas.StreamProcessor("stream-processor-kafka-to-cluster-example", {
|
|
112
|
+
* projectId: projectId,
|
|
113
|
+
* instanceName: example.instanceName,
|
|
114
|
+
* processorName: "kafkaProcessorName",
|
|
115
|
+
* pipeline: JSON.stringify([
|
|
116
|
+
* {
|
|
117
|
+
* $source: {
|
|
118
|
+
* connectionName: mongodbatlasStreamConnection["example-kafka"].connectionName,
|
|
119
|
+
* topic: "topic_source",
|
|
120
|
+
* },
|
|
121
|
+
* },
|
|
122
|
+
* {
|
|
123
|
+
* $emit: {
|
|
124
|
+
* connectionName: mongodbatlasStreamConnection["example-cluster"].connectionName,
|
|
125
|
+
* db: "kafka",
|
|
126
|
+
* coll: "topic_source",
|
|
127
|
+
* timeseries: {
|
|
128
|
+
* timeField: "ts",
|
|
129
|
+
* },
|
|
130
|
+
* },
|
|
131
|
+
* },
|
|
132
|
+
* ]),
|
|
133
|
+
* state: "CREATED",
|
|
134
|
+
* options: {
|
|
135
|
+
* dlq: {
|
|
136
|
+
* coll: "exampleColumn",
|
|
137
|
+
* connectionName: mongodbatlasStreamConnection["example-cluster"].connectionName,
|
|
138
|
+
* db: "exampleDb",
|
|
139
|
+
* },
|
|
140
|
+
* },
|
|
141
|
+
* });
|
|
142
|
+
* const example_stream_processors = example.instanceName.apply(instanceName => mongodbatlas.getStreamProcessorsOutput({
|
|
143
|
+
* projectId: projectId,
|
|
144
|
+
* instanceName: instanceName,
|
|
145
|
+
* }));
|
|
146
|
+
* const example_stream_processor = pulumi.all([example.instanceName, stream_processor_sample_example.processorName]).apply(([instanceName, processorName]) => mongodbatlas.getStreamProcessorOutput({
|
|
147
|
+
* projectId: projectId,
|
|
148
|
+
* instanceName: instanceName,
|
|
149
|
+
* processorName: processorName,
|
|
150
|
+
* }));
|
|
151
|
+
* export const streamProcessorsState = example_stream_processor.apply(example_stream_processor => example_stream_processor.state);
|
|
152
|
+
* export const streamProcessorsResults = example_stream_processors.apply(example_stream_processors => example_stream_processors.results);
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
22
155
|
* ## Import
|
|
23
156
|
*
|
|
24
157
|
* Stream Processor resource can be imported using the Project ID, Stream Instance name and Stream Processor name, in the format `INSTANCE_NAME-PROJECT_ID-PROCESSOR_NAME`, e.g.
|
package/streamProcessor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streamProcessor.js","sourceRoot":"","sources":["../streamProcessor.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"streamProcessor.js","sourceRoot":"","sources":["../streamProcessor.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwJG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;Q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,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAvGL,0CAwGC;AA1FG,gBAAgB;AACO,4BAAY,GAAG,oDAAoD,CAAC"}
|
|
@@ -20,8 +20,71 @@ import * as outputs from "./types/output";
|
|
|
20
20
|
* ### S
|
|
21
21
|
*
|
|
22
22
|
* ### Example Usage: Generate an Atlas-managed X.509 certificate for a MongoDB user
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
26
|
+
*
|
|
27
|
+
* const user = new mongodbatlas.DatabaseUser("user", {
|
|
28
|
+
* projectId: "64b926dd56206839b1c8bae9",
|
|
29
|
+
* username: "myUsername",
|
|
30
|
+
* x509Type: "MANAGED",
|
|
31
|
+
* databaseName: "$external",
|
|
32
|
+
* roles: [{
|
|
33
|
+
* roleName: "atlasAdmin",
|
|
34
|
+
* databaseName: "admin",
|
|
35
|
+
* }],
|
|
36
|
+
* labels: [{
|
|
37
|
+
* key: "My Key",
|
|
38
|
+
* value: "My Value",
|
|
39
|
+
* }],
|
|
40
|
+
* });
|
|
41
|
+
* const test = new mongodbatlas.X509AuthenticationDatabaseUser("test", {
|
|
42
|
+
* projectId: user.projectId,
|
|
43
|
+
* username: user.username,
|
|
44
|
+
* monthsUntilExpiration: 2,
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
23
47
|
*
|
|
24
48
|
* ### Example Usage: Save a self-managed X.509 certificate for an Atlas project and use it with a dababase user
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
52
|
+
*
|
|
53
|
+
* const test = new mongodbatlas.X509AuthenticationDatabaseUser("test", {
|
|
54
|
+
* projectId: "<PROJECT-ID>",
|
|
55
|
+
* customerX509Cas: `-----BEGIN CERTIFICATE-----
|
|
56
|
+
* MIICmTCCAgICCQDZnHzklxsT9TANBgkqhkiG9w0BAQsFADCBkDELMAkGA1UEBhMC
|
|
57
|
+
* VVMxDjAMBgNVBAgMBVRleGFzMQ8wDQYDVQQHDAZBdXN0aW4xETAPBgNVBAoMCHRl
|
|
58
|
+
* c3QuY29tMQ0wCwYDVQQLDARUZXN0MREwDwYDVQQDDAh0ZXN0LmNvbTErMCkGCSqG
|
|
59
|
+
* SIb3DQEJARYcbWVsaXNzYS5wbHVua2V0dEBtb25nb2RiLmNvbTAeFw0yMDAyMDQy
|
|
60
|
+
* MDQ2MDFaFw0yMTAyMDMyMDQ2MDFaMIGQMQswCQYDVQQGEwJVUzEOMAwGA1UECAwF
|
|
61
|
+
* VGV4YXMxDzANBgNVBAcMBkF1c3RpbjERMA8GA1UECgwIdGVzdC5jb20xDTALBgNV
|
|
62
|
+
* BAsMBFRlc3QxETAPBgNVBAMMCHRlc3QuY29tMSswKQYJKoZIhvcNAQkBFhxtZWxp
|
|
63
|
+
* c3NhLnBsdW5rZXR0QG1vbmdvZGIuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB
|
|
64
|
+
* iQKBgQCf1LRqr1zftzdYx2Aj9G76tb0noMPtj6faGLlPji1+m6Rn7RWD9L0ntWAr
|
|
65
|
+
* cURxvypa9jZ9MXFzDtLevvd3tHEmfrUT3ukNDX6+Jtc4kWm+Dh2A70Pd+deKZ2/O
|
|
66
|
+
* Fh8audEKAESGXnTbeJCeQa1XKlIkjqQHBNwES5h1b9vJtFoLJwIDAQABMA0GCSqG
|
|
67
|
+
* SIb3DQEBCwUAA4GBADMUncjEPV/MiZUcVNGmktP6BPmEqMXQWUDpdGW2+Tg2JtUA
|
|
68
|
+
* 7MMILtepBkFzLO+GlpZxeAlXO0wxiNgEmCRONgh4+t2w3e7a8GFijYQ99FHrAC5A
|
|
69
|
+
* iul59bdl18gVqXia1Yeq/iK7Ohfy/Jwd7Hsm530elwkM/ZEkYDjBlZSXYdyz
|
|
70
|
+
* -----END CERTIFICATE-----\\"
|
|
71
|
+
* `,
|
|
72
|
+
* });
|
|
73
|
+
* const user = new mongodbatlas.DatabaseUser("user", {
|
|
74
|
+
* projectId: "64b926dd56206839b1c8bae9",
|
|
75
|
+
* username: "myUsername",
|
|
76
|
+
* x509Type: "CUSTOMER",
|
|
77
|
+
* databaseName: "$external",
|
|
78
|
+
* roles: [{
|
|
79
|
+
* roleName: "atlasAdmin",
|
|
80
|
+
* databaseName: "admin",
|
|
81
|
+
* }],
|
|
82
|
+
* labels: [{
|
|
83
|
+
* key: "My Key",
|
|
84
|
+
* value: "My Value",
|
|
85
|
+
* }],
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
25
88
|
*
|
|
26
89
|
* ## Import
|
|
27
90
|
*
|
|
@@ -24,8 +24,71 @@ const utilities = require("./utilities");
|
|
|
24
24
|
* ### S
|
|
25
25
|
*
|
|
26
26
|
* ### Example Usage: Generate an Atlas-managed X.509 certificate for a MongoDB user
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
30
|
+
*
|
|
31
|
+
* const user = new mongodbatlas.DatabaseUser("user", {
|
|
32
|
+
* projectId: "64b926dd56206839b1c8bae9",
|
|
33
|
+
* username: "myUsername",
|
|
34
|
+
* x509Type: "MANAGED",
|
|
35
|
+
* databaseName: "$external",
|
|
36
|
+
* roles: [{
|
|
37
|
+
* roleName: "atlasAdmin",
|
|
38
|
+
* databaseName: "admin",
|
|
39
|
+
* }],
|
|
40
|
+
* labels: [{
|
|
41
|
+
* key: "My Key",
|
|
42
|
+
* value: "My Value",
|
|
43
|
+
* }],
|
|
44
|
+
* });
|
|
45
|
+
* const test = new mongodbatlas.X509AuthenticationDatabaseUser("test", {
|
|
46
|
+
* projectId: user.projectId,
|
|
47
|
+
* username: user.username,
|
|
48
|
+
* monthsUntilExpiration: 2,
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
27
51
|
*
|
|
28
52
|
* ### Example Usage: Save a self-managed X.509 certificate for an Atlas project and use it with a dababase user
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
56
|
+
*
|
|
57
|
+
* const test = new mongodbatlas.X509AuthenticationDatabaseUser("test", {
|
|
58
|
+
* projectId: "<PROJECT-ID>",
|
|
59
|
+
* customerX509Cas: `-----BEGIN CERTIFICATE-----
|
|
60
|
+
* MIICmTCCAgICCQDZnHzklxsT9TANBgkqhkiG9w0BAQsFADCBkDELMAkGA1UEBhMC
|
|
61
|
+
* VVMxDjAMBgNVBAgMBVRleGFzMQ8wDQYDVQQHDAZBdXN0aW4xETAPBgNVBAoMCHRl
|
|
62
|
+
* c3QuY29tMQ0wCwYDVQQLDARUZXN0MREwDwYDVQQDDAh0ZXN0LmNvbTErMCkGCSqG
|
|
63
|
+
* SIb3DQEJARYcbWVsaXNzYS5wbHVua2V0dEBtb25nb2RiLmNvbTAeFw0yMDAyMDQy
|
|
64
|
+
* MDQ2MDFaFw0yMTAyMDMyMDQ2MDFaMIGQMQswCQYDVQQGEwJVUzEOMAwGA1UECAwF
|
|
65
|
+
* VGV4YXMxDzANBgNVBAcMBkF1c3RpbjERMA8GA1UECgwIdGVzdC5jb20xDTALBgNV
|
|
66
|
+
* BAsMBFRlc3QxETAPBgNVBAMMCHRlc3QuY29tMSswKQYJKoZIhvcNAQkBFhxtZWxp
|
|
67
|
+
* c3NhLnBsdW5rZXR0QG1vbmdvZGIuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB
|
|
68
|
+
* iQKBgQCf1LRqr1zftzdYx2Aj9G76tb0noMPtj6faGLlPji1+m6Rn7RWD9L0ntWAr
|
|
69
|
+
* cURxvypa9jZ9MXFzDtLevvd3tHEmfrUT3ukNDX6+Jtc4kWm+Dh2A70Pd+deKZ2/O
|
|
70
|
+
* Fh8audEKAESGXnTbeJCeQa1XKlIkjqQHBNwES5h1b9vJtFoLJwIDAQABMA0GCSqG
|
|
71
|
+
* SIb3DQEBCwUAA4GBADMUncjEPV/MiZUcVNGmktP6BPmEqMXQWUDpdGW2+Tg2JtUA
|
|
72
|
+
* 7MMILtepBkFzLO+GlpZxeAlXO0wxiNgEmCRONgh4+t2w3e7a8GFijYQ99FHrAC5A
|
|
73
|
+
* iul59bdl18gVqXia1Yeq/iK7Ohfy/Jwd7Hsm530elwkM/ZEkYDjBlZSXYdyz
|
|
74
|
+
* -----END CERTIFICATE-----\\"
|
|
75
|
+
* `,
|
|
76
|
+
* });
|
|
77
|
+
* const user = new mongodbatlas.DatabaseUser("user", {
|
|
78
|
+
* projectId: "64b926dd56206839b1c8bae9",
|
|
79
|
+
* username: "myUsername",
|
|
80
|
+
* x509Type: "CUSTOMER",
|
|
81
|
+
* databaseName: "$external",
|
|
82
|
+
* roles: [{
|
|
83
|
+
* roleName: "atlasAdmin",
|
|
84
|
+
* databaseName: "admin",
|
|
85
|
+
* }],
|
|
86
|
+
* labels: [{
|
|
87
|
+
* key: "My Key",
|
|
88
|
+
* value: "My Value",
|
|
89
|
+
* }],
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
29
92
|
*
|
|
30
93
|
* ## Import
|
|
31
94
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x509authenticationDatabaseUser.js","sourceRoot":"","sources":["../x509authenticationDatabaseUser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"x509authenticationDatabaseUser.js","sourceRoot":"","sources":["../x509authenticationDatabaseUser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoGG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;IAmCD,YAAY,IAAY,EAAE,WAAsF,EAAE,IAAmC;QACjJ,IAA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