@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,257 +0,0 @@
|
|
|
1
|
-
// https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/client_config
|
|
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 DataAzapiClientConfigConfig extends cdktf.TerraformMetaArguments {
|
|
10
|
-
/**
|
|
11
|
-
* timeouts block
|
|
12
|
-
*
|
|
13
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/client_config#timeouts DataAzapiClientConfig#timeouts}
|
|
14
|
-
*/
|
|
15
|
-
readonly timeouts?: DataAzapiClientConfigTimeouts
|
|
16
|
-
}
|
|
17
|
-
export interface DataAzapiClientConfigTimeouts {
|
|
18
|
-
/**
|
|
19
|
-
* 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.
|
|
20
|
-
*
|
|
21
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/client_config#read DataAzapiClientConfig#read}
|
|
22
|
-
*/
|
|
23
|
-
readonly read?: string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function dataAzapiClientConfigTimeoutsToTerraform(
|
|
27
|
-
struct?: DataAzapiClientConfigTimeouts | cdktf.IResolvable
|
|
28
|
-
): any {
|
|
29
|
-
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
30
|
-
return struct
|
|
31
|
-
}
|
|
32
|
-
if (cdktf.isComplexElement(struct)) {
|
|
33
|
-
throw new Error(
|
|
34
|
-
'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
|
|
35
|
-
)
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
read: cdktf.stringToTerraform(struct!.read),
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function dataAzapiClientConfigTimeoutsToHclTerraform(
|
|
43
|
-
struct?: DataAzapiClientConfigTimeouts | cdktf.IResolvable
|
|
44
|
-
): any {
|
|
45
|
-
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
46
|
-
return struct
|
|
47
|
-
}
|
|
48
|
-
if (cdktf.isComplexElement(struct)) {
|
|
49
|
-
throw new Error(
|
|
50
|
-
'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
|
|
51
|
-
)
|
|
52
|
-
}
|
|
53
|
-
const attrs = {
|
|
54
|
-
read: {
|
|
55
|
-
value: cdktf.stringToHclTerraform(struct!.read),
|
|
56
|
-
isBlock: false,
|
|
57
|
-
type: 'simple',
|
|
58
|
-
storageClassType: 'string',
|
|
59
|
-
},
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// remove undefined attributes
|
|
63
|
-
return Object.fromEntries(
|
|
64
|
-
Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export class DataAzapiClientConfigTimeoutsOutputReference extends cdktf.ComplexObject {
|
|
69
|
-
private isEmptyObject = false
|
|
70
|
-
private resolvableValue?: cdktf.IResolvable
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @param terraformResource The parent resource
|
|
74
|
-
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
75
|
-
*/
|
|
76
|
-
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
|
|
77
|
-
super(terraformResource, terraformAttribute, false)
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
public get internalValue(): DataAzapiClientConfigTimeouts | cdktf.IResolvable | undefined {
|
|
81
|
-
if (this.resolvableValue) {
|
|
82
|
-
return this.resolvableValue
|
|
83
|
-
}
|
|
84
|
-
let hasAnyValues = this.isEmptyObject
|
|
85
|
-
const internalValueResult: any = {}
|
|
86
|
-
if (this._read !== undefined) {
|
|
87
|
-
hasAnyValues = true
|
|
88
|
-
internalValueResult.read = this._read
|
|
89
|
-
}
|
|
90
|
-
return hasAnyValues ? internalValueResult : undefined
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
public set internalValue(value: DataAzapiClientConfigTimeouts | cdktf.IResolvable | undefined) {
|
|
94
|
-
if (value === undefined) {
|
|
95
|
-
this.isEmptyObject = false
|
|
96
|
-
this.resolvableValue = undefined
|
|
97
|
-
this._read = undefined
|
|
98
|
-
} else if (cdktf.Tokenization.isResolvable(value)) {
|
|
99
|
-
this.isEmptyObject = false
|
|
100
|
-
this.resolvableValue = value
|
|
101
|
-
} else {
|
|
102
|
-
this.isEmptyObject = Object.keys(value).length === 0
|
|
103
|
-
this.resolvableValue = undefined
|
|
104
|
-
this._read = value.read
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// read - computed: false, optional: true, required: false
|
|
109
|
-
private _read?: string
|
|
110
|
-
public get read() {
|
|
111
|
-
return this.getStringAttribute('read')
|
|
112
|
-
}
|
|
113
|
-
public set read(value: string) {
|
|
114
|
-
this._read = value
|
|
115
|
-
}
|
|
116
|
-
public resetRead() {
|
|
117
|
-
this._read = undefined
|
|
118
|
-
}
|
|
119
|
-
// Temporarily expose input value. Use with caution.
|
|
120
|
-
public get readInput() {
|
|
121
|
-
return this._read
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Represents a {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/client_config azapi_client_config}
|
|
127
|
-
*/
|
|
128
|
-
export class DataAzapiClientConfig extends cdktf.TerraformDataSource {
|
|
129
|
-
// =================
|
|
130
|
-
// STATIC PROPERTIES
|
|
131
|
-
// =================
|
|
132
|
-
public static readonly tfResourceType = 'azapi_client_config'
|
|
133
|
-
|
|
134
|
-
// ==============
|
|
135
|
-
// STATIC Methods
|
|
136
|
-
// ==============
|
|
137
|
-
/**
|
|
138
|
-
* Generates CDKTF code for importing a DataAzapiClientConfig resource upon running "cdktf plan <stack-name>"
|
|
139
|
-
* @param scope The scope in which to define this construct
|
|
140
|
-
* @param importToId The construct id used in the generated config for the DataAzapiClientConfig to import
|
|
141
|
-
* @param importFromId The id of the existing DataAzapiClientConfig that should be imported. Refer to the {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/client_config#import import section} in the documentation of this resource for the id to use
|
|
142
|
-
* @param provider? Optional instance of the provider where the DataAzapiClientConfig to import is found
|
|
143
|
-
*/
|
|
144
|
-
public static generateConfigForImport(
|
|
145
|
-
scope: Construct,
|
|
146
|
-
importToId: string,
|
|
147
|
-
importFromId: string,
|
|
148
|
-
provider?: cdktf.TerraformProvider
|
|
149
|
-
) {
|
|
150
|
-
return new cdktf.ImportableResource(scope, importToId, {
|
|
151
|
-
terraformResourceType: 'azapi_client_config',
|
|
152
|
-
importId: importFromId,
|
|
153
|
-
provider,
|
|
154
|
-
})
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// ===========
|
|
158
|
-
// INITIALIZER
|
|
159
|
-
// ===========
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Create a new {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/data-sources/client_config azapi_client_config} Data Source
|
|
163
|
-
*
|
|
164
|
-
* @param scope The scope in which to define this construct
|
|
165
|
-
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
166
|
-
* @param options DataAzapiClientConfigConfig = {}
|
|
167
|
-
*/
|
|
168
|
-
public constructor(scope: Construct, id: string, config: DataAzapiClientConfigConfig = {}) {
|
|
169
|
-
super(scope, id, {
|
|
170
|
-
terraformResourceType: 'azapi_client_config',
|
|
171
|
-
terraformGeneratorMetadata: {
|
|
172
|
-
providerName: 'azapi',
|
|
173
|
-
providerVersion: '2.2.0',
|
|
174
|
-
providerVersionConstraint: '~> 2.2',
|
|
175
|
-
},
|
|
176
|
-
provider: config.provider,
|
|
177
|
-
dependsOn: config.dependsOn,
|
|
178
|
-
count: config.count,
|
|
179
|
-
lifecycle: config.lifecycle,
|
|
180
|
-
provisioners: config.provisioners,
|
|
181
|
-
connection: config.connection,
|
|
182
|
-
forEach: config.forEach,
|
|
183
|
-
})
|
|
184
|
-
this._timeouts.internalValue = config.timeouts
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// ==========
|
|
188
|
-
// ATTRIBUTES
|
|
189
|
-
// ==========
|
|
190
|
-
|
|
191
|
-
// id - computed: true, optional: false, required: false
|
|
192
|
-
public get id() {
|
|
193
|
-
return this.getStringAttribute('id')
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// object_id - computed: true, optional: false, required: false
|
|
197
|
-
public get objectId() {
|
|
198
|
-
return this.getStringAttribute('object_id')
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// subscription_id - computed: true, optional: false, required: false
|
|
202
|
-
public get subscriptionId() {
|
|
203
|
-
return this.getStringAttribute('subscription_id')
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// subscription_resource_id - computed: true, optional: false, required: false
|
|
207
|
-
public get subscriptionResourceId() {
|
|
208
|
-
return this.getStringAttribute('subscription_resource_id')
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// tenant_id - computed: true, optional: false, required: false
|
|
212
|
-
public get tenantId() {
|
|
213
|
-
return this.getStringAttribute('tenant_id')
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// timeouts - computed: false, optional: true, required: false
|
|
217
|
-
private _timeouts = new DataAzapiClientConfigTimeoutsOutputReference(this, 'timeouts')
|
|
218
|
-
public get timeouts() {
|
|
219
|
-
return this._timeouts
|
|
220
|
-
}
|
|
221
|
-
public putTimeouts(value: DataAzapiClientConfigTimeouts) {
|
|
222
|
-
this._timeouts.internalValue = value
|
|
223
|
-
}
|
|
224
|
-
public resetTimeouts() {
|
|
225
|
-
this._timeouts.internalValue = undefined
|
|
226
|
-
}
|
|
227
|
-
// Temporarily expose input value. Use with caution.
|
|
228
|
-
public get timeoutsInput() {
|
|
229
|
-
return this._timeouts.internalValue
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
// =========
|
|
233
|
-
// SYNTHESIS
|
|
234
|
-
// =========
|
|
235
|
-
|
|
236
|
-
protected synthesizeAttributes(): { [name: string]: any } {
|
|
237
|
-
return {
|
|
238
|
-
timeouts: dataAzapiClientConfigTimeoutsToTerraform(this._timeouts.internalValue),
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
protected synthesizeHclAttributes(): { [name: string]: any } {
|
|
243
|
-
const attrs = {
|
|
244
|
-
timeouts: {
|
|
245
|
-
value: dataAzapiClientConfigTimeoutsToHclTerraform(this._timeouts.internalValue),
|
|
246
|
-
isBlock: true,
|
|
247
|
-
type: 'struct',
|
|
248
|
-
storageClassType: 'DataAzapiClientConfigTimeouts',
|
|
249
|
-
},
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
// remove undefined attributes
|
|
253
|
-
return Object.fromEntries(
|
|
254
|
-
Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
|
|
255
|
-
)
|
|
256
|
-
}
|
|
257
|
-
}
|