Skip to main content

AwsS3StorageServiceModule

AwsS3StorageServiceModule is an S3-based AWS storage service module that provides an implementation for the Service model. This module creates S3 buckets for object storage with support for directory organization and remote file management. It provides scalable, durable storage for applications with configurable directory structures.

@example

TypeScript

import { AwsS3StorageServiceModule } from '@quadnix/octo-aws-cdk/modules/service/aws-s3-storage-service';

octo.loadModule(AwsS3StorageServiceModule, 'my-storage-module', {
bucketName: 'my-app-storage',
region: myRegion,
remoteDirectoryPaths: ['uploads', 'documents', 'images']
});
@group

Modules/Service/AwsS3StorageService

@see

Hierarchy

Index

Constructors

constructor

  • Parameters

    • moduleId: string

    Returns AwsS3StorageServiceModule

Properties

readonlyinheritedmoduleId

moduleId: string

staticreadonlyinheritedMODULE_PACKAGE

MODULE_PACKAGE: string

staticreadonlyinheritedMODULE_SCHEMA

MODULE_SCHEMA: any

Methods

onInit

inheritedregisterHooks

  • registerHooks(): { postCommitHooks?: PostHookSignature[]; postModelActionHooks?: PostHookSignature[]; postResourceActionHooks?: PostHookSignature[]; preCommitHooks?: PreHookSignature[]; preModelActionHooks?: PreHookSignature[]; preResourceActionHooks?: PreHookSignature[] }
  • Returns { postCommitHooks?: PostHookSignature[]; postModelActionHooks?: PostHookSignature[]; postResourceActionHooks?: PostHookSignature[]; preCommitHooks?: PreHookSignature[]; preModelActionHooks?: PreHookSignature[]; preResourceActionHooks?: PreHookSignature[] }

    • optionalpostCommitHooks?: PostHookSignature[]
    • optionalpostModelActionHooks?: PostHookSignature[]
    • optionalpostResourceActionHooks?: PostHookSignature[]
    • optionalpreCommitHooks?: PreHookSignature[]
    • optionalpreModelActionHooks?: PreHookSignature[]
    • optionalpreResourceActionHooks?: PreHookSignature[]

registerMetadata

  • Parameters

    Returns Promise<{ app: App; awsAccountId: string; awsRegionId: string }>