from typing import Optional
from typing import Dict
from typing import Any
from datetime import datetime


def get_parameter_response(
    name: str,
    value: str,
    value_type: str = "String",
    label: Optional[str] = None,
    version: int = 1,
) -> Dict[str, Any]:
    """Generate a mock ssm.get_parameter response."""
    selector = "{}/{}".format(name, label or version)
    return {
        "Parameter": {
            "Name": name,
            "Type": value_type,
            "Value": value,
            "Version": 1,
            "Selector": selector,
            "SourceResult": "",
            "LastModifiedDate": datetime.now(),
            "ARN": "",
        }
    }