runway.hooks.staticsite.build_staticsite module

CFNgin hook for building static website.

runway.hooks.staticsite.build_staticsite.zip_and_upload(app_dir: str, bucket: str, key: str, session: Optional[boto3.session.Session] = None)None[source]

Zip built static site and upload to S3.

class runway.hooks.staticsite.build_staticsite.OptionsArgTypeDef(**kwargs)[source]

Bases: dict

Options argument type definition.

build_output: str
build_steps: List[Union[str, List[str], Dict[str, Union[str, List[str]]]]]
name: str
namespace: str
path: str
pre_build_steps: List[Union[str, List[str], Dict[str, Union[str, List[str]]]]]
runway.hooks.staticsite.build_staticsite.build(context: CfnginContext, provider: Provider, *, artifact_bucket_rxref_lookup: str, options: Optional[OptionsArgTypeDef] = None, **_: Any) → Dict[str, Any][source]

Build static site.