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