Amplify Toolbox
    Preparing search index...
    • Reference an EXISTING AWS Secrets Manager secret by name or ARN, to wire into defineHosting's environment. Read at runtime with getSecret('<key>').

      Parameters

      • secretNameOrArn: string

        the secret's name (e.g. my/app/token) or full ARN.

      Returns ByoValue

      defineHosting({ environment: { LEGACY_TOKEN: byoSecret('my/app/legacy-token') } });
      // → getSecret('LEGACY_TOKEN')