vellum-ai 0.3.21__py3-none-any.whl → 0.3.23__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.
- vellum/__init__.py +48 -0
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/test_suite_runs/client.py +14 -0
- vellum/terraform/__init__.py +26 -0
- vellum/terraform/_jsii/__init__.py +27 -0
- vellum/terraform/_jsii/vellum-ai_vellum@0.0.0.jsii.tgz +0 -0
- vellum/terraform/constraints.json +4 -0
- vellum/terraform/data_vellum_document_index/__init__.py +409 -0
- vellum/terraform/document_index/__init__.py +490 -0
- vellum/terraform/provider/__init__.py +237 -0
- vellum/terraform/py.typed +1 -0
- vellum/terraform/versions.json +3 -0
- vellum/types/__init__.py +50 -0
- vellum/types/external_test_case_execution.py +35 -0
- vellum/types/external_test_case_execution_request.py +35 -0
- vellum/types/fulfilled_workflow_node_result_event.py +1 -1
- vellum/types/named_test_case_chat_history_variable_value.py +35 -0
- vellum/types/named_test_case_chat_history_variable_value_request.py +5 -1
- vellum/types/named_test_case_error_variable_value.py +35 -0
- vellum/types/named_test_case_error_variable_value_request.py +5 -1
- vellum/types/named_test_case_json_variable_value.py +34 -0
- vellum/types/named_test_case_json_variable_value_request.py +5 -1
- vellum/types/named_test_case_number_variable_value.py +34 -0
- vellum/types/named_test_case_number_variable_value_request.py +5 -1
- vellum/types/named_test_case_search_results_variable_value.py +35 -0
- vellum/types/named_test_case_search_results_variable_value_request.py +5 -1
- vellum/types/named_test_case_string_variable_value.py +34 -0
- vellum/types/named_test_case_string_variable_value_request.py +5 -1
- vellum/types/named_test_case_variable_value.py +82 -0
- vellum/types/prompt_template_block.py +2 -0
- vellum/types/prompt_template_block_request.py +2 -0
- vellum/types/prompt_template_block_state.py +22 -0
- vellum/types/sandbox_scenario.py +4 -0
- vellum/types/test_case_chat_history_variable_value.py +5 -0
- vellum/types/test_case_error_variable_value.py +5 -0
- vellum/types/test_case_json_variable_value.py +5 -0
- vellum/types/test_case_number_variable_value.py +5 -0
- vellum/types/test_case_search_results_variable_value.py +5 -0
- vellum/types/test_case_string_variable_value.py +5 -0
- vellum/types/test_suite_run_exec_config.py +14 -1
- vellum/types/test_suite_run_exec_config_request.py +14 -1
- vellum/types/test_suite_run_execution_chat_history_output.py +6 -1
- vellum/types/test_suite_run_execution_error_output.py +6 -1
- vellum/types/test_suite_run_execution_json_output.py +6 -1
- vellum/types/test_suite_run_execution_metric_definition.py +31 -0
- vellum/types/test_suite_run_execution_metric_result.py +3 -0
- vellum/types/test_suite_run_execution_number_output.py +6 -1
- vellum/types/test_suite_run_execution_search_results_output.py +6 -1
- vellum/types/test_suite_run_execution_string_output.py +6 -1
- vellum/types/test_suite_run_external_exec_config.py +38 -0
- vellum/types/test_suite_run_external_exec_config_data.py +33 -0
- vellum/types/test_suite_run_external_exec_config_data_request.py +33 -0
- vellum/types/test_suite_run_external_exec_config_request.py +38 -0
- vellum/types/test_suite_run_external_exec_config_type_enum.py +5 -0
- {vellum_ai-0.3.21.dist-info → vellum_ai-0.3.23.dist-info}/METADATA +2 -1
- {vellum_ai-0.3.21.dist-info → vellum_ai-0.3.23.dist-info}/RECORD +58 -33
- {vellum_ai-0.3.21.dist-info → vellum_ai-0.3.23.dist-info}/LICENSE +0 -0
- {vellum_ai-0.3.21.dist-info → vellum_ai-0.3.23.dist-info}/WHEEL +0 -0
@@ -0,0 +1,490 @@
|
|
1
|
+
'''
|
2
|
+
# `vellum_document_index`
|
3
|
+
|
4
|
+
Refer to the Terraform Registry for docs: [`vellum_document_index`](https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index).
|
5
|
+
'''
|
6
|
+
from pkgutil import extend_path
|
7
|
+
__path__ = extend_path(__path__, __name__)
|
8
|
+
|
9
|
+
import abc
|
10
|
+
import builtins
|
11
|
+
import datetime
|
12
|
+
import enum
|
13
|
+
import typing
|
14
|
+
|
15
|
+
import jsii
|
16
|
+
import publication
|
17
|
+
import typing_extensions
|
18
|
+
|
19
|
+
from typeguard import check_type
|
20
|
+
|
21
|
+
from .._jsii import *
|
22
|
+
|
23
|
+
import cdktf as _cdktf_9a9027ec
|
24
|
+
import constructs as _constructs_77d1e7e8
|
25
|
+
|
26
|
+
|
27
|
+
class DocumentIndex(
|
28
|
+
_cdktf_9a9027ec.TerraformResource,
|
29
|
+
metaclass=jsii.JSIIMeta,
|
30
|
+
jsii_type="vellum-ai_vellum.documentIndex.DocumentIndex",
|
31
|
+
):
|
32
|
+
'''Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index vellum_document_index}.'''
|
33
|
+
|
34
|
+
def __init__(
|
35
|
+
self,
|
36
|
+
scope: _constructs_77d1e7e8.Construct,
|
37
|
+
id: builtins.str,
|
38
|
+
*,
|
39
|
+
label: builtins.str,
|
40
|
+
name: builtins.str,
|
41
|
+
environment: typing.Optional[builtins.str] = None,
|
42
|
+
status: typing.Optional[builtins.str] = None,
|
43
|
+
connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
44
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
45
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
46
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
47
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
48
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
49
|
+
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
50
|
+
) -> None:
|
51
|
+
'''Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index vellum_document_index} Resource.
|
52
|
+
|
53
|
+
:param scope: The scope in which to define this construct.
|
54
|
+
:param id: The scoped construct ID. Must be unique amongst siblings in the same scope
|
55
|
+
:param label: A human-readable label for the document index. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#label DocumentIndex#label}
|
56
|
+
:param name: A name that uniquely identifies this index within its workspace. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#name DocumentIndex#name}
|
57
|
+
:param environment: The environment this document index is used in. - ``DEVELOPMENT`` - Development - ``STAGING`` - Staging - ``PRODUCTION`` - Production Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#environment DocumentIndex#environment}
|
58
|
+
:param status: The current status of the document index. - ``ACTIVE`` - Active - ``ARCHIVED`` - Archived Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#status DocumentIndex#status}
|
59
|
+
:param connection:
|
60
|
+
:param count:
|
61
|
+
:param depends_on:
|
62
|
+
:param for_each:
|
63
|
+
:param lifecycle:
|
64
|
+
:param provider:
|
65
|
+
:param provisioners:
|
66
|
+
'''
|
67
|
+
if __debug__:
|
68
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0751847ca1b05a8752b6d12df3c1097c8ee7a048412870faf9e1bcb2ca1a4f19)
|
69
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
70
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
71
|
+
config = DocumentIndexConfig(
|
72
|
+
label=label,
|
73
|
+
name=name,
|
74
|
+
environment=environment,
|
75
|
+
status=status,
|
76
|
+
connection=connection,
|
77
|
+
count=count,
|
78
|
+
depends_on=depends_on,
|
79
|
+
for_each=for_each,
|
80
|
+
lifecycle=lifecycle,
|
81
|
+
provider=provider,
|
82
|
+
provisioners=provisioners,
|
83
|
+
)
|
84
|
+
|
85
|
+
jsii.create(self.__class__, self, [scope, id, config])
|
86
|
+
|
87
|
+
@jsii.member(jsii_name="generateConfigForImport")
|
88
|
+
@builtins.classmethod
|
89
|
+
def generate_config_for_import(
|
90
|
+
cls,
|
91
|
+
scope: _constructs_77d1e7e8.Construct,
|
92
|
+
import_to_id: builtins.str,
|
93
|
+
import_from_id: builtins.str,
|
94
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
95
|
+
) -> _cdktf_9a9027ec.ImportableResource:
|
96
|
+
'''Generates CDKTF code for importing a DocumentIndex resource upon running "cdktf plan ".
|
97
|
+
|
98
|
+
:param scope: The scope in which to define this construct.
|
99
|
+
:param import_to_id: The construct id used in the generated config for the DocumentIndex to import.
|
100
|
+
:param import_from_id: The id of the existing DocumentIndex that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#import import section} in the documentation of this resource for the id to use
|
101
|
+
:param provider: ? Optional instance of the provider where the DocumentIndex to import is found.
|
102
|
+
'''
|
103
|
+
if __debug__:
|
104
|
+
type_hints = typing.get_type_hints(_typecheckingstub__dc48d775af9f151cb9ef4f2112a12fea79289a24be51d0cae2054249fbc7b7ec)
|
105
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
106
|
+
check_type(argname="argument import_to_id", value=import_to_id, expected_type=type_hints["import_to_id"])
|
107
|
+
check_type(argname="argument import_from_id", value=import_from_id, expected_type=type_hints["import_from_id"])
|
108
|
+
check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
|
109
|
+
return typing.cast(_cdktf_9a9027ec.ImportableResource, jsii.sinvoke(cls, "generateConfigForImport", [scope, import_to_id, import_from_id, provider]))
|
110
|
+
|
111
|
+
@jsii.member(jsii_name="resetEnvironment")
|
112
|
+
def reset_environment(self) -> None:
|
113
|
+
return typing.cast(None, jsii.invoke(self, "resetEnvironment", []))
|
114
|
+
|
115
|
+
@jsii.member(jsii_name="resetStatus")
|
116
|
+
def reset_status(self) -> None:
|
117
|
+
return typing.cast(None, jsii.invoke(self, "resetStatus", []))
|
118
|
+
|
119
|
+
@jsii.member(jsii_name="synthesizeAttributes")
|
120
|
+
def _synthesize_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
121
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeAttributes", []))
|
122
|
+
|
123
|
+
@jsii.member(jsii_name="synthesizeHclAttributes")
|
124
|
+
def _synthesize_hcl_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
125
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeHclAttributes", []))
|
126
|
+
|
127
|
+
@jsii.python.classproperty
|
128
|
+
@jsii.member(jsii_name="tfResourceType")
|
129
|
+
def TF_RESOURCE_TYPE(cls) -> builtins.str:
|
130
|
+
return typing.cast(builtins.str, jsii.sget(cls, "tfResourceType"))
|
131
|
+
|
132
|
+
@builtins.property
|
133
|
+
@jsii.member(jsii_name="created")
|
134
|
+
def created(self) -> builtins.str:
|
135
|
+
return typing.cast(builtins.str, jsii.get(self, "created"))
|
136
|
+
|
137
|
+
@builtins.property
|
138
|
+
@jsii.member(jsii_name="id")
|
139
|
+
def id(self) -> builtins.str:
|
140
|
+
return typing.cast(builtins.str, jsii.get(self, "id"))
|
141
|
+
|
142
|
+
@builtins.property
|
143
|
+
@jsii.member(jsii_name="environmentInput")
|
144
|
+
def environment_input(self) -> typing.Optional[builtins.str]:
|
145
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "environmentInput"))
|
146
|
+
|
147
|
+
@builtins.property
|
148
|
+
@jsii.member(jsii_name="labelInput")
|
149
|
+
def label_input(self) -> typing.Optional[builtins.str]:
|
150
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "labelInput"))
|
151
|
+
|
152
|
+
@builtins.property
|
153
|
+
@jsii.member(jsii_name="nameInput")
|
154
|
+
def name_input(self) -> typing.Optional[builtins.str]:
|
155
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "nameInput"))
|
156
|
+
|
157
|
+
@builtins.property
|
158
|
+
@jsii.member(jsii_name="statusInput")
|
159
|
+
def status_input(self) -> typing.Optional[builtins.str]:
|
160
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "statusInput"))
|
161
|
+
|
162
|
+
@builtins.property
|
163
|
+
@jsii.member(jsii_name="environment")
|
164
|
+
def environment(self) -> builtins.str:
|
165
|
+
return typing.cast(builtins.str, jsii.get(self, "environment"))
|
166
|
+
|
167
|
+
@environment.setter
|
168
|
+
def environment(self, value: builtins.str) -> None:
|
169
|
+
if __debug__:
|
170
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bf57026eb472d19081b573c581c3a634226c3830ec5503e4250caeb2d3667f4a)
|
171
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
172
|
+
jsii.set(self, "environment", value)
|
173
|
+
|
174
|
+
@builtins.property
|
175
|
+
@jsii.member(jsii_name="label")
|
176
|
+
def label(self) -> builtins.str:
|
177
|
+
return typing.cast(builtins.str, jsii.get(self, "label"))
|
178
|
+
|
179
|
+
@label.setter
|
180
|
+
def label(self, value: builtins.str) -> None:
|
181
|
+
if __debug__:
|
182
|
+
type_hints = typing.get_type_hints(_typecheckingstub__afd1f32093dd34875f95059e21acf663b1f316fcf6f8322cf49b7a4f15572775)
|
183
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
184
|
+
jsii.set(self, "label", value)
|
185
|
+
|
186
|
+
@builtins.property
|
187
|
+
@jsii.member(jsii_name="name")
|
188
|
+
def name(self) -> builtins.str:
|
189
|
+
return typing.cast(builtins.str, jsii.get(self, "name"))
|
190
|
+
|
191
|
+
@name.setter
|
192
|
+
def name(self, value: builtins.str) -> None:
|
193
|
+
if __debug__:
|
194
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b0dd98d80b775d4b66d0b03813c3883c7436d6ff207fe6df0f2c1ba0cbf4b467)
|
195
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
196
|
+
jsii.set(self, "name", value)
|
197
|
+
|
198
|
+
@builtins.property
|
199
|
+
@jsii.member(jsii_name="status")
|
200
|
+
def status(self) -> builtins.str:
|
201
|
+
return typing.cast(builtins.str, jsii.get(self, "status"))
|
202
|
+
|
203
|
+
@status.setter
|
204
|
+
def status(self, value: builtins.str) -> None:
|
205
|
+
if __debug__:
|
206
|
+
type_hints = typing.get_type_hints(_typecheckingstub__97df11ff01445aecc3848c3d22f8f43002dd2193bfa13d3973ac99da76831ec2)
|
207
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
208
|
+
jsii.set(self, "status", value)
|
209
|
+
|
210
|
+
|
211
|
+
@jsii.data_type(
|
212
|
+
jsii_type="vellum-ai_vellum.documentIndex.DocumentIndexConfig",
|
213
|
+
jsii_struct_bases=[_cdktf_9a9027ec.TerraformMetaArguments],
|
214
|
+
name_mapping={
|
215
|
+
"connection": "connection",
|
216
|
+
"count": "count",
|
217
|
+
"depends_on": "dependsOn",
|
218
|
+
"for_each": "forEach",
|
219
|
+
"lifecycle": "lifecycle",
|
220
|
+
"provider": "provider",
|
221
|
+
"provisioners": "provisioners",
|
222
|
+
"label": "label",
|
223
|
+
"name": "name",
|
224
|
+
"environment": "environment",
|
225
|
+
"status": "status",
|
226
|
+
},
|
227
|
+
)
|
228
|
+
class DocumentIndexConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
229
|
+
def __init__(
|
230
|
+
self,
|
231
|
+
*,
|
232
|
+
connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
233
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
234
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
235
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
236
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
237
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
238
|
+
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
239
|
+
label: builtins.str,
|
240
|
+
name: builtins.str,
|
241
|
+
environment: typing.Optional[builtins.str] = None,
|
242
|
+
status: typing.Optional[builtins.str] = None,
|
243
|
+
) -> None:
|
244
|
+
'''
|
245
|
+
:param connection:
|
246
|
+
:param count:
|
247
|
+
:param depends_on:
|
248
|
+
:param for_each:
|
249
|
+
:param lifecycle:
|
250
|
+
:param provider:
|
251
|
+
:param provisioners:
|
252
|
+
:param label: A human-readable label for the document index. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#label DocumentIndex#label}
|
253
|
+
:param name: A name that uniquely identifies this index within its workspace. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#name DocumentIndex#name}
|
254
|
+
:param environment: The environment this document index is used in. - ``DEVELOPMENT`` - Development - ``STAGING`` - Staging - ``PRODUCTION`` - Production Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#environment DocumentIndex#environment}
|
255
|
+
:param status: The current status of the document index. - ``ACTIVE`` - Active - ``ARCHIVED`` - Archived Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#status DocumentIndex#status}
|
256
|
+
'''
|
257
|
+
if isinstance(lifecycle, dict):
|
258
|
+
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
259
|
+
if __debug__:
|
260
|
+
type_hints = typing.get_type_hints(_typecheckingstub__119259bd47e6fe3a6870fdc08f5901ccfef95cae30a49c3268a665d319727301)
|
261
|
+
check_type(argname="argument connection", value=connection, expected_type=type_hints["connection"])
|
262
|
+
check_type(argname="argument count", value=count, expected_type=type_hints["count"])
|
263
|
+
check_type(argname="argument depends_on", value=depends_on, expected_type=type_hints["depends_on"])
|
264
|
+
check_type(argname="argument for_each", value=for_each, expected_type=type_hints["for_each"])
|
265
|
+
check_type(argname="argument lifecycle", value=lifecycle, expected_type=type_hints["lifecycle"])
|
266
|
+
check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
|
267
|
+
check_type(argname="argument provisioners", value=provisioners, expected_type=type_hints["provisioners"])
|
268
|
+
check_type(argname="argument label", value=label, expected_type=type_hints["label"])
|
269
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
270
|
+
check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
|
271
|
+
check_type(argname="argument status", value=status, expected_type=type_hints["status"])
|
272
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
273
|
+
"label": label,
|
274
|
+
"name": name,
|
275
|
+
}
|
276
|
+
if connection is not None:
|
277
|
+
self._values["connection"] = connection
|
278
|
+
if count is not None:
|
279
|
+
self._values["count"] = count
|
280
|
+
if depends_on is not None:
|
281
|
+
self._values["depends_on"] = depends_on
|
282
|
+
if for_each is not None:
|
283
|
+
self._values["for_each"] = for_each
|
284
|
+
if lifecycle is not None:
|
285
|
+
self._values["lifecycle"] = lifecycle
|
286
|
+
if provider is not None:
|
287
|
+
self._values["provider"] = provider
|
288
|
+
if provisioners is not None:
|
289
|
+
self._values["provisioners"] = provisioners
|
290
|
+
if environment is not None:
|
291
|
+
self._values["environment"] = environment
|
292
|
+
if status is not None:
|
293
|
+
self._values["status"] = status
|
294
|
+
|
295
|
+
@builtins.property
|
296
|
+
def connection(
|
297
|
+
self,
|
298
|
+
) -> typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]]:
|
299
|
+
'''
|
300
|
+
:stability: experimental
|
301
|
+
'''
|
302
|
+
result = self._values.get("connection")
|
303
|
+
return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]], result)
|
304
|
+
|
305
|
+
@builtins.property
|
306
|
+
def count(
|
307
|
+
self,
|
308
|
+
) -> typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]]:
|
309
|
+
'''
|
310
|
+
:stability: experimental
|
311
|
+
'''
|
312
|
+
result = self._values.get("count")
|
313
|
+
return typing.cast(typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]], result)
|
314
|
+
|
315
|
+
@builtins.property
|
316
|
+
def depends_on(
|
317
|
+
self,
|
318
|
+
) -> typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]]:
|
319
|
+
'''
|
320
|
+
:stability: experimental
|
321
|
+
'''
|
322
|
+
result = self._values.get("depends_on")
|
323
|
+
return typing.cast(typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]], result)
|
324
|
+
|
325
|
+
@builtins.property
|
326
|
+
def for_each(self) -> typing.Optional[_cdktf_9a9027ec.ITerraformIterator]:
|
327
|
+
'''
|
328
|
+
:stability: experimental
|
329
|
+
'''
|
330
|
+
result = self._values.get("for_each")
|
331
|
+
return typing.cast(typing.Optional[_cdktf_9a9027ec.ITerraformIterator], result)
|
332
|
+
|
333
|
+
@builtins.property
|
334
|
+
def lifecycle(self) -> typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle]:
|
335
|
+
'''
|
336
|
+
:stability: experimental
|
337
|
+
'''
|
338
|
+
result = self._values.get("lifecycle")
|
339
|
+
return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle], result)
|
340
|
+
|
341
|
+
@builtins.property
|
342
|
+
def provider(self) -> typing.Optional[_cdktf_9a9027ec.TerraformProvider]:
|
343
|
+
'''
|
344
|
+
:stability: experimental
|
345
|
+
'''
|
346
|
+
result = self._values.get("provider")
|
347
|
+
return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformProvider], result)
|
348
|
+
|
349
|
+
@builtins.property
|
350
|
+
def provisioners(
|
351
|
+
self,
|
352
|
+
) -> typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]]:
|
353
|
+
'''
|
354
|
+
:stability: experimental
|
355
|
+
'''
|
356
|
+
result = self._values.get("provisioners")
|
357
|
+
return typing.cast(typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]], result)
|
358
|
+
|
359
|
+
@builtins.property
|
360
|
+
def label(self) -> builtins.str:
|
361
|
+
'''A human-readable label for the document index.
|
362
|
+
|
363
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#label DocumentIndex#label}
|
364
|
+
'''
|
365
|
+
result = self._values.get("label")
|
366
|
+
assert result is not None, "Required property 'label' is missing"
|
367
|
+
return typing.cast(builtins.str, result)
|
368
|
+
|
369
|
+
@builtins.property
|
370
|
+
def name(self) -> builtins.str:
|
371
|
+
'''A name that uniquely identifies this index within its workspace.
|
372
|
+
|
373
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#name DocumentIndex#name}
|
374
|
+
'''
|
375
|
+
result = self._values.get("name")
|
376
|
+
assert result is not None, "Required property 'name' is missing"
|
377
|
+
return typing.cast(builtins.str, result)
|
378
|
+
|
379
|
+
@builtins.property
|
380
|
+
def environment(self) -> typing.Optional[builtins.str]:
|
381
|
+
'''The environment this document index is used in.
|
382
|
+
|
383
|
+
- ``DEVELOPMENT`` - Development
|
384
|
+
- ``STAGING`` - Staging
|
385
|
+
- ``PRODUCTION`` - Production
|
386
|
+
|
387
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#environment DocumentIndex#environment}
|
388
|
+
'''
|
389
|
+
result = self._values.get("environment")
|
390
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
391
|
+
|
392
|
+
@builtins.property
|
393
|
+
def status(self) -> typing.Optional[builtins.str]:
|
394
|
+
'''The current status of the document index.
|
395
|
+
|
396
|
+
- ``ACTIVE`` - Active
|
397
|
+
- ``ARCHIVED`` - Archived
|
398
|
+
|
399
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#status DocumentIndex#status}
|
400
|
+
'''
|
401
|
+
result = self._values.get("status")
|
402
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
403
|
+
|
404
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
405
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
406
|
+
|
407
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
408
|
+
return not (rhs == self)
|
409
|
+
|
410
|
+
def __repr__(self) -> str:
|
411
|
+
return "DocumentIndexConfig(%s)" % ", ".join(
|
412
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
413
|
+
)
|
414
|
+
|
415
|
+
|
416
|
+
__all__ = [
|
417
|
+
"DocumentIndex",
|
418
|
+
"DocumentIndexConfig",
|
419
|
+
]
|
420
|
+
|
421
|
+
publication.publish()
|
422
|
+
|
423
|
+
def _typecheckingstub__0751847ca1b05a8752b6d12df3c1097c8ee7a048412870faf9e1bcb2ca1a4f19(
|
424
|
+
scope: _constructs_77d1e7e8.Construct,
|
425
|
+
id: builtins.str,
|
426
|
+
*,
|
427
|
+
label: builtins.str,
|
428
|
+
name: builtins.str,
|
429
|
+
environment: typing.Optional[builtins.str] = None,
|
430
|
+
status: typing.Optional[builtins.str] = None,
|
431
|
+
connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
432
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
433
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
434
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
435
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
436
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
437
|
+
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
438
|
+
) -> None:
|
439
|
+
"""Type checking stubs"""
|
440
|
+
pass
|
441
|
+
|
442
|
+
def _typecheckingstub__dc48d775af9f151cb9ef4f2112a12fea79289a24be51d0cae2054249fbc7b7ec(
|
443
|
+
scope: _constructs_77d1e7e8.Construct,
|
444
|
+
import_to_id: builtins.str,
|
445
|
+
import_from_id: builtins.str,
|
446
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
447
|
+
) -> None:
|
448
|
+
"""Type checking stubs"""
|
449
|
+
pass
|
450
|
+
|
451
|
+
def _typecheckingstub__bf57026eb472d19081b573c581c3a634226c3830ec5503e4250caeb2d3667f4a(
|
452
|
+
value: builtins.str,
|
453
|
+
) -> None:
|
454
|
+
"""Type checking stubs"""
|
455
|
+
pass
|
456
|
+
|
457
|
+
def _typecheckingstub__afd1f32093dd34875f95059e21acf663b1f316fcf6f8322cf49b7a4f15572775(
|
458
|
+
value: builtins.str,
|
459
|
+
) -> None:
|
460
|
+
"""Type checking stubs"""
|
461
|
+
pass
|
462
|
+
|
463
|
+
def _typecheckingstub__b0dd98d80b775d4b66d0b03813c3883c7436d6ff207fe6df0f2c1ba0cbf4b467(
|
464
|
+
value: builtins.str,
|
465
|
+
) -> None:
|
466
|
+
"""Type checking stubs"""
|
467
|
+
pass
|
468
|
+
|
469
|
+
def _typecheckingstub__97df11ff01445aecc3848c3d22f8f43002dd2193bfa13d3973ac99da76831ec2(
|
470
|
+
value: builtins.str,
|
471
|
+
) -> None:
|
472
|
+
"""Type checking stubs"""
|
473
|
+
pass
|
474
|
+
|
475
|
+
def _typecheckingstub__119259bd47e6fe3a6870fdc08f5901ccfef95cae30a49c3268a665d319727301(
|
476
|
+
*,
|
477
|
+
connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
478
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
479
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
480
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
481
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
482
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
483
|
+
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
484
|
+
label: builtins.str,
|
485
|
+
name: builtins.str,
|
486
|
+
environment: typing.Optional[builtins.str] = None,
|
487
|
+
status: typing.Optional[builtins.str] = None,
|
488
|
+
) -> None:
|
489
|
+
"""Type checking stubs"""
|
490
|
+
pass
|