pulumi-kurrentcloud 0.3.0a2__tar.gz

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.
Files changed (30) hide show
  1. pulumi_kurrentcloud-0.3.0a2/PKG-INFO +52 -0
  2. pulumi_kurrentcloud-0.3.0a2/README.md +29 -0
  3. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/__init__.py +124 -0
  4. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/_utilities.py +250 -0
  5. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/acl.py +241 -0
  6. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/aws_cloud_watch_logs_integration.py +434 -0
  7. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/aws_cloud_watch_metrics_integration.py +434 -0
  8. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/config/__init__.py +8 -0
  9. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/config/__init__.pyi +23 -0
  10. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/config/vars.py +41 -0
  11. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/get_network.py +120 -0
  12. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/get_project.py +77 -0
  13. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/integration.py +242 -0
  14. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/managed_cluster.py +915 -0
  15. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/managed_cluster_replicaset.py +371 -0
  16. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/network.py +383 -0
  17. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/peering.py +509 -0
  18. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/project.py +145 -0
  19. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/provider.py +206 -0
  20. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/pulumi-plugin.json +5 -0
  21. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/py.typed +0 -0
  22. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud/scheduled_backup.py +386 -0
  23. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud.egg-info/PKG-INFO +52 -0
  24. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud.egg-info/SOURCES.txt +28 -0
  25. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud.egg-info/dependency_links.txt +1 -0
  26. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud.egg-info/not-zip-safe +1 -0
  27. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud.egg-info/requires.txt +3 -0
  28. pulumi_kurrentcloud-0.3.0a2/pulumi_kurrentcloud.egg-info/top_level.txt +1 -0
  29. pulumi_kurrentcloud-0.3.0a2/setup.cfg +4 -0
  30. pulumi_kurrentcloud-0.3.0a2/setup.py +67 -0
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: pulumi_kurrentcloud
3
+ Version: 0.3.0a2
4
+ Summary: A Pulumi package for creating and managing Kurrent Cloud resources.
5
+ Home-page: https://www.kurrent.io
6
+ License: Apache-2.0
7
+ Project-URL: Repository, https://github.com/kurrent-io/pulumi-kurrentcloud
8
+ Keywords: pulumi kurrentcloud kurrent eventstore eventstorecloud category/cloud
9
+ Requires-Python: >=3.7
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: parver>=0.2.1
12
+ Requires-Dist: pulumi<4.0.0,>=3.0.0
13
+ Requires-Dist: semver>=2.8.1
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: home-page
17
+ Dynamic: keywords
18
+ Dynamic: license
19
+ Dynamic: project-url
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ # Pulumi provider for Kurrent Cloud
25
+
26
+ The Kurrent Cloud provider allows you to manage resources in [Kurrent Cloud](https://www.kurrent.io/kurrent-cloud).
27
+
28
+ ## Installation
29
+
30
+ This package is available in many languages in the standard packaging formats.
31
+
32
+ ### Configure the provider
33
+
34
+ The following configuration points are available for the `kurrentcloud` provider:
35
+
36
+ - `kurrentcloud:organizationId` - the organization ID for an existing organization in Kurrent Cloud
37
+ - `kurrentcloud:token` - a valid refresh token for an Kurrent Cloud account with admin access to the organization
38
+
39
+ ### Install SDK
40
+
41
+
42
+ Install the Python SDK using `pip`:
43
+
44
+ ```bash
45
+ $ pip install pulumi_kurrentcloud
46
+ ```
47
+
48
+ Then import it in your program:
49
+
50
+ ```python
51
+ import pulumi_kurrentcloud as kurrent
52
+ ```
@@ -0,0 +1,29 @@
1
+ # Pulumi provider for Kurrent Cloud
2
+
3
+ The Kurrent Cloud provider allows you to manage resources in [Kurrent Cloud](https://www.kurrent.io/kurrent-cloud).
4
+
5
+ ## Installation
6
+
7
+ This package is available in many languages in the standard packaging formats.
8
+
9
+ ### Configure the provider
10
+
11
+ The following configuration points are available for the `kurrentcloud` provider:
12
+
13
+ - `kurrentcloud:organizationId` - the organization ID for an existing organization in Kurrent Cloud
14
+ - `kurrentcloud:token` - a valid refresh token for an Kurrent Cloud account with admin access to the organization
15
+
16
+ ### Install SDK
17
+
18
+
19
+ Install the Python SDK using `pip`:
20
+
21
+ ```bash
22
+ $ pip install pulumi_kurrentcloud
23
+ ```
24
+
25
+ Then import it in your program:
26
+
27
+ ```python
28
+ import pulumi_kurrentcloud as kurrent
29
+ ```
@@ -0,0 +1,124 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ from . import _utilities
6
+ import typing
7
+ # Export this package's modules as members:
8
+ from .acl import *
9
+ from .aws_cloud_watch_logs_integration import *
10
+ from .aws_cloud_watch_metrics_integration import *
11
+ from .get_network import *
12
+ from .get_project import *
13
+ from .integration import *
14
+ from .managed_cluster import *
15
+ from .managed_cluster_replicaset import *
16
+ from .network import *
17
+ from .peering import *
18
+ from .project import *
19
+ from .provider import *
20
+ from .scheduled_backup import *
21
+
22
+ # Make subpackages available:
23
+ if typing.TYPE_CHECKING:
24
+ import pulumi_kurrentcloud.config as __config
25
+ config = __config
26
+ else:
27
+ config = _utilities.lazy_import('pulumi_kurrentcloud.config')
28
+
29
+ _utilities.register(
30
+ resource_modules="""
31
+ [
32
+ {
33
+ "pkg": "kurrentcloud",
34
+ "mod": "index/aWSCloudWatchLogsIntegration",
35
+ "fqn": "pulumi_kurrentcloud",
36
+ "classes": {
37
+ "kurrentcloud:index/aWSCloudWatchLogsIntegration:AWSCloudWatchLogsIntegration": "AWSCloudWatchLogsIntegration"
38
+ }
39
+ },
40
+ {
41
+ "pkg": "kurrentcloud",
42
+ "mod": "index/aWSCloudWatchMetricsIntegration",
43
+ "fqn": "pulumi_kurrentcloud",
44
+ "classes": {
45
+ "kurrentcloud:index/aWSCloudWatchMetricsIntegration:AWSCloudWatchMetricsIntegration": "AWSCloudWatchMetricsIntegration"
46
+ }
47
+ },
48
+ {
49
+ "pkg": "kurrentcloud",
50
+ "mod": "index/acl",
51
+ "fqn": "pulumi_kurrentcloud",
52
+ "classes": {
53
+ "kurrentcloud:index/acl:Acl": "Acl"
54
+ }
55
+ },
56
+ {
57
+ "pkg": "kurrentcloud",
58
+ "mod": "index/integration",
59
+ "fqn": "pulumi_kurrentcloud",
60
+ "classes": {
61
+ "kurrentcloud:index/integration:Integration": "Integration"
62
+ }
63
+ },
64
+ {
65
+ "pkg": "kurrentcloud",
66
+ "mod": "index/managedCluster",
67
+ "fqn": "pulumi_kurrentcloud",
68
+ "classes": {
69
+ "kurrentcloud:index/managedCluster:ManagedCluster": "ManagedCluster"
70
+ }
71
+ },
72
+ {
73
+ "pkg": "kurrentcloud",
74
+ "mod": "index/managedClusterReplicaset",
75
+ "fqn": "pulumi_kurrentcloud",
76
+ "classes": {
77
+ "kurrentcloud:index/managedClusterReplicaset:ManagedClusterReplicaset": "ManagedClusterReplicaset"
78
+ }
79
+ },
80
+ {
81
+ "pkg": "kurrentcloud",
82
+ "mod": "index/network",
83
+ "fqn": "pulumi_kurrentcloud",
84
+ "classes": {
85
+ "kurrentcloud:index/network:Network": "Network"
86
+ }
87
+ },
88
+ {
89
+ "pkg": "kurrentcloud",
90
+ "mod": "index/peering",
91
+ "fqn": "pulumi_kurrentcloud",
92
+ "classes": {
93
+ "kurrentcloud:index/peering:Peering": "Peering"
94
+ }
95
+ },
96
+ {
97
+ "pkg": "kurrentcloud",
98
+ "mod": "index/project",
99
+ "fqn": "pulumi_kurrentcloud",
100
+ "classes": {
101
+ "kurrentcloud:index/project:Project": "Project"
102
+ }
103
+ },
104
+ {
105
+ "pkg": "kurrentcloud",
106
+ "mod": "index/scheduledBackup",
107
+ "fqn": "pulumi_kurrentcloud",
108
+ "classes": {
109
+ "kurrentcloud:index/scheduledBackup:ScheduledBackup": "ScheduledBackup"
110
+ }
111
+ }
112
+ ]
113
+ """,
114
+ resource_packages="""
115
+ [
116
+ {
117
+ "pkg": "kurrentcloud",
118
+ "token": "pulumi:providers:kurrentcloud",
119
+ "fqn": "pulumi_kurrentcloud",
120
+ "class": "Provider"
121
+ }
122
+ ]
123
+ """
124
+ )
@@ -0,0 +1,250 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+
6
+ import importlib.util
7
+ import inspect
8
+ import json
9
+ import os
10
+ import pkg_resources
11
+ import sys
12
+ import typing
13
+
14
+ import pulumi
15
+ import pulumi.runtime
16
+
17
+ from semver import VersionInfo as SemverVersion
18
+ from parver import Version as PEP440Version
19
+
20
+
21
+ def get_env(*args):
22
+ for v in args:
23
+ value = os.getenv(v)
24
+ if value is not None:
25
+ return value
26
+ return None
27
+
28
+
29
+ def get_env_bool(*args):
30
+ str = get_env(*args)
31
+ if str is not None:
32
+ # NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
33
+ # Terraform uses internally when parsing boolean values.
34
+ if str in ["1", "t", "T", "true", "TRUE", "True"]:
35
+ return True
36
+ if str in ["0", "f", "F", "false", "FALSE", "False"]:
37
+ return False
38
+ return None
39
+
40
+
41
+ def get_env_int(*args):
42
+ str = get_env(*args)
43
+ if str is not None:
44
+ try:
45
+ return int(str)
46
+ except:
47
+ return None
48
+ return None
49
+
50
+
51
+ def get_env_float(*args):
52
+ str = get_env(*args)
53
+ if str is not None:
54
+ try:
55
+ return float(str)
56
+ except:
57
+ return None
58
+ return None
59
+
60
+
61
+ def _get_semver_version():
62
+ # __name__ is set to the fully-qualified name of the current module, In our case, it will be
63
+ # <some module>._utilities. <some module> is the module we want to query the version for.
64
+ root_package, *rest = __name__.split('.')
65
+
66
+ # pkg_resources uses setuptools to inspect the set of installed packages. We use it here to ask
67
+ # for the currently installed version of the root package (i.e. us) and get its version.
68
+
69
+ # Unfortunately, PEP440 and semver differ slightly in incompatible ways. The Pulumi engine expects
70
+ # to receive a valid semver string when receiving requests from the language host, so it's our
71
+ # responsibility as the library to convert our own PEP440 version into a valid semver string.
72
+
73
+ pep440_version_string = pkg_resources.require(root_package)[0].version
74
+ pep440_version = PEP440Version.parse(pep440_version_string)
75
+ (major, minor, patch) = pep440_version.release
76
+ prerelease = None
77
+ if pep440_version.pre_tag == 'a':
78
+ prerelease = f"alpha.{pep440_version.pre}"
79
+ elif pep440_version.pre_tag == 'b':
80
+ prerelease = f"beta.{pep440_version.pre}"
81
+ elif pep440_version.pre_tag == 'rc':
82
+ prerelease = f"rc.{pep440_version.pre}"
83
+ elif pep440_version.dev is not None:
84
+ prerelease = f"dev.{pep440_version.dev}"
85
+
86
+ # The only significant difference between PEP440 and semver as it pertains to us is that PEP440 has explicit support
87
+ # for dev builds, while semver encodes them as "prerelease" versions. In order to bridge between the two, we convert
88
+ # our dev build version into a prerelease tag. This matches what all of our other packages do when constructing
89
+ # their own semver string.
90
+ return SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease)
91
+
92
+
93
+ # Determine the version once and cache the value, which measurably improves program performance.
94
+ _version = _get_semver_version()
95
+ _version_str = str(_version)
96
+
97
+
98
+ def get_version():
99
+ return _version_str
100
+
101
+ def get_resource_opts_defaults() -> pulumi.ResourceOptions:
102
+ return pulumi.ResourceOptions(
103
+ version=get_version(),
104
+ plugin_download_url=get_plugin_download_url(),
105
+ )
106
+
107
+ def get_invoke_opts_defaults() -> pulumi.InvokeOptions:
108
+ return pulumi.InvokeOptions(
109
+ version=get_version(),
110
+ plugin_download_url=get_plugin_download_url(),
111
+ )
112
+
113
+ def get_resource_args_opts(resource_args_type, resource_options_type, *args, **kwargs):
114
+ """
115
+ Return the resource args and options given the *args and **kwargs of a resource's
116
+ __init__ method.
117
+ """
118
+
119
+ resource_args, opts = None, None
120
+
121
+ # If the first item is the resource args type, save it and remove it from the args list.
122
+ if args and isinstance(args[0], resource_args_type):
123
+ resource_args, args = args[0], args[1:]
124
+
125
+ # Now look at the first item in the args list again.
126
+ # If the first item is the resource options class, save it.
127
+ if args and isinstance(args[0], resource_options_type):
128
+ opts = args[0]
129
+
130
+ # If resource_args is None, see if "args" is in kwargs, and, if so, if it's typed as the
131
+ # the resource args type.
132
+ if resource_args is None:
133
+ a = kwargs.get("args")
134
+ if isinstance(a, resource_args_type):
135
+ resource_args = a
136
+
137
+ # If opts is None, look it up in kwargs.
138
+ if opts is None:
139
+ opts = kwargs.get("opts")
140
+
141
+ return resource_args, opts
142
+
143
+
144
+ # Temporary: just use pulumi._utils.lazy_import once everyone upgrades.
145
+ def lazy_import(fullname):
146
+
147
+ import pulumi._utils as u
148
+ f = getattr(u, 'lazy_import', None)
149
+ if f is None:
150
+ f = _lazy_import_temp
151
+
152
+ return f(fullname)
153
+
154
+
155
+ # Copied from pulumi._utils.lazy_import, see comments there.
156
+ def _lazy_import_temp(fullname):
157
+ m = sys.modules.get(fullname, None)
158
+ if m is not None:
159
+ return m
160
+
161
+ spec = importlib.util.find_spec(fullname)
162
+
163
+ m = sys.modules.get(fullname, None)
164
+ if m is not None:
165
+ return m
166
+
167
+ loader = importlib.util.LazyLoader(spec.loader)
168
+ spec.loader = loader
169
+ module = importlib.util.module_from_spec(spec)
170
+
171
+ m = sys.modules.get(fullname, None)
172
+ if m is not None:
173
+ return m
174
+
175
+ sys.modules[fullname] = module
176
+ loader.exec_module(module)
177
+ return module
178
+
179
+
180
+ class Package(pulumi.runtime.ResourcePackage):
181
+ def __init__(self, pkg_info):
182
+ super().__init__()
183
+ self.pkg_info = pkg_info
184
+
185
+ def version(self):
186
+ return _version
187
+
188
+ def construct_provider(self, name: str, typ: str, urn: str) -> pulumi.ProviderResource:
189
+ if typ != self.pkg_info['token']:
190
+ raise Exception(f"unknown provider type {typ}")
191
+ Provider = getattr(lazy_import(self.pkg_info['fqn']), self.pkg_info['class'])
192
+ return Provider(name, pulumi.ResourceOptions(urn=urn))
193
+
194
+
195
+ class Module(pulumi.runtime.ResourceModule):
196
+ def __init__(self, mod_info):
197
+ super().__init__()
198
+ self.mod_info = mod_info
199
+
200
+ def version(self):
201
+ return _version
202
+
203
+ def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
204
+ class_name = self.mod_info['classes'].get(typ, None)
205
+
206
+ if class_name is None:
207
+ raise Exception(f"unknown resource type {typ}")
208
+
209
+ TheClass = getattr(lazy_import(self.mod_info['fqn']), class_name)
210
+ return TheClass(name, pulumi.ResourceOptions(urn=urn))
211
+
212
+
213
+ def register(resource_modules, resource_packages):
214
+ resource_modules = json.loads(resource_modules)
215
+ resource_packages = json.loads(resource_packages)
216
+
217
+ for pkg_info in resource_packages:
218
+ pulumi.runtime.register_resource_package(pkg_info['pkg'], Package(pkg_info))
219
+
220
+ for mod_info in resource_modules:
221
+ pulumi.runtime.register_resource_module(
222
+ mod_info['pkg'],
223
+ mod_info['mod'],
224
+ Module(mod_info))
225
+
226
+
227
+ _F = typing.TypeVar('_F', bound=typing.Callable[..., typing.Any])
228
+
229
+
230
+ def lift_output_func(func: typing.Any) -> typing.Callable[[_F], _F]:
231
+ """Decorator internally used on {fn}_output lifted function versions
232
+ to implement them automatically from the un-lifted function."""
233
+
234
+ func_sig = inspect.signature(func)
235
+
236
+ def lifted_func(*args, opts=None, **kwargs):
237
+ bound_args = func_sig.bind(*args, **kwargs)
238
+ # Convert tuple to list, see pulumi/pulumi#8172
239
+ args_list = list(bound_args.args)
240
+ return pulumi.Output.from_input({
241
+ 'args': args_list,
242
+ 'kwargs': bound_args.kwargs
243
+ }).apply(lambda resolved_args: func(*resolved_args['args'],
244
+ opts=opts,
245
+ **resolved_args['kwargs']))
246
+
247
+ return (lambda _: lifted_func)
248
+
249
+ def get_plugin_download_url():
250
+ return "github://api.github.com/kurrent-io"
@@ -0,0 +1,241 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+
12
+ __all__ = ['AclArgs', 'Acl']
13
+
14
+ @pulumi.input_type
15
+ class AclArgs:
16
+ def __init__(__self__, *,
17
+ cidr_blocks: pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]],
18
+ project_id: pulumi.Input[str],
19
+ name: Optional[pulumi.Input[str]] = None):
20
+ """
21
+ The set of arguments for constructing a Acl resource.
22
+ :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]] cidr_blocks: CIDR blocks allowed by the IP access list
23
+ :param pulumi.Input[str] project_id: Project ID
24
+ :param pulumi.Input[str] name: Human-friendly name for the Acl
25
+ """
26
+ pulumi.set(__self__, "cidr_blocks", cidr_blocks)
27
+ pulumi.set(__self__, "project_id", project_id)
28
+ if name is not None:
29
+ pulumi.set(__self__, "name", name)
30
+
31
+ @property
32
+ @pulumi.getter(name="cidrBlocks")
33
+ def cidr_blocks(self) -> pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]]:
34
+ """
35
+ CIDR blocks allowed by the IP access list
36
+ """
37
+ return pulumi.get(self, "cidr_blocks")
38
+
39
+ @cidr_blocks.setter
40
+ def cidr_blocks(self, value: pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]]):
41
+ pulumi.set(self, "cidr_blocks", value)
42
+
43
+ @property
44
+ @pulumi.getter(name="projectId")
45
+ def project_id(self) -> pulumi.Input[str]:
46
+ """
47
+ Project ID
48
+ """
49
+ return pulumi.get(self, "project_id")
50
+
51
+ @project_id.setter
52
+ def project_id(self, value: pulumi.Input[str]):
53
+ pulumi.set(self, "project_id", value)
54
+
55
+ @property
56
+ @pulumi.getter
57
+ def name(self) -> Optional[pulumi.Input[str]]:
58
+ """
59
+ Human-friendly name for the Acl
60
+ """
61
+ return pulumi.get(self, "name")
62
+
63
+ @name.setter
64
+ def name(self, value: Optional[pulumi.Input[str]]):
65
+ pulumi.set(self, "name", value)
66
+
67
+
68
+ @pulumi.input_type
69
+ class _AclState:
70
+ def __init__(__self__, *,
71
+ cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]]] = None,
72
+ name: Optional[pulumi.Input[str]] = None,
73
+ project_id: Optional[pulumi.Input[str]] = None):
74
+ """
75
+ Input properties used for looking up and filtering Acl resources.
76
+ :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]] cidr_blocks: CIDR blocks allowed by the IP access list
77
+ :param pulumi.Input[str] name: Human-friendly name for the Acl
78
+ :param pulumi.Input[str] project_id: Project ID
79
+ """
80
+ if cidr_blocks is not None:
81
+ pulumi.set(__self__, "cidr_blocks", cidr_blocks)
82
+ if name is not None:
83
+ pulumi.set(__self__, "name", name)
84
+ if project_id is not None:
85
+ pulumi.set(__self__, "project_id", project_id)
86
+
87
+ @property
88
+ @pulumi.getter(name="cidrBlocks")
89
+ def cidr_blocks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]]]:
90
+ """
91
+ CIDR blocks allowed by the IP access list
92
+ """
93
+ return pulumi.get(self, "cidr_blocks")
94
+
95
+ @cidr_blocks.setter
96
+ def cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]]]):
97
+ pulumi.set(self, "cidr_blocks", value)
98
+
99
+ @property
100
+ @pulumi.getter
101
+ def name(self) -> Optional[pulumi.Input[str]]:
102
+ """
103
+ Human-friendly name for the Acl
104
+ """
105
+ return pulumi.get(self, "name")
106
+
107
+ @name.setter
108
+ def name(self, value: Optional[pulumi.Input[str]]):
109
+ pulumi.set(self, "name", value)
110
+
111
+ @property
112
+ @pulumi.getter(name="projectId")
113
+ def project_id(self) -> Optional[pulumi.Input[str]]:
114
+ """
115
+ Project ID
116
+ """
117
+ return pulumi.get(self, "project_id")
118
+
119
+ @project_id.setter
120
+ def project_id(self, value: Optional[pulumi.Input[str]]):
121
+ pulumi.set(self, "project_id", value)
122
+
123
+
124
+ class Acl(pulumi.CustomResource):
125
+ @overload
126
+ def __init__(__self__,
127
+ resource_name: str,
128
+ opts: Optional[pulumi.ResourceOptions] = None,
129
+ cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]]] = None,
130
+ name: Optional[pulumi.Input[str]] = None,
131
+ project_id: Optional[pulumi.Input[str]] = None,
132
+ __props__=None):
133
+ """
134
+ Create a Acl resource with the given unique name, props, and options.
135
+ :param str resource_name: The name of the resource.
136
+ :param pulumi.ResourceOptions opts: Options for the resource.
137
+ :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]] cidr_blocks: CIDR blocks allowed by the IP access list
138
+ :param pulumi.Input[str] name: Human-friendly name for the Acl
139
+ :param pulumi.Input[str] project_id: Project ID
140
+ """
141
+ ...
142
+ @overload
143
+ def __init__(__self__,
144
+ resource_name: str,
145
+ args: AclArgs,
146
+ opts: Optional[pulumi.ResourceOptions] = None):
147
+ """
148
+ Create a Acl resource with the given unique name, props, and options.
149
+ :param str resource_name: The name of the resource.
150
+ :param AclArgs args: The arguments to use to populate this resource's properties.
151
+ :param pulumi.ResourceOptions opts: Options for the resource.
152
+ """
153
+ ...
154
+ def __init__(__self__, resource_name: str, *args, **kwargs):
155
+ resource_args, opts = _utilities.get_resource_args_opts(AclArgs, pulumi.ResourceOptions, *args, **kwargs)
156
+ if resource_args is not None:
157
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
158
+ else:
159
+ __self__._internal_init(resource_name, *args, **kwargs)
160
+
161
+ def _internal_init(__self__,
162
+ resource_name: str,
163
+ opts: Optional[pulumi.ResourceOptions] = None,
164
+ cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]]] = None,
165
+ name: Optional[pulumi.Input[str]] = None,
166
+ project_id: Optional[pulumi.Input[str]] = None,
167
+ __props__=None):
168
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
169
+ if not isinstance(opts, pulumi.ResourceOptions):
170
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
171
+ if opts.id is None:
172
+ if __props__ is not None:
173
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
174
+ __props__ = AclArgs.__new__(AclArgs)
175
+
176
+ if cidr_blocks is None and not opts.urn:
177
+ raise TypeError("Missing required property 'cidr_blocks'")
178
+ __props__.__dict__["cidr_blocks"] = cidr_blocks
179
+ __props__.__dict__["name"] = name
180
+ if project_id is None and not opts.urn:
181
+ raise TypeError("Missing required property 'project_id'")
182
+ __props__.__dict__["project_id"] = project_id
183
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="eventstorecloud:index/acl:Acl")])
184
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
185
+ super(Acl, __self__).__init__(
186
+ 'kurrentcloud:index/acl:Acl',
187
+ resource_name,
188
+ __props__,
189
+ opts)
190
+
191
+ @staticmethod
192
+ def get(resource_name: str,
193
+ id: pulumi.Input[str],
194
+ opts: Optional[pulumi.ResourceOptions] = None,
195
+ cidr_blocks: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]]] = None,
196
+ name: Optional[pulumi.Input[str]] = None,
197
+ project_id: Optional[pulumi.Input[str]] = None) -> 'Acl':
198
+ """
199
+ Get an existing Acl resource's state with the given name, id, and optional extra
200
+ properties used to qualify the lookup.
201
+
202
+ :param str resource_name: The unique name of the resulting resource.
203
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
204
+ :param pulumi.ResourceOptions opts: Options for the resource.
205
+ :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, Any]]]] cidr_blocks: CIDR blocks allowed by the IP access list
206
+ :param pulumi.Input[str] name: Human-friendly name for the Acl
207
+ :param pulumi.Input[str] project_id: Project ID
208
+ """
209
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
210
+
211
+ __props__ = _AclState.__new__(_AclState)
212
+
213
+ __props__.__dict__["cidr_blocks"] = cidr_blocks
214
+ __props__.__dict__["name"] = name
215
+ __props__.__dict__["project_id"] = project_id
216
+ return Acl(resource_name, opts=opts, __props__=__props__)
217
+
218
+ @property
219
+ @pulumi.getter(name="cidrBlocks")
220
+ def cidr_blocks(self) -> pulumi.Output[Sequence[Mapping[str, Any]]]:
221
+ """
222
+ CIDR blocks allowed by the IP access list
223
+ """
224
+ return pulumi.get(self, "cidr_blocks")
225
+
226
+ @property
227
+ @pulumi.getter
228
+ def name(self) -> pulumi.Output[str]:
229
+ """
230
+ Human-friendly name for the Acl
231
+ """
232
+ return pulumi.get(self, "name")
233
+
234
+ @property
235
+ @pulumi.getter(name="projectId")
236
+ def project_id(self) -> pulumi.Output[str]:
237
+ """
238
+ Project ID
239
+ """
240
+ return pulumi.get(self, "project_id")
241
+