@cdktn/provider-generator 0.24.0-pre.9 → 0.24.0-pre.91
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/LICENSE +355 -0
- package/README.md +1 -1
- package/build/__tests__/edge-provider-schema/builder.d.ts +9 -3
- package/build/__tests__/edge-provider-schema/builder.js +6 -3
- package/build/__tests__/edge-provider-schema/cli.js +8 -3
- package/build/__tests__/edge-provider-schema/index.js +119 -1
- package/build/__tests__/provider.test.js +4 -1
- package/build/get/__tests__/generator/ephemeral-resources.test.d.ts +2 -0
- package/build/get/__tests__/generator/ephemeral-resources.test.js +49 -0
- package/build/get/__tests__/generator/module-generator.test.js +12 -12
- package/build/get/__tests__/generator/provider-functions.test.d.ts +2 -0
- package/build/get/__tests__/generator/provider-functions.test.js +176 -0
- package/build/get/__tests__/generator/provider-source-matching.test.d.ts +2 -0
- package/build/get/__tests__/generator/provider-source-matching.test.js +45 -0
- package/build/get/__tests__/generator/provider.test.js +9 -1
- package/build/get/__tests__/generator/supported-stored-classes.test.d.ts +2 -0
- package/build/get/__tests__/generator/supported-stored-classes.test.js +137 -0
- package/build/get/__tests__/generator/types.test.js +44 -1
- package/build/get/__tests__/generator/write-only.test.d.ts +2 -0
- package/build/get/__tests__/generator/write-only.test.js +65 -0
- package/build/get/__tests__/target-versions.test.d.ts +2 -0
- package/build/get/__tests__/target-versions.test.js +171 -0
- package/build/get/constructs-maker.d.ts +8 -1
- package/build/get/constructs-maker.js +46 -10
- package/build/get/generator/emitter/attributes-emitter.d.ts +13 -2
- package/build/get/generator/emitter/attributes-emitter.js +71 -5
- package/build/get/generator/emitter/index.d.ts +1 -0
- package/build/get/generator/emitter/index.js +2 -1
- package/build/get/generator/emitter/provider-functions-emitter.d.ts +11 -0
- package/build/get/generator/emitter/provider-functions-emitter.js +94 -0
- package/build/get/generator/emitter/resource-emitter.d.ts +5 -1
- package/build/get/generator/emitter/resource-emitter.js +83 -7
- package/build/get/generator/emitter/struct-emitter.js +10 -10
- package/build/get/generator/models/attribute-model.d.ts +4 -0
- package/build/get/generator/models/attribute-model.js +50 -4
- package/build/get/generator/models/attribute-type-model.d.ts +24 -0
- package/build/get/generator/models/attribute-type-model.js +91 -5
- package/build/get/generator/models/index.d.ts +1 -0
- package/build/get/generator/models/index.js +2 -1
- package/build/get/generator/models/provider-function-model.d.ts +102 -0
- package/build/get/generator/models/provider-function-model.js +667 -0
- package/build/get/generator/models/resource-model.d.ts +3 -0
- package/build/get/generator/models/resource-model.js +13 -4
- package/build/get/generator/models/struct.d.ts +2 -0
- package/build/get/generator/models/struct.js +6 -2
- package/build/get/generator/models/supported-stored-classes.d.ts +5 -0
- package/build/get/generator/models/supported-stored-classes.js +86 -0
- package/build/get/generator/module-generator.js +3 -3
- package/build/get/generator/provider-generator.d.ts +2 -0
- package/build/get/generator/provider-generator.js +41 -6
- package/build/get/generator/resource-parser.js +3 -1
- package/jest.config.js +16 -9
- package/package.json +28 -27
- package/package.sh +1 -1
- package/src/__tests__/__snapshots__/edge-provider-schema.test.ts.snap +4 -0
- package/src/__tests__/__snapshots__/provider.test.ts.snap +2828 -2828
- package/src/__tests__/edge-provider-schema/builder.ts +201 -0
- package/src/__tests__/edge-provider-schema/cli.ts +51 -0
- package/src/__tests__/edge-provider-schema/index.ts +284 -0
- package/src/__tests__/edge-provider-schema.test.ts +24 -0
- package/src/__tests__/provider.test.ts +183 -0
- package/src/get/__tests__/constructs-maker.test.ts +118 -0
- package/src/get/__tests__/generator/__snapshots__/complex-computed-types.test.ts.snap +5 -5
- package/src/get/__tests__/generator/__snapshots__/ephemeral-resources.test.ts.snap +524 -0
- 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-functions.test.ts.snap +444 -0
- 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 +201 -52
- package/src/get/__tests__/generator/__snapshots__/write-only.test.ts.snap +262 -0
- package/src/get/__tests__/generator/complex-computed-types.test.ts +28 -0
- package/src/get/__tests__/generator/deep-nested-attributes.test.ts +56 -0
- package/src/get/__tests__/generator/description-escaping.test.ts +84 -0
- package/src/get/__tests__/generator/empty-provider-resources.test.ts +26 -0
- package/src/get/__tests__/generator/ephemeral-resources.test.ts +46 -0
- package/src/get/__tests__/generator/export-sharding.test.ts +169 -0
- package/src/get/__tests__/generator/fixtures/deeply-nested-collections.test.fixture.json +129 -0
- package/src/get/__tests__/generator/fixtures/ephemeral-resources.test.fixture.json +160 -0
- package/src/get/__tests__/generator/fixtures/provider-functions-collision.test.fixture.json +31 -0
- package/src/get/__tests__/generator/fixtures/provider-functions-synthetic.test.fixture.json +192 -0
- package/src/get/__tests__/generator/fixtures/provider-functions.test.fixture.json +170 -0
- package/src/get/__tests__/generator/fixtures/write-only.test.fixture.json +58 -0
- package/src/get/__tests__/generator/import-style.test.ts +129 -0
- package/src/get/__tests__/generator/module-generator.test.ts +528 -0
- package/src/get/__tests__/generator/nested-types.test.ts +54 -0
- package/src/get/__tests__/generator/provider-functions.test.ts +262 -0
- package/src/get/__tests__/generator/provider-source-matching.test.ts +84 -0
- package/src/get/__tests__/generator/provider.test.ts +59 -0
- package/src/get/__tests__/generator/resource-types.test.ts +118 -0
- package/src/get/__tests__/generator/skipped-attributes.test.ts +72 -0
- package/src/get/__tests__/generator/supported-stored-classes.test.ts +147 -0
- package/src/get/__tests__/generator/types.test.ts +686 -0
- package/src/get/__tests__/generator/versions-file.test.ts +72 -0
- package/src/get/__tests__/generator/write-only.test.ts +71 -0
- package/src/get/__tests__/target-versions.test.ts +206 -0
- package/src/get/__tests__/util.ts +75 -0
- package/src/get/constructs-maker.ts +885 -0
- package/src/get/generator/custom-defaults.ts +493 -0
- package/src/get/generator/emitter/attributes-emitter.ts +316 -0
- package/src/get/generator/emitter/index.ts +6 -0
- package/src/get/generator/emitter/provider-functions-emitter.ts +117 -0
- package/src/get/generator/emitter/resource-emitter.ts +330 -0
- package/src/get/generator/emitter/struct-emitter.ts +683 -0
- package/src/get/generator/loop-detection.ts +81 -0
- package/src/get/generator/models/attribute-model.ts +273 -0
- package/src/get/generator/models/attribute-type-model.ts +560 -0
- package/src/get/generator/models/index.ts +8 -0
- package/src/get/generator/models/provider-function-model.ts +872 -0
- package/src/get/generator/models/resource-model.ts +183 -0
- package/src/get/generator/models/scope.ts +54 -0
- package/src/get/generator/models/struct.ts +124 -0
- package/src/get/generator/models/supported-stored-classes.ts +88 -0
- package/src/get/generator/module-generator.ts +234 -0
- package/src/get/generator/provider-generator.ts +428 -0
- package/src/get/generator/resource-parser.ts +764 -0
- package/src/get/generator/sanitized-comments.ts +49 -0
- package/src/get/generator/skipped-attributes.ts +27 -0
- package/src/index.ts +40 -0
- package/src/util.ts +26 -0
- package/tsconfig.json +1 -2
|
@@ -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
|
/**
|
|
@@ -2172,6 +2172,155 @@ export class ComputedOptionalComplex extends cdktn.TerraformResource {
|
|
|
2172
2172
|
"
|
|
2173
2173
|
`;
|
|
2174
2174
|
|
|
2175
|
+
exports[`deeply nested (unsupported) collection attribute types 1`] = `
|
|
2176
|
+
"// https://registry.terraform.io/providers/hashicorp/test/latest/docs/data-sources/deeply_nested_collections
|
|
2177
|
+
// generated from terraform resource schema
|
|
2178
|
+
|
|
2179
|
+
import { Construct } from 'constructs';
|
|
2180
|
+
import * as cdktn from 'cdktn';
|
|
2181
|
+
|
|
2182
|
+
// Configuration
|
|
2183
|
+
|
|
2184
|
+
export interface DataDeeplyNestedCollectionsConfig extends cdktn.TerraformMetaArguments {
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
/**
|
|
2188
|
+
* Represents a {@link https://registry.terraform.io/providers/hashicorp/test/latest/docs/data-sources/deeply_nested_collections deeply_nested_collections}
|
|
2189
|
+
*/
|
|
2190
|
+
export class DataDeeplyNestedCollections extends cdktn.TerraformDataSource {
|
|
2191
|
+
|
|
2192
|
+
// =================
|
|
2193
|
+
// STATIC PROPERTIES
|
|
2194
|
+
// =================
|
|
2195
|
+
public static readonly tfResourceType = "deeply_nested_collections";
|
|
2196
|
+
|
|
2197
|
+
// ==============
|
|
2198
|
+
// STATIC Methods
|
|
2199
|
+
// ==============
|
|
2200
|
+
/**
|
|
2201
|
+
* Generates CDKTN code for importing a DataDeeplyNestedCollections resource upon running "cdktn plan <stack-name>"
|
|
2202
|
+
* @param scope The scope in which to define this construct
|
|
2203
|
+
* @param importToId The construct id used in the generated config for the DataDeeplyNestedCollections to import
|
|
2204
|
+
* @param importFromId The id of the existing DataDeeplyNestedCollections that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/test/latest/docs/data-sources/deeply_nested_collections#import import section} in the documentation of this resource for the id to use
|
|
2205
|
+
* @param provider? Optional instance of the provider where the DataDeeplyNestedCollections to import is found
|
|
2206
|
+
*/
|
|
2207
|
+
public static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktn.TerraformProvider) {
|
|
2208
|
+
return new cdktn.ImportableResource(scope, importToId, { terraformResourceType: "deeply_nested_collections", importId: importFromId, provider });
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
// ===========
|
|
2212
|
+
// INITIALIZER
|
|
2213
|
+
// ===========
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* Create a new {@link https://registry.terraform.io/providers/hashicorp/test/latest/docs/data-sources/deeply_nested_collections deeply_nested_collections} Data Source
|
|
2217
|
+
*
|
|
2218
|
+
* @param scope The scope in which to define this construct
|
|
2219
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
2220
|
+
* @param options DataDeeplyNestedCollectionsConfig = {}
|
|
2221
|
+
*/
|
|
2222
|
+
public constructor(scope: Construct, id: string, config: DataDeeplyNestedCollectionsConfig = {}) {
|
|
2223
|
+
super(scope, id, {
|
|
2224
|
+
terraformResourceType: 'deeply_nested_collections',
|
|
2225
|
+
terraformGeneratorMetadata: {
|
|
2226
|
+
providerName: 'test'
|
|
2227
|
+
},
|
|
2228
|
+
provider: config.provider,
|
|
2229
|
+
dependsOn: config.dependsOn,
|
|
2230
|
+
count: config.count,
|
|
2231
|
+
lifecycle: config.lifecycle,
|
|
2232
|
+
provisioners: config.provisioners,
|
|
2233
|
+
connection: config.connection,
|
|
2234
|
+
forEach: config.forEach
|
|
2235
|
+
});
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
// ==========
|
|
2239
|
+
// ATTRIBUTES
|
|
2240
|
+
// ==========
|
|
2241
|
+
|
|
2242
|
+
// map_map_list_string - computed: true, optional: false, required: false
|
|
2243
|
+
private _mapMapListString = new cdktn.AnyMapMap(this, "map_map_list_string");
|
|
2244
|
+
/**
|
|
2245
|
+
* Terraform type: \`map(map(list(string)))\`.
|
|
2246
|
+
* This nesting is deeper than the typed wrapper classes in the core cdktn package; it is exposed as \`AnyMapMap\` and values below that boundary are untyped tokens.
|
|
2247
|
+
*/
|
|
2248
|
+
public get mapMapListString() {
|
|
2249
|
+
return this._mapMapListString;
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
// list_map_map_string - computed: true, optional: false, required: false
|
|
2253
|
+
private _listMapMapString = new cdktn.AnyMapList(this, "list_map_map_string", false);
|
|
2254
|
+
/**
|
|
2255
|
+
* Terraform type: \`list(map(map(string)))\`.
|
|
2256
|
+
* This nesting is deeper than the typed wrapper classes in the core cdktn package; it is exposed as \`AnyMapList\` and values below that boundary are untyped tokens.
|
|
2257
|
+
*/
|
|
2258
|
+
public get listMapMapString() {
|
|
2259
|
+
return this._listMapMapString;
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
// set_map_list_number - computed: true, optional: false, required: false
|
|
2263
|
+
private _setMapListNumber = new cdktn.AnyMapList(this, "set_map_list_number", true);
|
|
2264
|
+
/**
|
|
2265
|
+
* Terraform type: \`set(map(list(number)))\`.
|
|
2266
|
+
* This nesting is deeper than the typed wrapper classes in the core cdktn package; it is exposed as \`AnyMapList\` and values below that boundary are untyped tokens.
|
|
2267
|
+
*/
|
|
2268
|
+
public get setMapListNumber() {
|
|
2269
|
+
return this._setMapListNumber;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
// map_list_string - computed: true, optional: false, required: false
|
|
2273
|
+
private _mapListString = new cdktn.StringListMap(this, "map_list_string");
|
|
2274
|
+
public get mapListString() {
|
|
2275
|
+
return this._mapListString;
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
// map_map_number - computed: true, optional: false, required: false
|
|
2279
|
+
private _mapMapNumber = new cdktn.NumberMapMap(this, "map_map_number");
|
|
2280
|
+
public get mapMapNumber() {
|
|
2281
|
+
return this._mapMapNumber;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
// map_map_bool - computed: true, optional: false, required: false
|
|
2285
|
+
private _mapMapBool = new cdktn.BooleanMapMap(this, "map_map_bool");
|
|
2286
|
+
public get mapMapBool() {
|
|
2287
|
+
return this._mapMapBool;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
// map_map_string - computed: true, optional: false, required: false
|
|
2291
|
+
private _mapMapString = new cdktn.StringMapMap(this, "map_map_string");
|
|
2292
|
+
public get mapMapString() {
|
|
2293
|
+
return this._mapMapString;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
// map_map_map_list_string - computed: true, optional: false, required: false
|
|
2297
|
+
private _mapMapMapListString = new cdktn.AnyMapMap(this, "map_map_map_list_string");
|
|
2298
|
+
/**
|
|
2299
|
+
* Terraform type: \`map(map(map(list(string))))\`.
|
|
2300
|
+
* This nesting is deeper than the typed wrapper classes in the core cdktn package; it is exposed as \`AnyMapMap\` and values below that boundary are untyped tokens.
|
|
2301
|
+
*/
|
|
2302
|
+
public get mapMapMapListString() {
|
|
2303
|
+
return this._mapMapMapListString;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
// =========
|
|
2307
|
+
// SYNTHESIS
|
|
2308
|
+
// =========
|
|
2309
|
+
|
|
2310
|
+
protected synthesizeAttributes(): { [name: string]: any } {
|
|
2311
|
+
return {
|
|
2312
|
+
};
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
protected synthesizeHclAttributes(): { [name: string]: any } {
|
|
2316
|
+
const attrs = {
|
|
2317
|
+
};
|
|
2318
|
+
return attrs;
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
"
|
|
2322
|
+
`;
|
|
2323
|
+
|
|
2175
2324
|
exports[`deeply nested block types 1`] = `
|
|
2176
2325
|
"// https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/deeply_nested_block_types
|
|
2177
2326
|
// generated from terraform resource schema
|
|
@@ -2199,7 +2348,7 @@ export interface DeeplyNestedBlockTypesLifecycleRuleExpiration {
|
|
|
2199
2348
|
export function deeplyNestedBlockTypesLifecycleRuleExpirationToTerraform(struct?: DeeplyNestedBlockTypesLifecycleRuleExpirationOutputReference | DeeplyNestedBlockTypesLifecycleRuleExpiration): any {
|
|
2200
2349
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
2201
2350
|
if (cdktn.isComplexElement(struct)) {
|
|
2202
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
2351
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
2203
2352
|
}
|
|
2204
2353
|
return {
|
|
2205
2354
|
date: cdktn.stringToTerraform(struct!.date),
|
|
@@ -2210,7 +2359,7 @@ export function deeplyNestedBlockTypesLifecycleRuleExpirationToTerraform(struct?
|
|
|
2210
2359
|
export function deeplyNestedBlockTypesLifecycleRuleExpirationToHclTerraform(struct?: DeeplyNestedBlockTypesLifecycleRuleExpirationOutputReference | DeeplyNestedBlockTypesLifecycleRuleExpiration): any {
|
|
2211
2360
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
2212
2361
|
if (cdktn.isComplexElement(struct)) {
|
|
2213
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
2362
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
2214
2363
|
}
|
|
2215
2364
|
const attrs = {
|
|
2216
2365
|
date: {
|
|
@@ -2289,7 +2438,7 @@ export interface DeeplyNestedBlockTypesLifecycleRule {
|
|
|
2289
2438
|
export function deeplyNestedBlockTypesLifecycleRuleToTerraform(struct?: DeeplyNestedBlockTypesLifecycleRule | cdktn.IResolvable): any {
|
|
2290
2439
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
2291
2440
|
if (cdktn.isComplexElement(struct)) {
|
|
2292
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
2441
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
2293
2442
|
}
|
|
2294
2443
|
return {
|
|
2295
2444
|
abort_incomplete_multipart_upload_days: cdktn.numberToTerraform(struct!.abortIncompleteMultipartUploadDays),
|
|
@@ -2301,7 +2450,7 @@ export function deeplyNestedBlockTypesLifecycleRuleToTerraform(struct?: DeeplyNe
|
|
|
2301
2450
|
export function deeplyNestedBlockTypesLifecycleRuleToHclTerraform(struct?: DeeplyNestedBlockTypesLifecycleRule | cdktn.IResolvable): any {
|
|
2302
2451
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
2303
2452
|
if (cdktn.isComplexElement(struct)) {
|
|
2304
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
2453
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
2305
2454
|
}
|
|
2306
2455
|
const attrs = {
|
|
2307
2456
|
abort_incomplete_multipart_upload_days: {
|
|
@@ -2414,7 +2563,7 @@ export class DeeplyNestedBlockTypesLifecycleRuleList extends cdktn.ComplexList {
|
|
|
2414
2563
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
2415
2564
|
*/
|
|
2416
2565
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
2417
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
2566
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
2418
2567
|
}
|
|
2419
2568
|
|
|
2420
2569
|
/**
|
|
@@ -3710,7 +3859,7 @@ export interface ComplexLl {
|
|
|
3710
3859
|
export function complexLlToTerraform(struct?: ComplexLl): any {
|
|
3711
3860
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3712
3861
|
if (cdktn.isComplexElement(struct)) {
|
|
3713
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3862
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3714
3863
|
}
|
|
3715
3864
|
return {
|
|
3716
3865
|
}
|
|
@@ -3720,7 +3869,7 @@ export function complexLlToTerraform(struct?: ComplexLl): any {
|
|
|
3720
3869
|
export function complexLlToHclTerraform(struct?: ComplexLl): any {
|
|
3721
3870
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3722
3871
|
if (cdktn.isComplexElement(struct)) {
|
|
3723
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3872
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3724
3873
|
}
|
|
3725
3874
|
const attrs = {
|
|
3726
3875
|
};
|
|
@@ -3774,7 +3923,7 @@ export class ComplexLlListList extends cdktn.MapList {
|
|
|
3774
3923
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3775
3924
|
*/
|
|
3776
3925
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3777
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3926
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3778
3927
|
}
|
|
3779
3928
|
|
|
3780
3929
|
/**
|
|
@@ -3793,7 +3942,7 @@ export class ComplexLlList extends cdktn.ComplexList {
|
|
|
3793
3942
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3794
3943
|
*/
|
|
3795
3944
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3796
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3945
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3797
3946
|
}
|
|
3798
3947
|
|
|
3799
3948
|
/**
|
|
@@ -3809,7 +3958,7 @@ export interface ComplexLs {
|
|
|
3809
3958
|
export function complexLsToTerraform(struct?: ComplexLs): any {
|
|
3810
3959
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3811
3960
|
if (cdktn.isComplexElement(struct)) {
|
|
3812
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3961
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3813
3962
|
}
|
|
3814
3963
|
return {
|
|
3815
3964
|
}
|
|
@@ -3819,7 +3968,7 @@ export function complexLsToTerraform(struct?: ComplexLs): any {
|
|
|
3819
3968
|
export function complexLsToHclTerraform(struct?: ComplexLs): any {
|
|
3820
3969
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3821
3970
|
if (cdktn.isComplexElement(struct)) {
|
|
3822
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
3971
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3823
3972
|
}
|
|
3824
3973
|
const attrs = {
|
|
3825
3974
|
};
|
|
@@ -3873,7 +4022,7 @@ export class ComplexLsListList extends cdktn.MapList {
|
|
|
3873
4022
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3874
4023
|
*/
|
|
3875
4024
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3876
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4025
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3877
4026
|
}
|
|
3878
4027
|
|
|
3879
4028
|
/**
|
|
@@ -3892,7 +4041,7 @@ export class ComplexLsList extends cdktn.ComplexList {
|
|
|
3892
4041
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3893
4042
|
*/
|
|
3894
4043
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3895
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4044
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3896
4045
|
}
|
|
3897
4046
|
|
|
3898
4047
|
/**
|
|
@@ -3908,7 +4057,7 @@ export interface ComplexSl {
|
|
|
3908
4057
|
export function complexSlToTerraform(struct?: ComplexSl): any {
|
|
3909
4058
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3910
4059
|
if (cdktn.isComplexElement(struct)) {
|
|
3911
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4060
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3912
4061
|
}
|
|
3913
4062
|
return {
|
|
3914
4063
|
}
|
|
@@ -3918,7 +4067,7 @@ export function complexSlToTerraform(struct?: ComplexSl): any {
|
|
|
3918
4067
|
export function complexSlToHclTerraform(struct?: ComplexSl): any {
|
|
3919
4068
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
3920
4069
|
if (cdktn.isComplexElement(struct)) {
|
|
3921
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4070
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
3922
4071
|
}
|
|
3923
4072
|
const attrs = {
|
|
3924
4073
|
};
|
|
@@ -3972,7 +4121,7 @@ export class ComplexSlListList extends cdktn.MapList {
|
|
|
3972
4121
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3973
4122
|
*/
|
|
3974
4123
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3975
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4124
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3976
4125
|
}
|
|
3977
4126
|
|
|
3978
4127
|
/**
|
|
@@ -3991,7 +4140,7 @@ export class ComplexSlList extends cdktn.ComplexList {
|
|
|
3991
4140
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3992
4141
|
*/
|
|
3993
4142
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3994
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4143
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3995
4144
|
}
|
|
3996
4145
|
|
|
3997
4146
|
/**
|
|
@@ -4007,7 +4156,7 @@ export interface ComplexSs {
|
|
|
4007
4156
|
export function complexSsToTerraform(struct?: ComplexSs): any {
|
|
4008
4157
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4009
4158
|
if (cdktn.isComplexElement(struct)) {
|
|
4010
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4159
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4011
4160
|
}
|
|
4012
4161
|
return {
|
|
4013
4162
|
}
|
|
@@ -4017,7 +4166,7 @@ export function complexSsToTerraform(struct?: ComplexSs): any {
|
|
|
4017
4166
|
export function complexSsToHclTerraform(struct?: ComplexSs): any {
|
|
4018
4167
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4019
4168
|
if (cdktn.isComplexElement(struct)) {
|
|
4020
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4169
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4021
4170
|
}
|
|
4022
4171
|
const attrs = {
|
|
4023
4172
|
};
|
|
@@ -4071,7 +4220,7 @@ export class ComplexSsListList extends cdktn.MapList {
|
|
|
4071
4220
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
4072
4221
|
*/
|
|
4073
4222
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
4074
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4223
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
4075
4224
|
}
|
|
4076
4225
|
|
|
4077
4226
|
/**
|
|
@@ -4090,7 +4239,7 @@ export class ComplexSsList extends cdktn.ComplexList {
|
|
|
4090
4239
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
4091
4240
|
*/
|
|
4092
4241
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
4093
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4242
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
4094
4243
|
}
|
|
4095
4244
|
|
|
4096
4245
|
/**
|
|
@@ -4221,7 +4370,7 @@ export interface DataAirbyteSourceSchemaCatalogSyncCatalogSourceSchema {
|
|
|
4221
4370
|
export function dataAirbyteSourceSchemaCatalogSyncCatalogSourceSchemaToTerraform(struct?: DataAirbyteSourceSchemaCatalogSyncCatalogSourceSchema): any {
|
|
4222
4371
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4223
4372
|
if (cdktn.isComplexElement(struct)) {
|
|
4224
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4373
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4225
4374
|
}
|
|
4226
4375
|
return {
|
|
4227
4376
|
}
|
|
@@ -4231,7 +4380,7 @@ export function dataAirbyteSourceSchemaCatalogSyncCatalogSourceSchemaToTerraform
|
|
|
4231
4380
|
export function dataAirbyteSourceSchemaCatalogSyncCatalogSourceSchemaToHclTerraform(struct?: DataAirbyteSourceSchemaCatalogSyncCatalogSourceSchema): any {
|
|
4232
4381
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4233
4382
|
if (cdktn.isComplexElement(struct)) {
|
|
4234
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4383
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4235
4384
|
}
|
|
4236
4385
|
const attrs = {
|
|
4237
4386
|
};
|
|
@@ -4276,7 +4425,7 @@ export interface DataAirbyteSourceSchemaCatalogSyncCatalog {
|
|
|
4276
4425
|
export function dataAirbyteSourceSchemaCatalogSyncCatalogToTerraform(struct?: DataAirbyteSourceSchemaCatalogSyncCatalog): any {
|
|
4277
4426
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4278
4427
|
if (cdktn.isComplexElement(struct)) {
|
|
4279
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4428
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4280
4429
|
}
|
|
4281
4430
|
return {
|
|
4282
4431
|
}
|
|
@@ -4286,7 +4435,7 @@ export function dataAirbyteSourceSchemaCatalogSyncCatalogToTerraform(struct?: Da
|
|
|
4286
4435
|
export function dataAirbyteSourceSchemaCatalogSyncCatalogToHclTerraform(struct?: DataAirbyteSourceSchemaCatalogSyncCatalog): any {
|
|
4287
4436
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
4288
4437
|
if (cdktn.isComplexElement(struct)) {
|
|
4289
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
4438
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
4290
4439
|
}
|
|
4291
4440
|
const attrs = {
|
|
4292
4441
|
};
|
|
@@ -4336,7 +4485,7 @@ export class DataAirbyteSourceSchemaCatalogSyncCatalogList extends cdktn.Complex
|
|
|
4336
4485
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
4337
4486
|
*/
|
|
4338
4487
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
4339
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4488
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
4340
4489
|
}
|
|
4341
4490
|
|
|
4342
4491
|
/**
|
|
@@ -6003,7 +6152,7 @@ export interface BlockTypeSetListTimeoutsSet {
|
|
|
6003
6152
|
export function blockTypeSetListTimeoutsSetToTerraform(struct?: BlockTypeSetListTimeoutsSet | cdktn.IResolvable): any {
|
|
6004
6153
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6005
6154
|
if (cdktn.isComplexElement(struct)) {
|
|
6006
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6155
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6007
6156
|
}
|
|
6008
6157
|
return {
|
|
6009
6158
|
create: cdktn.stringToTerraform(struct!.create),
|
|
@@ -6014,7 +6163,7 @@ export function blockTypeSetListTimeoutsSetToTerraform(struct?: BlockTypeSetList
|
|
|
6014
6163
|
export function blockTypeSetListTimeoutsSetToHclTerraform(struct?: BlockTypeSetListTimeoutsSet | cdktn.IResolvable): any {
|
|
6015
6164
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6016
6165
|
if (cdktn.isComplexElement(struct)) {
|
|
6017
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6166
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6018
6167
|
}
|
|
6019
6168
|
const attrs = {
|
|
6020
6169
|
create: {
|
|
@@ -6099,7 +6248,7 @@ export class BlockTypeSetListTimeoutsSetList extends cdktn.ComplexList {
|
|
|
6099
6248
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
6100
6249
|
*/
|
|
6101
6250
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
6102
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
6251
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
6103
6252
|
}
|
|
6104
6253
|
|
|
6105
6254
|
/**
|
|
@@ -6119,7 +6268,7 @@ export interface BlockTypeSetListTimeoutsListStruct {
|
|
|
6119
6268
|
export function blockTypeSetListTimeoutsListStructToTerraform(struct?: BlockTypeSetListTimeoutsListStruct | cdktn.IResolvable): any {
|
|
6120
6269
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6121
6270
|
if (cdktn.isComplexElement(struct)) {
|
|
6122
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6271
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6123
6272
|
}
|
|
6124
6273
|
return {
|
|
6125
6274
|
create: cdktn.stringToTerraform(struct!.create),
|
|
@@ -6130,7 +6279,7 @@ export function blockTypeSetListTimeoutsListStructToTerraform(struct?: BlockType
|
|
|
6130
6279
|
export function blockTypeSetListTimeoutsListStructToHclTerraform(struct?: BlockTypeSetListTimeoutsListStruct | cdktn.IResolvable): any {
|
|
6131
6280
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6132
6281
|
if (cdktn.isComplexElement(struct)) {
|
|
6133
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6282
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6134
6283
|
}
|
|
6135
6284
|
const attrs = {
|
|
6136
6285
|
create: {
|
|
@@ -6215,7 +6364,7 @@ export class BlockTypeSetListTimeoutsListStructList extends cdktn.ComplexList {
|
|
|
6215
6364
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
6216
6365
|
*/
|
|
6217
6366
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
6218
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
6367
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
6219
6368
|
}
|
|
6220
6369
|
|
|
6221
6370
|
/**
|
|
@@ -6376,7 +6525,7 @@ export interface SingleBlockTypeTimeouts {
|
|
|
6376
6525
|
export function singleBlockTypeTimeoutsToTerraform(struct?: SingleBlockTypeTimeouts | cdktn.IResolvable): any {
|
|
6377
6526
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6378
6527
|
if (cdktn.isComplexElement(struct)) {
|
|
6379
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6528
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6380
6529
|
}
|
|
6381
6530
|
return {
|
|
6382
6531
|
create: cdktn.stringToTerraform(struct!.create),
|
|
@@ -6387,7 +6536,7 @@ export function singleBlockTypeTimeoutsToTerraform(struct?: SingleBlockTypeTimeo
|
|
|
6387
6536
|
export function singleBlockTypeTimeoutsToHclTerraform(struct?: SingleBlockTypeTimeouts | cdktn.IResolvable): any {
|
|
6388
6537
|
if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
|
|
6389
6538
|
if (cdktn.isComplexElement(struct)) {
|
|
6390
|
-
throw new Error("A complex element was used as configuration, this is not supported: https://
|
|
6539
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
|
|
6391
6540
|
}
|
|
6392
6541
|
const attrs = {
|
|
6393
6542
|
create: {
|