stacktape 3.0.0-rc.9 → 3.0.0

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/index.js CHANGED
@@ -36,11 +36,8 @@ __export(index_exports, {
36
36
  AuroraServerlessEnginePostgresql: () => AuroraServerlessEnginePostgresql,
37
37
  AuroraServerlessV2EngineMysql: () => AuroraServerlessV2EngineMysql,
38
38
  AuroraServerlessV2EnginePostgresql: () => AuroraServerlessV2EnginePostgresql,
39
- BaseResource: () => BaseResource,
40
- BaseTypeProperties: () => BaseTypeProperties,
41
39
  Bastion: () => Bastion,
42
- BastionScriptWithCommand: () => BastionScriptWithCommand,
43
- BastionScriptWithCommands: () => BastionScriptWithCommands,
40
+ BastionScript: () => BastionScript,
44
41
  BatchJob: () => BatchJob,
45
42
  Bucket: () => Bucket,
46
43
  CdnBucketRoute: () => CdnBucketRoute,
@@ -49,13 +46,18 @@ __export(index_exports, {
49
46
  CdnLambdaFunctionRoute: () => CdnLambdaFunctionRoute,
50
47
  CdnLoadBalancerRoute: () => CdnLoadBalancerRoute,
51
48
  CloudwatchLogIntegration: () => CloudwatchLogIntegration,
49
+ CognitoAuthorizer: () => CognitoAuthorizer,
52
50
  ContainerEfsMount: () => ContainerEfsMount,
53
51
  CustomArtifactLambdaPackaging: () => CustomArtifactLambdaPackaging,
54
52
  CustomDockerfilePackaging: () => CustomDockerfilePackaging,
53
+ CustomResourceDefinition: () => CustomResourceDefinition,
54
+ CustomResourceInstance: () => CustomResourceInstance,
55
55
  CustomRuleGroup: () => CustomRuleGroup,
56
56
  DatadogLogForwarding: () => DatadogLogForwarding,
57
+ DeploymentScript: () => DeploymentScript,
57
58
  DynamoDbIntegration: () => DynamoDbIntegration,
58
59
  DynamoDbTable: () => DynamoDbTable,
60
+ EdgeLambdaFunction: () => EdgeLambdaFunction,
59
61
  EfsFilesystem: () => EfsFilesystem,
60
62
  EventBus: () => EventBus,
61
63
  EventBusIntegration: () => EventBusIntegration,
@@ -66,18 +68,14 @@ __export(index_exports, {
66
68
  HttpApiGateway: () => HttpApiGateway,
67
69
  HttpApiIntegration: () => HttpApiIntegration,
68
70
  HttpEndpointLogForwarding: () => HttpEndpointLogForwarding,
71
+ IotIntegration: () => IotIntegration,
69
72
  KafkaTopicIntegration: () => KafkaTopicIntegration,
70
73
  KinesisIntegration: () => KinesisIntegration,
74
+ LambdaAuthorizer: () => LambdaAuthorizer,
71
75
  LambdaEfsMount: () => LambdaEfsMount,
72
76
  LambdaFunction: () => LambdaFunction,
73
- LocalScriptWithBastionTunnelingCommand: () => LocalScriptWithBastionTunnelingCommand,
74
- LocalScriptWithBastionTunnelingCommands: () => LocalScriptWithBastionTunnelingCommands,
75
- LocalScriptWithBastionTunnelingFileScript: () => LocalScriptWithBastionTunnelingFileScript,
76
- LocalScriptWithBastionTunnelingFileScripts: () => LocalScriptWithBastionTunnelingFileScripts,
77
- LocalScriptWithCommand: () => LocalScriptWithCommand,
78
- LocalScriptWithCommands: () => LocalScriptWithCommands,
79
- LocalScriptWithFileScript: () => LocalScriptWithFileScript,
80
- LocalScriptWithFileScripts: () => LocalScriptWithFileScripts,
77
+ LocalScript: () => LocalScript,
78
+ LocalScriptWithBastionTunneling: () => LocalScriptWithBastionTunneling,
81
79
  ManagedRuleGroup: () => ManagedRuleGroup,
82
80
  MongoDbAtlasCluster: () => MongoDbAtlasCluster,
83
81
  MultiContainerWorkload: () => MultiContainerWorkload,
@@ -105,7 +103,6 @@ __export(index_exports, {
105
103
  RdsEngineSqlServerWeb: () => RdsEngineSqlServerWeb,
106
104
  RedisCluster: () => RedisCluster,
107
105
  RelationalDatabase: () => RelationalDatabase,
108
- ResourceParamReference: () => ResourceParamReference,
109
106
  S3Integration: () => S3Integration,
110
107
  ScheduleIntegration: () => ScheduleIntegration,
111
108
  SnsIntegration: () => SnsIntegration,
@@ -121,9 +118,7 @@ __export(index_exports, {
121
118
  WebAppFirewall: () => WebAppFirewall,
122
119
  WebService: () => WebService,
123
120
  WorkerService: () => WorkerService,
124
- defineConfig: () => defineConfig,
125
- transformConfigWithResources: () => transformConfigWithResources,
126
- transformValue: () => transformValue
121
+ defineConfig: () => defineConfig
127
122
  });
128
123
  module.exports = __toCommonJS(index_exports);
129
124
 
@@ -2969,6 +2964,798 @@ var $GitInfo = /* @__PURE__ */ __name(() => {
2969
2964
  // src/api/npm/ts/global-aws-services.ts
2970
2965
  var AWS_SES = "aws:ses";
2971
2966
 
2967
+ // src/api/npm/ts/class-config.ts
2968
+ var RESOURCES_CONVERTIBLE_TO_CLASSES = [
2969
+ {
2970
+ className: "RelationalDatabase",
2971
+ resourceType: "relational-database",
2972
+ propsType: "RelationalDatabaseProps",
2973
+ interfaceName: "RelationalDatabase",
2974
+ sourceFile: "relational-databases.d.ts",
2975
+ canConnectTo: []
2976
+ },
2977
+ {
2978
+ className: "WebService",
2979
+ resourceType: "web-service",
2980
+ propsType: "WebServiceProps",
2981
+ interfaceName: "WebService",
2982
+ sourceFile: "web-services.d.ts",
2983
+ hasAugmentedProps: true,
2984
+ canConnectTo: [
2985
+ "RelationalDatabase",
2986
+ "Bucket",
2987
+ "HostingBucket",
2988
+ "DynamoDbTable",
2989
+ "EventBus",
2990
+ "RedisCluster",
2991
+ "MongoDbAtlasCluster",
2992
+ "UpstashRedis",
2993
+ "SqsQueue",
2994
+ "SnsTopic",
2995
+ "OpenSearchDomain",
2996
+ "EfsFilesystem",
2997
+ "PrivateService"
2998
+ ]
2999
+ },
3000
+ {
3001
+ className: "PrivateService",
3002
+ resourceType: "private-service",
3003
+ propsType: "PrivateServiceProps",
3004
+ interfaceName: "PrivateService",
3005
+ sourceFile: "private-services.d.ts",
3006
+ hasAugmentedProps: true,
3007
+ canConnectTo: [
3008
+ "RelationalDatabase",
3009
+ "Bucket",
3010
+ "HostingBucket",
3011
+ "DynamoDbTable",
3012
+ "EventBus",
3013
+ "RedisCluster",
3014
+ "MongoDbAtlasCluster",
3015
+ "UpstashRedis",
3016
+ "SqsQueue",
3017
+ "SnsTopic",
3018
+ "OpenSearchDomain",
3019
+ "EfsFilesystem"
3020
+ ]
3021
+ },
3022
+ {
3023
+ className: "WorkerService",
3024
+ resourceType: "worker-service",
3025
+ propsType: "WorkerServiceProps",
3026
+ interfaceName: "WorkerService",
3027
+ sourceFile: "worker-services.d.ts",
3028
+ hasAugmentedProps: true,
3029
+ canConnectTo: [
3030
+ "RelationalDatabase",
3031
+ "Bucket",
3032
+ "HostingBucket",
3033
+ "DynamoDbTable",
3034
+ "EventBus",
3035
+ "RedisCluster",
3036
+ "MongoDbAtlasCluster",
3037
+ "UpstashRedis",
3038
+ "SqsQueue",
3039
+ "SnsTopic",
3040
+ "OpenSearchDomain",
3041
+ "EfsFilesystem"
3042
+ ]
3043
+ },
3044
+ {
3045
+ className: "MultiContainerWorkload",
3046
+ resourceType: "multi-container-workload",
3047
+ propsType: "ContainerWorkloadProps",
3048
+ interfaceName: "MultiContainerWorkload",
3049
+ sourceFile: "multi-container-workloads.d.ts",
3050
+ hasAugmentedProps: true,
3051
+ canConnectTo: [
3052
+ "RelationalDatabase",
3053
+ "Bucket",
3054
+ "HostingBucket",
3055
+ "DynamoDbTable",
3056
+ "EventBus",
3057
+ "RedisCluster",
3058
+ "MongoDbAtlasCluster",
3059
+ "UpstashRedis",
3060
+ "SqsQueue",
3061
+ "SnsTopic",
3062
+ "OpenSearchDomain",
3063
+ "EfsFilesystem"
3064
+ ]
3065
+ },
3066
+ {
3067
+ className: "LambdaFunction",
3068
+ resourceType: "function",
3069
+ propsType: "LambdaFunctionProps",
3070
+ interfaceName: "LambdaFunction",
3071
+ sourceFile: "functions.d.ts",
3072
+ hasAugmentedProps: true,
3073
+ canConnectTo: [
3074
+ "RelationalDatabase",
3075
+ "Bucket",
3076
+ "HostingBucket",
3077
+ "DynamoDbTable",
3078
+ "EventBus",
3079
+ "RedisCluster",
3080
+ "MongoDbAtlasCluster",
3081
+ "UpstashRedis",
3082
+ "SqsQueue",
3083
+ "SnsTopic",
3084
+ "OpenSearchDomain",
3085
+ "EfsFilesystem",
3086
+ "PrivateService",
3087
+ "WebService"
3088
+ ]
3089
+ },
3090
+ {
3091
+ className: "BatchJob",
3092
+ resourceType: "batch-job",
3093
+ propsType: "BatchJobProps",
3094
+ interfaceName: "BatchJob",
3095
+ sourceFile: "batch-jobs.d.ts",
3096
+ hasAugmentedProps: true,
3097
+ canConnectTo: [
3098
+ "RelationalDatabase",
3099
+ "Bucket",
3100
+ "HostingBucket",
3101
+ "DynamoDbTable",
3102
+ "EventBus",
3103
+ "RedisCluster",
3104
+ "MongoDbAtlasCluster",
3105
+ "UpstashRedis",
3106
+ "SqsQueue",
3107
+ "SnsTopic",
3108
+ "OpenSearchDomain",
3109
+ "EfsFilesystem"
3110
+ ]
3111
+ },
3112
+ {
3113
+ className: "Bucket",
3114
+ resourceType: "bucket",
3115
+ propsType: "BucketProps",
3116
+ interfaceName: "Bucket",
3117
+ sourceFile: "buckets.d.ts",
3118
+ canConnectTo: []
3119
+ },
3120
+ {
3121
+ className: "HostingBucket",
3122
+ resourceType: "hosting-bucket",
3123
+ propsType: "HostingBucketProps",
3124
+ interfaceName: "HostingBucket",
3125
+ sourceFile: "hosting-buckets.d.ts",
3126
+ canConnectTo: []
3127
+ },
3128
+ {
3129
+ className: "DynamoDbTable",
3130
+ resourceType: "dynamo-db-table",
3131
+ propsType: "DynamoDbTableProps",
3132
+ interfaceName: "DynamoDbTable",
3133
+ sourceFile: "dynamo-db-tables.d.ts",
3134
+ canConnectTo: []
3135
+ },
3136
+ {
3137
+ className: "EventBus",
3138
+ resourceType: "event-bus",
3139
+ propsType: "EventBusProps",
3140
+ interfaceName: "EventBus",
3141
+ sourceFile: "event-buses.d.ts",
3142
+ canConnectTo: []
3143
+ },
3144
+ {
3145
+ className: "HttpApiGateway",
3146
+ resourceType: "http-api-gateway",
3147
+ propsType: "HttpApiGatewayProps",
3148
+ interfaceName: "HttpApiGateway",
3149
+ sourceFile: "http-api-gateways.d.ts",
3150
+ canConnectTo: []
3151
+ },
3152
+ {
3153
+ className: "ApplicationLoadBalancer",
3154
+ resourceType: "application-load-balancer",
3155
+ propsType: "ApplicationLoadBalancerProps",
3156
+ interfaceName: "ApplicationLoadBalancer",
3157
+ sourceFile: "application-load-balancers.d.ts",
3158
+ canConnectTo: []
3159
+ },
3160
+ {
3161
+ className: "NetworkLoadBalancer",
3162
+ resourceType: "network-load-balancer",
3163
+ propsType: "NetworkLoadBalancerProps",
3164
+ interfaceName: "NetworkLoadBalancer",
3165
+ sourceFile: "network-load-balancer.d.ts",
3166
+ canConnectTo: []
3167
+ },
3168
+ {
3169
+ className: "RedisCluster",
3170
+ resourceType: "redis-cluster",
3171
+ propsType: "RedisClusterProps",
3172
+ interfaceName: "RedisCluster",
3173
+ sourceFile: "redis-cluster.d.ts",
3174
+ canConnectTo: []
3175
+ },
3176
+ {
3177
+ className: "MongoDbAtlasCluster",
3178
+ resourceType: "mongo-db-atlas-cluster",
3179
+ propsType: "MongoDbAtlasClusterProps",
3180
+ interfaceName: "MongoDbAtlasCluster",
3181
+ sourceFile: "mongo-db-atlas-clusters.d.ts",
3182
+ supportsOverrides: false,
3183
+ canConnectTo: []
3184
+ },
3185
+ {
3186
+ className: "StateMachine",
3187
+ resourceType: "state-machine",
3188
+ propsType: "StateMachineProps",
3189
+ interfaceName: "StateMachine",
3190
+ sourceFile: "state-machines.d.ts",
3191
+ hasAugmentedProps: true,
3192
+ canConnectTo: ["Function", "BatchJob"]
3193
+ },
3194
+ {
3195
+ className: "UserAuthPool",
3196
+ resourceType: "user-auth-pool",
3197
+ propsType: "UserAuthPoolProps",
3198
+ interfaceName: "UserAuthPool",
3199
+ sourceFile: "user-pools.d.ts",
3200
+ canConnectTo: []
3201
+ },
3202
+ {
3203
+ className: "UpstashRedis",
3204
+ resourceType: "upstash-redis",
3205
+ propsType: "UpstashRedisProps",
3206
+ interfaceName: "UpstashRedis",
3207
+ sourceFile: "upstash-redis.d.ts",
3208
+ supportsOverrides: false,
3209
+ canConnectTo: []
3210
+ },
3211
+ {
3212
+ className: "SqsQueue",
3213
+ resourceType: "sqs-queue",
3214
+ propsType: "SqsQueueProps",
3215
+ interfaceName: "SqsQueue",
3216
+ sourceFile: "sqs-queues.d.ts",
3217
+ canConnectTo: []
3218
+ },
3219
+ {
3220
+ className: "SnsTopic",
3221
+ resourceType: "sns-topic",
3222
+ propsType: "SnsTopicProps",
3223
+ interfaceName: "SnsTopic",
3224
+ sourceFile: "sns-topic.d.ts",
3225
+ canConnectTo: []
3226
+ },
3227
+ {
3228
+ className: "WebAppFirewall",
3229
+ resourceType: "web-app-firewall",
3230
+ propsType: "WebAppFirewallProps",
3231
+ interfaceName: "WebAppFirewall",
3232
+ sourceFile: "web-app-firewall.d.ts",
3233
+ canConnectTo: []
3234
+ },
3235
+ {
3236
+ className: "OpenSearchDomain",
3237
+ resourceType: "open-search-domain",
3238
+ propsType: "OpenSearchDomainProps",
3239
+ interfaceName: "OpenSearchDomain",
3240
+ sourceFile: "open-search.d.ts",
3241
+ canConnectTo: []
3242
+ },
3243
+ {
3244
+ className: "EfsFilesystem",
3245
+ resourceType: "efs-filesystem",
3246
+ propsType: "EfsFilesystemProps",
3247
+ interfaceName: "EfsFilesystem",
3248
+ sourceFile: "efs-filesystem.d.ts",
3249
+ canConnectTo: []
3250
+ },
3251
+ {
3252
+ className: "NextjsWeb",
3253
+ resourceType: "nextjs-web",
3254
+ propsType: "NextjsWebProps",
3255
+ interfaceName: "NextjsWeb",
3256
+ sourceFile: "nextjs-web.d.ts",
3257
+ canConnectTo: []
3258
+ },
3259
+ {
3260
+ className: "Bastion",
3261
+ resourceType: "bastion",
3262
+ propsType: "BastionProps",
3263
+ interfaceName: "Bastion",
3264
+ sourceFile: "bastion.d.ts",
3265
+ canConnectTo: []
3266
+ }
3267
+ ];
3268
+ var MISC_TYPES_CONVERTIBLE_TO_CLASSES = [
3269
+ // Database Engines
3270
+ {
3271
+ className: "RdsEnginePostgres",
3272
+ typeValue: "postgres",
3273
+ propsType: "RdsEngineProperties",
3274
+ interfaceName: "RdsEngine",
3275
+ sourceFile: "relational-databases.d.ts"
3276
+ },
3277
+ {
3278
+ className: "RdsEngineMariadb",
3279
+ typeValue: "mariadb",
3280
+ propsType: "RdsEngineProperties",
3281
+ interfaceName: "RdsEngine",
3282
+ sourceFile: "relational-databases.d.ts"
3283
+ },
3284
+ {
3285
+ className: "RdsEngineMysql",
3286
+ typeValue: "mysql",
3287
+ propsType: "RdsEngineProperties",
3288
+ interfaceName: "RdsEngine",
3289
+ sourceFile: "relational-databases.d.ts"
3290
+ },
3291
+ {
3292
+ className: "RdsEngineOracleEE",
3293
+ typeValue: "oracle-ee",
3294
+ propsType: "RdsEngineProperties",
3295
+ interfaceName: "RdsEngine",
3296
+ sourceFile: "relational-databases.d.ts"
3297
+ },
3298
+ {
3299
+ className: "RdsEngineOracleSE2",
3300
+ typeValue: "oracle-se2",
3301
+ propsType: "RdsEngineProperties",
3302
+ interfaceName: "RdsEngine",
3303
+ sourceFile: "relational-databases.d.ts"
3304
+ },
3305
+ {
3306
+ className: "RdsEngineSqlServerEE",
3307
+ typeValue: "sqlserver-ee",
3308
+ propsType: "RdsEngineProperties",
3309
+ interfaceName: "RdsEngine",
3310
+ sourceFile: "relational-databases.d.ts"
3311
+ },
3312
+ {
3313
+ className: "RdsEngineSqlServerEX",
3314
+ typeValue: "sqlserver-ex",
3315
+ propsType: "RdsEngineProperties",
3316
+ interfaceName: "RdsEngine",
3317
+ sourceFile: "relational-databases.d.ts"
3318
+ },
3319
+ {
3320
+ className: "RdsEngineSqlServerSE",
3321
+ typeValue: "sqlserver-se",
3322
+ propsType: "RdsEngineProperties",
3323
+ interfaceName: "RdsEngine",
3324
+ sourceFile: "relational-databases.d.ts"
3325
+ },
3326
+ {
3327
+ className: "RdsEngineSqlServerWeb",
3328
+ typeValue: "sqlserver-web",
3329
+ propsType: "RdsEngineProperties",
3330
+ interfaceName: "RdsEngine",
3331
+ sourceFile: "relational-databases.d.ts"
3332
+ },
3333
+ {
3334
+ className: "AuroraEnginePostgresql",
3335
+ typeValue: "aurora-postgresql",
3336
+ propsType: "AuroraEngineProperties",
3337
+ interfaceName: "AuroraEngine",
3338
+ sourceFile: "relational-databases.d.ts"
3339
+ },
3340
+ {
3341
+ className: "AuroraEngineMysql",
3342
+ typeValue: "aurora-mysql",
3343
+ propsType: "AuroraEngineProperties",
3344
+ interfaceName: "AuroraEngine",
3345
+ sourceFile: "relational-databases.d.ts"
3346
+ },
3347
+ {
3348
+ className: "AuroraServerlessEnginePostgresql",
3349
+ typeValue: "aurora-postgresql-serverless",
3350
+ propsType: "AuroraServerlessEngineProperties",
3351
+ interfaceName: "AuroraServerlessEngine",
3352
+ sourceFile: "relational-databases.d.ts"
3353
+ },
3354
+ {
3355
+ className: "AuroraServerlessEngineMysql",
3356
+ typeValue: "aurora-mysql-serverless",
3357
+ propsType: "AuroraServerlessEngineProperties",
3358
+ interfaceName: "AuroraServerlessEngine",
3359
+ sourceFile: "relational-databases.d.ts"
3360
+ },
3361
+ {
3362
+ className: "AuroraServerlessV2EnginePostgresql",
3363
+ typeValue: "aurora-postgresql-serverless-v2",
3364
+ propsType: "AuroraServerlessV2EngineProperties",
3365
+ interfaceName: "AuroraServerlessV2Engine",
3366
+ sourceFile: "relational-databases.d.ts"
3367
+ },
3368
+ {
3369
+ className: "AuroraServerlessV2EngineMysql",
3370
+ typeValue: "aurora-mysql-serverless-v2",
3371
+ propsType: "AuroraServerlessV2EngineProperties",
3372
+ interfaceName: "AuroraServerlessV2Engine",
3373
+ sourceFile: "relational-databases.d.ts"
3374
+ },
3375
+ // Lambda Packaging
3376
+ {
3377
+ className: "StacktapeLambdaBuildpackPackaging",
3378
+ typeValue: "stacktape-lambda-buildpack",
3379
+ propsType: "StpBuildpackLambdaPackagingProps",
3380
+ interfaceName: "StpBuildpackLambdaPackaging",
3381
+ sourceFile: "deployment-artifacts.d.ts"
3382
+ },
3383
+ {
3384
+ className: "CustomArtifactLambdaPackaging",
3385
+ typeValue: "custom-artifact",
3386
+ propsType: "CustomArtifactLambdaPackagingProps",
3387
+ interfaceName: "CustomArtifactLambdaPackaging",
3388
+ sourceFile: "deployment-artifacts.d.ts"
3389
+ },
3390
+ // Container Packaging
3391
+ {
3392
+ className: "PrebuiltImagePackaging",
3393
+ typeValue: "prebuilt-image",
3394
+ propsType: "PrebuiltImageCwPackagingProps",
3395
+ interfaceName: "PrebuiltCwImagePackaging",
3396
+ sourceFile: "deployment-artifacts.d.ts"
3397
+ },
3398
+ {
3399
+ className: "CustomDockerfilePackaging",
3400
+ typeValue: "custom-dockerfile",
3401
+ propsType: "CustomDockerfileCwImagePackagingProps",
3402
+ interfaceName: "CustomDockerfileCwImagePackaging",
3403
+ sourceFile: "deployment-artifacts.d.ts"
3404
+ },
3405
+ {
3406
+ className: "ExternalBuildpackPackaging",
3407
+ typeValue: "external-buildpack",
3408
+ propsType: "ExternalBuildpackCwImagePackagingProps",
3409
+ interfaceName: "ExternalBuildpackCwImagePackaging",
3410
+ sourceFile: "deployment-artifacts.d.ts"
3411
+ },
3412
+ {
3413
+ className: "NixpacksPackaging",
3414
+ typeValue: "nixpacks",
3415
+ propsType: "NixpacksCwImagePackagingProps",
3416
+ interfaceName: "NixpacksCwImagePackaging",
3417
+ sourceFile: "deployment-artifacts.d.ts"
3418
+ },
3419
+ {
3420
+ className: "StacktapeImageBuildpackPackaging",
3421
+ typeValue: "stacktape-image-buildpack",
3422
+ propsType: "StpBuildpackCwImagePackagingProps",
3423
+ interfaceName: "StpBuildpackCwImagePackaging",
3424
+ sourceFile: "deployment-artifacts.d.ts"
3425
+ },
3426
+ // Lambda Function Events/Integrations
3427
+ {
3428
+ className: "HttpApiIntegration",
3429
+ typeValue: "http-api-gateway",
3430
+ propsType: "HttpApiIntegrationProps",
3431
+ interfaceName: "HttpApiIntegration",
3432
+ sourceFile: "events.d.ts"
3433
+ },
3434
+ {
3435
+ className: "S3Integration",
3436
+ typeValue: "s3",
3437
+ propsType: "S3IntegrationProps",
3438
+ interfaceName: "S3Integration",
3439
+ sourceFile: "events.d.ts"
3440
+ },
3441
+ {
3442
+ className: "ScheduleIntegration",
3443
+ typeValue: "schedule",
3444
+ propsType: "ScheduleIntegrationProps",
3445
+ interfaceName: "ScheduleIntegration",
3446
+ sourceFile: "events.d.ts"
3447
+ },
3448
+ {
3449
+ className: "SnsIntegration",
3450
+ typeValue: "sns",
3451
+ propsType: "SnsIntegrationProps",
3452
+ interfaceName: "SnsIntegration",
3453
+ sourceFile: "events.d.ts"
3454
+ },
3455
+ {
3456
+ className: "SqsIntegration",
3457
+ typeValue: "sqs",
3458
+ propsType: "SqsIntegrationProps",
3459
+ interfaceName: "SqsIntegration",
3460
+ sourceFile: "events.d.ts"
3461
+ },
3462
+ {
3463
+ className: "KinesisIntegration",
3464
+ typeValue: "kinesis",
3465
+ propsType: "KinesisIntegrationProps",
3466
+ interfaceName: "KinesisIntegration",
3467
+ sourceFile: "events.d.ts"
3468
+ },
3469
+ {
3470
+ className: "DynamoDbIntegration",
3471
+ typeValue: "dynamodb",
3472
+ propsType: "DynamoDbIntegrationProps",
3473
+ interfaceName: "DynamoDbIntegration",
3474
+ sourceFile: "events.d.ts"
3475
+ },
3476
+ {
3477
+ className: "CloudwatchLogIntegration",
3478
+ typeValue: "cloudwatch-logs",
3479
+ propsType: "CloudwatchLogIntegrationProps",
3480
+ interfaceName: "CloudwatchLogIntegration",
3481
+ sourceFile: "events.d.ts"
3482
+ },
3483
+ {
3484
+ className: "ApplicationLoadBalancerIntegration",
3485
+ typeValue: "application-load-balancer",
3486
+ propsType: "ApplicationLoadBalancerIntegrationProps",
3487
+ interfaceName: "ApplicationLoadBalancerIntegration",
3488
+ sourceFile: "events.d.ts"
3489
+ },
3490
+ {
3491
+ className: "EventBusIntegration",
3492
+ typeValue: "event-bus",
3493
+ propsType: "EventBusIntegrationProps",
3494
+ interfaceName: "EventBusIntegration",
3495
+ sourceFile: "events.d.ts"
3496
+ },
3497
+ {
3498
+ className: "KafkaTopicIntegration",
3499
+ typeValue: "kafka-topic",
3500
+ propsType: "KafkaTopicIntegrationProps",
3501
+ interfaceName: "KafkaTopicIntegration",
3502
+ sourceFile: "events.d.ts"
3503
+ },
3504
+ {
3505
+ className: "AlarmIntegration",
3506
+ typeValue: "alarm",
3507
+ propsType: "AlarmIntegrationProps",
3508
+ interfaceName: "AlarmIntegration",
3509
+ sourceFile: "events.d.ts"
3510
+ },
3511
+ {
3512
+ className: "IotIntegration",
3513
+ typeValue: "iot",
3514
+ propsType: "IotIntegrationProps",
3515
+ interfaceName: "IotIntegration",
3516
+ sourceFile: "events.d.ts"
3517
+ },
3518
+ // CDN Routes
3519
+ {
3520
+ className: "CdnLoadBalancerRoute",
3521
+ typeValue: "application-load-balancer",
3522
+ propsType: "CdnLoadBalancerOrigin",
3523
+ interfaceName: "CdnLoadBalancerOrigin",
3524
+ sourceFile: "cdn.d.ts"
3525
+ },
3526
+ {
3527
+ className: "CdnHttpApiGatewayRoute",
3528
+ typeValue: "http-api-gateway",
3529
+ propsType: "CdnHttpApiGatewayOrigin",
3530
+ interfaceName: "CdnHttpApiGatewayOrigin",
3531
+ sourceFile: "cdn.d.ts"
3532
+ },
3533
+ {
3534
+ className: "CdnLambdaFunctionRoute",
3535
+ typeValue: "function",
3536
+ propsType: "CdnLambdaFunctionOrigin",
3537
+ interfaceName: "CdnLambdaFunctionOrigin",
3538
+ sourceFile: "cdn.d.ts"
3539
+ },
3540
+ {
3541
+ className: "CdnCustomDomainRoute",
3542
+ typeValue: "custom-origin",
3543
+ propsType: "CdnCustomOrigin",
3544
+ interfaceName: "CdnCustomOrigin",
3545
+ sourceFile: "cdn.d.ts"
3546
+ },
3547
+ {
3548
+ className: "CdnBucketRoute",
3549
+ typeValue: "bucket",
3550
+ propsType: "CdnBucketOrigin",
3551
+ interfaceName: "CdnBucketOrigin",
3552
+ sourceFile: "cdn.d.ts"
3553
+ },
3554
+ // Web App Firewall Rules
3555
+ {
3556
+ className: "ManagedRuleGroup",
3557
+ typeValue: "managed-rule-group",
3558
+ propsType: "ManagedRuleGroupProps",
3559
+ interfaceName: "ManagedRuleGroup",
3560
+ sourceFile: "web-app-firewall.d.ts"
3561
+ },
3562
+ {
3563
+ className: "CustomRuleGroup",
3564
+ typeValue: "custom-rule-group",
3565
+ propsType: "CustomRuleGroupProps",
3566
+ interfaceName: "CustomRuleGroup",
3567
+ sourceFile: "web-app-firewall.d.ts"
3568
+ },
3569
+ {
3570
+ className: "RateBasedRule",
3571
+ typeValue: "rate-based-rule",
3572
+ propsType: "RateBasedStatementProps",
3573
+ interfaceName: "RateBasedRule",
3574
+ sourceFile: "web-app-firewall.d.ts"
3575
+ },
3576
+ // SQS Queue Integrations
3577
+ {
3578
+ className: "SqsQueueEventBusIntegration",
3579
+ typeValue: "event-bus",
3580
+ propsType: "SqsQueueEventBusIntegrationProps",
3581
+ interfaceName: "SqsQueueEventBusIntegration",
3582
+ sourceFile: "sqs-queues.d.ts"
3583
+ },
3584
+ // Multi Container Workload Integrations
3585
+ {
3586
+ className: "MultiContainerWorkloadHttpApiIntegration",
3587
+ typeValue: "http-api-gateway",
3588
+ propsType: "ContainerWorkloadHttpApiIntegrationProps",
3589
+ interfaceName: "ContainerWorkloadHttpApiIntegration",
3590
+ sourceFile: "multi-container-workloads.d.ts"
3591
+ },
3592
+ {
3593
+ className: "MultiContainerWorkloadLoadBalancerIntegration",
3594
+ typeValue: "application-load-balancer",
3595
+ propsType: "ContainerWorkloadLoadBalancerIntegrationProps",
3596
+ interfaceName: "ContainerWorkloadLoadBalancerIntegration",
3597
+ sourceFile: "multi-container-workloads.d.ts"
3598
+ },
3599
+ {
3600
+ className: "MultiContainerWorkloadNetworkLoadBalancerIntegration",
3601
+ typeValue: "network-load-balancer",
3602
+ propsType: "ContainerWorkloadNetworkLoadBalancerIntegrationProps",
3603
+ interfaceName: "ContainerWorkloadNetworkLoadBalancerIntegration",
3604
+ sourceFile: "multi-container-workloads.d.ts"
3605
+ },
3606
+ {
3607
+ className: "MultiContainerWorkloadInternalIntegration",
3608
+ typeValue: "workload-internal",
3609
+ propsType: "ContainerWorkloadInternalIntegrationProps",
3610
+ interfaceName: "ContainerWorkloadInternalIntegration",
3611
+ sourceFile: "multi-container-workloads.d.ts"
3612
+ },
3613
+ {
3614
+ className: "MultiContainerWorkloadServiceConnectIntegration",
3615
+ typeValue: "service-connect",
3616
+ propsType: "ContainerWorkloadServiceConnectIntegrationProps",
3617
+ interfaceName: "ContainerWorkloadServiceConnectIntegration",
3618
+ sourceFile: "multi-container-workloads.d.ts"
3619
+ },
3620
+ // Scripts
3621
+ {
3622
+ className: "LocalScript",
3623
+ typeValue: "local-script",
3624
+ propsType: "LocalScriptProps",
3625
+ interfaceName: "LocalScript",
3626
+ sourceFile: "__helpers.d.ts"
3627
+ },
3628
+ {
3629
+ className: "BastionScript",
3630
+ typeValue: "bastion-script",
3631
+ propsType: "BastionScriptProps",
3632
+ interfaceName: "BastionScript",
3633
+ sourceFile: "__helpers.d.ts"
3634
+ },
3635
+ {
3636
+ className: "LocalScriptWithBastionTunneling",
3637
+ typeValue: "local-script-with-bastion-tunneling",
3638
+ propsType: "LocalScriptWithBastionTunnelingProps",
3639
+ interfaceName: "LocalScriptWithBastionTunneling",
3640
+ sourceFile: "__helpers.d.ts"
3641
+ },
3642
+ // Log Forwarding
3643
+ {
3644
+ className: "HttpEndpointLogForwarding",
3645
+ typeValue: "http-endpoint",
3646
+ propsType: "HttpEndpointLogForwardingProps",
3647
+ interfaceName: "HttpEndpointLogForwarding",
3648
+ sourceFile: "__helpers.d.ts"
3649
+ },
3650
+ {
3651
+ className: "HighlightLogForwarding",
3652
+ typeValue: "highlight",
3653
+ propsType: "HighlightLogForwardingProps",
3654
+ interfaceName: "HighlightLogForwarding",
3655
+ sourceFile: "__helpers.d.ts"
3656
+ },
3657
+ {
3658
+ className: "DatadogLogForwarding",
3659
+ typeValue: "datadog",
3660
+ propsType: "DatadogLogForwardingProps",
3661
+ interfaceName: "DatadogLogForwarding",
3662
+ sourceFile: "__helpers.d.ts"
3663
+ },
3664
+ // Bucket Lifecycle Rules
3665
+ {
3666
+ className: "ExpirationLifecycleRule",
3667
+ typeValue: "expiration",
3668
+ propsType: "ExpirationProps",
3669
+ interfaceName: "ExpirationLifecycleRule",
3670
+ sourceFile: "buckets.d.ts"
3671
+ },
3672
+ {
3673
+ className: "NonCurrentVersionExpirationLifecycleRule",
3674
+ typeValue: "non-current-version-expiration",
3675
+ propsType: "NonCurrentVersionExpirationProps",
3676
+ interfaceName: "NonCurrentVersionExpirationLifecycleRule",
3677
+ sourceFile: "buckets.d.ts"
3678
+ },
3679
+ // EFS Mounts
3680
+ {
3681
+ className: "ContainerEfsMount",
3682
+ typeValue: "efs",
3683
+ propsType: "ContainerEfsMountProps",
3684
+ interfaceName: "ContainerEfsMount",
3685
+ sourceFile: "__helpers.d.ts"
3686
+ },
3687
+ {
3688
+ className: "LambdaEfsMount",
3689
+ typeValue: "efs",
3690
+ propsType: "LambdaEfsMountProps",
3691
+ interfaceName: "LambdaEfsMount",
3692
+ sourceFile: "functions.d.ts"
3693
+ },
3694
+ // Authorizers
3695
+ {
3696
+ className: "CognitoAuthorizer",
3697
+ typeValue: "cognito",
3698
+ propsType: "CognitoAuthorizerProperties",
3699
+ interfaceName: "CognitoAuthorizer",
3700
+ sourceFile: "user-pools.d.ts"
3701
+ },
3702
+ {
3703
+ className: "LambdaAuthorizer",
3704
+ typeValue: "lambda",
3705
+ propsType: "LambdaAuthorizerProperties",
3706
+ interfaceName: "LambdaAuthorizer",
3707
+ sourceFile: "user-pools.d.ts"
3708
+ },
3709
+ // Custom Resources
3710
+ {
3711
+ className: "CustomResourceDefinition",
3712
+ typeValue: "custom-resource-definition",
3713
+ propsType: "CustomResourceDefinitionProps",
3714
+ interfaceName: "CustomResourceDefinition",
3715
+ sourceFile: "custom-resources.d.ts"
3716
+ },
3717
+ {
3718
+ className: "CustomResourceInstance",
3719
+ typeValue: "custom-resource-instance",
3720
+ propsType: "CustomResourceInstanceProps",
3721
+ interfaceName: "CustomResourceInstance",
3722
+ sourceFile: "custom-resources.d.ts"
3723
+ },
3724
+ // Deployment Scripts
3725
+ {
3726
+ className: "DeploymentScript",
3727
+ typeValue: "deployment-script",
3728
+ propsType: "DeploymentScriptProps",
3729
+ interfaceName: "DeploymentScript",
3730
+ sourceFile: "deployment-script.d.ts"
3731
+ },
3732
+ // Edge Lambda Functions
3733
+ {
3734
+ className: "EdgeLambdaFunction",
3735
+ typeValue: "edge-lambda-function",
3736
+ propsType: "EdgeLambdaFunctionProps",
3737
+ interfaceName: "EdgeLambdaFunction",
3738
+ sourceFile: "edge-lambda-functions.d.ts"
3739
+ }
3740
+ ];
3741
+ var RESOURCE_TYPE_TO_CLASS = Object.fromEntries(
3742
+ RESOURCES_CONVERTIBLE_TO_CLASSES.map((r) => [r.resourceType, r.className])
3743
+ );
3744
+ var SCRIPT_TYPE_TO_CLASS = Object.fromEntries(
3745
+ MISC_TYPES_CONVERTIBLE_TO_CLASSES.filter(
3746
+ (t) => t.sourceFile === "__helpers.d.ts" && t.propsType.includes("Script")
3747
+ ).map((t) => [t.typeValue, t.className])
3748
+ );
3749
+ var PACKAGING_TYPE_TO_CLASS = Object.fromEntries(
3750
+ MISC_TYPES_CONVERTIBLE_TO_CLASSES.filter((t) => t.sourceFile === "deployment-artifacts.d.ts").map((t) => [
3751
+ t.typeValue,
3752
+ t.className
3753
+ ])
3754
+ );
3755
+ var ENGINE_TYPE_TO_CLASS = Object.fromEntries(
3756
+ MISC_TYPES_CONVERTIBLE_TO_CLASSES.filter((t) => t.propsType.includes("Engine")).map((t) => [t.typeValue, t.className])
3757
+ );
3758
+
2972
3759
  // src/api/npm/ts/resource-metadata.ts
2973
3760
  var REFERENCEABLE_PARAMS = {
2974
3761
  "relational-database": [
@@ -3099,32 +3886,38 @@ function createResourceClass(className, resourceType) {
3099
3886
  return ResourceClass;
3100
3887
  }
3101
3888
  __name(createResourceClass, "createResourceClass");
3102
- var RelationalDatabase = createResourceClass("RelationalDatabase", "relational-database");
3103
- var WebService = createResourceClass("WebService", "web-service");
3104
- var PrivateService = createResourceClass("PrivateService", "private-service");
3105
- var WorkerService = createResourceClass("WorkerService", "worker-service");
3106
- var MultiContainerWorkload = createResourceClass("MultiContainerWorkload", "multi-container-workload");
3107
- var LambdaFunction = createResourceClass("LambdaFunction", "function");
3108
- var BatchJob = createResourceClass("BatchJob", "batch-job");
3109
- var Bucket = createResourceClass("Bucket", "bucket");
3110
- var HostingBucket = createResourceClass("HostingBucket", "hosting-bucket");
3111
- var DynamoDbTable = createResourceClass("DynamoDbTable", "dynamo-db-table");
3112
- var EventBus = createResourceClass("EventBus", "event-bus");
3113
- var HttpApiGateway = createResourceClass("HttpApiGateway", "http-api-gateway");
3114
- var ApplicationLoadBalancer = createResourceClass("ApplicationLoadBalancer", "application-load-balancer");
3115
- var NetworkLoadBalancer = createResourceClass("NetworkLoadBalancer", "network-load-balancer");
3116
- var RedisCluster = createResourceClass("RedisCluster", "redis-cluster");
3117
- var MongoDbAtlasCluster = createResourceClass("MongoDbAtlasCluster", "mongo-db-atlas-cluster");
3118
- var StateMachine = createResourceClass("StateMachine", "state-machine");
3119
- var UserAuthPool = createResourceClass("UserAuthPool", "user-auth-pool");
3120
- var UpstashRedis = createResourceClass("UpstashRedis", "upstash-redis");
3121
- var SqsQueue = createResourceClass("SqsQueue", "sqs-queue");
3122
- var SnsTopic = createResourceClass("SnsTopic", "sns-topic");
3123
- var WebAppFirewall = createResourceClass("WebAppFirewall", "web-app-firewall");
3124
- var OpenSearchDomain = createResourceClass("OpenSearchDomain", "open-search-domain");
3125
- var EfsFilesystem = createResourceClass("EfsFilesystem", "efs-filesystem");
3126
- var NextjsWeb = createResourceClass("NextjsWeb", "nextjs-web");
3127
- var Bastion = createResourceClass("Bastion", "bastion");
3889
+ var RESOURCE_CLASSES = {};
3890
+ for (const def of RESOURCES_CONVERTIBLE_TO_CLASSES) {
3891
+ RESOURCE_CLASSES[def.className] = createResourceClass(def.className, def.resourceType);
3892
+ }
3893
+ var {
3894
+ RelationalDatabase,
3895
+ WebService,
3896
+ PrivateService,
3897
+ WorkerService,
3898
+ MultiContainerWorkload,
3899
+ LambdaFunction,
3900
+ BatchJob,
3901
+ Bucket,
3902
+ HostingBucket,
3903
+ DynamoDbTable,
3904
+ EventBus,
3905
+ HttpApiGateway,
3906
+ ApplicationLoadBalancer,
3907
+ NetworkLoadBalancer,
3908
+ RedisCluster,
3909
+ MongoDbAtlasCluster,
3910
+ StateMachine,
3911
+ UserAuthPool,
3912
+ UpstashRedis,
3913
+ SqsQueue,
3914
+ SnsTopic,
3915
+ WebAppFirewall,
3916
+ OpenSearchDomain,
3917
+ EfsFilesystem,
3918
+ NextjsWeb,
3919
+ Bastion
3920
+ } = RESOURCE_CLASSES;
3128
3921
 
3129
3922
  // src/api/npm/ts/type-properties.ts
3130
3923
  function createTypePropertiesClass(className, typeValue) {
@@ -3140,125 +3933,93 @@ function createTypePropertiesClass(className, typeValue) {
3140
3933
  return TypePropertiesClass;
3141
3934
  }
3142
3935
  __name(createTypePropertiesClass, "createTypePropertiesClass");
3143
- var RdsEnginePostgres = createTypePropertiesClass("RdsEnginePostgres", "postgres");
3144
- var RdsEngineMariadb = createTypePropertiesClass("RdsEngineMariadb", "mariadb");
3145
- var RdsEngineMysql = createTypePropertiesClass("RdsEngineMysql", "mysql");
3146
- var RdsEngineOracleEE = createTypePropertiesClass("RdsEngineOracleEE", "oracle-ee");
3147
- var RdsEngineOracleSE2 = createTypePropertiesClass("RdsEngineOracleSE2", "oracle-se2");
3148
- var RdsEngineSqlServerEE = createTypePropertiesClass("RdsEngineSqlServerEE", "sqlserver-ee");
3149
- var RdsEngineSqlServerEX = createTypePropertiesClass("RdsEngineSqlServerEX", "sqlserver-ex");
3150
- var RdsEngineSqlServerSE = createTypePropertiesClass("RdsEngineSqlServerSE", "sqlserver-se");
3151
- var RdsEngineSqlServerWeb = createTypePropertiesClass("RdsEngineSqlServerWeb", "sqlserver-web");
3152
- var AuroraEnginePostgresql = createTypePropertiesClass("AuroraEnginePostgresql", "aurora-postgresql");
3153
- var AuroraEngineMysql = createTypePropertiesClass("AuroraEngineMysql", "aurora-mysql");
3154
- var AuroraServerlessEnginePostgresql = createTypePropertiesClass(
3155
- "AuroraServerlessEnginePostgresql",
3156
- "aurora-postgresql-serverless"
3157
- );
3158
- var AuroraServerlessEngineMysql = createTypePropertiesClass(
3159
- "AuroraServerlessEngineMysql",
3160
- "aurora-mysql-serverless"
3161
- );
3162
- var AuroraServerlessV2EnginePostgresql = createTypePropertiesClass(
3163
- "AuroraServerlessV2EnginePostgresql",
3164
- "aurora-postgresql-serverless-v2"
3165
- );
3166
- var AuroraServerlessV2EngineMysql = createTypePropertiesClass(
3167
- "AuroraServerlessV2EngineMysql",
3168
- "aurora-mysql-serverless-v2"
3169
- );
3170
- var StacktapeLambdaBuildpackPackaging = createTypePropertiesClass(
3171
- "StacktapeLambdaBuildpackPackaging",
3172
- "stacktape-lambda-buildpack"
3173
- );
3174
- var CustomArtifactLambdaPackaging = createTypePropertiesClass(
3175
- "CustomArtifactLambdaPackaging",
3176
- "custom-artifact"
3177
- );
3178
- var PrebuiltImagePackaging = createTypePropertiesClass("PrebuiltImagePackaging", "prebuilt-image");
3179
- var CustomDockerfilePackaging = createTypePropertiesClass("CustomDockerfilePackaging", "custom-dockerfile");
3180
- var ExternalBuildpackPackaging = createTypePropertiesClass("ExternalBuildpackPackaging", "external-buildpack");
3181
- var NixpacksPackaging = createTypePropertiesClass("NixpacksPackaging", "nixpacks");
3182
- var StacktapeImageBuildpackPackaging = createTypePropertiesClass(
3183
- "StacktapeImageBuildpackPackaging",
3184
- "stacktape-image-buildpack"
3185
- );
3186
- var HttpApiIntegration = createTypePropertiesClass("HttpApiIntegration", "http-api-gateway");
3187
- var S3Integration = createTypePropertiesClass("S3Integration", "s3");
3188
- var ScheduleIntegration = createTypePropertiesClass("ScheduleIntegration", "schedule");
3189
- var SnsIntegration = createTypePropertiesClass("SnsIntegration", "sns");
3190
- var SqsIntegration = createTypePropertiesClass("SqsIntegration", "sqs");
3191
- var KinesisIntegration = createTypePropertiesClass("KinesisIntegration", "kinesis");
3192
- var DynamoDbIntegration = createTypePropertiesClass("DynamoDbIntegration", "dynamodb");
3193
- var CloudwatchLogIntegration = createTypePropertiesClass("CloudwatchLogIntegration", "cloudwatch-logs");
3194
- var ApplicationLoadBalancerIntegration = createTypePropertiesClass(
3195
- "ApplicationLoadBalancerIntegration",
3196
- "application-load-balancer"
3197
- );
3198
- var EventBusIntegration = createTypePropertiesClass("EventBusIntegration", "event-bus");
3199
- var KafkaTopicIntegration = createTypePropertiesClass("KafkaTopicIntegration", "kafka-topic");
3200
- var AlarmIntegration = createTypePropertiesClass("AlarmIntegration", "alarm");
3201
- var CdnLoadBalancerRoute = createTypePropertiesClass("CdnLoadBalancerRoute", "application-load-balancer");
3202
- var CdnHttpApiGatewayRoute = createTypePropertiesClass("CdnHttpApiGatewayRoute", "http-api-gateway");
3203
- var CdnLambdaFunctionRoute = createTypePropertiesClass("CdnLambdaFunctionRoute", "function");
3204
- var CdnCustomDomainRoute = createTypePropertiesClass("CdnCustomDomainRoute", "custom-origin");
3205
- var CdnBucketRoute = createTypePropertiesClass("CdnBucketRoute", "bucket");
3206
- var ManagedRuleGroup = createTypePropertiesClass("ManagedRuleGroup", "managed-rule-group");
3207
- var CustomRuleGroup = createTypePropertiesClass("CustomRuleGroup", "custom-rule-group");
3208
- var RateBasedRule = createTypePropertiesClass("RateBasedRule", "rate-based-rule");
3209
- var SqsQueueEventBusIntegration = createTypePropertiesClass("SqsQueueEventBusIntegration", "event-bus");
3210
- var MultiContainerWorkloadHttpApiIntegration = createTypePropertiesClass(
3211
- "MultiContainerWorkloadHttpApiIntegration",
3212
- "http-api-gateway"
3213
- );
3214
- var MultiContainerWorkloadLoadBalancerIntegration = createTypePropertiesClass(
3215
- "MultiContainerWorkloadLoadBalancerIntegration",
3216
- "application-load-balancer"
3217
- );
3218
- var MultiContainerWorkloadNetworkLoadBalancerIntegration = createTypePropertiesClass(
3219
- "MultiContainerWorkloadNetworkLoadBalancerIntegration",
3220
- "network-load-balancer"
3221
- );
3222
- var MultiContainerWorkloadInternalIntegration = createTypePropertiesClass(
3223
- "MultiContainerWorkloadInternalIntegration",
3224
- "workload-internal"
3225
- );
3226
- var MultiContainerWorkloadServiceConnectIntegration = createTypePropertiesClass(
3227
- "MultiContainerWorkloadServiceConnectIntegration",
3228
- "service-connect"
3229
- );
3230
- var LocalScriptWithCommand = createTypePropertiesClass("LocalScriptWithCommand", "local-script");
3231
- var LocalScriptWithCommands = createTypePropertiesClass("LocalScriptWithCommands", "local-script");
3232
- var LocalScriptWithFileScript = createTypePropertiesClass("LocalScriptWithFileScript", "local-script");
3233
- var LocalScriptWithFileScripts = createTypePropertiesClass("LocalScriptWithFileScripts", "local-script");
3234
- var BastionScriptWithCommand = createTypePropertiesClass("BastionScriptWithCommand", "bastion-script");
3235
- var BastionScriptWithCommands = createTypePropertiesClass("BastionScriptWithCommands", "bastion-script");
3236
- var LocalScriptWithBastionTunnelingCommand = createTypePropertiesClass(
3237
- "LocalScriptWithBastionTunnelingCommand",
3238
- "local-script-with-bastion-tunneling"
3239
- );
3240
- var LocalScriptWithBastionTunnelingCommands = createTypePropertiesClass(
3241
- "LocalScriptWithBastionTunnelingCommands",
3242
- "local-script-with-bastion-tunneling"
3243
- );
3244
- var LocalScriptWithBastionTunnelingFileScript = createTypePropertiesClass(
3245
- "LocalScriptWithBastionTunnelingFileScript",
3246
- "local-script-with-bastion-tunneling"
3247
- );
3248
- var LocalScriptWithBastionTunnelingFileScripts = createTypePropertiesClass(
3249
- "LocalScriptWithBastionTunnelingFileScripts",
3250
- "local-script-with-bastion-tunneling"
3251
- );
3252
- var HttpEndpointLogForwarding = createTypePropertiesClass("HttpEndpointLogForwarding", "http-endpoint");
3253
- var HighlightLogForwarding = createTypePropertiesClass("HighlightLogForwarding", "highlight");
3254
- var DatadogLogForwarding = createTypePropertiesClass("DatadogLogForwarding", "datadog");
3255
- var ExpirationLifecycleRule = createTypePropertiesClass("ExpirationLifecycleRule", "expiration");
3256
- var NonCurrentVersionExpirationLifecycleRule = createTypePropertiesClass(
3257
- "NonCurrentVersionExpirationLifecycleRule",
3258
- "non-current-version-expiration"
3259
- );
3260
- var ContainerEfsMount = createTypePropertiesClass("ContainerEfsMount", "efs");
3261
- var LambdaEfsMount = createTypePropertiesClass("LambdaEfsMount", "efs");
3936
+ var TYPE_PROPERTIES_CLASSES = {};
3937
+ for (const def of MISC_TYPES_CONVERTIBLE_TO_CLASSES) {
3938
+ TYPE_PROPERTIES_CLASSES[def.className] = createTypePropertiesClass(def.className, def.typeValue);
3939
+ }
3940
+ var {
3941
+ // Database Engines
3942
+ RdsEnginePostgres,
3943
+ RdsEngineMariadb,
3944
+ RdsEngineMysql,
3945
+ RdsEngineOracleEE,
3946
+ RdsEngineOracleSE2,
3947
+ RdsEngineSqlServerEE,
3948
+ RdsEngineSqlServerEX,
3949
+ RdsEngineSqlServerSE,
3950
+ RdsEngineSqlServerWeb,
3951
+ AuroraEnginePostgresql,
3952
+ AuroraEngineMysql,
3953
+ AuroraServerlessEnginePostgresql,
3954
+ AuroraServerlessEngineMysql,
3955
+ AuroraServerlessV2EnginePostgresql,
3956
+ AuroraServerlessV2EngineMysql,
3957
+ // Lambda Packaging
3958
+ StacktapeLambdaBuildpackPackaging,
3959
+ CustomArtifactLambdaPackaging,
3960
+ // Container Packaging
3961
+ PrebuiltImagePackaging,
3962
+ CustomDockerfilePackaging,
3963
+ ExternalBuildpackPackaging,
3964
+ NixpacksPackaging,
3965
+ StacktapeImageBuildpackPackaging,
3966
+ // Lambda Function Events/Integrations
3967
+ HttpApiIntegration,
3968
+ S3Integration,
3969
+ ScheduleIntegration,
3970
+ SnsIntegration,
3971
+ SqsIntegration,
3972
+ KinesisIntegration,
3973
+ DynamoDbIntegration,
3974
+ CloudwatchLogIntegration,
3975
+ ApplicationLoadBalancerIntegration,
3976
+ EventBusIntegration,
3977
+ KafkaTopicIntegration,
3978
+ AlarmIntegration,
3979
+ IotIntegration,
3980
+ // CDN Routes
3981
+ CdnLoadBalancerRoute,
3982
+ CdnHttpApiGatewayRoute,
3983
+ CdnLambdaFunctionRoute,
3984
+ CdnCustomDomainRoute,
3985
+ CdnBucketRoute,
3986
+ // Web App Firewall Rules
3987
+ ManagedRuleGroup,
3988
+ CustomRuleGroup,
3989
+ RateBasedRule,
3990
+ // SQS Queue Integrations
3991
+ SqsQueueEventBusIntegration,
3992
+ // Multi Container Workload Integrations
3993
+ MultiContainerWorkloadHttpApiIntegration,
3994
+ MultiContainerWorkloadLoadBalancerIntegration,
3995
+ MultiContainerWorkloadNetworkLoadBalancerIntegration,
3996
+ MultiContainerWorkloadInternalIntegration,
3997
+ MultiContainerWorkloadServiceConnectIntegration,
3998
+ // Scripts
3999
+ LocalScript,
4000
+ BastionScript,
4001
+ LocalScriptWithBastionTunneling,
4002
+ // Log Forwarding
4003
+ HttpEndpointLogForwarding,
4004
+ HighlightLogForwarding,
4005
+ DatadogLogForwarding,
4006
+ // Bucket Lifecycle Rules
4007
+ ExpirationLifecycleRule,
4008
+ NonCurrentVersionExpirationLifecycleRule,
4009
+ // EFS Mounts
4010
+ ContainerEfsMount,
4011
+ LambdaEfsMount,
4012
+ // Authorizers
4013
+ CognitoAuthorizer,
4014
+ LambdaAuthorizer,
4015
+ // Custom Resources
4016
+ CustomResourceDefinition,
4017
+ CustomResourceInstance,
4018
+ // Deployment Scripts
4019
+ DeploymentScript,
4020
+ // Edge Lambda Functions
4021
+ EdgeLambdaFunction
4022
+ } = TYPE_PROPERTIES_CLASSES;
3262
4023
  // Annotate the CommonJS export names for ESM import in node:
3263
4024
  0 && (module.exports = {
3264
4025
  $CfFormat,
@@ -3277,11 +4038,8 @@ var LambdaEfsMount = createTypePropertiesClass("LambdaEfsMount", "efs");
3277
4038
  AuroraServerlessEnginePostgresql,
3278
4039
  AuroraServerlessV2EngineMysql,
3279
4040
  AuroraServerlessV2EnginePostgresql,
3280
- BaseResource,
3281
- BaseTypeProperties,
3282
4041
  Bastion,
3283
- BastionScriptWithCommand,
3284
- BastionScriptWithCommands,
4042
+ BastionScript,
3285
4043
  BatchJob,
3286
4044
  Bucket,
3287
4045
  CdnBucketRoute,
@@ -3290,13 +4048,18 @@ var LambdaEfsMount = createTypePropertiesClass("LambdaEfsMount", "efs");
3290
4048
  CdnLambdaFunctionRoute,
3291
4049
  CdnLoadBalancerRoute,
3292
4050
  CloudwatchLogIntegration,
4051
+ CognitoAuthorizer,
3293
4052
  ContainerEfsMount,
3294
4053
  CustomArtifactLambdaPackaging,
3295
4054
  CustomDockerfilePackaging,
4055
+ CustomResourceDefinition,
4056
+ CustomResourceInstance,
3296
4057
  CustomRuleGroup,
3297
4058
  DatadogLogForwarding,
4059
+ DeploymentScript,
3298
4060
  DynamoDbIntegration,
3299
4061
  DynamoDbTable,
4062
+ EdgeLambdaFunction,
3300
4063
  EfsFilesystem,
3301
4064
  EventBus,
3302
4065
  EventBusIntegration,
@@ -3307,18 +4070,14 @@ var LambdaEfsMount = createTypePropertiesClass("LambdaEfsMount", "efs");
3307
4070
  HttpApiGateway,
3308
4071
  HttpApiIntegration,
3309
4072
  HttpEndpointLogForwarding,
4073
+ IotIntegration,
3310
4074
  KafkaTopicIntegration,
3311
4075
  KinesisIntegration,
4076
+ LambdaAuthorizer,
3312
4077
  LambdaEfsMount,
3313
4078
  LambdaFunction,
3314
- LocalScriptWithBastionTunnelingCommand,
3315
- LocalScriptWithBastionTunnelingCommands,
3316
- LocalScriptWithBastionTunnelingFileScript,
3317
- LocalScriptWithBastionTunnelingFileScripts,
3318
- LocalScriptWithCommand,
3319
- LocalScriptWithCommands,
3320
- LocalScriptWithFileScript,
3321
- LocalScriptWithFileScripts,
4079
+ LocalScript,
4080
+ LocalScriptWithBastionTunneling,
3322
4081
  ManagedRuleGroup,
3323
4082
  MongoDbAtlasCluster,
3324
4083
  MultiContainerWorkload,
@@ -3346,7 +4105,6 @@ var LambdaEfsMount = createTypePropertiesClass("LambdaEfsMount", "efs");
3346
4105
  RdsEngineSqlServerWeb,
3347
4106
  RedisCluster,
3348
4107
  RelationalDatabase,
3349
- ResourceParamReference,
3350
4108
  S3Integration,
3351
4109
  ScheduleIntegration,
3352
4110
  SnsIntegration,
@@ -3362,8 +4120,6 @@ var LambdaEfsMount = createTypePropertiesClass("LambdaEfsMount", "efs");
3362
4120
  WebAppFirewall,
3363
4121
  WebService,
3364
4122
  WorkerService,
3365
- defineConfig,
3366
- transformConfigWithResources,
3367
- transformValue
4123
+ defineConfig
3368
4124
  });
3369
4125
  //# sourceMappingURL=index.js.map