harbor run -t openthoughts/tasktrove-exp-flat25-pseudocode-v2-5k-pseudocode-0715harbor download openthoughts/tasktrove-exp-flat25-pseudocode-v2-5k-pseudocode-0715PSEUDOCODE
BEGIN
CLASS RunwayStaticSiteCustomErrorResponseDataModel(BASE_MODEL) Field ErrorCachingMinTTL: Optional = None Field ErrorCode: Optional = None Field ResponseCode: Optional = None Field ResponsePagePath: Optional = None
CONFIG:
extra = "forbid"
END_CLASS
CLASS RunwayStaticSiteLambdaFunctionAssociationDataModel(BASE_MODEL) Field arn: String Field type: String
CONFIG:
extra = "forbid"
END_CLASS
CONSTANT DEFAULT_COOKIE_SETTINGS: Dict<String, String> = { "idToken": "Path=/; Secure; SameSite=Lax", "accessToken": "Path=/; Secure; SameSite=Lax", "refreshToken": "Path=/; Secure; SameSite=Lax", "nonce": "Path=/; Secure; HttpOnly; Max-Age=1800; SameSite=Lax" }
CONSTANT DEFAULT_HTTP_HEADERS: Dict<String, String> = { // values defined in tests (policy headers) }
CLASS RunwayStaticSiteModuleParametersDataModel(BASE_MODEL) Field namespace: String Field acmcert_arn: Optional = None Field additional_redirect_domains: List = [] Field aliases: List = [] Field auth_at_edge: Boolean = False Field cf_disable: Boolean = False Field cookie_settings: Dict<String, String> = DEFAULT_COOKIE_SETTINGS Field create_user_pool: Boolean = False Field custom_error_responses: List = [] Field enable_cf_logging: Boolean = True Field http_headers: Dict<String, String> = DEFAULT_HTTP_HEADERS Field lambda_function_associations: List = [] Field non_spa: Boolean = False Field oauth_scopes: List = ["phone","email","profile","openid","aws.cognito.signin.user.admin"] Field redirect_path_auth_refresh: String = "/refreshauth" Field redirect_path_sign_in: String = "/parseauth" Field redirect_path_sign_out: String = "/" Field required_group: Optional = None Field rewrite_directory_index: Optional = None Field role_boundary_arn: Optional = None Field service_role: Optional = None Field sign_out_url: String = "/signout" Field supported_identity_providers: List = ["COGNITO"] Field user_pool_arn: Optional = None Field web_acl: Optional = None
// Aliases mapping
ALIASES:
"staticsite_acmcert_arn" -> acmcert_arn
"staticsite_additional_redirect_domains" -> additional_redirect_domains
"staticsite_auth_at_edge" -> auth_at_edge
"staticsite_cf_disable" -> cf_disable
"staticsite_cookie_settings" -> cookie_settings
"staticsite_create_user_pool" -> create_user_pool
"staticsite_enable_cf_logging" -> enable_cf_logging
"staticsite_http_headers" -> http_headers
"staticsite_lambda_function_associations" -> lambda_function_associations
"staticsite_non_spa" -> non_spa
"staticsite_oauth_scopes" -> oauth_scopes
"staticsite_redirect_path_auth_refresh" -> redirect_path_auth_refresh
"staticsite_redirect_path_sign_in" -> redirect_path_sign_in
"staticsite_redirect_path_sign_out" -> redirect_path_sign_out
"staticsite_required_group" -> required_group
"staticsite_rewrite_directory_index" -> rewrite_directory_index
"staticsite_role_boundary_arn" -> role_boundary_arn
"cloudformation_service_role" -> service_role
"staticsite_sign_out_url" -> sign_out_url
"staticsite_supported_identity_providers" -> supported_identity_providers
"staticsite_user_pool_arn" -> user_pool_arn
"staticsite_web_acl" -> web_acl
CONFIG:
extra = "ignore" // extra fields allowed but ignored
allow_population_by_field_name = True
PRE_VALIDATORS:
// convert comma-delimited strings to lists for these fields
VALIDATE_IF_STRING("additional_redirect_domains") -> split_by_comma_trim
VALIDATE_IF_STRING("aliases") -> split_by_comma_trim
VALIDATE_IF_STRING("oauth_scopes") -> split_by_comma_trim
NESTING:
custom_error_responses -> List<RunwayStaticSiteCustomErrorResponseDataModel>
lambda_function_associations -> List<RunwayStaticSiteLambdaFunctionAssociationDataModel>
END_CLASS
END