def link_asset_content_key(access_token, asset_id, encryptionkey_id, ams_redirected_rest_endpoint):
path = '<STR_LIT>'<EOL>full_path = '<STR_LIT>'.join([path, "<STR_LIT>", asset_id, "<STR_LIT>", "<STR_LIT>"])<EOL>full_path_encoded = urllib.parse.quote(full_path, safe='<STR_LIT>')<EOL>endpoint = '<STR_LIT>'.join([ams_rest_endpoint, full_path_encoded])<EOL>uri = '<STR_LIT>'.join([ams_redirected_rest_endpoint, '<STR_LIT>', "<STR_LIT>", encryptionkey_id, "<STR_LIT>"])<EOL>body = '<STR_LIT>' + uri + '<STR_LIT>'<EOL>return do_ams_post(endpoint, full_path_encoded, body, access_token)<EOL>
Link Media Service Asset and Content Key.

    Args:
        access_token (str): A valid Azure authentication token.
        asset_id (str): A Media Service Asset ID.
        encryption_id (str): A Media Service Encryption ID.
        ams_redirected_rest_endpoint (str): A Media Service Redirected Endpoint.

    Returns:
        HTTP response. JSON body.