runway.cfngin.hooks.staticsite.cleanup module

Replicated Lambda Function cleanup warning.

pydantic model runway.cfngin.hooks.staticsite.cleanup.HookArgs[source]

Bases: HookArgsBaseModel

Hook arguments.

Show JSON schema
{
   "title": "HookArgs",
   "description": "Hook arguments.",
   "type": "object",
   "properties": {
      "tags": {
         "additionalProperties": {
            "type": "string"
         },
         "default": {},
         "title": "Tags",
         "type": "object"
      },
      "stack_relative_name": {
         "title": "Stack Relative Name",
         "type": "string"
      }
   },
   "required": [
      "stack_relative_name"
   ]
}

field stack_relative_name: str = PydanticUndefined

Name of the CloudFormation Stack as defined in the config file (no namespace).

runway.cfngin.hooks.staticsite.cleanup.get_replicated_function_names(outputs: list[OutputTypeDef]) list[str][source]

Extract replicated function names from CFN outputs.

runway.cfngin.hooks.staticsite.cleanup.warn(context: runway.context.CfnginContext, *_args: Any, **kwargs: Any) bool[source]

Notify the user of Lambda functions to delete.

Arguments parsed by HookArgs.

Parameters:
  • context – The context instance.

  • **kwargs – Arbitrary keyword arguments.