@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,1042 +0,0 @@
|
|
|
1
|
-
// https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource
|
|
2
|
-
// generated from terraform resource schema
|
|
3
|
-
|
|
4
|
-
import { Construct } from 'constructs'
|
|
5
|
-
import * as cdktf from 'cdktf'
|
|
6
|
-
|
|
7
|
-
// Configuration
|
|
8
|
-
|
|
9
|
-
export interface UpdateResourceConfig extends cdktf.TerraformMetaArguments {
|
|
10
|
-
/**
|
|
11
|
-
* A dynamic attribute that contains the request body.
|
|
12
|
-
*
|
|
13
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#body UpdateResource#body}
|
|
14
|
-
*/
|
|
15
|
-
readonly body?: { [key: string]: any }
|
|
16
|
-
/**
|
|
17
|
-
* Whether ignore the casing of the property names in the response body. Defaults to `false`.
|
|
18
|
-
*
|
|
19
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#ignore_casing UpdateResource#ignore_casing}
|
|
20
|
-
*/
|
|
21
|
-
readonly ignoreCasing?: boolean | cdktf.IResolvable
|
|
22
|
-
/**
|
|
23
|
-
* Whether ignore not returned properties like credentials in `body` to suppress plan-diff. Defaults to `true`. It's recommend to enable this option when some sensitive properties are not returned in response body, instead of setting them in `lifecycle.ignore_changes` because it will make the sensitive fields unable to update.
|
|
24
|
-
*
|
|
25
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#ignore_missing_property UpdateResource#ignore_missing_property}
|
|
26
|
-
*/
|
|
27
|
-
readonly ignoreMissingProperty?: boolean | cdktf.IResolvable
|
|
28
|
-
/**
|
|
29
|
-
* A list of ARM resource IDs which are used to avoid create/modify/delete azapi resources at the same time.
|
|
30
|
-
*
|
|
31
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#locks UpdateResource#locks}
|
|
32
|
-
*/
|
|
33
|
-
readonly locks?: string[]
|
|
34
|
-
/**
|
|
35
|
-
* Specifies the name of the Azure resource. Changing this forces a new resource to be created.
|
|
36
|
-
*
|
|
37
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#name UpdateResource#name}
|
|
38
|
-
*/
|
|
39
|
-
readonly name?: string
|
|
40
|
-
/**
|
|
41
|
-
* The ID of the azure resource in which this resource is created. It supports different kinds of deployment scope for **top level** resources:
|
|
42
|
-
*
|
|
43
|
-
* - 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.
|
|
44
|
-
* - 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.
|
|
45
|
-
* - extension scope: `parent_id` should be the ID of the resource you're adding the extension to.
|
|
46
|
-
* - subscription scope: `parent_id` should be like \x60/subscriptions/00000000-0000-0000-0000-000000000000\x60
|
|
47
|
-
* - tenant scope: `parent_id` should be /
|
|
48
|
-
*
|
|
49
|
-
* 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.
|
|
50
|
-
*
|
|
51
|
-
* 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`).
|
|
52
|
-
*
|
|
53
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#parent_id UpdateResource#parent_id}
|
|
54
|
-
*/
|
|
55
|
-
readonly parentId?: string
|
|
56
|
-
/**
|
|
57
|
-
* A mapping of headers to be sent with the read request.
|
|
58
|
-
*
|
|
59
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#read_headers UpdateResource#read_headers}
|
|
60
|
-
*/
|
|
61
|
-
readonly readHeaders?: { [key: string]: string }
|
|
62
|
-
/**
|
|
63
|
-
* A mapping of query parameters to be sent with the read request.
|
|
64
|
-
*
|
|
65
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#read_query_parameters UpdateResource#read_query_parameters}
|
|
66
|
-
*/
|
|
67
|
-
readonly readQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
|
|
68
|
-
/**
|
|
69
|
-
* The ID of an existing Azure source.
|
|
70
|
-
*
|
|
71
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#resource_id UpdateResource#resource_id}
|
|
72
|
-
*/
|
|
73
|
-
readonly resourceId?: string
|
|
74
|
-
/**
|
|
75
|
-
* The attribute can accept either a list or a map.
|
|
76
|
-
*
|
|
77
|
-
* - **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.
|
|
78
|
-
*
|
|
79
|
-
* ```text
|
|
80
|
-
* {
|
|
81
|
-
* properties = {
|
|
82
|
-
* loginServer = "registry1.azurecr.io"
|
|
83
|
-
* policies = {
|
|
84
|
-
* quarantinePolicy = {
|
|
85
|
-
* status = "disabled"
|
|
86
|
-
* }
|
|
87
|
-
* }
|
|
88
|
-
* }
|
|
89
|
-
* }
|
|
90
|
-
* ```
|
|
91
|
-
*
|
|
92
|
-
* - **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.
|
|
93
|
-
*
|
|
94
|
-
* ```text
|
|
95
|
-
* {
|
|
96
|
-
* "login_server" = "registry1.azurecr.io"
|
|
97
|
-
* "quarantine_status" = "disabled"
|
|
98
|
-
* }
|
|
99
|
-
* ```
|
|
100
|
-
*
|
|
101
|
-
* To learn more about JMESPath, visit [JMESPath](https://jmespath.org/).
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#response_export_values UpdateResource#response_export_values}
|
|
105
|
-
*/
|
|
106
|
-
readonly responseExportValues?: { [key: string]: any }
|
|
107
|
-
/**
|
|
108
|
-
* The retry block supports the following arguments:
|
|
109
|
-
*
|
|
110
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#retry UpdateResource#retry}
|
|
111
|
-
*/
|
|
112
|
-
readonly retry?: UpdateResourceRetry
|
|
113
|
-
/**
|
|
114
|
-
* 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.
|
|
115
|
-
*
|
|
116
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#type UpdateResource#type}
|
|
117
|
-
*/
|
|
118
|
-
readonly type: string
|
|
119
|
-
/**
|
|
120
|
-
* A mapping of headers to be sent with the update request.
|
|
121
|
-
*
|
|
122
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#update_headers UpdateResource#update_headers}
|
|
123
|
-
*/
|
|
124
|
-
readonly updateHeaders?: { [key: string]: string }
|
|
125
|
-
/**
|
|
126
|
-
* A mapping of query parameters to be sent with the update request.
|
|
127
|
-
*
|
|
128
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#update_query_parameters UpdateResource#update_query_parameters}
|
|
129
|
-
*/
|
|
130
|
-
readonly updateQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
|
|
131
|
-
/**
|
|
132
|
-
* timeouts block
|
|
133
|
-
*
|
|
134
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#timeouts UpdateResource#timeouts}
|
|
135
|
-
*/
|
|
136
|
-
readonly timeouts?: UpdateResourceTimeouts
|
|
137
|
-
}
|
|
138
|
-
export interface UpdateResourceRetry {
|
|
139
|
-
/**
|
|
140
|
-
* A list of regular expressions to match against error messages. If any of the regular expressions match, the error is considered retryable.
|
|
141
|
-
*
|
|
142
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#error_message_regex UpdateResource#error_message_regex}
|
|
143
|
-
*/
|
|
144
|
-
readonly errorMessageRegex: string[]
|
|
145
|
-
/**
|
|
146
|
-
* The base number of seconds to wait between retries. Default is `10`.
|
|
147
|
-
*
|
|
148
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#interval_seconds UpdateResource#interval_seconds}
|
|
149
|
-
*/
|
|
150
|
-
readonly intervalSeconds?: number
|
|
151
|
-
/**
|
|
152
|
-
* The maximum number of seconds to wait between retries. Default is `180`.
|
|
153
|
-
*
|
|
154
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#max_interval_seconds UpdateResource#max_interval_seconds}
|
|
155
|
-
*/
|
|
156
|
-
readonly maxIntervalSeconds?: number
|
|
157
|
-
/**
|
|
158
|
-
* The multiplier to apply to the interval between retries. Default is `1.5`.
|
|
159
|
-
*
|
|
160
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#multiplier UpdateResource#multiplier}
|
|
161
|
-
*/
|
|
162
|
-
readonly multiplier?: number
|
|
163
|
-
/**
|
|
164
|
-
* 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`.
|
|
165
|
-
*
|
|
166
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#randomization_factor UpdateResource#randomization_factor}
|
|
167
|
-
*/
|
|
168
|
-
readonly randomizationFactor?: number
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export function updateResourceRetryToTerraform(struct?: UpdateResourceRetry | cdktf.IResolvable): any {
|
|
172
|
-
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
173
|
-
return struct
|
|
174
|
-
}
|
|
175
|
-
if (cdktf.isComplexElement(struct)) {
|
|
176
|
-
throw new Error(
|
|
177
|
-
'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
|
|
178
|
-
)
|
|
179
|
-
}
|
|
180
|
-
return {
|
|
181
|
-
error_message_regex: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.errorMessageRegex),
|
|
182
|
-
interval_seconds: cdktf.numberToTerraform(struct!.intervalSeconds),
|
|
183
|
-
max_interval_seconds: cdktf.numberToTerraform(struct!.maxIntervalSeconds),
|
|
184
|
-
multiplier: cdktf.numberToTerraform(struct!.multiplier),
|
|
185
|
-
randomization_factor: cdktf.numberToTerraform(struct!.randomizationFactor),
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export function updateResourceRetryToHclTerraform(struct?: UpdateResourceRetry | cdktf.IResolvable): any {
|
|
190
|
-
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
191
|
-
return struct
|
|
192
|
-
}
|
|
193
|
-
if (cdktf.isComplexElement(struct)) {
|
|
194
|
-
throw new Error(
|
|
195
|
-
'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
|
|
196
|
-
)
|
|
197
|
-
}
|
|
198
|
-
const attrs = {
|
|
199
|
-
error_message_regex: {
|
|
200
|
-
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct!.errorMessageRegex),
|
|
201
|
-
isBlock: false,
|
|
202
|
-
type: 'list',
|
|
203
|
-
storageClassType: 'stringList',
|
|
204
|
-
},
|
|
205
|
-
interval_seconds: {
|
|
206
|
-
value: cdktf.numberToHclTerraform(struct!.intervalSeconds),
|
|
207
|
-
isBlock: false,
|
|
208
|
-
type: 'simple',
|
|
209
|
-
storageClassType: 'number',
|
|
210
|
-
},
|
|
211
|
-
max_interval_seconds: {
|
|
212
|
-
value: cdktf.numberToHclTerraform(struct!.maxIntervalSeconds),
|
|
213
|
-
isBlock: false,
|
|
214
|
-
type: 'simple',
|
|
215
|
-
storageClassType: 'number',
|
|
216
|
-
},
|
|
217
|
-
multiplier: {
|
|
218
|
-
value: cdktf.numberToHclTerraform(struct!.multiplier),
|
|
219
|
-
isBlock: false,
|
|
220
|
-
type: 'simple',
|
|
221
|
-
storageClassType: 'number',
|
|
222
|
-
},
|
|
223
|
-
randomization_factor: {
|
|
224
|
-
value: cdktf.numberToHclTerraform(struct!.randomizationFactor),
|
|
225
|
-
isBlock: false,
|
|
226
|
-
type: 'simple',
|
|
227
|
-
storageClassType: 'number',
|
|
228
|
-
},
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// remove undefined attributes
|
|
232
|
-
return Object.fromEntries(
|
|
233
|
-
Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
|
|
234
|
-
)
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export class UpdateResourceRetryOutputReference extends cdktf.ComplexObject {
|
|
238
|
-
private isEmptyObject = false
|
|
239
|
-
private resolvableValue?: cdktf.IResolvable
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* @param terraformResource The parent resource
|
|
243
|
-
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
244
|
-
*/
|
|
245
|
-
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
|
|
246
|
-
super(terraformResource, terraformAttribute, false)
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
public get internalValue(): UpdateResourceRetry | cdktf.IResolvable | undefined {
|
|
250
|
-
if (this.resolvableValue) {
|
|
251
|
-
return this.resolvableValue
|
|
252
|
-
}
|
|
253
|
-
let hasAnyValues = this.isEmptyObject
|
|
254
|
-
const internalValueResult: any = {}
|
|
255
|
-
if (this._errorMessageRegex !== undefined) {
|
|
256
|
-
hasAnyValues = true
|
|
257
|
-
internalValueResult.errorMessageRegex = this._errorMessageRegex
|
|
258
|
-
}
|
|
259
|
-
if (this._intervalSeconds !== undefined) {
|
|
260
|
-
hasAnyValues = true
|
|
261
|
-
internalValueResult.intervalSeconds = this._intervalSeconds
|
|
262
|
-
}
|
|
263
|
-
if (this._maxIntervalSeconds !== undefined) {
|
|
264
|
-
hasAnyValues = true
|
|
265
|
-
internalValueResult.maxIntervalSeconds = this._maxIntervalSeconds
|
|
266
|
-
}
|
|
267
|
-
if (this._multiplier !== undefined) {
|
|
268
|
-
hasAnyValues = true
|
|
269
|
-
internalValueResult.multiplier = this._multiplier
|
|
270
|
-
}
|
|
271
|
-
if (this._randomizationFactor !== undefined) {
|
|
272
|
-
hasAnyValues = true
|
|
273
|
-
internalValueResult.randomizationFactor = this._randomizationFactor
|
|
274
|
-
}
|
|
275
|
-
return hasAnyValues ? internalValueResult : undefined
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
public set internalValue(value: UpdateResourceRetry | cdktf.IResolvable | undefined) {
|
|
279
|
-
if (value === undefined) {
|
|
280
|
-
this.isEmptyObject = false
|
|
281
|
-
this.resolvableValue = undefined
|
|
282
|
-
this._errorMessageRegex = undefined
|
|
283
|
-
this._intervalSeconds = undefined
|
|
284
|
-
this._maxIntervalSeconds = undefined
|
|
285
|
-
this._multiplier = undefined
|
|
286
|
-
this._randomizationFactor = undefined
|
|
287
|
-
} else if (cdktf.Tokenization.isResolvable(value)) {
|
|
288
|
-
this.isEmptyObject = false
|
|
289
|
-
this.resolvableValue = value
|
|
290
|
-
} else {
|
|
291
|
-
this.isEmptyObject = Object.keys(value).length === 0
|
|
292
|
-
this.resolvableValue = undefined
|
|
293
|
-
this._errorMessageRegex = value.errorMessageRegex
|
|
294
|
-
this._intervalSeconds = value.intervalSeconds
|
|
295
|
-
this._maxIntervalSeconds = value.maxIntervalSeconds
|
|
296
|
-
this._multiplier = value.multiplier
|
|
297
|
-
this._randomizationFactor = value.randomizationFactor
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
// error_message_regex - computed: false, optional: false, required: true
|
|
302
|
-
private _errorMessageRegex?: string[]
|
|
303
|
-
public get errorMessageRegex() {
|
|
304
|
-
return this.getListAttribute('error_message_regex')
|
|
305
|
-
}
|
|
306
|
-
public set errorMessageRegex(value: string[]) {
|
|
307
|
-
this._errorMessageRegex = value
|
|
308
|
-
}
|
|
309
|
-
// Temporarily expose input value. Use with caution.
|
|
310
|
-
public get errorMessageRegexInput() {
|
|
311
|
-
return this._errorMessageRegex
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
// interval_seconds - computed: true, optional: true, required: false
|
|
315
|
-
private _intervalSeconds?: number
|
|
316
|
-
public get intervalSeconds() {
|
|
317
|
-
return this.getNumberAttribute('interval_seconds')
|
|
318
|
-
}
|
|
319
|
-
public set intervalSeconds(value: number) {
|
|
320
|
-
this._intervalSeconds = value
|
|
321
|
-
}
|
|
322
|
-
public resetIntervalSeconds() {
|
|
323
|
-
this._intervalSeconds = undefined
|
|
324
|
-
}
|
|
325
|
-
// Temporarily expose input value. Use with caution.
|
|
326
|
-
public get intervalSecondsInput() {
|
|
327
|
-
return this._intervalSeconds
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
// max_interval_seconds - computed: true, optional: true, required: false
|
|
331
|
-
private _maxIntervalSeconds?: number
|
|
332
|
-
public get maxIntervalSeconds() {
|
|
333
|
-
return this.getNumberAttribute('max_interval_seconds')
|
|
334
|
-
}
|
|
335
|
-
public set maxIntervalSeconds(value: number) {
|
|
336
|
-
this._maxIntervalSeconds = value
|
|
337
|
-
}
|
|
338
|
-
public resetMaxIntervalSeconds() {
|
|
339
|
-
this._maxIntervalSeconds = undefined
|
|
340
|
-
}
|
|
341
|
-
// Temporarily expose input value. Use with caution.
|
|
342
|
-
public get maxIntervalSecondsInput() {
|
|
343
|
-
return this._maxIntervalSeconds
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
// multiplier - computed: true, optional: true, required: false
|
|
347
|
-
private _multiplier?: number
|
|
348
|
-
public get multiplier() {
|
|
349
|
-
return this.getNumberAttribute('multiplier')
|
|
350
|
-
}
|
|
351
|
-
public set multiplier(value: number) {
|
|
352
|
-
this._multiplier = value
|
|
353
|
-
}
|
|
354
|
-
public resetMultiplier() {
|
|
355
|
-
this._multiplier = undefined
|
|
356
|
-
}
|
|
357
|
-
// Temporarily expose input value. Use with caution.
|
|
358
|
-
public get multiplierInput() {
|
|
359
|
-
return this._multiplier
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
// randomization_factor - computed: true, optional: true, required: false
|
|
363
|
-
private _randomizationFactor?: number
|
|
364
|
-
public get randomizationFactor() {
|
|
365
|
-
return this.getNumberAttribute('randomization_factor')
|
|
366
|
-
}
|
|
367
|
-
public set randomizationFactor(value: number) {
|
|
368
|
-
this._randomizationFactor = value
|
|
369
|
-
}
|
|
370
|
-
public resetRandomizationFactor() {
|
|
371
|
-
this._randomizationFactor = undefined
|
|
372
|
-
}
|
|
373
|
-
// Temporarily expose input value. Use with caution.
|
|
374
|
-
public get randomizationFactorInput() {
|
|
375
|
-
return this._randomizationFactor
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
export interface UpdateResourceTimeouts {
|
|
379
|
-
/**
|
|
380
|
-
* 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).
|
|
381
|
-
*
|
|
382
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#create UpdateResource#create}
|
|
383
|
-
*/
|
|
384
|
-
readonly create?: string
|
|
385
|
-
/**
|
|
386
|
-
* A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
|
|
387
|
-
*
|
|
388
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#delete UpdateResource#delete}
|
|
389
|
-
*/
|
|
390
|
-
readonly delete?: string
|
|
391
|
-
/**
|
|
392
|
-
* 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.
|
|
393
|
-
*
|
|
394
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#read UpdateResource#read}
|
|
395
|
-
*/
|
|
396
|
-
readonly read?: string
|
|
397
|
-
/**
|
|
398
|
-
* 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).
|
|
399
|
-
*
|
|
400
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#update UpdateResource#update}
|
|
401
|
-
*/
|
|
402
|
-
readonly update?: string
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
export function updateResourceTimeoutsToTerraform(struct?: UpdateResourceTimeouts | cdktf.IResolvable): any {
|
|
406
|
-
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
407
|
-
return struct
|
|
408
|
-
}
|
|
409
|
-
if (cdktf.isComplexElement(struct)) {
|
|
410
|
-
throw new Error(
|
|
411
|
-
'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
|
|
412
|
-
)
|
|
413
|
-
}
|
|
414
|
-
return {
|
|
415
|
-
create: cdktf.stringToTerraform(struct!.create),
|
|
416
|
-
delete: cdktf.stringToTerraform(struct!.delete),
|
|
417
|
-
read: cdktf.stringToTerraform(struct!.read),
|
|
418
|
-
update: cdktf.stringToTerraform(struct!.update),
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export function updateResourceTimeoutsToHclTerraform(struct?: UpdateResourceTimeouts | cdktf.IResolvable): any {
|
|
423
|
-
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
424
|
-
return struct
|
|
425
|
-
}
|
|
426
|
-
if (cdktf.isComplexElement(struct)) {
|
|
427
|
-
throw new Error(
|
|
428
|
-
'A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration'
|
|
429
|
-
)
|
|
430
|
-
}
|
|
431
|
-
const attrs = {
|
|
432
|
-
create: {
|
|
433
|
-
value: cdktf.stringToHclTerraform(struct!.create),
|
|
434
|
-
isBlock: false,
|
|
435
|
-
type: 'simple',
|
|
436
|
-
storageClassType: 'string',
|
|
437
|
-
},
|
|
438
|
-
delete: {
|
|
439
|
-
value: cdktf.stringToHclTerraform(struct!.delete),
|
|
440
|
-
isBlock: false,
|
|
441
|
-
type: 'simple',
|
|
442
|
-
storageClassType: 'string',
|
|
443
|
-
},
|
|
444
|
-
read: {
|
|
445
|
-
value: cdktf.stringToHclTerraform(struct!.read),
|
|
446
|
-
isBlock: false,
|
|
447
|
-
type: 'simple',
|
|
448
|
-
storageClassType: 'string',
|
|
449
|
-
},
|
|
450
|
-
update: {
|
|
451
|
-
value: cdktf.stringToHclTerraform(struct!.update),
|
|
452
|
-
isBlock: false,
|
|
453
|
-
type: 'simple',
|
|
454
|
-
storageClassType: 'string',
|
|
455
|
-
},
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
// remove undefined attributes
|
|
459
|
-
return Object.fromEntries(
|
|
460
|
-
Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
|
|
461
|
-
)
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
export class UpdateResourceTimeoutsOutputReference extends cdktf.ComplexObject {
|
|
465
|
-
private isEmptyObject = false
|
|
466
|
-
private resolvableValue?: cdktf.IResolvable
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* @param terraformResource The parent resource
|
|
470
|
-
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
471
|
-
*/
|
|
472
|
-
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
|
|
473
|
-
super(terraformResource, terraformAttribute, false)
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
public get internalValue(): UpdateResourceTimeouts | cdktf.IResolvable | undefined {
|
|
477
|
-
if (this.resolvableValue) {
|
|
478
|
-
return this.resolvableValue
|
|
479
|
-
}
|
|
480
|
-
let hasAnyValues = this.isEmptyObject
|
|
481
|
-
const internalValueResult: any = {}
|
|
482
|
-
if (this._create !== undefined) {
|
|
483
|
-
hasAnyValues = true
|
|
484
|
-
internalValueResult.create = this._create
|
|
485
|
-
}
|
|
486
|
-
if (this._delete !== undefined) {
|
|
487
|
-
hasAnyValues = true
|
|
488
|
-
internalValueResult.delete = this._delete
|
|
489
|
-
}
|
|
490
|
-
if (this._read !== undefined) {
|
|
491
|
-
hasAnyValues = true
|
|
492
|
-
internalValueResult.read = this._read
|
|
493
|
-
}
|
|
494
|
-
if (this._update !== undefined) {
|
|
495
|
-
hasAnyValues = true
|
|
496
|
-
internalValueResult.update = this._update
|
|
497
|
-
}
|
|
498
|
-
return hasAnyValues ? internalValueResult : undefined
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
public set internalValue(value: UpdateResourceTimeouts | cdktf.IResolvable | undefined) {
|
|
502
|
-
if (value === undefined) {
|
|
503
|
-
this.isEmptyObject = false
|
|
504
|
-
this.resolvableValue = undefined
|
|
505
|
-
this._create = undefined
|
|
506
|
-
this._delete = undefined
|
|
507
|
-
this._read = undefined
|
|
508
|
-
this._update = undefined
|
|
509
|
-
} else if (cdktf.Tokenization.isResolvable(value)) {
|
|
510
|
-
this.isEmptyObject = false
|
|
511
|
-
this.resolvableValue = value
|
|
512
|
-
} else {
|
|
513
|
-
this.isEmptyObject = Object.keys(value).length === 0
|
|
514
|
-
this.resolvableValue = undefined
|
|
515
|
-
this._create = value.create
|
|
516
|
-
this._delete = value.delete
|
|
517
|
-
this._read = value.read
|
|
518
|
-
this._update = value.update
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
// create - computed: false, optional: true, required: false
|
|
523
|
-
private _create?: string
|
|
524
|
-
public get create() {
|
|
525
|
-
return this.getStringAttribute('create')
|
|
526
|
-
}
|
|
527
|
-
public set create(value: string) {
|
|
528
|
-
this._create = value
|
|
529
|
-
}
|
|
530
|
-
public resetCreate() {
|
|
531
|
-
this._create = undefined
|
|
532
|
-
}
|
|
533
|
-
// Temporarily expose input value. Use with caution.
|
|
534
|
-
public get createInput() {
|
|
535
|
-
return this._create
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
// delete - computed: false, optional: true, required: false
|
|
539
|
-
private _delete?: string
|
|
540
|
-
public get delete() {
|
|
541
|
-
return this.getStringAttribute('delete')
|
|
542
|
-
}
|
|
543
|
-
public set delete(value: string) {
|
|
544
|
-
this._delete = value
|
|
545
|
-
}
|
|
546
|
-
public resetDelete() {
|
|
547
|
-
this._delete = undefined
|
|
548
|
-
}
|
|
549
|
-
// Temporarily expose input value. Use with caution.
|
|
550
|
-
public get deleteInput() {
|
|
551
|
-
return this._delete
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
// read - computed: false, optional: true, required: false
|
|
555
|
-
private _read?: string
|
|
556
|
-
public get read() {
|
|
557
|
-
return this.getStringAttribute('read')
|
|
558
|
-
}
|
|
559
|
-
public set read(value: string) {
|
|
560
|
-
this._read = value
|
|
561
|
-
}
|
|
562
|
-
public resetRead() {
|
|
563
|
-
this._read = undefined
|
|
564
|
-
}
|
|
565
|
-
// Temporarily expose input value. Use with caution.
|
|
566
|
-
public get readInput() {
|
|
567
|
-
return this._read
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
// update - computed: false, optional: true, required: false
|
|
571
|
-
private _update?: string
|
|
572
|
-
public get update() {
|
|
573
|
-
return this.getStringAttribute('update')
|
|
574
|
-
}
|
|
575
|
-
public set update(value: string) {
|
|
576
|
-
this._update = value
|
|
577
|
-
}
|
|
578
|
-
public resetUpdate() {
|
|
579
|
-
this._update = undefined
|
|
580
|
-
}
|
|
581
|
-
// Temporarily expose input value. Use with caution.
|
|
582
|
-
public get updateInput() {
|
|
583
|
-
return this._update
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* Represents a {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource azapi_update_resource}
|
|
589
|
-
*/
|
|
590
|
-
export class UpdateResource extends cdktf.TerraformResource {
|
|
591
|
-
// =================
|
|
592
|
-
// STATIC PROPERTIES
|
|
593
|
-
// =================
|
|
594
|
-
public static readonly tfResourceType = 'azapi_update_resource'
|
|
595
|
-
|
|
596
|
-
// ==============
|
|
597
|
-
// STATIC Methods
|
|
598
|
-
// ==============
|
|
599
|
-
/**
|
|
600
|
-
* Generates CDKTF code for importing a UpdateResource resource upon running "cdktf plan <stack-name>"
|
|
601
|
-
* @param scope The scope in which to define this construct
|
|
602
|
-
* @param importToId The construct id used in the generated config for the UpdateResource to import
|
|
603
|
-
* @param importFromId The id of the existing UpdateResource that should be imported. Refer to the {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource#import import section} in the documentation of this resource for the id to use
|
|
604
|
-
* @param provider? Optional instance of the provider where the UpdateResource to import is found
|
|
605
|
-
*/
|
|
606
|
-
public static generateConfigForImport(
|
|
607
|
-
scope: Construct,
|
|
608
|
-
importToId: string,
|
|
609
|
-
importFromId: string,
|
|
610
|
-
provider?: cdktf.TerraformProvider
|
|
611
|
-
) {
|
|
612
|
-
return new cdktf.ImportableResource(scope, importToId, {
|
|
613
|
-
terraformResourceType: 'azapi_update_resource',
|
|
614
|
-
importId: importFromId,
|
|
615
|
-
provider,
|
|
616
|
-
})
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
// ===========
|
|
620
|
-
// INITIALIZER
|
|
621
|
-
// ===========
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* Create a new {@link https://registry.terraform.io/providers/azure/azapi/2.2.0/docs/resources/update_resource azapi_update_resource} Resource
|
|
625
|
-
*
|
|
626
|
-
* @param scope The scope in which to define this construct
|
|
627
|
-
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
628
|
-
* @param options UpdateResourceConfig
|
|
629
|
-
*/
|
|
630
|
-
public constructor(scope: Construct, id: string, config: UpdateResourceConfig) {
|
|
631
|
-
super(scope, id, {
|
|
632
|
-
terraformResourceType: 'azapi_update_resource',
|
|
633
|
-
terraformGeneratorMetadata: {
|
|
634
|
-
providerName: 'azapi',
|
|
635
|
-
providerVersion: '2.2.0',
|
|
636
|
-
providerVersionConstraint: '~> 2.2',
|
|
637
|
-
},
|
|
638
|
-
provider: config.provider,
|
|
639
|
-
dependsOn: config.dependsOn,
|
|
640
|
-
count: config.count,
|
|
641
|
-
lifecycle: config.lifecycle,
|
|
642
|
-
provisioners: config.provisioners,
|
|
643
|
-
connection: config.connection,
|
|
644
|
-
forEach: config.forEach,
|
|
645
|
-
})
|
|
646
|
-
this._body = config.body
|
|
647
|
-
this._ignoreCasing = config.ignoreCasing
|
|
648
|
-
this._ignoreMissingProperty = config.ignoreMissingProperty
|
|
649
|
-
this._locks = config.locks
|
|
650
|
-
this._name = config.name
|
|
651
|
-
this._parentId = config.parentId
|
|
652
|
-
this._readHeaders = config.readHeaders
|
|
653
|
-
this._readQueryParameters = config.readQueryParameters
|
|
654
|
-
this._resourceId = config.resourceId
|
|
655
|
-
this._responseExportValues = config.responseExportValues
|
|
656
|
-
this._retry.internalValue = config.retry
|
|
657
|
-
this._type = config.type
|
|
658
|
-
this._updateHeaders = config.updateHeaders
|
|
659
|
-
this._updateQueryParameters = config.updateQueryParameters
|
|
660
|
-
this._timeouts.internalValue = config.timeouts
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
// ==========
|
|
664
|
-
// ATTRIBUTES
|
|
665
|
-
// ==========
|
|
666
|
-
|
|
667
|
-
// body - computed: false, optional: true, required: false
|
|
668
|
-
private _body?: { [key: string]: any }
|
|
669
|
-
public get body() {
|
|
670
|
-
return this.getAnyMapAttribute('body')
|
|
671
|
-
}
|
|
672
|
-
public set body(value: { [key: string]: any }) {
|
|
673
|
-
this._body = value
|
|
674
|
-
}
|
|
675
|
-
public resetBody() {
|
|
676
|
-
this._body = undefined
|
|
677
|
-
}
|
|
678
|
-
// Temporarily expose input value. Use with caution.
|
|
679
|
-
public get bodyInput() {
|
|
680
|
-
return this._body
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
// id - computed: true, optional: false, required: false
|
|
684
|
-
public get id() {
|
|
685
|
-
return this.getStringAttribute('id')
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
// ignore_casing - computed: true, optional: true, required: false
|
|
689
|
-
private _ignoreCasing?: boolean | cdktf.IResolvable
|
|
690
|
-
public get ignoreCasing() {
|
|
691
|
-
return this.getBooleanAttribute('ignore_casing')
|
|
692
|
-
}
|
|
693
|
-
public set ignoreCasing(value: boolean | cdktf.IResolvable) {
|
|
694
|
-
this._ignoreCasing = value
|
|
695
|
-
}
|
|
696
|
-
public resetIgnoreCasing() {
|
|
697
|
-
this._ignoreCasing = undefined
|
|
698
|
-
}
|
|
699
|
-
// Temporarily expose input value. Use with caution.
|
|
700
|
-
public get ignoreCasingInput() {
|
|
701
|
-
return this._ignoreCasing
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
// ignore_missing_property - computed: true, optional: true, required: false
|
|
705
|
-
private _ignoreMissingProperty?: boolean | cdktf.IResolvable
|
|
706
|
-
public get ignoreMissingProperty() {
|
|
707
|
-
return this.getBooleanAttribute('ignore_missing_property')
|
|
708
|
-
}
|
|
709
|
-
public set ignoreMissingProperty(value: boolean | cdktf.IResolvable) {
|
|
710
|
-
this._ignoreMissingProperty = value
|
|
711
|
-
}
|
|
712
|
-
public resetIgnoreMissingProperty() {
|
|
713
|
-
this._ignoreMissingProperty = undefined
|
|
714
|
-
}
|
|
715
|
-
// Temporarily expose input value. Use with caution.
|
|
716
|
-
public get ignoreMissingPropertyInput() {
|
|
717
|
-
return this._ignoreMissingProperty
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
// locks - computed: false, optional: true, required: false
|
|
721
|
-
private _locks?: string[]
|
|
722
|
-
public get locks() {
|
|
723
|
-
return this.getListAttribute('locks')
|
|
724
|
-
}
|
|
725
|
-
public set locks(value: string[]) {
|
|
726
|
-
this._locks = value
|
|
727
|
-
}
|
|
728
|
-
public resetLocks() {
|
|
729
|
-
this._locks = undefined
|
|
730
|
-
}
|
|
731
|
-
// Temporarily expose input value. Use with caution.
|
|
732
|
-
public get locksInput() {
|
|
733
|
-
return this._locks
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
// name - computed: true, optional: true, required: false
|
|
737
|
-
private _name?: string
|
|
738
|
-
public get name() {
|
|
739
|
-
return this.getStringAttribute('name')
|
|
740
|
-
}
|
|
741
|
-
public set name(value: string) {
|
|
742
|
-
this._name = value
|
|
743
|
-
}
|
|
744
|
-
public resetName() {
|
|
745
|
-
this._name = undefined
|
|
746
|
-
}
|
|
747
|
-
// Temporarily expose input value. Use with caution.
|
|
748
|
-
public get nameInput() {
|
|
749
|
-
return this._name
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
// output - computed: true, optional: false, required: false
|
|
753
|
-
private _output = new cdktf.AnyMap(this, 'output')
|
|
754
|
-
public get output() {
|
|
755
|
-
return this._output
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
// parent_id - computed: true, optional: true, required: false
|
|
759
|
-
private _parentId?: string
|
|
760
|
-
public get parentId() {
|
|
761
|
-
return this.getStringAttribute('parent_id')
|
|
762
|
-
}
|
|
763
|
-
public set parentId(value: string) {
|
|
764
|
-
this._parentId = value
|
|
765
|
-
}
|
|
766
|
-
public resetParentId() {
|
|
767
|
-
this._parentId = undefined
|
|
768
|
-
}
|
|
769
|
-
// Temporarily expose input value. Use with caution.
|
|
770
|
-
public get parentIdInput() {
|
|
771
|
-
return this._parentId
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
// read_headers - computed: false, optional: true, required: false
|
|
775
|
-
private _readHeaders?: { [key: string]: string }
|
|
776
|
-
public get readHeaders() {
|
|
777
|
-
return this.getStringMapAttribute('read_headers')
|
|
778
|
-
}
|
|
779
|
-
public set readHeaders(value: { [key: string]: string }) {
|
|
780
|
-
this._readHeaders = value
|
|
781
|
-
}
|
|
782
|
-
public resetReadHeaders() {
|
|
783
|
-
this._readHeaders = undefined
|
|
784
|
-
}
|
|
785
|
-
// Temporarily expose input value. Use with caution.
|
|
786
|
-
public get readHeadersInput() {
|
|
787
|
-
return this._readHeaders
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
// read_query_parameters - computed: false, optional: true, required: false
|
|
791
|
-
private _readQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
|
|
792
|
-
public get readQueryParameters() {
|
|
793
|
-
return this.interpolationForAttribute('read_query_parameters')
|
|
794
|
-
}
|
|
795
|
-
public set readQueryParameters(value: { [key: string]: string[] } | cdktf.IResolvable) {
|
|
796
|
-
this._readQueryParameters = value
|
|
797
|
-
}
|
|
798
|
-
public resetReadQueryParameters() {
|
|
799
|
-
this._readQueryParameters = undefined
|
|
800
|
-
}
|
|
801
|
-
// Temporarily expose input value. Use with caution.
|
|
802
|
-
public get readQueryParametersInput() {
|
|
803
|
-
return this._readQueryParameters
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
// resource_id - computed: true, optional: true, required: false
|
|
807
|
-
private _resourceId?: string
|
|
808
|
-
public get resourceId() {
|
|
809
|
-
return this.getStringAttribute('resource_id')
|
|
810
|
-
}
|
|
811
|
-
public set resourceId(value: string) {
|
|
812
|
-
this._resourceId = value
|
|
813
|
-
}
|
|
814
|
-
public resetResourceId() {
|
|
815
|
-
this._resourceId = undefined
|
|
816
|
-
}
|
|
817
|
-
// Temporarily expose input value. Use with caution.
|
|
818
|
-
public get resourceIdInput() {
|
|
819
|
-
return this._resourceId
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
// response_export_values - computed: false, optional: true, required: false
|
|
823
|
-
private _responseExportValues?: { [key: string]: any }
|
|
824
|
-
public get responseExportValues() {
|
|
825
|
-
return this.getAnyMapAttribute('response_export_values')
|
|
826
|
-
}
|
|
827
|
-
public set responseExportValues(value: { [key: string]: any }) {
|
|
828
|
-
this._responseExportValues = value
|
|
829
|
-
}
|
|
830
|
-
public resetResponseExportValues() {
|
|
831
|
-
this._responseExportValues = undefined
|
|
832
|
-
}
|
|
833
|
-
// Temporarily expose input value. Use with caution.
|
|
834
|
-
public get responseExportValuesInput() {
|
|
835
|
-
return this._responseExportValues
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
// retry - computed: false, optional: true, required: false
|
|
839
|
-
private _retry = new UpdateResourceRetryOutputReference(this, 'retry')
|
|
840
|
-
public get retry() {
|
|
841
|
-
return this._retry
|
|
842
|
-
}
|
|
843
|
-
public putRetry(value: UpdateResourceRetry) {
|
|
844
|
-
this._retry.internalValue = value
|
|
845
|
-
}
|
|
846
|
-
public resetRetry() {
|
|
847
|
-
this._retry.internalValue = undefined
|
|
848
|
-
}
|
|
849
|
-
// Temporarily expose input value. Use with caution.
|
|
850
|
-
public get retryInput() {
|
|
851
|
-
return this._retry.internalValue
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
// type - computed: false, optional: false, required: true
|
|
855
|
-
private _type?: string
|
|
856
|
-
public get type() {
|
|
857
|
-
return this.getStringAttribute('type')
|
|
858
|
-
}
|
|
859
|
-
public set type(value: string) {
|
|
860
|
-
this._type = value
|
|
861
|
-
}
|
|
862
|
-
// Temporarily expose input value. Use with caution.
|
|
863
|
-
public get typeInput() {
|
|
864
|
-
return this._type
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
// update_headers - computed: false, optional: true, required: false
|
|
868
|
-
private _updateHeaders?: { [key: string]: string }
|
|
869
|
-
public get updateHeaders() {
|
|
870
|
-
return this.getStringMapAttribute('update_headers')
|
|
871
|
-
}
|
|
872
|
-
public set updateHeaders(value: { [key: string]: string }) {
|
|
873
|
-
this._updateHeaders = value
|
|
874
|
-
}
|
|
875
|
-
public resetUpdateHeaders() {
|
|
876
|
-
this._updateHeaders = undefined
|
|
877
|
-
}
|
|
878
|
-
// Temporarily expose input value. Use with caution.
|
|
879
|
-
public get updateHeadersInput() {
|
|
880
|
-
return this._updateHeaders
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
// update_query_parameters - computed: false, optional: true, required: false
|
|
884
|
-
private _updateQueryParameters?: { [key: string]: string[] } | cdktf.IResolvable
|
|
885
|
-
public get updateQueryParameters() {
|
|
886
|
-
return this.interpolationForAttribute('update_query_parameters')
|
|
887
|
-
}
|
|
888
|
-
public set updateQueryParameters(value: { [key: string]: string[] } | cdktf.IResolvable) {
|
|
889
|
-
this._updateQueryParameters = value
|
|
890
|
-
}
|
|
891
|
-
public resetUpdateQueryParameters() {
|
|
892
|
-
this._updateQueryParameters = undefined
|
|
893
|
-
}
|
|
894
|
-
// Temporarily expose input value. Use with caution.
|
|
895
|
-
public get updateQueryParametersInput() {
|
|
896
|
-
return this._updateQueryParameters
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
// timeouts - computed: false, optional: true, required: false
|
|
900
|
-
private _timeouts = new UpdateResourceTimeoutsOutputReference(this, 'timeouts')
|
|
901
|
-
public get timeouts() {
|
|
902
|
-
return this._timeouts
|
|
903
|
-
}
|
|
904
|
-
public putTimeouts(value: UpdateResourceTimeouts) {
|
|
905
|
-
this._timeouts.internalValue = value
|
|
906
|
-
}
|
|
907
|
-
public resetTimeouts() {
|
|
908
|
-
this._timeouts.internalValue = undefined
|
|
909
|
-
}
|
|
910
|
-
// Temporarily expose input value. Use with caution.
|
|
911
|
-
public get timeoutsInput() {
|
|
912
|
-
return this._timeouts.internalValue
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
// =========
|
|
916
|
-
// SYNTHESIS
|
|
917
|
-
// =========
|
|
918
|
-
|
|
919
|
-
protected synthesizeAttributes(): { [name: string]: any } {
|
|
920
|
-
return {
|
|
921
|
-
body: cdktf.hashMapper(cdktf.anyToTerraform)(this._body),
|
|
922
|
-
ignore_casing: cdktf.booleanToTerraform(this._ignoreCasing),
|
|
923
|
-
ignore_missing_property: cdktf.booleanToTerraform(this._ignoreMissingProperty),
|
|
924
|
-
locks: cdktf.listMapper(cdktf.stringToTerraform, false)(this._locks),
|
|
925
|
-
name: cdktf.stringToTerraform(this._name),
|
|
926
|
-
parent_id: cdktf.stringToTerraform(this._parentId),
|
|
927
|
-
read_headers: cdktf.hashMapper(cdktf.stringToTerraform)(this._readHeaders),
|
|
928
|
-
read_query_parameters: cdktf.hashMapper(cdktf.listMapper(cdktf.stringToTerraform, false))(
|
|
929
|
-
this._readQueryParameters
|
|
930
|
-
),
|
|
931
|
-
resource_id: cdktf.stringToTerraform(this._resourceId),
|
|
932
|
-
response_export_values: cdktf.hashMapper(cdktf.anyToTerraform)(this._responseExportValues),
|
|
933
|
-
retry: updateResourceRetryToTerraform(this._retry.internalValue),
|
|
934
|
-
type: cdktf.stringToTerraform(this._type),
|
|
935
|
-
update_headers: cdktf.hashMapper(cdktf.stringToTerraform)(this._updateHeaders),
|
|
936
|
-
update_query_parameters: cdktf.hashMapper(cdktf.listMapper(cdktf.stringToTerraform, false))(
|
|
937
|
-
this._updateQueryParameters
|
|
938
|
-
),
|
|
939
|
-
timeouts: updateResourceTimeoutsToTerraform(this._timeouts.internalValue),
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
protected synthesizeHclAttributes(): { [name: string]: any } {
|
|
944
|
-
const attrs = {
|
|
945
|
-
body: {
|
|
946
|
-
value: cdktf.hashMapperHcl(cdktf.anyToHclTerraform)(this._body),
|
|
947
|
-
isBlock: false,
|
|
948
|
-
type: 'map',
|
|
949
|
-
storageClassType: 'anyMap',
|
|
950
|
-
},
|
|
951
|
-
ignore_casing: {
|
|
952
|
-
value: cdktf.booleanToHclTerraform(this._ignoreCasing),
|
|
953
|
-
isBlock: false,
|
|
954
|
-
type: 'simple',
|
|
955
|
-
storageClassType: 'boolean',
|
|
956
|
-
},
|
|
957
|
-
ignore_missing_property: {
|
|
958
|
-
value: cdktf.booleanToHclTerraform(this._ignoreMissingProperty),
|
|
959
|
-
isBlock: false,
|
|
960
|
-
type: 'simple',
|
|
961
|
-
storageClassType: 'boolean',
|
|
962
|
-
},
|
|
963
|
-
locks: {
|
|
964
|
-
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._locks),
|
|
965
|
-
isBlock: false,
|
|
966
|
-
type: 'list',
|
|
967
|
-
storageClassType: 'stringList',
|
|
968
|
-
},
|
|
969
|
-
name: {
|
|
970
|
-
value: cdktf.stringToHclTerraform(this._name),
|
|
971
|
-
isBlock: false,
|
|
972
|
-
type: 'simple',
|
|
973
|
-
storageClassType: 'string',
|
|
974
|
-
},
|
|
975
|
-
parent_id: {
|
|
976
|
-
value: cdktf.stringToHclTerraform(this._parentId),
|
|
977
|
-
isBlock: false,
|
|
978
|
-
type: 'simple',
|
|
979
|
-
storageClassType: 'string',
|
|
980
|
-
},
|
|
981
|
-
read_headers: {
|
|
982
|
-
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._readHeaders),
|
|
983
|
-
isBlock: false,
|
|
984
|
-
type: 'map',
|
|
985
|
-
storageClassType: 'stringMap',
|
|
986
|
-
},
|
|
987
|
-
read_query_parameters: {
|
|
988
|
-
value: cdktf.hashMapperHcl(cdktf.listMapperHcl(cdktf.stringToHclTerraform, false))(this._readQueryParameters),
|
|
989
|
-
isBlock: false,
|
|
990
|
-
type: 'map',
|
|
991
|
-
storageClassType: 'stringListMap',
|
|
992
|
-
},
|
|
993
|
-
resource_id: {
|
|
994
|
-
value: cdktf.stringToHclTerraform(this._resourceId),
|
|
995
|
-
isBlock: false,
|
|
996
|
-
type: 'simple',
|
|
997
|
-
storageClassType: 'string',
|
|
998
|
-
},
|
|
999
|
-
response_export_values: {
|
|
1000
|
-
value: cdktf.hashMapperHcl(cdktf.anyToHclTerraform)(this._responseExportValues),
|
|
1001
|
-
isBlock: false,
|
|
1002
|
-
type: 'map',
|
|
1003
|
-
storageClassType: 'anyMap',
|
|
1004
|
-
},
|
|
1005
|
-
retry: {
|
|
1006
|
-
value: updateResourceRetryToHclTerraform(this._retry.internalValue),
|
|
1007
|
-
isBlock: true,
|
|
1008
|
-
type: 'struct',
|
|
1009
|
-
storageClassType: 'UpdateResourceRetry',
|
|
1010
|
-
},
|
|
1011
|
-
type: {
|
|
1012
|
-
value: cdktf.stringToHclTerraform(this._type),
|
|
1013
|
-
isBlock: false,
|
|
1014
|
-
type: 'simple',
|
|
1015
|
-
storageClassType: 'string',
|
|
1016
|
-
},
|
|
1017
|
-
update_headers: {
|
|
1018
|
-
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._updateHeaders),
|
|
1019
|
-
isBlock: false,
|
|
1020
|
-
type: 'map',
|
|
1021
|
-
storageClassType: 'stringMap',
|
|
1022
|
-
},
|
|
1023
|
-
update_query_parameters: {
|
|
1024
|
-
value: cdktf.hashMapperHcl(cdktf.listMapperHcl(cdktf.stringToHclTerraform, false))(this._updateQueryParameters),
|
|
1025
|
-
isBlock: false,
|
|
1026
|
-
type: 'map',
|
|
1027
|
-
storageClassType: 'stringListMap',
|
|
1028
|
-
},
|
|
1029
|
-
timeouts: {
|
|
1030
|
-
value: updateResourceTimeoutsToHclTerraform(this._timeouts.internalValue),
|
|
1031
|
-
isBlock: true,
|
|
1032
|
-
type: 'struct',
|
|
1033
|
-
storageClassType: 'UpdateResourceTimeouts',
|
|
1034
|
-
},
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
// remove undefined attributes
|
|
1038
|
-
return Object.fromEntries(
|
|
1039
|
-
Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)
|
|
1040
|
-
)
|
|
1041
|
-
}
|
|
1042
|
-
}
|