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,185 +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
|
-
'GetProjectServiceAccountResult',
|
|
20
|
-
'AwaitableGetProjectServiceAccountResult',
|
|
21
|
-
'get_project_service_account',
|
|
22
|
-
'get_project_service_account_output',
|
|
23
|
-
]
|
|
24
|
-
|
|
25
|
-
@pulumi.output_type
|
|
26
|
-
class GetProjectServiceAccountResult:
|
|
27
|
-
"""
|
|
28
|
-
A collection of values returned by getProjectServiceAccount.
|
|
29
|
-
"""
|
|
30
|
-
def __init__(__self__, client_id=None, created_at=None, description=None, id=None, name=None, project_id=None, roles=None, secrets=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 created_at and not isinstance(created_at, str):
|
|
35
|
-
raise TypeError("Expected argument 'created_at' to be a str")
|
|
36
|
-
pulumi.set(__self__, "created_at", created_at)
|
|
37
|
-
if description and not isinstance(description, str):
|
|
38
|
-
raise TypeError("Expected argument 'description' to be a str")
|
|
39
|
-
pulumi.set(__self__, "description", description)
|
|
40
|
-
if id and not isinstance(id, str):
|
|
41
|
-
raise TypeError("Expected argument 'id' to be a str")
|
|
42
|
-
pulumi.set(__self__, "id", id)
|
|
43
|
-
if name and not isinstance(name, str):
|
|
44
|
-
raise TypeError("Expected argument 'name' to be a str")
|
|
45
|
-
pulumi.set(__self__, "name", name)
|
|
46
|
-
if project_id and not isinstance(project_id, str):
|
|
47
|
-
raise TypeError("Expected argument 'project_id' to be a str")
|
|
48
|
-
pulumi.set(__self__, "project_id", project_id)
|
|
49
|
-
if roles and not isinstance(roles, list):
|
|
50
|
-
raise TypeError("Expected argument 'roles' to be a list")
|
|
51
|
-
pulumi.set(__self__, "roles", roles)
|
|
52
|
-
if secrets and not isinstance(secrets, list):
|
|
53
|
-
raise TypeError("Expected argument 'secrets' to be a list")
|
|
54
|
-
pulumi.set(__self__, "secrets", secrets)
|
|
55
|
-
|
|
56
|
-
@_builtins.property
|
|
57
|
-
@pulumi.getter(name="clientId")
|
|
58
|
-
def client_id(self) -> _builtins.str:
|
|
59
|
-
"""
|
|
60
|
-
The Client ID of the Service Account.
|
|
61
|
-
"""
|
|
62
|
-
return pulumi.get(self, "client_id")
|
|
63
|
-
|
|
64
|
-
@_builtins.property
|
|
65
|
-
@pulumi.getter(name="createdAt")
|
|
66
|
-
def created_at(self) -> _builtins.str:
|
|
67
|
-
"""
|
|
68
|
-
The date that the Service Account was created on. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
|
|
69
|
-
"""
|
|
70
|
-
return pulumi.get(self, "created_at")
|
|
71
|
-
|
|
72
|
-
@_builtins.property
|
|
73
|
-
@pulumi.getter
|
|
74
|
-
def description(self) -> _builtins.str:
|
|
75
|
-
"""
|
|
76
|
-
Human readable description for the Service Account.
|
|
77
|
-
"""
|
|
78
|
-
return pulumi.get(self, "description")
|
|
79
|
-
|
|
80
|
-
@_builtins.property
|
|
81
|
-
@pulumi.getter
|
|
82
|
-
def id(self) -> _builtins.str:
|
|
83
|
-
"""
|
|
84
|
-
The provider-assigned unique ID for this managed resource.
|
|
85
|
-
"""
|
|
86
|
-
return pulumi.get(self, "id")
|
|
87
|
-
|
|
88
|
-
@_builtins.property
|
|
89
|
-
@pulumi.getter
|
|
90
|
-
def name(self) -> _builtins.str:
|
|
91
|
-
"""
|
|
92
|
-
Human-readable name for the Service Account.
|
|
93
|
-
"""
|
|
94
|
-
return pulumi.get(self, "name")
|
|
95
|
-
|
|
96
|
-
@_builtins.property
|
|
97
|
-
@pulumi.getter(name="projectId")
|
|
98
|
-
def project_id(self) -> _builtins.str:
|
|
99
|
-
"""
|
|
100
|
-
Unique 24-hexadecimal digit string that identifies your project.
|
|
101
|
-
"""
|
|
102
|
-
return pulumi.get(self, "project_id")
|
|
103
|
-
|
|
104
|
-
@_builtins.property
|
|
105
|
-
@pulumi.getter
|
|
106
|
-
def roles(self) -> Sequence[_builtins.str]:
|
|
107
|
-
"""
|
|
108
|
-
A list of Project roles associated with the Service Account.
|
|
109
|
-
"""
|
|
110
|
-
return pulumi.get(self, "roles")
|
|
111
|
-
|
|
112
|
-
@_builtins.property
|
|
113
|
-
@pulumi.getter
|
|
114
|
-
def secrets(self) -> Sequence['outputs.GetProjectServiceAccountSecretResult']:
|
|
115
|
-
"""
|
|
116
|
-
A list of secrets associated with the specified Service Account.
|
|
117
|
-
"""
|
|
118
|
-
return pulumi.get(self, "secrets")
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
class AwaitableGetProjectServiceAccountResult(GetProjectServiceAccountResult):
|
|
122
|
-
# pylint: disable=using-constant-test
|
|
123
|
-
def __await__(self):
|
|
124
|
-
if False:
|
|
125
|
-
yield self
|
|
126
|
-
return GetProjectServiceAccountResult(
|
|
127
|
-
client_id=self.client_id,
|
|
128
|
-
created_at=self.created_at,
|
|
129
|
-
description=self.description,
|
|
130
|
-
id=self.id,
|
|
131
|
-
name=self.name,
|
|
132
|
-
project_id=self.project_id,
|
|
133
|
-
roles=self.roles,
|
|
134
|
-
secrets=self.secrets)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
def get_project_service_account(client_id: Optional[_builtins.str] = None,
|
|
138
|
-
project_id: Optional[_builtins.str] = None,
|
|
139
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProjectServiceAccountResult:
|
|
140
|
-
"""
|
|
141
|
-
## Example Usage
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
:param _builtins.str client_id: The Client ID of the Service Account.
|
|
145
|
-
:param _builtins.str project_id: Unique 24-hexadecimal digit string that identifies your project.
|
|
146
|
-
"""
|
|
147
|
-
__args__ = dict()
|
|
148
|
-
__args__['clientId'] = client_id
|
|
149
|
-
__args__['projectId'] = project_id
|
|
150
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
151
|
-
__ret__ = pulumi.runtime.invoke('mongodbatlas:index/getProjectServiceAccount:getProjectServiceAccount', __args__, opts=opts, typ=GetProjectServiceAccountResult).value
|
|
152
|
-
|
|
153
|
-
return AwaitableGetProjectServiceAccountResult(
|
|
154
|
-
client_id=pulumi.get(__ret__, 'client_id'),
|
|
155
|
-
created_at=pulumi.get(__ret__, 'created_at'),
|
|
156
|
-
description=pulumi.get(__ret__, 'description'),
|
|
157
|
-
id=pulumi.get(__ret__, 'id'),
|
|
158
|
-
name=pulumi.get(__ret__, 'name'),
|
|
159
|
-
project_id=pulumi.get(__ret__, 'project_id'),
|
|
160
|
-
roles=pulumi.get(__ret__, 'roles'),
|
|
161
|
-
secrets=pulumi.get(__ret__, 'secrets'))
|
|
162
|
-
def get_project_service_account_output(client_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
163
|
-
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
164
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetProjectServiceAccountResult]:
|
|
165
|
-
"""
|
|
166
|
-
## Example Usage
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
:param _builtins.str client_id: The Client ID of the Service Account.
|
|
170
|
-
:param _builtins.str project_id: Unique 24-hexadecimal digit string that identifies your project.
|
|
171
|
-
"""
|
|
172
|
-
__args__ = dict()
|
|
173
|
-
__args__['clientId'] = client_id
|
|
174
|
-
__args__['projectId'] = project_id
|
|
175
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
176
|
-
__ret__ = pulumi.runtime.invoke_output('mongodbatlas:index/getProjectServiceAccount:getProjectServiceAccount', __args__, opts=opts, typ=GetProjectServiceAccountResult)
|
|
177
|
-
return __ret__.apply(lambda __response__: GetProjectServiceAccountResult(
|
|
178
|
-
client_id=pulumi.get(__response__, 'client_id'),
|
|
179
|
-
created_at=pulumi.get(__response__, 'created_at'),
|
|
180
|
-
description=pulumi.get(__response__, 'description'),
|
|
181
|
-
id=pulumi.get(__response__, 'id'),
|
|
182
|
-
name=pulumi.get(__response__, 'name'),
|
|
183
|
-
project_id=pulumi.get(__response__, 'project_id'),
|
|
184
|
-
roles=pulumi.get(__response__, 'roles'),
|
|
185
|
-
secrets=pulumi.get(__response__, 'secrets')))
|
|
@@ -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
|
-
'GetProjectServiceAccountAccessListEntriesResult',
|
|
20
|
-
'AwaitableGetProjectServiceAccountAccessListEntriesResult',
|
|
21
|
-
'get_project_service_account_access_list_entries',
|
|
22
|
-
'get_project_service_account_access_list_entries_output',
|
|
23
|
-
]
|
|
24
|
-
|
|
25
|
-
@pulumi.output_type
|
|
26
|
-
class GetProjectServiceAccountAccessListEntriesResult:
|
|
27
|
-
"""
|
|
28
|
-
A collection of values returned by getProjectServiceAccountAccessListEntries.
|
|
29
|
-
"""
|
|
30
|
-
def __init__(__self__, client_id=None, id=None, project_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 project_id and not isinstance(project_id, str):
|
|
38
|
-
raise TypeError("Expected argument 'project_id' to be a str")
|
|
39
|
-
pulumi.set(__self__, "project_id", project_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="projectId")
|
|
62
|
-
def project_id(self) -> _builtins.str:
|
|
63
|
-
"""
|
|
64
|
-
Unique 24-hexadecimal digit string that identifies the project.
|
|
65
|
-
"""
|
|
66
|
-
return pulumi.get(self, "project_id")
|
|
67
|
-
|
|
68
|
-
@_builtins.property
|
|
69
|
-
@pulumi.getter
|
|
70
|
-
def results(self) -> Sequence['outputs.GetProjectServiceAccountAccessListEntriesResultResult']:
|
|
71
|
-
"""
|
|
72
|
-
List of documents that MongoDB Cloud returns for this request.
|
|
73
|
-
"""
|
|
74
|
-
return pulumi.get(self, "results")
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
class AwaitableGetProjectServiceAccountAccessListEntriesResult(GetProjectServiceAccountAccessListEntriesResult):
|
|
78
|
-
# pylint: disable=using-constant-test
|
|
79
|
-
def __await__(self):
|
|
80
|
-
if False:
|
|
81
|
-
yield self
|
|
82
|
-
return GetProjectServiceAccountAccessListEntriesResult(
|
|
83
|
-
client_id=self.client_id,
|
|
84
|
-
id=self.id,
|
|
85
|
-
project_id=self.project_id,
|
|
86
|
-
results=self.results)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
def get_project_service_account_access_list_entries(client_id: Optional[_builtins.str] = None,
|
|
90
|
-
project_id: Optional[_builtins.str] = None,
|
|
91
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProjectServiceAccountAccessListEntriesResult:
|
|
92
|
-
"""
|
|
93
|
-
## Example Usage
|
|
94
|
-
|
|
95
|
-
### S
|
|
96
|
-
|
|
97
|
-
```python
|
|
98
|
-
import pulumi
|
|
99
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
100
|
-
|
|
101
|
-
this_project_service_account = mongodbatlas.ProjectServiceAccount("this",
|
|
102
|
-
project_id=project_id,
|
|
103
|
-
name="example-project-service-account",
|
|
104
|
-
description="Example Project Service Account",
|
|
105
|
-
roles=["GROUP_READ_ONLY"],
|
|
106
|
-
secret_expires_after_hours=2160)
|
|
107
|
-
# Add IP Access List Entry to Project Service Account using CIDR Block
|
|
108
|
-
cidr = mongodbatlas.ProjectServiceAccountAccessListEntry("cidr",
|
|
109
|
-
project_id=project_id,
|
|
110
|
-
client_id=this_project_service_account.client_id,
|
|
111
|
-
cidr_block="1.2.3.4/32")
|
|
112
|
-
# Add IP Access List Entry to Project Service Account using IP Address
|
|
113
|
-
ip = mongodbatlas.ProjectServiceAccountAccessListEntry("ip",
|
|
114
|
-
project_id=project_id,
|
|
115
|
-
client_id=this_project_service_account.client_id,
|
|
116
|
-
ip_address="2.3.4.5")
|
|
117
|
-
# Data source to read a single Access List entry for the Project Service Account
|
|
118
|
-
this = mongodbatlas.get_project_service_account_access_list_entry_output(project_id=cidr.project_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 Project Service Account
|
|
123
|
-
this_get_project_service_account_access_list_entries = mongodbatlas.get_project_service_account_access_list_entries_output(project_id=this_project_service_account.project_id,
|
|
124
|
-
client_id=this_project_service_account.client_id)
|
|
125
|
-
pulumi.export("allAccessListEntries", this_get_project_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 project_id: Unique 24-hexadecimal digit string that identifies the project.
|
|
131
|
-
"""
|
|
132
|
-
__args__ = dict()
|
|
133
|
-
__args__['clientId'] = client_id
|
|
134
|
-
__args__['projectId'] = project_id
|
|
135
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
136
|
-
__ret__ = pulumi.runtime.invoke('mongodbatlas:index/getProjectServiceAccountAccessListEntries:getProjectServiceAccountAccessListEntries', __args__, opts=opts, typ=GetProjectServiceAccountAccessListEntriesResult).value
|
|
137
|
-
|
|
138
|
-
return AwaitableGetProjectServiceAccountAccessListEntriesResult(
|
|
139
|
-
client_id=pulumi.get(__ret__, 'client_id'),
|
|
140
|
-
id=pulumi.get(__ret__, 'id'),
|
|
141
|
-
project_id=pulumi.get(__ret__, 'project_id'),
|
|
142
|
-
results=pulumi.get(__ret__, 'results'))
|
|
143
|
-
def get_project_service_account_access_list_entries_output(client_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
144
|
-
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
145
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetProjectServiceAccountAccessListEntriesResult]:
|
|
146
|
-
"""
|
|
147
|
-
## Example Usage
|
|
148
|
-
|
|
149
|
-
### S
|
|
150
|
-
|
|
151
|
-
```python
|
|
152
|
-
import pulumi
|
|
153
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
154
|
-
|
|
155
|
-
this_project_service_account = mongodbatlas.ProjectServiceAccount("this",
|
|
156
|
-
project_id=project_id,
|
|
157
|
-
name="example-project-service-account",
|
|
158
|
-
description="Example Project Service Account",
|
|
159
|
-
roles=["GROUP_READ_ONLY"],
|
|
160
|
-
secret_expires_after_hours=2160)
|
|
161
|
-
# Add IP Access List Entry to Project Service Account using CIDR Block
|
|
162
|
-
cidr = mongodbatlas.ProjectServiceAccountAccessListEntry("cidr",
|
|
163
|
-
project_id=project_id,
|
|
164
|
-
client_id=this_project_service_account.client_id,
|
|
165
|
-
cidr_block="1.2.3.4/32")
|
|
166
|
-
# Add IP Access List Entry to Project Service Account using IP Address
|
|
167
|
-
ip = mongodbatlas.ProjectServiceAccountAccessListEntry("ip",
|
|
168
|
-
project_id=project_id,
|
|
169
|
-
client_id=this_project_service_account.client_id,
|
|
170
|
-
ip_address="2.3.4.5")
|
|
171
|
-
# Data source to read a single Access List entry for the Project Service Account
|
|
172
|
-
this = mongodbatlas.get_project_service_account_access_list_entry_output(project_id=cidr.project_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 Project Service Account
|
|
177
|
-
this_get_project_service_account_access_list_entries = mongodbatlas.get_project_service_account_access_list_entries_output(project_id=this_project_service_account.project_id,
|
|
178
|
-
client_id=this_project_service_account.client_id)
|
|
179
|
-
pulumi.export("allAccessListEntries", this_get_project_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 project_id: Unique 24-hexadecimal digit string that identifies the project.
|
|
185
|
-
"""
|
|
186
|
-
__args__ = dict()
|
|
187
|
-
__args__['clientId'] = client_id
|
|
188
|
-
__args__['projectId'] = project_id
|
|
189
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
190
|
-
__ret__ = pulumi.runtime.invoke_output('mongodbatlas:index/getProjectServiceAccountAccessListEntries:getProjectServiceAccountAccessListEntries', __args__, opts=opts, typ=GetProjectServiceAccountAccessListEntriesResult)
|
|
191
|
-
return __ret__.apply(lambda __response__: GetProjectServiceAccountAccessListEntriesResult(
|
|
192
|
-
client_id=pulumi.get(__response__, 'client_id'),
|
|
193
|
-
id=pulumi.get(__response__, 'id'),
|
|
194
|
-
project_id=pulumi.get(__response__, 'project_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
|
-
'GetProjectServiceAccountAccessListEntryResult',
|
|
19
|
-
'AwaitableGetProjectServiceAccountAccessListEntryResult',
|
|
20
|
-
'get_project_service_account_access_list_entry',
|
|
21
|
-
'get_project_service_account_access_list_entry_output',
|
|
22
|
-
]
|
|
23
|
-
|
|
24
|
-
@pulumi.output_type
|
|
25
|
-
class GetProjectServiceAccountAccessListEntryResult:
|
|
26
|
-
"""
|
|
27
|
-
A collection of values returned by getProjectServiceAccountAccessListEntry.
|
|
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, project_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 project_id and not isinstance(project_id, str):
|
|
52
|
-
raise TypeError("Expected argument 'project_id' to be a str")
|
|
53
|
-
pulumi.set(__self__, "project_id", project_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="projectId")
|
|
116
|
-
def project_id(self) -> _builtins.str:
|
|
117
|
-
"""
|
|
118
|
-
Unique 24-hexadecimal digit string that identifies the project.
|
|
119
|
-
"""
|
|
120
|
-
return pulumi.get(self, "project_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 AwaitableGetProjectServiceAccountAccessListEntryResult(GetProjectServiceAccountAccessListEntryResult):
|
|
132
|
-
# pylint: disable=using-constant-test
|
|
133
|
-
def __await__(self):
|
|
134
|
-
if False:
|
|
135
|
-
yield self
|
|
136
|
-
return GetProjectServiceAccountAccessListEntryResult(
|
|
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
|
-
project_id=self.project_id,
|
|
145
|
-
request_count=self.request_count)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
def get_project_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
|
-
project_id: Optional[_builtins.str] = None,
|
|
152
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProjectServiceAccountAccessListEntryResult:
|
|
153
|
-
"""
|
|
154
|
-
## Example Usage
|
|
155
|
-
|
|
156
|
-
### S
|
|
157
|
-
|
|
158
|
-
```python
|
|
159
|
-
import pulumi
|
|
160
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
161
|
-
|
|
162
|
-
this_project_service_account = mongodbatlas.ProjectServiceAccount("this",
|
|
163
|
-
project_id=project_id,
|
|
164
|
-
name="example-project-service-account",
|
|
165
|
-
description="Example Project Service Account",
|
|
166
|
-
roles=["GROUP_READ_ONLY"],
|
|
167
|
-
secret_expires_after_hours=2160)
|
|
168
|
-
# Add IP Access List Entry to Project Service Account using CIDR Block
|
|
169
|
-
cidr = mongodbatlas.ProjectServiceAccountAccessListEntry("cidr",
|
|
170
|
-
project_id=project_id,
|
|
171
|
-
client_id=this_project_service_account.client_id,
|
|
172
|
-
cidr_block="1.2.3.4/32")
|
|
173
|
-
# Add IP Access List Entry to Project Service Account using IP Address
|
|
174
|
-
ip = mongodbatlas.ProjectServiceAccountAccessListEntry("ip",
|
|
175
|
-
project_id=project_id,
|
|
176
|
-
client_id=this_project_service_account.client_id,
|
|
177
|
-
ip_address="2.3.4.5")
|
|
178
|
-
# Data source to read a single Access List entry for the Project Service Account
|
|
179
|
-
this = mongodbatlas.get_project_service_account_access_list_entry_output(project_id=cidr.project_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 Project Service Account
|
|
184
|
-
this_get_project_service_account_access_list_entries = mongodbatlas.get_project_service_account_access_list_entries_output(project_id=this_project_service_account.project_id,
|
|
185
|
-
client_id=this_project_service_account.client_id)
|
|
186
|
-
pulumi.export("allAccessListEntries", this_get_project_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 project_id: Unique 24-hexadecimal digit string that identifies the project.
|
|
194
|
-
"""
|
|
195
|
-
__args__ = dict()
|
|
196
|
-
__args__['cidrBlock'] = cidr_block
|
|
197
|
-
__args__['clientId'] = client_id
|
|
198
|
-
__args__['ipAddress'] = ip_address
|
|
199
|
-
__args__['projectId'] = project_id
|
|
200
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
201
|
-
__ret__ = pulumi.runtime.invoke('mongodbatlas:index/getProjectServiceAccountAccessListEntry:getProjectServiceAccountAccessListEntry', __args__, opts=opts, typ=GetProjectServiceAccountAccessListEntryResult).value
|
|
202
|
-
|
|
203
|
-
return AwaitableGetProjectServiceAccountAccessListEntryResult(
|
|
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
|
-
project_id=pulumi.get(__ret__, 'project_id'),
|
|
212
|
-
request_count=pulumi.get(__ret__, 'request_count'))
|
|
213
|
-
def get_project_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
|
-
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
217
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetProjectServiceAccountAccessListEntryResult]:
|
|
218
|
-
"""
|
|
219
|
-
## Example Usage
|
|
220
|
-
|
|
221
|
-
### S
|
|
222
|
-
|
|
223
|
-
```python
|
|
224
|
-
import pulumi
|
|
225
|
-
import pulumi_mongodbatlas as mongodbatlas
|
|
226
|
-
|
|
227
|
-
this_project_service_account = mongodbatlas.ProjectServiceAccount("this",
|
|
228
|
-
project_id=project_id,
|
|
229
|
-
name="example-project-service-account",
|
|
230
|
-
description="Example Project Service Account",
|
|
231
|
-
roles=["GROUP_READ_ONLY"],
|
|
232
|
-
secret_expires_after_hours=2160)
|
|
233
|
-
# Add IP Access List Entry to Project Service Account using CIDR Block
|
|
234
|
-
cidr = mongodbatlas.ProjectServiceAccountAccessListEntry("cidr",
|
|
235
|
-
project_id=project_id,
|
|
236
|
-
client_id=this_project_service_account.client_id,
|
|
237
|
-
cidr_block="1.2.3.4/32")
|
|
238
|
-
# Add IP Access List Entry to Project Service Account using IP Address
|
|
239
|
-
ip = mongodbatlas.ProjectServiceAccountAccessListEntry("ip",
|
|
240
|
-
project_id=project_id,
|
|
241
|
-
client_id=this_project_service_account.client_id,
|
|
242
|
-
ip_address="2.3.4.5")
|
|
243
|
-
# Data source to read a single Access List entry for the Project Service Account
|
|
244
|
-
this = mongodbatlas.get_project_service_account_access_list_entry_output(project_id=cidr.project_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 Project Service Account
|
|
249
|
-
this_get_project_service_account_access_list_entries = mongodbatlas.get_project_service_account_access_list_entries_output(project_id=this_project_service_account.project_id,
|
|
250
|
-
client_id=this_project_service_account.client_id)
|
|
251
|
-
pulumi.export("allAccessListEntries", this_get_project_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 project_id: Unique 24-hexadecimal digit string that identifies the project.
|
|
259
|
-
"""
|
|
260
|
-
__args__ = dict()
|
|
261
|
-
__args__['cidrBlock'] = cidr_block
|
|
262
|
-
__args__['clientId'] = client_id
|
|
263
|
-
__args__['ipAddress'] = ip_address
|
|
264
|
-
__args__['projectId'] = project_id
|
|
265
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
266
|
-
__ret__ = pulumi.runtime.invoke_output('mongodbatlas:index/getProjectServiceAccountAccessListEntry:getProjectServiceAccountAccessListEntry', __args__, opts=opts, typ=GetProjectServiceAccountAccessListEntryResult)
|
|
267
|
-
return __ret__.apply(lambda __response__: GetProjectServiceAccountAccessListEntryResult(
|
|
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
|
-
project_id=pulumi.get(__response__, 'project_id'),
|
|
276
|
-
request_count=pulumi.get(__response__, 'request_count')))
|