@cdktn/provider-generator 0.24.0-pre.3 → 0.24.0-pre.30

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.
Files changed (24) hide show
  1. package/.spec.swcrc +22 -0
  2. package/build/get/__tests__/generator/import-style.test.d.ts +2 -0
  3. package/build/get/__tests__/generator/import-style.test.js +101 -0
  4. package/build/get/__tests__/generator/module-generator.test.js +12 -12
  5. package/build/get/constructs-maker.d.ts +5 -1
  6. package/build/get/constructs-maker.js +5 -2
  7. package/build/get/generator/emitter/struct-emitter.d.ts +2 -1
  8. package/build/get/generator/emitter/struct-emitter.js +14 -11
  9. package/build/get/generator/module-generator.js +3 -3
  10. package/build/get/generator/provider-generator.d.ts +9 -1
  11. package/build/get/generator/provider-generator.js +9 -6
  12. package/eslint.config.mjs +13 -0
  13. package/jest.config.js +16 -9
  14. package/package.json +8 -9
  15. package/src/__tests__/__snapshots__/edge-provider-schema.test.ts.snap +8 -8
  16. package/src/__tests__/__snapshots__/provider.test.ts.snap +2951 -2951
  17. package/src/get/__tests__/generator/__snapshots__/complex-computed-types.test.ts.snap +5 -5
  18. package/src/get/__tests__/generator/__snapshots__/export-sharding.test.ts.snap +3310 -3310
  19. package/src/get/__tests__/generator/__snapshots__/module-generator.test.ts.snap +355 -355
  20. package/src/get/__tests__/generator/__snapshots__/nested-types.test.ts.snap +8 -8
  21. package/src/get/__tests__/generator/__snapshots__/provider.test.ts.snap +8 -8
  22. package/src/get/__tests__/generator/__snapshots__/resource-types.test.ts.snap +126 -126
  23. package/src/get/__tests__/generator/__snapshots__/skipped-attributes.test.ts.snap +17 -17
  24. package/src/get/__tests__/generator/__snapshots__/types.test.ts.snap +65 -65
@@ -62,7 +62,7 @@ export interface AcmCertificateDomainValidationOptions {
62
62
  export function acmCertificateDomainValidationOptionsToTerraform(struct?: AcmCertificateDomainValidationOptions): any {
63
63
  if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
64
64
  if (cdktn.isComplexElement(struct)) {
65
- throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
65
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
66
66
  }
67
67
  return {
68
68
  }
@@ -72,7 +72,7 @@ export function acmCertificateDomainValidationOptionsToTerraform(struct?: AcmCer
72
72
  export function acmCertificateDomainValidationOptionsToHclTerraform(struct?: AcmCertificateDomainValidationOptions): any {
73
73
  if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
74
74
  if (cdktn.isComplexElement(struct)) {
75
- throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
75
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
76
76
  }
77
77
  const attrs = {
78
78
  };
@@ -136,7 +136,7 @@ export class AcmCertificateDomainValidationOptionsList extends cdktn.ComplexList
136
136
  * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
137
137
  */
138
138
  constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) {
139
- super(terraformResource, terraformAttribute, wrapsSet)
139
+ super(terraformResource, terraformAttribute, wrapsSet);
140
140
  }
141
141
 
142
142
  /**
@@ -156,7 +156,7 @@ export interface AcmCertificateOptions {
156
156
  export function acmCertificateOptionsToTerraform(struct?: AcmCertificateOptionsOutputReference | AcmCertificateOptions): any {
157
157
  if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
158
158
  if (cdktn.isComplexElement(struct)) {
159
- throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
159
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
160
160
  }
161
161
  return {
162
162
  certificate_transparency_logging_preference: cdktn.stringToTerraform(struct!.certificateTransparencyLoggingPreference),
@@ -167,7 +167,7 @@ export function acmCertificateOptionsToTerraform(struct?: AcmCertificateOptionsO
167
167
  export function acmCertificateOptionsToHclTerraform(struct?: AcmCertificateOptionsOutputReference | AcmCertificateOptions): any {
168
168
  if (!cdktn.canInspect(struct) || cdktn.Tokenization.isResolvable(struct)) { return struct; }
169
169
  if (cdktn.isComplexElement(struct)) {
170
- throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
170
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdktn.io/docs/concepts/resources#references");
171
171
  }
172
172
  const attrs = {
173
173
  certificate_transparency_logging_preference: {