@pulumi/mongodbatlas 4.2.0-alpha.1768543290 → 4.2.0-alpha.1769139905
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/apiKeyProjectAssignment.d.ts +12 -1
- package/apiKeyProjectAssignment.js +12 -1
- package/apiKeyProjectAssignment.js.map +1 -1
- package/getAccessListApiKey.d.ts +19 -14
- package/getAccessListApiKey.js +2 -8
- package/getAccessListApiKey.js.map +1 -1
- package/getAccessListApiKeys.d.ts +21 -14
- package/getAccessListApiKeys.js +6 -14
- package/getAccessListApiKeys.js.map +1 -1
- package/getApiKeyProjectAssignment.d.ts +24 -2
- package/getApiKeyProjectAssignment.js +24 -2
- package/getApiKeyProjectAssignment.js.map +1 -1
- package/getApiKeyProjectAssignments.d.ts +24 -2
- package/getApiKeyProjectAssignments.js +24 -2
- package/getApiKeyProjectAssignments.js.map +1 -1
- package/getMaintenanceWindow.d.ts +1 -1
- package/getProjectIpAccessList.d.ts +69 -71
- package/getProjectIpAccessList.js +48 -58
- package/getProjectIpAccessList.js.map +1 -1
- package/getProjectServiceAccount.d.ts +73 -0
- package/getProjectServiceAccount.js +30 -0
- package/getProjectServiceAccount.js.map +1 -0
- package/getProjectServiceAccountAccessListEntries.d.ts +137 -0
- package/getProjectServiceAccountAccessListEntries.js +110 -0
- package/getProjectServiceAccountAccessListEntries.js.map +1 -0
- package/getProjectServiceAccountAccessListEntry.d.ts +172 -0
- package/getProjectServiceAccountAccessListEntry.js +114 -0
- package/getProjectServiceAccountAccessListEntry.js.map +1 -0
- package/getProjectServiceAccountSecret.d.ts +134 -0
- package/getProjectServiceAccountSecret.js +86 -0
- package/getProjectServiceAccountSecret.js.map +1 -0
- package/getProjectServiceAccounts.d.ts +45 -0
- package/getProjectServiceAccounts.js +28 -0
- package/getProjectServiceAccounts.js.map +1 -0
- package/getServiceAccount.d.ts +73 -0
- package/getServiceAccount.js +30 -0
- package/getServiceAccount.js.map +1 -0
- package/getServiceAccountAccessListEntries.d.ts +137 -0
- package/getServiceAccountAccessListEntries.js +110 -0
- package/getServiceAccountAccessListEntries.js.map +1 -0
- package/getServiceAccountAccessListEntry.d.ts +172 -0
- package/getServiceAccountAccessListEntry.js +114 -0
- package/getServiceAccountAccessListEntry.js.map +1 -0
- package/getServiceAccountProjectAssignment.d.ts +116 -0
- package/getServiceAccountProjectAssignment.js +90 -0
- package/getServiceAccountProjectAssignment.js.map +1 -0
- package/getServiceAccountProjectAssignments.d.ts +117 -0
- package/getServiceAccountProjectAssignments.js +90 -0
- package/getServiceAccountProjectAssignments.js.map +1 -0
- package/getServiceAccountSecret.d.ts +134 -0
- package/getServiceAccountSecret.js +86 -0
- package/getServiceAccountSecret.js.map +1 -0
- package/getServiceAccounts.d.ts +45 -0
- package/getServiceAccounts.js +28 -0
- package/getServiceAccounts.js.map +1 -0
- package/getStreamConnection.d.ts +15 -1
- package/getStreamConnection.js.map +1 -1
- package/index.d.ts +57 -0
- package/index.js +75 -3
- package/index.js.map +1 -1
- package/maintenanceWindow.d.ts +9 -9
- package/package.json +2 -2
- package/projectIpAccessList.d.ts +33 -49
- package/projectIpAccessList.js +18 -19
- package/projectIpAccessList.js.map +1 -1
- package/projectServiceAccount.d.ts +133 -0
- package/projectServiceAccount.js +83 -0
- package/projectServiceAccount.js.map +1 -0
- package/projectServiceAccountAccessListEntry.d.ts +168 -0
- package/projectServiceAccountAccessListEntry.js +121 -0
- package/projectServiceAccountAccessListEntry.js.map +1 -0
- package/projectServiceAccountSecret.d.ts +160 -0
- package/projectServiceAccountSecret.js +113 -0
- package/projectServiceAccountSecret.js.map +1 -0
- package/serviceAccount.d.ts +133 -0
- package/serviceAccount.js +83 -0
- package/serviceAccount.js.map +1 -0
- package/serviceAccountAccessListEntry.d.ts +168 -0
- package/serviceAccountAccessListEntry.js +121 -0
- package/serviceAccountAccessListEntry.js.map +1 -0
- package/serviceAccountProjectAssignment.d.ts +114 -0
- package/serviceAccountProjectAssignment.js +104 -0
- package/serviceAccountProjectAssignment.js.map +1 -0
- package/serviceAccountSecret.d.ts +160 -0
- package/serviceAccountSecret.js +113 -0
- package/serviceAccountSecret.js.map +1 -0
- package/streamConnection.d.ts +52 -3
- package/streamConnection.js +46 -0
- package/streamConnection.js.map +1 -1
- package/types/input.d.ts +74 -4
- package/types/output.d.ts +365 -15
|
@@ -23,7 +23,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
23
23
|
* name: "Second Project",
|
|
24
24
|
* orgId: orgId,
|
|
25
25
|
* });
|
|
26
|
-
* const
|
|
26
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
27
27
|
* projectId: firstProject.id,
|
|
28
28
|
* apiKeyId: _this.apiKeyId,
|
|
29
29
|
* roles: ["GROUP_OWNER"],
|
|
@@ -39,6 +39,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
39
39
|
* cidrBlock: "0.0.0.0/1",
|
|
40
40
|
* apiKeyId: _this.apiKeyId,
|
|
41
41
|
* });
|
|
42
|
+
* // Data source to read a single API key project assignment
|
|
43
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
44
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
45
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
46
|
+
* });
|
|
47
|
+
* // Data source to read all API key project assignments for a project
|
|
48
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
49
|
+
* projectId: firstProject.id,
|
|
50
|
+
* });
|
|
51
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
52
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
42
53
|
* ```
|
|
43
54
|
*
|
|
44
55
|
* ### Further Examples
|
|
@@ -29,7 +29,7 @@ const utilities = require("./utilities");
|
|
|
29
29
|
* name: "Second Project",
|
|
30
30
|
* orgId: orgId,
|
|
31
31
|
* });
|
|
32
|
-
* const
|
|
32
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
33
33
|
* projectId: firstProject.id,
|
|
34
34
|
* apiKeyId: _this.apiKeyId,
|
|
35
35
|
* roles: ["GROUP_OWNER"],
|
|
@@ -45,6 +45,17 @@ const utilities = require("./utilities");
|
|
|
45
45
|
* cidrBlock: "0.0.0.0/1",
|
|
46
46
|
* apiKeyId: _this.apiKeyId,
|
|
47
47
|
* });
|
|
48
|
+
* // Data source to read a single API key project assignment
|
|
49
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
50
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
51
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
52
|
+
* });
|
|
53
|
+
* // Data source to read all API key project assignments for a project
|
|
54
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
55
|
+
* projectId: firstProject.id,
|
|
56
|
+
* });
|
|
57
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
58
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
48
59
|
* ```
|
|
49
60
|
*
|
|
50
61
|
* ### Further Examples
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiKeyProjectAssignment.js","sourceRoot":"","sources":["../apiKeyProjectAssignment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"apiKeyProjectAssignment.js","sourceRoot":"","sources":["../apiKeyProjectAssignment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,CAAC;YACtE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;SAC1C;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;SACzC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AA1EL,0DA2EC;AA7DG,gBAAgB;AACO,oCAAY,GAAG,oEAAoE,CAAC"}
|
package/getAccessListApiKey.d.ts
CHANGED
|
@@ -2,9 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## Example Usage
|
|
4
4
|
*
|
|
5
|
-
* ### Using CIDR Block
|
|
6
|
-
*
|
|
7
|
-
* ### Using IP Address
|
|
8
5
|
* ```typescript
|
|
9
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
7
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
@@ -12,7 +9,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
9
|
* const testAccessListApiKey = new mongodbatlas.AccessListApiKey("test", {
|
|
13
10
|
* orgId: "<ORG_ID>",
|
|
14
11
|
* ipAddress: "2.3.4.5",
|
|
15
|
-
*
|
|
12
|
+
* apiKeyId: "a29120e123cd",
|
|
16
13
|
* });
|
|
17
14
|
* const test = mongodbatlas.getAccessListApiKeyOutput({
|
|
18
15
|
* orgId: testAccessListApiKey.orgId,
|
|
@@ -28,12 +25,10 @@ export declare function getAccessListApiKey(args: GetAccessListApiKeyArgs, opts?
|
|
|
28
25
|
export interface GetAccessListApiKeyArgs {
|
|
29
26
|
/**
|
|
30
27
|
* Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
|
|
31
|
-
* *
|
|
32
|
-
* ->**NOTE:** You must set either the `cidrBlock` attribute or the `ipAddress` attribute. Don't set both.
|
|
33
28
|
*/
|
|
34
29
|
apiKeyId: string;
|
|
35
30
|
/**
|
|
36
|
-
*
|
|
31
|
+
* IP address to retrieve from the access list.
|
|
37
32
|
*/
|
|
38
33
|
ipAddress: string;
|
|
39
34
|
/**
|
|
@@ -45,25 +40,37 @@ export interface GetAccessListApiKeyArgs {
|
|
|
45
40
|
* A collection of values returned by getAccessListApiKey.
|
|
46
41
|
*/
|
|
47
42
|
export interface GetAccessListApiKeyResult {
|
|
43
|
+
/**
|
|
44
|
+
* Total number of requests that have originated from this IP address or CIDR block.
|
|
45
|
+
*/
|
|
48
46
|
readonly accessCount: number;
|
|
49
47
|
readonly apiKeyId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Range of IP addresses in CIDR notation included in the API Key access list.
|
|
50
|
+
*/
|
|
50
51
|
readonly cidrBlock: string;
|
|
52
|
+
/**
|
|
53
|
+
* Date and time when the access list entry was created.
|
|
54
|
+
*/
|
|
51
55
|
readonly created: string;
|
|
52
56
|
/**
|
|
53
57
|
* The provider-assigned unique ID for this managed resource.
|
|
54
58
|
*/
|
|
55
59
|
readonly id: string;
|
|
56
60
|
readonly ipAddress: string;
|
|
61
|
+
/**
|
|
62
|
+
* Date and time when the API key was last used from this IP address or CIDR block.
|
|
63
|
+
*/
|
|
57
64
|
readonly lastUsed: string;
|
|
65
|
+
/**
|
|
66
|
+
* IP address from which the last API request was made.
|
|
67
|
+
*/
|
|
58
68
|
readonly lastUsedAddress: string;
|
|
59
69
|
readonly orgId: string;
|
|
60
70
|
}
|
|
61
71
|
/**
|
|
62
72
|
* ## Example Usage
|
|
63
73
|
*
|
|
64
|
-
* ### Using CIDR Block
|
|
65
|
-
*
|
|
66
|
-
* ### Using IP Address
|
|
67
74
|
* ```typescript
|
|
68
75
|
* import * as pulumi from "@pulumi/pulumi";
|
|
69
76
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
@@ -71,7 +78,7 @@ export interface GetAccessListApiKeyResult {
|
|
|
71
78
|
* const testAccessListApiKey = new mongodbatlas.AccessListApiKey("test", {
|
|
72
79
|
* orgId: "<ORG_ID>",
|
|
73
80
|
* ipAddress: "2.3.4.5",
|
|
74
|
-
*
|
|
81
|
+
* apiKeyId: "a29120e123cd",
|
|
75
82
|
* });
|
|
76
83
|
* const test = mongodbatlas.getAccessListApiKeyOutput({
|
|
77
84
|
* orgId: testAccessListApiKey.orgId,
|
|
@@ -87,12 +94,10 @@ export declare function getAccessListApiKeyOutput(args: GetAccessListApiKeyOutpu
|
|
|
87
94
|
export interface GetAccessListApiKeyOutputArgs {
|
|
88
95
|
/**
|
|
89
96
|
* Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
|
|
90
|
-
* *
|
|
91
|
-
* ->**NOTE:** You must set either the `cidrBlock` attribute or the `ipAddress` attribute. Don't set both.
|
|
92
97
|
*/
|
|
93
98
|
apiKeyId: pulumi.Input<string>;
|
|
94
99
|
/**
|
|
95
|
-
*
|
|
100
|
+
* IP address to retrieve from the access list.
|
|
96
101
|
*/
|
|
97
102
|
ipAddress: pulumi.Input<string>;
|
|
98
103
|
/**
|
package/getAccessListApiKey.js
CHANGED
|
@@ -8,9 +8,6 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
* ### Using CIDR Block
|
|
12
|
-
*
|
|
13
|
-
* ### Using IP Address
|
|
14
11
|
* ```typescript
|
|
15
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
13
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
@@ -18,7 +15,7 @@ const utilities = require("./utilities");
|
|
|
18
15
|
* const testAccessListApiKey = new mongodbatlas.AccessListApiKey("test", {
|
|
19
16
|
* orgId: "<ORG_ID>",
|
|
20
17
|
* ipAddress: "2.3.4.5",
|
|
21
|
-
*
|
|
18
|
+
* apiKeyId: "a29120e123cd",
|
|
22
19
|
* });
|
|
23
20
|
* const test = mongodbatlas.getAccessListApiKeyOutput({
|
|
24
21
|
* orgId: testAccessListApiKey.orgId,
|
|
@@ -39,9 +36,6 @@ exports.getAccessListApiKey = getAccessListApiKey;
|
|
|
39
36
|
/**
|
|
40
37
|
* ## Example Usage
|
|
41
38
|
*
|
|
42
|
-
* ### Using CIDR Block
|
|
43
|
-
*
|
|
44
|
-
* ### Using IP Address
|
|
45
39
|
* ```typescript
|
|
46
40
|
* import * as pulumi from "@pulumi/pulumi";
|
|
47
41
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
@@ -49,7 +43,7 @@ exports.getAccessListApiKey = getAccessListApiKey;
|
|
|
49
43
|
* const testAccessListApiKey = new mongodbatlas.AccessListApiKey("test", {
|
|
50
44
|
* orgId: "<ORG_ID>",
|
|
51
45
|
* ipAddress: "2.3.4.5",
|
|
52
|
-
*
|
|
46
|
+
* apiKeyId: "a29120e123cd",
|
|
53
47
|
* });
|
|
54
48
|
* const test = mongodbatlas.getAccessListApiKeyOutput({
|
|
55
49
|
* orgId: testAccessListApiKey.orgId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccessListApiKey.js","sourceRoot":"","sources":["../getAccessListApiKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAccessListApiKey.js","sourceRoot":"","sources":["../getAccessListApiKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE;QACvF,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC;AAoDD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAAiC;IAC5G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4DAA4D,EAAE;QAC7F,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8DAOC"}
|
|
@@ -3,21 +3,17 @@ import * as outputs from "./types/output";
|
|
|
3
3
|
/**
|
|
4
4
|
* ## Example Usage
|
|
5
5
|
*
|
|
6
|
-
* ### Using CIDR Block
|
|
7
|
-
*
|
|
8
|
-
* ### Using IP Address
|
|
9
6
|
* ```typescript
|
|
10
7
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
8
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
12
9
|
*
|
|
13
10
|
* const testAccessListApiKey = new mongodbatlas.AccessListApiKey("test", {
|
|
14
11
|
* orgId: "<ORG_ID>",
|
|
15
|
-
*
|
|
16
|
-
*
|
|
12
|
+
* cidrBlock: "1.2.3.4/32",
|
|
13
|
+
* apiKeyId: "a29120e123cd",
|
|
17
14
|
* });
|
|
18
|
-
* const test = mongodbatlas.
|
|
15
|
+
* const test = mongodbatlas.getAccessListApiKeysOutput({
|
|
19
16
|
* orgId: testAccessListApiKey.orgId,
|
|
20
|
-
* ipAddress: testAccessListApiKey.ipAddress,
|
|
21
17
|
* apiKeyId: testAccessListApiKey.apiKeyId,
|
|
22
18
|
* });
|
|
23
19
|
* ```
|
|
@@ -27,11 +23,17 @@ export declare function getAccessListApiKeys(args: GetAccessListApiKeysArgs, opt
|
|
|
27
23
|
* A collection of arguments for invoking getAccessListApiKeys.
|
|
28
24
|
*/
|
|
29
25
|
export interface GetAccessListApiKeysArgs {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for the Organization API Key for which you want to retrieve access list entries.
|
|
28
|
+
*/
|
|
30
29
|
apiKeyId: string;
|
|
31
30
|
/**
|
|
32
31
|
* Number of items to return per page, up to a maximum of 500. Defaults to `100`.
|
|
33
32
|
*/
|
|
34
33
|
itemsPerPage?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
36
|
+
*/
|
|
35
37
|
orgId: string;
|
|
36
38
|
/**
|
|
37
39
|
* The page to return. Defaults to `1`.
|
|
@@ -50,26 +52,25 @@ export interface GetAccessListApiKeysResult {
|
|
|
50
52
|
readonly itemsPerPage?: number;
|
|
51
53
|
readonly orgId: string;
|
|
52
54
|
readonly pageNum?: number;
|
|
55
|
+
/**
|
|
56
|
+
* A list of access list entries for the specified API key. Each entry contains the following attributes:
|
|
57
|
+
*/
|
|
53
58
|
readonly results: outputs.GetAccessListApiKeysResult[];
|
|
54
59
|
}
|
|
55
60
|
/**
|
|
56
61
|
* ## Example Usage
|
|
57
62
|
*
|
|
58
|
-
* ### Using CIDR Block
|
|
59
|
-
*
|
|
60
|
-
* ### Using IP Address
|
|
61
63
|
* ```typescript
|
|
62
64
|
* import * as pulumi from "@pulumi/pulumi";
|
|
63
65
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
64
66
|
*
|
|
65
67
|
* const testAccessListApiKey = new mongodbatlas.AccessListApiKey("test", {
|
|
66
68
|
* orgId: "<ORG_ID>",
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
+
* cidrBlock: "1.2.3.4/32",
|
|
70
|
+
* apiKeyId: "a29120e123cd",
|
|
69
71
|
* });
|
|
70
|
-
* const test = mongodbatlas.
|
|
72
|
+
* const test = mongodbatlas.getAccessListApiKeysOutput({
|
|
71
73
|
* orgId: testAccessListApiKey.orgId,
|
|
72
|
-
* ipAddress: testAccessListApiKey.ipAddress,
|
|
73
74
|
* apiKeyId: testAccessListApiKey.apiKeyId,
|
|
74
75
|
* });
|
|
75
76
|
* ```
|
|
@@ -79,11 +80,17 @@ export declare function getAccessListApiKeysOutput(args: GetAccessListApiKeysOut
|
|
|
79
80
|
* A collection of arguments for invoking getAccessListApiKeys.
|
|
80
81
|
*/
|
|
81
82
|
export interface GetAccessListApiKeysOutputArgs {
|
|
83
|
+
/**
|
|
84
|
+
* Unique identifier for the Organization API Key for which you want to retrieve access list entries.
|
|
85
|
+
*/
|
|
82
86
|
apiKeyId: pulumi.Input<string>;
|
|
83
87
|
/**
|
|
84
88
|
* Number of items to return per page, up to a maximum of 500. Defaults to `100`.
|
|
85
89
|
*/
|
|
86
90
|
itemsPerPage?: pulumi.Input<number>;
|
|
91
|
+
/**
|
|
92
|
+
* Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
93
|
+
*/
|
|
87
94
|
orgId: pulumi.Input<string>;
|
|
88
95
|
/**
|
|
89
96
|
* The page to return. Defaults to `1`.
|
package/getAccessListApiKeys.js
CHANGED
|
@@ -8,21 +8,17 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
* ### Using CIDR Block
|
|
12
|
-
*
|
|
13
|
-
* ### Using IP Address
|
|
14
11
|
* ```typescript
|
|
15
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
13
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
17
14
|
*
|
|
18
15
|
* const testAccessListApiKey = new mongodbatlas.AccessListApiKey("test", {
|
|
19
16
|
* orgId: "<ORG_ID>",
|
|
20
|
-
*
|
|
21
|
-
*
|
|
17
|
+
* cidrBlock: "1.2.3.4/32",
|
|
18
|
+
* apiKeyId: "a29120e123cd",
|
|
22
19
|
* });
|
|
23
|
-
* const test = mongodbatlas.
|
|
20
|
+
* const test = mongodbatlas.getAccessListApiKeysOutput({
|
|
24
21
|
* orgId: testAccessListApiKey.orgId,
|
|
25
|
-
* ipAddress: testAccessListApiKey.ipAddress,
|
|
26
22
|
* apiKeyId: testAccessListApiKey.apiKeyId,
|
|
27
23
|
* });
|
|
28
24
|
* ```
|
|
@@ -40,21 +36,17 @@ exports.getAccessListApiKeys = getAccessListApiKeys;
|
|
|
40
36
|
/**
|
|
41
37
|
* ## Example Usage
|
|
42
38
|
*
|
|
43
|
-
* ### Using CIDR Block
|
|
44
|
-
*
|
|
45
|
-
* ### Using IP Address
|
|
46
39
|
* ```typescript
|
|
47
40
|
* import * as pulumi from "@pulumi/pulumi";
|
|
48
41
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
49
42
|
*
|
|
50
43
|
* const testAccessListApiKey = new mongodbatlas.AccessListApiKey("test", {
|
|
51
44
|
* orgId: "<ORG_ID>",
|
|
52
|
-
*
|
|
53
|
-
*
|
|
45
|
+
* cidrBlock: "1.2.3.4/32",
|
|
46
|
+
* apiKeyId: "a29120e123cd",
|
|
54
47
|
* });
|
|
55
|
-
* const test = mongodbatlas.
|
|
48
|
+
* const test = mongodbatlas.getAccessListApiKeysOutput({
|
|
56
49
|
* orgId: testAccessListApiKey.orgId,
|
|
57
|
-
* ipAddress: testAccessListApiKey.ipAddress,
|
|
58
50
|
* apiKeyId: testAccessListApiKey.apiKeyId,
|
|
59
51
|
* });
|
|
60
52
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccessListApiKeys.js","sourceRoot":"","sources":["../getAccessListApiKeys.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAccessListApiKeys.js","sourceRoot":"","sources":["../getAccessListApiKeys.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE;QACzF,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oDAQC;AAyCD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAAiC;IAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8DAA8D,EAAE;QAC/F,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gEAQC"}
|
|
@@ -23,7 +23,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
23
23
|
* name: "Second Project",
|
|
24
24
|
* orgId: orgId,
|
|
25
25
|
* });
|
|
26
|
-
* const
|
|
26
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
27
27
|
* projectId: firstProject.id,
|
|
28
28
|
* apiKeyId: _this.apiKeyId,
|
|
29
29
|
* roles: ["GROUP_OWNER"],
|
|
@@ -39,6 +39,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
39
39
|
* cidrBlock: "0.0.0.0/1",
|
|
40
40
|
* apiKeyId: _this.apiKeyId,
|
|
41
41
|
* });
|
|
42
|
+
* // Data source to read a single API key project assignment
|
|
43
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
44
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
45
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
46
|
+
* });
|
|
47
|
+
* // Data source to read all API key project assignments for a project
|
|
48
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
49
|
+
* projectId: firstProject.id,
|
|
50
|
+
* });
|
|
51
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
52
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
42
53
|
* ```
|
|
43
54
|
*/
|
|
44
55
|
export declare function getApiKeyProjectAssignment(args: GetApiKeyProjectAssignmentArgs, opts?: pulumi.InvokeOptions): Promise<GetApiKeyProjectAssignmentResult>;
|
|
@@ -97,7 +108,7 @@ export interface GetApiKeyProjectAssignmentResult {
|
|
|
97
108
|
* name: "Second Project",
|
|
98
109
|
* orgId: orgId,
|
|
99
110
|
* });
|
|
100
|
-
* const
|
|
111
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
101
112
|
* projectId: firstProject.id,
|
|
102
113
|
* apiKeyId: _this.apiKeyId,
|
|
103
114
|
* roles: ["GROUP_OWNER"],
|
|
@@ -113,6 +124,17 @@ export interface GetApiKeyProjectAssignmentResult {
|
|
|
113
124
|
* cidrBlock: "0.0.0.0/1",
|
|
114
125
|
* apiKeyId: _this.apiKeyId,
|
|
115
126
|
* });
|
|
127
|
+
* // Data source to read a single API key project assignment
|
|
128
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
129
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
130
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
131
|
+
* });
|
|
132
|
+
* // Data source to read all API key project assignments for a project
|
|
133
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
134
|
+
* projectId: firstProject.id,
|
|
135
|
+
* });
|
|
136
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
137
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
116
138
|
* ```
|
|
117
139
|
*/
|
|
118
140
|
export declare function getApiKeyProjectAssignmentOutput(args: GetApiKeyProjectAssignmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiKeyProjectAssignmentResult>;
|
|
@@ -29,7 +29,7 @@ const utilities = require("./utilities");
|
|
|
29
29
|
* name: "Second Project",
|
|
30
30
|
* orgId: orgId,
|
|
31
31
|
* });
|
|
32
|
-
* const
|
|
32
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
33
33
|
* projectId: firstProject.id,
|
|
34
34
|
* apiKeyId: _this.apiKeyId,
|
|
35
35
|
* roles: ["GROUP_OWNER"],
|
|
@@ -45,6 +45,17 @@ const utilities = require("./utilities");
|
|
|
45
45
|
* cidrBlock: "0.0.0.0/1",
|
|
46
46
|
* apiKeyId: _this.apiKeyId,
|
|
47
47
|
* });
|
|
48
|
+
* // Data source to read a single API key project assignment
|
|
49
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
50
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
51
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
52
|
+
* });
|
|
53
|
+
* // Data source to read all API key project assignments for a project
|
|
54
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
55
|
+
* projectId: firstProject.id,
|
|
56
|
+
* });
|
|
57
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
58
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
48
59
|
* ```
|
|
49
60
|
*/
|
|
50
61
|
function getApiKeyProjectAssignment(args, opts) {
|
|
@@ -79,7 +90,7 @@ exports.getApiKeyProjectAssignment = getApiKeyProjectAssignment;
|
|
|
79
90
|
* name: "Second Project",
|
|
80
91
|
* orgId: orgId,
|
|
81
92
|
* });
|
|
82
|
-
* const
|
|
93
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
83
94
|
* projectId: firstProject.id,
|
|
84
95
|
* apiKeyId: _this.apiKeyId,
|
|
85
96
|
* roles: ["GROUP_OWNER"],
|
|
@@ -95,6 +106,17 @@ exports.getApiKeyProjectAssignment = getApiKeyProjectAssignment;
|
|
|
95
106
|
* cidrBlock: "0.0.0.0/1",
|
|
96
107
|
* apiKeyId: _this.apiKeyId,
|
|
97
108
|
* });
|
|
109
|
+
* // Data source to read a single API key project assignment
|
|
110
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
111
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
112
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
113
|
+
* });
|
|
114
|
+
* // Data source to read all API key project assignments for a project
|
|
115
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
116
|
+
* projectId: firstProject.id,
|
|
117
|
+
* });
|
|
118
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
119
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
98
120
|
* ```
|
|
99
121
|
*/
|
|
100
122
|
function getApiKeyProjectAssignmentOutput(args, opts) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getApiKeyProjectAssignment.js","sourceRoot":"","sources":["../getApiKeyProjectAssignment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getApiKeyProjectAssignment.js","sourceRoot":"","sources":["../getApiKeyProjectAssignment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAA2B;IACxG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0EAA0E,EAAE;QACrG,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gEAMC;AAkCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,SAAgB,gCAAgC,CAAC,IAA0C,EAAE,IAAiC;IAC1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0EAA0E,EAAE;QAC3G,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4EAMC"}
|
|
@@ -24,7 +24,7 @@ import * as outputs from "./types/output";
|
|
|
24
24
|
* name: "Second Project",
|
|
25
25
|
* orgId: orgId,
|
|
26
26
|
* });
|
|
27
|
-
* const
|
|
27
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
28
28
|
* projectId: firstProject.id,
|
|
29
29
|
* apiKeyId: _this.apiKeyId,
|
|
30
30
|
* roles: ["GROUP_OWNER"],
|
|
@@ -40,6 +40,17 @@ import * as outputs from "./types/output";
|
|
|
40
40
|
* cidrBlock: "0.0.0.0/1",
|
|
41
41
|
* apiKeyId: _this.apiKeyId,
|
|
42
42
|
* });
|
|
43
|
+
* // Data source to read a single API key project assignment
|
|
44
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
45
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
46
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
47
|
+
* });
|
|
48
|
+
* // Data source to read all API key project assignments for a project
|
|
49
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
50
|
+
* projectId: firstProject.id,
|
|
51
|
+
* });
|
|
52
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
53
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
43
54
|
* ```
|
|
44
55
|
*/
|
|
45
56
|
export declare function getApiKeyProjectAssignments(args: GetApiKeyProjectAssignmentsArgs, opts?: pulumi.InvokeOptions): Promise<GetApiKeyProjectAssignmentsResult>;
|
|
@@ -90,7 +101,7 @@ export interface GetApiKeyProjectAssignmentsResult {
|
|
|
90
101
|
* name: "Second Project",
|
|
91
102
|
* orgId: orgId,
|
|
92
103
|
* });
|
|
93
|
-
* const
|
|
104
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
94
105
|
* projectId: firstProject.id,
|
|
95
106
|
* apiKeyId: _this.apiKeyId,
|
|
96
107
|
* roles: ["GROUP_OWNER"],
|
|
@@ -106,6 +117,17 @@ export interface GetApiKeyProjectAssignmentsResult {
|
|
|
106
117
|
* cidrBlock: "0.0.0.0/1",
|
|
107
118
|
* apiKeyId: _this.apiKeyId,
|
|
108
119
|
* });
|
|
120
|
+
* // Data source to read a single API key project assignment
|
|
121
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
122
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
123
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
124
|
+
* });
|
|
125
|
+
* // Data source to read all API key project assignments for a project
|
|
126
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
127
|
+
* projectId: firstProject.id,
|
|
128
|
+
* });
|
|
129
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
130
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
109
131
|
* ```
|
|
110
132
|
*/
|
|
111
133
|
export declare function getApiKeyProjectAssignmentsOutput(args: GetApiKeyProjectAssignmentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiKeyProjectAssignmentsResult>;
|
|
@@ -29,7 +29,7 @@ const utilities = require("./utilities");
|
|
|
29
29
|
* name: "Second Project",
|
|
30
30
|
* orgId: orgId,
|
|
31
31
|
* });
|
|
32
|
-
* const
|
|
32
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
33
33
|
* projectId: firstProject.id,
|
|
34
34
|
* apiKeyId: _this.apiKeyId,
|
|
35
35
|
* roles: ["GROUP_OWNER"],
|
|
@@ -45,6 +45,17 @@ const utilities = require("./utilities");
|
|
|
45
45
|
* cidrBlock: "0.0.0.0/1",
|
|
46
46
|
* apiKeyId: _this.apiKeyId,
|
|
47
47
|
* });
|
|
48
|
+
* // Data source to read a single API key project assignment
|
|
49
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
50
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
51
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
52
|
+
* });
|
|
53
|
+
* // Data source to read all API key project assignments for a project
|
|
54
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
55
|
+
* projectId: firstProject.id,
|
|
56
|
+
* });
|
|
57
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
58
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
48
59
|
* ```
|
|
49
60
|
*/
|
|
50
61
|
function getApiKeyProjectAssignments(args, opts) {
|
|
@@ -78,7 +89,7 @@ exports.getApiKeyProjectAssignments = getApiKeyProjectAssignments;
|
|
|
78
89
|
* name: "Second Project",
|
|
79
90
|
* orgId: orgId,
|
|
80
91
|
* });
|
|
81
|
-
* const
|
|
92
|
+
* const firstAssignmentApiKeyProjectAssignment = new mongodbatlas.ApiKeyProjectAssignment("first_assignment", {
|
|
82
93
|
* projectId: firstProject.id,
|
|
83
94
|
* apiKeyId: _this.apiKeyId,
|
|
84
95
|
* roles: ["GROUP_OWNER"],
|
|
@@ -94,6 +105,17 @@ exports.getApiKeyProjectAssignments = getApiKeyProjectAssignments;
|
|
|
94
105
|
* cidrBlock: "0.0.0.0/1",
|
|
95
106
|
* apiKeyId: _this.apiKeyId,
|
|
96
107
|
* });
|
|
108
|
+
* // Data source to read a single API key project assignment
|
|
109
|
+
* const firstAssignment = mongodbatlas.getApiKeyProjectAssignmentOutput({
|
|
110
|
+
* projectId: firstAssignmentApiKeyProjectAssignment.projectId,
|
|
111
|
+
* apiKeyId: firstAssignmentApiKeyProjectAssignment.apiKeyId,
|
|
112
|
+
* });
|
|
113
|
+
* // Data source to read all API key project assignments for a project
|
|
114
|
+
* const allAssignments = mongodbatlas.getApiKeyProjectAssignmentsOutput({
|
|
115
|
+
* projectId: firstProject.id,
|
|
116
|
+
* });
|
|
117
|
+
* export const firstAssignmentProjectId = firstAssignment.apply(firstAssignment => firstAssignment.projectId);
|
|
118
|
+
* export const allAssignmentsProjectIds = allAssignments.apply(allAssignments => .map(assignment => (assignment.projectId)));
|
|
97
119
|
* ```
|
|
98
120
|
*/
|
|
99
121
|
function getApiKeyProjectAssignmentsOutput(args, opts) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getApiKeyProjectAssignments.js","sourceRoot":"","sources":["../getApiKeyProjectAssignments.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getApiKeyProjectAssignments.js","sourceRoot":"","sources":["../getApiKeyProjectAssignments.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4EAA4E,EAAE;QACvG,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kEAKC;AA0BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,SAAgB,iCAAiC,CAAC,IAA2C,EAAE,IAAiC;IAC5H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4EAA4E,EAAE;QAC7G,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8EAKC"}
|
|
@@ -52,7 +52,7 @@ export interface GetMaintenanceWindowArgs {
|
|
|
52
52
|
*/
|
|
53
53
|
export interface GetMaintenanceWindowResult {
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* When `true`, enables automatic deferral of all scheduled maintenance for the given project by one week.
|
|
56
56
|
*/
|
|
57
57
|
readonly autoDeferOnceEnabled: boolean;
|
|
58
58
|
/**
|