pulumi-kafka 3.10.3a1753328471__py3-none-any.whl → 3.11.0__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.

Potentially problematic release.


This version of pulumi-kafka might be problematic. Click here for more details.

@@ -2,8 +2,7 @@
2
2
  # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -21,63 +20,63 @@ __config__ = pulumi.Config('kafka')
21
20
 
22
21
 
23
22
  class _ExportableConfig(types.ModuleType):
24
- @property
23
+ @_builtins.property
25
24
  def bootstrap_servers(self) -> Optional[str]:
26
25
  """
27
26
  A list of kafka brokers
28
27
  """
29
28
  return __config__.get('bootstrapServers')
30
29
 
31
- @property
30
+ @_builtins.property
32
31
  def ca_cert(self) -> Optional[str]:
33
32
  """
34
33
  CA certificate file to validate the server's certificate.
35
34
  """
36
35
  return __config__.get('caCert')
37
36
 
38
- @property
37
+ @_builtins.property
39
38
  def ca_cert_file(self) -> Optional[str]:
40
39
  """
41
40
  Path to a CA certificate file to validate the server's certificate.
42
41
  """
43
42
  return __config__.get('caCertFile')
44
43
 
45
- @property
44
+ @_builtins.property
46
45
  def client_cert(self) -> Optional[str]:
47
46
  """
48
47
  The client certificate.
49
48
  """
50
49
  return __config__.get('clientCert')
51
50
 
52
- @property
51
+ @_builtins.property
53
52
  def client_cert_file(self) -> Optional[str]:
54
53
  """
55
54
  Path to a file containing the client certificate.
56
55
  """
57
56
  return __config__.get('clientCertFile')
58
57
 
59
- @property
58
+ @_builtins.property
60
59
  def client_key(self) -> Optional[str]:
61
60
  """
62
61
  The private key that the certificate was issued for.
63
62
  """
64
63
  return __config__.get('clientKey')
65
64
 
66
- @property
65
+ @_builtins.property
67
66
  def client_key_file(self) -> Optional[str]:
68
67
  """
69
68
  Path to a file containing the private key that the certificate was issued for.
70
69
  """
71
70
  return __config__.get('clientKeyFile')
72
71
 
73
- @property
72
+ @_builtins.property
74
73
  def client_key_passphrase(self) -> Optional[str]:
75
74
  """
76
75
  The passphrase for the private key that the certificate was issued for.
77
76
  """
78
77
  return __config__.get('clientKeyPassphrase')
79
78
 
80
- @property
79
+ @_builtins.property
81
80
  def kafka_version(self) -> Optional[str]:
82
81
  """
83
82
  The version of Kafka protocol to use in `$MAJOR.$MINOR.$PATCH` format. Some features may not be available on older
@@ -85,133 +84,133 @@ class _ExportableConfig(types.ModuleType):
85
84
  """
86
85
  return __config__.get('kafkaVersion')
87
86
 
88
- @property
87
+ @_builtins.property
89
88
  def sasl_aws_access_key(self) -> Optional[str]:
90
89
  """
91
90
  The AWS access key.
92
91
  """
93
92
  return __config__.get('saslAwsAccessKey')
94
93
 
95
- @property
94
+ @_builtins.property
96
95
  def sasl_aws_container_authorization_token_file(self) -> Optional[str]:
97
96
  """
98
97
  Path to a file containing the AWS pod identity authorization token
99
98
  """
100
99
  return __config__.get('saslAwsContainerAuthorizationTokenFile')
101
100
 
102
- @property
101
+ @_builtins.property
103
102
  def sasl_aws_container_credentials_full_uri(self) -> Optional[str]:
104
103
  """
105
104
  URI to retrieve AWS credentials from
106
105
  """
107
106
  return __config__.get('saslAwsContainerCredentialsFullUri')
108
107
 
109
- @property
108
+ @_builtins.property
110
109
  def sasl_aws_creds_debug(self) -> Optional[bool]:
