1.0.45 • Published 10 months ago

@rainbow-o23/n8 v1.0.45

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Static Badge

Amazon S3

Module Formats

o23/n8

o23/n8 provides the pipeline steps related to AWS.

AWS Credential Identity Environment Parameters

NameTypeDefault ValueComments
aws.client.CLIENT.access.keystringAWS credential access key.
aws.client.CLIENT.secret.keystringAWS credential secret key.
aws.client.CLIENT.session.tokenstringAWS credential session token.
aws.client.CLIENT.credential.scopestringAWS credential scope.

AWS Region Step Environment Parameters

NameTypeDefault ValueComments
aws.client.CLIENT.regionstringAWS region.

AWS S3 Steps

S3 pipeline steps are actually a simple wrapper for the AWS SDK, so their parameters and returns follow the specifications of @aws-sdk/client-s3.

Environment Parameters

NameTypeDefault ValueComments
aws.s3.CLIENT.client.typestringdefaultClient type.

CLIENT represents client name.

Use RegionClientManager.registerS3ClientCreator to register client creator.

Default

When aws.s3.CLIENT.client.type=default or not presents:

NameTypeDefault ValueComments
aws.s3.CLIENT.bucketstringAWS bucket name.

default client type read AWS credential identity and region environment parameters.

Constructor Parameters

NameTypeDefault ValueComments
clientNamestringS3 client name, used for reading related configuration information.
bucketNamestringS3 bucket name, if not set, it will attempt to use the client's configuration for reading; or it can also be passed during the execution of the steps.

Request and Response

export interface AbstractS3PipelineStepInFragment {
	Bucket?: string | undefined;
}

export interface AbstractS3PipelineStepOutFragment {
}

Get Object Step

Constructor Parameters

NameTypeDefault ValueComments
contentAsstringRead object content as string or buffer.
ignoreNotFoundbooleanfalseIgnore error when object not found.

Request and Response

export type S3GetObjectPipelineStepInFragment = AbstractS3PipelineStepInFragment & GetObjectCommandInput;
export type S3GetObjectPipelineStepOutFragment = AbstractS3PipelineStepOutFragment & GetObjectCommandOutput;

Put Object Step

Request and Response

export type S3PutObjectPipelineStepInFragment = AbstractS3PipelineStepInFragment & PutObjectCommandInput;
export type S3PutObjectPipelineStepOutFragment = AbstractS3PipelineStepOutFragment & PutObjectCommandOutput;

Delete Object Step

Request and Response

export type S3DeleteObjectPipelineStepInFragment = AbstractS3PipelineStepInFragment & DeleteObjectCommandInput;
export type S3DeleteObjectPipelineStepOutFragment = AbstractS3PipelineStepOutFragment & DeleteObjectCommandOutput;

List Objects Step

Request and Response

export type S3ListObjectsPipelineStepInFragment = AbstractS3PipelineStepInFragment & ListObjectsV2CommandInput;
export type S3ListObjectsPipelineStepOutFragment = AbstractS3PipelineStepOutFragment & ListObjectsV2CommandOutput;
1.0.45

10 months ago

1.0.44

11 months ago

1.0.39

12 months ago

1.0.38

12 months ago

1.0.40

12 months ago

1.0.43

11 months ago

1.0.42

11 months ago

1.0.41

11 months ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.33

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

0.1.21

1 year ago

0.1.21-alpha.2

1 year ago

0.1.21-alpha.1

1 year ago