File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,24 +9,24 @@ import * as pulumi from "@pulumi/pulumi";
99
1010export interface FileBucketOpts {
1111 files : string [ ] ;
12- policy ?: ( bucket : aws . s3 . Bucket ) => pulumi . Output < string > ;
12+ policy ?: ( bucket : aws . s3 . BucketV2 ) => pulumi . Output < string > ;
1313}
1414
1515export class FileBucket {
16- public readonly bucket : aws . s3 . Bucket ;
16+ public readonly bucket : aws . s3 . BucketV2 ;
1717 public readonly files : { [ key : string ] : aws . s3 . BucketObject } ;
1818 public readonly policy : aws . s3 . BucketPolicy ;
1919
2020 private readonly fileContents : { [ key : string ] : string } ;
2121
2222 constructor ( bucketName : string , opts : FileBucketOpts ) {
23- this . bucket = new aws . s3 . Bucket ( bucketName ) ;
23+ this . bucket = new aws . s3 . BucketV2 ( bucketName ) ;
2424 this . fileContents = { } ;
2525 this . files = { } ;
2626 for ( const file of opts . files ) {
2727 this . fileContents [ file ] = fs . readFileSync ( file ) . toString ( ) ;
2828 this . files [ file ] = new aws . s3 . BucketObject ( file , {
29- bucket : this . bucket ,
29+ bucket : this . bucket . bucket ,
3030 source : new pulumi . asset . FileAsset ( file ) ,
3131 contentType : mime . getType ( file ) || undefined ,
3232 } ) ;
You can’t perform that action at this time.
0 commit comments