stacktape 3.0.13 → 3.0.14
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 +21 -2
- package/package.json +1 -1
- package/types.d.ts +28 -17
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
LambdaFunctionProps as SdkLambdaFunctionProps,
|
|
16
16
|
BatchJobProps as SdkBatchJobProps,
|
|
17
17
|
StateMachineProps as SdkStateMachineProps,
|
|
18
|
+
NextjsWebProps as SdkNextjsWebProps,
|
|
18
19
|
LocalScriptProps as SdkLocalScriptProps,
|
|
19
20
|
BastionScriptProps as SdkBastionScriptProps,
|
|
20
21
|
LocalScriptWithBastionTunnelingProps as SdkLocalScriptWithBastionTunnelingProps,
|
|
@@ -35,7 +36,6 @@ import type {
|
|
|
35
36
|
WebAppFirewallProps,
|
|
36
37
|
OpenSearchDomainProps,
|
|
37
38
|
EfsFilesystemProps,
|
|
38
|
-
NextjsWebProps,
|
|
39
39
|
BastionProps,
|
|
40
40
|
RdsEngineProperties,
|
|
41
41
|
AuroraEngineProperties,
|
|
@@ -223,6 +223,7 @@ type MultiContainerWorkloadConnectTo = RelationalDatabase | Bucket | HostingBuck
|
|
|
223
223
|
type LambdaFunctionConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | PrivateService | WebService | GlobalAwsServiceConstant;
|
|
224
224
|
type BatchJobConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | GlobalAwsServiceConstant;
|
|
225
225
|
type StateMachineConnectTo = Function | BatchJob | GlobalAwsServiceConstant;
|
|
226
|
+
type NextjsWebConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | PrivateService | WebService | LambdaFunction | BatchJob | UserAuthPool | GlobalAwsServiceConstant;
|
|
226
227
|
type ScriptConnectTo = RelationalDatabase | Bucket | HostingBucket | DynamoDbTable | EventBus | RedisCluster | MongoDbAtlasCluster | UpstashRedis | SqsQueue | SnsTopic | OpenSearchDomain | EfsFilesystem | PrivateService | WebService | LambdaFunction | BatchJob | UserAuthPool | GlobalAwsServiceConstant;
|
|
227
228
|
|
|
228
229
|
// Augmented container types with object-style environment
|
|
@@ -413,6 +414,30 @@ export type StateMachineProps = Omit<SdkStateMachineProps, 'connectTo' | 'enviro
|
|
|
413
414
|
transforms?: StateMachineTransforms;
|
|
414
415
|
};
|
|
415
416
|
|
|
417
|
+
export type NextjsWebProps = Omit<SdkNextjsWebProps, 'connectTo' | 'environment'> & {
|
|
418
|
+
/**
|
|
419
|
+
* List of resources or AWS services to which this resource receives permissions.
|
|
420
|
+
* Automatically grants necessary IAM permissions for accessing the connected resources.
|
|
421
|
+
*/
|
|
422
|
+
connectTo?: NextjsWebConnectTo[];
|
|
423
|
+
/**
|
|
424
|
+
* Environment variables to set for this resource.
|
|
425
|
+
* You can reference resource parameters using directive syntax: $ResourceParam('resourceName', 'paramName')
|
|
426
|
+
*/
|
|
427
|
+
environment?: { [envVarName: string]: string | number | boolean };
|
|
428
|
+
/**
|
|
429
|
+
* Override properties of underlying CloudFormation resources.
|
|
430
|
+
* Allows fine-grained control over the generated infrastructure.
|
|
431
|
+
*/
|
|
432
|
+
overrides?: NextjsWebOverrides;
|
|
433
|
+
/**
|
|
434
|
+
* Transform functions for underlying CloudFormation resources.
|
|
435
|
+
* Each function receives the current properties and returns modified properties.
|
|
436
|
+
* Unlike overrides, transforms allow dynamic modification based on existing values.
|
|
437
|
+
*/
|
|
438
|
+
transforms?: NextjsWebTransforms;
|
|
439
|
+
};
|
|
440
|
+
|
|
416
441
|
export type LocalScriptProps = Omit<SdkLocalScriptProps, 'connectTo' | 'environment'> & {
|
|
417
442
|
/**
|
|
418
443
|
* List of resources or AWS services to which this resource receives permissions.
|
|
@@ -664,20 +689,6 @@ export type EfsFilesystemPropsWithOverrides = EfsFilesystemProps & {
|
|
|
664
689
|
transforms?: EfsFilesystemTransforms;
|
|
665
690
|
};
|
|
666
691
|
|
|
667
|
-
export type NextjsWebPropsWithOverrides = NextjsWebProps & {
|
|
668
|
-
/**
|
|
669
|
-
* Override properties of underlying CloudFormation resources.
|
|
670
|
-
* Allows fine-grained control over the generated infrastructure.
|
|
671
|
-
*/
|
|
672
|
-
overrides?: NextjsWebOverrides;
|
|
673
|
-
/**
|
|
674
|
-
* Transform functions for underlying CloudFormation resources.
|
|
675
|
-
* Each function receives the current properties and returns modified properties.
|
|
676
|
-
* Unlike overrides, transforms allow dynamic modification based on existing values.
|
|
677
|
-
*/
|
|
678
|
-
transforms?: NextjsWebTransforms;
|
|
679
|
-
};
|
|
680
|
-
|
|
681
692
|
export type BastionPropsWithOverrides = BastionProps & {
|
|
682
693
|
/**
|
|
683
694
|
* Override properties of underlying CloudFormation resources.
|
|
@@ -1861,8 +1872,8 @@ export declare class NextjsWeb extends BaseResource {
|
|
|
1861
1872
|
* This resource is purpose-built for Next.js and runs your application's server-side logic in AWS Lambda or Lambda@Edge.
|
|
1862
1873
|
* It seamlessly integrates your Next.js application with other resources in your infrastructure.
|
|
1863
1874
|
*/
|
|
1864
|
-
constructor(properties:
|
|
1865
|
-
constructor(name: string, properties:
|
|
1875
|
+
constructor(properties: NextjsWebProps);
|
|
1876
|
+
constructor(name: string, properties: NextjsWebProps);
|
|
1866
1877
|
/** Website URL */
|
|
1867
1878
|
readonly url: string;
|
|
1868
1879
|
}
|