File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ import * as lambda from "aws-cdk-lib/aws-lambda";
1010import * as apigateway from "aws-cdk-lib/aws-apigatewayv2" ;
1111import { Construct } from "constructs" ;
1212
13- /* ---------- Types ---------- */
14- import { NullStackCDK } from "./@types" ;
15-
1613/* ---------- Interfaces ---------- */
14+ interface GetBucket extends s3 . BucketProps {
15+ bucket_name : string ;
16+ resource_name : string ;
17+ environment : string ;
18+ }
19+
1720interface Bucket {
1821 /**
1922 * Bucket resource ID
@@ -26,6 +29,7 @@ interface Bucket {
2629 name : string ;
2730}
2831
32+ /* ---------- Types ---------- */
2933type SSG = {
3034 build_type : "ssg" ;
3135
@@ -108,7 +112,7 @@ export class NullstackAppStack extends cdk.Stack {
108112 resource_name,
109113 environment,
110114 ...props
111- } : NullStackCDK . GetBucket ) : s3 . IBucket {
115+ } : GetBucket ) : s3 . IBucket {
112116 return new s3 . Bucket ( this , `${ resource_name } -${ environment } ` , {
113117 bucketName : `${ bucket_name } -${ environment } ` ,
114118 removalPolicy : cdk . RemovalPolicy . DESTROY ,
You can’t perform that action at this time.
0 commit comments