Skip to main content

AwsS3StaticWebsiteServiceModuleSchema

AwsS3StaticWebsiteServiceModuleSchema is the input schema for the AwsS3StaticWebsiteServiceModule module. This schema defines the configuration for S3-based static website services including bucket naming, source directory management, and file processing options.

@group

Modules/Service/AwsS3StaticWebsiteService

@see

AwsS3StaticWebsiteServiceModule to learn more about the AwsS3StaticWebsiteServiceModule module.

Index

Properties

account

account: Account = ...

The AWS account that this service will be associated with. Only AWS account types are supported for this module.

awsRegionId

awsRegionId: string = ...

The AWS region that this service will be associated with.

bucketName

bucketName: string = ...

The name of the S3 bucket to create for the static website. This name must be globally unique across all AWS accounts and regions. Must follow S3 bucket naming conventions.

directoryPath

directoryPath: string = ...

The local directory path containing the static website files. This is the source directory that will be synchronized to S3.

optionalfilter

filter?: null | (filePath: string) => boolean = ...

Optional filter function to exclude specific files from upload. This function receives a file path and returns true to include the file or false to exclude it. Useful for excluding development files, system files, or temporary files.

optionalsubDirectoryOrFilePath

subDirectoryOrFilePath?: null | string = ...

Optional subdirectory or specific file path within the source directory. When specified, only this subdirectory or file will be uploaded instead of the entire directory., but the path leading up to this subdirectory or file will still be preserved.

For example, if subDirectoryOrFilePath is subdirectory/file.html, only the file file.html will be uploaded, but the path subdirectory/ will still be preserved. The URL will be my-website.com/subdirectory/file.html.

optionaltransform

transform?: null | (filePath: string) => string = ...

Optional transform function to modify file paths before upload. This function receives the original file path and returns the transformed path. Useful for renaming files, changing directory structures, or modifying extensions.