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
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import builtins as _builtins
|
|
6
|
-
import warnings
|
|
7
|
-
import sys
|
|
8
|
-
import pulumi
|
|
9
|
-
import pulumi.runtime
|
|
10
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
-
if sys.version_info >= (3, 11):
|
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
-
else:
|
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
-
from . import _utilities
|
|
16
|
-
from . import outputs
|
|
17
|
-
|
|
18
|
-
__all__ = [
|
|
19
|
-
'GetServiceAccountAccessListEntriesResult',
|
|
20
|
-
'AwaitableGetServiceAccountAccessListEntriesResult',
|
|
21
|
-
'get_service_account_access_list_entries',
|
|
22
|
-
'get_service_account_access_list_entries_output',
|
|
23
|
-
]
|
|
24
|
-
|
|
25
|
-
@pulumi.output_type
|
|
26
|
-
class GetServiceAccountAccessListEntriesResult:
|
|
27
|
-
"""
|
|
28
|
-
A collection of values returned by getServiceAccountAccessListEntries.
|
|
29
|
-
"""
|
|
30
|
-
def __init__(__self__, client_id=None, id=None, org_id=None, results=None):
|
|
31
|
-
if client_id and not isinstance(client_id, str):
|
|
32
|
-
raise TypeError("Expected argument 'client_id' to be a str")
|
|
33
|
-
pulumi.set(__self__, "client_id", client_id)
|
|
34
|
-
if id and not isinstance(id, str):
|
|
35
|
-
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
-
pulumi.set(__self__, "id", id)
|
|
37
|
-
if org_id and not isinstance(org_id, str):
|
|
38
|
-
raise TypeError("Expected argument 'org_id' to be a str")
|
|
39
|
-
pulumi.set(__self__, "org_id", org_id)
|
|
40
|
-
if results and not isinstance(results, list):
|
|
41
|
-
raise TypeError("Expected argument 'results' to be a list")
|
|
42
|
-
pulumi.set(__self__, "results", results)
|
|
43
|
-
|
|
44
|
-
@_builtins.property
|
|
45
|
-
@pulumi.getter(name="clientId")
|
|
46
|
-
def client_id(self) -> _builtins.str:
|
|
47
|
-
"""
|
|
48
|
-
The Client ID of the Service Account.
|
|
49
|
-
"""
|
|
50
|
-
return pulumi.get(self, "client_id")
|
|
51
|
-
|
|
52
|
-
@_builtins.property
|
|
53
|
-
@pulumi.getter
|
|
54
|
-
def id(self) -> _builtins.str:
|
|
55
|
-
"""
|
|
56
|
-
The provider-assigned unique ID for this managed resource.
|
|
57
|
-
"""
|
|
58
|
-
return pulumi.get(self, "id")
|
|
59
|
-
|
|
60
|
-
@_builtins.property
|
|
61
|
-
@pulumi.getter(name="orgId")
|
|
62
|
-
def org_id(self) -> _builtins.str:
|
|
63
|
-
"""
|
|
64
|
-
Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
65
|
-
"""
|
|
66
|
-
return pulumi.get(self, "org_id")
|
|
67
|
-
|
|
68
|
-
@_builtins.property
|
|
69
|
-
@pulumi.getter
|
|
70
|
-
def results(self) -> Sequence['outputs.GetServiceAccountAccessListEntriesResultResult']:
|
|
71
|
-
"""
|
|
72
|
-
List of documents that MongoDB Cloud returns for this request.
|
|
73
|
-
"""
|
|
74
|
-
return pulumi.get(self, "results")
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
class AwaitableGetServiceAccountAccessListEntriesResult(GetServiceAccountAccessListEntriesResult):
|
|
78
|
-
# pylint: disable=using-constant-test
|
|
79
|
-
def __await__(self):
|
|
80
|
-
if False:
|
|
81
|
-
yield self
|
|
82
|
-
return GetServiceAccountAccessListEntriesResult(
|
|
83
|
-
client_id=self.client_id,
|
|
84
|
-
id=self.id,
|
|
85
|
-
org_id=self.org_id,
|
|
86
|
-
results=self.results)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
def get_service_account_access_list_entries(client_id: Optional[_builtins.str] = None,
|
|
90
|
-
org_id: Optional[_builtins.str] = None,
|
|
91
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceAccountAccessListEntriesResult:
|
|
92
|
-
"""
|
|
93
|
-
## Example Usage
|
|
94
|
-
|
|
95
|
-
### S
|
|
96
|
-
|
|
97
|
-
```python
|
|
98
|
-
import pulumi
|
|
99
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
100
|
-
|
|
101
|
-
this_service_account = mongodbatlas.ServiceAccount("this",
|
|
102
|
-
org_id=org_id,
|
|
103
|
-
name="example-service-account",
|
|
104
|
-
description="Example Service Account",
|
|
105
|
-
roles=["ORG_READ_ONLY"],
|
|
106
|
-
secret_expires_after_hours=2160)
|
|
107
|
-
# Add IP Access List Entry to Service Account using CIDR Block
|
|
108
|
-
cidr = mongodbatlas.ServiceAccountAccessListEntry("cidr",
|
|
109
|
-
org_id=org_id,
|
|
110
|
-
client_id=this_service_account.client_id,
|
|
111
|
-
cidr_block="1.2.3.4/32")
|
|
112
|
-
# Add IP Access List Entry to Service Account using IP Address
|
|
113
|
-
ip = mongodbatlas.ServiceAccountAccessListEntry("ip",
|
|
114
|
-
org_id=org_id,
|
|
115
|
-
client_id=this_service_account.client_id,
|
|
116
|
-
ip_address="2.3.4.5")
|
|
117
|
-
# Data source to read a single Access List entry for the Service Account
|
|
118
|
-
this = mongodbatlas.get_service_account_access_list_entry_output(org_id=cidr.org_id,
|
|
119
|
-
client_id=cidr.client_id,
|
|
120
|
-
cidr_block=cidr.cidr_block)
|
|
121
|
-
pulumi.export("accessListEntryCidrBlock", this.cidr_block)
|
|
122
|
-
# Data source to read all Access List entries for the Service Account
|
|
123
|
-
this_get_service_account_access_list_entries = mongodbatlas.get_service_account_access_list_entries_output(org_id=this_service_account.org_id,
|
|
124
|
-
client_id=this_service_account.client_id)
|
|
125
|
-
pulumi.export("allAccessListEntries", this_get_service_account_access_list_entries.results)
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
:param _builtins.str client_id: The Client ID of the Service Account.
|
|
130
|
-
:param _builtins.str org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
131
|
-
"""
|
|
132
|
-
__args__ = dict()
|
|
133
|
-
__args__['clientId'] = client_id
|
|
134
|
-
__args__['orgId'] = org_id
|
|
135
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
136
|
-
__ret__ = pulumi.runtime.invoke('mongodbatlas:index/getServiceAccountAccessListEntries:getServiceAccountAccessListEntries', __args__, opts=opts, typ=GetServiceAccountAccessListEntriesResult).value
|
|
137
|
-
|
|
138
|
-
return AwaitableGetServiceAccountAccessListEntriesResult(
|
|
139
|
-
client_id=pulumi.get(__ret__, 'client_id'),
|
|
140
|
-
id=pulumi.get(__ret__, 'id'),
|
|
141
|
-
org_id=pulumi.get(__ret__, 'org_id'),
|
|
142
|
-
results=pulumi.get(__ret__, 'results'))
|
|
143
|
-
def get_service_account_access_list_entries_output(client_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
144
|
-
org_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
145
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceAccountAccessListEntriesResult]:
|
|
146
|
-
"""
|
|
147
|
-
## Example Usage
|
|
148
|
-
|
|
149
|
-
### S
|
|
150
|
-
|
|
151
|
-
```python
|
|
152
|
-
import pulumi
|
|
153
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
154
|
-
|
|
155
|
-
this_service_account = mongodbatlas.ServiceAccount("this",
|
|
156
|
-
org_id=org_id,
|
|
157
|
-
name="example-service-account",
|
|
158
|
-
description="Example Service Account",
|
|
159
|
-
roles=["ORG_READ_ONLY"],
|
|
160
|
-
secret_expires_after_hours=2160)
|
|
161
|
-
# Add IP Access List Entry to Service Account using CIDR Block
|
|
162
|
-
cidr = mongodbatlas.ServiceAccountAccessListEntry("cidr",
|
|
163
|
-
org_id=org_id,
|
|
164
|
-
client_id=this_service_account.client_id,
|
|
165
|
-
cidr_block="1.2.3.4/32")
|
|
166
|
-
# Add IP Access List Entry to Service Account using IP Address
|
|
167
|
-
ip = mongodbatlas.ServiceAccountAccessListEntry("ip",
|
|
168
|
-
org_id=org_id,
|
|
169
|
-
client_id=this_service_account.client_id,
|
|
170
|
-
ip_address="2.3.4.5")
|
|
171
|
-
# Data source to read a single Access List entry for the Service Account
|
|
172
|
-
this = mongodbatlas.get_service_account_access_list_entry_output(org_id=cidr.org_id,
|
|
173
|
-
client_id=cidr.client_id,
|
|
174
|
-
cidr_block=cidr.cidr_block)
|
|
175
|
-
pulumi.export("accessListEntryCidrBlock", this.cidr_block)
|
|
176
|
-
# Data source to read all Access List entries for the Service Account
|
|
177
|
-
this_get_service_account_access_list_entries = mongodbatlas.get_service_account_access_list_entries_output(org_id=this_service_account.org_id,
|
|
178
|
-
client_id=this_service_account.client_id)
|
|
179
|
-
pulumi.export("allAccessListEntries", this_get_service_account_access_list_entries.results)
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
:param _builtins.str client_id: The Client ID of the Service Account.
|
|
184
|
-
:param _builtins.str org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
185
|
-
"""
|
|
186
|
-
__args__ = dict()
|
|
187
|
-
__args__['clientId'] = client_id
|
|
188
|
-
__args__['orgId'] = org_id
|
|
189
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
190
|
-
__ret__ = pulumi.runtime.invoke_output('mongodbatlas:index/getServiceAccountAccessListEntries:getServiceAccountAccessListEntries', __args__, opts=opts, typ=GetServiceAccountAccessListEntriesResult)
|
|
191
|
-
return __ret__.apply(lambda __response__: GetServiceAccountAccessListEntriesResult(
|
|
192
|
-
client_id=pulumi.get(__response__, 'client_id'),
|
|
193
|
-
id=pulumi.get(__response__, 'id'),
|
|
194
|
-
org_id=pulumi.get(__response__, 'org_id'),
|
|
195
|
-
results=pulumi.get(__response__, 'results')))
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import builtins as _builtins
|
|
6
|
-
import warnings
|
|
7
|
-
import sys
|
|
8
|
-
import pulumi
|
|
9
|
-
import pulumi.runtime
|
|
10
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
-
if sys.version_info >= (3, 11):
|
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
-
else:
|
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
-
from . import _utilities
|
|
16
|
-
|
|
17
|
-
__all__ = [
|
|
18
|
-
'GetServiceAccountAccessListEntryResult',
|
|
19
|
-
'AwaitableGetServiceAccountAccessListEntryResult',
|
|
20
|
-
'get_service_account_access_list_entry',
|
|
21
|
-
'get_service_account_access_list_entry_output',
|
|
22
|
-
]
|
|
23
|
-
|
|
24
|
-
@pulumi.output_type
|
|
25
|
-
class GetServiceAccountAccessListEntryResult:
|
|
26
|
-
"""
|
|
27
|
-
A collection of values returned by getServiceAccountAccessListEntry.
|
|
28
|
-
"""
|
|
29
|
-
def __init__(__self__, cidr_block=None, client_id=None, created_at=None, id=None, ip_address=None, last_used_address=None, last_used_at=None, org_id=None, request_count=None):
|
|
30
|
-
if cidr_block and not isinstance(cidr_block, str):
|
|
31
|
-
raise TypeError("Expected argument 'cidr_block' to be a str")
|
|
32
|
-
pulumi.set(__self__, "cidr_block", cidr_block)
|
|
33
|
-
if client_id and not isinstance(client_id, str):
|
|
34
|
-
raise TypeError("Expected argument 'client_id' to be a str")
|
|
35
|
-
pulumi.set(__self__, "client_id", client_id)
|
|
36
|
-
if created_at and not isinstance(created_at, str):
|
|
37
|
-
raise TypeError("Expected argument 'created_at' to be a str")
|
|
38
|
-
pulumi.set(__self__, "created_at", created_at)
|
|
39
|
-
if id and not isinstance(id, str):
|
|
40
|
-
raise TypeError("Expected argument 'id' to be a str")
|
|
41
|
-
pulumi.set(__self__, "id", id)
|
|
42
|
-
if ip_address and not isinstance(ip_address, str):
|
|
43
|
-
raise TypeError("Expected argument 'ip_address' to be a str")
|
|
44
|
-
pulumi.set(__self__, "ip_address", ip_address)
|
|
45
|
-
if last_used_address and not isinstance(last_used_address, str):
|
|
46
|
-
raise TypeError("Expected argument 'last_used_address' to be a str")
|
|
47
|
-
pulumi.set(__self__, "last_used_address", last_used_address)
|
|
48
|
-
if last_used_at and not isinstance(last_used_at, str):
|
|
49
|
-
raise TypeError("Expected argument 'last_used_at' to be a str")
|
|
50
|
-
pulumi.set(__self__, "last_used_at", last_used_at)
|
|
51
|
-
if org_id and not isinstance(org_id, str):
|
|
52
|
-
raise TypeError("Expected argument 'org_id' to be a str")
|
|
53
|
-
pulumi.set(__self__, "org_id", org_id)
|
|
54
|
-
if request_count and not isinstance(request_count, int):
|
|
55
|
-
raise TypeError("Expected argument 'request_count' to be a int")
|
|
56
|
-
pulumi.set(__self__, "request_count", request_count)
|
|
57
|
-
|
|
58
|
-
@_builtins.property
|
|
59
|
-
@pulumi.getter(name="cidrBlock")
|
|
60
|
-
def cidr_block(self) -> _builtins.str:
|
|
61
|
-
"""
|
|
62
|
-
Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or **ip_address**, but not for both.
|
|
63
|
-
"""
|
|
64
|
-
return pulumi.get(self, "cidr_block")
|
|
65
|
-
|
|
66
|
-
@_builtins.property
|
|
67
|
-
@pulumi.getter(name="clientId")
|
|
68
|
-
def client_id(self) -> _builtins.str:
|
|
69
|
-
"""
|
|
70
|
-
The Client ID of the Service Account.
|
|
71
|
-
"""
|
|
72
|
-
return pulumi.get(self, "client_id")
|
|
73
|
-
|
|
74
|
-
@_builtins.property
|
|
75
|
-
@pulumi.getter(name="createdAt")
|
|
76
|
-
def created_at(self) -> _builtins.str:
|
|
77
|
-
"""
|
|
78
|
-
Date the entry was added to the access list. This attribute expresses its value in the ISO 8601 timestamp format in UTC.
|
|
79
|
-
"""
|
|
80
|
-
return pulumi.get(self, "created_at")
|
|
81
|
-
|
|
82
|
-
@_builtins.property
|
|
83
|
-
@pulumi.getter
|
|
84
|
-
def id(self) -> _builtins.str:
|
|
85
|
-
"""
|
|
86
|
-
The provider-assigned unique ID for this managed resource.
|
|
87
|
-
"""
|
|
88
|
-
return pulumi.get(self, "id")
|
|
89
|
-
|
|
90
|
-
@_builtins.property
|
|
91
|
-
@pulumi.getter(name="ipAddress")
|
|
92
|
-
def ip_address(self) -> _builtins.str:
|
|
93
|
-
"""
|
|
94
|
-
IP address to be added to the access list. You can set a value for this parameter or **cidr_block**, but not for both.
|
|
95
|
-
"""
|
|
96
|
-
return pulumi.get(self, "ip_address")
|
|
97
|
-
|
|
98
|
-
@_builtins.property
|
|
99
|
-
@pulumi.getter(name="lastUsedAddress")
|
|
100
|
-
def last_used_address(self) -> _builtins.str:
|
|
101
|
-
"""
|
|
102
|
-
Network address that issued the most recent request to the API.
|
|
103
|
-
"""
|
|
104
|
-
return pulumi.get(self, "last_used_address")
|
|
105
|
-
|
|
106
|
-
@_builtins.property
|
|
107
|
-
@pulumi.getter(name="lastUsedAt")
|
|
108
|
-
def last_used_at(self) -> _builtins.str:
|
|
109
|
-
"""
|
|
110
|
-
Date when the API received the most recent request that originated from this network address.
|
|
111
|
-
"""
|
|
112
|
-
return pulumi.get(self, "last_used_at")
|
|
113
|
-
|
|
114
|
-
@_builtins.property
|
|
115
|
-
@pulumi.getter(name="orgId")
|
|
116
|
-
def org_id(self) -> _builtins.str:
|
|
117
|
-
"""
|
|
118
|
-
Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
119
|
-
"""
|
|
120
|
-
return pulumi.get(self, "org_id")
|
|
121
|
-
|
|
122
|
-
@_builtins.property
|
|
123
|
-
@pulumi.getter(name="requestCount")
|
|
124
|
-
def request_count(self) -> _builtins.int:
|
|
125
|
-
"""
|
|
126
|
-
The number of requests that has originated from this network address.
|
|
127
|
-
"""
|
|
128
|
-
return pulumi.get(self, "request_count")
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
class AwaitableGetServiceAccountAccessListEntryResult(GetServiceAccountAccessListEntryResult):
|
|
132
|
-
# pylint: disable=using-constant-test
|
|
133
|
-
def __await__(self):
|
|
134
|
-
if False:
|
|
135
|
-
yield self
|
|
136
|
-
return GetServiceAccountAccessListEntryResult(
|
|
137
|
-
cidr_block=self.cidr_block,
|
|
138
|
-
client_id=self.client_id,
|
|
139
|
-
created_at=self.created_at,
|
|
140
|
-
id=self.id,
|
|
141
|
-
ip_address=self.ip_address,
|
|
142
|
-
last_used_address=self.last_used_address,
|
|
143
|
-
last_used_at=self.last_used_at,
|
|
144
|
-
org_id=self.org_id,
|
|
145
|
-
request_count=self.request_count)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
def get_service_account_access_list_entry(cidr_block: Optional[_builtins.str] = None,
|
|
149
|
-
client_id: Optional[_builtins.str] = None,
|
|
150
|
-
ip_address: Optional[_builtins.str] = None,
|
|
151
|
-
org_id: Optional[_builtins.str] = None,
|
|
152
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceAccountAccessListEntryResult:
|
|
153
|
-
"""
|
|
154
|
-
## Example Usage
|
|
155
|
-
|
|
156
|
-
### S
|
|
157
|
-
|
|
158
|
-
```python
|
|
159
|
-
import pulumi
|
|
160
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
161
|
-
|
|
162
|
-
this_service_account = mongodbatlas.ServiceAccount("this",
|
|
163
|
-
org_id=org_id,
|
|
164
|
-
name="example-service-account",
|
|
165
|
-
description="Example Service Account",
|
|
166
|
-
roles=["ORG_READ_ONLY"],
|
|
167
|
-
secret_expires_after_hours=2160)
|
|
168
|
-
# Add IP Access List Entry to Service Account using CIDR Block
|
|
169
|
-
cidr = mongodbatlas.ServiceAccountAccessListEntry("cidr",
|
|
170
|
-
org_id=org_id,
|
|
171
|
-
client_id=this_service_account.client_id,
|
|
172
|
-
cidr_block="1.2.3.4/32")
|
|
173
|
-
# Add IP Access List Entry to Service Account using IP Address
|
|
174
|
-
ip = mongodbatlas.ServiceAccountAccessListEntry("ip",
|
|
175
|
-
org_id=org_id,
|
|
176
|
-
client_id=this_service_account.client_id,
|
|
177
|
-
ip_address="2.3.4.5")
|
|
178
|
-
# Data source to read a single Access List entry for the Service Account
|
|
179
|
-
this = mongodbatlas.get_service_account_access_list_entry_output(org_id=cidr.org_id,
|
|
180
|
-
client_id=cidr.client_id,
|
|
181
|
-
cidr_block=cidr.cidr_block)
|
|
182
|
-
pulumi.export("accessListEntryCidrBlock", this.cidr_block)
|
|
183
|
-
# Data source to read all Access List entries for the Service Account
|
|
184
|
-
this_get_service_account_access_list_entries = mongodbatlas.get_service_account_access_list_entries_output(org_id=this_service_account.org_id,
|
|
185
|
-
client_id=this_service_account.client_id)
|
|
186
|
-
pulumi.export("allAccessListEntries", this_get_service_account_access_list_entries.results)
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
:param _builtins.str cidr_block: Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or **ip_address**, but not for both.
|
|
191
|
-
:param _builtins.str client_id: The Client ID of the Service Account.
|
|
192
|
-
:param _builtins.str ip_address: IP address to be added to the access list. You can set a value for this parameter or **cidr_block**, but not for both.
|
|
193
|
-
:param _builtins.str org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
194
|
-
"""
|
|
195
|
-
__args__ = dict()
|
|
196
|
-
__args__['cidrBlock'] = cidr_block
|
|
197
|
-
__args__['clientId'] = client_id
|
|
198
|
-
__args__['ipAddress'] = ip_address
|
|
199
|
-
__args__['orgId'] = org_id
|
|
200
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
201
|
-
__ret__ = pulumi.runtime.invoke('mongodbatlas:index/getServiceAccountAccessListEntry:getServiceAccountAccessListEntry', __args__, opts=opts, typ=GetServiceAccountAccessListEntryResult).value
|
|
202
|
-
|
|
203
|
-
return AwaitableGetServiceAccountAccessListEntryResult(
|
|
204
|
-
cidr_block=pulumi.get(__ret__, 'cidr_block'),
|
|
205
|
-
client_id=pulumi.get(__ret__, 'client_id'),
|
|
206
|
-
created_at=pulumi.get(__ret__, 'created_at'),
|
|
207
|
-
id=pulumi.get(__ret__, 'id'),
|
|
208
|
-
ip_address=pulumi.get(__ret__, 'ip_address'),
|
|
209
|
-
last_used_address=pulumi.get(__ret__, 'last_used_address'),
|
|
210
|
-
last_used_at=pulumi.get(__ret__, 'last_used_at'),
|
|
211
|
-
org_id=pulumi.get(__ret__, 'org_id'),
|
|
212
|
-
request_count=pulumi.get(__ret__, 'request_count'))
|
|
213
|
-
def get_service_account_access_list_entry_output(cidr_block: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
214
|
-
client_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
215
|
-
ip_address: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
216
|
-
org_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
217
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceAccountAccessListEntryResult]:
|
|
218
|
-
"""
|
|
219
|
-
## Example Usage
|
|
220
|
-
|
|
221
|
-
### S
|
|
222
|
-
|
|
223
|
-
```python
|
|
224
|
-
import pulumi
|
|
225
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
226
|
-
|
|
227
|
-
this_service_account = mongodbatlas.ServiceAccount("this",
|
|
228
|
-
org_id=org_id,
|
|
229
|
-
name="example-service-account",
|
|
230
|
-
description="Example Service Account",
|
|
231
|
-
roles=["ORG_READ_ONLY"],
|
|
232
|
-
secret_expires_after_hours=2160)
|
|
233
|
-
# Add IP Access List Entry to Service Account using CIDR Block
|
|
234
|
-
cidr = mongodbatlas.ServiceAccountAccessListEntry("cidr",
|
|
235
|
-
org_id=org_id,
|
|
236
|
-
client_id=this_service_account.client_id,
|
|
237
|
-
cidr_block="1.2.3.4/32")
|
|
238
|
-
# Add IP Access List Entry to Service Account using IP Address
|
|
239
|
-
ip = mongodbatlas.ServiceAccountAccessListEntry("ip",
|
|
240
|
-
org_id=org_id,
|
|
241
|
-
client_id=this_service_account.client_id,
|
|
242
|
-
ip_address="2.3.4.5")
|
|
243
|
-
# Data source to read a single Access List entry for the Service Account
|
|
244
|
-
this = mongodbatlas.get_service_account_access_list_entry_output(org_id=cidr.org_id,
|
|
245
|
-
client_id=cidr.client_id,
|
|
246
|
-
cidr_block=cidr.cidr_block)
|
|
247
|
-
pulumi.export("accessListEntryCidrBlock", this.cidr_block)
|
|
248
|
-
# Data source to read all Access List entries for the Service Account
|
|
249
|
-
this_get_service_account_access_list_entries = mongodbatlas.get_service_account_access_list_entries_output(org_id=this_service_account.org_id,
|
|
250
|
-
client_id=this_service_account.client_id)
|
|
251
|
-
pulumi.export("allAccessListEntries", this_get_service_account_access_list_entries.results)
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
:param _builtins.str cidr_block: Range of IP addresses in CIDR notation to be added to the access list. You can set a value for this parameter or **ip_address**, but not for both.
|
|
256
|
-
:param _builtins.str client_id: The Client ID of the Service Account.
|
|
257
|
-
:param _builtins.str ip_address: IP address to be added to the access list. You can set a value for this parameter or **cidr_block**, but not for both.
|
|
258
|
-
:param _builtins.str org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
|
|
259
|
-
"""
|
|
260
|
-
__args__ = dict()
|
|
261
|
-
__args__['cidrBlock'] = cidr_block
|
|
262
|
-
__args__['clientId'] = client_id
|
|
263
|
-
__args__['ipAddress'] = ip_address
|
|
264
|
-
__args__['orgId'] = org_id
|
|
265
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
266
|
-
__ret__ = pulumi.runtime.invoke_output('mongodbatlas:index/getServiceAccountAccessListEntry:getServiceAccountAccessListEntry', __args__, opts=opts, typ=GetServiceAccountAccessListEntryResult)
|
|
267
|
-
return __ret__.apply(lambda __response__: GetServiceAccountAccessListEntryResult(
|
|
268
|
-
cidr_block=pulumi.get(__response__, 'cidr_block'),
|
|
269
|
-
client_id=pulumi.get(__response__, 'client_id'),
|
|
270
|
-
created_at=pulumi.get(__response__, 'created_at'),
|
|
271
|
-
id=pulumi.get(__response__, 'id'),
|
|
272
|
-
ip_address=pulumi.get(__response__, 'ip_address'),
|
|
273
|
-
last_used_address=pulumi.get(__response__, 'last_used_address'),
|
|
274
|
-
last_used_at=pulumi.get(__response__, 'last_used_at'),
|
|
275
|
-
org_id=pulumi.get(__response__, 'org_id'),
|
|
276
|
-
request_count=pulumi.get(__response__, 'request_count')))
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
|
|
5
|
-
import builtins as _builtins
|
|
6
|
-
import warnings
|
|
7
|
-
import sys
|
|
8
|
-
import pulumi
|
|
9
|
-
import pulumi.runtime
|
|
10
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
-
if sys.version_info >= (3, 11):
|
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
-
else:
|
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
-
from . import _utilities
|
|
16
|
-
|
|
17
|
-
__all__ = [
|
|
18
|
-
'GetServiceAccountProjectAssignmentResult',
|
|
19
|
-
'AwaitableGetServiceAccountProjectAssignmentResult',
|
|
20
|
-
'get_service_account_project_assignment',
|
|
21
|
-
'get_service_account_project_assignment_output',
|
|
22
|
-
]
|
|
23
|
-
|
|
24
|
-
@pulumi.output_type
|
|
25
|
-
class GetServiceAccountProjectAssignmentResult:
|
|
26
|
-
"""
|
|
27
|
-
A collection of values returned by getServiceAccountProjectAssignment.
|
|
28
|
-
"""
|
|
29
|
-
def __init__(__self__, client_id=None, id=None, project_id=None, roles=None):
|
|
30
|
-
if client_id and not isinstance(client_id, str):
|
|
31
|
-
raise TypeError("Expected argument 'client_id' to be a str")
|
|
32
|
-
pulumi.set(__self__, "client_id", client_id)
|
|
33
|
-
if id and not isinstance(id, str):
|
|
34
|
-
raise TypeError("Expected argument 'id' to be a str")
|
|
35
|
-
pulumi.set(__self__, "id", id)
|
|
36
|
-
if project_id and not isinstance(project_id, str):
|
|
37
|
-
raise TypeError("Expected argument 'project_id' to be a str")
|
|
38
|
-
pulumi.set(__self__, "project_id", project_id)
|
|
39
|
-
if roles and not isinstance(roles, list):
|
|
40
|
-
raise TypeError("Expected argument 'roles' to be a list")
|
|
41
|
-
pulumi.set(__self__, "roles", roles)
|
|
42
|
-
|
|
43
|
-
@_builtins.property
|
|
44
|
-
@pulumi.getter(name="clientId")
|
|
45
|
-
def client_id(self) -> _builtins.str:
|
|
46
|
-
"""
|
|
47
|
-
The Client ID of the Service Account.
|
|
48
|
-
"""
|
|
49
|
-
return pulumi.get(self, "client_id")
|
|
50
|
-
|
|
51
|
-
@_builtins.property
|
|
52
|
-
@pulumi.getter
|
|
53
|
-
def id(self) -> _builtins.str:
|
|
54
|
-
"""
|
|
55
|
-
The provider-assigned unique ID for this managed resource.
|
|
56
|
-
"""
|
|
57
|
-
return pulumi.get(self, "id")
|
|
58
|
-
|
|
59
|
-
@_builtins.property
|
|
60
|
-
@pulumi.getter(name="projectId")
|
|
61
|
-
def project_id(self) -> _builtins.str:
|
|
62
|
-
"""
|
|
63
|
-
Unique 24-hexadecimal digit string that identifies your project.
|
|
64
|
-
"""
|
|
65
|
-
return pulumi.get(self, "project_id")
|
|
66
|
-
|
|
67
|
-
@_builtins.property
|
|
68
|
-
@pulumi.getter
|
|
69
|
-
def roles(self) -> Sequence[_builtins.str]:
|
|
70
|
-
"""
|
|
71
|
-
A list of Project roles associated with the Service Account.
|
|
72
|
-
"""
|
|
73
|
-
return pulumi.get(self, "roles")
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
class AwaitableGetServiceAccountProjectAssignmentResult(GetServiceAccountProjectAssignmentResult):
|
|
77
|
-
# pylint: disable=using-constant-test
|
|
78
|
-
def __await__(self):
|
|
79
|
-
if False:
|
|
80
|
-
yield self
|
|
81
|
-
return GetServiceAccountProjectAssignmentResult(
|
|
82
|
-
client_id=self.client_id,
|
|
83
|
-
id=self.id,
|
|
84
|
-
project_id=self.project_id,
|
|
85
|
-
roles=self.roles)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
def get_service_account_project_assignment(client_id: Optional[_builtins.str] = None,
|
|
89
|
-
project_id: Optional[_builtins.str] = None,
|
|
90
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceAccountProjectAssignmentResult:
|
|
91
|
-
"""
|
|
92
|
-
## Example Usage
|
|
93
|
-
|
|
94
|
-
### S
|
|
95
|
-
|
|
96
|
-
```python
|
|
97
|
-
import pulumi
|
|
98
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
99
|
-
|
|
100
|
-
this_service_account = mongodbatlas.ServiceAccount("this",
|
|
101
|
-
org_id=org_id,
|
|
102
|
-
name="example-service-account",
|
|
103
|
-
description="Example Service Account",
|
|
104
|
-
roles=["ORG_MEMBER"],
|
|
105
|
-
secret_expires_after_hours=2160)
|
|
106
|
-
this_service_account_project_assignment = mongodbatlas.ServiceAccountProjectAssignment("this",
|
|
107
|
-
project_id=project_id,
|
|
108
|
-
client_id=this_service_account.client_id,
|
|
109
|
-
roles=["GROUP_READ_ONLY"])
|
|
110
|
-
this = mongodbatlas.get_service_account_project_assignment_output(project_id=this_service_account_project_assignment.project_id,
|
|
111
|
-
client_id=this_service_account_project_assignment.client_id)
|
|
112
|
-
this_get_service_account_project_assignments = this_service_account.client_id.apply(lambda client_id: mongodbatlas.get_service_account_project_assignments_output(org_id=org_id,
|
|
113
|
-
client_id=client_id))
|
|
114
|
-
pulumi.export("serviceAccountProjectRoles", this.roles)
|
|
115
|
-
pulumi.export("serviceAccountAssignedProjects", this_get_service_account_project_assignments.results)
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
:param _builtins.str client_id: The Client ID of the Service Account.
|
|
120
|
-
:param _builtins.str project_id: Unique 24-hexadecimal digit string that identifies your project.
|
|
121
|
-
"""
|
|
122
|
-
__args__ = dict()
|
|
123
|
-
__args__['clientId'] = client_id
|
|
124
|
-
__args__['projectId'] = project_id
|
|
125
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
126
|
-
__ret__ = pulumi.runtime.invoke('mongodbatlas:index/getServiceAccountProjectAssignment:getServiceAccountProjectAssignment', __args__, opts=opts, typ=GetServiceAccountProjectAssignmentResult).value
|
|
127
|
-
|
|
128
|
-
return AwaitableGetServiceAccountProjectAssignmentResult(
|
|
129
|
-
client_id=pulumi.get(__ret__, 'client_id'),
|
|
130
|
-
id=pulumi.get(__ret__, 'id'),
|
|
131
|
-
project_id=pulumi.get(__ret__, 'project_id'),
|
|
132
|
-
roles=pulumi.get(__ret__, 'roles'))
|
|
133
|
-
def get_service_account_project_assignment_output(client_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
134
|
-
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
135
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceAccountProjectAssignmentResult]:
|
|
136
|
-
"""
|
|
137
|
-
## Example Usage
|
|
138
|
-
|
|
139
|
-
### S
|
|
140
|
-
|
|
141
|
-
```python
|
|
142
|
-
import pulumi
|
|
143
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
144
|
-
|
|
145
|
-
this_service_account = mongodbatlas.ServiceAccount("this",
|
|
146
|
-
org_id=org_id,
|
|
147
|
-
name="example-service-account",
|
|
148
|
-
description="Example Service Account",
|
|
149
|
-
roles=["ORG_MEMBER"],
|
|
150
|
-
secret_expires_after_hours=2160)
|
|
151
|
-
this_service_account_project_assignment = mongodbatlas.ServiceAccountProjectAssignment("this",
|
|
152
|
-
project_id=project_id,
|
|
153
|
-
client_id=this_service_account.client_id,
|
|
154
|
-
roles=["GROUP_READ_ONLY"])
|
|
155
|
-
this = mongodbatlas.get_service_account_project_assignment_output(project_id=this_service_account_project_assignment.project_id,
|
|
156
|
-
client_id=this_service_account_project_assignment.client_id)
|
|
157
|
-
this_get_service_account_project_assignments = this_service_account.client_id.apply(lambda client_id: mongodbatlas.get_service_account_project_assignments_output(org_id=org_id,
|
|
158
|
-
client_id=client_id))
|
|
159
|
-
pulumi.export("serviceAccountProjectRoles", this.roles)
|
|
160
|
-
pulumi.export("serviceAccountAssignedProjects", this_get_service_account_project_assignments.results)
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
:param _builtins.str client_id: The Client ID of the Service Account.
|
|
165
|
-
:param _builtins.str project_id: Unique 24-hexadecimal digit string that identifies your project.
|
|
166
|
-
"""
|
|
167
|
-
__args__ = dict()
|
|
168
|
-
__args__['clientId'] = client_id
|
|
169
|
-
__args__['projectId'] = project_id
|
|
170
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
171
|
-
__ret__ = pulumi.runtime.invoke_output('mongodbatlas:index/getServiceAccountProjectAssignment:getServiceAccountProjectAssignment', __args__, opts=opts, typ=GetServiceAccountProjectAssignmentResult)
|
|
172
|
-
return __ret__.apply(lambda __response__: GetServiceAccountProjectAssignmentResult(
|
|
173
|
-
client_id=pulumi.get(__response__, 'client_id'),
|
|
174
|
-
id=pulumi.get(__response__, 'id'),
|
|
175
|
-
project_id=pulumi.get(__response__, 'project_id'),
|
|
176
|
-
roles=pulumi.get(__response__, 'roles')))
|