Amplify Toolbox
    Preparing search index...
    • Reference a sensitive value stored in AWS Secrets Manager.

      Parameters

      • key: string

        Logical name (e.g. 'STRIPE_KEY'). Set the value out-of-band with secret set <key> and read it at runtime with getSecret('<key>').

      • Optionaloptions: ManagedValueOptions

      Returns SecretValue

      A SecretValue marker — pass it into Hosting environment / domain, or a pipeline's buildSecrets / connectionArn.

      environment: { STRIPE_KEY: secret('STRIPE_KEY') }   // → Secrets Manager
      const key = await getSecret('STRIPE_KEY');