diff --git a/packages/libs/lambda/package.json b/packages/libs/lambda/package.json index 3178b60270..5514873ca9 100644 --- a/packages/libs/lambda/package.json +++ b/packages/libs/lambda/package.json @@ -28,7 +28,8 @@ "Lambda", "API Gateway", "Next.js", - "Serverless" + "Serverless", + "cdktf" ], "author": "Daniel Phang ", "license": "MIT", @@ -37,11 +38,13 @@ }, "homepage": "https://github.com/serverless-nextjs/serverless-next.js#readme", "dependencies": { - "@cdktf/provider-aws": "2.0.13", + "@cdktf/provider-archive": "0.3.5", + "@cdktf/provider-aws": "5.0.3", + "@cdktf/provider-null": "0.5.5", "@sls-next/aws-common": "link:../aws-common", "@sls-next/core": "link:../core", - "cdktf": "0.8.6", - "cdktf-cli": "0.8.6", + "cdktf": "0.9.0", + "cdktf-cli": "0.9.0", "constructs": "10.0.46", "esbuild": "0.14.20", "fs-extra": "9.1.0", diff --git a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/archive-provider.ts b/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/archive-provider.ts deleted file mode 100644 index 6e199db03b..0000000000 --- a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/archive-provider.ts +++ /dev/null @@ -1,83 +0,0 @@ -// https://www.terraform.io/docs/providers/archive -// generated from terraform resource schema - -import { Construct } from "constructs"; -import * as cdktf from "cdktf"; - -// Configuration - -export interface ArchiveProviderConfig { - /** - * Alias name - * - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive#alias ArchiveProvider#alias} - */ - readonly alias?: string; -} - -/** - * Represents a {@link https://www.terraform.io/docs/providers/archive archive} - */ -export class ArchiveProvider extends cdktf.TerraformProvider { - // ================= - // STATIC PROPERTIES - // ================= - public static readonly tfResourceType: string = "archive"; - - // =========== - // INITIALIZER - // =========== - - /** - * Create a new {@link https://www.terraform.io/docs/providers/archive archive} Resource - * - * @param scope The scope in which to define this construct - * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options ArchiveProviderConfig = {} - */ - public constructor( - scope: Construct, - id: string, - config: ArchiveProviderConfig = {} - ) { - super(scope, id, { - terraformResourceType: "archive", - terraformGeneratorMetadata: { - providerName: "archive", - providerVersionConstraint: "~> 2.2.0" - }, - terraformProviderSource: "hashicorp/archive" - }); - this._alias = config.alias; - } - - // ========== - // ATTRIBUTES - // ========== - - // alias - computed: false, optional: true, required: false - private _alias?: string | undefined; - public get alias() { - return this._alias; - } - public set alias(value: string | undefined | undefined) { - this._alias = value; - } - public resetAlias() { - this._alias = undefined; - } - // Temporarily expose input value. Use with caution. - public get aliasInput() { - return this._alias; - } - - // ========= - // SYNTHESIS - // ========= - - protected synthesizeAttributes(): { [name: string]: any } { - return { - alias: cdktf.stringToTerraform(this._alias) - }; - } -} diff --git a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/data-archive-file.ts b/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/data-archive-file.ts deleted file mode 100644 index a6dd81fb13..0000000000 --- a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/data-archive-file.ts +++ /dev/null @@ -1,308 +0,0 @@ -// https://www.terraform.io/docs/providers/archive/d/file.html -// generated from terraform resource schema - -import { Construct } from "constructs"; -import * as cdktf from "cdktf"; - -// Configuration - -export interface DataArchiveFileConfig extends cdktf.TerraformMetaArguments { - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#excludes DataArchiveFile#excludes} - */ - readonly excludes?: string[]; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#output_file_mode DataArchiveFile#output_file_mode} - */ - readonly outputFileMode?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#output_path DataArchiveFile#output_path} - */ - readonly outputPath: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#source_content DataArchiveFile#source_content} - */ - readonly sourceContent?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#source_content_filename DataArchiveFile#source_content_filename} - */ - readonly sourceContentFilename?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#source_dir DataArchiveFile#source_dir} - */ - readonly sourceDir?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#source_file DataArchiveFile#source_file} - */ - readonly sourceFile?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#type DataArchiveFile#type} - */ - readonly type: string; - /** - * source block - * - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#source DataArchiveFile#source} - */ - readonly source?: DataArchiveFileSource[]; -} -export interface DataArchiveFileSource { - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#content DataArchiveFile#content} - */ - readonly content: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/d/file.html#filename DataArchiveFile#filename} - */ - readonly filename: string; -} - -function dataArchiveFileSourceToTerraform(struct?: DataArchiveFileSource): any { - if (!cdktf.canInspect(struct)) { - return struct; - } - if (cdktf.isComplexElement(struct)) { - throw new Error( - "A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration" - ); - } - return { - content: cdktf.stringToTerraform(struct!.content), - filename: cdktf.stringToTerraform(struct!.filename) - }; -} - -/** - * Represents a {@link https://www.terraform.io/docs/providers/archive/d/file.html archive_file} - */ -export class DataArchiveFile extends cdktf.TerraformDataSource { - // ================= - // STATIC PROPERTIES - // ================= - public static readonly tfResourceType: string = "archive_file"; - - // =========== - // INITIALIZER - // =========== - - /** - * Create a new {@link https://www.terraform.io/docs/providers/archive/d/file.html archive_file} Data Source - * - * @param scope The scope in which to define this construct - * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options DataArchiveFileConfig - */ - public constructor( - scope: Construct, - id: string, - config: DataArchiveFileConfig - ) { - super(scope, id, { - terraformResourceType: "archive_file", - terraformGeneratorMetadata: { - providerName: "archive" - }, - provider: config.provider, - dependsOn: config.dependsOn, - count: config.count, - lifecycle: config.lifecycle - }); - this._excludes = config.excludes; - this._outputFileMode = config.outputFileMode; - this._outputPath = config.outputPath; - this._sourceContent = config.sourceContent; - this._sourceContentFilename = config.sourceContentFilename; - this._sourceDir = config.sourceDir; - this._sourceFile = config.sourceFile; - this._type = config.type; - this._source = config.source; - } - - // ========== - // ATTRIBUTES - // ========== - - // excludes - computed: false, optional: true, required: false - private _excludes?: string[] | undefined; - public get excludes() { - return this.getListAttribute("excludes"); - } - public set excludes(value: string[] | undefined) { - this._excludes = value; - } - public resetExcludes() { - this._excludes = undefined; - } - // Temporarily expose input value. Use with caution. - public get excludesInput() { - return this._excludes; - } - - // id - computed: true, optional: true, required: false - public get id() { - return this.getStringAttribute("id"); - } - - // output_base64sha256 - computed: true, optional: false, required: false - public get outputBase64Sha256() { - return this.getStringAttribute("output_base64sha256"); - } - - // output_file_mode - computed: false, optional: true, required: false - private _outputFileMode?: string | undefined; - public get outputFileMode() { - return this.getStringAttribute("output_file_mode"); - } - public set outputFileMode(value: string | undefined) { - this._outputFileMode = value; - } - public resetOutputFileMode() { - this._outputFileMode = undefined; - } - // Temporarily expose input value. Use with caution. - public get outputFileModeInput() { - return this._outputFileMode; - } - - // output_md5 - computed: true, optional: false, required: false - public get outputMd5() { - return this.getStringAttribute("output_md5"); - } - - // output_path - computed: false, optional: false, required: true - private _outputPath?: string; - public get outputPath() { - return this.getStringAttribute("output_path"); - } - public set outputPath(value: string) { - this._outputPath = value; - } - // Temporarily expose input value. Use with caution. - public get outputPathInput() { - return this._outputPath; - } - - // output_sha - computed: true, optional: false, required: false - public get outputSha() { - return this.getStringAttribute("output_sha"); - } - - // output_size - computed: true, optional: false, required: false - public get outputSize() { - return this.getNumberAttribute("output_size"); - } - - // source_content - computed: false, optional: true, required: false - private _sourceContent?: string | undefined; - public get sourceContent() { - return this.getStringAttribute("source_content"); - } - public set sourceContent(value: string | undefined) { - this._sourceContent = value; - } - public resetSourceContent() { - this._sourceContent = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceContentInput() { - return this._sourceContent; - } - - // source_content_filename - computed: false, optional: true, required: false - private _sourceContentFilename?: string | undefined; - public get sourceContentFilename() { - return this.getStringAttribute("source_content_filename"); - } - public set sourceContentFilename(value: string | undefined) { - this._sourceContentFilename = value; - } - public resetSourceContentFilename() { - this._sourceContentFilename = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceContentFilenameInput() { - return this._sourceContentFilename; - } - - // source_dir - computed: false, optional: true, required: false - private _sourceDir?: string | undefined; - public get sourceDir() { - return this.getStringAttribute("source_dir"); - } - public set sourceDir(value: string | undefined) { - this._sourceDir = value; - } - public resetSourceDir() { - this._sourceDir = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceDirInput() { - return this._sourceDir; - } - - // source_file - computed: false, optional: true, required: false - private _sourceFile?: string | undefined; - public get sourceFile() { - return this.getStringAttribute("source_file"); - } - public set sourceFile(value: string | undefined) { - this._sourceFile = value; - } - public resetSourceFile() { - this._sourceFile = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceFileInput() { - return this._sourceFile; - } - - // type - computed: false, optional: false, required: true - private _type?: string; - public get type() { - return this.getStringAttribute("type"); - } - public set type(value: string) { - this._type = value; - } - // Temporarily expose input value. Use with caution. - public get typeInput() { - return this._type; - } - - // source - computed: false, optional: true, required: false - private _source?: DataArchiveFileSource[] | undefined; - public get source() { - // Getting the computed value is not yet implemented - return this.interpolationForAttribute("source") as any; - } - public set source(value: DataArchiveFileSource[] | undefined) { - this._source = value; - } - public resetSource() { - this._source = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceInput() { - return this._source; - } - - // ========= - // SYNTHESIS - // ========= - - protected synthesizeAttributes(): { [name: string]: any } { - return { - excludes: cdktf.listMapper(cdktf.stringToTerraform)(this._excludes), - output_file_mode: cdktf.stringToTerraform(this._outputFileMode), - output_path: cdktf.stringToTerraform(this._outputPath), - source_content: cdktf.stringToTerraform(this._sourceContent), - source_content_filename: cdktf.stringToTerraform( - this._sourceContentFilename - ), - source_dir: cdktf.stringToTerraform(this._sourceDir), - source_file: cdktf.stringToTerraform(this._sourceFile), - type: cdktf.stringToTerraform(this._type), - source: cdktf.listMapper(dataArchiveFileSourceToTerraform)(this._source) - }; - } -} diff --git a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/file.ts b/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/file.ts deleted file mode 100644 index d1ca3e3ad1..0000000000 --- a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/file.ts +++ /dev/null @@ -1,304 +0,0 @@ -// https://www.terraform.io/docs/providers/archive/r/file.html -// generated from terraform resource schema - -import { Construct } from "constructs"; -import * as cdktf from "cdktf"; - -// Configuration - -export interface FileConfig extends cdktf.TerraformMetaArguments { - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#excludes File#excludes} - */ - readonly excludes?: string[]; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#output_file_mode File#output_file_mode} - */ - readonly outputFileMode?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#output_path File#output_path} - */ - readonly outputPath: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#source_content File#source_content} - */ - readonly sourceContent?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#source_content_filename File#source_content_filename} - */ - readonly sourceContentFilename?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#source_dir File#source_dir} - */ - readonly sourceDir?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#source_file File#source_file} - */ - readonly sourceFile?: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#type File#type} - */ - readonly type: string; - /** - * source block - * - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#source File#source} - */ - readonly source?: FileSource[]; -} -export interface FileSource { - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#content File#content} - */ - readonly content: string; - /** - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/archive/r/file.html#filename File#filename} - */ - readonly filename: string; -} - -function fileSourceToTerraform(struct?: FileSource): any { - if (!cdktf.canInspect(struct)) { - return struct; - } - if (cdktf.isComplexElement(struct)) { - throw new Error( - "A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration" - ); - } - return { - content: cdktf.stringToTerraform(struct!.content), - filename: cdktf.stringToTerraform(struct!.filename) - }; -} - -/** - * Represents a {@link https://www.terraform.io/docs/providers/archive/r/file.html archive_file} - */ -export class File extends cdktf.TerraformResource { - // ================= - // STATIC PROPERTIES - // ================= - public static readonly tfResourceType: string = "archive_file"; - - // =========== - // INITIALIZER - // =========== - - /** - * Create a new {@link https://www.terraform.io/docs/providers/archive/r/file.html archive_file} Resource - * - * @param scope The scope in which to define this construct - * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options FileConfig - */ - public constructor(scope: Construct, id: string, config: FileConfig) { - super(scope, id, { - terraformResourceType: "archive_file", - terraformGeneratorMetadata: { - providerName: "archive" - }, - provider: config.provider, - dependsOn: config.dependsOn, - count: config.count, - lifecycle: config.lifecycle - }); - this._excludes = config.excludes; - this._outputFileMode = config.outputFileMode; - this._outputPath = config.outputPath; - this._sourceContent = config.sourceContent; - this._sourceContentFilename = config.sourceContentFilename; - this._sourceDir = config.sourceDir; - this._sourceFile = config.sourceFile; - this._type = config.type; - this._source = config.source; - } - - // ========== - // ATTRIBUTES - // ========== - - // excludes - computed: false, optional: true, required: false - private _excludes?: string[] | undefined; - public get excludes() { - return this.getListAttribute("excludes"); - } - public set excludes(value: string[] | undefined) { - this._excludes = value; - } - public resetExcludes() { - this._excludes = undefined; - } - // Temporarily expose input value. Use with caution. - public get excludesInput() { - return this._excludes; - } - - // id - computed: true, optional: true, required: false - public get id() { - return this.getStringAttribute("id"); - } - - // output_base64sha256 - computed: true, optional: false, required: false - public get outputBase64Sha256() { - return this.getStringAttribute("output_base64sha256"); - } - - // output_file_mode - computed: false, optional: true, required: false - private _outputFileMode?: string | undefined; - public get outputFileMode() { - return this.getStringAttribute("output_file_mode"); - } - public set outputFileMode(value: string | undefined) { - this._outputFileMode = value; - } - public resetOutputFileMode() { - this._outputFileMode = undefined; - } - // Temporarily expose input value. Use with caution. - public get outputFileModeInput() { - return this._outputFileMode; - } - - // output_md5 - computed: true, optional: false, required: false - public get outputMd5() { - return this.getStringAttribute("output_md5"); - } - - // output_path - computed: false, optional: false, required: true - private _outputPath?: string; - public get outputPath() { - return this.getStringAttribute("output_path"); - } - public set outputPath(value: string) { - this._outputPath = value; - } - // Temporarily expose input value. Use with caution. - public get outputPathInput() { - return this._outputPath; - } - - // output_sha - computed: true, optional: false, required: false - public get outputSha() { - return this.getStringAttribute("output_sha"); - } - - // output_size - computed: true, optional: false, required: false - public get outputSize() { - return this.getNumberAttribute("output_size"); - } - - // source_content - computed: false, optional: true, required: false - private _sourceContent?: string | undefined; - public get sourceContent() { - return this.getStringAttribute("source_content"); - } - public set sourceContent(value: string | undefined) { - this._sourceContent = value; - } - public resetSourceContent() { - this._sourceContent = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceContentInput() { - return this._sourceContent; - } - - // source_content_filename - computed: false, optional: true, required: false - private _sourceContentFilename?: string | undefined; - public get sourceContentFilename() { - return this.getStringAttribute("source_content_filename"); - } - public set sourceContentFilename(value: string | undefined) { - this._sourceContentFilename = value; - } - public resetSourceContentFilename() { - this._sourceContentFilename = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceContentFilenameInput() { - return this._sourceContentFilename; - } - - // source_dir - computed: false, optional: true, required: false - private _sourceDir?: string | undefined; - public get sourceDir() { - return this.getStringAttribute("source_dir"); - } - public set sourceDir(value: string | undefined) { - this._sourceDir = value; - } - public resetSourceDir() { - this._sourceDir = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceDirInput() { - return this._sourceDir; - } - - // source_file - computed: false, optional: true, required: false - private _sourceFile?: string | undefined; - public get sourceFile() { - return this.getStringAttribute("source_file"); - } - public set sourceFile(value: string | undefined) { - this._sourceFile = value; - } - public resetSourceFile() { - this._sourceFile = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceFileInput() { - return this._sourceFile; - } - - // type - computed: false, optional: false, required: true - private _type?: string; - public get type() { - return this.getStringAttribute("type"); - } - public set type(value: string) { - this._type = value; - } - // Temporarily expose input value. Use with caution. - public get typeInput() { - return this._type; - } - - // source - computed: false, optional: true, required: false - private _source?: FileSource[] | undefined; - public get source() { - // Getting the computed value is not yet implemented - return this.interpolationForAttribute("source") as any; - } - public set source(value: FileSource[] | undefined) { - this._source = value; - } - public resetSource() { - this._source = undefined; - } - // Temporarily expose input value. Use with caution. - public get sourceInput() { - return this._source; - } - - // ========= - // SYNTHESIS - // ========= - - protected synthesizeAttributes(): { [name: string]: any } { - return { - excludes: cdktf.listMapper(cdktf.stringToTerraform)(this._excludes), - output_file_mode: cdktf.stringToTerraform(this._outputFileMode), - output_path: cdktf.stringToTerraform(this._outputPath), - source_content: cdktf.stringToTerraform(this._sourceContent), - source_content_filename: cdktf.stringToTerraform( - this._sourceContentFilename - ), - source_dir: cdktf.stringToTerraform(this._sourceDir), - source_file: cdktf.stringToTerraform(this._sourceFile), - type: cdktf.stringToTerraform(this._type), - source: cdktf.listMapper(fileSourceToTerraform)(this._source) - }; - } -} diff --git a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/index.ts b/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/index.ts deleted file mode 100644 index 5a5a662cd6..0000000000 --- a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/archive/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -// generated by cdktf get -export * from "./file"; -export * from "./data-archive-file"; -export * from "./archive-provider"; diff --git a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/data-null-data-source.ts b/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/data-null-data-source.ts deleted file mode 100644 index 62796f4ac8..0000000000 --- a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/data-null-data-source.ts +++ /dev/null @@ -1,127 +0,0 @@ -// https://www.terraform.io/docs/providers/null/d/data_source.html -// generated from terraform resource schema - -import { Construct } from "constructs"; -import * as cdktf from "cdktf"; - -// Configuration - -export interface DataNullDataSourceConfig extends cdktf.TerraformMetaArguments { - /** - * If set, its literal value will be stored and returned. If not, its value defaults to `"default"`. This argument exists primarily for testing and has little practical use. - * - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null/d/data_source.html#has_computed_default DataNullDataSource#has_computed_default} - */ - readonly hasComputedDefault?: string; - /** - * A map of arbitrary strings that is copied into the `outputs` attribute, and accessible directly for interpolation. - * - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null/d/data_source.html#inputs DataNullDataSource#inputs} - */ - readonly inputs?: { [key: string]: string } | cdktf.IResolvable; -} - -/** - * Represents a {@link https://www.terraform.io/docs/providers/null/d/data_source.html null_data_source} - */ -export class DataNullDataSource extends cdktf.TerraformDataSource { - // ================= - // STATIC PROPERTIES - // ================= - public static readonly tfResourceType: string = "null_data_source"; - - // =========== - // INITIALIZER - // =========== - - /** - * Create a new {@link https://www.terraform.io/docs/providers/null/d/data_source.html null_data_source} Data Source - * - * @param scope The scope in which to define this construct - * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options DataNullDataSourceConfig = {} - */ - public constructor( - scope: Construct, - id: string, - config: DataNullDataSourceConfig = {} - ) { - super(scope, id, { - terraformResourceType: "null_data_source", - terraformGeneratorMetadata: { - providerName: "null" - }, - provider: config.provider, - dependsOn: config.dependsOn, - count: config.count, - lifecycle: config.lifecycle - }); - this._hasComputedDefault = config.hasComputedDefault; - this._inputs = config.inputs; - } - - // ========== - // ATTRIBUTES - // ========== - - // has_computed_default - computed: true, optional: true, required: false - private _hasComputedDefault?: string | undefined; - public get hasComputedDefault() { - return this.getStringAttribute("has_computed_default"); - } - public set hasComputedDefault(value: string | undefined) { - this._hasComputedDefault = value; - } - public resetHasComputedDefault() { - this._hasComputedDefault = undefined; - } - // Temporarily expose input value. Use with caution. - public get hasComputedDefaultInput() { - return this._hasComputedDefault; - } - - // id - computed: true, optional: false, required: false - public get id() { - return this.getStringAttribute("id"); - } - - // inputs - computed: false, optional: true, required: false - private _inputs?: { [key: string]: string } | cdktf.IResolvable | undefined; - public get inputs() { - // Getting the computed value is not yet implemented - return this.interpolationForAttribute("inputs") as any; - } - public set inputs( - value: { [key: string]: string } | cdktf.IResolvable | undefined - ) { - this._inputs = value; - } - public resetInputs() { - this._inputs = undefined; - } - // Temporarily expose input value. Use with caution. - public get inputsInput() { - return this._inputs; - } - - // outputs - computed: true, optional: false, required: false - public outputs(key: string): string { - return new cdktf.StringMap(this, "outputs").lookup(key); - } - - // random - computed: true, optional: false, required: false - public get random() { - return this.getStringAttribute("random"); - } - - // ========= - // SYNTHESIS - // ========= - - protected synthesizeAttributes(): { [name: string]: any } { - return { - has_computed_default: cdktf.stringToTerraform(this._hasComputedDefault), - inputs: cdktf.hashMapper(cdktf.anyToTerraform)(this._inputs) - }; - } -} diff --git a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/index.ts b/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/index.ts deleted file mode 100644 index 7d459a0659..0000000000 --- a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -// generated by cdktf get -export * from "./resource"; -export * from "./data-null-data-source"; -export * from "./null-provider"; diff --git a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/null-provider.ts b/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/null-provider.ts deleted file mode 100644 index 0c3c4f28c9..0000000000 --- a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/null-provider.ts +++ /dev/null @@ -1,83 +0,0 @@ -// https://www.terraform.io/docs/providers/null -// generated from terraform resource schema - -import { Construct } from "constructs"; -import * as cdktf from "cdktf"; - -// Configuration - -export interface NullProviderConfig { - /** - * Alias name - * - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null#alias NullProvider#alias} - */ - readonly alias?: string; -} - -/** - * Represents a {@link https://www.terraform.io/docs/providers/null null} - */ -export class NullProvider extends cdktf.TerraformProvider { - // ================= - // STATIC PROPERTIES - // ================= - public static readonly tfResourceType: string = "null"; - - // =========== - // INITIALIZER - // =========== - - /** - * Create a new {@link https://www.terraform.io/docs/providers/null null} Resource - * - * @param scope The scope in which to define this construct - * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options NullProviderConfig = {} - */ - public constructor( - scope: Construct, - id: string, - config: NullProviderConfig = {} - ) { - super(scope, id, { - terraformResourceType: "null", - terraformGeneratorMetadata: { - providerName: "null", - providerVersionConstraint: "~> 3.1.0" - }, - terraformProviderSource: "hashicorp/null" - }); - this._alias = config.alias; - } - - // ========== - // ATTRIBUTES - // ========== - - // alias - computed: false, optional: true, required: false - private _alias?: string | undefined; - public get alias() { - return this._alias; - } - public set alias(value: string | undefined | undefined) { - this._alias = value; - } - public resetAlias() { - this._alias = undefined; - } - // Temporarily expose input value. Use with caution. - public get aliasInput() { - return this._alias; - } - - // ========= - // SYNTHESIS - // ========= - - protected synthesizeAttributes(): { [name: string]: any } { - return { - alias: cdktf.stringToTerraform(this._alias) - }; - } -} diff --git a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/resource.ts b/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/resource.ts deleted file mode 100644 index 268ee6117f..0000000000 --- a/packages/libs/lambda/src/deploy/cdktf/.gen/providers/null/resource.ts +++ /dev/null @@ -1,93 +0,0 @@ -// https://www.terraform.io/docs/providers/null/r/resource.html -// generated from terraform resource schema - -import { Construct } from "constructs"; -import * as cdktf from "cdktf"; - -// Configuration - -export interface ResourceConfig extends cdktf.TerraformMetaArguments { - /** - * A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners. - * - * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/null/r/resource.html#triggers Resource#triggers} - */ - readonly triggers?: { [key: string]: string } | cdktf.IResolvable; -} - -/** - * Represents a {@link https://www.terraform.io/docs/providers/null/r/resource.html null_resource} - */ -export class Resource extends cdktf.TerraformResource { - // ================= - // STATIC PROPERTIES - // ================= - public static readonly tfResourceType: string = "null_resource"; - - // =========== - // INITIALIZER - // =========== - - /** - * Create a new {@link https://www.terraform.io/docs/providers/null/r/resource.html null_resource} Resource - * - * @param scope The scope in which to define this construct - * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options ResourceConfig = {} - */ - public constructor( - scope: Construct, - id: string, - config: ResourceConfig = {} - ) { - super(scope, id, { - terraformResourceType: "null_resource", - terraformGeneratorMetadata: { - providerName: "null" - }, - provider: config.provider, - dependsOn: config.dependsOn, - count: config.count, - lifecycle: config.lifecycle - }); - this._triggers = config.triggers; - } - - // ========== - // ATTRIBUTES - // ========== - - // id - computed: true, optional: false, required: false - public get id() { - return this.getStringAttribute("id"); - } - - // triggers - computed: false, optional: true, required: false - private _triggers?: { [key: string]: string } | cdktf.IResolvable | undefined; - public get triggers() { - // Getting the computed value is not yet implemented - return this.interpolationForAttribute("triggers") as any; - } - public set triggers( - value: { [key: string]: string } | cdktf.IResolvable | undefined - ) { - this._triggers = value; - } - public resetTriggers() { - this._triggers = undefined; - } - // Temporarily expose input value. Use with caution. - public get triggersInput() { - return this._triggers; - } - - // ========= - // SYNTHESIS - // ========= - - protected synthesizeAttributes(): { [name: string]: any } { - return { - triggers: cdktf.hashMapper(cdktf.anyToTerraform)(this._triggers) - }; - } -} diff --git a/packages/libs/lambda/src/deploy/cdktf/nextJsLambdaApp.ts b/packages/libs/lambda/src/deploy/cdktf/nextJsLambdaApp.ts index d71b0a48c5..9b2b778511 100644 --- a/packages/libs/lambda/src/deploy/cdktf/nextJsLambdaApp.ts +++ b/packages/libs/lambda/src/deploy/cdktf/nextJsLambdaApp.ts @@ -1,19 +1,16 @@ import { - APIGatewayV2, + apigatewayv2 as APIGatewayV2, AwsProvider, - CloudFront, - IAM, - LambdaFunction, - S3, - SQS + cloudfront as CloudFront, + iam as IAM, + lambdafunction as LambdaFunction, + s3 as S3, + sqs as SQS } from "@cdktf/provider-aws"; import { App, Fn, TerraformStack } from "cdktf"; import { Construct } from "constructs"; -import { - ArchiveProvider, - DataArchiveFile -} from "src/deploy/cdktf/.gen/providers/archive"; -import { Resource } from "src/deploy/cdktf/.gen/providers/null"; +import { ArchiveProvider, DataArchiveFile } from "@cdktf/provider-archive"; +import { Resource } from "@cdktf/provider-null"; import * as path from "path"; import { CoreBuildOptions } from "@sls-next/core"; import { LambdaBuildOptions } from "src/types"; @@ -63,7 +60,7 @@ export type NextJsLambdaAppProps = { * Note: this is a work-in-progress and may not function properly. * Refer to Terraform docs at {@link https://registry.terraform.io/providers/hashicorp/aws/latest/docs} */ -export class NextJsLambdaApp extends TerraformStack { +export class NextJsLambdaApp extends Construct { protected readonly props: NextJsLambdaAppProps; protected s3Bucket: S3.S3Bucket; protected defaultLambda: LambdaFunction.LambdaFunction; diff --git a/yarn.lock b/yarn.lock index f7bcc9031b..e17aae732b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1163,15 +1163,6 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.16.0": - version: 7.16.0 - resolution: "@babel/code-frame@npm:7.16.0" - dependencies: - "@babel/highlight": ^7.16.0 - checksum: 8961d0302ec6b8c2e9751a11e06a17617425359fd1645e4dae56a90a03464c68a0916115100fbcd030961870313f21865d0b85858360a2c68aabdda744393607 - languageName: node - linkType: hard - "@babel/code-frame@npm:^7.16.7": version: 7.16.7 resolution: "@babel/code-frame@npm:7.16.7" @@ -1285,17 +1276,6 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.14.5": - version: 7.16.0 - resolution: "@babel/generator@npm:7.16.0" - dependencies: - "@babel/types": ^7.16.0 - jsesc: ^2.5.1 - source-map: ^0.5.0 - checksum: 9ff53e0db72a225c8783c4a277698b4efcead750542ebb9cff31732ba62d092090715a772df10a323446924712f6928ad60c03db4e7051bed3a9701b552d51fb - languageName: node - linkType: hard - "@babel/generator@npm:^7.15.4, @babel/generator@npm:^7.15.8, @babel/generator@npm:^7.7.2": version: 7.15.8 resolution: "@babel/generator@npm:7.15.8" @@ -1894,17 +1874,6 @@ __metadata: languageName: node linkType: hard -"@babel/highlight@npm:^7.16.0": - version: 7.16.0 - resolution: "@babel/highlight@npm:7.16.0" - dependencies: - "@babel/helper-validator-identifier": ^7.15.7 - chalk: ^2.0.0 - js-tokens: ^4.0.0 - checksum: abf244c48fcff20ec87830e8b99c776f4dcdd9138e63decc195719a94148da35339639e0d8045eb9d1f3e67a39ab90a9c3f5ce2d579fb1a0368d911ddf29b4e5 - languageName: node - linkType: hard - "@babel/highlight@npm:^7.16.7": version: 7.16.7 resolution: "@babel/highlight@npm:7.16.7" @@ -1925,15 +1894,6 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.16.0": - version: 7.16.0 - resolution: "@babel/parser@npm:7.16.0" - bin: - parser: ./bin/babel-parser.js - checksum: dac5feeaf03ec9bc075af5c2bd1a401e4123b45a6e4ef7a123d242b16a5cf18cc4bc80b0579327ed1a6c8dcb0e078fff8d66e71e77260a3c0abc236cf2606e16 - languageName: node - linkType: hard - "@babel/parser@npm:^7.16.10": version: 7.16.10 resolution: "@babel/parser@npm:7.16.10" @@ -3665,17 +3625,6 @@ __metadata: languageName: node linkType: hard -"@babel/template@npm:^7.14.5": - version: 7.16.0 - resolution: "@babel/template@npm:7.16.0" - dependencies: - "@babel/code-frame": ^7.16.0 - "@babel/parser": ^7.16.0 - "@babel/types": ^7.16.0 - checksum: 940f105cc6a6aee638cd8cfae80b8b80811e0ddd53b6a11f3a68431ebb998564815fb26511b5d9cb4cff66ea67130ba7498555ee015375d32f5f89ceaa6662ea - languageName: node - linkType: hard - "@babel/template@npm:^7.15.4, @babel/template@npm:^7.3.3": version: 7.15.4 resolution: "@babel/template@npm:7.15.4" @@ -3771,7 +3720,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.14.5, @babel/types@npm:^7.16.0": +"@babel/types@npm:^7.16.0": version: 7.16.0 resolution: "@babel/types@npm:7.16.0" dependencies: @@ -3815,57 +3764,77 @@ __metadata: languageName: node linkType: hard -"@cdktf/hcl2cdk@npm:0.8.6": - version: 0.8.6 - resolution: "@cdktf/hcl2cdk@npm:0.8.6" +"@cdktf/hcl2cdk@npm:0.9.0": + version: 0.9.0 + resolution: "@cdktf/hcl2cdk@npm:0.9.0" dependencies: - "@babel/generator": ^7.14.5 - "@babel/template": ^7.14.5 - "@babel/types": ^7.14.5 - "@cdktf/hcl2json": 0.8.6 - "@cdktf/provider-generator": 0.8.6 - camelcase: ^6.2.0 - glob: 7.1.7 - graphology: ^0.20.0 - graphology-types: ^0.19.2 - jsii-rosetta: ^1.39.0 - prettier: ^2.3.1 + "@babel/generator": ^7.16.8 + "@babel/template": ^7.16.7 + "@babel/types": ^7.16.8 + "@cdktf/hcl2json": 0.9.0 + "@cdktf/provider-generator": 0.9.0 + camelcase: ^6.3.0 + glob: 7.2.0 + graphology: ^0.23.2 + graphology-types: ^0.21.2 + jsii-rosetta: ^1.52.1 + prettier: ^2.5.1 reserved-words: ^0.1.2 - zod: ^1.11.7 - checksum: b2457e0b8ebe7d3bfc1817f36fd84ea723d04eeca7ab68e77dc063e058fb84ba20c840c184b2e4201cb3371b5835f9c3fd748c61e251bda2d8cca4d0b7a74c40 + zod: ^1.11.17 + checksum: 1efc0025117524674302d3e68b06d00056ac5e8babc20be8b98c8b2c1748739c34e88f0d979f3a92732656521d34c1debec134a6d30b46c2c84fac7b6786594e languageName: node linkType: hard -"@cdktf/hcl2json@npm:0.8.6": - version: 0.8.6 - resolution: "@cdktf/hcl2json@npm:0.8.6" +"@cdktf/hcl2json@npm:0.9.0": + version: 0.9.0 + resolution: "@cdktf/hcl2json@npm:0.9.0" dependencies: - "@types/node-fetch": ^2.5.8 - node-fetch: ^2.6.1 - checksum: 9934f2cae423cfae4e7b2badf38fca191d971ffd175258fe1211c9d493643dcc35be54ab2f8e582dc1ba5dba03431fc8a8a6d6ef1a5654896773f073675cf3df + "@types/node-fetch": ^2.5.12 + node-fetch: ^2.6.7 + checksum: ecdb8bd47c525428b05172278aacb45a9fda54908de928a480d0531a3f5ebe9906a7b554373fd5ec10592b3ab0c9bb147aa3c796d9e6512b16478b10862a87cd languageName: node linkType: hard -"@cdktf/provider-aws@npm:2.0.13": - version: 2.0.13 - resolution: "@cdktf/provider-aws@npm:2.0.13" +"@cdktf/provider-archive@npm:0.3.5": + version: 0.3.5 + resolution: "@cdktf/provider-archive@npm:0.3.5" + peerDependencies: + cdktf: ^0.9 + constructs: ^10.0.0 + checksum: c2f3aed1c5e58f0b4b14bb87f10de7a8544b7bf0d0f8a65a86a2be69d95d6938ef997251342e2f05c9ec3cf9b86b554b3770405daf57d02fab1140054243d0cc + languageName: node + linkType: hard + +"@cdktf/provider-aws@npm:5.0.3": + version: 5.0.3 + resolution: "@cdktf/provider-aws@npm:5.0.3" peerDependencies: - cdktf: ^0.7 + cdktf: ^0.9 constructs: ^10.0.0 - checksum: 60c16aedaac20b3df7f8c7654aef49211aede870679a58d1de8e5e7db11d4eeaba1e21f8fac7285d0a14d81fb66f257f769d2c5e94bc2a226134206eddd9d1a4 + checksum: 3fd13ca617caae94560a34fb21b4b51516c540b29dc7c6c38ef08da983c70b46f5f4f277f27f0a9f5d4c7a05dd1a0f5756d72e070cf43dc650256179432a80c2 languageName: node linkType: hard -"@cdktf/provider-generator@npm:0.8.6": - version: 0.8.6 - resolution: "@cdktf/provider-generator@npm:0.8.6" +"@cdktf/provider-generator@npm:0.9.0": + version: 0.9.0 + resolution: "@cdktf/provider-generator@npm:0.9.0" dependencies: - "@cdktf/hcl2json": 0.8.6 + "@cdktf/hcl2json": 0.9.0 codemaker: ^0.22.0 fs-extra: ^8.1.0 - is-valid-domain: ^0.1.2 - jsii-srcmak: ^0.1.406 - checksum: 8312d752b9d932ed48e4f84a2fabb42b6e62bf47a13a2dea96e6da012be3da8d46b2e58aed038f78cbd48b74885702fa3d5eb4ec882f6a184fe69be0b5064da2 + is-valid-domain: ^0.1.5 + jsii-srcmak: ^0.1.455 + checksum: ab821e489cf9630c5b68821931373be1c4fb1885fc6c1f575ae7c1558109fbb56f3427ae9d40cb41a5ce923163352d1504c4c2777654c6230529c8cbe60c22f2 + languageName: node + linkType: hard + +"@cdktf/provider-null@npm:0.5.5": + version: 0.5.5 + resolution: "@cdktf/provider-null@npm:0.5.5" + peerDependencies: + cdktf: ^0.9 + constructs: ^10.0.0 + checksum: 7d67d7a8ac9c3a9c800c585c2ca870d553201afa3fe863976aa0c1e46050df2a3b1f062aea7d1177901b31220b9dd96c278faeb034f1658f23f95e0c86bae83e languageName: node linkType: hard @@ -4382,36 +4351,6 @@ __metadata: languageName: node linkType: hard -"@jsii/check-node@npm:1.42.0": - version: 1.42.0 - resolution: "@jsii/check-node@npm:1.42.0" - dependencies: - chalk: ^4.1.2 - semver: ^7.3.5 - checksum: a7bda58e3922b2766c40f4ed61e13ba721a60f43934b25c62deb4a7a1cb069aef4a3e6b725685414771b7fde29e00c54eed9e54535c28e64c650240bcce473ca - languageName: node - linkType: hard - -"@jsii/check-node@npm:1.46.0": - version: 1.46.0 - resolution: "@jsii/check-node@npm:1.46.0" - dependencies: - chalk: ^4.1.2 - semver: ^7.3.5 - checksum: b419ecde9053b71cc10e03aa02adfa24323505b0291881b43bf8798d69dcaf120d72c2ce2b6acb38a333898fe7c83c1aa13b88b98ebce916599596876cdb3a4c - languageName: node - linkType: hard - -"@jsii/check-node@npm:1.52.0": - version: 1.52.0 - resolution: "@jsii/check-node@npm:1.52.0" - dependencies: - chalk: ^4.1.2 - semver: ^7.3.5 - checksum: b16f849bdf2dd762ad759878d726419a63120b4697668eb62ec923b92f19315ea9cb985caaac3e61dd9527aad58f91e8e8e2062f7e60585eb90251cca8036583 - languageName: node - linkType: hard - "@jsii/check-node@npm:1.52.1": version: 1.52.1 resolution: "@jsii/check-node@npm:1.52.1" @@ -4422,30 +4361,12 @@ __metadata: languageName: node linkType: hard -"@jsii/spec@npm:1.46.0, @jsii/spec@npm:^1.46.0": - version: 1.46.0 - resolution: "@jsii/spec@npm:1.46.0" - dependencies: - jsonschema: ^1.4.0 - checksum: 3f70334c53d50f2305139adee280c97fae082768f8451646f1aa2b90e6640e62f842cb6dac3198d64a455acd0deec659761b43453b9e44f0891aa399281b5bc8 - languageName: node - linkType: hard - -"@jsii/spec@npm:1.52.0, @jsii/spec@npm:^1.52.0": - version: 1.52.0 - resolution: "@jsii/spec@npm:1.52.0" - dependencies: - jsonschema: ^1.4.0 - checksum: 335d1d42c7ab7d8c5807c5f7dcf51f814186c50d5467100bdd60c3be57b0ed11c35c7c75631e472f05094ca93e4caec8e37acd1b7d0b8f7049619c06a1acca3a - languageName: node - linkType: hard - -"@jsii/spec@npm:^1.42.0": - version: 1.42.0 - resolution: "@jsii/spec@npm:1.42.0" +"@jsii/spec@npm:1.52.1, @jsii/spec@npm:^1.52.1": + version: 1.52.1 + resolution: "@jsii/spec@npm:1.52.1" dependencies: jsonschema: ^1.4.0 - checksum: 23b2b56a473b55b02d2707ec8d9965a7bea24ccc14ac8baad0a7f2879d0921a60963430af82a2d258f463ab34c8ccfa937c29d75e1784bee6a437e2106516a51 + checksum: f4df0a5fb6d072f4743f2e52ab20c14a766107ae87b951383007b6881f324cb85b722d34547d46da55bde0f785cdad87a6e801d33e7a8a38043993f1480020a1 languageName: node linkType: hard @@ -6140,7 +6061,9 @@ __metadata: resolution: "@sls-next/lambda@workspace:packages/libs/lambda" dependencies: "@babel/preset-typescript": ^7.16.7 - "@cdktf/provider-aws": 2.0.13 + "@cdktf/provider-archive": 0.3.5 + "@cdktf/provider-aws": 5.0.3 + "@cdktf/provider-null": 0.5.5 "@rollup/plugin-commonjs": 18.1.0 "@rollup/plugin-json": 4.1.0 "@rollup/plugin-node-resolve": 10.0.0 @@ -6151,8 +6074,8 @@ __metadata: "@types/jest": ^27.4.0 "@types/node": 17.0.16 "@types/yargs": 17.0.8 - cdktf: 0.8.6 - cdktf-cli: 0.8.6 + cdktf: 0.9.0 + cdktf-cli: 0.9.0 constructs: 10.0.46 esbuild: 0.14.20 fs-extra: 9.1.0 @@ -6569,7 +6492,7 @@ __metadata: languageName: node linkType: hard -"@types/node-fetch@npm:2.5.12, @types/node-fetch@npm:^2.5.8": +"@types/node-fetch@npm:2.5.12, @types/node-fetch@npm:^2.5.12": version: 2.5.12 resolution: "@types/node-fetch@npm:2.5.12" dependencies: @@ -7079,13 +7002,6 @@ __metadata: languageName: node linkType: hard -"@xmldom/xmldom@npm:^0.7.5": - version: 0.7.5 - resolution: "@xmldom/xmldom@npm:0.7.5" - checksum: 8d7ec35c1ef6183b4f621df08e01d7e61f244fb964a4719025e65fe6ac06fac418919be64fb40fe5908e69158ef728f2d936daa082db326fe04603012b5f2a84 - languageName: node - linkType: hard - "@xmldom/xmldom@npm:^0.8.0": version: 0.8.0 resolution: "@xmldom/xmldom@npm:0.8.0" @@ -8633,31 +8549,32 @@ __metadata: languageName: node linkType: hard -"cdktf-cli@npm:0.8.6": - version: 0.8.6 - resolution: "cdktf-cli@npm:0.8.6" +"cdktf-cli@npm:0.9.0": + version: 0.9.0 + resolution: "cdktf-cli@npm:0.9.0" dependencies: - "@cdktf/hcl2cdk": 0.8.6 - "@cdktf/hcl2json": 0.8.6 - cdktf: 0.8.6 + "@cdktf/hcl2cdk": 0.9.0 + "@cdktf/hcl2json": 0.9.0 + cdktf: 0.9.0 constructs: ^10.0.25 - jsii: ^1.50.0 - jsii-pacmak: ^1.50.0 - yargs: ^17.0 + jsii: ^1.52.1 + jsii-pacmak: ^1.52.1 + yargs: ^17.3 bin: cdktf: bundle/bin/cdktf - checksum: 12d3d35cb536e21fbe40a1751cc8fb69919f954cbef623072c8995544de3e1aa58842649be272820df6298743dbbe80860653d32bd8d07c851bef430a2bd9101 + checksum: fbab7377361d33a37f3c24055828cdcd64c18b67d5d075f1b2a270028b64bb153119c8e2453e45d41ecc88d81ed0c542d29f5d243bb252e8777bbded44ff855d languageName: node linkType: hard -"cdktf@npm:0.8.6": - version: 0.8.6 - resolution: "cdktf@npm:0.8.6" +"cdktf@npm:0.9.0": + version: 0.9.0 + resolution: "cdktf@npm:0.9.0" dependencies: archiver: 5.3.0 + json-stable-stringify: ^1.0.1 peerDependencies: constructs: ^10.0.25 - checksum: 0f481992235b330a3f2f6701205f3943179e0628040b8b53ca5f78dee7549de19024c47c12456b20e00d4f4377d4be0c36df1029092d0612434df322ce31f026 + checksum: 35c2b87307d06ab3455cac4b512ab0d7250ebef1ceb0039c13d4f38d5f49f929825196d21aa9d46da82892754f14387012ee1961aba2fb2c28545ae6986b4fed languageName: node linkType: hard @@ -8968,25 +8885,14 @@ __metadata: languageName: node linkType: hard -"codemaker@npm:^1.46.0": - version: 1.46.0 - resolution: "codemaker@npm:1.46.0" - dependencies: - camelcase: ^6.2.0 - decamelize: ^5.0.1 - fs-extra: ^9.1.0 - checksum: edb7974fb47eb9623415d70fda91ea69f85931f4bcad35c59a501f085509dccdd9728d1d0cceeff984a01c8e82712425ee7760d58e3d0b4a992357cd84b760a2 - languageName: node - linkType: hard - -"codemaker@npm:^1.52.0": - version: 1.52.0 - resolution: "codemaker@npm:1.52.0" +"codemaker@npm:^1.52.1": + version: 1.52.1 + resolution: "codemaker@npm:1.52.1" dependencies: camelcase: ^6.2.1 decamelize: ^5.0.1 fs-extra: ^9.1.0 - checksum: 251ec6a79d4303b178131c16c01e4d3fc46b2c93b7f7a2417b29c3b0dd1c870e2785e8a7adb5eba3b6e5e912cf02c0d9338ce12c074d5e120dca110e38fbe20f + checksum: 2adfd8b5485191b14c5eb735f63d970d0e27fc93cd202bd4159b27559969aaf7cbe3bb2e37a02b223f394370deab5428847629d9bac971d1e5412b886b794ca2 languageName: node linkType: hard @@ -9092,7 +8998,7 @@ __metadata: languageName: node linkType: hard -"colors@npm:^1.4.0": +"colors@npm:1.4.0": version: 1.4.0 resolution: "colors@npm:1.4.0" checksum: 98aa2c2418ad87dedf25d781be69dc5fc5908e279d9d30c34d8b702e586a0474605b3a189511482b9d5ed0d20c867515d22749537f7bc546256c6014f3ebdcec @@ -11907,21 +11813,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:7.1.7": - version: 7.1.7 - resolution: "glob@npm:7.1.7" - dependencies: - fs.realpath: ^1.0.0 - inflight: ^1.0.4 - inherits: 2 - minimatch: ^3.0.4 - once: ^1.3.0 - path-is-absolute: ^1.0.0 - checksum: b61f48973bbdcf5159997b0874a2165db572b368b931135832599875919c237fc05c12984e38fe828e69aa8a921eb0e8a4997266211c517c9cfaae8a93988bb8 - languageName: node - linkType: hard - -"glob@npm:^7.1.1, glob@npm:^7.1.2, glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.1.6, glob@npm:^7.2.0": +"glob@npm:7.2.0, glob@npm:^7.1.1, glob@npm:^7.1.2, glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.1.6, glob@npm:^7.2.0": version: 7.2.0 resolution: "glob@npm:7.2.0" dependencies: @@ -12030,22 +11922,22 @@ __metadata: languageName: node linkType: hard -"graphology-types@npm:^0.19.2": - version: 0.19.5 - resolution: "graphology-types@npm:0.19.5" - checksum: 478c366a33d04ee719bfdc2053e05e653d17f92a5640daadb4b643519f728092da0a3200315c19a3ea1d49c80756535168b92ea8a3335ee554672bbbe8dab6f4 +"graphology-types@npm:^0.21.2": + version: 0.21.2 + resolution: "graphology-types@npm:0.21.2" + checksum: f2fd2c9406a66ec93a72c5309b324fd17fe301f3cbb98ebb597b7bdcf76d2dec6f1a5bb7cf116adb09eb1539cc6eb65767a2f864ccd9bf50458fda18014e1a56 languageName: node linkType: hard -"graphology@npm:^0.20.0": - version: 0.20.0 - resolution: "graphology@npm:0.20.0" +"graphology@npm:^0.23.2": + version: 0.23.2 + resolution: "graphology@npm:0.23.2" dependencies: events: ^3.3.0 - obliterator: ^1.6.1 + obliterator: ^2.0.0 peerDependencies: - graphology-types: ">=0.19.0" - checksum: a2d7880782e88945ee003500fa9f8976406e711e472be735e81f66fbd37d171ac3380900bc178c2fde31850d0f204786c4d6bbda936986847ee3109ab273d763 + graphology-types: ">=0.23.0" + checksum: d4aae1617025ef269212ca113d1f1de004613b45c5dfbc83d1df1e1484203624ac57b92ab35a7bdbb9869fc39823b1aa9b5bd1cb2fec96d18404c821fb0c373b languageName: node linkType: hard @@ -13053,12 +12945,12 @@ __metadata: languageName: node linkType: hard -"is-valid-domain@npm:^0.1.2": - version: 0.1.4 - resolution: "is-valid-domain@npm:0.1.4" +"is-valid-domain@npm:^0.1.5": + version: 0.1.5 + resolution: "is-valid-domain@npm:0.1.5" dependencies: punycode: ^2.1.1 - checksum: 1fcb144e8df146c6f4e4d904dbf9ba77f87e7db6010946aa14236b8ff1a978024c7a826e64cb316bff63591e580cefdc3fc58c708d5c2735a7a892f7b7a02c2d + checksum: 78ec51a55b8848c7e67aa8717f7a98371d42969ec54128ebe56974eaa3dc5a540a050b816cec4c757b6a2e38636d372597e9d00cd6698a23ae1b830b7488221e languageName: node linkType: hard @@ -14343,189 +14235,88 @@ __metadata: languageName: node linkType: hard -"jsii-pacmak@npm:^1.46.0": - version: 1.46.0 - resolution: "jsii-pacmak@npm:1.46.0" - dependencies: - "@jsii/check-node": 1.46.0 - "@jsii/spec": ^1.46.0 - clone: ^2.1.2 - codemaker: ^1.46.0 - commonmark: ^0.30.0 - escape-string-regexp: ^4.0.0 - fs-extra: ^9.1.0 - jsii-reflect: ^1.46.0 - jsii-rosetta: ^1.46.0 - semver: ^7.3.5 - spdx-license-list: ^6.4.0 - xmlbuilder: ^15.1.1 - yargs: ^16.2.0 - bin: - jsii-pacmak: bin/jsii-pacmak - checksum: f16fbce389caaa4641c44e6f732678d2d4b30aa9f245c60c8a4fe31ca39dbd5ace8b378618d89a0aa681a14f48694d3fe4ad8d90d6ab31168d5246cf129348b2 - languageName: node - linkType: hard - -"jsii-pacmak@npm:^1.50.0": - version: 1.52.0 - resolution: "jsii-pacmak@npm:1.52.0" +"jsii-pacmak@npm:^1.52.1": + version: 1.52.1 + resolution: "jsii-pacmak@npm:1.52.1" dependencies: - "@jsii/check-node": 1.52.0 - "@jsii/spec": ^1.52.0 + "@jsii/check-node": 1.52.1 + "@jsii/spec": ^1.52.1 clone: ^2.1.2 - codemaker: ^1.52.0 + codemaker: ^1.52.1 commonmark: ^0.30.0 escape-string-regexp: ^4.0.0 fs-extra: ^9.1.0 - jsii-reflect: ^1.52.0 - jsii-rosetta: ^1.52.0 + jsii-reflect: ^1.52.1 + jsii-rosetta: ^1.52.1 semver: ^7.3.5 spdx-license-list: ^6.4.0 xmlbuilder: ^15.1.1 yargs: ^16.2.0 bin: jsii-pacmak: bin/jsii-pacmak - checksum: 47c0b9349eff5d0192b3be989a5918ef012e60eab66dd09a4e8793a452f3459283f4aae2ac7cea4ef64e51844909b59faba2d636320d9fd862a490a4f95906c4 - languageName: node - linkType: hard - -"jsii-reflect@npm:^1.46.0": - version: 1.46.0 - resolution: "jsii-reflect@npm:1.46.0" - dependencies: - "@jsii/check-node": 1.46.0 - "@jsii/spec": ^1.46.0 - colors: ^1.4.0 - fs-extra: ^9.1.0 - oo-ascii-tree: ^1.46.0 - yargs: ^16.2.0 - bin: - jsii-tree: bin/jsii-tree - checksum: d66ecbda149bd0f7be259925c2bbbc5912709a92de4444dfccee9234fd53a5ea1c34f5a668fb1a30a98abcde24797c79e02eb74213d021c2454f3a6f5896a925 + checksum: 532574a6018b71f86beea7c707e7d8553506990a56761b29be679027275af7600b9648786841cc849d5a04c1893fabdb5bd836bf447c8b7b062f2747f40878dd languageName: node linkType: hard -"jsii-reflect@npm:^1.52.0": - version: 1.52.0 - resolution: "jsii-reflect@npm:1.52.0" +"jsii-reflect@npm:^1.52.1": + version: 1.52.1 + resolution: "jsii-reflect@npm:1.52.1" dependencies: - "@jsii/check-node": 1.52.0 - "@jsii/spec": ^1.52.0 - colors: ^1.4.0 + "@jsii/check-node": 1.52.1 + "@jsii/spec": ^1.52.1 + colors: 1.4.0 fs-extra: ^9.1.0 - oo-ascii-tree: ^1.52.0 + oo-ascii-tree: ^1.52.1 yargs: ^16.2.0 bin: jsii-tree: bin/jsii-tree - checksum: 9bca19d2eddfa849b4f2345e9cddaa2e9496fb2a01ad524540bfd2e18f8f23c635fda97ae55ac8633b050ac04a378af22160dc36c214a74941722ee815e8c839 + checksum: c564660125bf2a2a4d937432442088279f41d9ff8c35c072aab1878388d2f25c90a5e7997136b5f33129cb71a3b0fb0c843177ad31d231c19c2abf510e8d70c2 languageName: node linkType: hard -"jsii-rosetta@npm:^1.39.0": - version: 1.42.0 - resolution: "jsii-rosetta@npm:1.42.0" - dependencies: - "@jsii/check-node": 1.42.0 - "@jsii/spec": ^1.42.0 - "@xmldom/xmldom": ^0.7.5 - commonmark: ^0.30.0 - fs-extra: ^9.1.0 - sort-json: ^2.0.0 - typescript: ~3.9.10 - workerpool: ^6.1.5 - yargs: ^16.2.0 - bin: - jsii-rosetta: bin/jsii-rosetta - checksum: da7ce7c4f349798078b8153c88752e837cde529e8574b90b900dcdd613a876c7456ee7d3f6837c71c189fe019868063448c8c2cf0b00a7a89d0cdce52f0cb068 - languageName: node - linkType: hard - -"jsii-rosetta@npm:^1.46.0": - version: 1.46.0 - resolution: "jsii-rosetta@npm:1.46.0" - dependencies: - "@jsii/check-node": 1.46.0 - "@jsii/spec": 1.46.0 - "@xmldom/xmldom": ^0.7.5 - commonmark: ^0.30.0 - fs-extra: ^9.1.0 - jsii: 1.46.0 - sort-json: ^2.0.0 - typescript: ~3.9.10 - workerpool: ^6.1.5 - yargs: ^16.2.0 - bin: - jsii-rosetta: bin/jsii-rosetta - checksum: 22e23ae1e5902f120529d315f336ea7c8f98c22fdb4f8b1c2acb9006c97491992058dabe757b5341475aff0d29904284b5048a4206ca31eae99669a4b352b714 - languageName: node - linkType: hard - -"jsii-rosetta@npm:^1.52.0": - version: 1.52.0 - resolution: "jsii-rosetta@npm:1.52.0" +"jsii-rosetta@npm:^1.52.1": + version: 1.52.1 + resolution: "jsii-rosetta@npm:1.52.1" dependencies: - "@jsii/check-node": 1.52.0 - "@jsii/spec": 1.52.0 + "@jsii/check-node": 1.52.1 + "@jsii/spec": 1.52.1 "@xmldom/xmldom": ^0.8.0 commonmark: ^0.30.0 fs-extra: ^9.1.0 - jsii: 1.52.0 + jsii: 1.52.1 sort-json: ^2.0.0 typescript: ~3.9.10 workerpool: ^6.1.5 yargs: ^16.2.0 bin: jsii-rosetta: bin/jsii-rosetta - checksum: 4ef02d01ee19c0889fea9cf96f11c1eeb9fb1fb0d23b35d1c43a463256dcad8d756cd5941e3d4b453127c8c614a3eab075c3f1721d01245d5335750a8be843f0 + checksum: 756508bbb29e79586bc186f785d7017226c08951b60a3a07e490832a75c2b695471d371825c98515400f46d5e64d30c25947f7270ad09af350ada088d66e2d08 languageName: node linkType: hard -"jsii-srcmak@npm:^0.1.406": - version: 0.1.413 - resolution: "jsii-srcmak@npm:0.1.413" +"jsii-srcmak@npm:^0.1.455": + version: 0.1.462 + resolution: "jsii-srcmak@npm:0.1.462" dependencies: fs-extra: ^9.1.0 - jsii: ^1.46.0 - jsii-pacmak: ^1.46.0 + jsii: ^1.52.1 + jsii-pacmak: ^1.52.1 ncp: ^2.0.0 yargs: ^15.4.1 bin: jsii-srcmak: bin/jsii-srcmak - checksum: da35e40264dbe0498051a702f57c677f64630187010acd2a98f3ad95212944fca658debc7562bc28b375926ac70b51af7995508e3afb2edf3890b08a97345eac - languageName: node - linkType: hard - -"jsii@npm:1.46.0, jsii@npm:^1.46.0": - version: 1.46.0 - resolution: "jsii@npm:1.46.0" - dependencies: - "@jsii/check-node": 1.46.0 - "@jsii/spec": ^1.46.0 - case: ^1.6.3 - colors: ^1.4.0 - deep-equal: ^2.0.5 - fs-extra: ^9.1.0 - log4js: ^6.3.0 - semver: ^7.3.5 - semver-intersect: ^1.4.0 - sort-json: ^2.0.0 - spdx-license-list: ^6.4.0 - typescript: ~3.9.10 - yargs: ^16.2.0 - bin: - jsii: bin/jsii - checksum: b7bc65127639023d3ffaabcd5ab7577e3cef1a77aa390ebf589c688e0eafac19ce64fa2a7cb80af2e765bc75589031792277bd579d46ce030c2c11b757a58463 + checksum: 1d3d69bc806e5a68e7c5bb2286b2f900a49fce8baf153189cd84fbefdd1c91d9394bc55316b4fc718a0e1b8edfb26dcde77f9fc69139816026b6de5c0764cf9a languageName: node linkType: hard -"jsii@npm:1.52.0, jsii@npm:^1.50.0": - version: 1.52.0 - resolution: "jsii@npm:1.52.0" +"jsii@npm:1.52.1, jsii@npm:^1.52.1": + version: 1.52.1 + resolution: "jsii@npm:1.52.1" dependencies: - "@jsii/check-node": 1.52.0 - "@jsii/spec": ^1.52.0 + "@jsii/check-node": 1.52.1 + "@jsii/spec": ^1.52.1 case: ^1.6.3 - colors: ^1.4.0 + colors: 1.4.0 deep-equal: ^2.0.5 fs-extra: ^9.1.0 log4js: ^6.3.0 @@ -14537,7 +14328,7 @@ __metadata: yargs: ^16.2.0 bin: jsii: bin/jsii - checksum: 12350bf6d1d421cca239715a95bb863da6481df093eaa52b2e351913df35bb70b2493e2b288b5e49556d82ca48f62fdcb210e2799bc3069e6ebe8b8222ad4dd2 + checksum: 1f1f0fc56e07e97e59af94ffad8ab82a3ac30133f75de2f30a43b34e04414acffaba582da0f72016ea44b52f3a778218de52cfe809f0c51f6302557188f455e0 languageName: node linkType: hard @@ -14603,6 +14394,15 @@ __metadata: languageName: node linkType: hard +"json-stable-stringify@npm:^1.0.1": + version: 1.0.1 + resolution: "json-stable-stringify@npm:1.0.1" + dependencies: + jsonify: ~0.0.0 + checksum: 65d6cbf0fca72a4136999f65f4401cf39a129f7aeff0fdd987ac3d3423a2113659294045fb8377e6e20d865cac32b1b8d70f3d87346c9786adcee60661d96ca5 + languageName: node + linkType: hard + "json-stringify-safe@npm:^5.0.1, json-stringify-safe@npm:~5.0.1": version: 5.0.1 resolution: "json-stringify-safe@npm:5.0.1" @@ -14657,6 +14457,13 @@ __metadata: languageName: node linkType: hard +"jsonify@npm:~0.0.0": + version: 0.0.0 + resolution: "jsonify@npm:0.0.0" + checksum: d8d4ed476c116e6987a460dcb82f22284686caae9f498ac87b0502c1765ac1522f4f450a4cad4cc368d202fd3b27a3860735140a82867fc6d558f5f199c38bce + languageName: node + linkType: hard + "jsonparse@npm:^1.2.0, jsonparse@npm:^1.3.1": version: 1.3.1 resolution: "jsonparse@npm:1.3.1" @@ -16025,6 +15832,20 @@ __metadata: languageName: node linkType: hard +"node-fetch@npm:^2.6.7": + version: 2.6.7 + resolution: "node-fetch@npm:2.6.7" + dependencies: + whatwg-url: ^5.0.0 + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + checksum: 8d816ffd1ee22cab8301c7756ef04f3437f18dace86a1dae22cf81db8ef29c0bf6655f3215cb0cdb22b420b6fe141e64b26905e7f33f9377a7fa59135ea3e10b + languageName: node + linkType: hard + "node-gyp-build@npm:^4.2.2": version: 4.3.0 resolution: "node-gyp-build@npm:4.3.0" @@ -16527,10 +16348,10 @@ __metadata: languageName: node linkType: hard -"obliterator@npm:^1.6.1": - version: 1.6.1 - resolution: "obliterator@npm:1.6.1" - checksum: 12412ce97bc9680a50ec1e865c9f106f924497f0b73c01947031079da7c9a0f5212f3a1aeea3227f7771ed4a273e42b2a2e6ff93578301c8117dbb3135770133 +"obliterator@npm:^2.0.0": + version: 2.0.1 + resolution: "obliterator@npm:2.0.1" + checksum: 50ead74a40bcdb202d2aa4a027a4cef497877e7c9983e56f65b3dd8c16da0e32d3edaa18565fcde571536fe66252d9a4d76300ac223ca4c5e33d6d41d1301c14 languageName: node linkType: hard @@ -16561,17 +16382,10 @@ __metadata: languageName: node linkType: hard -"oo-ascii-tree@npm:^1.46.0": - version: 1.46.0 - resolution: "oo-ascii-tree@npm:1.46.0" - checksum: 8f1629c086ad19da6d09860b009c07b3d84326093a809cd20245063302b144e1c5ff8cdd1a7e04b40099ab23bc347179f1bbaa119ec5f9a57fa831cdabc4b8f2 - languageName: node - linkType: hard - -"oo-ascii-tree@npm:^1.52.0": - version: 1.52.0 - resolution: "oo-ascii-tree@npm:1.52.0" - checksum: 38a5a30fb3c436a0af2777769384d39b446284fd602233734e4f59b557a92c391ea6fcc5b6dfb8125165d3a4b0e1b26a042798ba3c0393578f85744cc24a7760 +"oo-ascii-tree@npm:^1.52.1": + version: 1.52.1 + resolution: "oo-ascii-tree@npm:1.52.1" + checksum: 6e7dd7d8363def783340b6c97e4a011a84c172666b9364cf1073cdac7e9e28ac24b1c6f1207db53b79d6bd29efb7c57e67d6eb86661124add59fad6e2c1f6fb2 languageName: node linkType: hard @@ -17246,15 +17060,6 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^2.3.1": - version: 2.4.1 - resolution: "prettier@npm:2.4.1" - bin: - prettier: bin-prettier.js - checksum: cc6830588b401b0d742862fe9c46bc9118204fb307c3abe0e49e95b35ed23629573807ffdf9cdd65289c252a0bb51fc0171437f6626ee36378dea80f0ee80b91 - languageName: node - linkType: hard - "pretty-format@npm:^27.0.0, pretty-format@npm:^27.3.1": version: 27.3.1 resolution: "pretty-format@npm:27.3.1" @@ -21039,7 +20844,7 @@ typescript@~3.9.10: languageName: node linkType: hard -"yargs@npm:17.3.1": +"yargs@npm:17.3.1, yargs@npm:^17.3": version: 17.3.1 resolution: "yargs@npm:17.3.1" dependencies: @@ -21088,21 +20893,6 @@ typescript@~3.9.10: languageName: node linkType: hard -"yargs@npm:^17.0": - version: 17.2.1 - resolution: "yargs@npm:17.2.1" - dependencies: - cliui: ^7.0.2 - escalade: ^3.1.1 - get-caller-file: ^2.0.5 - require-directory: ^2.1.1 - string-width: ^4.2.0 - y18n: ^5.0.5 - yargs-parser: ^20.2.2 - checksum: 451aac46f82da776f436018feed0244bc0e7b4355f7e397bcb53d34c691b177c0d71db3dda9653760e1bc240254d8b763a252ff918ef9e235a8d202e2909c4eb - languageName: node - linkType: hard - "yn@npm:3.1.1": version: 3.1.1 resolution: "yn@npm:3.1.1" @@ -21139,7 +20929,7 @@ typescript@~3.9.10: languageName: node linkType: hard -"zod@npm:^1.11.7": +"zod@npm:^1.11.17": version: 1.11.17 resolution: "zod@npm:1.11.17" checksum: e07764a8a2fba195a4ec0ed9e66cee20e651ee1d9e533e5f48956de1ded6c6bcf80f63fed4a2bdb67de40a1300399edc9ee2095ee382c67d85745e3b0ccd14ca