111
110
  """
112
111
  Set this to true to turn AWS credentials debug.
113
112
  """
114
113
  return __config__.get_bool('saslAwsCredsDebug')
115
114
 
116
- @property
115
+ @_builtins.property
117
116
  def sasl_aws_external_id(self) -> Optional[str]:
118
117
  """
119
118
  External ID of the AWS IAM role to assume
120
119
  """
121
120
  return __config__.get('saslAwsExternalId')
122
121
 
123
- @property
122
+ @_builtins.property
124
123
  def sasl_aws_profile(self) -> Optional[str]:
125
124
  """
126
125
  AWS profile name to use
127
126
  """
128
127
  return __config__.get('saslAwsProfile')
129
128
 
130
- @property
129
+ @_builtins.property
131
130
  def sasl_aws_region(self) -> Optional[str]:
132
131
  """
133
132
  AWS region where MSK is deployed.
134
133
  """
135
134
  return __config__.get('saslAwsRegion')
136
135
 
137
- @property
136
+ @_builtins.property
138
137
  def sasl_aws_role_arn(self) -> Optional[str]:
139
138
  """
140
139
  Arn of an AWS IAM role to assume
141
140
  """
142
141
  return __config__.get('saslAwsRoleArn')
143
142
 
144
- @property
143
+ @_builtins.property
145
144
  def sasl_aws_secret_key(self) -> Optional[str]:
146
145
  """
147
146
  The AWS secret key.
148
147
  """
149
148
  return __config__.get('saslAwsSecretKey')
150
149
 
151
- @property
150
+ @_builtins.property
152
151
  def sasl_aws_shared_config_files(self) -> Optional[str]:
153
152
  """
154
153
  List of paths to AWS shared config files.
155
154
  """
156
155
  return __config__.get('saslAwsSharedConfigFiles')
157
156
 
158
- @property
157
+ @_builtins.property
159
158
  def sasl_aws_token(self) -> Optional[str]:
160
159
  """
161
160
  The AWS session token. Only required if you are using temporary security credentials.
162
161
  """
163
162
  return __config__.get('saslAwsToken')
164
163
 
165
- @property
164
+ @_builtins.property
166
165
  def sasl_mechanism(self) -> str:
167
166
  """
168
167
  SASL mechanism, can be plain, scram-sha512, scram-sha256, aws-iam
169
168
  """
170
169
  return __config__.get('saslMechanism') or (_utilities.get_env('KAFKA_SASL_MECHANISM') or 'plain')
171
170
 
172
- @property
171
+ @_builtins.property
173
172
  def sasl_oauth_scopes(self) -> Optional[str]:
174
173
  """
175
174
  OAuth scopes to request when using the oauthbearer mechanism
176
175
  """
177
176
  return __config__.get('saslOauthScopes')
178
177
 
179
- @property
178
+ @_builtins.property
180
179
  def sasl_password(self) -> Optional[str]:
181
180
  """
182
181
  Password for SASL authentication.
183
182
  """
184
183
  return __config__.get('saslPassword')
185
184
 
186
- @property
185
+ @_builtins.property
187
186
  def sasl_token_url(self) -> Optional[str]:
188
187
  """
189
188
  The url to retrieve oauth2 tokens from, when using sasl mechanism oauthbearer
190
189
  """
191
190
  return __config__.get('saslTokenUrl')
192
191
 
193
- @property
192
+ @_builtins.property
194
193
  def sasl_username(self) -> Optional[str]:
195
194
  """
196
195
  Username for SASL authentication.
197
196
  """
198
197
  return __config__.get('saslUsername')
199
198
 
200
- @property
199
+ @_builtins.property
201
200
  def skip_tls_verify(self) -> bool:
202
201
  """
203
202
  Set this to true only if the target Kafka server is an insecure development instance.
204
203
  """
205
204
  return __config__.get_bool('skipTlsVerify') or (_utilities.get_env_bool('KAFKA_SKIP_VERIFY') or False)
