Skip to main content

S3BinaryParameters

@webda/aws


Class: S3BinaryParameters

Defined in: aws/src/services/s3binary.service.ts:22

S3Binary parameters

Extends​

  • CloudBinaryParameters

Implements​

Constructors​

Constructor​

new S3BinaryParameters(): S3BinaryParameters

Returns​

S3BinaryParameters

Inherited from​

CloudBinaryParameters.constructor

Properties​

_maxFileSize​

protected _maxFileSize: number

Defined in: core/lib/services/binary.service.d.ts:619

max file size

Inherited from​

CloudBinaryParameters._maxFileSize


bucket​

bucket: string

Defined in: aws/src/services/s3binary.service.ts:45

Bucket to store the binaries in


CloudFormation?​

optional CloudFormation?: any

Defined in: aws/src/services/s3binary.service.ts:49

CloudFormation customization


CloudFormationSkip?​

optional CloudFormationSkip?: boolean

Defined in: aws/src/services/s3binary.service.ts:53

Skip CloudFormation on deploy


credentials?​

optional credentials?: object

Defined in: aws/src/services/s3binary.service.ts:30

Static credentials, default to the AWS environment variables

accessKeyId​

accessKeyId: string

secretAccessKey​

secretAccessKey: string

sessionToken?​

optional sessionToken?: string

Implementation of​

AWSServiceParameters.credentials


endpoint?​

optional endpoint?: string

Defined in: aws/src/services/s3binary.service.ts:26

Custom endpoint (localstack, minio, ...)

Implementation of​

AWSServiceParameters.endpoint


forcePathStyle?​

optional forcePathStyle?: boolean

Defined in: aws/src/services/s3binary.service.ts:41

Use path style url (required by localstack/minio)

Default​

false

models​

models: object

Defined in: core/lib/services/binary.service.d.ts:627

Define the map of models

  • indicates all models

key is a Store name the string[] represent all valids attributes to store files in * indicates all attributes

Index Signature​

[key: string]: string[]

Inherited from​

CloudBinaryParameters.models


prefix?​

optional prefix?: string

Defined in: core/lib/services/cloudbinary.d.ts:7

Inherited from​

CloudBinaryParameters.prefix


region?​

optional region?: string

Defined in: aws/src/services/s3binary.service.ts:35

AWS region

Default​

"us-east-1"

Implementation of​

AWSServiceParameters.region


type​

type: string

Defined in: core/lib/services/serviceparameters.d.ts:8

Type of the service

Inherited from​

CloudBinaryParameters.type

Accessors​

maxFileSize​

Get Signature​

get maxFileSize(): number

Defined in: core/lib/services/binary.service.d.ts:640

Get the max file size in bytes

Returns​

number

the result number

Set Signature​

set maxFileSize(value): void

Defined in: core/lib/services/binary.service.d.ts:635

Define the maximum filesize to accept as direct upload

Default​
10 MB
Parameters​
value​

string | number

Returns​

void

Inherited from​

CloudBinaryParameters.maxFileSize

Methods​

load()​

load(params?): this

Defined in: aws/src/services/s3binary.service.ts:60

Parameters​

params?​

any = {}

raw parameters

Returns​

this

this

Overrides​

CloudBinaryParameters.load


update()​

update(params, delta): this

Defined in: core/lib/services/serviceparameters.d.ts:25

Update parameters and call watchers if a parameter was changed

Parameters​

params​

any

the service parameters

delta​

any

the delta

Returns​

this

this for chaining

Inherited from​

CloudBinaryParameters.update


with()​

with(callback): this

Defined in: core/lib/services/serviceparameters.d.ts:31

Watch for changes on the parameters and call watchers when a parameter is changed

Parameters​

callback​

(params) => void

the callback function

Returns​

this

this for chaining

Inherited from​

CloudBinaryParameters.with