def METHOD_NAME(assessment_name: Optional[str] = None,
                   expand: Optional[str] = None,
                   resource_id: Optional[str] = None,
                   opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAssessmentResult:
    """
    Get a security assessment on your scanned resource
    :param str assessment_name: The Assessment Key - Unique key for the assessment type
    :param str expand: OData expand. Optional.
    :param str resource_id: The identifier of the resource.
    """
    __args__ = dict()
    __args__['assessmentName'] = assessment_name
    __args__['expand'] = expand
    __args__['resourceId'] = resource_id
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:security/v20200101:getAssessment', __args__, opts=opts, typ=GetAssessmentResult).value
    return AwaitableGetAssessmentResult(
        additional_data=pulumi.get(__ret__, 'additional_data'),
        display_name=pulumi.get(__ret__, 'display_name'),
        id=pulumi.get(__ret__, 'id'),
        links=pulumi.get(__ret__, 'links'),
        metadata=pulumi.get(__ret__, 'metadata'),
        name=pulumi.get(__ret__, 'name'),
        partners_data=pulumi.get(__ret__, 'partners_data'),
        resource_details=pulumi.get(__ret__, 'resource_details'),
        status=pulumi.get(__ret__, 'status'),
        type=pulumi.get(__ret__, 'type'))