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