@gradientedge/cdk-utils 9.87.0 → 9.88.0

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,1516 +0,0 @@
1
- // https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource
2
- // generated from terraform resource schema
3
-
4
- import { Construct } from 'constructs'
5
- import * as cdktf from 'cdktf'
6
-
7
- // Configuration
8
-
9
- export interface ResourceConfig extends cdktf.TerraformMetaArguments {
10
- /**
11
- * A dynamic attribute that contains the request body.
12
- *
13
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#body Resource#body}
14
- */
15
- readonly body?: { [key: string]: any }
16
- /**
17
- * A mapping of headers to be sent with the create request.
18
- *
19
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#create_headers Resource#create_headers}
20
- */
21
- readonly createHeaders?: { [key: string]: string }
22
- /**
23
- * A mapping of query parameters to be sent with the create request.
24
- *
25
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#create_query_parameters Resource#create_query_parameters}
26
- */
27
- readonly createQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
28
- /**
29
- * A mapping of headers to be sent with the delete request.
30
- *
31
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#delete_headers Resource#delete_headers}
32
- */
33
- readonly deleteHeaders?: { [key: string]: string }
34
- /**
35
- * A mapping of query parameters to be sent with the delete request.
36
- *
37
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#delete_query_parameters Resource#delete_query_parameters}
38
- */
39
- readonly deleteQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
40
- /**
41
- * Whether ignore the casing of the property names in the response body. Defaults to `false`.
42
- *
43
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#ignore_casing Resource#ignore_casing}
44
- */
45
- readonly ignoreCasing?: boolean | cdktf.IResolvable
46
- /**
47
- * Whether ignore not returned properties like credentials in `body` to suppress plan-diff. Defaults to `true`. It's recommend to enable this option when some sensitive properties are not returned in response body, instead of setting them in `lifecycle.ignore_changes` because it will make the sensitive fields unable to update.
48
- *
49
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#ignore_missing_property Resource#ignore_missing_property}
50
- */
51
- readonly ignoreMissingProperty?: boolean | cdktf.IResolvable
52
- /**
53
- * The location of the Azure resource.
54
- *
55
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#location Resource#location}
56
- */
57
- readonly location?: string
58
- /**
59
- * A list of ARM resource IDs which are used to avoid create/modify/delete azapi resources at the same time.
60
- *
61
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#locks Resource#locks}
62
- */
63
- readonly locks?: string[]
64
- /**
65
- * Specifies the name of the azure resource. Changing this forces a new resource to be created.
66
- *
67
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#name Resource#name}
68
- */
69
- readonly name?: string
70
- /**
71
- * The ID of the azure resource in which this resource is created. It supports different kinds of deployment scope for **top level** resources:
72
- *
73
- * - resource group scope: `parent_id` should be the ID of a resource group, it's recommended to manage a resource group by azurerm_resource_group.
74
- * - management group scope: `parent_id` should be the ID of a management group, it's recommended to manage a management group by azurerm_management_group.
75
- * - extension scope: `parent_id` should be the ID of the resource you're adding the extension to.
76
- * - subscription scope: `parent_id` should be like \x60/subscriptions/00000000-0000-0000-0000-000000000000\x60
77
- * - tenant scope: `parent_id` should be /
78
- *
79
- * For child level resources, the `parent_id` should be the ID of its parent resource, for example, subnet resource's `parent_id` is the ID of the vnet.
80
- *
81
- * For type `Microsoft.Resources/resourceGroups`, the `parent_id` could be omitted, it defaults to subscription ID specified in provider or the default subscription (You could check the default subscription by azure cli command: `az account show`).
82
- *
83
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#parent_id Resource#parent_id}
84
- */
85
- readonly parentId?: string
86
- /**
87
- * A mapping of headers to be sent with the read request.
88
- *
89
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#read_headers Resource#read_headers}
90
- */
91
- readonly readHeaders?: { [key: string]: string }
92
- /**
93
- * A mapping of query parameters to be sent with the read request.
94
- *
95
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#read_query_parameters Resource#read_query_parameters}
96
- */
97
- readonly readQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
98
- /**
99
- * Will trigger a replace of the resource when the value changes and is not `null`. This can be used by practitioners to force a replace of the resource when certain values change, e.g. changing the SKU of a virtual machine based on the value of variables or locals. The value is a `dynamic`, so practitioners can compose the input however they wish. For a "break glass" set the value to `null` to prevent the plan modifier taking effect.
100
- * If you have `null` values that you do want to be tracked as affecting the resource replacement, include these inside an object.
101
- * Advanced use cases are possible and resource replacement can be triggered by values external to the resource, for example when a dependent resource changes.
102
- *
103
- * e.g. to replace a resource when either the SKU or os_type attributes change:
104
- *
105
- * ```hcl
106
- * resource "azapi_resource" "example" {
107
- * name = var.name
108
- * type = "Microsoft.Network/publicIPAddresses@2023-11-01"
109
- * parent_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example"
110
- * body = {
111
- * properties = {
112
- * sku = var.sku
113
- * zones = var.zones
114
- * }
115
- * }
116
- *
117
- * replace_triggers_external_values = [
118
- * var.sku,
119
- * var.zones,
120
- * ]
121
- * }
122
- * ```
123
- *
124
- *
125
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#replace_triggers_external_values Resource#replace_triggers_external_values}
126
- */
127
- readonly replaceTriggersExternalValues?: { [key: string]: any }
128
- /**
129
- * A list of paths in the current Terraform configuration. When the values at these paths change, the resource will be replaced.
130
- *
131
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#replace_triggers_refs Resource#replace_triggers_refs}
132
- */
133
- readonly replaceTriggersRefs?: string[]
134
- /**
135
- * The attribute can accept either a list or a map.
136
- *
137
- * - **List**: A list of paths that need to be exported from the response body. Setting it to `["*"]` will export the full response body. Here's an example. If it sets to `["properties.loginServer", "properties.policies.quarantinePolicy.status"]`, it will set the following HCL object to the computed property output.
138
- *
139
- * ```text
140
- * {
141
- * properties = {
142
- * loginServer = "registry1.azurecr.io"
143
- * policies = {
144
- * quarantinePolicy = {
145
- * status = "disabled"
146
- * }
147
- * }
148
- * }
149
- * }
150
- * ```
151
- *
152
- * - **Map**: A map where the key is the name for the result and the value is a JMESPath query string to filter the response. Here's an example. If it sets to `{"login_server": "properties.loginServer", "quarantine_status": "properties.policies.quarantinePolicy.status"}`, it will set the following HCL object to the computed property output.
153
- *
154
- * ```text
155
- * {
156
- * "login_server" = "registry1.azurecr.io"
157
- * "quarantine_status" = "disabled"
158
- * }
159
- * ```
160
- *
161
- * To learn more about JMESPath, visit [JMESPath](https://jmespath.org/).
162
- *
163
- *
164
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#response_export_values Resource#response_export_values}
165
- */
166
- readonly responseExportValues?: { [key: string]: any }
167
- /**
168
- * The retry block supports the following arguments:
169
- *
170
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#retry Resource#retry}
171
- */
172
- readonly retry?: ResourceRetry
173
- /**
174
- * Whether enabled the validation on `type` and `body` with embedded schema. Defaults to `true`.
175
- *
176
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#schema_validation_enabled Resource#schema_validation_enabled}
177
- */
178
- readonly schemaValidationEnabled?: boolean | cdktf.IResolvable
179
- /**
180
- * A mapping of tags which should be assigned to the Azure resource.
181
- *
182
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#tags Resource#tags}
183
- */
184
- readonly tags?: { [key: string]: string }
185
- /**
186
- * In a format like `<resource-type>@<api-version>`. `<resource-type>` is the Azure resource type, for example, `Microsoft.Storage/storageAccounts`. `<api-version>` is version of the API used to manage this azure resource.
187
- *
188
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#type Resource#type}
189
- */
190
- readonly type: string
191
- /**
192
- * A mapping of headers to be sent with the update request.
193
- *
194
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#update_headers Resource#update_headers}
195
- */
196
- readonly updateHeaders?: { [key: string]: string }
197
- /**
198
- * A mapping of query parameters to be sent with the update request.
199
- *
200
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#update_query_parameters Resource#update_query_parameters}
201
- */
202
- readonly updateQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
203
- /**
204
- * identity block
205
- *
206
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#identity Resource#identity}
207
- */
208
- readonly identity?: ResourceIdentity[] | cdktf.IResolvable
209
- /**
210
- * timeouts block
211
- *
212
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#timeouts Resource#timeouts}
213
- */
214
- readonly timeouts?: ResourceTimeouts
215
- }
216
- export interface ResourceRetry {
217
- /**
218
- * A list of regular expressions to match against error messages. If any of the regular expressions match, the error is considered retryable.
219
- *
220
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#error_message_regex Resource#error_message_regex}
221
- */
222
- readonly errorMessageRegex: string[]
223
- /**
224
- * The base number of seconds to wait between retries. Default is `10`.
225
- *
226
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#interval_seconds Resource#interval_seconds}
227
- */
228
- readonly intervalSeconds?: number
229
- /**
230
- * The maximum number of seconds to wait between retries. Default is `180`.
231
- *
232
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#max_interval_seconds Resource#max_interval_seconds}
233
- */
234
- readonly maxIntervalSeconds?: number
235
- /**
236
- * The multiplier to apply to the interval between retries. Default is `1.5`.
237
- *
238
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#multiplier Resource#multiplier}
239
- */
240
- readonly multiplier?: number
241
- /**
242
- * The randomization factor to apply to the interval between retries. The formula for the randomized interval is: `RetryInterval * (random value in range [1 - RandomizationFactor, 1 + RandomizationFactor])`. Therefore set to zero `0.0` for no randomization. Default is `0.5`.
243
- *
244
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#randomization_factor Resource#randomization_factor}
245
- */
246
- readonly randomizationFactor?: number
247
- }
248
-
249
- export function resourceRetryToTerraform(struct?: ResourceRetry | cdktf.IResolvable): any {
250
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
251
- return struct
252
- }
253
- if (cdktf.isComplexElement(struct)) {
254
- throw new Error(
255
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
256
- )
257
- }
258
- return {
259
- error_message_regex: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.errorMessageRegex),
260
- interval_seconds: cdktf.numberToTerraform(struct!.intervalSeconds),
261
- max_interval_seconds: cdktf.numberToTerraform(struct!.maxIntervalSeconds),
262
- multiplier: cdktf.numberToTerraform(struct!.multiplier),
263
- randomization_factor: cdktf.numberToTerraform(struct!.randomizationFactor),
264
- }
265
- }
266
-
267
- export function resourceRetryToHclTerraform(struct?: ResourceRetry | cdktf.IResolvable): any {
268
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
269
- return struct
270
- }
271
- if (cdktf.isComplexElement(struct)) {
272
- throw new Error(
273
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
274
- )
275
- }
276
- const attrs = {
277
- error_message_regex: {
278
- value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct!.errorMessageRegex),
279
- isBlock: false,
280
- type: 'list',
281
- storageClassType: 'stringList',
282
- },
283
- interval_seconds: {
284
- value: cdktf.numberToHclTerraform(struct!.intervalSeconds),
285
- isBlock: false,
286
- type: 'simple',
287
- storageClassType: 'number',
288
- },
289
- max_interval_seconds: {
290
- value: cdktf.numberToHclTerraform(struct!.maxIntervalSeconds),
291
- isBlock: false,
292
- type: 'simple',
293
- storageClassType: 'number',
294
- },
295
- multiplier: {
296
- value: cdktf.numberToHclTerraform(struct!.multiplier),
297
- isBlock: false,
298
- type: 'simple',
299
- storageClassType: 'number',
300
- },
301
- randomization_factor: {
302
- value: cdktf.numberToHclTerraform(struct!.randomizationFactor),
303
- isBlock: false,
304
- type: 'simple',
305
- storageClassType: 'number',
306
- },
307
- }
308
-
309
- // remove undefined attributes
310
- return Object.fromEntries(
311
- Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
312
- )
313
- }
314
-
315
- export class ResourceRetryOutputReference extends cdktf.ComplexObject {
316
- private isEmptyObject = false
317
- private resolvableValue?: cdktf.IResolvable
318
-
319
- /**
320
- * @param terraformResource The parent resource
321
- * @param terraformAttribute The attribute on the parent resource this class is referencing
322
- */
323
- public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
324
- super(terraformResource, terraformAttribute, false)
325
- }
326
-
327
- public get internalValue(): ResourceRetry | cdktf.IResolvable | undefined {
328
- if (this.resolvableValue) {
329
- return this.resolvableValue
330
- }
331
- let hasAnyValues = this.isEmptyObject
332
- const internalValueResult: any = {}
333
- if (this._errorMessageRegex !== undefined) {
334
- hasAnyValues = true
335
- internalValueResult.errorMessageRegex = this._errorMessageRegex
336
- }
337
- if (this._intervalSeconds !== undefined) {
338
- hasAnyValues = true
339
- internalValueResult.intervalSeconds = this._intervalSeconds
340
- }
341
- if (this._maxIntervalSeconds !== undefined) {
342
- hasAnyValues = true
343
- internalValueResult.maxIntervalSeconds = this._maxIntervalSeconds
344
- }
345
- if (this._multiplier !== undefined) {
346
- hasAnyValues = true
347
- internalValueResult.multiplier = this._multiplier
348
- }
349
- if (this._randomizationFactor !== undefined) {
350
- hasAnyValues = true
351
- internalValueResult.randomizationFactor = this._randomizationFactor
352
- }
353
- return hasAnyValues ? internalValueResult : undefined
354
- }
355
-
356
- public set internalValue(value: ResourceRetry | cdktf.IResolvable | undefined) {
357
- if (value === undefined) {
358
- this.isEmptyObject = false
359
- this.resolvableValue = undefined
360
- this._errorMessageRegex = undefined
361
- this._intervalSeconds = undefined
362
- this._maxIntervalSeconds = undefined
363
- this._multiplier = undefined
364
- this._randomizationFactor = undefined
365
- } else if (cdktf.Tokenization.isResolvable(value)) {
366
- this.isEmptyObject = false
367
- this.resolvableValue = value
368
- } else {
369
- this.isEmptyObject = Object.keys(value).length === 0
370
- this.resolvableValue = undefined
371
- this._errorMessageRegex = value.errorMessageRegex
372
- this._intervalSeconds = value.intervalSeconds
373
- this._maxIntervalSeconds = value.maxIntervalSeconds
374
- this._multiplier = value.multiplier
375
- this._randomizationFactor = value.randomizationFactor
376
- }
377
- }
378
-
379
- // error_message_regex - computed: false, optional: false, required: true
380
- private _errorMessageRegex?: string[]
381
- public get errorMessageRegex() {
382
- return this.getListAttribute('error_message_regex')
383
- }
384
- public set errorMessageRegex(value: string[]) {
385
- this._errorMessageRegex = value
386
- }
387
- // Temporarily expose input value. Use with caution.
388
- public get errorMessageRegexInput() {
389
- return this._errorMessageRegex
390
- }
391
-
392
- // interval_seconds - computed: true, optional: true, required: false
393
- private _intervalSeconds?: number
394
- public get intervalSeconds() {
395
- return this.getNumberAttribute('interval_seconds')
396
- }
397
- public set intervalSeconds(value: number) {
398
- this._intervalSeconds = value
399
- }
400
- public resetIntervalSeconds() {
401
- this._intervalSeconds = undefined
402
- }
403
- // Temporarily expose input value. Use with caution.
404
- public get intervalSecondsInput() {
405
- return this._intervalSeconds
406
- }
407
-
408
- // max_interval_seconds - computed: true, optional: true, required: false
409
- private _maxIntervalSeconds?: number
410
- public get maxIntervalSeconds() {
411
- return this.getNumberAttribute('max_interval_seconds')
412
- }
413
- public set maxIntervalSeconds(value: number) {
414
- this._maxIntervalSeconds = value
415
- }
416
- public resetMaxIntervalSeconds() {
417
- this._maxIntervalSeconds = undefined
418
- }
419
- // Temporarily expose input value. Use with caution.
420
- public get maxIntervalSecondsInput() {
421
- return this._maxIntervalSeconds
422
- }
423
-
424
- // multiplier - computed: true, optional: true, required: false
425
- private _multiplier?: number
426
- public get multiplier() {
427
- return this.getNumberAttribute('multiplier')
428
- }
429
- public set multiplier(value: number) {
430
- this._multiplier = value
431
- }
432
- public resetMultiplier() {
433
- this._multiplier = undefined
434
- }
435
- // Temporarily expose input value. Use with caution.
436
- public get multiplierInput() {
437
- return this._multiplier
438
- }
439
-
440
- // randomization_factor - computed: true, optional: true, required: false
441
- private _randomizationFactor?: number
442
- public get randomizationFactor() {
443
- return this.getNumberAttribute('randomization_factor')
444
- }
445
- public set randomizationFactor(value: number) {
446
- this._randomizationFactor = value
447
- }
448
- public resetRandomizationFactor() {
449
- this._randomizationFactor = undefined
450
- }
451
- // Temporarily expose input value. Use with caution.
452
- public get randomizationFactorInput() {
453
- return this._randomizationFactor
454
- }
455
- }
456
- export interface ResourceIdentity {
457
- /**
458
- * A list of User Managed Identity ID's which should be assigned to the azure resource.
459
- *
460
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#identity_ids Resource#identity_ids}
461
- */
462
- readonly identityIds?: string[]
463
- /**
464
- * The Type of Identity which should be used for this azure resource. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned,UserAssigned`
465
- *
466
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#type Resource#type}
467
- */
468
- readonly type: string
469
- }
470
-
471
- export function resourceIdentityToTerraform(struct?: ResourceIdentity | cdktf.IResolvable): any {
472
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
473
- return struct
474
- }
475
- if (cdktf.isComplexElement(struct)) {
476
- throw new Error(
477
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
478
- )
479
- }
480
- return {
481
- identity_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.identityIds),
482
- type: cdktf.stringToTerraform(struct!.type),
483
- }
484
- }
485
-
486
- export function resourceIdentityToHclTerraform(struct?: ResourceIdentity | cdktf.IResolvable): any {
487
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
488
- return struct
489
- }
490
- if (cdktf.isComplexElement(struct)) {
491
- throw new Error(
492
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
493
- )
494
- }
495
- const attrs = {
496
- identity_ids: {
497
- value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct!.identityIds),
498
- isBlock: false,
499
- type: 'list',
500
- storageClassType: 'stringList',
501
- },
502
- type: {
503
- value: cdktf.stringToHclTerraform(struct!.type),
504
- isBlock: false,
505
- type: 'simple',
506
- storageClassType: 'string',
507
- },
508
- }
509
-
510
- // remove undefined attributes
511
- return Object.fromEntries(
512
- Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
513
- )
514
- }
515
-
516
- export class ResourceIdentityOutputReference extends cdktf.ComplexObject {
517
- private isEmptyObject = false
518
- private resolvableValue?: cdktf.IResolvable
519
-
520
- /**
521
- * @param terraformResource The parent resource
522
- * @param terraformAttribute The attribute on the parent resource this class is referencing
523
- * @param complexObjectIndex the index of this item in the list
524
- * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
525
- */
526
- public constructor(
527
- terraformResource: cdktf.IInterpolatingParent,
528
- terraformAttribute: string,
529
- complexObjectIndex: number,
530
- complexObjectIsFromSet: boolean
531
- ) {
532
- super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex)
533
- }
534
-
535
- public get internalValue(): ResourceIdentity | cdktf.IResolvable | undefined {
536
- if (this.resolvableValue) {
537
- return this.resolvableValue
538
- }
539
- let hasAnyValues = this.isEmptyObject
540
- const internalValueResult: any = {}
541
- if (this._identityIds !== undefined) {
542
- hasAnyValues = true
543
- internalValueResult.identityIds = this._identityIds
544
- }
545
- if (this._type !== undefined) {
546
- hasAnyValues = true
547
- internalValueResult.type = this._type
548
- }
549
- return hasAnyValues ? internalValueResult : undefined
550
- }
551
-
552
- public set internalValue(value: ResourceIdentity | cdktf.IResolvable | undefined) {
553
- if (value === undefined) {
554
- this.isEmptyObject = false
555
- this.resolvableValue = undefined
556
- this._identityIds = undefined
557
- this._type = undefined
558
- } else if (cdktf.Tokenization.isResolvable(value)) {
559
- this.isEmptyObject = false
560
- this.resolvableValue = value
561
- } else {
562
- this.isEmptyObject = Object.keys(value).length === 0
563
- this.resolvableValue = undefined
564
- this._identityIds = value.identityIds
565
- this._type = value.type
566
- }
567
- }
568
-
569
- // identity_ids - computed: false, optional: true, required: false
570
- private _identityIds?: string[]
571
- public get identityIds() {
572
- return this.getListAttribute('identity_ids')
573
- }
574
- public set identityIds(value: string[]) {
575
- this._identityIds = value
576
- }
577
- public resetIdentityIds() {
578
- this._identityIds = undefined
579
- }
580
- // Temporarily expose input value. Use with caution.
581
- public get identityIdsInput() {
582
- return this._identityIds
583
- }
584
-
585
- // principal_id - computed: true, optional: false, required: false
586
- public get principalId() {
587
- return this.getStringAttribute('principal_id')
588
- }
589
-
590
- // tenant_id - computed: true, optional: false, required: false
591
- public get tenantId() {
592
- return this.getStringAttribute('tenant_id')
593
- }
594
-
595
- // type - computed: false, optional: false, required: true
596
- private _type?: string
597
- public get type() {
598
- return this.getStringAttribute('type')
599
- }
600
- public set type(value: string) {
601
- this._type = value
602
- }
603
- // Temporarily expose input value. Use with caution.
604
- public get typeInput() {
605
- return this._type
606
- }
607
- }
608
-
609
- export class ResourceIdentityList extends cdktf.ComplexList {
610
- public internalValue?: ResourceIdentity[] | cdktf.IResolvable
611
-
612
- /**
613
- * @param terraformResource The parent resource
614
- * @param terraformAttribute The attribute on the parent resource this class is referencing
615
- * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
616
- */
617
- constructor(
618
- protected terraformResource: cdktf.IInterpolatingParent,
619
- protected terraformAttribute: string,
620
- protected wrapsSet: boolean
621
- ) {
622
- super(terraformResource, terraformAttribute, wrapsSet)
623
- }
624
-
625
- /**
626
- * @param index the index of the item to return
627
- */
628
- public get(index: number): ResourceIdentityOutputReference {
629
- return new ResourceIdentityOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet)
630
- }
631
- }
632
- export interface ResourceTimeouts {
633
- /**
634
- * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
635
- *
636
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#create Resource#create}
637
- */
638
- readonly create?: string
639
- /**
640
- * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
641
- *
642
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#delete Resource#delete}
643
- */
644
- readonly delete?: string
645
- /**
646
- * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
647
- *
648
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#read Resource#read}
649
- */
650
- readonly read?: string
651
- /**
652
- * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
653
- *
654
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#update Resource#update}
655
- */
656
- readonly update?: string
657
- }
658
-
659
- export function resourceTimeoutsToTerraform(struct?: ResourceTimeouts | cdktf.IResolvable): any {
660
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
661
- return struct
662
- }
663
- if (cdktf.isComplexElement(struct)) {
664
- throw new Error(
665
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
666
- )
667
- }
668
- return {
669
- create: cdktf.stringToTerraform(struct!.create),
670
- delete: cdktf.stringToTerraform(struct!.delete),
671
- read: cdktf.stringToTerraform(struct!.read),
672
- update: cdktf.stringToTerraform(struct!.update),
673
- }
674
- }
675
-
676
- export function resourceTimeoutsToHclTerraform(struct?: ResourceTimeouts | cdktf.IResolvable): any {
677
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
678
- return struct
679
- }
680
- if (cdktf.isComplexElement(struct)) {
681
- throw new Error(
682
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
683
- )
684
- }
685
- const attrs = {
686
- create: {
687
- value: cdktf.stringToHclTerraform(struct!.create),
688
- isBlock: false,
689
- type: 'simple',
690
- storageClassType: 'string',
691
- },
692
- delete: {
693
- value: cdktf.stringToHclTerraform(struct!.delete),
694
- isBlock: false,
695
- type: 'simple',
696
- storageClassType: 'string',
697
- },
698
- read: {
699
- value: cdktf.stringToHclTerraform(struct!.read),
700
- isBlock: false,
701
- type: 'simple',
702
- storageClassType: 'string',
703
- },
704
- update: {
705
- value: cdktf.stringToHclTerraform(struct!.update),
706
- isBlock: false,
707
- type: 'simple',
708
- storageClassType: 'string',
709
- },
710
- }
711
-
712
- // remove undefined attributes
713
- return Object.fromEntries(
714
- Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
715
- )
716
- }
717
-
718
- export class ResourceTimeoutsOutputReference extends cdktf.ComplexObject {
719
- private isEmptyObject = false
720
- private resolvableValue?: cdktf.IResolvable
721
-
722
- /**
723
- * @param terraformResource The parent resource
724
- * @param terraformAttribute The attribute on the parent resource this class is referencing
725
- */
726
- public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
727
- super(terraformResource, terraformAttribute, false)
728
- }
729
-
730
- public get internalValue(): ResourceTimeouts | cdktf.IResolvable | undefined {
731
- if (this.resolvableValue) {
732
- return this.resolvableValue
733
- }
734
- let hasAnyValues = this.isEmptyObject
735
- const internalValueResult: any = {}
736
- if (this._create !== undefined) {
737
- hasAnyValues = true
738
- internalValueResult.create = this._create
739
- }
740
- if (this._delete !== undefined) {
741
- hasAnyValues = true
742
- internalValueResult.delete = this._delete
743
- }
744
- if (this._read !== undefined) {
745
- hasAnyValues = true
746
- internalValueResult.read = this._read
747
- }
748
- if (this._update !== undefined) {
749
- hasAnyValues = true
750
- internalValueResult.update = this._update
751
- }
752
- return hasAnyValues ? internalValueResult : undefined
753
- }
754
-
755
- public set internalValue(value: ResourceTimeouts | cdktf.IResolvable | undefined) {
756
- if (value === undefined) {
757
- this.isEmptyObject = false
758
- this.resolvableValue = undefined
759
- this._create = undefined
760
- this._delete = undefined
761
- this._read = undefined
762
- this._update = undefined
763
- } else if (cdktf.Tokenization.isResolvable(value)) {
764
- this.isEmptyObject = false
765
- this.resolvableValue = value
766
- } else {
767
- this.isEmptyObject = Object.keys(value).length === 0
768
- this.resolvableValue = undefined
769
- this._create = value.create
770
- this._delete = value.delete
771
- this._read = value.read
772
- this._update = value.update
773
- }
774
- }
775
-
776
- // create - computed: false, optional: true, required: false
777
- private _create?: string
778
- public get create() {
779
- return this.getStringAttribute('create')
780
- }
781
- public set create(value: string) {
782
- this._create = value
783
- }
784
- public resetCreate() {
785
- this._create = undefined
786
- }
787
- // Temporarily expose input value. Use with caution.
788
- public get createInput() {
789
- return this._create
790
- }
791
-
792
- // delete - computed: false, optional: true, required: false
793
- private _delete?: string
794
- public get delete() {
795
- return this.getStringAttribute('delete')
796
- }
797
- public set delete(value: string) {
798
- this._delete = value
799
- }
800
- public resetDelete() {
801
- this._delete = undefined
802
- }
803
- // Temporarily expose input value. Use with caution.
804
- public get deleteInput() {
805
- return this._delete
806
- }
807
-
808
- // read - computed: false, optional: true, required: false
809
- private _read?: string
810
- public get read() {
811
- return this.getStringAttribute('read')
812
- }
813
- public set read(value: string) {
814
- this._read = value
815
- }
816
- public resetRead() {
817
- this._read = undefined
818
- }
819
- // Temporarily expose input value. Use with caution.
820
- public get readInput() {
821
- return this._read
822
- }
823
-
824
- // update - computed: false, optional: true, required: false
825
- private _update?: string
826
- public get update() {
827
- return this.getStringAttribute('update')
828
- }
829
- public set update(value: string) {
830
- this._update = value
831
- }
832
- public resetUpdate() {
833
- this._update = undefined
834
- }
835
- // Temporarily expose input value. Use with caution.
836
- public get updateInput() {
837
- return this._update
838
- }
839
- }
840
-
841
- /**
842
- * Represents a {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource azapi_resource}
843
- */
844
- export class Resource extends cdktf.TerraformResource {
845
- // =================
846
- // STATIC PROPERTIES
847
- // =================
848
- public static readonly tfResourceType = 'azapi_resource'
849
-
850
- // ==============
851
- // STATIC Methods
852
- // ==============
853
- /**
854
- * Generates CDKTF code for importing a Resource resource upon running "cdktf plan <stack-name>"
855
- * @param scope The scope in which to define this construct
856
- * @param importToId The construct id used in the generated config for the Resource to import
857
- * @param importFromId The id of the existing Resource that should be imported. Refer to the {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource#import import section} in the documentation of this resource for the id to use
858
- * @param provider? Optional instance of the provider where the Resource to import is found
859
- */
860
- public static generateConfigForImport(
861
- scope: Construct,
862
- importToId: string,
863
- importFromId: string,
864
- provider?: cdktf.TerraformProvider
865
- ) {
866
- return new cdktf.ImportableResource(scope, importToId, {
867
- terraformResourceType: 'azapi_resource',
868
- importId: importFromId,
869
- provider,
870
- })
871
- }
872
-
873
- // ===========
874
- // INITIALIZER
875
- // ===========
876
-
877
- /**
878
- * Create a new {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/resource azapi_resource} Resource
879
- *
880
- * @param scope The scope in which to define this construct
881
- * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
882
- * @param options ResourceConfig
883
- */
884
- public constructor(scope: Construct, id: string, config: ResourceConfig) {
885
- super(scope, id, {
886
- terraformResourceType: 'azapi_resource',
887
- terraformGeneratorMetadata: {
888
- providerName: 'azapi',
889
- providerVersion: '2.2.0',
890
- providerVersionConstraint: '~> 2.2',
891
- },
892
- provider: config.provider,
893
- dependsOn: config.dependsOn,
894
- count: config.count,
895
- lifecycle: config.lifecycle,
896
- provisioners: config.provisioners,
897
- connection: config.connection,
898
- forEach: config.forEach,
899
- })
900
- this._body = config.body
901
- this._createHeaders = config.createHeaders
902
- this._createQueryParameters = config.createQueryParameters
903
- this._deleteHeaders = config.deleteHeaders
904
- this._deleteQueryParameters = config.deleteQueryParameters
905
- this._ignoreCasing = config.ignoreCasing
906
- this._ignoreMissingProperty = config.ignoreMissingProperty
907
- this._location = config.location
908
- this._locks = config.locks
909
- this._name = config.name
910
- this._parentId = config.parentId
911
- this._readHeaders = config.readHeaders
912
- this._readQueryParameters = config.readQueryParameters
913
- this._replaceTriggersExternalValues = config.replaceTriggersExternalValues
914
- this._replaceTriggersRefs = config.replaceTriggersRefs
915
- this._responseExportValues = config.responseExportValues
916
- this._retry.internalValue = config.retry
917
- this._schemaValidationEnabled = config.schemaValidationEnabled
918
- this._tags = config.tags
919
- this._type = config.type
920
- this._updateHeaders = config.updateHeaders
921
- this._updateQueryParameters = config.updateQueryParameters
922
- this._identity.internalValue = config.identity
923
- this._timeouts.internalValue = config.timeouts
924
- }
925
-
926
- // ==========
927
- // ATTRIBUTES
928
- // ==========
929
-
930
- // body - computed: true, optional: true, required: false
931
- private _body?: { [key: string]: any }
932
- public get body() {
933
- return this.getAnyMapAttribute('body')
934
- }
935
- public set body(value: { [key: string]: any }) {
936
- this._body = value
937
- }
938
- public resetBody() {
939
- this._body = undefined
940
- }
941
- // Temporarily expose input value. Use with caution.
942
- public get bodyInput() {
943
- return this._body
944
- }
945
-
946
- // create_headers - computed: false, optional: true, required: false
947
- private _createHeaders?: { [key: string]: string }
948
- public get createHeaders() {
949
- return this.getStringMapAttribute('create_headers')
950
- }
951
- public set createHeaders(value: { [key: string]: string }) {
952
- this._createHeaders = value
953
- }
954
- public resetCreateHeaders() {
955
- this._createHeaders = undefined
956
- }
957
- // Temporarily expose input value. Use with caution.
958
- public get createHeadersInput() {
959
- return this._createHeaders
960
- }
961
-
962
- // create_query_parameters - computed: false, optional: true, required: false
963
- private _createQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
964
- public get createQueryParameters() {
965
- return this.interpolationForAttribute('create_query_parameters')
966
- }
967
- public set createQueryParameters(value: { [key: string]: string[] } | cdktf.IResolvable) {
968
- this._createQueryParameters = value
969
- }
970
- public resetCreateQueryParameters() {
971
- this._createQueryParameters = undefined
972
- }
973
- // Temporarily expose input value. Use with caution.
974
- public get createQueryParametersInput() {
975
- return this._createQueryParameters
976
- }
977
-
978
- // delete_headers - computed: false, optional: true, required: false
979
- private _deleteHeaders?: { [key: string]: string }
980
- public get deleteHeaders() {
981
- return this.getStringMapAttribute('delete_headers')
982
- }
983
- public set deleteHeaders(value: { [key: string]: string }) {
984
- this._deleteHeaders = value
985
- }
986
- public resetDeleteHeaders() {
987
- this._deleteHeaders = undefined
988
- }
989
- // Temporarily expose input value. Use with caution.
990
- public get deleteHeadersInput() {
991
- return this._deleteHeaders
992
- }
993
-
994
- // delete_query_parameters - computed: false, optional: true, required: false
995
- private _deleteQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
996
- public get deleteQueryParameters() {
997
- return this.interpolationForAttribute('delete_query_parameters')
998
- }
999
- public set deleteQueryParameters(value: { [key: string]: string[] } | cdktf.IResolvable) {
1000
- this._deleteQueryParameters = value
1001
- }
1002
- public resetDeleteQueryParameters() {
1003
- this._deleteQueryParameters = undefined
1004
- }
1005
- // Temporarily expose input value. Use with caution.
1006
- public get deleteQueryParametersInput() {
1007
- return this._deleteQueryParameters
1008
- }
1009
-
1010
- // id - computed: true, optional: false, required: false
1011
- public get id() {
1012
- return this.getStringAttribute('id')
1013
- }
1014
-
1015
- // ignore_casing - computed: true, optional: true, required: false
1016
- private _ignoreCasing?: boolean | cdktf.IResolvable
1017
- public get ignoreCasing() {
1018
- return this.getBooleanAttribute('ignore_casing')
1019
- }
1020
- public set ignoreCasing(value: boolean | cdktf.IResolvable) {
1021
- this._ignoreCasing = value
1022
- }
1023
- public resetIgnoreCasing() {
1024
- this._ignoreCasing = undefined
1025
- }
1026
- // Temporarily expose input value. Use with caution.
1027
- public get ignoreCasingInput() {
1028
- return this._ignoreCasing
1029
- }
1030
-
1031
- // ignore_missing_property - computed: true, optional: true, required: false
1032
- private _ignoreMissingProperty?: boolean | cdktf.IResolvable
1033
- public get ignoreMissingProperty() {
1034
- return this.getBooleanAttribute('ignore_missing_property')
1035
- }
1036
- public set ignoreMissingProperty(value: boolean | cdktf.IResolvable) {
1037
- this._ignoreMissingProperty = value
1038
- }
1039
- public resetIgnoreMissingProperty() {
1040
- this._ignoreMissingProperty = undefined
1041
- }
1042
- // Temporarily expose input value. Use with caution.
1043
- public get ignoreMissingPropertyInput() {
1044
- return this._ignoreMissingProperty
1045
- }
1046
-
1047
- // location - computed: true, optional: true, required: false
1048
- private _location?: string
1049
- public get location() {
1050
- return this.getStringAttribute('location')
1051
- }
1052
- public set location(value: string) {
1053
- this._location = value
1054
- }
1055
- public resetLocation() {
1056
- this._location = undefined
1057
- }
1058
- // Temporarily expose input value. Use with caution.
1059
- public get locationInput() {
1060
- return this._location
1061
- }
1062
-
1063
- // locks - computed: false, optional: true, required: false
1064
- private _locks?: string[]
1065
- public get locks() {
1066
- return this.getListAttribute('locks')
1067
- }
1068
- public set locks(value: string[]) {
1069
- this._locks = value
1070
- }
1071
- public resetLocks() {
1072
- this._locks = undefined
1073
- }
1074
- // Temporarily expose input value. Use with caution.
1075
- public get locksInput() {
1076
- return this._locks
1077
- }
1078
-
1079
- // name - computed: true, optional: true, required: false
1080
- private _name?: string
1081
- public get name() {
1082
- return this.getStringAttribute('name')
1083
- }
1084
- public set name(value: string) {
1085
- this._name = value
1086
- }
1087
- public resetName() {
1088
- this._name = undefined
1089
- }
1090
- // Temporarily expose input value. Use with caution.
1091
- public get nameInput() {
1092
- return this._name
1093
- }
1094
-
1095
- // output - computed: true, optional: false, required: false
1096
- private _output = new cdktf.AnyMap(this, 'output')
1097
- public get output() {
1098
- return this._output
1099
- }
1100
-
1101
- // parent_id - computed: true, optional: true, required: false
1102
- private _parentId?: string
1103
- public get parentId() {
1104
- return this.getStringAttribute('parent_id')
1105
- }
1106
- public set parentId(value: string) {
1107
- this._parentId = value
1108
- }
1109
- public resetParentId() {
1110
- this._parentId = undefined
1111
- }
1112
- // Temporarily expose input value. Use with caution.
1113
- public get parentIdInput() {
1114
- return this._parentId
1115
- }
1116
-
1117
- // read_headers - computed: false, optional: true, required: false
1118
- private _readHeaders?: { [key: string]: string }
1119
- public get readHeaders() {
1120
- return this.getStringMapAttribute('read_headers')
1121
- }
1122
- public set readHeaders(value: { [key: string]: string }) {
1123
- this._readHeaders = value
1124
- }
1125
- public resetReadHeaders() {
1126
- this._readHeaders = undefined
1127
- }
1128
- // Temporarily expose input value. Use with caution.
1129
- public get readHeadersInput() {
1130
- return this._readHeaders
1131
- }
1132
-
1133
- // read_query_parameters - computed: false, optional: true, required: false
1134
- private _readQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
1135
- public get readQueryParameters() {
1136
- return this.interpolationForAttribute('read_query_parameters')
1137
- }
1138
- public set readQueryParameters(value: { [key: string]: string[] } | cdktf.IResolvable) {
1139
- this._readQueryParameters = value
1140
- }
1141
- public resetReadQueryParameters() {
1142
- this._readQueryParameters = undefined
1143
- }
1144
- // Temporarily expose input value. Use with caution.
1145
- public get readQueryParametersInput() {
1146
- return this._readQueryParameters
1147
- }
1148
-
1149
- // replace_triggers_external_values - computed: false, optional: true, required: false
1150
- private _replaceTriggersExternalValues?: { [key: string]: any }
1151
- public get replaceTriggersExternalValues() {
1152
- return this.getAnyMapAttribute('replace_triggers_external_values')
1153
- }
1154
- public set replaceTriggersExternalValues(value: { [key: string]: any }) {
1155
- this._replaceTriggersExternalValues = value
1156
- }
1157
- public resetReplaceTriggersExternalValues() {
1158
- this._replaceTriggersExternalValues = undefined
1159
- }
1160
- // Temporarily expose input value. Use with caution.
1161
- public get replaceTriggersExternalValuesInput() {
1162
- return this._replaceTriggersExternalValues
1163
- }
1164
-
1165
- // replace_triggers_refs - computed: false, optional: true, required: false
1166
- private _replaceTriggersRefs?: string[]
1167
- public get replaceTriggersRefs() {
1168
- return this.getListAttribute('replace_triggers_refs')
1169
- }
1170
- public set replaceTriggersRefs(value: string[]) {
1171
- this._replaceTriggersRefs = value
1172
- }
1173
- public resetReplaceTriggersRefs() {
1174
- this._replaceTriggersRefs = undefined
1175
- }
1176
- // Temporarily expose input value. Use with caution.
1177
- public get replaceTriggersRefsInput() {
1178
- return this._replaceTriggersRefs
1179
- }
1180
-
1181
- // response_export_values - computed: false, optional: true, required: false
1182
- private _responseExportValues?: { [key: string]: any }
1183
- public get responseExportValues() {
1184
- return this.getAnyMapAttribute('response_export_values')
1185
- }
1186
- public set responseExportValues(value: { [key: string]: any }) {
1187
- this._responseExportValues = value
1188
- }
1189
- public resetResponseExportValues() {
1190
- this._responseExportValues = undefined
1191
- }
1192
- // Temporarily expose input value. Use with caution.
1193
- public get responseExportValuesInput() {
1194
- return this._responseExportValues
1195
- }
1196
-
1197
- // retry - computed: false, optional: true, required: false
1198
- private _retry = new ResourceRetryOutputReference(this, 'retry')
1199
- public get retry() {
1200
- return this._retry
1201
- }
1202
- public putRetry(value: ResourceRetry) {
1203
- this._retry.internalValue = value
1204
- }
1205
- public resetRetry() {
1206
- this._retry.internalValue = undefined
1207
- }
1208
- // Temporarily expose input value. Use with caution.
1209
- public get retryInput() {
1210
- return this._retry.internalValue
1211
- }
1212
-
1213
- // schema_validation_enabled - computed: true, optional: true, required: false
1214
- private _schemaValidationEnabled?: boolean | cdktf.IResolvable
1215
- public get schemaValidationEnabled() {
1216
- return this.getBooleanAttribute('schema_validation_enabled')
1217
- }
1218
- public set schemaValidationEnabled(value: boolean | cdktf.IResolvable) {
1219
- this._schemaValidationEnabled = value
1220
- }
1221
- public resetSchemaValidationEnabled() {
1222
- this._schemaValidationEnabled = undefined
1223
- }
1224
- // Temporarily expose input value. Use with caution.
1225
- public get schemaValidationEnabledInput() {
1226
- return this._schemaValidationEnabled
1227
- }
1228
-
1229
- // tags - computed: true, optional: true, required: false
1230
- private _tags?: { [key: string]: string }
1231
- public get tags() {
1232
- return this.getStringMapAttribute('tags')
1233
- }
1234
- public set tags(value: { [key: string]: string }) {
1235
- this._tags = value
1236
- }
1237
- public resetTags() {
1238
- this._tags = undefined
1239
- }
1240
- // Temporarily expose input value. Use with caution.
1241
- public get tagsInput() {
1242
- return this._tags
1243
- }
1244
-
1245
- // type - computed: false, optional: false, required: true
1246
- private _type?: string
1247
- public get type() {
1248
- return this.getStringAttribute('type')
1249
- }
1250
- public set type(value: string) {
1251
- this._type = value
1252
- }
1253
- // Temporarily expose input value. Use with caution.
1254
- public get typeInput() {
1255
- return this._type
1256
- }
1257
-
1258
- // update_headers - computed: false, optional: true, required: false
1259
- private _updateHeaders?: { [key: string]: string }
1260
- public get updateHeaders() {
1261
- return this.getStringMapAttribute('update_headers')
1262
- }
1263
- public set updateHeaders(value: { [key: string]: string }) {
1264
- this._updateHeaders = value
1265
- }
1266
- public resetUpdateHeaders() {
1267
- this._updateHeaders = undefined
1268
- }
1269
- // Temporarily expose input value. Use with caution.
1270
- public get updateHeadersInput() {
1271
- return this._updateHeaders
1272
- }
1273
-
1274
- // update_query_parameters - computed: false, optional: true, required: false
1275
- private _updateQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
1276
- public get updateQueryParameters() {
1277
- return this.interpolationForAttribute('update_query_parameters')
1278
- }
1279
- public set updateQueryParameters(value: { [key: string]: string[] } | cdktf.IResolvable) {
1280
- this._updateQueryParameters = value
1281
- }
1282
- public resetUpdateQueryParameters() {
1283
- this._updateQueryParameters = undefined
1284
- }
1285
- // Temporarily expose input value. Use with caution.
1286
- public get updateQueryParametersInput() {
1287
- return this._updateQueryParameters
1288
- }
1289
-
1290
- // identity - computed: false, optional: true, required: false
1291
- private _identity = new ResourceIdentityList(this, 'identity', false)
1292
- public get identity() {
1293
- return this._identity
1294
- }
1295
- public putIdentity(value: ResourceIdentity[] | cdktf.IResolvable) {
1296
- this._identity.internalValue = value
1297
- }
1298
- public resetIdentity() {
1299
- this._identity.internalValue = undefined
1300
- }
1301
- // Temporarily expose input value. Use with caution.
1302
- public get identityInput() {
1303
- return this._identity.internalValue
1304
- }
1305
-
1306
- // timeouts - computed: false, optional: true, required: false
1307
- private _timeouts = new ResourceTimeoutsOutputReference(this, 'timeouts')
1308
- public get timeouts() {
1309
- return this._timeouts
1310
- }
1311
- public putTimeouts(value: ResourceTimeouts) {
1312
- this._timeouts.internalValue = value
1313
- }
1314
- public resetTimeouts() {
1315
- this._timeouts.internalValue = undefined
1316
- }
1317
- // Temporarily expose input value. Use with caution.
1318
- public get timeoutsInput() {
1319
- return this._timeouts.internalValue
1320
- }
1321
-
1322
- // =========
1323
- // SYNTHESIS
1324
- // =========
1325
-
1326
- protected synthesizeAttributes(): { [name: string]: any } {
1327
- return {
1328
- body: cdktf.hashMapper(cdktf.anyToTerraform)(this._body),
1329
- create_headers: cdktf.hashMapper(cdktf.stringToTerraform)(this._createHeaders),
1330
- create_query_parameters: cdktf.hashMapper(cdktf.listMapper(cdktf.stringToTerraform, false))(
1331
- this._createQueryParameters
1332
- ),
1333
- delete_headers: cdktf.hashMapper(cdktf.stringToTerraform)(this._deleteHeaders),
1334
- delete_query_parameters: cdktf.hashMapper(cdktf.listMapper(cdktf.stringToTerraform, false))(
1335
- this._deleteQueryParameters
1336
- ),
1337
- ignore_casing: cdktf.booleanToTerraform(this._ignoreCasing),
1338
- ignore_missing_property: cdktf.booleanToTerraform(this._ignoreMissingProperty),
1339
- location: cdktf.stringToTerraform(this._location),
1340
- locks: cdktf.listMapper(cdktf.stringToTerraform, false)(this._locks),
1341
- name: cdktf.stringToTerraform(this._name),
1342
- parent_id: cdktf.stringToTerraform(this._parentId),
1343
- read_headers: cdktf.hashMapper(cdktf.stringToTerraform)(this._readHeaders),
1344
- read_query_parameters: cdktf.hashMapper(cdktf.listMapper(cdktf.stringToTerraform, false))(
1345
- this._readQueryParameters
1346
- ),
1347
- replace_triggers_external_values: cdktf.hashMapper(cdktf.anyToTerraform)(this._replaceTriggersExternalValues),
1348
- replace_triggers_refs: cdktf.listMapper(cdktf.stringToTerraform, false)(this._replaceTriggersRefs),
1349
- response_export_values: cdktf.hashMapper(cdktf.anyToTerraform)(this._responseExportValues),
1350
- retry: resourceRetryToTerraform(this._retry.internalValue),
1351
- schema_validation_enabled: cdktf.booleanToTerraform(this._schemaValidationEnabled),
1352
- tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
1353
- type: cdktf.stringToTerraform(this._type),
1354
- update_headers: cdktf.hashMapper(cdktf.stringToTerraform)(this._updateHeaders),
1355
- update_query_parameters: cdktf.hashMapper(cdktf.listMapper(cdktf.stringToTerraform, false))(
1356
- this._updateQueryParameters
1357
- ),
1358
- identity: cdktf.listMapper(resourceIdentityToTerraform, true)(this._identity.internalValue),
1359
- timeouts: resourceTimeoutsToTerraform(this._timeouts.internalValue),
1360
- }
1361
- }
1362
-
1363
- protected synthesizeHclAttributes(): { [name: string]: any } {
1364
- const attrs = {
1365
- body: {
1366
- value: cdktf.hashMapperHcl(cdktf.anyToHclTerraform)(this._body),
1367
- isBlock: false,
1368
- type: 'map',
1369
- storageClassType: 'anyMap',
1370
- },
1371
- create_headers: {
1372
- value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._createHeaders),
1373
- isBlock: false,
1374
- type: 'map',
1375
- storageClassType: 'stringMap',
1376
- },
1377
- create_query_parameters: {
1378
- value: cdktf.hashMapperHcl(cdktf.listMapperHcl(cdktf.stringToHclTerraform, false))(this._createQueryParameters),
1379
- isBlock: false,
1380
- type: 'map',
1381
- storageClassType: 'stringListMap',
1382
- },
1383
- delete_headers: {
1384
- value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._deleteHeaders),
1385
- isBlock: false,
1386
- type: 'map',
1387
- storageClassType: 'stringMap',
1388
- },
1389
- delete_query_parameters: {
1390
- value: cdktf.hashMapperHcl(cdktf.listMapperHcl(cdktf.stringToHclTerraform, false))(this._deleteQueryParameters),
1391
- isBlock: false,
1392
- type: 'map',
1393
- storageClassType: 'stringListMap',
1394
- },
1395
- ignore_casing: {
1396
- value: cdktf.booleanToHclTerraform(this._ignoreCasing),
1397
- isBlock: false,
1398
- type: 'simple',
1399
- storageClassType: 'boolean',
1400
- },
1401
- ignore_missing_property: {
1402
- value: cdktf.booleanToHclTerraform(this._ignoreMissingProperty),
1403
- isBlock: false,
1404
- type: 'simple',
1405
- storageClassType: 'boolean',
1406
- },
1407
- location: {
1408
- value: cdktf.stringToHclTerraform(this._location),
1409
- isBlock: false,
1410
- type: 'simple',
1411
- storageClassType: 'string',
1412
- },
1413
- locks: {
1414
- value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._locks),
1415
- isBlock: false,
1416
- type: 'list',
1417
- storageClassType: 'stringList',
1418
- },
1419
- name: {
1420
- value: cdktf.stringToHclTerraform(this._name),
1421
- isBlock: false,
1422
- type: 'simple',
1423
- storageClassType: 'string',
1424
- },
1425
- parent_id: {
1426
- value: cdktf.stringToHclTerraform(this._parentId),
1427
- isBlock: false,
1428
- type: 'simple',
1429
- storageClassType: 'string',
1430
- },
1431
- read_headers: {
1432
- value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._readHeaders),
1433
- isBlock: false,
1434
- type: 'map',
1435
- storageClassType: 'stringMap',
1436
- },
1437
- read_query_parameters: {
1438
- value: cdktf.hashMapperHcl(cdktf.listMapperHcl(cdktf.stringToHclTerraform, false))(this._readQueryParameters),
1439
- isBlock: false,
1440
- type: 'map',
1441
- storageClassType: 'stringListMap',
1442
- },
1443
- replace_triggers_external_values: {
1444
- value: cdktf.hashMapperHcl(cdktf.anyToHclTerraform)(this._replaceTriggersExternalValues),
1445
- isBlock: false,
1446
- type: 'map',
1447
- storageClassType: 'anyMap',
1448
- },
1449
- replace_triggers_refs: {
1450
- value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._replaceTriggersRefs),
1451
- isBlock: false,
1452
- type: 'list',
1453
- storageClassType: 'stringList',
1454
- },
1455
- response_export_values: {
1456
- value: cdktf.hashMapperHcl(cdktf.anyToHclTerraform)(this._responseExportValues),
1457
- isBlock: false,
1458
- type: 'map',
1459
- storageClassType: 'anyMap',
1460
- },
1461
- retry: {
1462
- value: resourceRetryToHclTerraform(this._retry.internalValue),
1463
- isBlock: true,
1464
- type: 'struct',
1465
- storageClassType: 'ResourceRetry',
1466
- },
1467
- schema_validation_enabled: {
1468
- value: cdktf.booleanToHclTerraform(this._schemaValidationEnabled),
1469
- isBlock: false,
1470
- type: 'simple',
1471
- storageClassType: 'boolean',
1472
- },
1473
- tags: {
1474
- value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags),
1475
- isBlock: false,
1476
- type: 'map',
1477
- storageClassType: 'stringMap',
1478
- },
1479
- type: {
1480
- value: cdktf.stringToHclTerraform(this._type),
1481
- isBlock: false,
1482
- type: 'simple',
1483
- storageClassType: 'string',
1484
- },
1485
- update_headers: {
1486
- value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._updateHeaders),
1487
- isBlock: false,
1488
- type: 'map',
1489
- storageClassType: 'stringMap',
1490
- },
1491
- update_query_parameters: {
1492
- value: cdktf.hashMapperHcl(cdktf.listMapperHcl(cdktf.stringToHclTerraform, false))(this._updateQueryParameters),
1493
- isBlock: false,
1494
- type: 'map',
1495
- storageClassType: 'stringListMap',
1496
- },
1497
- identity: {
1498
- value: cdktf.listMapperHcl(resourceIdentityToHclTerraform, true)(this._identity.internalValue),
1499
- isBlock: true,
1500
- type: 'list',
1501
- storageClassType: 'ResourceIdentityList',
1502
- },
1503
- timeouts: {
1504
- value: resourceTimeoutsToHclTerraform(this._timeouts.internalValue),
1505
- isBlock: true,
1506
- type: 'struct',
1507
- storageClassType: 'ResourceTimeouts',
1508
- },
1509
- }
1510
-
1511
- // remove undefined attributes
1512
- return Object.fromEntries(
1513
- Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
1514
- )
1515
- }
1516
- }