from typing import List
from typing import Dict


def get_secrets_from_arns(secrets_manager, secret_arns: List[str]) -> Dict[str, str]:
    """
    Return a dictionary of AWS Secrets Manager names to arns.
    """

    secrets = {}
    for arn in secret_arns:
        name = secrets_manager.describe_secret(SecretId=arn)["Name"]
        secrets[name] = arn

    return secrets