Amplify Toolbox
    Preparing search index...

    Interface HostingSecretRegistry

    Type-safe key registry for getSecretempty by default, populated by declaration merging (module augmentation). When it has no members, getSecret accepts any string (the loose default); once keys are merged in, getSecret narrows to exactly those keys, giving editor autocomplete and a compile error on a typo. Nothing else changes — the value is still fetched from Secrets Manager at runtime.

    You normally never write this by hand: npm run typegen scans your app's secret('...') calls and generates a .d.ts that augments it. To do it manually:

    declare module '@aws-blocks/hosting' {
    interface HostingSecretRegistry {
    STRIPE_KEY: string;
    }
    }

    HostingConfigRegistry for the config() / getConfig counterpart.