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