MDAA TS Docs
    Preparing search index...
    • Sanitizes a name to the AgentCore Name charset: alphanumerics with optional single hyphens (no underscores, no leading/trailing/double hyphens). Follows the API contract, not the docs (which disagree on underscores/length); inverse of the Runtime sanitizer. Charset only — the length cap (gateway {1,48}, target {1,100}) is applied by the naming service before this call. resourceKind labels the resource in the failure error.

      Parameters

      • name: string
      • resourceKind: string = 'Gateway'

      Returns string

      Error if no valid non-empty name remains