pulumi-mongodbatlas 4.2.0__py3-none-any.whl → 4.2.0a1768501011__py3-none-any.whl
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.
- pulumi_mongodbatlas/__init__.py +0 -75
- pulumi_mongodbatlas/_inputs.py +12 -366
- pulumi_mongodbatlas/api_key_project_assignment.py +2 -16
- pulumi_mongodbatlas/get_access_list_api_key.py +14 -19
- pulumi_mongodbatlas/get_access_list_api_keys.py +14 -13
- pulumi_mongodbatlas/get_api_key_project_assignment.py +2 -16
- pulumi_mongodbatlas/get_api_key_project_assignments.py +2 -16
- pulumi_mongodbatlas/get_maintenance_window.py +1 -1
- pulumi_mongodbatlas/get_project_ip_access_list.py +65 -63
- pulumi_mongodbatlas/get_stream_connection.py +2 -46
- pulumi_mongodbatlas/maintenance_window.py +21 -21
- pulumi_mongodbatlas/outputs.py +94 -1126
- pulumi_mongodbatlas/project_ip_access_list.py +100 -71
- pulumi_mongodbatlas/pulumi-plugin.json +1 -1
- pulumi_mongodbatlas/stream_connection.py +7 -185
- {pulumi_mongodbatlas-4.2.0.dist-info → pulumi_mongodbatlas-4.2.0a1768501011.dist-info}/METADATA +1 -1
- {pulumi_mongodbatlas-4.2.0.dist-info → pulumi_mongodbatlas-4.2.0a1768501011.dist-info}/RECORD +19 -38
- {pulumi_mongodbatlas-4.2.0.dist-info → pulumi_mongodbatlas-4.2.0a1768501011.dist-info}/WHEEL +1 -1
- pulumi_mongodbatlas/get_project_service_account.py +0 -185
- pulumi_mongodbatlas/get_project_service_account_access_list_entries.py +0 -195
- pulumi_mongodbatlas/get_project_service_account_access_list_entry.py +0 -276
- pulumi_mongodbatlas/get_project_service_account_secret.py +0 -244
- pulumi_mongodbatlas/get_project_service_accounts.py +0 -109
- pulumi_mongodbatlas/get_service_account.py +0 -185
- pulumi_mongodbatlas/get_service_account_access_list_entries.py +0 -195
- pulumi_mongodbatlas/get_service_account_access_list_entry.py +0 -276
- pulumi_mongodbatlas/get_service_account_project_assignment.py +0 -176
- pulumi_mongodbatlas/get_service_account_project_assignments.py +0 -177
- pulumi_mongodbatlas/get_service_account_secret.py +0 -244
- pulumi_mongodbatlas/get_service_accounts.py +0 -109
- pulumi_mongodbatlas/project_service_account.py +0 -444
- pulumi_mongodbatlas/project_service_account_access_list_entry.py +0 -490
- pulumi_mongodbatlas/project_service_account_secret.py +0 -491
- pulumi_mongodbatlas/service_account.py +0 -444
- pulumi_mongodbatlas/service_account_access_list_entry.py +0 -490
- pulumi_mongodbatlas/service_account_project_assignment.py +0 -314
- pulumi_mongodbatlas/service_account_secret.py +0 -491
- {pulumi_mongodbatlas-4.2.0.dist-info → pulumi_mongodbatlas-4.2.0a1768501011.dist-info}/top_level.txt +0 -0
|
@@ -58,9 +58,6 @@ class GetAccessListApiKeyResult:
|
|
|
58
58
|
@_builtins.property
|
|
59
59
|
@pulumi.getter(name="accessCount")
|
|
60
60
|
def access_count(self) -> _builtins.int:
|
|
61
|
-
"""
|
|
62
|
-
Total number of requests that have originated from this IP address or CIDR block.
|
|
63
|
-
"""
|
|
64
61
|
return pulumi.get(self, "access_count")
|
|
65
62
|
|
|
66
63
|
@_builtins.property
|
|
@@ -71,17 +68,11 @@ class GetAccessListApiKeyResult:
|
|
|
71
68
|
@_builtins.property
|
|
72
69
|
@pulumi.getter(name="cidrBlock")
|
|
73
70
|
def cidr_block(self) -> _builtins.str:
|
|
74
|
-
"""
|
|
75
|
-
Range of IP addresses in CIDR notation included in the API Key access list.
|
|
76
|
-
"""
|
|
77
71
|
return pulumi.get(self, "cidr_block")
|
|
78
72
|
|
|
79
73
|
@_builtins.property
|
|
80
74
|
@pulumi.getter
|
|
81
75
|
def created(self) -> _builtins.str:
|
|
82
|
-
"""
|
|
83
|
-
Date and time when the access list entry was created.
|
|
84
|
-
"""
|
|
85
76
|
return pulumi.get(self, "created")
|
|
86
77
|
|
|
87
78
|
@_builtins.property
|
|
@@ -100,17 +91,11 @@ class GetAccessListApiKeyResult:
|
|
|
100
91
|
@_builtins.property
|
|
101
92
|
@pulumi.getter(name="lastUsed")
|
|
102
93
|
def last_used(self) -> _builtins.str:
|
|
103
|
-
"""
|
|
104
|
-
Date and time when the API key was last used from this IP address or CIDR block.
|
|
105
|
-
"""
|
|
106
94
|
return pulumi.get(self, "last_used")
|
|
107
95
|
|
|
108
96
|
@_builtins.property
|
|
109
97
|
@pulumi.getter(name="lastUsedAddress")
|
|
110
98
|
def last_used_address(self) -> _builtins.str:
|
|
111
|
-
"""
|
|
112
|
-
IP address from which the last API request was made.
|
|
113
|
-
"""
|
|
114
99
|
return pulumi.get(self, "last_used_address")
|
|
115
100
|
|
|
116
101
|
@_builtins.property
|
|
@@ -143,6 +128,9 @@ def get_access_list_api_key(api_key_id: Optional[_builtins.str] = None,
|
|
|
143
128
|
"""
|
|
144
129
|
## Example Usage
|
|
145
130
|
|
|
131
|
+
### Using CIDR Block
|
|
132
|
+
|
|
133
|
+
### Using IP Address
|
|
146
134
|
```python
|
|
147
135
|
import pulumi
|
|
148
136
|
import pulumi_mongodbatlas as mongodbatlas
|
|
@@ -150,7 +138,7 @@ def get_access_list_api_key(api_key_id: Optional[_builtins.str] = None,
|
|
|
150
138
|
test_access_list_api_key = mongodbatlas.AccessListApiKey("test",
|
|
151
139
|
org_id="<ORG_ID>",
|
|
152
140
|
ip_address="2.3.4.5",
|
|
153
|
-
|
|
141
|
+
api_key="a29120e123cd")
|
|
154
142
|
test = mongodbatlas.get_access_list_api_key_output(org_id=test_access_list_api_key.org_id,
|
|
155
143
|
ip_address=test_access_list_api_key.ip_address,
|
|
156
144
|
api_key_id=test_access_list_api_key.api_key_id)
|
|
@@ -158,7 +146,9 @@ def get_access_list_api_key(api_key_id: Optional[_builtins.str] = None,
|
|
|
158
146
|
|
|
159
147
|
|
|
160
148
|
:param _builtins.str api_key_id: Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
|
|
161
|
-
|
|
149
|
+
*
|
|
150
|
+
->**NOTE:** You must set either the `cidr_block` attribute or the `ip_address` attribute. Don't set both.
|
|
151
|
+
:param _builtins.str ip_address: Single IP address to be added to the access list.
|
|
162
152
|
:param _builtins.str org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
163
153
|
"""
|
|
164
154
|
__args__ = dict()
|
|
@@ -185,6 +175,9 @@ def get_access_list_api_key_output(api_key_id: Optional[pulumi.Input[_builtins.s
|
|
|
185
175
|
"""
|
|
186
176
|
## Example Usage
|
|
187
177
|
|
|
178
|
+
### Using CIDR Block
|
|
179
|
+
|
|
180
|
+
### Using IP Address
|
|
188
181
|
```python
|
|
189
182
|
import pulumi
|
|
190
183
|
import pulumi_mongodbatlas as mongodbatlas
|
|
@@ -192,7 +185,7 @@ def get_access_list_api_key_output(api_key_id: Optional[pulumi.Input[_builtins.s
|
|
|
192
185
|
test_access_list_api_key = mongodbatlas.AccessListApiKey("test",
|
|
193
186
|
org_id="<ORG_ID>",
|
|
194
187
|
ip_address="2.3.4.5",
|
|
195
|
-
|
|
188
|
+
api_key="a29120e123cd")
|
|
196
189
|
test = mongodbatlas.get_access_list_api_key_output(org_id=test_access_list_api_key.org_id,
|
|
197
190
|
ip_address=test_access_list_api_key.ip_address,
|
|
198
191
|
api_key_id=test_access_list_api_key.api_key_id)
|
|
@@ -200,7 +193,9 @@ def get_access_list_api_key_output(api_key_id: Optional[pulumi.Input[_builtins.s
|
|
|
200
193
|
|
|
201
194
|
|
|
202
195
|
:param _builtins.str api_key_id: Unique identifier for the Organization API Key for which you want to retrieve an access list entry.
|
|
203
|
-
|
|
196
|
+
*
|
|
197
|
+
->**NOTE:** You must set either the `cidr_block` attribute or the `ip_address` attribute. Don't set both.
|
|
198
|
+
:param _builtins.str ip_address: Single IP address to be added to the access list.
|
|
204
199
|
:param _builtins.str org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
205
200
|
"""
|
|
206
201
|
__args__ = dict()
|
|
@@ -78,9 +78,6 @@ class GetAccessListApiKeysResult:
|
|
|
78
78
|
@_builtins.property
|
|
79
79
|
@pulumi.getter
|
|
80
80
|
def results(self) -> Sequence['outputs.GetAccessListApiKeysResultResult']:
|
|
81
|
-
"""
|
|
82
|
-
A list of access list entries for the specified API key. Each entry contains the following attributes:
|
|
83
|
-
"""
|
|
84
81
|
return pulumi.get(self, "results")
|
|
85
82
|
|
|
86
83
|
|
|
@@ -106,22 +103,24 @@ def get_access_list_api_keys(api_key_id: Optional[_builtins.str] = None,
|
|
|
106
103
|
"""
|
|
107
104
|
## Example Usage
|
|
108
105
|
|
|
106
|
+
### Using CIDR Block
|
|
107
|
+
|
|
108
|
+
### Using IP Address
|
|
109
109
|
```python
|
|
110
110
|
import pulumi
|
|
111
111
|
import pulumi_mongodbatlas as mongodbatlas
|
|
112
112
|
|
|
113
113
|
test_access_list_api_key = mongodbatlas.AccessListApiKey("test",
|
|
114
114
|
org_id="<ORG_ID>",
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
test = mongodbatlas.
|
|
115
|
+
ip_address="2.3.4.5",
|
|
116
|
+
api_key="a29120e123cd")
|
|
117
|
+
test = mongodbatlas.get_access_list_api_key_output(org_id=test_access_list_api_key.org_id,
|
|
118
|
+
ip_address=test_access_list_api_key.ip_address,
|
|
118
119
|
api_key_id=test_access_list_api_key.api_key_id)
|
|
119
120
|
```
|
|
120
121
|
|
|
121
122
|
|
|
122
|
-
:param _builtins.str api_key_id: Unique identifier for the Organization API Key for which you want to retrieve access list entries.
|
|
123
123
|
:param _builtins.int items_per_page: Number of items to return per page, up to a maximum of 500. Defaults to `100`.
|
|
124
|
-
:param _builtins.str org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
125
124
|
:param _builtins.int page_num: The page to return. Defaults to `1`.
|
|
126
125
|
"""
|
|
127
126
|
__args__ = dict()
|
|
@@ -147,22 +146,24 @@ def get_access_list_api_keys_output(api_key_id: Optional[pulumi.Input[_builtins.
|
|
|
147
146
|
"""
|
|
148
147
|
## Example Usage
|
|
149
148
|
|
|
149
|
+
### Using CIDR Block
|
|
150
|
+
|
|
151
|
+
### Using IP Address
|
|
150
152
|
```python
|
|
151
153
|
import pulumi
|
|
152
154
|
import pulumi_mongodbatlas as mongodbatlas
|
|
153
155
|
|
|
154
156
|
test_access_list_api_key = mongodbatlas.AccessListApiKey("test",
|
|
155
157
|
org_id="<ORG_ID>",
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
test = mongodbatlas.
|
|
158
|
+
ip_address="2.3.4.5",
|
|
159
|
+
api_key="a29120e123cd")
|
|
160
|
+
test = mongodbatlas.get_access_list_api_key_output(org_id=test_access_list_api_key.org_id,
|
|
161
|
+
ip_address=test_access_list_api_key.ip_address,
|
|
159
162
|
api_key_id=test_access_list_api_key.api_key_id)
|
|
160
163
|
```
|
|
161
164
|
|
|
162
165
|
|
|
163
|
-
:param _builtins.str api_key_id: Unique identifier for the Organization API Key for which you want to retrieve access list entries.
|
|
164
166
|
:param _builtins.int items_per_page: Number of items to return per page, up to a maximum of 500. Defaults to `100`.
|
|
165
|
-
:param _builtins.str org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
166
167
|
:param _builtins.int page_num: The page to return. Defaults to `1`.
|
|
167
168
|
"""
|
|
168
169
|
__args__ = dict()
|
|
@@ -106,7 +106,7 @@ def get_api_key_project_assignment(api_key_id: Optional[_builtins.str] = None,
|
|
|
106
106
|
second_project = mongodbatlas.Project("second_project",
|
|
107
107
|
name="Second Project",
|
|
108
108
|
org_id=org_id)
|
|
109
|
-
|
|
109
|
+
first_assignment = mongodbatlas.ApiKeyProjectAssignment("first_assignment",
|
|
110
110
|
project_id=first_project.id,
|
|
111
111
|
api_key_id=this.api_key_id,
|
|
112
112
|
roles=["GROUP_OWNER"])
|
|
@@ -119,13 +119,6 @@ def get_api_key_project_assignment(api_key_id: Optional[_builtins.str] = None,
|
|
|
119
119
|
org_id=org_id,
|
|
120
120
|
cidr_block="0.0.0.0/1",
|
|
121
121
|
api_key_id=this.api_key_id)
|
|
122
|
-
# Data source to read a single API key project assignment
|
|
123
|
-
first_assignment = mongodbatlas.get_api_key_project_assignment_output(project_id=first_assignment_api_key_project_assignment.project_id,
|
|
124
|
-
api_key_id=first_assignment_api_key_project_assignment.api_key_id)
|
|
125
|
-
# Data source to read all API key project assignments for a project
|
|
126
|
-
all_assignments = mongodbatlas.get_api_key_project_assignments_output(project_id=first_project.id)
|
|
127
|
-
pulumi.export("firstAssignmentProjectId", first_assignment.project_id)
|
|
128
|
-
pulumi.export("allAssignmentsProjectIds", all_assignments.apply(lambda all_assignments: [assignment.project_id for assignment in all_assignments.results]))
|
|
129
122
|
```
|
|
130
123
|
|
|
131
124
|
|
|
@@ -167,7 +160,7 @@ def get_api_key_project_assignment_output(api_key_id: Optional[pulumi.Input[_bui
|
|
|
167
160
|
second_project = mongodbatlas.Project("second_project",
|
|
168
161
|
name="Second Project",
|
|
169
162
|
org_id=org_id)
|
|
170
|
-
|
|
163
|
+
first_assignment = mongodbatlas.ApiKeyProjectAssignment("first_assignment",
|
|
171
164
|
project_id=first_project.id,
|
|
172
165
|
api_key_id=this.api_key_id,
|
|
173
166
|
roles=["GROUP_OWNER"])
|
|
@@ -180,13 +173,6 @@ def get_api_key_project_assignment_output(api_key_id: Optional[pulumi.Input[_bui
|
|
|
180
173
|
org_id=org_id,
|
|
181
174
|
cidr_block="0.0.0.0/1",
|
|
182
175
|
api_key_id=this.api_key_id)
|
|
183
|
-
# Data source to read a single API key project assignment
|
|
184
|
-
first_assignment = mongodbatlas.get_api_key_project_assignment_output(project_id=first_assignment_api_key_project_assignment.project_id,
|
|
185
|
-
api_key_id=first_assignment_api_key_project_assignment.api_key_id)
|
|
186
|
-
# Data source to read all API key project assignments for a project
|
|
187
|
-
all_assignments = mongodbatlas.get_api_key_project_assignments_output(project_id=first_project.id)
|
|
188
|
-
pulumi.export("firstAssignmentProjectId", first_assignment.project_id)
|
|
189
|
-
pulumi.export("allAssignmentsProjectIds", all_assignments.apply(lambda all_assignments: [assignment.project_id for assignment in all_assignments.results]))
|
|
190
176
|
```
|
|
191
177
|
|
|
192
178
|
|
|
@@ -94,7 +94,7 @@ def get_api_key_project_assignments(project_id: Optional[_builtins.str] = None,
|
|
|
94
94
|
second_project = mongodbatlas.Project("second_project",
|
|
95
95
|
name="Second Project",
|
|
96
96
|
org_id=org_id)
|
|
97
|
-
|
|
97
|
+
first_assignment = mongodbatlas.ApiKeyProjectAssignment("first_assignment",
|
|
98
98
|
project_id=first_project.id,
|
|
99
99
|
api_key_id=this.api_key_id,
|
|
100
100
|
roles=["GROUP_OWNER"])
|
|
@@ -107,13 +107,6 @@ def get_api_key_project_assignments(project_id: Optional[_builtins.str] = None,
|
|
|
107
107
|
org_id=org_id,
|
|
108
108
|
cidr_block="0.0.0.0/1",
|
|
109
109
|
api_key_id=this.api_key_id)
|
|
110
|
-
# Data source to read a single API key project assignment
|
|
111
|
-
first_assignment = mongodbatlas.get_api_key_project_assignment_output(project_id=first_assignment_api_key_project_assignment.project_id,
|
|
112
|
-
api_key_id=first_assignment_api_key_project_assignment.api_key_id)
|
|
113
|
-
# Data source to read all API key project assignments for a project
|
|
114
|
-
all_assignments = mongodbatlas.get_api_key_project_assignments_output(project_id=first_project.id)
|
|
115
|
-
pulumi.export("firstAssignmentProjectId", first_assignment.project_id)
|
|
116
|
-
pulumi.export("allAssignmentsProjectIds", all_assignments.apply(lambda all_assignments: [assignment.project_id for assignment in all_assignments.results]))
|
|
117
110
|
```
|
|
118
111
|
|
|
119
112
|
|
|
@@ -151,7 +144,7 @@ def get_api_key_project_assignments_output(project_id: Optional[pulumi.Input[_bu
|
|
|
151
144
|
second_project = mongodbatlas.Project("second_project",
|
|
152
145
|
name="Second Project",
|
|
153
146
|
org_id=org_id)
|
|
154
|
-
|
|
147
|
+
first_assignment = mongodbatlas.ApiKeyProjectAssignment("first_assignment",
|
|
155
148
|
project_id=first_project.id,
|
|
156
149
|
api_key_id=this.api_key_id,
|
|
157
150
|
roles=["GROUP_OWNER"])
|
|
@@ -164,13 +157,6 @@ def get_api_key_project_assignments_output(project_id: Optional[pulumi.Input[_bu
|
|
|
164
157
|
org_id=org_id,
|
|
165
158
|
cidr_block="0.0.0.0/1",
|
|
166
159
|
api_key_id=this.api_key_id)
|
|
167
|
-
# Data source to read a single API key project assignment
|
|
168
|
-
first_assignment = mongodbatlas.get_api_key_project_assignment_output(project_id=first_assignment_api_key_project_assignment.project_id,
|
|
169
|
-
api_key_id=first_assignment_api_key_project_assignment.api_key_id)
|
|
170
|
-
# Data source to read all API key project assignments for a project
|
|
171
|
-
all_assignments = mongodbatlas.get_api_key_project_assignments_output(project_id=first_project.id)
|
|
172
|
-
pulumi.export("firstAssignmentProjectId", first_assignment.project_id)
|
|
173
|
-
pulumi.export("allAssignmentsProjectIds", all_assignments.apply(lambda all_assignments: [assignment.project_id for assignment in all_assignments.results]))
|
|
174
160
|
```
|
|
175
161
|
|
|
176
162
|
|
|
@@ -60,7 +60,7 @@ class GetMaintenanceWindowResult:
|
|
|
60
60
|
@pulumi.getter(name="autoDeferOnceEnabled")
|
|
61
61
|
def auto_defer_once_enabled(self) -> _builtins.bool:
|
|
62
62
|
"""
|
|
63
|
-
|
|
63
|
+
Flag that indicates whether you want to defer all maintenance windows one week they would be triggered.
|
|
64
64
|
"""
|
|
65
65
|
return pulumi.get(self, "auto_defer_once_enabled")
|
|
66
66
|
|
|
@@ -49,24 +49,18 @@ class GetProjectIpAccessListResult:
|
|
|
49
49
|
@_builtins.property
|
|
50
50
|
@pulumi.getter(name="awsSecurityGroup")
|
|
51
51
|
def aws_security_group(self) -> _builtins.str:
|
|
52
|
-
"""
|
|
53
|
-
Unique identifier of the AWS security group to add to the access list. Mutually exclusive with `cidr_block` and `ip_address`.
|
|
54
|
-
"""
|
|
55
52
|
return pulumi.get(self, "aws_security_group")
|
|
56
53
|
|
|
57
54
|
@_builtins.property
|
|
58
55
|
@pulumi.getter(name="cidrBlock")
|
|
59
56
|
def cidr_block(self) -> _builtins.str:
|
|
60
|
-
"""
|
|
61
|
-
Range of IP addresses in CIDR notation to be added to the access list. Mutually exclusive with `ip_address` and `aws_security_group`.
|
|
62
|
-
"""
|
|
63
57
|
return pulumi.get(self, "cidr_block")
|
|
64
58
|
|
|
65
59
|
@_builtins.property
|
|
66
60
|
@pulumi.getter
|
|
67
61
|
def comment(self) -> _builtins.str:
|
|
68
62
|
"""
|
|
69
|
-
|
|
63
|
+
Comment to add to the access list entry.
|
|
70
64
|
"""
|
|
71
65
|
return pulumi.get(self, "comment")
|
|
72
66
|
|
|
@@ -78,17 +72,11 @@ class GetProjectIpAccessListResult:
|
|
|
78
72
|
@_builtins.property
|
|
79
73
|
@pulumi.getter(name="ipAddress")
|
|
80
74
|
def ip_address(self) -> _builtins.str:
|
|
81
|
-
"""
|
|
82
|
-
Single IP address to be added to the access list. Mutually exclusive with `cidr_block` and `aws_security_group`.
|
|
83
|
-
"""
|
|
84
75
|
return pulumi.get(self, "ip_address")
|
|
85
76
|
|
|
86
77
|
@_builtins.property
|
|
87
78
|
@pulumi.getter(name="projectId")
|
|
88
79
|
def project_id(self) -> _builtins.str:
|
|
89
|
-
"""
|
|
90
|
-
Unique 24-hexadecimal digit string that identifies your project.
|
|
91
|
-
"""
|
|
92
80
|
return pulumi.get(self, "project_id")
|
|
93
81
|
|
|
94
82
|
|
|
@@ -116,6 +104,9 @@ def get_project_ip_access_list(aws_security_group: Optional[_builtins.str] = Non
|
|
|
116
104
|
|
|
117
105
|
> **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.
|
|
118
106
|
|
|
107
|
+
> **IMPORTANT:**
|
|
108
|
+
When you remove an entry from the access list, existing connections from the removed address(es) may remain open for a variable amount of time. How much time passes before Atlas closes the connection depends on several factors, including how the connection was established, the particular behavior of the application or driver using the address, and the connection protocol (e.g., TCP or UDP). This is particularly important to consider when changing an existing IP address or CIDR block as they cannot be updated via the Provider (comments can however), hence a change will force the destruction and recreation of entries.
|
|
109
|
+
|
|
119
110
|
## Example Usage
|
|
120
111
|
|
|
121
112
|
### Using CIDR Block
|
|
@@ -123,12 +114,12 @@ def get_project_ip_access_list(aws_security_group: Optional[_builtins.str] = Non
|
|
|
123
114
|
import pulumi
|
|
124
115
|
import pulumi_mongodbatlas as mongodbatlas
|
|
125
116
|
|
|
126
|
-
|
|
127
|
-
project_id=
|
|
117
|
+
test_project_ip_access_list = mongodbatlas.ProjectIpAccessList("test",
|
|
118
|
+
project_id="<PROJECT-ID>",
|
|
128
119
|
cidr_block="1.2.3.4/32",
|
|
129
|
-
comment="cidr block
|
|
130
|
-
|
|
131
|
-
cidr_block=
|
|
120
|
+
comment="cidr block for tf acc testing")
|
|
121
|
+
test = mongodbatlas.get_project_ip_access_list_output(project_id=test_project_ip_access_list.project_id,
|
|
122
|
+
cidr_block=test_project_ip_access_list.cidr_block)
|
|
132
123
|
```
|
|
133
124
|
|
|
134
125
|
### Using IP Address
|
|
@@ -136,12 +127,12 @@ def get_project_ip_access_list(aws_security_group: Optional[_builtins.str] = Non
|
|
|
136
127
|
import pulumi
|
|
137
128
|
import pulumi_mongodbatlas as mongodbatlas
|
|
138
129
|
|
|
139
|
-
|
|
140
|
-
project_id=
|
|
130
|
+
test_project_ip_access_list = mongodbatlas.ProjectIpAccessList("test",
|
|
131
|
+
project_id="<PROJECT-ID>",
|
|
141
132
|
ip_address="2.3.4.5",
|
|
142
|
-
comment="ip address
|
|
143
|
-
|
|
144
|
-
ip_address=
|
|
133
|
+
comment="ip address for tf acc testing")
|
|
134
|
+
test = mongodbatlas.get_project_ip_access_list_output(project_id=test_project_ip_access_list.project_id,
|
|
135
|
+
ip_address=test_project_ip_access_list.ip_address)
|
|
145
136
|
```
|
|
146
137
|
|
|
147
138
|
### Using an AWS Security Group
|
|
@@ -149,33 +140,37 @@ def get_project_ip_access_list(aws_security_group: Optional[_builtins.str] = Non
|
|
|
149
140
|
import pulumi
|
|
150
141
|
import pulumi_mongodbatlas as mongodbatlas
|
|
151
142
|
|
|
152
|
-
|
|
153
|
-
project_id=
|
|
143
|
+
test_network_container = mongodbatlas.NetworkContainer("test",
|
|
144
|
+
project_id="<PROJECT-ID>",
|
|
154
145
|
atlas_cidr_block="192.168.208.0/21",
|
|
155
146
|
provider_name="AWS",
|
|
156
147
|
region_name="US_EAST_1")
|
|
157
|
-
|
|
158
|
-
project_id=
|
|
159
|
-
container_id=
|
|
148
|
+
test_network_peering = mongodbatlas.NetworkPeering("test",
|
|
149
|
+
project_id="<PROJECT-ID>",
|
|
150
|
+
container_id=test_network_container.container_id,
|
|
160
151
|
accepter_region_name="us-east-1",
|
|
161
152
|
provider_name="AWS",
|
|
162
153
|
route_table_cidr_block="172.31.0.0/16",
|
|
163
154
|
vpc_id="vpc-0d93d6f69f1578bd8",
|
|
164
155
|
aws_account_id="232589400519")
|
|
165
|
-
|
|
166
|
-
project_id=
|
|
156
|
+
test_project_ip_access_list = mongodbatlas.ProjectIpAccessList("test",
|
|
157
|
+
project_id="<PROJECT-ID>",
|
|
167
158
|
aws_security_group="sg-0026348ec11780bd1",
|
|
168
|
-
comment="
|
|
169
|
-
opts = pulumi.ResourceOptions(depends_on=[
|
|
170
|
-
|
|
171
|
-
aws_security_group=
|
|
159
|
+
comment="TestAcc for awsSecurityGroup",
|
|
160
|
+
opts = pulumi.ResourceOptions(depends_on=[test_network_peering]))
|
|
161
|
+
test = mongodbatlas.get_project_ip_access_list_output(project_id=test_project_ip_access_list.project_id,
|
|
162
|
+
aws_security_group=test_project_ip_access_list.aws_security_group)
|
|
172
163
|
```
|
|
173
164
|
|
|
165
|
+
> **IMPORTANT:** In order to use AWS Security Group(s) VPC Peering must be enabled like in the above example.
|
|
174
166
|
|
|
175
|
-
|
|
176
|
-
:param _builtins.str
|
|
177
|
-
:param _builtins.str
|
|
178
|
-
:param _builtins.str
|
|
167
|
+
|
|
168
|
+
:param _builtins.str aws_security_group: Unique identifier of the AWS security group to add to the access list.
|
|
169
|
+
:param _builtins.str cidr_block: Range of IP addresses in CIDR notation to be added to the access list.
|
|
170
|
+
:param _builtins.str ip_address: Single IP address to be added to the access list.
|
|
171
|
+
|
|
172
|
+
> **NOTE:** One of the following attributes must set: `aws_security_group`, `cidr_block` or `ip_address`.
|
|
173
|
+
:param _builtins.str project_id: Unique identifier for the project to which you want to add one or more access list entries.
|
|
179
174
|
"""
|
|
180
175
|
__args__ = dict()
|
|
181
176
|
__args__['awsSecurityGroup'] = aws_security_group
|
|
@@ -202,6 +197,9 @@ def get_project_ip_access_list_output(aws_security_group: Optional[pulumi.Input[
|
|
|
202
197
|
|
|
203
198
|
> **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.
|
|
204
199
|
|
|
200
|
+
> **IMPORTANT:**
|
|
201
|
+
When you remove an entry from the access list, existing connections from the removed address(es) may remain open for a variable amount of time. How much time passes before Atlas closes the connection depends on several factors, including how the connection was established, the particular behavior of the application or driver using the address, and the connection protocol (e.g., TCP or UDP). This is particularly important to consider when changing an existing IP address or CIDR block as they cannot be updated via the Provider (comments can however), hence a change will force the destruction and recreation of entries.
|
|
202
|
+
|
|
205
203
|
## Example Usage
|
|
206
204
|
|
|
207
205
|
### Using CIDR Block
|
|
@@ -209,12 +207,12 @@ def get_project_ip_access_list_output(aws_security_group: Optional[pulumi.Input[
|
|
|
209
207
|
import pulumi
|
|
210
208
|
import pulumi_mongodbatlas as mongodbatlas
|
|
211
209
|
|
|
212
|
-
|
|
213
|
-
project_id=
|
|
210
|
+
test_project_ip_access_list = mongodbatlas.ProjectIpAccessList("test",
|
|
211
|
+
project_id="<PROJECT-ID>",
|
|
214
212
|
cidr_block="1.2.3.4/32",
|
|
215
|
-
comment="cidr block
|
|
216
|
-
|
|
217
|
-
cidr_block=
|
|
213
|
+
comment="cidr block for tf acc testing")
|
|
214
|
+
test = mongodbatlas.get_project_ip_access_list_output(project_id=test_project_ip_access_list.project_id,
|
|
215
|
+
cidr_block=test_project_ip_access_list.cidr_block)
|
|
218
216
|
```
|
|
219
217
|
|
|
220
218
|
### Using IP Address
|
|
@@ -222,12 +220,12 @@ def get_project_ip_access_list_output(aws_security_group: Optional[pulumi.Input[
|
|
|
222
220
|
import pulumi
|
|
223
221
|
import pulumi_mongodbatlas as mongodbatlas
|
|
224
222
|
|
|
225
|
-
|
|
226
|
-
project_id=
|
|
223
|
+
test_project_ip_access_list = mongodbatlas.ProjectIpAccessList("test",
|
|
224
|
+
project_id="<PROJECT-ID>",
|
|
227
225
|
ip_address="2.3.4.5",
|
|
228
|
-
comment="ip address
|
|
229
|
-
|
|
230
|
-
ip_address=
|
|
226
|
+
comment="ip address for tf acc testing")
|
|
227
|
+
test = mongodbatlas.get_project_ip_access_list_output(project_id=test_project_ip_access_list.project_id,
|
|
228
|
+
ip_address=test_project_ip_access_list.ip_address)
|
|
231
229
|
```
|
|
232
230
|
|
|
233
231
|
### Using an AWS Security Group
|
|
@@ -235,33 +233,37 @@ def get_project_ip_access_list_output(aws_security_group: Optional[pulumi.Input[
|
|
|
235
233
|
import pulumi
|
|
236
234
|
import pulumi_mongodbatlas as mongodbatlas
|
|
237
235
|
|
|
238
|
-
|
|
239
|
-
project_id=
|
|
236
|
+
test_network_container = mongodbatlas.NetworkContainer("test",
|
|
237
|
+
project_id="<PROJECT-ID>",
|
|
240
238
|
atlas_cidr_block="192.168.208.0/21",
|
|
241
239
|
provider_name="AWS",
|
|
242
240
|
region_name="US_EAST_1")
|
|
243
|
-
|
|
244
|
-
project_id=
|
|
245
|
-
container_id=
|
|
241
|
+
test_network_peering = mongodbatlas.NetworkPeering("test",
|
|
242
|
+
project_id="<PROJECT-ID>",
|
|
243
|
+
container_id=test_network_container.container_id,
|
|
246
244
|
accepter_region_name="us-east-1",
|
|
247
245
|
provider_name="AWS",
|
|
248
246
|
route_table_cidr_block="172.31.0.0/16",
|
|
249
247
|
vpc_id="vpc-0d93d6f69f1578bd8",
|
|
250
248
|
aws_account_id="232589400519")
|
|
251
|
-
|
|
252
|
-
project_id=
|
|
249
|
+
test_project_ip_access_list = mongodbatlas.ProjectIpAccessList("test",
|
|
250
|
+
project_id="<PROJECT-ID>",
|
|
253
251
|
aws_security_group="sg-0026348ec11780bd1",
|
|
254
|
-
comment="
|
|
255
|
-
opts = pulumi.ResourceOptions(depends_on=[
|
|
256
|
-
|
|
257
|
-
aws_security_group=
|
|
252
|
+
comment="TestAcc for awsSecurityGroup",
|
|
253
|
+
opts = pulumi.ResourceOptions(depends_on=[test_network_peering]))
|
|
254
|
+
test = mongodbatlas.get_project_ip_access_list_output(project_id=test_project_ip_access_list.project_id,
|
|
255
|
+
aws_security_group=test_project_ip_access_list.aws_security_group)
|
|
258
256
|
```
|
|
259
257
|
|
|
258
|
+
> **IMPORTANT:** In order to use AWS Security Group(s) VPC Peering must be enabled like in the above example.
|
|
259
|
+
|
|
260
260
|
|
|
261
|
-
:param _builtins.str aws_security_group: Unique identifier of the AWS security group to add to the access list.
|
|
262
|
-
:param _builtins.str cidr_block: Range of IP addresses in CIDR notation to be added to the access list.
|
|
263
|
-
:param _builtins.str ip_address: Single IP address to be added to the access list.
|
|
264
|
-
|
|
261
|
+
:param _builtins.str aws_security_group: Unique identifier of the AWS security group to add to the access list.
|
|
262
|
+
:param _builtins.str cidr_block: Range of IP addresses in CIDR notation to be added to the access list.
|
|
263
|
+
:param _builtins.str ip_address: Single IP address to be added to the access list.
|
|
264
|
+
|
|
265
|
+
> **NOTE:** One of the following attributes must set: `aws_security_group`, `cidr_block` or `ip_address`.
|
|
266
|
+
:param _builtins.str project_id: Unique identifier for the project to which you want to add one or more access list entries.
|
|
265
267
|
"""
|
|
266
268
|
__args__ = dict()
|
|
267
269
|
__args__['awsSecurityGroup'] = aws_security_group
|
|
@@ -27,7 +27,7 @@ class GetStreamConnectionResult:
|
|
|
27
27
|
"""
|
|
28
28
|
A collection of values returned by getStreamConnection.
|
|
29
29
|
"""
|
|
30
|
-
def __init__(__self__, authentication=None, aws=None, bootstrap_servers=None, cluster_name=None, cluster_project_id=None, config=None, connection_name=None, db_role_to_execute=None, headers=None, id=None, instance_name=None, networking=None, project_id=None,
|
|
30
|
+
def __init__(__self__, authentication=None, aws=None, bootstrap_servers=None, cluster_name=None, cluster_project_id=None, config=None, connection_name=None, db_role_to_execute=None, headers=None, id=None, instance_name=None, networking=None, project_id=None, security=None, type=None, url=None, workspace_name=None):
|
|
31
31
|
if authentication and not isinstance(authentication, dict):
|
|
32
32
|
raise TypeError("Expected argument 'authentication' to be a dict")
|
|
33
33
|
pulumi.set(__self__, "authentication", authentication)
|
|
@@ -67,15 +67,6 @@ class GetStreamConnectionResult:
|
|
|
67
67
|
if project_id and not isinstance(project_id, str):
|
|
68
68
|
raise TypeError("Expected argument 'project_id' to be a str")
|
|
69
69
|
pulumi.set(__self__, "project_id", project_id)
|
|
70
|
-
if schema_registry_authentication and not isinstance(schema_registry_authentication, dict):
|
|
71
|
-
raise TypeError("Expected argument 'schema_registry_authentication' to be a dict")
|
|
72
|
-
pulumi.set(__self__, "schema_registry_authentication", schema_registry_authentication)
|
|
73
|
-
if schema_registry_provider and not isinstance(schema_registry_provider, str):
|
|
74
|
-
raise TypeError("Expected argument 'schema_registry_provider' to be a str")
|
|
75
|
-
pulumi.set(__self__, "schema_registry_provider", schema_registry_provider)
|
|
76
|
-
if schema_registry_urls and not isinstance(schema_registry_urls, list):
|
|
77
|
-
raise TypeError("Expected argument 'schema_registry_urls' to be a list")
|
|
78
|
-
pulumi.set(__self__, "schema_registry_urls", schema_registry_urls)
|
|
79
70
|
if security and not isinstance(security, dict):
|
|
80
71
|
raise TypeError("Expected argument 'security' to be a dict")
|
|
81
72
|
pulumi.set(__self__, "security", security)
|
|
@@ -182,30 +173,6 @@ class GetStreamConnectionResult:
|
|
|
182
173
|
def project_id(self) -> _builtins.str:
|
|
183
174
|
return pulumi.get(self, "project_id")
|
|
184
175
|
|
|
185
|
-
@_builtins.property
|
|
186
|
-
@pulumi.getter(name="schemaRegistryAuthentication")
|
|
187
|
-
def schema_registry_authentication(self) -> 'outputs.GetStreamConnectionSchemaRegistryAuthenticationResult':
|
|
188
|
-
"""
|
|
189
|
-
Authentication configuration for Schema Registry. See Schema Registry Authentication.
|
|
190
|
-
"""
|
|
191
|
-
return pulumi.get(self, "schema_registry_authentication")
|
|
192
|
-
|
|
193
|
-
@_builtins.property
|
|
194
|
-
@pulumi.getter(name="schemaRegistryProvider")
|
|
195
|
-
def schema_registry_provider(self) -> _builtins.str:
|
|
196
|
-
"""
|
|
197
|
-
The Schema Registry provider. Must be set to `CONFLUENT`.
|
|
198
|
-
"""
|
|
199
|
-
return pulumi.get(self, "schema_registry_provider")
|
|
200
|
-
|
|
201
|
-
@_builtins.property
|
|
202
|
-
@pulumi.getter(name="schemaRegistryUrls")
|
|
203
|
-
def schema_registry_urls(self) -> Sequence[_builtins.str]:
|
|
204
|
-
"""
|
|
205
|
-
List of Schema Registry endpoint URLs used by this connection. Each URL must use the http or https scheme and specify a valid host and optional port.
|
|
206
|
-
"""
|
|
207
|
-
return pulumi.get(self, "schema_registry_urls")
|
|
208
|
-
|
|
209
176
|
@_builtins.property
|
|
210
177
|
@pulumi.getter
|
|
211
178
|
def security(self) -> 'outputs.GetStreamConnectionSecurityResult':
|
|
@@ -218,9 +185,7 @@ class GetStreamConnectionResult:
|
|
|
218
185
|
@pulumi.getter
|
|
219
186
|
def type(self) -> _builtins.str:
|
|
220
187
|
"""
|
|
221
|
-
|
|
222
|
-
* `USER_INFO` - Uses username and password authentication for Confluent Schema Registry.
|
|
223
|
-
* `SASL_INHERIT` - Inherits the authentication configuration from Kafka for the Confluent Schema Registry.
|
|
188
|
+
Selected networking type. Either `PUBLIC`, `VPC` or `PRIVATE_LINK`. Defaults to `PUBLIC`.
|
|
224
189
|
"""
|
|
225
190
|
return pulumi.get(self, "type")
|
|
226
191
|
|
|
@@ -257,9 +222,6 @@ class AwaitableGetStreamConnectionResult(GetStreamConnectionResult):
|
|
|
257
222
|
instance_name=self.instance_name,
|
|
258
223
|
networking=self.networking,
|
|
259
224
|
project_id=self.project_id,
|
|
260
|
-
schema_registry_authentication=self.schema_registry_authentication,
|
|
261
|
-
schema_registry_provider=self.schema_registry_provider,
|
|
262
|
-
schema_registry_urls=self.schema_registry_urls,
|
|
263
225
|
security=self.security,
|
|
264
226
|
type=self.type,
|
|
265
227
|
url=self.url,
|
|
@@ -326,9 +288,6 @@ def get_stream_connection(connection_name: Optional[_builtins.str] = None,
|
|
|
326
288
|
instance_name=pulumi.get(__ret__, 'instance_name'),
|
|
327
289
|
networking=pulumi.get(__ret__, 'networking'),
|
|
328
290
|
project_id=pulumi.get(__ret__, 'project_id'),
|
|
329
|
-
schema_registry_authentication=pulumi.get(__ret__, 'schema_registry_authentication'),
|
|
330
|
-
schema_registry_provider=pulumi.get(__ret__, 'schema_registry_provider'),
|
|
331
|
-
schema_registry_urls=pulumi.get(__ret__, 'schema_registry_urls'),
|
|
332
291
|
security=pulumi.get(__ret__, 'security'),
|
|
333
292
|
type=pulumi.get(__ret__, 'type'),
|
|
334
293
|
url=pulumi.get(__ret__, 'url'),
|
|
@@ -392,9 +351,6 @@ def get_stream_connection_output(connection_name: Optional[pulumi.Input[_builtin
|
|
|
392
351
|
instance_name=pulumi.get(__response__, 'instance_name'),
|
|
393
352
|
networking=pulumi.get(__response__, 'networking'),
|
|
394
353
|
project_id=pulumi.get(__response__, 'project_id'),
|
|
395
|
-
schema_registry_authentication=pulumi.get(__response__, 'schema_registry_authentication'),
|
|
396
|
-
schema_registry_provider=pulumi.get(__response__, 'schema_registry_provider'),
|
|
397
|
-
schema_registry_urls=pulumi.get(__response__, 'schema_registry_urls'),
|
|
398
354
|
security=pulumi.get(__response__, 'security'),
|
|
399
355
|
type=pulumi.get(__response__, 'type'),
|
|
400
356
|
url=pulumi.get(__response__, 'url'),
|