206
205
 
207
- @property
206
+ @_builtins.property
208
207
  def timeout(self) -> Optional[int]:
209
208
  """
210
209
  Timeout in seconds
211
210
  """
212
211
  return __config__.get_int('timeout')
213
212
 
214
- @property
213
+ @_builtins.property
215
214
  def tls_enabled(self) -> bool:
216
215
  """
217
216
  Enable communication with the Kafka Cluster over TLS.
pulumi_kafka/get_topic.py CHANGED
@@ -2,8 +2,7 @@
2
2
  # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -44,32 +43,32 @@ class GetTopicResult:
44
43
  raise TypeError("Expected argument 'replication_factor' to be a int")
45
44
  pulumi.set(__self__, "replication_factor", replication_factor)
46
45
 
47
- @property
46
+ @_builtins.property
48
47
  @pulumi.getter
49
- def config(self) -> Mapping[str, builtins.str]:
48
+ def config(self) -> Mapping[str, _builtins.str]:
50
49
  return pulumi.get(self, "config")
51
50
 
52
- @property
51
+ @_builtins.property
53
52
  @pulumi.getter
54
- def id(self) -> builtins.str:
53
+ def id(self) -> _builtins.str:
55
54
  """
56
55
  The provider-assigned unique ID for this managed resource.
57
56
  """
58
57
  return pulumi.get(self, "id")
59
58
 
60
- @property
59
+ @_builtins.property
61
60
  @pulumi.getter
62
- def name(self) -> builtins.str:
61
+ def name(self) -> _builtins.str:
63
62
  return pulumi.get(self, "name")
64
63
 
65
- @property
64
+ @_builtins.property
66
65
  @pulumi.getter
67
- def partitions(self) -> builtins.int:
66
+ def partitions(self) -> _builtins.int:
68
67
  return pulumi.get(self, "partitions")
69
68
 
70
- @property
69
+ @_builtins.property
71
70
  @pulumi.getter(name="replicationFactor")
72
- def replication_factor(self) -> builtins.int:
71
+ def replication_factor(self) -> _builtins.int:
73
72
  return pulumi.get(self, "replication_factor")
74
73
 
75
74
 
@@ -86,7 +85,7 @@ class AwaitableGetTopicResult(GetTopicResult):
86
85
  replication_factor=self.replication_factor)
87
86
 
88
87
 
89
- def get_topic(name: Optional[builtins.str] = None,
88
+ def get_topic(name: Optional[_builtins.str] = None,
90
89
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTopicResult:
91
90
  """
92
91
  Use this data source to access information about an existing resource.
@@ -102,7 +101,7 @@ def get_topic(name: Optional[builtins.str] = None,
102
101
  name=pulumi.get(__ret__, 'name'),
103
102
  partitions=pulumi.get(__ret__, 'partitions'),
104
103
  replication_factor=pulumi.get(__ret__, 'replication_factor'))
