@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.
- package/dist/src/lib/azure/common/construct.js +0 -2
- package/package.json +1 -1
- package/src/lib/azure/common/construct.ts +0 -2
- 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,383 +0,0 @@
|
|
|
1
|
-
// https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_id
|
|
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 DataAzapiResourceIdConfig extends cdktf.TerraformMetaArguments {
|
|
10
|
-
/**
|
|
11
|
-
* The name of the Azure resource.
|
|
12
|
-
*
|
|
13
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_id#name DataAzapiResourceId#name}
|
|
14
|
-
*/
|
|
15
|
-
readonly name?: 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_id#parent_id DataAzapiResourceId#parent_id}
|
|
30
|
-
*/
|
|
31
|
-
readonly parentId?: string
|
|
32
|
-
/**
|
|
33
|
-
* The ID of an existing Azure source.
|
|
34
|
-
*
|
|
35
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_id#resource_id DataAzapiResourceId#resource_id}
|
|
36
|
-
*/
|
|
37
|
-
readonly resourceId?: string
|
|
38
|
-
/**
|
|
39
|
-
* 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.
|
|
40
|
-
*
|
|
41
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_id#type DataAzapiResourceId#type}
|
|
42
|
-
*/
|
|
43
|
-
readonly type: string
|
|
44
|
-
/**
|
|
45
|
-
* timeouts block
|
|
46
|
-
*
|
|
47
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_id#timeouts DataAzapiResourceId#timeouts}
|
|
48
|
-
*/
|
|
49
|
-
readonly timeouts?: DataAzapiResourceIdTimeouts
|
|
50
|
-
}
|
|
51
|
-
export interface DataAzapiResourceIdTimeouts {
|
|
52
|
-
/**
|
|
53
|
-
* 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.
|
|
54
|
-
*
|
|
55
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_id#read DataAzapiResourceId#read}
|
|
56
|
-
*/
|
|
57
|
-
readonly read?: string
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function dataAzapiResourceIdTimeoutsToTerraform(struct?: DataAzapiResourceIdTimeouts | cdktf.IResolvable): any {
|
|
61
|
-
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
62
|
-
return struct
|
|
63
|
-
}
|
|
64
|
-
if (cdktf.isComplexElement(struct)) {
|
|
65
|
-
throw new Error(
|
|
66
|
-
'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
|
|
67
|
-
)
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
read: cdktf.stringToTerraform(struct!.read),
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function dataAzapiResourceIdTimeoutsToHclTerraform(
|
|
75
|
-
struct?: DataAzapiResourceIdTimeouts | cdktf.IResolvable
|
|
76
|
-
): any {
|
|
77
|
-
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
78
|
-
return struct
|
|
79
|
-
}
|
|
80
|
-
if (cdktf.isComplexElement(struct)) {
|
|
81
|
-
throw new Error(
|
|
82
|
-
'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
|
|
83
|
-
)
|
|
84
|
-
}
|
|
85
|
-
const attrs = {
|
|
86
|
-
read: {
|
|
87
|
-
value: cdktf.stringToHclTerraform(struct!.read),
|
|
88
|
-
isBlock: false,
|
|
89
|
-
type: 'simple',
|
|
90
|
-
storageClassType: 'string',
|
|
91
|
-
},
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// remove undefined attributes
|
|
95
|
-
return Object.fromEntries(
|
|
96
|
-
Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
|
|
97
|
-
)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export class DataAzapiResourceIdTimeoutsOutputReference extends cdktf.ComplexObject {
|
|
101
|
-
private isEmptyObject = false
|
|
102
|
-
private resolvableValue?: cdktf.IResolvable
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @param terraformResource The parent resource
|
|
106
|
-
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
107
|
-
*/
|
|
108
|
-
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
|
|
109
|
-
super(terraformResource, terraformAttribute, false)
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
public get internalValue(): DataAzapiResourceIdTimeouts | cdktf.IResolvable | undefined {
|
|
113
|
-
if (this.resolvableValue) {
|
|
114
|
-
return this.resolvableValue
|
|
115
|
-
}
|
|
116
|
-
let hasAnyValues = this.isEmptyObject
|
|
117
|
-
const internalValueResult: any = {}
|
|
118
|
-
if (this._read !== undefined) {
|
|
119
|
-
hasAnyValues = true
|
|
120
|
-
internalValueResult.read = this._read
|
|
121
|
-
}
|
|
122
|
-
return hasAnyValues ? internalValueResult : undefined
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
public set internalValue(value: DataAzapiResourceIdTimeouts | cdktf.IResolvable | undefined) {
|
|
126
|
-
if (value === undefined) {
|
|
127
|
-
this.isEmptyObject = false
|
|
128
|
-
this.resolvableValue = undefined
|
|
129
|
-
this._read = undefined
|
|
130
|
-
} else if (cdktf.Tokenization.isResolvable(value)) {
|
|
131
|
-
this.isEmptyObject = false
|
|
132
|
-
this.resolvableValue = value
|
|
133
|
-
} else {
|
|
134
|
-
this.isEmptyObject = Object.keys(value).length === 0
|
|
135
|
-
this.resolvableValue = undefined
|
|
136
|
-
this._read = value.read
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// read - computed: false, optional: true, required: false
|
|
141
|
-
private _read?: string
|
|
142
|
-
public get read() {
|
|
143
|
-
return this.getStringAttribute('read')
|
|
144
|
-
}
|
|
145
|
-
public set read(value: string) {
|
|
146
|
-
this._read = value
|
|
147
|
-
}
|
|
148
|
-
public resetRead() {
|
|
149
|
-
this._read = undefined
|
|
150
|
-
}
|
|
151
|
-
// Temporarily expose input value. Use with caution.
|
|
152
|
-
public get readInput() {
|
|
153
|
-
return this._read
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Represents a {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_id azapi_resource_id}
|
|
159
|
-
*/
|
|
160
|
-
export class DataAzapiResourceId extends cdktf.TerraformDataSource {
|
|
161
|
-
// =================
|
|
162
|
-
// STATIC PROPERTIES
|
|
163
|
-
// =================
|
|
164
|
-
public static readonly tfResourceType = 'azapi_resource_id'
|
|
165
|
-
|
|
166
|
-
// ==============
|
|
167
|
-
// STATIC Methods
|
|
168
|
-
// ==============
|
|
169
|
-
/**
|
|
170
|
-
* Generates CDKTF code for importing a DataAzapiResourceId resource upon running "cdktf plan <stack-name>"
|
|
171
|
-
* @param scope The scope in which to define this construct
|
|
172
|
-
* @param importToId The construct id used in the generated config for the DataAzapiResourceId to import
|
|
173
|
-
* @param importFromId The id of the existing DataAzapiResourceId that should be imported. Refer to the {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_id#import import section} in the documentation of this resource for the id to use
|
|
174
|
-
* @param provider? Optional instance of the provider where the DataAzapiResourceId to import is found
|
|
175
|
-
*/
|
|
176
|
-
public static generateConfigForImport(
|
|
177
|
-
scope: Construct,
|
|
178
|
-
importToId: string,
|
|
179
|
-
importFromId: string,
|
|
180
|
-
provider?: cdktf.TerraformProvider
|
|
181
|
-
) {
|
|
182
|
-
return new cdktf.ImportableResource(scope, importToId, {
|
|
183
|
-
terraformResourceType: 'azapi_resource_id',
|
|
184
|
-
importId: importFromId,
|
|
185
|
-
provider,
|
|
186
|
-
})
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// ===========
|
|
190
|
-
// INITIALIZER
|
|
191
|
-
// ===========
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Create a new {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/resource_id azapi_resource_id} Data Source
|
|
195
|
-
*
|
|
196
|
-
* @param scope The scope in which to define this construct
|
|
197
|
-
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
198
|
-
* @param options DataAzapiResourceIdConfig
|
|
199
|
-
*/
|
|
200
|
-
public constructor(scope: Construct, id: string, config: DataAzapiResourceIdConfig) {
|
|
201
|
-
super(scope, id, {
|
|
202
|
-
terraformResourceType: 'azapi_resource_id',
|
|
203
|
-
terraformGeneratorMetadata: {
|
|
204
|
-
providerName: 'azapi',
|
|
205
|
-
providerVersion: '2.2.0',
|
|
206
|
-
providerVersionConstraint: '~> 2.2',
|
|
207
|
-
},
|
|
208
|
-
provider: config.provider,
|
|
209
|
-
dependsOn: config.dependsOn,
|
|
210
|
-
count: config.count,
|
|
211
|
-
lifecycle: config.lifecycle,
|
|
212
|
-
provisioners: config.provisioners,
|
|
213
|
-
connection: config.connection,
|
|
214
|
-
forEach: config.forEach,
|
|
215
|
-
})
|
|
216
|
-
this._name = config.name
|
|
217
|
-
this._parentId = config.parentId
|
|
218
|
-
this._resourceId = config.resourceId
|
|
219
|
-
this._type = config.type
|
|
220
|
-
this._timeouts.internalValue = config.timeouts
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// ==========
|
|
224
|
-
// ATTRIBUTES
|
|
225
|
-
// ==========
|
|
226
|
-
|
|
227
|
-
// id - computed: true, optional: false, required: false
|
|
228
|
-
public get id() {
|
|
229
|
-
return this.getStringAttribute('id')
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
// name - computed: true, optional: true, required: false
|
|
233
|
-
private _name?: string
|
|
234
|
-
public get name() {
|
|
235
|
-
return this.getStringAttribute('name')
|
|
236
|
-
}
|
|
237
|
-
public set name(value: string) {
|
|
238
|
-
this._name = value
|
|
239
|
-
}
|
|
240
|
-
public resetName() {
|
|
241
|
-
this._name = undefined
|
|
242
|
-
}
|
|
243
|
-
// Temporarily expose input value. Use with caution.
|
|
244
|
-
public get nameInput() {
|
|
245
|
-
return this._name
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// parent_id - computed: true, optional: true, required: false
|
|
249
|
-
private _parentId?: string
|
|
250
|
-
public get parentId() {
|
|
251
|
-
return this.getStringAttribute('parent_id')
|
|
252
|
-
}
|
|
253
|
-
public set parentId(value: string) {
|
|
254
|
-
this._parentId = value
|
|
255
|
-
}
|
|
256
|
-
public resetParentId() {
|
|
257
|
-
this._parentId = undefined
|
|
258
|
-
}
|
|
259
|
-
// Temporarily expose input value. Use with caution.
|
|
260
|
-
public get parentIdInput() {
|
|
261
|
-
return this._parentId
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
// parts - computed: true, optional: false, required: false
|
|
265
|
-
private _parts = new cdktf.StringMap(this, 'parts')
|
|
266
|
-
public get parts() {
|
|
267
|
-
return this._parts
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// provider_namespace - computed: true, optional: false, required: false
|
|
271
|
-
public get providerNamespace() {
|
|
272
|
-
return this.getStringAttribute('provider_namespace')
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
// resource_group_name - computed: true, optional: false, required: false
|
|
276
|
-
public get resourceGroupName() {
|
|
277
|
-
return this.getStringAttribute('resource_group_name')
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
// resource_id - computed: true, optional: true, required: false
|
|
281
|
-
private _resourceId?: string
|
|
282
|
-
public get resourceId() {
|
|
283
|
-
return this.getStringAttribute('resource_id')
|
|
284
|
-
}
|
|
285
|
-
public set resourceId(value: string) {
|
|
286
|
-
this._resourceId = value
|
|
287
|
-
}
|
|
288
|
-
public resetResourceId() {
|
|
289
|
-
this._resourceId = undefined
|
|
290
|
-
}
|
|
291
|
-
// Temporarily expose input value. Use with caution.
|
|
292
|
-
public get resourceIdInput() {
|
|
293
|
-
return this._resourceId
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// subscription_id - computed: true, optional: false, required: false
|
|
297
|
-
public get subscriptionId() {
|
|
298
|
-
return this.getStringAttribute('subscription_id')
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
// type - computed: false, optional: false, required: true
|
|
302
|
-
private _type?: string
|
|
303
|
-
public get type() {
|
|
304
|
-
return this.getStringAttribute('type')
|
|
305
|
-
}
|
|
306
|
-
public set type(value: string) {
|
|
307
|
-
this._type = value
|
|
308
|
-
}
|
|
309
|
-
// Temporarily expose input value. Use with caution.
|
|
310
|
-
public get typeInput() {
|
|
311
|
-
return this._type
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
// timeouts - computed: false, optional: true, required: false
|
|
315
|
-
private _timeouts = new DataAzapiResourceIdTimeoutsOutputReference(this, 'timeouts')
|
|
316
|
-
public get timeouts() {
|
|
317
|
-
return this._timeouts
|
|
318
|
-
}
|
|
319
|
-
public putTimeouts(value: DataAzapiResourceIdTimeouts) {
|
|
320
|
-
this._timeouts.internalValue = value
|
|
321
|
-
}
|
|
322
|
-
public resetTimeouts() {
|
|
323
|
-
this._timeouts.internalValue = undefined
|
|
324
|
-
}
|
|
325
|
-
// Temporarily expose input value. Use with caution.
|
|
326
|
-
public get timeoutsInput() {
|
|
327
|
-
return this._timeouts.internalValue
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
// =========
|
|
331
|
-
// SYNTHESIS
|
|
332
|
-
// =========
|
|
333
|
-
|
|
334
|
-
protected synthesizeAttributes(): { [name: string]: any } {
|
|
335
|
-
return {
|
|
336
|
-
name: cdktf.stringToTerraform(this._name),
|
|
337
|
-
parent_id: cdktf.stringToTerraform(this._parentId),
|
|
338
|
-
resource_id: cdktf.stringToTerraform(this._resourceId),
|
|
339
|
-
type: cdktf.stringToTerraform(this._type),
|
|
340
|
-
timeouts: dataAzapiResourceIdTimeoutsToTerraform(this._timeouts.internalValue),
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
protected synthesizeHclAttributes(): { [name: string]: any } {
|
|
345
|
-
const attrs = {
|
|
346
|
-
name: {
|
|
347
|
-
value: cdktf.stringToHclTerraform(this._name),
|
|
348
|
-
isBlock: false,
|
|
349
|
-
type: 'simple',
|
|
350
|
-
storageClassType: 'string',
|
|
351
|
-
},
|
|
352
|
-
parent_id: {
|
|
353
|
-
value: cdktf.stringToHclTerraform(this._parentId),
|
|
354
|
-
isBlock: false,
|
|
355
|
-
type: 'simple',
|
|
356
|
-
storageClassType: 'string',
|
|
357
|
-
},
|
|
358
|
-
resource_id: {
|
|
359
|
-
value: cdktf.stringToHclTerraform(this._resourceId),
|
|
360
|
-
isBlock: false,
|
|
361
|
-
type: 'simple',
|
|
362
|
-
storageClassType: 'string',
|
|
363
|
-
},
|
|
364
|
-
type: {
|
|
365
|
-
value: cdktf.stringToHclTerraform(this._type),
|
|
366
|
-
isBlock: false,
|
|
367
|
-
type: 'simple',
|
|
368
|
-
storageClassType: 'string',
|
|
369
|
-
},
|
|
370
|
-
timeouts: {
|
|
371
|
-
value: dataAzapiResourceIdTimeoutsToHclTerraform(this._timeouts.internalValue),
|
|
372
|
-
isBlock: true,
|
|
373
|
-
type: 'struct',
|
|
374
|
-
storageClassType: 'DataAzapiResourceIdTimeouts',
|
|
375
|
-
},
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
// remove undefined attributes
|
|
379
|
-
return Object.fromEntries(
|
|
380
|
-
Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
|
|
381
|
-
)
|
|
382
|
-
}
|
|
383
|
-
}
|