MDAA TS Docs
    Preparing search index...
    • Truncates a resource type string to fit within CloudFormation's 60 character limit. If the string exceeds the limit, it preserves as much of the original string as possible while appending a hash to ensure uniqueness.

      Parameters

      • resourceType: string

        The raw resource type string

      • maxLength: number = MAX_RESOURCE_TYPE_LENGTH

        Maximum length for the resource type (default: 52 to account for "Custom::" prefix)

      Returns string

      A truncated resource type string with hash suffix if needed