@cdktn/provider-generator 0.24.0-pre.3 → 0.24.0-pre.31
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/.spec.swcrc +22 -0
- package/build/get/__tests__/generator/import-style.test.d.ts +2 -0
- package/build/get/__tests__/generator/import-style.test.js +101 -0
- package/build/get/__tests__/generator/module-generator.test.js +12 -12
- package/build/get/constructs-maker.d.ts +5 -1
- package/build/get/constructs-maker.js +5 -2
- package/build/get/generator/emitter/struct-emitter.d.ts +2 -1
- package/build/get/generator/emitter/struct-emitter.js +14 -11
- package/build/get/generator/module-generator.js +3 -3
- package/build/get/generator/provider-generator.d.ts +9 -1
- package/build/get/generator/provider-generator.js +9 -6
- package/eslint.config.mjs +13 -0
- package/jest.config.js +16 -9
- package/package.json +8 -9
- package/src/__tests__/__snapshots__/edge-provider-schema.test.ts.snap +8 -8
- package/src/__tests__/__snapshots__/provider.test.ts.snap +2951 -2951
- package/src/get/__tests__/generator/__snapshots__/complex-computed-types.test.ts.snap +5 -5
- package/src/get/__tests__/generator/__snapshots__/export-sharding.test.ts.snap +3310 -3310
- package/src/get/__tests__/generator/__snapshots__/module-generator.test.ts.snap +355 -355
- package/src/get/__tests__/generator/__snapshots__/nested-types.test.ts.snap +8 -8
- package/src/get/__tests__/generator/__snapshots__/provider.test.ts.snap +8 -8
- package/src/get/__tests__/generator/__snapshots__/resource-types.test.ts.snap +126 -126
- package/src/get/__tests__/generator/__snapshots__/skipped-attributes.test.ts.snap +17 -17
- package/src/get/__tests__/generator/__snapshots__/types.test.ts.snap +65 -65
|
@@ -657,12 +657,12 @@ export class DataOciLoadBalancerBackendsetsA extends cdktn.TerraformDataSource {
|
|
|
657
657
|
|
|
658
658
|
exports[`case-insensitive base name collision: index.ts 1`] = `
|
|
659
659
|
"// generated by cdktn get
|
|
660
|
-
export * as loadBalancerBackendSet from './load-balancer-backend-set';
|
|
661
|
-
export * as loadBalancerBackendsetA from './load-balancer-backendset-a';
|
|
662
|
-
export * as dataOciDevopsRepositoryMirrorRecord from './data-oci-devops-repository-mirror-record';
|
|
663
|
-
export * as dataOciDevopsRepositoryMirrorrecordHistory from './data-oci-devops-repository-mirrorrecord-history';
|
|
664
|
-
export * as dataOciLoadBalancerBackendSets from './data-oci-load-balancer-backend-sets';
|
|
665
|
-
export * as dataOciLoadBalancerBackendsetsA from './data-oci-load-balancer-backendsets-a';
|
|
660
|
+
export * as loadBalancerBackendSet from './load-balancer-backend-set/index';
|
|
661
|
+
export * as loadBalancerBackendsetA from './load-balancer-backendset-a/index';
|
|
662
|
+
export * as dataOciDevopsRepositoryMirrorRecord from './data-oci-devops-repository-mirror-record/index';
|
|
663
|
+
export * as dataOciDevopsRepositoryMirrorrecordHistory from './data-oci-devops-repository-mirrorrecord-history/index';
|
|
664
|
+
export * as dataOciLoadBalancerBackendSets from './data-oci-load-balancer-backend-sets/index';
|
|
665
|
+
export * as dataOciLoadBalancerBackendsetsA from './data-oci-load-balancer-backendsets-a/index';
|
|
666
666
|
|
|
667
667
|
"
|
|
668
668
|
`;
|
|
@@ -920,7 +920,7 @@ export interface ComputedComplexEgress {
|
|
|
920
920
|
export function computedComplexEgressToTerraform(struct?: ComputedComplexEgress): any {
|
|
921
921
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
922
922
|
if (cdktn.isComplexElement(struct)) {
|
|
923
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
923
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
924
924
|
}
|
|
925
925
|
return {
|
|
926
926
|
}
|
|
@@ -930,7 +930,7 @@ export function computedComplexEgressToTerraform(struct?: ComputedComplexEgress)
|
|
|
930
930
|
export function computedComplexEgressToHclTerraform(struct?: ComputedComplexEgress): any {
|
|
931
931
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
932
932
|
if (cdktn.isComplexElement(struct)) {
|
|
933
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
933
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
934
934
|
}
|
|
935
935
|
const attrs = {
|
|
936
936
|
};
|
|
@@ -1019,7 +1019,7 @@ export class ComputedComplexEgressList extends cdktn.ComplexList {
|
|
|
1019
1019
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
1020
1020
|
*/
|
|
1021
1021
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
1022
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
1022
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
1025
|
/**
|
|
@@ -1126,7 +1126,7 @@ export interface ComputedComplexNestedResourcesAutoscalingGroups {
|
|
|
1126
1126
|
export function computedComplexNestedResourcesAutoscalingGroupsToTerraform(struct?: ComputedComplexNestedResourcesAutoscalingGroups): any {
|
|
1127
1127
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1128
1128
|
if (cdktn.isComplexElement(struct)) {
|
|
1129
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1129
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1130
1130
|
}
|
|
1131
1131
|
return {
|
|
1132
1132
|
}
|
|
@@ -1136,7 +1136,7 @@ export function computedComplexNestedResourcesAutoscalingGroupsToTerraform(struc
|
|
|
1136
1136
|
export function computedComplexNestedResourcesAutoscalingGroupsToHclTerraform(struct?: ComputedComplexNestedResourcesAutoscalingGroups): any {
|
|
1137
1137
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1138
1138
|
if (cdktn.isComplexElement(struct)) {
|
|
1139
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1139
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1140
1140
|
}
|
|
1141
1141
|
const attrs = {
|
|
1142
1142
|
};
|
|
@@ -1185,7 +1185,7 @@ export class ComputedComplexNestedResourcesAutoscalingGroupsList extends cdktn.C
|
|
|
1185
1185
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
1186
1186
|
*/
|
|
1187
1187
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
1188
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
1188
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
1189
1189
|
}
|
|
1190
1190
|
|
|
1191
1191
|
/**
|
|
@@ -1201,7 +1201,7 @@ export interface ComputedComplexNestedResources {
|
|
|
1201
1201
|
export function computedComplexNestedResourcesToTerraform(struct?: ComputedComplexNestedResources): any {
|
|
1202
1202
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1203
1203
|
if (cdktn.isComplexElement(struct)) {
|
|
1204
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1204
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1205
1205
|
}
|
|
1206
1206
|
return {
|
|
1207
1207
|
}
|
|
@@ -1211,7 +1211,7 @@ export function computedComplexNestedResourcesToTerraform(struct?: ComputedCompl
|
|
|
1211
1211
|
export function computedComplexNestedResourcesToHclTerraform(struct?: ComputedComplexNestedResources): any {
|
|
1212
1212
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1213
1213
|
if (cdktn.isComplexElement(struct)) {
|
|
1214
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1214
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1215
1215
|
}
|
|
1216
1216
|
const attrs = {
|
|
1217
1217
|
};
|
|
@@ -1266,7 +1266,7 @@ export class ComputedComplexNestedResourcesList extends cdktn.ComplexList {
|
|
|
1266
1266
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
1267
1267
|
*/
|
|
1268
1268
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
1269
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
1269
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
1272
|
/**
|
|
@@ -1379,7 +1379,7 @@ export interface BlockTypeNestedComputedListInputsStartingPositionConfiguration
|
|
|
1379
1379
|
export function blockTypeNestedComputedListInputsStartingPositionConfigurationToTerraform(struct?: BlockTypeNestedComputedListInputsStartingPositionConfiguration): any {
|
|
1380
1380
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1381
1381
|
if (cdktn.isComplexElement(struct)) {
|
|
1382
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1382
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1383
1383
|
}
|
|
1384
1384
|
return {
|
|
1385
1385
|
}
|
|
@@ -1389,7 +1389,7 @@ export function blockTypeNestedComputedListInputsStartingPositionConfigurationTo
|
|
|
1389
1389
|
export function blockTypeNestedComputedListInputsStartingPositionConfigurationToHclTerraform(struct?: BlockTypeNestedComputedListInputsStartingPositionConfiguration): any {
|
|
1390
1390
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1391
1391
|
if (cdktn.isComplexElement(struct)) {
|
|
1392
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1392
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1393
1393
|
}
|
|
1394
1394
|
const attrs = {
|
|
1395
1395
|
};
|
|
@@ -1438,7 +1438,7 @@ export class BlockTypeNestedComputedListInputsStartingPositionConfigurationList
|
|
|
1438
1438
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
1439
1439
|
*/
|
|
1440
1440
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
1441
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
1441
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
1442
1442
|
}
|
|
1443
1443
|
|
|
1444
1444
|
/**
|
|
@@ -1458,7 +1458,7 @@ export interface BlockTypeNestedComputedListInputs {
|
|
|
1458
1458
|
export function blockTypeNestedComputedListInputsToTerraform(struct?: BlockTypeNestedComputedListInputs | cdktn.IResolvable): any {
|
|
1459
1459
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1460
1460
|
if (cdktn.isComplexElement(struct)) {
|
|
1461
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1461
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1462
1462
|
}
|
|
1463
1463
|
return {
|
|
1464
1464
|
name_prefix: cdktn.stringToTerraform(struct!.namePrefix),
|
|
@@ -1469,7 +1469,7 @@ export function blockTypeNestedComputedListInputsToTerraform(struct?: BlockTypeN
|
|
|
1469
1469
|
export function blockTypeNestedComputedListInputsToHclTerraform(struct?: BlockTypeNestedComputedListInputs | cdktn.IResolvable): any {
|
|
1470
1470
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1471
1471
|
if (cdktn.isComplexElement(struct)) {
|
|
1472
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1472
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1473
1473
|
}
|
|
1474
1474
|
const attrs = {
|
|
1475
1475
|
name_prefix: {
|
|
@@ -1567,7 +1567,7 @@ export class BlockTypeNestedComputedListInputsList extends cdktn.ComplexList {
|
|
|
1567
1567
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
1568
1568
|
*/
|
|
1569
1569
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
1570
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
1570
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
1571
1571
|
}
|
|
1572
1572
|
|
|
1573
1573
|
/**
|
|
@@ -1734,7 +1734,7 @@ export interface ComputedOptionalComplexEgress {
|
|
|
1734
1734
|
export function computedOptionalComplexEgressToTerraform(struct?: ComputedOptionalComplexEgress | cdktn.IResolvable): any {
|
|
1735
1735
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1736
1736
|
if (cdktn.isComplexElement(struct)) {
|
|
1737
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1737
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1738
1738
|
}
|
|
1739
1739
|
return {
|
|
1740
1740
|
cidr_blocks: cdktn.listMapper(cdktn.stringToTerraform, false)(struct!.cidrBlocks),
|
|
@@ -1753,7 +1753,7 @@ export function computedOptionalComplexEgressToTerraform(struct?: ComputedOption
|
|
|
1753
1753
|
export function computedOptionalComplexEgressToHclTerraform(struct?: ComputedOptionalComplexEgress | cdktn.IResolvable): any {
|
|
1754
1754
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
1755
1755
|
if (cdktn.isComplexElement(struct)) {
|
|
1756
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
1756
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
1757
1757
|
}
|
|
1758
1758
|
const attrs = {
|
|
1759
1759
|
cidr_blocks: {
|
|
@@ -2062,7 +2062,7 @@ export class ComputedOptionalComplexEgressList extends cdktn.ComplexList {
|
|
|
2062
2062
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
2063
2063
|
*/
|
|
2064
2064
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
2065
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
2065
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
2066
2066
|
}
|
|
2067
2067
|
|
|
2068
2068
|
/**
|
|
@@ -2199,7 +2199,7 @@ export interface DeeplyNestedBlockTypesLifecycleRuleExpiration {
|
|
|
2199
2199
|
export function deeplyNestedBlockTypesLifecycleRuleExpirationToTerraform(struct?: DeeplyNestedBlockTypesLifecycleRuleExpirationOutputReference | DeeplyNestedBlockTypesLifecycleRuleExpiration): any {
|
|
2200
2200
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
2201
2201
|
if (cdktn.isComplexElement(struct)) {
|
|
2202
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
2202
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
2203
2203
|
}
|
|
2204
2204
|
return {
|
|
2205
2205
|
date: cdktn.stringToTerraform(struct!.date),
|
|
@@ -2210,7 +2210,7 @@ export function deeplyNestedBlockTypesLifecycleRuleExpirationToTerraform(struct?
|
|
|
2210
2210
|
export function deeplyNestedBlockTypesLifecycleRuleExpirationToHclTerraform(struct?: DeeplyNestedBlockTypesLifecycleRuleExpirationOutputReference | DeeplyNestedBlockTypesLifecycleRuleExpiration): any {
|
|
2211
2211
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
2212
2212
|
if (cdktn.isComplexElement(struct)) {
|
|
2213
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
2213
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
2214
2214
|
}
|
|
2215
2215
|
const attrs = {
|
|
2216
2216
|
date: {
|
|
@@ -2289,7 +2289,7 @@ export interface DeeplyNestedBlockTypesLifecycleRule {
|
|
|
2289
2289
|
export function deeplyNestedBlockTypesLifecycleRuleToTerraform(struct?: DeeplyNestedBlockTypesLifecycleRule | cdktn.IResolvable): any {
|
|
2290
2290
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
2291
2291
|
if (cdktn.isComplexElement(struct)) {
|
|
2292
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
2292
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
2293
2293
|
}
|
|
2294
2294
|
return {
|
|
2295
2295
|
abort_incomplete_multipart_upload_days: cdktn.numberToTerraform(struct!.abortIncompleteMultipartUploadDays),
|
|
@@ -2301,7 +2301,7 @@ export function deeplyNestedBlockTypesLifecycleRuleToTerraform(struct?: DeeplyNe
|
|
|
2301
2301
|
export function deeplyNestedBlockTypesLifecycleRuleToHclTerraform(struct?: DeeplyNestedBlockTypesLifecycleRule | cdktn.IResolvable): any {
|
|
2302
2302
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
2303
2303
|
if (cdktn.isComplexElement(struct)) {
|
|
2304
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
2304
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
2305
2305
|
}
|
|
2306
2306
|
const attrs = {
|
|
2307
2307
|
abort_incomplete_multipart_upload_days: {
|
|
@@ -2414,7 +2414,7 @@ export class DeeplyNestedBlockTypesLifecycleRuleList extends cdktn.ComplexList {
|
|
|
2414
2414
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
2415
2415
|
*/
|
|
2416
2416
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
2417
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
2417
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
2418
2418
|
}
|
|
2419
2419
|
|
|
2420
2420
|
/**
|
|
@@ -2979,13 +2979,13 @@ export class FunctionResource extends cdktn.TerraformResource {
|
|
|
2979
2979
|
|
|
2980
2980
|
exports[`incompatible resource names: index.ts 1`] = `
|
|
2981
2981
|
"// generated by cdktn get
|
|
2982
|
-
export * as stringResource from './string-resource';
|
|
2983
|
-
export * as objectResource from './object-resource';
|
|
2984
|
-
export * as functionResource from './function-resource';
|
|
2985
|
-
export * as staticResource from './static-resource';
|
|
2986
|
-
export * as providerResource from './provider-resource';
|
|
2987
|
-
export * as licenseResource from './license-resource';
|
|
2988
|
-
export * as versionResource from './version-resource';
|
|
2982
|
+
export * as stringResource from './string-resource/index';
|
|
2983
|
+
export * as objectResource from './object-resource/index';
|
|
2984
|
+
export * as functionResource from './function-resource/index';
|
|
2985
|
+
export * as staticResource from './static-resource/index';
|
|
2986
|
+
export * as providerResource from './provider-resource/index';
|
|
2987
|
+
export * as licenseResource from './license-resource/index';
|
|
2988
|
+
export * as versionResource from './version-resource/index';
|
|
2989
2989
|
|
|
2990
2990
|
"
|
|
2991
2991
|
`;
|
|
@@ -3710,7 +3710,7 @@ export interface ComplexLl {
|
|
|
3710
3710
|
export function complexLlToTerraform(struct?: ComplexLl): any {
|
|
3711
3711
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3712
3712
|
if (cdktn.isComplexElement(struct)) {
|
|
3713
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3713
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3714
3714
|
}
|
|
3715
3715
|
return {
|
|
3716
3716
|
}
|
|
@@ -3720,7 +3720,7 @@ export function complexLlToTerraform(struct?: ComplexLl): any {
|
|
|
3720
3720
|
export function complexLlToHclTerraform(struct?: ComplexLl): any {
|
|
3721
3721
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3722
3722
|
if (cdktn.isComplexElement(struct)) {
|
|
3723
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3723
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3724
3724
|
}
|
|
3725
3725
|
const attrs = {
|
|
3726
3726
|
};
|
|
@@ -3774,7 +3774,7 @@ export class ComplexLlListList extends cdktn.MapList {
|
|
|
3774
3774
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3775
3775
|
*/
|
|
3776
3776
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3777
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3777
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3778
3778
|
}
|
|
3779
3779
|
|
|
3780
3780
|
/**
|
|
@@ -3793,7 +3793,7 @@ export class ComplexLlList extends cdktn.ComplexList {
|
|
|
3793
3793
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3794
3794
|
*/
|
|
3795
3795
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3796
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3796
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3797
3797
|
}
|
|
3798
3798
|
|
|
3799
3799
|
/**
|
|
@@ -3809,7 +3809,7 @@ export interface ComplexLs {
|
|
|
3809
3809
|
export function complexLsToTerraform(struct?: ComplexLs): any {
|
|
3810
3810
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3811
3811
|
if (cdktn.isComplexElement(struct)) {
|
|
3812
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3812
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3813
3813
|
}
|
|
3814
3814
|
return {
|
|
3815
3815
|
}
|
|
@@ -3819,7 +3819,7 @@ export function complexLsToTerraform(struct?: ComplexLs): any {
|
|
|
3819
3819
|
export function complexLsToHclTerraform(struct?: ComplexLs): any {
|
|
3820
3820
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3821
3821
|
if (cdktn.isComplexElement(struct)) {
|
|
3822
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3822
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3823
3823
|
}
|
|
3824
3824
|
const attrs = {
|
|
3825
3825
|
};
|
|
@@ -3873,7 +3873,7 @@ export class ComplexLsListList extends cdktn.MapList {
|
|
|
3873
3873
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3874
3874
|
*/
|
|
3875
3875
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3876
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3876
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
3879
3879
|
/**
|
|
@@ -3892,7 +3892,7 @@ export class ComplexLsList extends cdktn.ComplexList {
|
|
|
3892
3892
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3893
3893
|
*/
|
|
3894
3894
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3895
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3895
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3896
3896
|
}
|
|
3897
3897
|
|
|
3898
3898
|
/**
|
|
@@ -3908,7 +3908,7 @@ export interface ComplexSl {
|
|
|
3908
3908
|
export function complexSlToTerraform(struct?: ComplexSl): any {
|
|
3909
3909
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3910
3910
|
if (cdktn.isComplexElement(struct)) {
|
|
3911
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3911
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3912
3912
|
}
|
|
3913
3913
|
return {
|
|
3914
3914
|
}
|
|
@@ -3918,7 +3918,7 @@ export function complexSlToTerraform(struct?: ComplexSl): any {
|
|
|
3918
3918
|
export function complexSlToHclTerraform(struct?: ComplexSl): any {
|
|
3919
3919
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3920
3920
|
if (cdktn.isComplexElement(struct)) {
|
|
3921
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3921
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3922
3922
|
}
|
|
3923
3923
|
const attrs = {
|
|
3924
3924
|
};
|
|
@@ -3972,7 +3972,7 @@ export class ComplexSlListList extends cdktn.MapList {
|
|
|
3972
3972
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3973
3973
|
*/
|
|
3974
3974
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3975
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3975
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3976
3976
|
}
|
|
3977
3977
|
|
|
3978
3978
|
/**
|
|
@@ -3991,7 +3991,7 @@ export class ComplexSlList extends cdktn.ComplexList {
|
|
|
3991
3991
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3992
3992
|
*/
|
|
3993
3993
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3994
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3994
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3995
3995
|
}
|
|
3996
3996
|
|
|
3997
3997
|
/**
|
|
@@ -4007,7 +4007,7 @@ export interface ComplexSs {
|
|
|
4007
4007
|
export function complexSsToTerraform(struct?: ComplexSs): any {
|
|
4008
4008
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4009
4009
|
if (cdktn.isComplexElement(struct)) {
|
|
4010
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4010
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4011
4011
|
}
|
|
4012
4012
|
return {
|
|
4013
4013
|
}
|
|
@@ -4017,7 +4017,7 @@ export function complexSsToTerraform(struct?: ComplexSs): any {
|
|
|
4017
4017
|
export function complexSsToHclTerraform(struct?: ComplexSs): any {
|
|
4018
4018
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4019
4019
|
if (cdktn.isComplexElement(struct)) {
|
|
4020
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4020
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4021
4021
|
}
|
|
4022
4022
|
const attrs = {
|
|
4023
4023
|
};
|
|
@@ -4071,7 +4071,7 @@ export class ComplexSsListList extends cdktn.MapList {
|
|
|
4071
4071
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
4072
4072
|
*/
|
|
4073
4073
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
4074
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4074
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
4075
4075
|
}
|
|
4076
4076
|
|
|
4077
4077
|
/**
|
|
@@ -4090,7 +4090,7 @@ export class ComplexSsList extends cdktn.ComplexList {
|
|
|
4090
4090
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
4091
4091
|
*/
|
|
4092
4092
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
4093
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4093
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
4094
4094
|
}
|
|
4095
4095
|
|
|
4096
4096
|
/**
|
|
@@ -4221,7 +4221,7 @@ export interface DataAirbyteSourceSchemaCatalogSyncCatalogSourceSchema {
|
|
|
4221
4221
|
export function dataAirbyteSourceSchemaCatalogSyncCatalogSourceSchemaToTerraform(struct?: DataAirbyteSourceSchemaCatalogSyncCatalogSourceSchema): any {
|
|
4222
4222
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4223
4223
|
if (cdktn.isComplexElement(struct)) {
|
|
4224
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4224
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4225
4225
|
}
|
|
4226
4226
|
return {
|
|
4227
4227
|
}
|
|
@@ -4231,7 +4231,7 @@ export function dataAirbyteSourceSchemaCatalogSyncCatalogSourceSchemaToTerraform
|
|
|
4231
4231
|
export function dataAirbyteSourceSchemaCatalogSyncCatalogSourceSchemaToHclTerraform(struct?: DataAirbyteSourceSchemaCatalogSyncCatalogSourceSchema): any {
|
|
4232
4232
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4233
4233
|
if (cdktn.isComplexElement(struct)) {
|
|
4234
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4234
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4235
4235
|
}
|
|
4236
4236
|
const attrs = {
|
|
4237
4237
|
};
|
|
@@ -4276,7 +4276,7 @@ export interface DataAirbyteSourceSchemaCatalogSyncCatalog {
|
|
|
4276
4276
|
export function dataAirbyteSourceSchemaCatalogSyncCatalogToTerraform(struct?: DataAirbyteSourceSchemaCatalogSyncCatalog): any {
|
|
4277
4277
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4278
4278
|
if (cdktn.isComplexElement(struct)) {
|
|
4279
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4279
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4280
4280
|
}
|
|
4281
4281
|
return {
|
|
4282
4282
|
}
|
|
@@ -4286,7 +4286,7 @@ export function dataAirbyteSourceSchemaCatalogSyncCatalogToTerraform(struct?: Da
|
|
|
4286
4286
|
export function dataAirbyteSourceSchemaCatalogSyncCatalogToHclTerraform(struct?: DataAirbyteSourceSchemaCatalogSyncCatalog): any {
|
|
4287
4287
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4288
4288
|
if (cdktn.isComplexElement(struct)) {
|
|
4289
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4289
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4290
4290
|
}
|
|
4291
4291
|
const attrs = {
|
|
4292
4292
|
};
|
|
@@ -4336,7 +4336,7 @@ export class DataAirbyteSourceSchemaCatalogSyncCatalogList extends cdktn.Complex
|
|
|
4336
4336
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
4337
4337
|
*/
|
|
4338
4338
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
4339
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4339
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
4340
4340
|
}
|
|
4341
4341
|
|
|
4342
4342
|
/**
|
|
@@ -6003,7 +6003,7 @@ export interface BlockTypeSetListTimeoutsSet {
|
|
|
6003
6003
|
export function blockTypeSetListTimeoutsSetToTerraform(struct?: BlockTypeSetListTimeoutsSet | cdktn.IResolvable): any {
|
|
6004
6004
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6005
6005
|
if (cdktn.isComplexElement(struct)) {
|
|
6006
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6006
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6007
6007
|
}
|
|
6008
6008
|
return {
|
|
6009
6009
|
create: cdktn.stringToTerraform(struct!.create),
|
|
@@ -6014,7 +6014,7 @@ export function blockTypeSetListTimeoutsSetToTerraform(struct?: BlockTypeSetList
|
|
|
6014
6014
|
export function blockTypeSetListTimeoutsSetToHclTerraform(struct?: BlockTypeSetListTimeoutsSet | cdktn.IResolvable): any {
|
|
6015
6015
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6016
6016
|
if (cdktn.isComplexElement(struct)) {
|
|
6017
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6017
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6018
6018
|
}
|
|
6019
6019
|
const attrs = {
|
|
6020
6020
|
create: {
|
|
@@ -6099,7 +6099,7 @@ export class BlockTypeSetListTimeoutsSetList extends cdktn.ComplexList {
|
|
|
6099
6099
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
6100
6100
|
*/
|
|
6101
6101
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
6102
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
6102
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
6103
6103
|
}
|
|
6104
6104
|
|
|
6105
6105
|
/**
|
|
@@ -6119,7 +6119,7 @@ export interface BlockTypeSetListTimeoutsListStruct {
|
|
|
6119
6119
|
export function blockTypeSetListTimeoutsListStructToTerraform(struct?: BlockTypeSetListTimeoutsListStruct | cdktn.IResolvable): any {
|
|
6120
6120
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6121
6121
|
if (cdktn.isComplexElement(struct)) {
|
|
6122
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6122
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6123
6123
|
}
|
|
6124
6124
|
return {
|
|
6125
6125
|
create: cdktn.stringToTerraform(struct!.create),
|
|
@@ -6130,7 +6130,7 @@ export function blockTypeSetListTimeoutsListStructToTerraform(struct?: BlockType
|
|
|
6130
6130
|
export function blockTypeSetListTimeoutsListStructToHclTerraform(struct?: BlockTypeSetListTimeoutsListStruct | cdktn.IResolvable): any {
|
|
6131
6131
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6132
6132
|
if (cdktn.isComplexElement(struct)) {
|
|
6133
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6133
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6134
6134
|
}
|
|
6135
6135
|
const attrs = {
|
|
6136
6136
|
create: {
|
|
@@ -6215,7 +6215,7 @@ export class BlockTypeSetListTimeoutsListStructList extends cdktn.ComplexList {
|
|
|
6215
6215
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
6216
6216
|
*/
|
|
6217
6217
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
6218
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
6218
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
6219
6219
|
}
|
|
6220
6220
|
|
|
6221
6221
|
/**
|
|
@@ -6376,7 +6376,7 @@ export interface SingleBlockTypeTimeouts {
|
|
|
6376
6376
|
export function singleBlockTypeTimeoutsToTerraform(struct?: SingleBlockTypeTimeouts | cdktn.IResolvable): any {
|
|
6377
6377
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6378
6378
|
if (cdktn.isComplexElement(struct)) {
|
|
6379
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6379
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6380
6380
|
}
|
|
6381
6381
|
return {
|
|
6382
6382
|
create: cdktn.stringToTerraform(struct!.create),
|
|
@@ -6387,7 +6387,7 @@ export function singleBlockTypeTimeoutsToTerraform(struct?: SingleBlockTypeTimeo
|
|
|
6387
6387
|
export function singleBlockTypeTimeoutsToHclTerraform(struct?: SingleBlockTypeTimeouts | cdktn.IResolvable): any {
|
|
6388
6388
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6389
6389
|
if (cdktn.isComplexElement(struct)) {
|
|
6390
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6390
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6391
6391
|
}
|
|
6392
6392
|
const attrs = {
|
|
6393
6393
|
create: {
|