S3Bucket
@codification/cutwater-aws > S3Bucket
Class
beta:
Hierarchy
S3Bucket
Constructors
Methods
Constructors
constructor
⊕ new S3Bucket(bucketName: string
, client?: S3
): S3Bucket
Defined in s3/S3Bucket.ts:15
Parameters:
Name | Type |
---|---|
bucketName | string |
Optional client | S3 |
Returns: S3Bucket
Methods
exists
▸ exists(fileName: string
): Observable
<boolean
>
Defined in s3/S3Bucket.ts:29
Parameters:
Name | Type |
---|---|
fileName | string |
Returns: Observable
<boolean
>
setBucketName
▸ setBucketName(name: string
): void
Defined in s3/S3Bucket.ts:22
Parameters:
Name | Type |
---|---|
name | string |
Returns: void
store
▸ store(fileName: string
, content: string
| Buffer
| Readable
, mimeType?: undefined
| string
): Observable
<S3.Types.PutObjectOutput
>
Defined in s3/S3Bucket.ts:44
Parameters:
Name | Type | ||
---|---|---|---|
fileName | string | ||
content | string \ | Buffer \ | Readable |
Optional mimeType | undefined \ | string |
Returns: Observable
<S3.Types.PutObjectOutput
>
<Static>
toMimeType
▸ toMimeType(key: string
): string
Defined in s3/S3Bucket.ts:13
Parameters:
Name | Type |
---|---|
key | string |
Returns: string