@cdktn/provider-generator 0.23.0 → 0.23.2
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__/constructs-maker.test.js +2 -2
- package/build/get/__tests__/generator/complex-computed-types.test.js +4 -3
- package/build/get/__tests__/generator/deep-nested-attributes.test.js +5 -4
- package/build/get/__tests__/generator/description-escaping.test.js +6 -5
- package/build/get/__tests__/generator/empty-provider-resources.test.js +4 -3
- package/build/get/__tests__/generator/export-sharding.test.js +5 -4
- 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 +18 -17
- package/build/get/__tests__/generator/nested-types.test.js +5 -4
- package/build/get/__tests__/generator/provider.test.js +5 -4
- package/build/get/__tests__/generator/resource-types.test.js +8 -7
- package/build/get/__tests__/generator/skipped-attributes.test.js +5 -4
- package/build/get/__tests__/generator/types.test.js +51 -28
- package/build/get/__tests__/generator/versions-file.test.js +4 -3
- package/build/get/__tests__/util.d.ts +9 -0
- package/build/get/__tests__/util.js +24 -2
- 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 +12 -9
- 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/build/get/generator/resource-parser.d.ts +1 -0
- package/build/get/generator/resource-parser.js +29 -3
- 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 +617 -617
- package/src/get/__tests__/generator/__snapshots__/complex-computed-types.test.ts.snap +1 -1
- package/src/get/__tests__/generator/__snapshots__/export-sharding.test.ts.snap +268 -268
- package/src/get/__tests__/generator/__snapshots__/module-generator.test.ts.snap +355 -355
- package/src/get/__tests__/generator/__snapshots__/nested-types.test.ts.snap +2 -2
- package/src/get/__tests__/generator/__snapshots__/resource-types.test.ts.snap +20 -20
- package/src/get/__tests__/generator/__snapshots__/skipped-attributes.test.ts.snap +3 -3
- package/src/get/__tests__/generator/__snapshots__/types.test.ts.snap +633 -25
- package/src/get/__tests__/generator/fixtures/case-insensitive-base-name-collision.test.fixture.json +82 -0
|
@@ -401,7 +401,7 @@ export class NestedTypesResourceArchiveRulesFilterList extends cdktn.ComplexList
|
|
|
401
401
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
402
402
|
*/
|
|
403
403
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
404
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
404
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
/**
|
|
@@ -546,7 +546,7 @@ export class NestedTypesResourceArchiveRulesList extends cdktn.ComplexList {
|
|
|
546
546
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
547
547
|
*/
|
|
548
548
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
549
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
549
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
/**
|
|
@@ -575,7 +575,7 @@ export class CloudfrontDistributionCacheBehaviorLambdaFunctionAssociationList ex
|
|
|
575
575
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
576
576
|
*/
|
|
577
577
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
578
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
578
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
/**
|
|
@@ -1106,7 +1106,7 @@ export class CloudfrontDistributionCacheBehaviorList extends cdktn.ComplexList {
|
|
|
1106
1106
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
1107
1107
|
*/
|
|
1108
1108
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
1109
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
1109
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
1112
1112
|
/**
|
|
@@ -1318,7 +1318,7 @@ export class CloudfrontDistributionCustomErrorResponseList extends cdktn.Complex
|
|
|
1318
1318
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
1319
1319
|
*/
|
|
1320
1320
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
1321
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
1321
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
1322
1322
|
}
|
|
1323
1323
|
|
|
1324
1324
|
/**
|
|
@@ -1787,7 +1787,7 @@ export class CloudfrontDistributionDefaultCacheBehaviorLambdaFunctionAssociation
|
|
|
1787
1787
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
1788
1788
|
*/
|
|
1789
1789
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
1790
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
1790
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
1791
1791
|
}
|
|
1792
1792
|
|
|
1793
1793
|
/**
|
|
@@ -2872,7 +2872,7 @@ export class CloudfrontDistributionOrderedCacheBehaviorLambdaFunctionAssociation
|
|
|
2872
2872
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
2873
2873
|
*/
|
|
2874
2874
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
2875
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
2875
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
2876
2876
|
}
|
|
2877
2877
|
|
|
2878
2878
|
/**
|
|
@@ -3403,7 +3403,7 @@ export class CloudfrontDistributionOrderedCacheBehaviorList extends cdktn.Comple
|
|
|
3403
3403
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3404
3404
|
*/
|
|
3405
3405
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3406
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3406
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3407
3407
|
}
|
|
3408
3408
|
|
|
3409
3409
|
/**
|
|
@@ -3546,7 +3546,7 @@ export class CloudfrontDistributionOriginCustomHeaderList extends cdktn.ComplexL
|
|
|
3546
3546
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
3547
3547
|
*/
|
|
3548
3548
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
3549
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
3549
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
3550
3550
|
}
|
|
3551
3551
|
|
|
3552
3552
|
/**
|
|
@@ -4145,7 +4145,7 @@ export class CloudfrontDistributionOriginList extends cdktn.ComplexList {
|
|
|
4145
4145
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
4146
4146
|
*/
|
|
4147
4147
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
4148
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4148
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
4149
4149
|
}
|
|
4150
4150
|
|
|
4151
4151
|
/**
|
|
@@ -4339,7 +4339,7 @@ export class CloudfrontDistributionOriginGroupMemberList extends cdktn.ComplexLi
|
|
|
4339
4339
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
4340
4340
|
*/
|
|
4341
4341
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
4342
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4342
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
4343
4343
|
}
|
|
4344
4344
|
|
|
4345
4345
|
/**
|
|
@@ -4516,7 +4516,7 @@ export class CloudfrontDistributionOriginGroupList extends cdktn.ComplexList {
|
|
|
4516
4516
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
4517
4517
|
*/
|
|
4518
4518
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
4519
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
4519
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
4520
4520
|
}
|
|
4521
4521
|
|
|
4522
4522
|
/**
|
|
@@ -5984,7 +5984,7 @@ export class SpansMetricGroupByList extends cdktn.ComplexList {
|
|
|
5984
5984
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
5985
5985
|
*/
|
|
5986
5986
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
5987
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
5987
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
5988
5988
|
}
|
|
5989
5989
|
|
|
5990
5990
|
/**
|
|
@@ -6670,7 +6670,7 @@ export class S3BucketCorsRuleList extends cdktn.ComplexList {
|
|
|
6670
6670
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
6671
6671
|
*/
|
|
6672
6672
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
6673
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
6673
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
6674
6674
|
}
|
|
6675
6675
|
|
|
6676
6676
|
/**
|
|
@@ -6882,7 +6882,7 @@ export class S3BucketGrantList extends cdktn.ComplexList {
|
|
|
6882
6882
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
6883
6883
|
*/
|
|
6884
6884
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
6885
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
6885
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
6886
6886
|
}
|
|
6887
6887
|
|
|
6888
6888
|
/**
|
|
@@ -7262,7 +7262,7 @@ export class S3BucketLifecycleRuleNoncurrentVersionTransitionList extends cdktn.
|
|
|
7262
7262
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
7263
7263
|
*/
|
|
7264
7264
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
7265
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
7265
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
7266
7266
|
}
|
|
7267
7267
|
|
|
7268
7268
|
/**
|
|
@@ -7441,7 +7441,7 @@ export class S3BucketLifecycleRuleTransitionList extends cdktn.ComplexList {
|
|
|
7441
7441
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
7442
7442
|
*/
|
|
7443
7443
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
7444
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
7444
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
7445
7445
|
}
|
|
7446
7446
|
|
|
7447
7447
|
/**
|
|
@@ -7829,7 +7829,7 @@ export class S3BucketLifecycleRuleList extends cdktn.ComplexList {
|
|
|
7829
7829
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
7830
7830
|
*/
|
|
7831
7831
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
7832
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
7832
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
7833
7833
|
}
|
|
7834
7834
|
|
|
7835
7835
|
/**
|
|
@@ -7975,7 +7975,7 @@ export class S3BucketLoggingList extends cdktn.ComplexList {
|
|
|
7975
7975
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
7976
7976
|
*/
|
|
7977
7977
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
7978
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
7978
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
7979
7979
|
}
|
|
7980
7980
|
|
|
7981
7981
|
/**
|
|
@@ -9218,7 +9218,7 @@ export class S3BucketReplicationConfigurationRulesList extends cdktn.ComplexList
|
|
|
9218
9218
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
9219
9219
|
*/
|
|
9220
9220
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
9221
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
9221
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
9222
9222
|
}
|
|
9223
9223
|
|
|
9224
9224
|
/**
|
|
@@ -10985,7 +10985,7 @@ export class SecurityGroupEgressList extends cdktn.ComplexList {
|
|
|
10985
10985
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
10986
10986
|
*/
|
|
10987
10987
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
10988
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
10988
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
10989
10989
|
}
|
|
10990
10990
|
|
|
10991
10991
|
/**
|
|
@@ -11365,7 +11365,7 @@ export class SecurityGroupIngressList extends cdktn.ComplexList {
|
|
|
11365
11365
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
11366
11366
|
*/
|
|
11367
11367
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
11368
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
11368
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
11369
11369
|
}
|
|
11370
11370
|
|
|
11371
11371
|
/**
|
|
@@ -100,7 +100,7 @@ export class DataAwsQuicksightAnalysisPermissionsList extends cdktn.ComplexList
|
|
|
100
100
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
101
101
|
*/
|
|
102
102
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
103
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
103
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -524,7 +524,7 @@ export class QuicksightTemplatePermissionsList extends cdktn.ComplexList {
|
|
|
524
524
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
525
525
|
*/
|
|
526
526
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
527
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
527
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
/**
|
|
@@ -667,7 +667,7 @@ export class QuicksightTemplateSourceEntitySourceAnalysisDataSetReferencesList e
|
|
|
667
667
|
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
668
668
|
*/
|
|
669
669
|
constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
|
|
670
|
-
super(terraformResource, terraformAttribute, wrapsSet)
|
|
670
|
+
super(terraformResource, terraformAttribute, wrapsSet);
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
/**
|