105
- def get_topic_output(name: Optional[pulumi.Input[builtins.str]] = None,
104
+ def get_topic_output(name: Optional[pulumi.Input[_builtins.str]] = None,
106
105
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTopicResult]:
107
106
  """
108
107
  Use this data source to access information about an existing resource.
@@ -0,0 +1,85 @@
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
+ 'GetTopicsResult',
20
+ 'AwaitableGetTopicsResult',
21
+ 'get_topics',
22
+ 'get_topics_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetTopicsResult:
27
+ """
28
+ A collection of values returned by getTopics.
29
+ """
30
+ def __init__(__self__, id=None, lists=None):
31
+ if id and not isinstance(id, str):
32
+ raise TypeError("Expected argument 'id' to be a str")
33
+ pulumi.set(__self__, "id", id)
34
+ if lists and not isinstance(lists, list):
35
+ raise TypeError("Expected argument 'lists' to be a list")
36
+ pulumi.set(__self__, "lists", lists)
37
+
38
+ @_builtins.property
39
+ @pulumi.getter
40
+ def id(self) -> _builtins.str:
41
+ """
42
+ The provider-assigned unique ID for this managed resource.
43
+ """
44
+ return pulumi.get(self, "id")
45
+
46
+ @_builtins.property
47
+ @pulumi.getter
48
+ def lists(self) -> Sequence['outputs.GetTopicsListResult']:
49
+ """
50
+ A list containing all the topics.
51
+ """
52
+ return pulumi.get(self, "lists")
53
+
54
+
55
+ class AwaitableGetTopicsResult(GetTopicsResult):
56
+ # pylint: disable=using-constant-test
57
+ def __await__(self):
58
+ if False:
59
+ yield self
60
+ return GetTopicsResult(
61
+ id=self.id,
62
+ lists=self.lists)
63
+
64
+
65
+ def get_topics(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTopicsResult:
66
+ """
67
+ Use this data source to access information about an existing resource.
68
+ """
69
+ __args__ = dict()
70
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
71
+ __ret__ = pulumi.runtime.invoke('kafka:index:getTopics', __args__, opts=opts, typ=GetTopicsResult).value
72
+
73
+ return AwaitableGetTopicsResult(
74
+ id=pulumi.get(__ret__, 'id'),
75
+ lists=pulumi.get(__ret__, 'lists'))
76
+ def get_topics_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTopicsResult]:
77
+ """
78
+ Use this data source to access information about an existing resource.
79
+ """
80
+ __args__ = dict()
81
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
82
+ __ret__ = pulumi.runtime.invoke_output('kafka:index:getTopics', __args__, opts=opts, typ=GetTopicsResult)
83
+ return __ret__.apply(lambda __response__: GetTopicsResult(
84
+ id=pulumi.get(__response__, 'id'),
85
+ lists=pulumi.get(__response__, 'lists')))
@@ -0,0 +1,71 @@
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
+ 'GetTopicsListResult',
19
+ ]
20
+
21
+ @pulumi.output_type
22
+ class GetTopicsListResult(dict):
23
+ def __init__(__self__, *,
24
+ config: Mapping[str, _builtins.str],
25
+ partitions: _builtins.int,
26
+ replication_factor: _builtins.int,
27
+ topic_name: _builtins.str):
28
+ """
29
+ :param Mapping[str, _builtins.str] config: A map of string k/v attributes.
30
+ :param _builtins.int partitions: Number of partitions.
31
+ :param _builtins.int replication_factor: Number of replicas.
32
+ :param _builtins.str topic_name: The name of the topic.
33
+ """
34
+ pulumi.set(__self__, "config", config)
35
+ pulumi.set(__self__, "partitions", partitions)
36
+ pulumi.set(__self__, "replication_factor", replication_factor)
37
+ pulumi.set(__self__, "topic_name", topic_name)
38
+
39
+ @_builtins.property
40
+ @pulumi.getter
41
+ def config(self) -> Mapping[str, _builtins.str]:
42
+ """
43
+ A map of string k/v attributes.
44
+ """
45
+ return pulumi.get(self, "config")
46
+
47
+ @_builtins.property
48
+ @pulumi.getter
49
+ def partitions(self) -> _builtins.int:
50
+ """
51
+ Number of partitions.
52
+ """
53
+ return pulumi.get(self, "partitions")
54
+
55
+ @_builtins.property
56
+ @pulumi.getter(name="replicationFactor")
57
+ def replication_factor(self) -> _builtins.int:
58
+ """
59
+ Number of replicas.
60
+ """
61
+ return pulumi.get(self, "replication_factor")
62
+
63
+ @_builtins.property
64
+ @pulumi.getter(name="topicName")
65
+ def topic_name(self) -> _builtins.str:
66
+ """
67
+ The name of the topic.
68
+ """
69
+ return pulumi.get(self, "topic_name")
70
+
71
+