@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,779 +0,0 @@
1
- // https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action
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 DataAzapiResourceActionConfig extends cdktf.TerraformMetaArguments {
10
- /**
11
- * The name of the resource action. It's also possible to make HTTP requests towards the resource ID if leave this field empty.
12
- *
13
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#action DataAzapiResourceAction#action}
14
- */
15
- readonly action?: string
16
- /**
17
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#body DataAzapiResourceAction#body}
18
- */
19
- readonly body?: { [key: string]: any }
20
- /**
21
- * A map of headers to include in the request
22
- *
23
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#headers DataAzapiResourceAction#headers}
24
- */
25
- readonly headers?: { [key: string]: string }
26
- /**
27
- * The HTTP method to use when performing the action. Must be one of `POST`, `GET`. Defaults to `POST`.
28
- *
29
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#method DataAzapiResourceAction#method}
30
- */
31
- readonly method?: string
32
- /**
33
- * A map of query parameters to include in the request
34
- *
35
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#query_parameters DataAzapiResourceAction#query_parameters}
36
- */
37
- readonly queryParameters?: { [key: string]: string[] } | cdktf.IResolvable
38
- /**
39
- * The ID of the Azure resource to perform the action on.
40
- *
41
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#resource_id DataAzapiResourceAction#resource_id}
42
- */
43
- readonly resourceId?: string
44
- /**
45
- * The attribute can accept either a list or a map.
46
- *
47
- * - **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.
48
- *
49
- * ```text
50
- * {
51
- * properties = {
52
- * loginServer = "registry1.azurecr.io"
53
- * policies = {
54
- * quarantinePolicy = {
55
- * status = "disabled"
56
- * }
57
- * }
58
- * }
59
- * }
60
- * ```
61
- *
62
- * - **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.
63
- *
64
- * ```text
65
- * {
66
- * "login_server" = "registry1.azurecr.io"
67
- * "quarantine_status" = "disabled"
68
- * }
69
- * ```
70
- *
71
- * To learn more about JMESPath, visit [JMESPath](https://jmespath.org/).
72
- *
73
- *
74
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#response_export_values DataAzapiResourceAction#response_export_values}
75
- */
76
- readonly responseExportValues?: { [key: string]: any }
77
- /**
78
- * The retry block supports the following arguments:
79
- *
80
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#retry DataAzapiResourceAction#retry}
81
- */
82
- readonly retry?: DataAzapiResourceActionRetry
83
- /**
84
- * 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.
85
- *
86
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#type DataAzapiResourceAction#type}
87
- */
88
- readonly type: string
89
- /**
90
- * timeouts block
91
- *
92
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#timeouts DataAzapiResourceAction#timeouts}
93
- */
94
- readonly timeouts?: DataAzapiResourceActionTimeouts
95
- }
96
- export interface DataAzapiResourceActionRetry {
97
- /**
98
- * A list of regular expressions to match against error messages. If any of the regular expressions match, the error is considered retryable.
99
- *
100
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#error_message_regex DataAzapiResourceAction#error_message_regex}
101
- */
102
- readonly errorMessageRegex: string[]
103
- /**
104
- * The base number of seconds to wait between retries. Default is `10`.
105
- *
106
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#interval_seconds DataAzapiResourceAction#interval_seconds}
107
- */
108
- readonly intervalSeconds?: number
109
- /**
110
- * The maximum number of seconds to wait between retries. Default is `180`.
111
- *
112
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#max_interval_seconds DataAzapiResourceAction#max_interval_seconds}
113
- */
114
- readonly maxIntervalSeconds?: number
115
- /**
116
- * The multiplier to apply to the interval between retries. Default is `1.5`.
117
- *
118
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#multiplier DataAzapiResourceAction#multiplier}
119
- */
120
- readonly multiplier?: number
121
- /**
122
- * 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`.
123
- *
124
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#randomization_factor DataAzapiResourceAction#randomization_factor}
125
- */
126
- readonly randomizationFactor?: number
127
- }
128
-
129
- export function dataAzapiResourceActionRetryToTerraform(
130
- struct?: DataAzapiResourceActionRetry | cdktf.IResolvable
131
- ): any {
132
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
133
- return struct
134
- }
135
- if (cdktf.isComplexElement(struct)) {
136
- throw new Error(
137
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
138
- )
139
- }
140
- return {
141
- error_message_regex: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.errorMessageRegex),
142
- interval_seconds: cdktf.numberToTerraform(struct!.intervalSeconds),
143
- max_interval_seconds: cdktf.numberToTerraform(struct!.maxIntervalSeconds),
144
- multiplier: cdktf.numberToTerraform(struct!.multiplier),
145
- randomization_factor: cdktf.numberToTerraform(struct!.randomizationFactor),
146
- }
147
- }
148
-
149
- export function dataAzapiResourceActionRetryToHclTerraform(
150
- struct?: DataAzapiResourceActionRetry | cdktf.IResolvable
151
- ): any {
152
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
153
- return struct
154
- }
155
- if (cdktf.isComplexElement(struct)) {
156
- throw new Error(
157
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
158
- )
159
- }
160
- const attrs = {
161
- error_message_regex: {
162
- value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct!.errorMessageRegex),
163
- isBlock: false,
164
- type: 'list',
165
- storageClassType: 'stringList',
166
- },
167
- interval_seconds: {
168
- value: cdktf.numberToHclTerraform(struct!.intervalSeconds),
169
- isBlock: false,
170
- type: 'simple',
171
- storageClassType: 'number',
172
- },
173
- max_interval_seconds: {
174
- value: cdktf.numberToHclTerraform(struct!.maxIntervalSeconds),
175
- isBlock: false,
176
- type: 'simple',
177
- storageClassType: 'number',
178
- },
179
- multiplier: {
180
- value: cdktf.numberToHclTerraform(struct!.multiplier),
181
- isBlock: false,
182
- type: 'simple',
183
- storageClassType: 'number',
184
- },
185
- randomization_factor: {
186
- value: cdktf.numberToHclTerraform(struct!.randomizationFactor),
187
- isBlock: false,
188
- type: 'simple',
189
- storageClassType: 'number',
190
- },
191
- }
192
-
193
- // remove undefined attributes
194
- return Object.fromEntries(
195
- Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
196
- )
197
- }
198
-
199
- export class DataAzapiResourceActionRetryOutputReference extends cdktf.ComplexObject {
200
- private isEmptyObject = false
201
- private resolvableValue?: cdktf.IResolvable
202
-
203
- /**
204
- * @param terraformResource The parent resource
205
- * @param terraformAttribute The attribute on the parent resource this class is referencing
206
- */
207
- public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
208
- super(terraformResource, terraformAttribute, false)
209
- }
210
-
211
- public get internalValue(): DataAzapiResourceActionRetry | cdktf.IResolvable | undefined {
212
- if (this.resolvableValue) {
213
- return this.resolvableValue
214
- }
215
- let hasAnyValues = this.isEmptyObject
216
- const internalValueResult: any = {}
217
- if (this._errorMessageRegex !== undefined) {
218
- hasAnyValues = true
219
- internalValueResult.errorMessageRegex = this._errorMessageRegex
220
- }
221
- if (this._intervalSeconds !== undefined) {
222
- hasAnyValues = true
223
- internalValueResult.intervalSeconds = this._intervalSeconds
224
- }
225
- if (this._maxIntervalSeconds !== undefined) {
226
- hasAnyValues = true
227
- internalValueResult.maxIntervalSeconds = this._maxIntervalSeconds
228
- }
229
- if (this._multiplier !== undefined) {
230
- hasAnyValues = true
231
- internalValueResult.multiplier = this._multiplier
232
- }
233
- if (this._randomizationFactor !== undefined) {
234
- hasAnyValues = true
235
- internalValueResult.randomizationFactor = this._randomizationFactor
236
- }
237
- return hasAnyValues ? internalValueResult : undefined
238
- }
239
-
240
- public set internalValue(value: DataAzapiResourceActionRetry | cdktf.IResolvable | undefined) {
241
- if (value === undefined) {
242
- this.isEmptyObject = false
243
- this.resolvableValue = undefined
244
- this._errorMessageRegex = undefined
245
- this._intervalSeconds = undefined
246
- this._maxIntervalSeconds = undefined
247
- this._multiplier = undefined
248
- this._randomizationFactor = undefined
249
- } else if (cdktf.Tokenization.isResolvable(value)) {
250
- this.isEmptyObject = false
251
- this.resolvableValue = value
252
- } else {
253
- this.isEmptyObject = Object.keys(value).length === 0
254
- this.resolvableValue = undefined
255
- this._errorMessageRegex = value.errorMessageRegex
256
- this._intervalSeconds = value.intervalSeconds
257
- this._maxIntervalSeconds = value.maxIntervalSeconds
258
- this._multiplier = value.multiplier
259
- this._randomizationFactor = value.randomizationFactor
260
- }
261
- }
262
-
263
- // error_message_regex - computed: false, optional: false, required: true
264
- private _errorMessageRegex?: string[]
265
- public get errorMessageRegex() {
266
- return this.getListAttribute('error_message_regex')
267
- }
268
- public set errorMessageRegex(value: string[]) {
269
- this._errorMessageRegex = value
270
- }
271
- // Temporarily expose input value. Use with caution.
272
- public get errorMessageRegexInput() {
273
- return this._errorMessageRegex
274
- }
275
-
276
- // interval_seconds - computed: true, optional: true, required: false
277
- private _intervalSeconds?: number
278
- public get intervalSeconds() {
279
- return this.getNumberAttribute('interval_seconds')
280
- }
281
- public set intervalSeconds(value: number) {
282
- this._intervalSeconds = value
283
- }
284
- public resetIntervalSeconds() {
285
- this._intervalSeconds = undefined
286
- }
287
- // Temporarily expose input value. Use with caution.
288
- public get intervalSecondsInput() {
289
- return this._intervalSeconds
290
- }
291
-
292
- // max_interval_seconds - computed: true, optional: true, required: false
293
- private _maxIntervalSeconds?: number
294
- public get maxIntervalSeconds() {
295
- return this.getNumberAttribute('max_interval_seconds')
296
- }
297
- public set maxIntervalSeconds(value: number) {
298
- this._maxIntervalSeconds = value
299
- }
300
- public resetMaxIntervalSeconds() {
301
- this._maxIntervalSeconds = undefined
302
- }
303
- // Temporarily expose input value. Use with caution.
304
- public get maxIntervalSecondsInput() {
305
- return this._maxIntervalSeconds
306
- }
307
-
308
- // multiplier - computed: true, optional: true, required: false
309
- private _multiplier?: number
310
- public get multiplier() {
311
- return this.getNumberAttribute('multiplier')
312
- }
313
- public set multiplier(value: number) {
314
- this._multiplier = value
315
- }
316
- public resetMultiplier() {
317
- this._multiplier = undefined
318
- }
319
- // Temporarily expose input value. Use with caution.
320
- public get multiplierInput() {
321
- return this._multiplier
322
- }
323
-
324
- // randomization_factor - computed: true, optional: true, required: false
325
- private _randomizationFactor?: number
326
- public get randomizationFactor() {
327
- return this.getNumberAttribute('randomization_factor')
328
- }
329
- public set randomizationFactor(value: number) {
330
- this._randomizationFactor = value
331
- }
332
- public resetRandomizationFactor() {
333
- this._randomizationFactor = undefined
334
- }
335
- // Temporarily expose input value. Use with caution.
336
- public get randomizationFactorInput() {
337
- return this._randomizationFactor
338
- }
339
- }
340
- export interface DataAzapiResourceActionTimeouts {
341
- /**
342
- * 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.
343
- *
344
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#read DataAzapiResourceAction#read}
345
- */
346
- readonly read?: string
347
- }
348
-
349
- export function dataAzapiResourceActionTimeoutsToTerraform(
350
- struct?: DataAzapiResourceActionTimeouts | cdktf.IResolvable
351
- ): any {
352
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
353
- return struct
354
- }
355
- if (cdktf.isComplexElement(struct)) {
356
- throw new Error(
357
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
358
- )
359
- }
360
- return {
361
- read: cdktf.stringToTerraform(struct!.read),
362
- }
363
- }
364
-
365
- export function dataAzapiResourceActionTimeoutsToHclTerraform(
366
- struct?: DataAzapiResourceActionTimeouts | cdktf.IResolvable
367
- ): any {
368
- if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
369
- return struct
370
- }
371
- if (cdktf.isComplexElement(struct)) {
372
- throw new Error(
373
- 'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
374
- )
375
- }
376
- const attrs = {
377
- read: {
378
- value: cdktf.stringToHclTerraform(struct!.read),
379
- isBlock: false,
380
- type: 'simple',
381
- storageClassType: 'string',
382
- },
383
- }
384
-
385
- // remove undefined attributes
386
- return Object.fromEntries(
387
- Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
388
- )
389
- }
390
-
391
- export class DataAzapiResourceActionTimeoutsOutputReference extends cdktf.ComplexObject {
392
- private isEmptyObject = false
393
- private resolvableValue?: cdktf.IResolvable
394
-
395
- /**
396
- * @param terraformResource The parent resource
397
- * @param terraformAttribute The attribute on the parent resource this class is referencing
398
- */
399
- public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
400
- super(terraformResource, terraformAttribute, false)
401
- }
402
-
403
- public get internalValue(): DataAzapiResourceActionTimeouts | cdktf.IResolvable | undefined {
404
- if (this.resolvableValue) {
405
- return this.resolvableValue
406
- }
407
- let hasAnyValues = this.isEmptyObject
408
- const internalValueResult: any = {}
409
- if (this._read !== undefined) {
410
- hasAnyValues = true
411
- internalValueResult.read = this._read
412
- }
413
- return hasAnyValues ? internalValueResult : undefined
414
- }
415
-
416
- public set internalValue(value: DataAzapiResourceActionTimeouts | cdktf.IResolvable | undefined) {
417
- if (value === undefined) {
418
- this.isEmptyObject = false
419
- this.resolvableValue = undefined
420
- this._read = undefined
421
- } else if (cdktf.Tokenization.isResolvable(value)) {
422
- this.isEmptyObject = false
423
- this.resolvableValue = value
424
- } else {
425
- this.isEmptyObject = Object.keys(value).length === 0
426
- this.resolvableValue = undefined
427
- this._read = value.read
428
- }
429
- }
430
-
431
- // read - computed: false, optional: true, required: false
432
- private _read?: string
433
- public get read() {
434
- return this.getStringAttribute('read')
435
- }
436
- public set read(value: string) {
437
- this._read = value
438
- }
439
- public resetRead() {
440
- this._read = undefined
441
- }
442
- // Temporarily expose input value. Use with caution.
443
- public get readInput() {
444
- return this._read
445
- }
446
- }
447
-
448
- /**
449
- * Represents a {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action azapi_resource_action}
450
- */
451
- export class DataAzapiResourceAction extends cdktf.TerraformDataSource {
452
- // =================
453
- // STATIC PROPERTIES
454
- // =================
455
- public static readonly tfResourceType = 'azapi_resource_action'
456
-
457
- // ==============
458
- // STATIC Methods
459
- // ==============
460
- /**
461
- * Generates CDKTF code for importing a DataAzapiResourceAction resource upon running "cdktf plan <stack-name>"
462
- * @param scope The scope in which to define this construct
463
- * @param importToId The construct id used in the generated config for the DataAzapiResourceAction to import
464
- * @param importFromId The id of the existing DataAzapiResourceAction that should be imported. Refer to the {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action#import import section} in the documentation of this resource for the id to use
465
- * @param provider? Optional instance of the provider where the DataAzapiResourceAction to import is found
466
- */
467
- public static generateConfigForImport(
468
- scope: Construct,
469
- importToId: string,
470
- importFromId: string,
471
- provider?: cdktf.TerraformProvider
472
- ) {
473
- return new cdktf.ImportableResource(scope, importToId, {
474
- terraformResourceType: 'azapi_resource_action',
475
- importId: importFromId,
476
- provider,
477
- })
478
- }
479
-
480
- // ===========
481
- // INITIALIZER
482
- // ===========
483
-
484
- /**
485
- * Create a new {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_action azapi_resource_action} Data Source
486
- *
487
- * @param scope The scope in which to define this construct
488
- * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
489
- * @param options DataAzapiResourceActionConfig
490
- */
491
- public constructor(scope: Construct, id: string, config: DataAzapiResourceActionConfig) {
492
- super(scope, id, {
493
- terraformResourceType: 'azapi_resource_action',
494
- terraformGeneratorMetadata: {
495
- providerName: 'azapi',
496
- providerVersion: '2.2.0',
497
- providerVersionConstraint: '~> 2.2',
498
- },
499
- provider: config.provider,
500
- dependsOn: config.dependsOn,
501
- count: config.count,
502
- lifecycle: config.lifecycle,
503
- provisioners: config.provisioners,
504
- connection: config.connection,
505
- forEach: config.forEach,
506
- })
507
- this._action = config.action
508
- this._body = config.body
509
- this._headers = config.headers
510
- this._method = config.method
511
- this._queryParameters = config.queryParameters
512
- this._resourceId = config.resourceId
513
- this._responseExportValues = config.responseExportValues
514
- this._retry.internalValue = config.retry
515
- this._type = config.type
516
- this._timeouts.internalValue = config.timeouts
517
- }
518
-
519
- // ==========
520
- // ATTRIBUTES
521
- // ==========
522
-
523
- // action - computed: false, optional: true, required: false
524
- private _action?: string
525
- public get action() {
526
- return this.getStringAttribute('action')
527
- }
528
- public set action(value: string) {
529
- this._action = value
530
- }
531
- public resetAction() {
532
- this._action = undefined
533
- }
534
- // Temporarily expose input value. Use with caution.
535
- public get actionInput() {
536
- return this._action
537
- }
538
-
539
- // body - computed: false, optional: true, required: false
540
- private _body?: { [key: string]: any }
541
- public get body() {
542
- return this.getAnyMapAttribute('body')
543
- }
544
- public set body(value: { [key: string]: any }) {
545
- this._body = value
546
- }
547
- public resetBody() {
548
- this._body = undefined
549
- }
550
- // Temporarily expose input value. Use with caution.
551
- public get bodyInput() {
552
- return this._body
553
- }
554
-
555
- // headers - computed: false, optional: true, required: false
556
- private _headers?: { [key: string]: string }
557
- public get headers() {
558
- return this.getStringMapAttribute('headers')
559
- }
560
- public set headers(value: { [key: string]: string }) {
561
- this._headers = value
562
- }
563
- public resetHeaders() {
564
- this._headers = undefined
565
- }
566
- // Temporarily expose input value. Use with caution.
567
- public get headersInput() {
568
- return this._headers
569
- }
570
-
571
- // id - computed: true, optional: false, required: false
572
- public get id() {
573
- return this.getStringAttribute('id')
574
- }
575
-
576
- // method - computed: true, optional: true, required: false
577
- private _method?: string
578
- public get method() {
579
- return this.getStringAttribute('method')
580
- }
581
- public set method(value: string) {
582
- this._method = value
583
- }
584
- public resetMethod() {
585
- this._method = undefined
586
- }
587
- // Temporarily expose input value. Use with caution.
588
- public get methodInput() {
589
- return this._method
590
- }
591
-
592
- // output - computed: true, optional: false, required: false
593
- private _output = new cdktf.AnyMap(this, 'output')
594
- public get output() {
595
- return this._output
596
- }
597
-
598
- // query_parameters - computed: false, optional: true, required: false
599
- private _queryParameters?: { [key: string]: string[] } | cdktf.IResolvable
600
- public get queryParameters() {
601
- return this.interpolationForAttribute('query_parameters')
602
- }
603
- public set queryParameters(value: { [key: string]: string[] } | cdktf.IResolvable) {
604
- this._queryParameters = value
605
- }
606
- public resetQueryParameters() {
607
- this._queryParameters = undefined
608
- }
609
- // Temporarily expose input value. Use with caution.
610
- public get queryParametersInput() {
611
- return this._queryParameters
612
- }
613
-
614
- // resource_id - computed: false, optional: true, required: false
615
- private _resourceId?: string
616
- public get resourceId() {
617
- return this.getStringAttribute('resource_id')
618
- }
619
- public set resourceId(value: string) {
620
- this._resourceId = value
621
- }
622
- public resetResourceId() {
623
- this._resourceId = undefined
624
- }
625
- // Temporarily expose input value. Use with caution.
626
- public get resourceIdInput() {
627
- return this._resourceId
628
- }
629
-
630
- // response_export_values - computed: false, optional: true, required: false
631
- private _responseExportValues?: { [key: string]: any }
632
- public get responseExportValues() {
633
- return this.getAnyMapAttribute('response_export_values')
634
- }
635
- public set responseExportValues(value: { [key: string]: any }) {
636
- this._responseExportValues = value
637
- }
638
- public resetResponseExportValues() {
639
- this._responseExportValues = undefined
640
- }
641
- // Temporarily expose input value. Use with caution.
642
- public get responseExportValuesInput() {
643
- return this._responseExportValues
644
- }
645
-
646
- // retry - computed: false, optional: true, required: false
647
- private _retry = new DataAzapiResourceActionRetryOutputReference(this, 'retry')
648
- public get retry() {
649
- return this._retry
650
- }
651
- public putRetry(value: DataAzapiResourceActionRetry) {
652
- this._retry.internalValue = value
653
- }
654
- public resetRetry() {
655
- this._retry.internalValue = undefined
656
- }
657
- // Temporarily expose input value. Use with caution.
658
- public get retryInput() {
659
- return this._retry.internalValue
660
- }
661
-
662
- // type - computed: false, optional: false, required: true
663
- private _type?: string
664
- public get type() {
665
- return this.getStringAttribute('type')
666
- }
667
- public set type(value: string) {
668
- this._type = value
669
- }
670
- // Temporarily expose input value. Use with caution.
671
- public get typeInput() {
672
- return this._type
673
- }
674
-
675
- // timeouts - computed: false, optional: true, required: false
676
- private _timeouts = new DataAzapiResourceActionTimeoutsOutputReference(this, 'timeouts')
677
- public get timeouts() {
678
- return this._timeouts
679
- }
680
- public putTimeouts(value: DataAzapiResourceActionTimeouts) {
681
- this._timeouts.internalValue = value
682
- }
683
- public resetTimeouts() {
684
- this._timeouts.internalValue = undefined
685
- }
686
- // Temporarily expose input value. Use with caution.
687
- public get timeoutsInput() {
688
- return this._timeouts.internalValue
689
- }
690
-
691
- // =========
692
- // SYNTHESIS
693
- // =========
694
-
695
- protected synthesizeAttributes(): { [name: string]: any } {
696
- return {
697
- action: cdktf.stringToTerraform(this._action),
698
- body: cdktf.hashMapper(cdktf.anyToTerraform)(this._body),
699
- headers: cdktf.hashMapper(cdktf.stringToTerraform)(this._headers),
700
- method: cdktf.stringToTerraform(this._method),
701
- query_parameters: cdktf.hashMapper(cdktf.listMapper(cdktf.stringToTerraform, false))(this._queryParameters),
702
- resource_id: cdktf.stringToTerraform(this._resourceId),
703
- response_export_values: cdktf.hashMapper(cdktf.anyToTerraform)(this._responseExportValues),
704
- retry: dataAzapiResourceActionRetryToTerraform(this._retry.internalValue),
705
- type: cdktf.stringToTerraform(this._type),
706
- timeouts: dataAzapiResourceActionTimeoutsToTerraform(this._timeouts.internalValue),
707
- }
708
- }
709
-
710
- protected synthesizeHclAttributes(): { [name: string]: any } {
711
- const attrs = {
712
- action: {
713
- value: cdktf.stringToHclTerraform(this._action),
714
- isBlock: false,
715
- type: 'simple',
716
- storageClassType: 'string',
717
- },
718
- body: {
719
- value: cdktf.hashMapperHcl(cdktf.anyToHclTerraform)(this._body),
720
- isBlock: false,
721
- type: 'map',
722
- storageClassType: 'anyMap',
723
- },
724
- headers: {
725
- value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._headers),
726
- isBlock: false,
727
- type: 'map',
728
- storageClassType: 'stringMap',
729
- },
730
- method: {
731
- value: cdktf.stringToHclTerraform(this._method),
732
- isBlock: false,
733
- type: 'simple',
734
- storageClassType: 'string',
735
- },
736
- query_parameters: {
737
- value: cdktf.hashMapperHcl(cdktf.listMapperHcl(cdktf.stringToHclTerraform, false))(this._queryParameters),
738
- isBlock: false,
739
- type: 'map',
740
- storageClassType: 'stringListMap',
741
- },
742
- resource_id: {
743
- value: cdktf.stringToHclTerraform(this._resourceId),
744
- isBlock: false,
745
- type: 'simple',
746
- storageClassType: 'string',
747
- },
748
- response_export_values: {
749
- value: cdktf.hashMapperHcl(cdktf.anyToHclTerraform)(this._responseExportValues),
750
- isBlock: false,
751
- type: 'map',
752
- storageClassType: 'anyMap',
753
- },
754
- retry: {
755
- value: dataAzapiResourceActionRetryToHclTerraform(this._retry.internalValue),
756
- isBlock: true,
757
- type: 'struct',
758
- storageClassType: 'DataAzapiResourceActionRetry',
759
- },
760
- type: {
761
- value: cdktf.stringToHclTerraform(this._type),
762
- isBlock: false,
763
- type: 'simple',
764
- storageClassType: 'string',
765
- },
766
- timeouts: {
767
- value: dataAzapiResourceActionTimeoutsToHclTerraform(this._timeouts.internalValue),
768
- isBlock: true,
769
- type: 'struct',
770
- storageClassType: 'DataAzapiResourceActionTimeouts',
771
- },
772
- }
773
-
774
- // remove undefined attributes
775
- return Object.fromEntries(
776
- Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
777
- )
778
- }
779
- }