stacktape 2.24.0-rc.6 → 2.24.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/index.d.ts +33 -19
  2. package/index.js +18 -17
  3. package/index.js.map +2 -2
  4. package/package.json +1 -1
  5. package/sdk.d.ts +273 -13779
package/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import type {
11
11
  WebServiceProps as SdkWebServiceProps,
12
12
  PrivateServiceProps as SdkPrivateServiceProps,
13
13
  WorkerServiceProps as SdkWorkerServiceProps,
14
- ContainerWorkloadProps as SdkContainerWorkloadProps,
14
+ MultiContainerWorkloadProps as SdkMultiContainerWorkloadProps,
15
15
  LambdaFunctionProps as SdkLambdaFunctionProps,
16
16
  BatchJobProps as SdkBatchJobProps,
17
17
  StateMachineProps as SdkStateMachineProps,
@@ -69,9 +69,11 @@ import type {
69
69
  CustomRuleGroupProps,
70
70
  RateBasedStatementProps,
71
71
  SqsQueueEventBusIntegrationProps,
72
- ContainerWorkloadHttpApiIntegrationProps,
73
- ContainerWorkloadInternalIntegrationProps,
74
- ContainerWorkloadServiceConnectIntegrationProps,
72
+ MultiContainerWorkloadHttpApiIntegrationProps,
73
+ MultiContainerWorkloadLoadBalancerIntegrationProps,
74
+ MultiContainerWorkloadNetworkLoadBalancerIntegrationProps,
75
+ MultiContainerWorkloadInternalIntegrationProps,
76
+ MultiContainerWorkloadServiceConnectIntegrationProps,
75
77
  HttpEndpointLogForwardingProps,
76
78
  HighlightLogForwardingProps,
77
79
  DatadogLogForwardingProps,
@@ -190,7 +192,7 @@ export type GetConfigParams = {
190
192
  type WebServiceConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | PrivateService | GlobalAwsServiceConstant;
191
193
  type PrivateServiceConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
192
194
  type WorkerServiceConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
193
- type ContainerWorkloadConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
195
+ type MultiContainerWorkloadConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
194
196
  type LambdaFunctionConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | PrivateService | WebService | GlobalAwsServiceConstant;
195
197
  type BatchJobConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
196
198
  type StateMachineConnectTo = LambdaFunction | BatchJob | GlobalAwsServiceConstant;
@@ -252,12 +254,12 @@ export type WorkerServiceProps = Omit<SdkWorkerServiceProps, 'connectTo' | 'envi
252
254
  overrides?: WorkerServiceOverrides;
253
255
  };
254
256
 
255
- export type ContainerWorkloadProps = Omit<SdkContainerWorkloadProps, 'connectTo' | 'environment'> & {
257
+ export type MultiContainerWorkloadProps = Omit<SdkMultiContainerWorkloadProps, 'connectTo' | 'environment'> & {
256
258
  /**
257
259
  * List of resources or AWS services to which this resource receives permissions.
258
260
  * Automatically grants necessary IAM permissions for accessing the connected resources.
259
261
  */
260
- connectTo?: Array<ContainerWorkloadConnectTo>;
262
+ connectTo?: Array<MultiContainerWorkloadConnectTo>;
261
263
  /**
262
264
  * Environment variables to set for this resource.
263
265
  * You can reference resource parameters using directive syntax: $ResourceParam('resourceName', 'paramName')
@@ -267,7 +269,7 @@ export type ContainerWorkloadProps = Omit<SdkContainerWorkloadProps, 'connectTo'
267
269
  * Override properties of underlying CloudFormation resources.
268
270
  * Allows fine-grained control over the generated infrastructure.
269
271
  */
270
- overrides?: ContainerWorkloadOverrides;
272
+ overrides?: MultiContainerWorkloadOverrides;
271
273
  };
272
274
 
273
275
  export type LambdaFunctionProps = Omit<SdkLambdaFunctionProps, 'connectTo' | 'environment'> & {
@@ -621,7 +623,7 @@ export type WorkerServiceOverrides = {
621
623
  [key: string]: { [propName: string]: any } | undefined;
622
624
  };
623
625
 
624
- export type ContainerWorkloadOverrides = {
626
+ export type MultiContainerWorkloadOverrides = {
625
627
  ecsExecutionRole?: Partial<IAMRoleProperties>;
626
628
  ecsAutoScalingRole?: Partial<IAMRoleProperties>;
627
629
  autoScalingTarget?: Partial<ApplicationAutoScalingScalableTargetProperties>;
@@ -925,8 +927,10 @@ export declare class PrivateService extends BaseResource {
925
927
  export declare class WorkerService extends BaseResource {
926
928
  constructor(name: string, properties: WorkerServiceProps);
927
929
  }
928
- export declare class ContainerWorkload extends BaseResource {
929
- constructor(name: string, properties: ContainerWorkloadProps);
930
+ export declare class MultiContainerWorkload extends BaseResource {
931
+ constructor(name: string, properties: MultiContainerWorkloadProps);
932
+ /** Log group ARN */
933
+ readonly logGroupArn: string;
930
934
  }
931
935
  export declare class LambdaFunction extends BaseResource {
932
936
  constructor(name: string, properties: LambdaFunctionProps);
@@ -1306,18 +1310,28 @@ export declare class SqsQueueEventBusIntegration extends BaseTypeProperties {
1306
1310
  readonly type: 'event-bus';
1307
1311
  }
1308
1312
 
1309
- export declare class ContainerWorkloadHttpApiIntegration extends BaseTypeProperties {
1310
- constructor(properties: ContainerWorkloadHttpApiIntegrationProps);
1313
+ export declare class MultiContainerWorkloadHttpApiIntegration extends BaseTypeProperties {
1314
+ constructor(properties: MultiContainerWorkloadHttpApiIntegrationProps);
1311
1315
  readonly type: 'http-api-gateway';
1312
1316
  }
1313
1317
 
1314
- export declare class ContainerWorkloadInternalIntegration extends BaseTypeProperties {
1315
- constructor(properties: ContainerWorkloadInternalIntegrationProps);
1316
- readonly type: 'internal';
1318
+ export declare class MultiContainerWorkloadLoadBalancerIntegration extends BaseTypeProperties {
1319
+ constructor(properties: MultiContainerWorkloadLoadBalancerIntegrationProps);
1320
+ readonly type: 'application-load-balancer';
1321
+ }
1322
+
1323
+ export declare class MultiContainerWorkloadNetworkLoadBalancerIntegration extends BaseTypeProperties {
1324
+ constructor(properties: MultiContainerWorkloadNetworkLoadBalancerIntegrationProps);
1325
+ readonly type: 'network-load-balancer';
1326
+ }
1327
+
1328
+ export declare class MultiContainerWorkloadInternalIntegration extends BaseTypeProperties {
1329
+ constructor(properties: MultiContainerWorkloadInternalIntegrationProps);
1330
+ readonly type: 'workload-internal';
1317
1331
  }
1318
1332
 
1319
- export declare class ContainerWorkloadServiceConnectIntegration extends BaseTypeProperties {
1320
- constructor(properties: ContainerWorkloadServiceConnectIntegrationProps);
1333
+ export declare class MultiContainerWorkloadServiceConnectIntegration extends BaseTypeProperties {
1334
+ constructor(properties: MultiContainerWorkloadServiceConnectIntegrationProps);
1321
1335
  readonly type: 'service-connect';
1322
1336
  }
1323
1337
 
@@ -5845,7 +5859,7 @@ export declare const $GitInfo: () => string;
5845
5859
  * 3. Ensure child resources are defined in child-resources.ts
5846
5860
  * 4. That's it! The types will be generated automatically.
5847
5861
  */
5848
- export type ResourceTypeName = 'RelationalDatabase' | 'WebService' | 'PrivateService' | 'WorkerService' | 'ContainerWorkload' | 'LambdaFunction' | 'BatchJob' | 'Bucket' | 'HostingBucket' | 'DynamoDbTable' | 'EventBus' | 'HttpApiGateway' | 'ApplicationLoadBalancer' | 'NetworkLoadBalancer' | 'RedisCluster' | 'MongoDbAtlasCluster' | 'StateMachine' | 'UserAuthPool' | 'UpstashRedis' | 'SqsQueue' | 'SnsTopic' | 'WebAppFirewall' | 'OpenSearchDomain' | 'EfsFilesystem' | 'NextjsWeb' | 'Bastion';
5862
+ export type ResourceTypeName = 'RelationalDatabase' | 'WebService' | 'PrivateService' | 'WorkerService' | 'MultiContainerWorkload' | 'LambdaFunction' | 'BatchJob' | 'Bucket' | 'HostingBucket' | 'DynamoDbTable' | 'EventBus' | 'HttpApiGateway' | 'ApplicationLoadBalancer' | 'NetworkLoadBalancer' | 'RedisCluster' | 'MongoDbAtlasCluster' | 'StateMachine' | 'UserAuthPool' | 'UpstashRedis' | 'SqsQueue' | 'SnsTopic' | 'WebAppFirewall' | 'OpenSearchDomain' | 'EfsFilesystem' | 'NextjsWeb' | 'Bastion';
5849
5863
  export type ResourceDefinition = {
5850
5864
  /** Class name for the resource (e.g., 'LambdaFunction') */
5851
5865
  className: ResourceTypeName;
package/index.js CHANGED
@@ -50,10 +50,6 @@ __export(index_exports, {
50
50
  CdnLoadBalancerRoute: () => CdnLoadBalancerRoute,
51
51
  CloudwatchLogIntegration: () => CloudwatchLogIntegration,
52
52
  ContainerEfsMount: () => ContainerEfsMount,
53
- ContainerWorkload: () => ContainerWorkload,
54
- ContainerWorkloadHttpApiIntegration: () => ContainerWorkloadHttpApiIntegration,
55
- ContainerWorkloadInternalIntegration: () => ContainerWorkloadInternalIntegration,
56
- ContainerWorkloadServiceConnectIntegration: () => ContainerWorkloadServiceConnectIntegration,
57
53
  CustomArtifactLambdaPackaging: () => CustomArtifactLambdaPackaging,
58
54
  CustomDockerfilePackaging: () => CustomDockerfilePackaging,
59
55
  CustomRuleGroup: () => CustomRuleGroup,
@@ -2972,7 +2968,8 @@ var REFERENCEABLE_PARAMS = {
2972
2968
  { name: "arn", description: "EFS ARN" },
2973
2969
  { name: "id", description: "EFS ID" }
2974
2970
  ],
2975
- "nextjs-web": [{ name: "url", description: "Website URL" }]
2971
+ "nextjs-web": [{ name: "url", description: "Website URL" }],
2972
+ "multi-container-workload": [{ name: "logGroupArn", description: "Log group ARN" }]
2976
2973
  };
2977
2974
 
2978
2975
  // src/api/npm/ts/resources.ts
@@ -3004,7 +3001,7 @@ var RelationalDatabase = createResourceClass("RelationalDatabase", "relational-d
3004
3001
  var WebService = createResourceClass("WebService", "web-service");
3005
3002
  var PrivateService = createResourceClass("PrivateService", "private-service");
3006
3003
  var WorkerService = createResourceClass("WorkerService", "worker-service");
3007
- var ContainerWorkload = createResourceClass("ContainerWorkload", "multi-container-workload");
3004
+ var MultiContainerWorkload = createResourceClass("MultiContainerWorkload", "multi-container-workload");
3008
3005
  var LambdaFunction = createResourceClass("LambdaFunction", "function");
3009
3006
  var BatchJob = createResourceClass("BatchJob", "batch-job");
3010
3007
  var Bucket = createResourceClass("Bucket", "bucket");
@@ -3108,16 +3105,24 @@ var ManagedRuleGroup = createTypePropertiesClass("ManagedRuleGroup", "managed-ru
3108
3105
  var CustomRuleGroup = createTypePropertiesClass("CustomRuleGroup", "custom-rule-group");
3109
3106
  var RateBasedRule = createTypePropertiesClass("RateBasedRule", "rate-based-rule");
3110
3107
  var SqsQueueEventBusIntegration = createTypePropertiesClass("SqsQueueEventBusIntegration", "event-bus");
3111
- var ContainerWorkloadHttpApiIntegration = createTypePropertiesClass(
3112
- "ContainerWorkloadHttpApiIntegration",
3108
+ var MultiContainerWorkloadHttpApiIntegration = createTypePropertiesClass(
3109
+ "MultiContainerWorkloadHttpApiIntegration",
3113
3110
  "http-api-gateway"
3114
3111
  );
3115
- var ContainerWorkloadInternalIntegration = createTypePropertiesClass(
3116
- "ContainerWorkloadInternalIntegration",
3117
- "internal"
3112
+ var MultiContainerWorkloadLoadBalancerIntegration = createTypePropertiesClass(
3113
+ "MultiContainerWorkloadLoadBalancerIntegration",
3114
+ "application-load-balancer"
3115
+ );
3116
+ var MultiContainerWorkloadNetworkLoadBalancerIntegration = createTypePropertiesClass(
3117
+ "MultiContainerWorkloadNetworkLoadBalancerIntegration",
3118
+ "network-load-balancer"
3119
+ );
3120
+ var MultiContainerWorkloadInternalIntegration = createTypePropertiesClass(
3121
+ "MultiContainerWorkloadInternalIntegration",
3122
+ "workload-internal"
3118
3123
  );
3119
- var ContainerWorkloadServiceConnectIntegration = createTypePropertiesClass(
3120
- "ContainerWorkloadServiceConnectIntegration",
3124
+ var MultiContainerWorkloadServiceConnectIntegration = createTypePropertiesClass(
3125
+ "MultiContainerWorkloadServiceConnectIntegration",
3121
3126
  "service-connect"
3122
3127
  );
3123
3128
  var LocalScriptWithCommand = createTypePropertiesClass("LocalScriptWithCommand", "local-script");
@@ -3184,10 +3189,6 @@ var LambdaEfsMount = createTypePropertiesClass("LambdaEfsMount", "efs");
3184
3189
  CdnLoadBalancerRoute,
3185
3190
  CloudwatchLogIntegration,
3186
3191
  ContainerEfsMount,
3187
- ContainerWorkload,
3188
- ContainerWorkloadHttpApiIntegration,
3189
- ContainerWorkloadInternalIntegration,
3190
- ContainerWorkloadServiceConnectIntegration,
3191
3192
  CustomArtifactLambdaPackaging,
3192
3193
  CustomDockerfilePackaging,
3193
3194
  CustomRuleGroup,