pulumi-confluentcloud 2.13.0a1735836869__py3-none-any.whl → 2.50.0a1762926155__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-confluentcloud might be problematic. Click here for more details.
- pulumi_confluentcloud/__init__.py +81 -1
- pulumi_confluentcloud/_inputs.py +4170 -2453
- pulumi_confluentcloud/_utilities.py +9 -5
- pulumi_confluentcloud/access_point.py +144 -36
- pulumi_confluentcloud/api_key.py +138 -272
- pulumi_confluentcloud/business_metadata.py +76 -73
- pulumi_confluentcloud/business_metadata_binding.py +101 -98
- pulumi_confluentcloud/byok_key.py +12 -11
- pulumi_confluentcloud/catalog_entity_attributes.py +133 -92
- pulumi_confluentcloud/catalog_integration.py +544 -0
- pulumi_confluentcloud/certificate_authority.py +156 -155
- pulumi_confluentcloud/certificate_pool.py +74 -73
- pulumi_confluentcloud/cluster_link.py +168 -91
- pulumi_confluentcloud/config/__init__.py +2 -1
- pulumi_confluentcloud/config/__init__.pyi +23 -2
- pulumi_confluentcloud/config/outputs.py +110 -0
- pulumi_confluentcloud/config/vars.py +50 -21
- pulumi_confluentcloud/connect_artifact.py +478 -0
- pulumi_confluentcloud/connector.py +303 -81
- pulumi_confluentcloud/custom_connector_plugin.py +142 -141
- pulumi_confluentcloud/custom_connector_plugin_version.py +614 -0
- pulumi_confluentcloud/dns_forwarder.py +88 -45
- pulumi_confluentcloud/dns_record.py +46 -45
- pulumi_confluentcloud/environment.py +74 -73
- pulumi_confluentcloud/flink_artifact.py +250 -194
- pulumi_confluentcloud/flink_compute_pool.py +101 -100
- pulumi_confluentcloud/flink_connection.py +935 -0
- pulumi_confluentcloud/flink_statement.py +218 -124
- pulumi_confluentcloud/gateway.py +44 -31
- pulumi_confluentcloud/get_access_point.py +36 -16
- pulumi_confluentcloud/get_business_metadata.py +25 -23
- pulumi_confluentcloud/get_business_metadata_binding.py +34 -32
- pulumi_confluentcloud/get_byok_key.py +11 -11
- pulumi_confluentcloud/get_catalog_integration.py +188 -0
- pulumi_confluentcloud/get_certificate_authority.py +38 -38
- pulumi_confluentcloud/get_certificate_pool.py +17 -17
- pulumi_confluentcloud/get_cluster_link.py +274 -0
- pulumi_confluentcloud/get_connect_artifact.py +191 -0
- pulumi_confluentcloud/get_dns_record.py +15 -15
- pulumi_confluentcloud/get_environment.py +17 -17
- pulumi_confluentcloud/get_environments.py +6 -6
- pulumi_confluentcloud/get_flink_artifact.py +59 -41
- pulumi_confluentcloud/get_flink_compute_pool.py +27 -27
- pulumi_confluentcloud/get_flink_connection.py +267 -0
- pulumi_confluentcloud/get_flink_region.py +24 -24
- pulumi_confluentcloud/get_gateway.py +45 -17
- pulumi_confluentcloud/get_group_mapping.py +18 -18
- pulumi_confluentcloud/get_identity_pool.py +21 -21
- pulumi_confluentcloud/get_identity_provider.py +35 -21
- pulumi_confluentcloud/get_invitation.py +20 -20
- pulumi_confluentcloud/get_ip_addresses.py +6 -6
- pulumi_confluentcloud/get_ip_filter.py +175 -0
- pulumi_confluentcloud/get_ip_group.py +133 -0
- pulumi_confluentcloud/get_kafka_client_quota.py +17 -17
- pulumi_confluentcloud/get_kafka_cluster.py +55 -41
- pulumi_confluentcloud/get_kafka_topic.py +22 -22
- pulumi_confluentcloud/get_ksql_cluster.py +33 -33
- pulumi_confluentcloud/get_network.py +54 -40
- pulumi_confluentcloud/get_network_link_endpoint.py +17 -17
- pulumi_confluentcloud/get_network_link_service.py +23 -17
- pulumi_confluentcloud/get_organization.py +6 -6
- pulumi_confluentcloud/get_peering.py +19 -19
- pulumi_confluentcloud/get_private_link_access.py +19 -19
- pulumi_confluentcloud/get_private_link_attachment.py +29 -27
- pulumi_confluentcloud/get_private_link_attachment_connection.py +24 -21
- pulumi_confluentcloud/get_provider_integration.py +28 -18
- pulumi_confluentcloud/get_role_binding.py +14 -14
- pulumi_confluentcloud/get_schema.py +40 -40
- pulumi_confluentcloud/get_schema_registry_cluster.py +51 -36
- pulumi_confluentcloud/get_schema_registry_cluster_config.py +16 -16
- pulumi_confluentcloud/get_schema_registry_cluster_mode.py +14 -14
- pulumi_confluentcloud/get_schema_registry_clusters.py +6 -6
- pulumi_confluentcloud/get_schema_registry_dek.py +42 -42
- pulumi_confluentcloud/get_schema_registry_kek.py +30 -30
- pulumi_confluentcloud/get_schemas.py +14 -14
- pulumi_confluentcloud/get_service_account.py +20 -20
- pulumi_confluentcloud/get_subject_config.py +22 -22
- pulumi_confluentcloud/get_subject_mode.py +20 -20
- pulumi_confluentcloud/get_tableflow_topic.py +360 -0
- pulumi_confluentcloud/get_tag.py +26 -24
- pulumi_confluentcloud/get_tag_binding.py +32 -30
- pulumi_confluentcloud/get_transit_gateway_attachment.py +17 -17
- pulumi_confluentcloud/get_user.py +24 -24
- pulumi_confluentcloud/get_users.py +6 -6
- pulumi_confluentcloud/group_mapping.py +54 -53
- pulumi_confluentcloud/identity_pool.py +74 -73
- pulumi_confluentcloud/identity_provider.py +138 -76
- pulumi_confluentcloud/invitation.py +81 -80
- pulumi_confluentcloud/ip_filter.py +420 -0
- pulumi_confluentcloud/ip_group.py +264 -0
- pulumi_confluentcloud/kafka_acl.py +173 -172
- pulumi_confluentcloud/kafka_client_quota.py +63 -62
- pulumi_confluentcloud/kafka_cluster.py +227 -207
- pulumi_confluentcloud/kafka_cluster_config.py +43 -42
- pulumi_confluentcloud/kafka_mirror_topic.py +46 -45
- pulumi_confluentcloud/kafka_topic.py +132 -131
- pulumi_confluentcloud/ksql_cluster.py +117 -120
- pulumi_confluentcloud/network.py +235 -198
- pulumi_confluentcloud/network_link_endpoint.py +62 -68
- pulumi_confluentcloud/network_link_service.py +62 -68
- pulumi_confluentcloud/outputs.py +3400 -2088
- pulumi_confluentcloud/peering.py +128 -48
- pulumi_confluentcloud/plugin.py +428 -0
- pulumi_confluentcloud/private_link_access.py +54 -60
- pulumi_confluentcloud/private_link_attachment.py +93 -88
- pulumi_confluentcloud/private_link_attachment_connection.py +70 -47
- pulumi_confluentcloud/provider.py +318 -192
- pulumi_confluentcloud/provider_integration.py +45 -34
- pulumi_confluentcloud/pulumi-plugin.json +1 -1
- pulumi_confluentcloud/role_binding.py +153 -56
- pulumi_confluentcloud/schema.py +188 -212
- pulumi_confluentcloud/schema_exporter.py +217 -164
- pulumi_confluentcloud/schema_registry_cluster_config.py +60 -59
- pulumi_confluentcloud/schema_registry_cluster_mode.py +90 -42
- pulumi_confluentcloud/schema_registry_dek.py +140 -146
- pulumi_confluentcloud/schema_registry_kek.py +148 -154
- pulumi_confluentcloud/service_account.py +97 -96
- pulumi_confluentcloud/subject_config.py +105 -76
- pulumi_confluentcloud/subject_mode.py +107 -59
- pulumi_confluentcloud/tableflow_topic.py +854 -0
- pulumi_confluentcloud/tag.py +82 -79
- pulumi_confluentcloud/tag_binding.py +121 -84
- pulumi_confluentcloud/tf_importer.py +39 -36
- pulumi_confluentcloud/transit_gateway_attachment.py +38 -44
- {pulumi_confluentcloud-2.13.0a1735836869.dist-info → pulumi_confluentcloud-2.50.0a1762926155.dist-info}/METADATA +4 -4
- pulumi_confluentcloud-2.50.0a1762926155.dist-info/RECORD +129 -0
- {pulumi_confluentcloud-2.13.0a1735836869.dist-info → pulumi_confluentcloud-2.50.0a1762926155.dist-info}/WHEEL +1 -1
- pulumi_confluentcloud-2.13.0a1735836869.dist-info/RECORD +0 -113
- {pulumi_confluentcloud-2.13.0a1735836869.dist-info → pulumi_confluentcloud-2.50.0a1762926155.dist-info}/top_level.txt +0 -0
pulumi_confluentcloud/schema.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -21,31 +21,30 @@ __all__ = ['SchemaArgs', 'Schema']
|
|
|
21
21
|
@pulumi.input_type
|
|
22
22
|
class SchemaArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
|
-
format: pulumi.Input[str],
|
|
25
|
-
subject_name: pulumi.Input[str],
|
|
24
|
+
format: pulumi.Input[_builtins.str],
|
|
25
|
+
subject_name: pulumi.Input[_builtins.str],
|
|
26
26
|
credentials: Optional[pulumi.Input['SchemaCredentialsArgs']] = None,
|
|
27
|
-
hard_delete: Optional[pulumi.Input[bool]] = None,
|
|
27
|
+
hard_delete: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
28
28
|
metadata: Optional[pulumi.Input['SchemaMetadataArgs']] = None,
|
|
29
|
-
recreate_on_update: Optional[pulumi.Input[bool]] = None,
|
|
30
|
-
rest_endpoint: Optional[pulumi.Input[str]] = None,
|
|
29
|
+
recreate_on_update: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
30
|
+
rest_endpoint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
31
31
|
ruleset: Optional[pulumi.Input['SchemaRulesetArgs']] = None,
|
|
32
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
32
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
33
|
schema_references: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]]] = None,
|
|
34
34
|
schema_registry_cluster: Optional[pulumi.Input['SchemaSchemaRegistryClusterArgs']] = None,
|
|
35
|
-
skip_validation_during_plan: Optional[pulumi.Input[bool]] = None):
|
|
35
|
+
skip_validation_during_plan: Optional[pulumi.Input[_builtins.bool]] = None):
|
|
36
36
|
"""
|
|
37
37
|
The set of arguments for constructing a Schema resource.
|
|
38
|
-
:param pulumi.Input[str] format: The format of the
|
|
39
|
-
:param pulumi.Input[str] subject_name: The name of the subject (in other words, the namespace), representing the subject under which the schema will be registered, for example, `test-subject`. Schemas evolve safely, following a compatibility mode defined, under a subject name.
|
|
38
|
+
:param pulumi.Input[_builtins.str] format: The format of the Schema.
|
|
39
|
+
:param pulumi.Input[_builtins.str] subject_name: The name of the subject (in other words, the namespace), representing the subject under which the schema will be registered, for example, `test-subject`. Schemas evolve safely, following a compatibility mode defined, under a subject name.
|
|
40
40
|
:param pulumi.Input['SchemaCredentialsArgs'] credentials: The Cluster API Credentials.
|
|
41
|
-
:param pulumi.Input[bool] hard_delete:
|
|
42
|
-
:param pulumi.Input[
|
|
43
|
-
:param pulumi.Input[
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
:param pulumi.Input[str] schema: The
|
|
47
|
-
:param pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]] schema_references: The list of
|
|
48
|
-
:param pulumi.Input[bool] skip_validation_during_plan: An optional flag to control whether a schema should be validated during `pulumi preview`. Set it to `true` if you want to skip schema validation during `pulumi preview`. Defaults to `false`. Regardless of `true` or `false` for this flag, schema validation will be performed during `pulumi up`.
|
|
41
|
+
:param pulumi.Input[_builtins.bool] hard_delete: Controls whether a schema should be soft or hard deleted. Set it to `true` if you want to hard delete a schema on destroy. Defaults to `false` (soft delete).
|
|
42
|
+
:param pulumi.Input[_builtins.bool] recreate_on_update: Controls whether a schema should be recreated on update.
|
|
43
|
+
:param pulumi.Input[_builtins.str] rest_endpoint: The REST endpoint of the Schema Registry cluster. For example, for public networking: `https://psrc-00000.us-central1.gcp.confluent.cloud`. In the case of private networking, the endpoint might look like `https://lsrc-abc123.pr1jy6.us-east-2.aws.confluent.cloud`. You can construct it using either:
|
|
44
|
+
- `data.confluent_schema_registry_cluster.essentials.private_regional_rest_endpoints["us-east-2"]`, or
|
|
45
|
+
- `https://${data.confluent_schema_registry_cluster.essentials.id}${data.confluent_network.main.endpoint_suffix}`
|
|
46
|
+
:param pulumi.Input[_builtins.str] schema: The definition of the Schema.
|
|
47
|
+
:param pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]] schema_references: The list of references to other Schemas.
|
|
49
48
|
"""
|
|
50
49
|
pulumi.set(__self__, "format", format)
|
|
51
50
|
pulumi.set(__self__, "subject_name", subject_name)
|
|
@@ -70,31 +69,31 @@ class SchemaArgs:
|
|
|
70
69
|
if skip_validation_during_plan is not None:
|
|
71
70
|
pulumi.set(__self__, "skip_validation_during_plan", skip_validation_during_plan)
|
|
72
71
|
|
|
73
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
74
73
|
@pulumi.getter
|
|
75
|
-
def format(self) -> pulumi.Input[str]:
|
|
74
|
+
def format(self) -> pulumi.Input[_builtins.str]:
|
|
76
75
|
"""
|
|
77
|
-
The format of the
|
|
76
|
+
The format of the Schema.
|
|
78
77
|
"""
|
|
79
78
|
return pulumi.get(self, "format")
|
|
80
79
|
|
|
81
80
|
@format.setter
|
|
82
|
-
def format(self, value: pulumi.Input[str]):
|
|
81
|
+
def format(self, value: pulumi.Input[_builtins.str]):
|
|
83
82
|
pulumi.set(self, "format", value)
|
|
84
83
|
|
|
85
|
-
@property
|
|
84
|
+
@_builtins.property
|
|
86
85
|
@pulumi.getter(name="subjectName")
|
|
87
|
-
def subject_name(self) -> pulumi.Input[str]:
|
|
86
|
+
def subject_name(self) -> pulumi.Input[_builtins.str]:
|
|
88
87
|
"""
|
|
89
88
|
The name of the subject (in other words, the namespace), representing the subject under which the schema will be registered, for example, `test-subject`. Schemas evolve safely, following a compatibility mode defined, under a subject name.
|
|
90
89
|
"""
|
|
91
90
|
return pulumi.get(self, "subject_name")
|
|
92
91
|
|
|
93
92
|
@subject_name.setter
|
|
94
|
-
def subject_name(self, value: pulumi.Input[str]):
|
|
93
|
+
def subject_name(self, value: pulumi.Input[_builtins.str]):
|
|
95
94
|
pulumi.set(self, "subject_name", value)
|
|
96
95
|
|
|
97
|
-
@property
|
|
96
|
+
@_builtins.property
|
|
98
97
|
@pulumi.getter
|
|
99
98
|
def credentials(self) -> Optional[pulumi.Input['SchemaCredentialsArgs']]:
|
|
100
99
|
"""
|
|
@@ -106,83 +105,79 @@ class SchemaArgs:
|
|
|
106
105
|
def credentials(self, value: Optional[pulumi.Input['SchemaCredentialsArgs']]):
|
|
107
106
|
pulumi.set(self, "credentials", value)
|
|
108
107
|
|
|
109
|
-
@property
|
|
108
|
+
@_builtins.property
|
|
110
109
|
@pulumi.getter(name="hardDelete")
|
|
111
|
-
def hard_delete(self) -> Optional[pulumi.Input[bool]]:
|
|
110
|
+
def hard_delete(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
112
111
|
"""
|
|
113
|
-
|
|
112
|
+
Controls whether a schema should be soft or hard deleted. Set it to `true` if you want to hard delete a schema on destroy. Defaults to `false` (soft delete).
|
|
114
113
|
"""
|
|
115
114
|
return pulumi.get(self, "hard_delete")
|
|
116
115
|
|
|
117
116
|
@hard_delete.setter
|
|
118
|
-
def hard_delete(self, value: Optional[pulumi.Input[bool]]):
|
|
117
|
+
def hard_delete(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
119
118
|
pulumi.set(self, "hard_delete", value)
|
|
120
119
|
|
|
121
|
-
@property
|
|
120
|
+
@_builtins.property
|
|
122
121
|
@pulumi.getter
|
|
123
122
|
def metadata(self) -> Optional[pulumi.Input['SchemaMetadataArgs']]:
|
|
124
|
-
"""
|
|
125
|
-
See [here](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html) for more details. Supports the following:
|
|
126
|
-
"""
|
|
127
123
|
return pulumi.get(self, "metadata")
|
|
128
124
|
|
|
129
125
|
@metadata.setter
|
|
130
126
|
def metadata(self, value: Optional[pulumi.Input['SchemaMetadataArgs']]):
|
|
131
127
|
pulumi.set(self, "metadata", value)
|
|
132
128
|
|
|
133
|
-
@property
|
|
129
|
+
@_builtins.property
|
|
134
130
|
@pulumi.getter(name="recreateOnUpdate")
|
|
135
|
-
def recreate_on_update(self) -> Optional[pulumi.Input[bool]]:
|
|
131
|
+
def recreate_on_update(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
136
132
|
"""
|
|
137
|
-
|
|
133
|
+
Controls whether a schema should be recreated on update.
|
|
138
134
|
"""
|
|
139
135
|
return pulumi.get(self, "recreate_on_update")
|
|
140
136
|
|
|
141
137
|
@recreate_on_update.setter
|
|
142
|
-
def recreate_on_update(self, value: Optional[pulumi.Input[bool]]):
|
|
138
|
+
def recreate_on_update(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
143
139
|
pulumi.set(self, "recreate_on_update", value)
|
|
144
140
|
|
|
145
|
-
@property
|
|
141
|
+
@_builtins.property
|
|
146
142
|
@pulumi.getter(name="restEndpoint")
|
|
147
|
-
def rest_endpoint(self) -> Optional[pulumi.Input[str]]:
|
|
143
|
+
def rest_endpoint(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
148
144
|
"""
|
|
149
|
-
The REST endpoint of the Schema Registry cluster
|
|
145
|
+
The REST endpoint of the Schema Registry cluster. For example, for public networking: `https://psrc-00000.us-central1.gcp.confluent.cloud`. In the case of private networking, the endpoint might look like `https://lsrc-abc123.pr1jy6.us-east-2.aws.confluent.cloud`. You can construct it using either:
|
|
146
|
+
- `data.confluent_schema_registry_cluster.essentials.private_regional_rest_endpoints["us-east-2"]`, or
|
|
147
|
+
- `https://${data.confluent_schema_registry_cluster.essentials.id}${data.confluent_network.main.endpoint_suffix}`
|
|
150
148
|
"""
|
|
151
149
|
return pulumi.get(self, "rest_endpoint")
|
|
152
150
|
|
|
153
151
|
@rest_endpoint.setter
|
|
154
|
-
def rest_endpoint(self, value: Optional[pulumi.Input[str]]):
|
|
152
|
+
def rest_endpoint(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
155
153
|
pulumi.set(self, "rest_endpoint", value)
|
|
156
154
|
|
|
157
|
-
@property
|
|
155
|
+
@_builtins.property
|
|
158
156
|
@pulumi.getter
|
|
159
157
|
def ruleset(self) -> Optional[pulumi.Input['SchemaRulesetArgs']]:
|
|
160
|
-
"""
|
|
161
|
-
The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue.
|
|
162
|
-
"""
|
|
163
158
|
return pulumi.get(self, "ruleset")
|
|
164
159
|
|
|
165
160
|
@ruleset.setter
|
|
166
161
|
def ruleset(self, value: Optional[pulumi.Input['SchemaRulesetArgs']]):
|
|
167
162
|
pulumi.set(self, "ruleset", value)
|
|
168
163
|
|
|
169
|
-
@property
|
|
164
|
+
@_builtins.property
|
|
170
165
|
@pulumi.getter
|
|
171
|
-
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
166
|
+
def schema(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
172
167
|
"""
|
|
173
|
-
The
|
|
168
|
+
The definition of the Schema.
|
|
174
169
|
"""
|
|
175
170
|
return pulumi.get(self, "schema")
|
|
176
171
|
|
|
177
172
|
@schema.setter
|
|
178
|
-
def schema(self, value: Optional[pulumi.Input[str]]):
|
|
173
|
+
def schema(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
179
174
|
pulumi.set(self, "schema", value)
|
|
180
175
|
|
|
181
|
-
@property
|
|
176
|
+
@_builtins.property
|
|
182
177
|
@pulumi.getter(name="schemaReferences")
|
|
183
178
|
def schema_references(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]]]:
|
|
184
179
|
"""
|
|
185
|
-
The list of
|
|
180
|
+
The list of references to other Schemas.
|
|
186
181
|
"""
|
|
187
182
|
return pulumi.get(self, "schema_references")
|
|
188
183
|
|
|
@@ -190,7 +185,7 @@ class SchemaArgs:
|
|
|
190
185
|
def schema_references(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]]]):
|
|
191
186
|
pulumi.set(self, "schema_references", value)
|
|
192
187
|
|
|
193
|
-
@property
|
|
188
|
+
@_builtins.property
|
|
194
189
|
@pulumi.getter(name="schemaRegistryCluster")
|
|
195
190
|
def schema_registry_cluster(self) -> Optional[pulumi.Input['SchemaSchemaRegistryClusterArgs']]:
|
|
196
191
|
return pulumi.get(self, "schema_registry_cluster")
|
|
@@ -199,16 +194,13 @@ class SchemaArgs:
|
|
|
199
194
|
def schema_registry_cluster(self, value: Optional[pulumi.Input['SchemaSchemaRegistryClusterArgs']]):
|
|
200
195
|
pulumi.set(self, "schema_registry_cluster", value)
|
|
201
196
|
|
|
202
|
-
@property
|
|
197
|
+
@_builtins.property
|
|
203
198
|
@pulumi.getter(name="skipValidationDuringPlan")
|
|
204
|
-
def skip_validation_during_plan(self) -> Optional[pulumi.Input[bool]]:
|
|
205
|
-
"""
|
|
206
|
-
An optional flag to control whether a schema should be validated during `pulumi preview`. Set it to `true` if you want to skip schema validation during `pulumi preview`. Defaults to `false`. Regardless of `true` or `false` for this flag, schema validation will be performed during `pulumi up`.
|
|
207
|
-
"""
|
|
199
|
+
def skip_validation_during_plan(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
208
200
|
return pulumi.get(self, "skip_validation_during_plan")
|
|
209
201
|
|
|
210
202
|
@skip_validation_during_plan.setter
|
|
211
|
-
def skip_validation_during_plan(self, value: Optional[pulumi.Input[bool]]):
|
|
203
|
+
def skip_validation_during_plan(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
212
204
|
pulumi.set(self, "skip_validation_during_plan", value)
|
|
213
205
|
|
|
214
206
|
|
|
@@ -216,34 +208,33 @@ class SchemaArgs:
|
|
|
216
208
|
class _SchemaState:
|
|
217
209
|
def __init__(__self__, *,
|
|
218
210
|
credentials: Optional[pulumi.Input['SchemaCredentialsArgs']] = None,
|
|
219
|
-
format: Optional[pulumi.Input[str]] = None,
|
|
220
|
-
hard_delete: Optional[pulumi.Input[bool]] = None,
|
|
211
|
+
format: Optional[pulumi.Input[_builtins.str]] = None,
|
|
212
|
+
hard_delete: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
221
213
|
metadata: Optional[pulumi.Input['SchemaMetadataArgs']] = None,
|
|
222
|
-
recreate_on_update: Optional[pulumi.Input[bool]] = None,
|
|
223
|
-
rest_endpoint: Optional[pulumi.Input[str]] = None,
|
|
214
|
+
recreate_on_update: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
215
|
+
rest_endpoint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
224
216
|
ruleset: Optional[pulumi.Input['SchemaRulesetArgs']] = None,
|
|
225
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
226
|
-
schema_identifier: Optional[pulumi.Input[int]] = None,
|
|
217
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
218
|
+
schema_identifier: Optional[pulumi.Input[_builtins.int]] = None,
|
|
227
219
|
schema_references: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]]] = None,
|
|
228
220
|
schema_registry_cluster: Optional[pulumi.Input['SchemaSchemaRegistryClusterArgs']] = None,
|
|
229
|
-
skip_validation_during_plan: Optional[pulumi.Input[bool]] = None,
|
|
230
|
-
subject_name: Optional[pulumi.Input[str]] = None,
|
|
231
|
-
version: Optional[pulumi.Input[int]] = None):
|
|
221
|
+
skip_validation_during_plan: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
222
|
+
subject_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
223
|
+
version: Optional[pulumi.Input[_builtins.int]] = None):
|
|
232
224
|
"""
|
|
233
225
|
Input properties used for looking up and filtering Schema resources.
|
|
234
226
|
:param pulumi.Input['SchemaCredentialsArgs'] credentials: The Cluster API Credentials.
|
|
235
|
-
:param pulumi.Input[str] format: The format of the
|
|
236
|
-
:param pulumi.Input[bool] hard_delete:
|
|
237
|
-
:param pulumi.Input[
|
|
238
|
-
:param pulumi.Input[
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
:param pulumi.Input[str] schema: The
|
|
242
|
-
:param pulumi.Input[int] schema_identifier: (Required Integer) The globally unique ID of the Schema, for example, `100003`. If the same schema is registered under a different subject, the same identifier will be returned. However, the `version` of the schema may be different under different subjects.
|
|
243
|
-
:param pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]] schema_references: The list of
|
|
244
|
-
:param pulumi.Input[
|
|
245
|
-
:param pulumi.Input[
|
|
246
|
-
:param pulumi.Input[int] version: (Required Integer) The version of the Schema, for example, `4`.
|
|
227
|
+
:param pulumi.Input[_builtins.str] format: The format of the Schema.
|
|
228
|
+
:param pulumi.Input[_builtins.bool] hard_delete: Controls whether a schema should be soft or hard deleted. Set it to `true` if you want to hard delete a schema on destroy. Defaults to `false` (soft delete).
|
|
229
|
+
:param pulumi.Input[_builtins.bool] recreate_on_update: Controls whether a schema should be recreated on update.
|
|
230
|
+
:param pulumi.Input[_builtins.str] rest_endpoint: The REST endpoint of the Schema Registry cluster. For example, for public networking: `https://psrc-00000.us-central1.gcp.confluent.cloud`. In the case of private networking, the endpoint might look like `https://lsrc-abc123.pr1jy6.us-east-2.aws.confluent.cloud`. You can construct it using either:
|
|
231
|
+
- `data.confluent_schema_registry_cluster.essentials.private_regional_rest_endpoints["us-east-2"]`, or
|
|
232
|
+
- `https://${data.confluent_schema_registry_cluster.essentials.id}${data.confluent_network.main.endpoint_suffix}`
|
|
233
|
+
:param pulumi.Input[_builtins.str] schema: The definition of the Schema.
|
|
234
|
+
:param pulumi.Input[_builtins.int] schema_identifier: (Required Integer) The globally unique ID of the Schema, for example, `100003`. If the same schema is registered under a different subject, the same identifier will be returned. However, the `version` of the schema may be different under different subjects.
|
|
235
|
+
:param pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]] schema_references: The list of references to other Schemas.
|
|
236
|
+
:param pulumi.Input[_builtins.str] subject_name: The name of the subject (in other words, the namespace), representing the subject under which the schema will be registered, for example, `test-subject`. Schemas evolve safely, following a compatibility mode defined, under a subject name.
|
|
237
|
+
:param pulumi.Input[_builtins.int] version: (Required Integer) The version of the Schema, for example, `4`.
|
|
247
238
|
"""
|
|
248
239
|
if credentials is not None:
|
|
249
240
|
pulumi.set(__self__, "credentials", credentials)
|
|
@@ -274,7 +265,7 @@ class _SchemaState:
|
|
|
274
265
|
if version is not None:
|
|
275
266
|
pulumi.set(__self__, "version", version)
|
|
276
267
|
|
|
277
|
-
@property
|
|
268
|
+
@_builtins.property
|
|
278
269
|
@pulumi.getter
|
|
279
270
|
def credentials(self) -> Optional[pulumi.Input['SchemaCredentialsArgs']]:
|
|
280
271
|
"""
|
|
@@ -286,107 +277,103 @@ class _SchemaState:
|
|
|
286
277
|
def credentials(self, value: Optional[pulumi.Input['SchemaCredentialsArgs']]):
|
|
287
278
|
pulumi.set(self, "credentials", value)
|
|
288
279
|
|
|
289
|
-
@property
|
|
280
|
+
@_builtins.property
|
|
290
281
|
@pulumi.getter
|
|
291
|
-
def format(self) -> Optional[pulumi.Input[str]]:
|
|
282
|
+
def format(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
292
283
|
"""
|
|
293
|
-
The format of the
|
|
284
|
+
The format of the Schema.
|
|
294
285
|
"""
|
|
295
286
|
return pulumi.get(self, "format")
|
|
296
287
|
|
|
297
288
|
@format.setter
|
|
298
|
-
def format(self, value: Optional[pulumi.Input[str]]):
|
|
289
|
+
def format(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
299
290
|
pulumi.set(self, "format", value)
|
|
300
291
|
|
|
301
|
-
@property
|
|
292
|
+
@_builtins.property
|
|
302
293
|
@pulumi.getter(name="hardDelete")
|
|
303
|
-
def hard_delete(self) -> Optional[pulumi.Input[bool]]:
|
|
294
|
+
def hard_delete(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
304
295
|
"""
|
|
305
|
-
|
|
296
|
+
Controls whether a schema should be soft or hard deleted. Set it to `true` if you want to hard delete a schema on destroy. Defaults to `false` (soft delete).
|
|
306
297
|
"""
|
|
307
298
|
return pulumi.get(self, "hard_delete")
|
|
308
299
|
|
|
309
300
|
@hard_delete.setter
|
|
310
|
-
def hard_delete(self, value: Optional[pulumi.Input[bool]]):
|
|
301
|
+
def hard_delete(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
311
302
|
pulumi.set(self, "hard_delete", value)
|
|
312
303
|
|
|
313
|
-
@property
|
|
304
|
+
@_builtins.property
|
|
314
305
|
@pulumi.getter
|
|
315
306
|
def metadata(self) -> Optional[pulumi.Input['SchemaMetadataArgs']]:
|
|
316
|
-
"""
|
|
317
|
-
See [here](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html) for more details. Supports the following:
|
|
318
|
-
"""
|
|
319
307
|
return pulumi.get(self, "metadata")
|
|
320
308
|
|
|
321
309
|
@metadata.setter
|
|
322
310
|
def metadata(self, value: Optional[pulumi.Input['SchemaMetadataArgs']]):
|
|
323
311
|
pulumi.set(self, "metadata", value)
|
|
324
312
|
|
|
325
|
-
@property
|
|
313
|
+
@_builtins.property
|
|
326
314
|
@pulumi.getter(name="recreateOnUpdate")
|
|
327
|
-
def recreate_on_update(self) -> Optional[pulumi.Input[bool]]:
|
|
315
|
+
def recreate_on_update(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
328
316
|
"""
|
|
329
|
-
|
|
317
|
+
Controls whether a schema should be recreated on update.
|
|
330
318
|
"""
|
|
331
319
|
return pulumi.get(self, "recreate_on_update")
|
|
332
320
|
|
|
333
321
|
@recreate_on_update.setter
|
|
334
|
-
def recreate_on_update(self, value: Optional[pulumi.Input[bool]]):
|
|
322
|
+
def recreate_on_update(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
335
323
|
pulumi.set(self, "recreate_on_update", value)
|
|
336
324
|
|
|
337
|
-
@property
|
|
325
|
+
@_builtins.property
|
|
338
326
|
@pulumi.getter(name="restEndpoint")
|
|
339
|
-
def rest_endpoint(self) -> Optional[pulumi.Input[str]]:
|
|
327
|
+
def rest_endpoint(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
340
328
|
"""
|
|
341
|
-
The REST endpoint of the Schema Registry cluster
|
|
329
|
+
The REST endpoint of the Schema Registry cluster. For example, for public networking: `https://psrc-00000.us-central1.gcp.confluent.cloud`. In the case of private networking, the endpoint might look like `https://lsrc-abc123.pr1jy6.us-east-2.aws.confluent.cloud`. You can construct it using either:
|
|
330
|
+
- `data.confluent_schema_registry_cluster.essentials.private_regional_rest_endpoints["us-east-2"]`, or
|
|
331
|
+
- `https://${data.confluent_schema_registry_cluster.essentials.id}${data.confluent_network.main.endpoint_suffix}`
|
|
342
332
|
"""
|
|
343
333
|
return pulumi.get(self, "rest_endpoint")
|
|
344
334
|
|
|
345
335
|
@rest_endpoint.setter
|
|
346
|
-
def rest_endpoint(self, value: Optional[pulumi.Input[str]]):
|
|
336
|
+
def rest_endpoint(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
347
337
|
pulumi.set(self, "rest_endpoint", value)
|
|
348
338
|
|
|
349
|
-
@property
|
|
339
|
+
@_builtins.property
|
|
350
340
|
@pulumi.getter
|
|
351
341
|
def ruleset(self) -> Optional[pulumi.Input['SchemaRulesetArgs']]:
|
|
352
|
-
"""
|
|
353
|
-
The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue.
|
|
354
|
-
"""
|
|
355
342
|
return pulumi.get(self, "ruleset")
|
|
356
343
|
|
|
357
344
|
@ruleset.setter
|
|
358
345
|
def ruleset(self, value: Optional[pulumi.Input['SchemaRulesetArgs']]):
|
|
359
346
|
pulumi.set(self, "ruleset", value)
|
|
360
347
|
|
|
361
|
-
@property
|
|
348
|
+
@_builtins.property
|
|
362
349
|
@pulumi.getter
|
|
363
|
-
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
350
|
+
def schema(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
364
351
|
"""
|
|
365
|
-
The
|
|
352
|
+
The definition of the Schema.
|
|
366
353
|
"""
|
|
367
354
|
return pulumi.get(self, "schema")
|
|
368
355
|
|
|
369
356
|
@schema.setter
|
|
370
|
-
def schema(self, value: Optional[pulumi.Input[str]]):
|
|
357
|
+
def schema(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
371
358
|
pulumi.set(self, "schema", value)
|
|
372
359
|
|
|
373
|
-
@property
|
|
360
|
+
@_builtins.property
|
|
374
361
|
@pulumi.getter(name="schemaIdentifier")
|
|
375
|
-
def schema_identifier(self) -> Optional[pulumi.Input[int]]:
|
|
362
|
+
def schema_identifier(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
376
363
|
"""
|
|
377
364
|
(Required Integer) The globally unique ID of the Schema, for example, `100003`. If the same schema is registered under a different subject, the same identifier will be returned. However, the `version` of the schema may be different under different subjects.
|
|
378
365
|
"""
|
|
379
366
|
return pulumi.get(self, "schema_identifier")
|
|
380
367
|
|
|
381
368
|
@schema_identifier.setter
|
|
382
|
-
def schema_identifier(self, value: Optional[pulumi.Input[int]]):
|
|
369
|
+
def schema_identifier(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
383
370
|
pulumi.set(self, "schema_identifier", value)
|
|
384
371
|
|
|
385
|
-
@property
|
|
372
|
+
@_builtins.property
|
|
386
373
|
@pulumi.getter(name="schemaReferences")
|
|
387
374
|
def schema_references(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]]]:
|
|
388
375
|
"""
|
|
389
|
-
The list of
|
|
376
|
+
The list of references to other Schemas.
|
|
390
377
|
"""
|
|
391
378
|
return pulumi.get(self, "schema_references")
|
|
392
379
|
|
|
@@ -394,7 +381,7 @@ class _SchemaState:
|
|
|
394
381
|
def schema_references(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SchemaSchemaReferenceArgs']]]]):
|
|
395
382
|
pulumi.set(self, "schema_references", value)
|
|
396
383
|
|
|
397
|
-
@property
|
|
384
|
+
@_builtins.property
|
|
398
385
|
@pulumi.getter(name="schemaRegistryCluster")
|
|
399
386
|
def schema_registry_cluster(self) -> Optional[pulumi.Input['SchemaSchemaRegistryClusterArgs']]:
|
|
400
387
|
return pulumi.get(self, "schema_registry_cluster")
|
|
@@ -403,60 +390,58 @@ class _SchemaState:
|
|
|
403
390
|
def schema_registry_cluster(self, value: Optional[pulumi.Input['SchemaSchemaRegistryClusterArgs']]):
|
|
404
391
|
pulumi.set(self, "schema_registry_cluster", value)
|
|
405
392
|
|
|
406
|
-
@property
|
|
393
|
+
@_builtins.property
|
|
407
394
|
@pulumi.getter(name="skipValidationDuringPlan")
|
|
408
|
-
def skip_validation_during_plan(self) -> Optional[pulumi.Input[bool]]:
|
|
409
|
-
"""
|
|
410
|
-
An optional flag to control whether a schema should be validated during `pulumi preview`. Set it to `true` if you want to skip schema validation during `pulumi preview`. Defaults to `false`. Regardless of `true` or `false` for this flag, schema validation will be performed during `pulumi up`.
|
|
411
|
-
"""
|
|
395
|
+
def skip_validation_during_plan(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
412
396
|
return pulumi.get(self, "skip_validation_during_plan")
|
|
413
397
|
|
|
414
398
|
@skip_validation_during_plan.setter
|
|
415
|
-
def skip_validation_during_plan(self, value: Optional[pulumi.Input[bool]]):
|
|
399
|
+
def skip_validation_during_plan(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
416
400
|
pulumi.set(self, "skip_validation_during_plan", value)
|
|
417
401
|
|
|
418
|
-
@property
|
|
402
|
+
@_builtins.property
|
|
419
403
|
@pulumi.getter(name="subjectName")
|
|
420
|
-
def subject_name(self) -> Optional[pulumi.Input[str]]:
|
|
404
|
+
def subject_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
421
405
|
"""
|
|
422
406
|
The name of the subject (in other words, the namespace), representing the subject under which the schema will be registered, for example, `test-subject`. Schemas evolve safely, following a compatibility mode defined, under a subject name.
|
|
423
407
|
"""
|
|
424
408
|
return pulumi.get(self, "subject_name")
|
|
425
409
|
|
|
426
410
|
@subject_name.setter
|
|
427
|
-
def subject_name(self, value: Optional[pulumi.Input[str]]):
|
|
411
|
+
def subject_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
428
412
|
pulumi.set(self, "subject_name", value)
|
|
429
413
|
|
|
430
|
-
@property
|
|
414
|
+
@_builtins.property
|
|
431
415
|
@pulumi.getter
|
|
432
|
-
def version(self) -> Optional[pulumi.Input[int]]:
|
|
416
|
+
def version(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
433
417
|
"""
|
|
434
418
|
(Required Integer) The version of the Schema, for example, `4`.
|
|
435
419
|
"""
|
|
436
420
|
return pulumi.get(self, "version")
|
|
437
421
|
|
|
438
422
|
@version.setter
|
|
439
|
-
def version(self, value: Optional[pulumi.Input[int]]):
|
|
423
|
+
def version(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
440
424
|
pulumi.set(self, "version", value)
|
|
441
425
|
|
|
442
426
|
|
|
427
|
+
@pulumi.type_token("confluentcloud:index/schema:Schema")
|
|
443
428
|
class Schema(pulumi.CustomResource):
|
|
444
429
|
@overload
|
|
445
430
|
def __init__(__self__,
|
|
446
431
|
resource_name: str,
|
|
447
432
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
448
433
|
credentials: Optional[pulumi.Input[Union['SchemaCredentialsArgs', 'SchemaCredentialsArgsDict']]] = None,
|
|
449
|
-
format: Optional[pulumi.Input[str]] = None,
|
|
450
|
-
hard_delete: Optional[pulumi.Input[bool]] = None,
|
|
434
|
+
format: Optional[pulumi.Input[_builtins.str]] = None,
|
|
435
|
+
hard_delete: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
451
436
|
metadata: Optional[pulumi.Input[Union['SchemaMetadataArgs', 'SchemaMetadataArgsDict']]] = None,
|
|
452
|
-
recreate_on_update: Optional[pulumi.Input[bool]] = None,
|
|
453
|
-
rest_endpoint: Optional[pulumi.Input[str]] = None,
|
|
437
|
+
recreate_on_update: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
438
|
+
rest_endpoint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
454
439
|
ruleset: Optional[pulumi.Input[Union['SchemaRulesetArgs', 'SchemaRulesetArgsDict']]] = None,
|
|
455
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
440
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
456
441
|
schema_references: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SchemaSchemaReferenceArgs', 'SchemaSchemaReferenceArgsDict']]]]] = None,
|
|
457
442
|
schema_registry_cluster: Optional[pulumi.Input[Union['SchemaSchemaRegistryClusterArgs', 'SchemaSchemaRegistryClusterArgsDict']]] = None,
|
|
458
|
-
skip_validation_during_plan: Optional[pulumi.Input[bool]] = None,
|
|
459
|
-
subject_name: Optional[pulumi.Input[str]] = None,
|
|
443
|
+
skip_validation_during_plan: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
444
|
+
subject_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
460
445
|
__props__=None):
|
|
461
446
|
"""
|
|
462
447
|
## Example Usage
|
|
@@ -494,16 +479,15 @@ class Schema(pulumi.CustomResource):
|
|
|
494
479
|
:param str resource_name: The name of the resource.
|
|
495
480
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
496
481
|
:param pulumi.Input[Union['SchemaCredentialsArgs', 'SchemaCredentialsArgsDict']] credentials: The Cluster API Credentials.
|
|
497
|
-
:param pulumi.Input[str] format: The format of the
|
|
498
|
-
:param pulumi.Input[bool] hard_delete:
|
|
499
|
-
:param pulumi.Input[
|
|
500
|
-
:param pulumi.Input[
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
:param pulumi.Input[str] schema: The
|
|
504
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['SchemaSchemaReferenceArgs', 'SchemaSchemaReferenceArgsDict']]]] schema_references: The list of
|
|
505
|
-
:param pulumi.Input[
|
|
506
|
-
:param pulumi.Input[str] subject_name: The name of the subject (in other words, the namespace), representing the subject under which the schema will be registered, for example, `test-subject`. Schemas evolve safely, following a compatibility mode defined, under a subject name.
|
|
482
|
+
:param pulumi.Input[_builtins.str] format: The format of the Schema.
|
|
483
|
+
:param pulumi.Input[_builtins.bool] hard_delete: Controls whether a schema should be soft or hard deleted. Set it to `true` if you want to hard delete a schema on destroy. Defaults to `false` (soft delete).
|
|
484
|
+
:param pulumi.Input[_builtins.bool] recreate_on_update: Controls whether a schema should be recreated on update.
|
|
485
|
+
:param pulumi.Input[_builtins.str] rest_endpoint: The REST endpoint of the Schema Registry cluster. For example, for public networking: `https://psrc-00000.us-central1.gcp.confluent.cloud`. In the case of private networking, the endpoint might look like `https://lsrc-abc123.pr1jy6.us-east-2.aws.confluent.cloud`. You can construct it using either:
|
|
486
|
+
- `data.confluent_schema_registry_cluster.essentials.private_regional_rest_endpoints["us-east-2"]`, or
|
|
487
|
+
- `https://${data.confluent_schema_registry_cluster.essentials.id}${data.confluent_network.main.endpoint_suffix}`
|
|
488
|
+
:param pulumi.Input[_builtins.str] schema: The definition of the Schema.
|
|
489
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SchemaSchemaReferenceArgs', 'SchemaSchemaReferenceArgsDict']]]] schema_references: The list of references to other Schemas.
|
|
490
|
+
:param pulumi.Input[_builtins.str] subject_name: The name of the subject (in other words, the namespace), representing the subject under which the schema will be registered, for example, `test-subject`. Schemas evolve safely, following a compatibility mode defined, under a subject name.
|
|
507
491
|
"""
|
|
508
492
|
...
|
|
509
493
|
@overload
|
|
@@ -560,17 +544,17 @@ class Schema(pulumi.CustomResource):
|
|
|
560
544
|
resource_name: str,
|
|
561
545
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
562
546
|
credentials: Optional[pulumi.Input[Union['SchemaCredentialsArgs', 'SchemaCredentialsArgsDict']]] = None,
|
|
563
|
-
format: Optional[pulumi.Input[str]] = None,
|
|
564
|
-
hard_delete: Optional[pulumi.Input[bool]] = None,
|
|
547
|
+
format: Optional[pulumi.Input[_builtins.str]] = None,
|
|
548
|
+
hard_delete: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
565
549
|
metadata: Optional[pulumi.Input[Union['SchemaMetadataArgs', 'SchemaMetadataArgsDict']]] = None,
|
|
566
|
-
recreate_on_update: Optional[pulumi.Input[bool]] = None,
|
|
567
|
-
rest_endpoint: Optional[pulumi.Input[str]] = None,
|
|
550
|
+
recreate_on_update: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
551
|
+
rest_endpoint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
568
552
|
ruleset: Optional[pulumi.Input[Union['SchemaRulesetArgs', 'SchemaRulesetArgsDict']]] = None,
|
|
569
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
553
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
570
554
|
schema_references: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SchemaSchemaReferenceArgs', 'SchemaSchemaReferenceArgsDict']]]]] = None,
|
|
571
555
|
schema_registry_cluster: Optional[pulumi.Input[Union['SchemaSchemaRegistryClusterArgs', 'SchemaSchemaRegistryClusterArgsDict']]] = None,
|
|
572
|
-
skip_validation_during_plan: Optional[pulumi.Input[bool]] = None,
|
|
573
|
-
subject_name: Optional[pulumi.Input[str]] = None,
|
|
556
|
+
skip_validation_during_plan: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
557
|
+
subject_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
574
558
|
__props__=None):
|
|
575
559
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
576
560
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -611,19 +595,19 @@ class Schema(pulumi.CustomResource):
|
|
|
611
595
|
id: pulumi.Input[str],
|
|
612
596
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
613
597
|
credentials: Optional[pulumi.Input[Union['SchemaCredentialsArgs', 'SchemaCredentialsArgsDict']]] = None,
|
|
614
|
-
format: Optional[pulumi.Input[str]] = None,
|
|
615
|
-
hard_delete: Optional[pulumi.Input[bool]] = None,
|
|
598
|
+
format: Optional[pulumi.Input[_builtins.str]] = None,
|
|
599
|
+
hard_delete: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
616
600
|
metadata: Optional[pulumi.Input[Union['SchemaMetadataArgs', 'SchemaMetadataArgsDict']]] = None,
|
|
617
|
-
recreate_on_update: Optional[pulumi.Input[bool]] = None,
|
|
618
|
-
rest_endpoint: Optional[pulumi.Input[str]] = None,
|
|
601
|
+
recreate_on_update: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
602
|
+
rest_endpoint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
619
603
|
ruleset: Optional[pulumi.Input[Union['SchemaRulesetArgs', 'SchemaRulesetArgsDict']]] = None,
|
|
620
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
621
|
-
schema_identifier: Optional[pulumi.Input[int]] = None,
|
|
604
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
605
|
+
schema_identifier: Optional[pulumi.Input[_builtins.int]] = None,
|
|
622
606
|
schema_references: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SchemaSchemaReferenceArgs', 'SchemaSchemaReferenceArgsDict']]]]] = None,
|
|
623
607
|
schema_registry_cluster: Optional[pulumi.Input[Union['SchemaSchemaRegistryClusterArgs', 'SchemaSchemaRegistryClusterArgsDict']]] = None,
|
|
624
|
-
skip_validation_during_plan: Optional[pulumi.Input[bool]] = None,
|
|
625
|
-
subject_name: Optional[pulumi.Input[str]] = None,
|
|
626
|
-
version: Optional[pulumi.Input[int]] = None) -> 'Schema':
|
|
608
|
+
skip_validation_during_plan: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
609
|
+
subject_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
610
|
+
version: Optional[pulumi.Input[_builtins.int]] = None) -> 'Schema':
|
|
627
611
|
"""
|
|
628
612
|
Get an existing Schema resource's state with the given name, id, and optional extra
|
|
629
613
|
properties used to qualify the lookup.
|
|
@@ -632,18 +616,17 @@ class Schema(pulumi.CustomResource):
|
|
|
632
616
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
633
617
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
634
618
|
:param pulumi.Input[Union['SchemaCredentialsArgs', 'SchemaCredentialsArgsDict']] credentials: The Cluster API Credentials.
|
|
635
|
-
:param pulumi.Input[str] format: The format of the
|
|
636
|
-
:param pulumi.Input[bool] hard_delete:
|
|
637
|
-
:param pulumi.Input[
|
|
638
|
-
:param pulumi.Input[
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
:param pulumi.Input[str] schema: The
|
|
642
|
-
:param pulumi.Input[int] schema_identifier: (Required Integer) The globally unique ID of the Schema, for example, `100003`. If the same schema is registered under a different subject, the same identifier will be returned. However, the `version` of the schema may be different under different subjects.
|
|
643
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['SchemaSchemaReferenceArgs', 'SchemaSchemaReferenceArgsDict']]]] schema_references: The list of
|
|
644
|
-
:param pulumi.Input[
|
|
645
|
-
:param pulumi.Input[
|
|
646
|
-
:param pulumi.Input[int] version: (Required Integer) The version of the Schema, for example, `4`.
|
|
619
|
+
:param pulumi.Input[_builtins.str] format: The format of the Schema.
|
|
620
|
+
:param pulumi.Input[_builtins.bool] hard_delete: Controls whether a schema should be soft or hard deleted. Set it to `true` if you want to hard delete a schema on destroy. Defaults to `false` (soft delete).
|
|
621
|
+
:param pulumi.Input[_builtins.bool] recreate_on_update: Controls whether a schema should be recreated on update.
|
|
622
|
+
:param pulumi.Input[_builtins.str] rest_endpoint: The REST endpoint of the Schema Registry cluster. For example, for public networking: `https://psrc-00000.us-central1.gcp.confluent.cloud`. In the case of private networking, the endpoint might look like `https://lsrc-abc123.pr1jy6.us-east-2.aws.confluent.cloud`. You can construct it using either:
|
|
623
|
+
- `data.confluent_schema_registry_cluster.essentials.private_regional_rest_endpoints["us-east-2"]`, or
|
|
624
|
+
- `https://${data.confluent_schema_registry_cluster.essentials.id}${data.confluent_network.main.endpoint_suffix}`
|
|
625
|
+
:param pulumi.Input[_builtins.str] schema: The definition of the Schema.
|
|
626
|
+
:param pulumi.Input[_builtins.int] schema_identifier: (Required Integer) The globally unique ID of the Schema, for example, `100003`. If the same schema is registered under a different subject, the same identifier will be returned. However, the `version` of the schema may be different under different subjects.
|
|
627
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SchemaSchemaReferenceArgs', 'SchemaSchemaReferenceArgsDict']]]] schema_references: The list of references to other Schemas.
|
|
628
|
+
:param pulumi.Input[_builtins.str] subject_name: The name of the subject (in other words, the namespace), representing the subject under which the schema will be registered, for example, `test-subject`. Schemas evolve safely, following a compatibility mode defined, under a subject name.
|
|
629
|
+
:param pulumi.Input[_builtins.int] version: (Required Integer) The version of the Schema, for example, `4`.
|
|
647
630
|
"""
|
|
648
631
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
649
632
|
|
|
@@ -665,7 +648,7 @@ class Schema(pulumi.CustomResource):
|
|
|
665
648
|
__props__.__dict__["version"] = version
|
|
666
649
|
return Schema(resource_name, opts=opts, __props__=__props__)
|
|
667
650
|
|
|
668
|
-
@property
|
|
651
|
+
@_builtins.property
|
|
669
652
|
@pulumi.getter
|
|
670
653
|
def credentials(self) -> pulumi.Output[Optional['outputs.SchemaCredentials']]:
|
|
671
654
|
"""
|
|
@@ -673,102 +656,95 @@ class Schema(pulumi.CustomResource):
|
|
|
673
656
|
"""
|
|
674
657
|
return pulumi.get(self, "credentials")
|
|
675
658
|
|
|
676
|
-
@property
|
|
659
|
+
@_builtins.property
|
|
677
660
|
@pulumi.getter
|
|
678
|
-
def format(self) -> pulumi.Output[str]:
|
|
661
|
+
def format(self) -> pulumi.Output[_builtins.str]:
|
|
679
662
|
"""
|
|
680
|
-
The format of the
|
|
663
|
+
The format of the Schema.
|
|
681
664
|
"""
|
|
682
665
|
return pulumi.get(self, "format")
|
|
683
666
|
|
|
684
|
-
@property
|
|
667
|
+
@_builtins.property
|
|
685
668
|
@pulumi.getter(name="hardDelete")
|
|
686
|
-
def hard_delete(self) -> pulumi.Output[Optional[bool]]:
|
|
669
|
+
def hard_delete(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
687
670
|
"""
|
|
688
|
-
|
|
671
|
+
Controls whether a schema should be soft or hard deleted. Set it to `true` if you want to hard delete a schema on destroy. Defaults to `false` (soft delete).
|
|
689
672
|
"""
|
|
690
673
|
return pulumi.get(self, "hard_delete")
|
|
691
674
|
|
|
692
|
-
@property
|
|
675
|
+
@_builtins.property
|
|
693
676
|
@pulumi.getter
|
|
694
677
|
def metadata(self) -> pulumi.Output['outputs.SchemaMetadata']:
|
|
695
|
-
"""
|
|
696
|
-
See [here](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html) for more details. Supports the following:
|
|
697
|
-
"""
|
|
698
678
|
return pulumi.get(self, "metadata")
|
|
699
679
|
|
|
700
|
-
@property
|
|
680
|
+
@_builtins.property
|
|
701
681
|
@pulumi.getter(name="recreateOnUpdate")
|
|
702
|
-
def recreate_on_update(self) -> pulumi.Output[Optional[bool]]:
|
|
682
|
+
def recreate_on_update(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
703
683
|
"""
|
|
704
|
-
|
|
684
|
+
Controls whether a schema should be recreated on update.
|
|
705
685
|
"""
|
|
706
686
|
return pulumi.get(self, "recreate_on_update")
|
|
707
687
|
|
|
708
|
-
@property
|
|
688
|
+
@_builtins.property
|
|
709
689
|
@pulumi.getter(name="restEndpoint")
|
|
710
|
-
def rest_endpoint(self) -> pulumi.Output[Optional[str]]:
|
|
690
|
+
def rest_endpoint(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
711
691
|
"""
|
|
712
|
-
The REST endpoint of the Schema Registry cluster
|
|
692
|
+
The REST endpoint of the Schema Registry cluster. For example, for public networking: `https://psrc-00000.us-central1.gcp.confluent.cloud`. In the case of private networking, the endpoint might look like `https://lsrc-abc123.pr1jy6.us-east-2.aws.confluent.cloud`. You can construct it using either:
|
|
693
|
+
- `data.confluent_schema_registry_cluster.essentials.private_regional_rest_endpoints["us-east-2"]`, or
|
|
694
|
+
- `https://${data.confluent_schema_registry_cluster.essentials.id}${data.confluent_network.main.endpoint_suffix}`
|
|
713
695
|
"""
|
|
714
696
|
return pulumi.get(self, "rest_endpoint")
|
|
715
697
|
|
|
716
|
-
@property
|
|
698
|
+
@_builtins.property
|
|
717
699
|
@pulumi.getter
|
|
718
|
-
def ruleset(self) -> pulumi.Output['outputs.SchemaRuleset']:
|
|
719
|
-
"""
|
|
720
|
-
The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue.
|
|
721
|
-
"""
|
|
700
|
+
def ruleset(self) -> pulumi.Output[Optional['outputs.SchemaRuleset']]:
|
|
722
701
|
return pulumi.get(self, "ruleset")
|
|
723
702
|
|
|
724
|
-
@property
|
|
703
|
+
@_builtins.property
|
|
725
704
|
@pulumi.getter
|
|
726
|
-
def schema(self) -> pulumi.Output[str]:
|
|
705
|
+
def schema(self) -> pulumi.Output[_builtins.str]:
|
|
727
706
|
"""
|
|
728
|
-
The
|
|
707
|
+
The definition of the Schema.
|
|
729
708
|
"""
|
|
730
709
|
return pulumi.get(self, "schema")
|
|
731
710
|
|
|
732
|
-
@property
|
|
711
|
+
@_builtins.property
|
|
733
712
|
@pulumi.getter(name="schemaIdentifier")
|
|
734
|
-
def schema_identifier(self) -> pulumi.Output[int]:
|
|
713
|
+
def schema_identifier(self) -> pulumi.Output[_builtins.int]:
|
|
735
714
|
"""
|
|
736
715
|
(Required Integer) The globally unique ID of the Schema, for example, `100003`. If the same schema is registered under a different subject, the same identifier will be returned. However, the `version` of the schema may be different under different subjects.
|
|
737
716
|
"""
|
|
738
717
|
return pulumi.get(self, "schema_identifier")
|
|
739
718
|
|
|
740
|
-
@property
|
|
719
|
+
@_builtins.property
|
|
741
720
|
@pulumi.getter(name="schemaReferences")
|
|
742
721
|
def schema_references(self) -> pulumi.Output[Optional[Sequence['outputs.SchemaSchemaReference']]]:
|
|
743
722
|
"""
|
|
744
|
-
The list of
|
|
723
|
+
The list of references to other Schemas.
|
|
745
724
|
"""
|
|
746
725
|
return pulumi.get(self, "schema_references")
|
|
747
726
|
|
|
748
|
-
@property
|
|
727
|
+
@_builtins.property
|
|
749
728
|
@pulumi.getter(name="schemaRegistryCluster")
|
|
750
729
|
def schema_registry_cluster(self) -> pulumi.Output[Optional['outputs.SchemaSchemaRegistryCluster']]:
|
|
751
730
|
return pulumi.get(self, "schema_registry_cluster")
|
|
752
731
|
|
|
753
|
-
@property
|
|
732
|
+
@_builtins.property
|
|
754
733
|
@pulumi.getter(name="skipValidationDuringPlan")
|
|
755
|
-
def skip_validation_during_plan(self) -> pulumi.Output[Optional[bool]]:
|
|
756
|
-
"""
|
|
757
|
-
An optional flag to control whether a schema should be validated during `pulumi preview`. Set it to `true` if you want to skip schema validation during `pulumi preview`. Defaults to `false`. Regardless of `true` or `false` for this flag, schema validation will be performed during `pulumi up`.
|
|
758
|
-
"""
|
|
734
|
+
def skip_validation_during_plan(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
759
735
|
return pulumi.get(self, "skip_validation_during_plan")
|
|
760
736
|
|
|
761
|
-
@property
|
|
737
|
+
@_builtins.property
|
|
762
738
|
@pulumi.getter(name="subjectName")
|
|
763
|
-
def subject_name(self) -> pulumi.Output[str]:
|
|
739
|
+
def subject_name(self) -> pulumi.Output[_builtins.str]:
|
|
764
740
|
"""
|
|
765
741
|
The name of the subject (in other words, the namespace), representing the subject under which the schema will be registered, for example, `test-subject`. Schemas evolve safely, following a compatibility mode defined, under a subject name.
|
|
766
742
|
"""
|
|
767
743
|
return pulumi.get(self, "subject_name")
|
|
768
744
|
|
|
769
|
-
@property
|
|
745
|
+
@_builtins.property
|
|
770
746
|
@pulumi.getter
|
|
771
|
-
def version(self) -> pulumi.Output[int]:
|
|
747
|
+
def version(self) -> pulumi.Output[_builtins.int]:
|
|
772
748
|
"""
|
|
773
749
|
(Required Integer) The version of the Schema, for example, `4`.
|
|
774
750
|
"""
|